/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== VARIABLES - DARK THEME ===== */
[data-theme="dark"] {
    --bg: #050505;
    --bg-header: rgba(5,5,5,0.92);
    --surface: rgba(255,255,255,0.03);
    --surface-hover: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.08);
    --border-focus: rgba(255,255,255,0.25);
    --text: #f5f5f5;
    --text-secondary: #888;
    --text-muted: #555;
    --accent: #fff;
    --accent-text: #050505;
    --green: #22c55e;
    --green-dim: rgba(34,197,94,0.15);
    --red: #ef4444;
    --grid-line: rgba(255,255,255,0.02);
    --radial-1: rgba(255,255,255,0.015);
    --radial-2: rgba(255,255,255,0.008);
    --input-bg: rgba(255,255,255,0.03);
    --tag-bg: rgba(255,255,255,0.06);
    --num-bg: rgba(255,255,255,0.06);
    --warning-bg: rgba(239,68,68,0.08);
    --warning-border: rgba(239,68,68,0.15);
    --warning-text: #f87171;
    --shine-color: rgba(255,255,255,0.12);
    --nft-border: rgba(255,255,255,0.1);
    --nft-glow: rgba(34,197,94,0.1);
    --bullet-color: rgba(255,255,255,0.25);
}

/* ===== VARIABLES - LIGHT THEME ===== */
[data-theme="light"] {
    --bg: #f5f5f5;
    --bg-header: rgba(245,245,245,0.92);
    --surface: rgba(0,0,0,0.03);
    --surface-hover: rgba(0,0,0,0.06);
    --border: rgba(0,0,0,0.1);
    --border-focus: rgba(0,0,0,0.3);
    --text: #111;
    --text-secondary: #555;
    --text-muted: #888;
    --accent: #111;
    --accent-text: #f5f5f5;
    --green: #16a34a;
    --green-dim: rgba(22,163,74,0.12);
    --red: #dc2626;
    --grid-line: rgba(0,0,0,0.03);
    --radial-1: rgba(0,0,0,0.02);
    --radial-2: rgba(0,0,0,0.01);
    --input-bg: rgba(0,0,0,0.03);
    --tag-bg: rgba(0,0,0,0.06);
    --num-bg: rgba(0,0,0,0.06);
    --warning-bg: rgba(239,68,68,0.06);
    --warning-border: rgba(239,68,68,0.2);
    --warning-text: #dc2626;
    --shine-color: rgba(255,255,255,0.55);
    --nft-border: rgba(0,0,0,0.1);
    --nft-glow: rgba(22,163,74,0.08);
    --bullet-color: rgba(0,0,0,0.25);
}

/* ===== BASE ===== */
body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

/* ===== BACKGROUND ===== */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--radial-1) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, var(--radial-2) 0%, transparent 40%);
    pointer-events: none;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ===== LAYOUT ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.header-links a:hover {
    color: var(--text);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--border-focus);
    color: var(--text);
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ===== MOBILE HEADER ===== */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

/* ===== CONNECTED BADGE ===== */
.connected-badge {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text);
}

.connected-badge .dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.connected-badge.show {
    display: flex;
}

/* ===== DISCONNECT ===== */
.disconnect-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.disconnect-btn:hover {
    border-color: #ff4444;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

[data-theme="light"] .disconnect-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0 48px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== MINT LAYOUT ===== */
.mint-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
    align-items: start;
}

/* ===== NFT SIDE ===== */
.nft-side {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nft-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--nft-border);
    box-shadow: 0 0 60px var(--nft-glow);
}

.nft-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== SHINE ===== */
.shine-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.shine-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        var(--shine-color) 45%,
        var(--shine-color) 55%,
        transparent 100%
    );
    transform: rotate(15deg);
    animation: shineSweep 1.8s linear infinite;
}

@keyframes shineSweep {
    0% {
        right: -100%;
    }
    100% {
        right: 200%;
    }
}

/* ===== NFT META ===== */
.nft-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.nft-collection {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ===== HOLOGRAPHIC LEGENDARY BADGE ===== */
.nft-type-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
                #9f4e80 0%,
                #7b68ee 16%,
                #4e409c 33%,
                #5787c7 100%);
    background-size: 300% 300%;
    animation: holoShift 5s ease-in-out infinite;
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
}

.nft-type-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.4) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    animation: holoBadgeShine 2s linear infinite;
    border-radius: inherit;
}

@keyframes holoShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes holoBadgeShine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ===== MINT SIDE ===== */
.mint-side {
    display: flex;
    flex-direction: column;
}

/* ===== MINT DETAILS GRID ===== */
.mint-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.mint-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mint-detail-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mint-detail-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mint-detail-value .eth-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.mint-detail-value .base-icon {
    flex-shrink: 0;
}

/* ===== BALANCE ===== */
.mint-balance {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    min-height: 18px;
}

/* ===== PRIMARY BUTTON ===== */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.info-item .bullet {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--bullet-color);
    border-radius: 50%;
    margin-top: 6px;
}

.info-item .info-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-item .info-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    color: var(--green);
}

.notification.error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: var(--red);
}

/* ===== SPINNER ===== */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mint-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nft-side {
        position: static;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-header-actions {
        display: flex;
    }

    .hero {
        padding: 48px 0 32px;
    }
}

@media (max-width: 600px) {
    .header-inner {
        padding: 14px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 0 24px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 13px;
    }

    .mint-layout {
        gap: 24px;
        margin-bottom: 48px;
    }

    .mint-details-grid {
        gap: 20px;
    }

    .mint-detail-value {
        font-size: 18px;
    }

    .btn-primary {
        font-size: 13px;
        padding: 14px;
    }

    .logo-badge {
        display: none;
    }

    .features-section {
        margin-top: 36px;
        padding-top: 24px;
    }

    .connected-badge {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .header-inner {
        padding: 12px;
    }

    .logo img {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 16px;
    }

    .mint-detail-value {
        font-size: 16px;
    }

    .mint-details-grid {
        gap: 16px;
    }
}