/* ───────────────────────────────────────────────
   MOBILE LEGENDS: BANG BANG — Dark Blue / Gold
──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Russo+One&display=swap');

:root {
    --bg: #0a0e1a;
    --bg-accent: #111827;
    --bg-warm: #0f1629;
    --card: rgba(15, 23, 50, 0.85);
    --card-border: rgba(59, 130, 246, 0.2);
    --text: #e8edf5;
    --muted: #7b8db5;
    --accent: #3b82f6;
    --accent-strong: #2563eb;
    --accent-light: rgba(59, 130, 246, 0.15);
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.4);
    --danger: #ef4444;
    --success: #10b981;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 12px 40px rgba(59, 130, 246, 0.25);
    --font-display: "Russo One", "Inter", sans-serif;
    --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 20% 10%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 90%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    z-index: 0;
}

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

.main-container {
    min-height: 100vh;
    padding: 48px 18px 90px;
    position: relative;
    z-index: 1;
}

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

/* ─── LANG SWITCHER ─── */
.lang-switcher {
    position: fixed; top: 14px; right: 14px; z-index: 9999;
    display: flex; align-items: center; gap: 8px;
    background: rgba(15, 23, 50, 0.9);
    border: 1px solid var(--card-border);
    border-radius: 999px; padding: 6px 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.lang-button {
    background: transparent; border: none;
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-body); font-weight: 700;
    color: var(--text); cursor: pointer; font-size: 0.85rem;
}
.lang-select {
    border: none; background: transparent;
    font-weight: 700; color: var(--text);
    font-family: var(--font-body); cursor: pointer;
    outline: none; font-size: 0.85rem;
}
.lang-select option { background: #111827; color: #fff; }

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

.wiki-hero {
    background: linear-gradient(135deg, rgba(15, 23, 50, 0.95) 0%, rgba(30, 40, 80, 0.9) 50%, rgba(15, 23, 50, 0.95) 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative; overflow: hidden;
}
.wiki-hero::before {
    content: "";
    position: absolute; top: -40%; left: -10%;
    width: 60%; height: 200%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1), transparent 70%);
    pointer-events: none;
}
.wiki-hero::after {
    content: "";
    position: absolute; bottom: -20%; right: -10%;
    width: 50%; height: 150%;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08), transparent 70%);
    pointer-events: none;
}
.wiki-hero > * { position: relative; z-index: 1; }

.wiki-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.wiki-title { display: grid; gap: 6px; }
.wiki-label {
    text-transform: uppercase; letter-spacing: 0.18em;
    font-size: 0.68rem; color: var(--gold);
    font-weight: 700;
}

.section-logo {
    width: clamp(80px, 16vw, 130px);
    border-radius: 18px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
    animation: float-bob 6s ease-in-out infinite;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    letter-spacing: 0.04em;
    color: var(--text);
}
.logo-line-1 { color: var(--text); display: block; }
.logo-line-2 {
    background: linear-gradient(135deg, var(--gold), #fbbf24, var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; display: block;
}

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

/* ─── HERO ACTIONS ─── */
.hero-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin-top: 20px; flex-wrap: wrap;
}
.btn-primary {
    padding: 13px 30px; border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000; font-weight: 700; text-decoration: none;
    border: none; box-shadow: 0 4px 18px var(--gold-glow);
    font-family: var(--font-body); font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--gold-glow); }
.hero-note { font-size: 0.88rem; color: var(--muted); font-weight: 500; }

/* ─── SOCIAL PROOF ─── */
.social-proof {
    margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.84rem; color: var(--muted); font-weight: 500;
}
.social-proof .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

/* ─── ITEMS GRID ─── */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.item-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    display: flex; flex-direction: column; gap: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative; overflow: hidden;
    backdrop-filter: blur(10px);
}
.item-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.item-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(245, 158, 11, 0.4);
}
.item-card:hover::before { opacity: 1; }

.item-header {
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--gold); font-weight: 700;
}
.item-image {
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
    border-radius: var(--radius-md); padding: 14px;
    display: grid; place-items: center; min-height: 140px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
}
.item-image img {
    width: 100%; height: 120px; object-fit: contain;
    transition: transform 0.3s, filter 0.3s;
    filter: drop-shadow(0 4px 15px rgba(59, 130, 246, 0.2));
}
.item-card:hover .item-image img {
    transform: translateY(-6px) scale(1.06);
    filter: drop-shadow(0 8px 25px rgba(245, 158, 11, 0.3));
}
.item-info { text-align: center; }
.item-name {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700; color: var(--text);
    transition: color 0.2s;
}
.item-card:hover .item-name { color: var(--gold); }

