/* ───────────────────────────────────────────────
   ROBLOX GROW A GARDEN 2 — MODERN GLASSMORPHIC DESIGN SYSTEM
──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Luckiest+Guy&display=swap');

:root {
    /* Color Palette */
    --bg-base: hsl(120, 42%, 4%);
    --bg-surface: hsl(120, 36%, 7%);
    --bg-card: rgba(8, 28, 12, 0.55);
    --bg-modal: rgba(6, 20, 9, 0.95);
    --border-color: rgba(16, 185, 129, 0.22);
    --border-hover: rgba(251, 191, 36, 0.45);
    
    /* Text */
    --text-primary: #ffffff;
    --text-muted: #a3b8a5;
    
    /* Accents */
    --accent: hsl(46, 100%, 50%); /* Sunshine Gold */
    --accent-glow: rgba(251, 191, 36, 0.3);
    --primary: hsl(142, 72%, 45%); /* Emerald Mint */
    --primary-glow: rgba(16, 185, 129, 0.4);
    
    /* Rarities colors */
    --rarity-common: #10b981;
    --rarity-rare: #3b82f6;
    --rarity-epic: #a855f7;
    --rarity-legendary: #f59e0b;
    
    /* Rad & Shadows */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.15);
    
    /* Fonts */
    --font-display: "Luckiest Guy", "Inter", sans-serif;
    --font-body: "Inter", sans-serif;
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.55;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── FALLING LEAF PARTICLES ──────────────────── */
.animated-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.leaf-particle {
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981' opacity='0.25'%3E%3Cpath d='M17 8C8 10 5.9 16.1 5 20c3.9-.9 10-3 12-12z'/%3E%3Cpath d='M2 22s6.9-2.9 8.9-10.9c-8 2-10.9 8.9-10.9 8.9z' fill='%23047857' opacity='0.2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: fall-and-drift linear infinite;
    top: -50px;
}

@keyframes fall-and-drift {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(105vh) rotate(360deg) translateX(80px);
        opacity: 0;
    }
}

/* ─── LAYOUT ──────────────────────────────────── */
.main-container {
    min-height: 100vh;
    padding: 30px 16px 80px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ─── LANG SWITCHER ───────────────────────────── */
.lang-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 28, 12, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 16px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.lang-button {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
}

.lang-select {
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
    font-size: 0.85rem;
}
.lang-select option {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

/* ─── LIVE ACTIVITY FEED ──────────────────────── */
.live-feed-banner {
    background: rgba(8, 28, 12, 0.65);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    height: 44px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.live-feed-label {
    background: linear-gradient(135deg, var(--primary), #047857);
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 4px 0 10px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.live-feed-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 20px;
    z-index: 1;
}

.live-feed-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    animation: feed-scroll 30s linear infinite;
}

.feed-username {
    color: white;
    font-weight: 700;
}

.feed-item-claimed {
    color: var(--accent);
    font-weight: 800;
}

.feed-time {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

.feed-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

@keyframes feed-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Offset top of body to accommodate feed */
body {
    padding-top: 44px;
}

/* ─── HERO SECTION ────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.wiki-hero {
    background: linear-gradient(135deg, rgba(8, 32, 14, 0.8) 0%, rgba(4, 18, 7, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.wiki-hero::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -20%;
    width: 60%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.15), transparent 70%);
    pointer-events: none;
}

.wiki-top {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
}

.section-logo {
    width: clamp(90px, 16vw, 130px);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    animation: float-bob 6s ease-in-out infinite;
    background: rgba(0, 0, 0, 0.3);
}

.wiki-title {
    display: grid;
    gap: 6px;
}

.wiki-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 800;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: 0.03em;
    color: var(--text-primary);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.logo-line-1 {
    color: white;
}

.section-subtitle {
    margin-top: 10px;
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #047857);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    border: none;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.5), 0 0 15px rgba(251, 191, 36, 0.2);
}

.hero-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── WIKI STATS ──────────────────────────────── */
.wiki-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 24px;
    width: 100%;
}

.stat {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-align: center;
    transition: border-color 0.25s;
}

.stat:hover {
    border-color: var(--primary);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-top: 4px;
}

/* ─── SOCIAL PROOF ────────────────────────────── */
.social-proof {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.2);
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.social-proof .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

/* ─── INTERACTIVE DASHBOARD CONTROLS ──────────── */
.dashboard-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    background: rgba(8, 28, 12, 0.45);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
    .dashboard-controls {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 100%;
}

@media (min-width: 768px) {
    .search-wrapper {
        max-width: 340px;
    }
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid var(--border-color);
    border-radius: 99px;
    padding: 12px 16px 12px 42px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.search-input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 4px;
}

.category-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tab-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 99px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    font-family: var(--font-body);
}

.tab-btn:hover {
    color: white;
    border-color: var(--border-hover);
    background: rgba(251, 191, 36, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), #047857);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ─── ITEMS GRID ──────────────────────────────── */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.item-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.item-card:hover {
    transform: translateY(-6px);
}

/* Rarity classes styling */
.item-card.rarity-common {
    border-color: rgba(16, 185, 129, 0.25);
}
.item-card.rarity-common:hover {
    border-color: var(--rarity-common);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.25);
}

.item-card.rarity-rare {
    border-color: rgba(59, 130, 246, 0.25);
}
.item-card.rarity-rare:hover {
    border-color: var(--rarity-rare);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.25);
}

