*{font-family:'Inter',sans-serif!important;letter-spacing:0.3px;-webkit-font-smoothing:antialiased;}
/* PREMIUM BACKGROUND */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #000;
    overflow: hidden;
}

.bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('IMG_1045.png') center/60% no-repeat;
    opacity: 0.22;
    filter: blur(6px);
}

.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0,0,0,.6), #000 90%);
    mix-blend-mode: multiply;
}

/* HEADER */
.top-header {
    max-width: 900px;
    margin: 20px auto 10px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 5;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f7c437;
    color: #1a0f00;
    font-size: 30px;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff5d1;
}

.logo-sub {
    font-size: 13px;
    letter-spacing: .15em;
    color: #d0c3a0;
}

.top-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.top-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255,210,110,.25);
    background: rgba(255,230,150,.05);
    color: #ffda6c;
    text-decoration: none;
    transition: .25s;
}

.top-btn:hover {
    border-color: #ffd36b;
    background: rgba(255,220,120,.12);
}

/* HOME CARD */
.home-card {
    max-width: 780px;
    margin: 30px auto;
    padding: 24px;
    border-radius: 26px;
    background: rgba(10,6,2,.9);
    border: 1px solid rgba(255,210,110,.25);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 3;
}

.home-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.home-heading {
    font-size: 24px;
    color: #fff4ce;
}

.stage-pill {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #28d96b;
    color: #28d96b;
    font-size: 12px;
    letter-spacing: .12em;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.home-stat-box {
    border-radius: 16px;
    padding: 10px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,210,110,.2);
}

.home-stat-label {
    font-size: 11px;
    letter-spacing: .15em;
    color: #e0cda1;
}

.home-stat-value {
    margin-top: 6px;
    font-size: 20px;
    color: #fff4ce;
}

/* PROGRESS */
.home-progress {
    margin-top: 8px;
}

.home-progress-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #f2e3c0;
}

.home-progress-line {
    margin-top: 8px;
    width: 100%;
    height: 16px;
    background: #1a1305;
    border-radius: 999px;
    overflow: hidden;
}

.home-progress-bar {
    height: 100%;
    width: 16%;
    background: linear-gradient(90deg,#ffd76c,#ffb52c);
}

/* MAIN BUTTON */
.home-mint-btn {
    margin-top: 24px;
    width: 160px;
    padding: 12px 0;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg,#ffdd70,#ffb52c);
    color: #201000;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.85);
}

/* STAGE SECTION */
.stage-section {
    max-width: 780px;
    margin: 0 auto 40px;
    padding: 0 4px;
    position: relative;
    z-index: 3;
}

.stage-heading {
    font-size: 20px;
    color: #fff3c8;
    margin-bottom: 10px;
}

.stage-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

.stage-box {
    border-radius: 18px;
    padding: 12px;
    background: rgba(10,6,2,.9);
    border: 1px solid rgba(255,210,110,.25);
    font-size: 14px;
    color: #f2e3c0;
}

.stage-label {
    font-size: 11px;
    letter-spacing: .18em;
    color: #f8d87b;
    margin-bottom: 6px;
}

/* TX SECTION */
.tx-section {
    max-width: 780px;
    margin: 0 auto 40px;
    padding: 0 4px;
    position: relative;
    z-index: 3;
}

.tx-heading {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff3c8;
}

.tx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(10,6,2,.85);
    border: 1px solid rgba(255,210,110,.22);
    backdrop-filter: blur(4px);
}

.tx-hash {
    font-size: 14px;
    color: #ffe9b9;
}

.tx-time {
    font-size: 12px;
    color: #c9bfa4;
}

.tx-amount {
    color: #28e97d;
    font-weight: 700;
    font-size: 16px;
}

/* MINT PAGE */
.mint-card {
    max-width: 780px;
    margin: 20px auto;
    padding: 26px;
    border-radius: 26px;
    background: rgba(10,6,2,.9);
    border: 1px solid rgba(255,210,110,.25);
    backdrop-filter: blur(4px);
    z-index: 3;
    position: relative;
}

.mint-heading {
    font-size: 26px;
    margin-bottom: 18px;
    color: #fff4ce;
}