/* ─── BUTTONS ─── */
.btn { border: none; cursor: pointer; font-family: var(--font-body); }
.btn-claim {
    width: 100%; padding: 11px 18px; border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000; font-size: 0.9rem; font-weight: 700; border: none;
    box-shadow: 0 4px 14px var(--gold-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.03em;
}
.btn-claim:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--gold-glow); }

/* ─── iOS POPUP ─── */
.ios-popup {
    position: fixed; inset: 0; z-index: 2500;
    display: flex; align-items: center; justify-content: center;
}
.ios-popup-background {
    position: absolute; inset: 0;
    background: rgba(5, 10, 20, 0.85); backdrop-filter: blur(8px);
}
.ios-popup-content {
    position: relative; z-index: 1;
    background: rgba(15, 23, 50, 0.95);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    width: min(92vw, 420px); padding: 24px;
    text-align: center; box-shadow: var(--shadow-soft);
}
.ios-instruction-gif {
    width: 100%; border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
}
.ios-instruction-text h3 {
    font-family: var(--font-display);
    color: var(--gold); margin: 14px 0 8px;
}
.ios-instruction-text p { color: var(--muted); font-size: 0.9rem; }
.ios-instruction-text p strong { color: #fff; }

/* ─── FOOTER ─── */
.site-footer {
    margin-top: 36px; padding: 18px 0 12px;
    border-top: 1px solid var(--card-border);
}
.footer-keywords {
    text-align: center; font-size: 0.75rem;
    color: var(--muted); letter-spacing: 0.02em;
}

/* ─── UTILITIES ─── */
.animated-background, .bg-item-img, .bg-item-img img { display: none; }

/* ─── ANIMATIONS ─── */
@keyframes float-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
    50% { transform: scale(1.35); box-shadow: 0 0 16px rgba(16, 185, 129, 0.85); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .main-container { padding-top: 32px; }
    .wiki-top { flex-direction: column; align-items: flex-start; }
    .section-logo { width: clamp(90px, 24vw, 140px); }
    .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .item-card { padding: 14px; gap: 10px; }
    .item-image { min-height: 100px; }
    .footer-keywords { display: none; }
}
@media (max-width: 420px) {
    .items-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════
   FAKE GENERATOR MODAL
═══════════════════════════════════════════ */
.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(0, 0, 0, 0.7); backdrop-filter: blur(6px);
}
.gen-box {
    position: relative; z-index: 1;
    background: #0f1629; border: 1px solid var(--card-border);
    border-radius: 20px; width: 100%; max-width: 420px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: genSlideIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes genSlideIn {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.gen-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 14px; border-bottom: 1px solid var(--card-border);
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1629 100%);
}
.gen-logo-row { display: flex; align-items: center; gap: 10px; }
.gen-logo-img {
    width: 36px; height: 36px; border-radius: 8px;
    object-fit: contain; background: rgba(255,255,255,0.1);
}
.gen-label { color: var(--gold); font-weight: 800; font-size: 0.95rem; }
.gen-sublabel { color: var(--muted); font-size: 0.72rem; font-weight: 500; }
.gen-close {
    background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
    width: 30px; height: 30px; color: #fff; font-size: 0.85rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s; flex-shrink: 0;
}
.gen-close:hover { background: rgba(255,255,255,0.2); }

.gen-screen {
    display: none; padding: 22px 20px 20px;
    flex-direction: column; gap: 14px;
}
.gen-screen.active { display: flex; }

.gen-item-preview {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.08));
    border: 1.5px solid rgba(59,130,246,0.25);
    border-radius: 14px; padding: 12px 14px;
}
.gen-item-thumb {
    width: 56px; height: 56px; object-fit: contain;
    border-radius: 10px; background: rgba(255,255,255,0.05); flex-shrink: 0;
}
.gen-item-details { flex: 1; min-width: 0; }
.gen-item-name { font-weight: 800; font-size: 1rem; color: var(--gold); }
.gen-item-badge {
    display: inline-block; margin-top: 4px;
    background: #10b981; color: #fff;
    font-size: 0.65rem; font-weight: 800;
    letter-spacing: 0.07em; padding: 2px 7px; border-radius: 99px;
}
.gen-desc { color: var(--muted); font-size: 0.875rem; text-align: center; }
.gen-input-wrap {
    display: flex; align-items: center; gap: 10px;
    border: 2px solid var(--card-border); border-radius: 12px;
    padding: 0 14px; background: rgba(0,0,0,0.3); transition: border-color 0.2s;
}
.gen-input-wrap:focus-within { border-color: var(--gold); background: rgba(0,0,0,0.5); }
.gen-input-icon { font-size: 1.1rem; }
.gen-input {
    flex: 1; border: none; background: transparent;
    padding: 13px 0; font-size: 0.95rem;
    font-family: var(--font-body); color: var(--text); outline: none;
}
.gen-input::placeholder { color: #4b5e7e; }
.gen-error-msg { color: #ef4444; font-size: 0.8rem; font-weight: 600; min-height: 14px; }
.gen-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000; border: none; border-radius: 12px;
    padding: 14px; font-size: 1rem; font-weight: 800;
    font-family: var(--font-body); cursor: pointer;
    box-shadow: 0 4px 18px var(--gold-glow);
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}
.gen-btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.gen-security-row {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; color: var(--muted); font-size: 0.75rem;
}
.gen-security-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #10b981; display: inline-block;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

/* Screen 2 */
.gen-progress-header {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; padding-bottom: 6px;
}
.gen-spinner-ring {
    width: 44px; height: 44px; border-radius: 50%;
    border: 4px solid rgba(59,130,246,0.2);
    border-top-color: var(--gold);
    animation: genSpin 0.9s linear infinite;
}
@keyframes genSpin { to { transform: rotate(360deg); } }
.gen-progress-label {
    font-size: 0.875rem; font-weight: 600;
    color: var(--gold); text-align: center;
}
.gen-steps { display: flex; flex-direction: column; gap: 10px; }
.gen-step {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    background: rgba(0,0,0,0.2); border: 1.5px solid var(--card-border);
    transition: background 0.25s, border-color 0.25s;
}
.gen-step.active { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.4); }
.gen-step.done { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); }
.gen-step-icon {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 800; flex-shrink: 0;
    transition: background 0.25s, color 0.25s;
}
.gen-step.active .gen-step-icon { background: var(--accent); color: #fff; }
.gen-step.done .gen-step-icon { background: #10b981; color: #fff; }
.gen-step-title { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.gen-step-sub { font-size: 0.73rem; color: var(--muted); margin-top: 1px; }
.gen-step.done .gen-step-sub { color: #10b981; }

.gen-progress-bar-wrap {
    background: rgba(255,255,255,0.08); border-radius: 99px;
    height: 6px; overflow: hidden;
}
.gen-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 99px; transition: width 0.6s ease;
}

/* Screen 3 */
.gen-success-icon {
    text-align: center; font-size: 3rem;
    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-title { text-align: center; font-size: 1.35rem; font-weight: 900; color: var(--text); }
.gen-success-sub { text-align: center; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.gen-success-sub strong { color: var(--gold); }
.gen-final-card {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.04));
    border: 1.5px solid rgba(16,185,129,0.3);
    border-radius: 14px; padding: 12px 14px;
}
.gen-final-thumb {
    width: 52px; height: 52px; object-fit: contain;
    border-radius: 10px; background: rgba(255,255,255,0.05); flex-shrink: 0;
}
.gen-final-name { font-weight: 800; font-size: 0.95rem; color: #10b981; }
.gen-final-tag { font-size: 0.75rem; color: #10b981; font-weight: 700; margin-top: 3px; }
.gen-btn-claim {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000; border: none; border-radius: 12px;
    padding: 15px; font-size: 1.05rem; font-weight: 900;
    font-family: var(--font-body); cursor: pointer;
    box-shadow: 0 4px 18px var(--gold-glow);
    animation: genPulseBtn 1.8s ease-in-out infinite;
}
@keyframes genPulseBtn {
    0%, 100% { box-shadow: 0 4px 18px var(--gold-glow); }
    50% { box-shadow: 0 6px 28px rgba(245,158,11,0.55); }
}
.gen-btn-claim:hover { opacity: 0.92; transform: translateY(-1px); }
.gen-expire-note { text-align: center; font-size: 0.78rem; color: #ef4444; font-weight: 600; }

@media (max-width: 480px) {
    .gen-box { border-radius: 16px; }
    .gen-screen { padding: 18px 16px 16px; }
}