.item-card.rarity-epic {
    border-color: rgba(168, 85, 247, 0.25);
}
.item-card.rarity-epic:hover {
    border-color: var(--rarity-epic);
    box-shadow: 0 10px 24px rgba(168, 85, 247, 0.25);
}

.item-card.rarity-legendary {
    border-color: rgba(245, 158, 11, 0.25);
}
.item-card.rarity-legendary:hover {
    border-color: var(--rarity-legendary);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-count {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
}

.rarity-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 99px;
    color: white;
}

.rarity-badge.common { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.rarity-badge.rare { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.rarity-badge.epic { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.rarity-badge.legendary { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); animation: pulse-gold 2s infinite; }

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 8px 2px rgba(245, 158, 11, 0.4); }
}

.item-image {
    background: linear-gradient(160deg, rgba(8, 32, 14, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: var(--radius-md);
    padding: 16px;
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    position: relative;
}

.item-image img {
    width: auto;
    height: 95px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.item-card:hover .item-image img {
    transform: translateY(-6px) scale(1.08);
}

.item-card.rarity-legendary:hover .item-image img {
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.6));
}
.item-card.rarity-epic:hover .item-image img {
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.6));
}
.item-card.rarity-rare:hover .item-image img {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
}

.item-info {
    text-align: center;
}

.item-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.item-card:hover .item-name {
    color: var(--accent);
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-claim {
    width: 100%;
    padding: 12px 18px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--primary), #047857);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4), 0 0 8px rgba(251, 191, 36, 0.25);
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Rarity specific button hover */
.item-card.rarity-legendary .btn-claim {
    background: linear-gradient(135deg, var(--rarity-legendary), #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.item-card.rarity-legendary .btn-claim:hover {
    background: linear-gradient(135deg, #fbbf24, var(--rarity-legendary));
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.item-card.rarity-epic .btn-claim {
    background: linear-gradient(135deg, var(--rarity-epic), #7c3aed);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}
.item-card.rarity-epic .btn-claim:hover {
    background: linear-gradient(135deg, #c084fc, var(--rarity-epic));
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
}

/* ─── MODAL MAIN DESIGN ────────────────────────── */
.gen-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.gen-modal.open {
    display: flex;
}

.gen-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 5, 0.82);
    backdrop-filter: blur(8px);
}

.gen-box {
    position: relative;
    z-index: 1;
    background: var(--bg-modal);
    border: 1.5px solid var(--border-color);
    color: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 30px rgba(16, 185, 129, 0.1);
    overflow: hidden;
    animation: genSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes genSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(8, 28, 12, 0.9) 100%);
}

.gen-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gen-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.gen-label {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.gen-sublabel {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.gen-close {
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.gen-close:hover { 
    background: rgba(255,255,255,0.18); 
    transform: rotate(90deg);
}

/* ─── MODAL SCREEN 1: Input ───────────────────── */
.gen-screen {
    display: none;
    padding: 24px 22px;
    flex-direction: column;
    gap: 18px;
}
.gen-screen.active { 
    display: flex; 
}

.gen-item-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
}

.gen-item-thumb {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 6px;
    flex-shrink: 0;
}

.gen-item-details {
    flex: 1;
    min-width: 0;
}

.gen-item-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--accent);
}

.gen-item-badge {
    display: inline-block;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--primary), #047857);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 99px;
}

.gen-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
}

.gen-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.gen-input-wrap:focus-within { 
    border-color: var(--primary); 
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.gen-input-icon { 
    font-size: 1.1rem; 
    color: var(--primary);
}

.gen-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 1rem;
    font-family: var(--font-body);
    color: #fff;
    outline: none;
}
.gen-input::placeholder { 
    color: rgba(255,255,255,0.3); 
}

.gen-error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 14px;
    text-align: center;
}

.gen-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #047857);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 15px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-body);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.gen-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 0 10px rgba(251, 191, 36, 0.2);
}

.gen-security-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.gen-security-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
    box-shadow: 0 0 8px var(--primary);
}

/* ─── MODAL SCREEN 2: Username Scanner ────────── */
.gen-progress-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
}

/* Hologram Scanning container */
.avatar-scanner-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 3px solid var(--border-color);
    position: relative;
    overflow: hidden;
    margin: 10px auto;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-avatar-img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.avatar-scanner-container.scanning {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.avatar-scanner-container.scanning .scanner-avatar-img {
    opacity: 0.8;
}

.scanner-laser {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 12px var(--primary);
    top: 0;
    left: 0;
    opacity: 0;
}

.avatar-scanner-container.scanning .scanner-laser {
    opacity: 1;
    animation: laser-sweep 2s linear infinite;
}

@keyframes laser-sweep {
    0%, 100% { top: 0%; }
    50% { top: 100%; }
}

.gen-spinner-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(16, 185, 129, 0.15);
    border-top-color: var(--accent);
    animation: genSpin 0.9s linear infinite;
}
@keyframes genSpin { 
    to { transform: rotate(360deg); } 
}