.step-box {
    border: 1px solid rgba(255,210,110,.25);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    background: rgba(255,220,100,.05);
}

.step-label {
    font-size: 11px;
    letter-spacing: .2em;
    color: #ffd875;
    font-weight: 700;
}

.step-text {
    margin-top: 4px;
    font-size: 14px;
    color: #f2e3c0;
}

#qty {
    padding: 6px;
    border-radius: 12px;
    width: 70px;
    border: 1px solid #d4b16d;
    background: #0f0b05;
    color: #fff1c9;
    text-align: center;
}

.total-line {
    margin-top: 10px;
    color: #fff1c9;
}

.address-box {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(5,35,10,.9);
    border: 1px solid #19ff72;
    color: #b0ffd1;
    font-size: 15px;
    word-break: break-all;
    cursor: pointer;
}

.copy-status.ok {
    color: #24ff8b;
    font-size: 13px;
    margin-top: 4px;
}

.important {
    margin-top: 16px;
    font-size: 12px;
    color: #ffeec8;
}

.minted-btn {
    margin-top: 22px;
    padding: 14px 36px;
    border-radius: 999px;
    color: #06270c;
    background: #22c958;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0,0,0,.9);
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-content {
    width: 90%;
    max-width: 420px;
    background: rgba(20, 14, 5, 0.95);
    border: 1px solid rgba(255,210,110,.25);
    padding: 22px 26px;
    border-radius: 22px;
    color: #ffeec8;
    animation: popup .25s ease-out;
}

@keyframes popup {
    from { transform: scale(.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
    margin: 0 0 14px;
    font-size: 22px;
    color: #fff3ce;
}

.modal-buttons {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
}

.modal-share {
    padding: 12px 20px;
    background: #ffcc33;
    border-radius: 999px;
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

.modal-close {
    padding: 10px 22px;
    background: none;
    border: 1px solid #ffda88;
    border-radius: 999px;
    color: #ffda88;
    font-size: 16px;
}

/* MOBILE */
@media(max-width: 640px) {
    .home-stats-grid { grid-template-columns: 1fr; }
    .stage-grid { grid-template-columns: 1fr; }
    .top-header { padding: 10px 14px; }
    .logo-title { font-size: 20px; }
    .logo-icon { width: 42px; height: 42px; font-size: 26px; }
}

/* GALLERY UNDER MINT DETAILS */
.mint-gallery {
    margin: 20px 0 40px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.mint-gallery img {
    width: 160px;
    height: 160px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255, 200, 0, 0.18);
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
    transition: 0.25s;
}
.mint-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 200, 0, 0.3);
}
@media (max-width: 600px) {
    .mint-gallery img {
        width: 120px;
        height: 120px;
    }
}


/* === 2-ROW ANIMATED GALLERY === */
.mint-gallery-2rows {
    margin: 25px auto 45px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    width: 100%;
    max-width: 760px;
    animation: fadeIn 0.9s ease forwards;
}
.mint-gallery-2rows img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 200, 0, 0.18);
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: imgFade 1s ease forwards;
}
.mint-gallery-2rows img:nth-child(1){ animation-delay: 0.1s; }
.mint-gallery-2rows img:nth-child(2){ animation-delay: 0.2s; }
.mint-gallery-2rows img:nth-child(3){ animation-delay: 0.3s; }
.mint-gallery-2rows img:nth-child(4){ animation-delay: 0.4s; }
.mint-gallery-2rows img:nth-child(5){ animation-delay: 0.5s; }
.mint-gallery-2rows img:nth-child(6){ animation-delay: 0.6s; }
.mint-gallery-2rows img:hover {
    transform: scale(1.07);
    box-shadow: 0 0 35px rgba(255, 200, 0, 0.35);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes imgFade {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
    .mint-gallery-2rows {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .mint-gallery-2rows img {
        height: 140px;
    }
}


/* LIGHTBOX FULLSCREEN */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}
.lightbox.open {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 22px;
  box-shadow: 0 0 40px rgba(0,0,0,0.85);
}
.lightbox-close {
  position: absolute;
  top: 26px;
  right: 32px;
  font-size: 32px;
  color: #fff7d8;
  cursor: pointer;
  font-weight: 500;
}