.gen-progress-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
}

.gen-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gen-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gen-step.active {
    background: rgba(251, 191, 36, 0.05);
    border-color: var(--accent);
}

.gen-step.done {
    background: rgba(16, 185, 129, 0.06);
    border-color: var(--primary);
}

.gen-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.gen-step.active .gen-step-icon { 
    background: var(--accent); 
    color: var(--bg-base); 
    box-shadow: 0 0 10px var(--accent-glow);
}

.gen-step.done .gen-step-icon { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 0 0 10px var(--primary-glow);
}

.gen-step-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

.gen-step-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.gen-step.done .gen-step-sub { 
    color: var(--primary); 
    font-weight: 600;
}

.gen-progress-bar-wrap {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 99px;
    height: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.gen-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 99px;
    transition: width 0.6s ease;
}

/* ─── MODAL SCREEN 3: Success Claim ────────────── */
.gen-success-item-img {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 15px var(--accent-glow));
    animation: genBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes genBounce {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.gen-success-sub {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.gen-final-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.gen-final-thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    padding: 4px;
    flex-shrink: 0;
}

.gen-final-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--accent);
}

.gen-final-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 2px;
}

.gen-expire-note {
    text-align: center;
    font-size: 0.8rem;
    color: #f87171;
    font-weight: 700;
}

/* ─── CPA OFFERS INTERACTIVE ───────────────────── */
.offers-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.offers-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(16, 185, 129, 0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 8px;
}

.offer-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0 16px;
}

.offer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), #047857);
    border: 1.5px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-md);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: var(--font-body);
}

.offer-item:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, #10b981, #047857);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45), 0 0 12px rgba(251, 191, 36, 0.25);
}

.offer-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
}

.offer-item:hover::after {
    animation: offerShine 1.5s ease-in-out infinite;
}

@keyframes offerShine {
    100% { left: 150%; }
}

.cpa-modal-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
}

.secure-footer-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #fbbf24;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.pulsing {
    animation: pulse-dot 1.5s infinite;
}

.status-dot.success {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5); }
    70% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* ─── FAQ ACCORDIONS ──────────────────────────── */
.faq-section {
    margin-top: 50px;
    margin-bottom: 24px;
}

.faq-container {
    background: rgba(8, 28, 12, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    backdrop-filter: blur(12px);
}

.faq-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    text-align: center;
    color: var(--accent);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.faq-item {
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    padding: 18px 0;
}

.faq-item:last-of-type {
    border-bottom: none;
}

.faq-question {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s ease;
}

.faq-question::after {
    content: "＋";
    font-size: 1.1rem;
    color: var(--primary);
    transition: transform 0.25s ease;
    font-weight: 800;
}

.faq-item[open] .faq-question {
    color: var(--accent);
}

.faq-item[open] .faq-question::after {
    content: "－";
    color: var(--accent);
    transform: rotate(180deg);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding-top: 14px;
    padding-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    animation: faqFadeIn 0.3s ease-in-out;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── SITE FOOTER ─────────────────────────────── */
.site-footer {
    margin-top: 40px;
    padding: 24px 0 16px;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
}

.footer-keywords {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ─── iOS POPUP ───────────────────────────────── */
.ios-popup {
    position: fixed;
    inset: 0;
    z-index: 250000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-popup-background {
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 5, 0.85);
    backdrop-filter: blur(8px);
}

.ios-popup-content {
    position: relative;
    z-index: 1;
    background: var(--bg-modal);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: min(92vw, 420px);
    padding: 26px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.ios-instruction-gif {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #000;
}

.ios-instruction-text h3 {
    font-family: var(--font-display);
    color: var(--accent);
    margin: 16px 0 8px;
    font-size: 1.4rem;
}

.ios-instruction-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ─── UTILITIES & ANIMATIONS ──────────────────── */
@keyframes float-bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

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

/* ─── RESPONSIVE BREAKPOINTS ──────────────────── */
@media (max-width: 900px) {
    .main-container { padding-top: 20px; }
    .wiki-top { flex-direction: column; text-align: center; }
    .wiki-stats { grid-template-columns: repeat(2, 1fr); }
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .item-card { padding: 14px; gap: 10px; }
    .item-image { min-height: 100px; padding: 10px; }
    .item-image img { height: 75px; }
}

@media (max-width: 480px) {
    .items-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }
    .item-card { padding: 10px; }
    .item-image img { height: 65px; }
    .item-name { font-size: 0.9rem; }
    .btn-claim { font-size: 0.85rem; padding: 10px 12px; }
    .category-tabs { margin-top: 8px; }
    .wiki-hero { padding: 28px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
