/* ═══════════════════════════════════════════════════════════
   METIN2 DONATIONS — Professional Fantasy Theme
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg-deep:    #070504;
    --bg-main:    #0c0906;
    --bg-panel:   #14100a;
    --bg-card:    #1a140c;
    --bg-elevated:#221a10;

    --gold:       #d4a020;
    --gold-light: #f5c842;
    --gold-dark:  #8b6914;
    --ember:      #e87c2c;
    --crimson:    #c0392b;

    --text:       #f5ead6;
    --text-muted: rgba(245, 234, 214, 0.55);
    --text-dim:   rgba(245, 234, 214, 0.28);

    --border:     rgba(212, 160, 32, 0.18);
    --border-strong: rgba(212, 160, 32, 0.42);
    --glow:       rgba(212, 160, 32, 0.35);
    --glass:      rgba(255, 200, 100, 0.04);

    --green:      #34d399;
    --red:        #f87171;
    --yellow:     #fbbf24;

    --font-display: 'Cinzel', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-panel: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    min-height: 100vh;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ── Animated background ── */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.page-wrap::after {
    content: '';
    position: fixed;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

body.brand-bg .page-wrap::after {
    opacity: 0.12;
}

.page-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrap::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 160, 32, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(232, 124, 44, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 0% 80%, rgba(139, 105, 20, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── Typography ── */
h1, h2, h3, .display-font {
    font-family: var(--font-display);
    letter-spacing: 0.03em;
}

.text-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--ember));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Ornate panel ── */
.ornate-panel {
    background: linear-gradient(165deg, var(--bg-card) 0%, var(--bg-main) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-panel);
}

.ornate-panel::before,
.ornate-panel::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.45;
    pointer-events: none;
}

.ornate-panel::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.ornate-panel::after  { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--ember) 100%);
    color: #fff;
    box-shadow: 0 8px 28px var(--glow);
}

.btn-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.55s ease;
}

.btn-gold:hover:not(:disabled)::after { transform: translateX(100%); }
.btn-gold:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(212, 160, 32, 0.5);
}

.btn-gold:disabled,
.btn-gold.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-outline:hover {
    background: var(--glass);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-sm { padding: 9px 18px; font-size: 12px; }
.btn-block { width: 100%; }

/* ── Topbar ── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 68px;
    background: rgba(7, 5, 4, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.35;
}

.tb-left, .tb-right { display: flex; align-items: center; gap: 14px; }

.tb-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.tb-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 20px var(--glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tb-logo img {
    height: 38px;
    filter: drop-shadow(0 0 14px var(--glow));
    display: none;
}

.tb-logo img.loaded { display: block; }

.tb-logo img.loaded + .tb-logo-mark { display: none; }
.hero-logo-img.loaded + .hero-emblem { display: none; }
.login-visual img.loaded + .login-emblem { display: none; }

.tb-logo-mark,
.hero-emblem,
.login-emblem { display: flex; }

.tb-logo span {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.tb-coins {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: rgba(232, 124, 44, 0.08);
    border: 1px solid rgba(232, 124, 44, 0.28);
    font-weight: 700;
    color: var(--ember);
    font-size: 14px;
}

.tb-coins .label { font-size: 11px; color: var(--text-muted); font-weight: 400; }

.tb-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: var(--glass);
    border: 1px solid var(--border);
    font-size: 13px;
}

.tb-user .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--ember));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.tb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.15s;
}

.tb-link:hover { background: var(--glass); color: var(--text); border-color: var(--border-strong); }
.tb-link.logout { border-color: rgba(248, 113, 113, 0.25); color: rgba(248, 113, 113, 0.75); }
.tb-link.logout:hover { background: rgba(248, 113, 113, 0.08); color: var(--red); }
.tb-link.tb-admin {
    border-color: rgba(96, 165, 250, 0.35);
    color: rgba(147, 197, 253, 0.95);
    background: rgba(59, 130, 246, 0.08);
}
.tb-link.tb-admin:hover {
    background: rgba(59, 130, 246, 0.16);
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: 56px 28px 48px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        url('../imagenes/fondo_index.png') center/cover no-repeat,
        linear-gradient(180deg, rgba(7,5,4,0.3) 0%, var(--bg-deep) 100%);
    opacity: 0.35;
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.hero-emblem {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    box-shadow: 0 0 50px var(--glow), inset 0 0 30px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.15);
    animation: emblemFloat 4s ease-in-out infinite;
}

.hero-logo-img {
    width: 110px;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 40px var(--glow));
    animation: emblemFloat 4s ease-in-out infinite;
    display: none;
}

.hero-logo-img.loaded {
    display: block;
}

.hero-logo-img.loaded + .hero-emblem { display: none; }

@keyframes emblemFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 800;
    margin-bottom: 10px;
}

.hero p { font-size: 14px; color: var(--text-muted); max-width: 520px; margin: 0 auto 20px; }

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hbadge {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(212, 160, 32, 0.1);
    border: 1px solid rgba(212, 160, 32, 0.28);
    color: var(--gold-light);
}

/* ── Strips (HH / Referido) ── */
.promo-strip {
    padding: 10px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.hh-strip {
    background: linear-gradient(90deg, rgba(232,124,44,0.08), rgba(212,160,32,0.06), rgba(232,124,44,0.08));
    animation: hhPulse 3s ease-in-out infinite;
}

@keyframes hhPulse {
    0%, 100% { box-shadow: inset 0 0 0 rgba(232,124,44,0); }
    50% { box-shadow: inset 0 0 40px rgba(232,124,44,0.06); }
}

.ref-strip {
    background: rgba(212, 160, 32, 0.06);
    color: var(--gold);
}

.timer {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--yellow);
    background: rgba(251, 191, 36, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
}

/* ── Trust features ── */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 1100px;
    margin: -20px auto 32px;
    padding: 0 28px;
    position: relative;
    z-index: 2;
}

.trust-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.trust-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.trust-icon { font-size: 26px; margin-bottom: 8px; display: block; }
.trust-card strong { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.trust-card span { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* ── Content area ── */
.content {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 28px 48px;
}

.sec-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sec-title::before,
.sec-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Package cards ── */
.packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.shop-content { padding-top: 20px; }

.shop-intro {
    text-align: center;
    margin-bottom: 28px;
    padding: 8px 0 4px;
}

.shop-intro h1 {
    font-family: var(--font-display);
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    margin-bottom: 8px;
}

.shop-intro p {
    font-size: 13px;
    color: var(--text-muted);
}

.pkg {
    position: relative;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-panel) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 16px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.pkg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--ember));
    opacity: 0;
    transition: opacity 0.28s;
}

.pkg:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--border-strong);
    box-shadow: 0 20px 50px rgba(212, 160, 32, 0.15);
}

.pkg:hover::before { opacity: 1; }

.pkg.sel {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--glow), 0 20px 50px rgba(212, 160, 32, 0.2);
}

.pkg.sel::before { opacity: 1; }

.pkg-coin-icon {
    font-size: 32px;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 12px rgba(212,160,32,0.4));
}

.pkg-coins {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.pkg-coins-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; }

.pkg-ratio {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 6px;
}

.pkg-body { flex: 1; }

.pkg-price-wrap {
    margin-top: auto;
    padding: 14px 12px;
    background: linear-gradient(135deg, rgba(212, 160, 32, 0.14), rgba(232, 124, 44, 0.08));
    border: 1px solid rgba(212, 160, 32, 0.38);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.pkg-price-eur {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
}

.pkg-price-currency {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.pkg-price {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 700;
}

.pkg-price small { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.pkg.popular { border-color: rgba(232, 124, 44, 0.45); }
.pkg.popular::before { opacity: 1; background: linear-gradient(90deg, var(--ember), var(--gold-light)); }

.pkg-popular-tag {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--ember), var(--gold));
    color: #1a1008;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 0;
}

.pkg-bonus {
    margin-top: 10px;
    margin-bottom: 4px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(212, 160, 32, 0.06);
    border: 1px solid rgba(212, 160, 32, 0.12);
    font-size: 11px;
}

.brow { display: flex; justify-content: space-between; padding: 2px 0; color: var(--text-muted); }
.brow.hh { color: var(--yellow); }
.brow.ref { color: var(--gold); }
.brow.tot {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--gold-light);
    font-weight: 700;
    font-size: 12px;
}

#buy-btn { margin-top: 4px; }

/* ── Tier widget ── */
.tier-widget {
    background: linear-gradient(135deg, var(--bg-panel), var(--bg-card));
    border: 1px solid rgba(212, 160, 32, 0.25);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.tier-top-left { display: flex; align-items: center; gap: 14px; }
.tier-icon { font-size: 36px; animation: emblemFloat 3s ease-in-out infinite; }
.tier-title { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--gold-light); letter-spacing: 2px; }
.tier-subtitle { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.tier-bonus-box {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    text-align: center;
    background: rgba(212, 160, 32, 0.12);
    border: 1px solid rgba(212, 160, 32, 0.35);
}

.tier-bonus-value { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--gold-light); }
.tier-bonus-label { font-size: 8px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

.tier-bar { height: 10px; background: rgba(255,255,255,0.06); border-radius: 8px; overflow: hidden; }
.tier-bar-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
}

.tier-bar-info { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; }
.tier-levels { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }

.tier-lvl {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-dim);
}

.tier-lvl.reached { background: rgba(212,160,32,0.08); border-color: rgba(212,160,32,0.25); color: var(--gold-light); }
.tier-lvl.active { background: rgba(232,124,44,0.12); border-color: rgba(232,124,44,0.4); color: var(--ember); box-shadow: 0 0 12px rgba(232,124,44,0.15); }

/* ── Modals ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    width: 480px;
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px;
    animation: modalIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(24px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.28);
    color: var(--red);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover { background: rgba(248, 113, 113, 0.2); transform: scale(1.08); }

.modal-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }

/* Checkout steps */
.checkout-steps {
    display: flex;
    gap: 0;
    margin-bottom: 22px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.checkout-step {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border);
    transition: all 0.2s;
}

.checkout-step:last-child { border-right: none; }
.checkout-step.active { background: rgba(212,160,32,0.12); color: var(--gold-light); }
.checkout-step.done { color: var(--green); }

.summary {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 18px;
    font-size: 13px;
}

.srow { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--text-muted); }
.srow.tot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-weight: 700; color: var(--text); font-size: 14px; }
.srow.tot strong { color: var(--gold-light); }

.mlabel {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.mcard {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px 9px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mcard svg, .mcard .pay-icon { width: 50px; height: 50px; color: var(--text-muted); margin: 0 auto 5px; display: block; object-fit: contain; border-radius: 3px; }
.mcard span { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

.mcard:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212,160,32,0.1);
}

.mcard.sel {
    border-color: var(--gold);
    background: rgba(212, 160, 32, 0.1);
    box-shadow: 0 0 0 2px var(--glow);
}

.mcard.sel svg,
.mcard.sel .pay-icon { color: var(--gold-light); filter: brightness(1.2) drop-shadow(0 0 4px rgba(212,160,32,.3)); }
.mcard.sel span { color: var(--gold-light); }

/* Precio local al seleccionar método */
#local-price-box {
    margin: -4px 0 12px;
    animation: localPriceIn 0.25s ease;
}
@keyframes localPriceIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.local-price-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(212,160,32,0.08);
    border: 1px solid rgba(212,160,32,0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}
.local-price-inner span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.local-price-inner strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.3px;
}

/* Pulso en métodos de pago hasta que se seleccione uno */
@keyframes mcardPulse {
    0%   { box-shadow: 0 0 0 0 rgba(212,160,32,0.55), 0 0 0 0 rgba(212,160,32,0.25); transform: scale(1); }
    50%  { box-shadow: 0 0 0 6px rgba(212,160,32,0.15), 0 0 14px 4px rgba(212,160,32,0.12); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(212,160,32,0), 0 0 0 0 rgba(212,160,32,0); transform: scale(1); }
}
.methods.pulsing .mcard:not(.sel) {
    animation: mcardPulse 1.4s ease-in-out infinite;
}
.methods.pulsing .mcard:not(.sel):nth-child(2) { animation-delay: 0.18s; }
.methods.pulsing .mcard:not(.sel):nth-child(3) { animation-delay: 0.36s; }
.methods.pulsing .mcard:not(.sel):nth-child(4) { animation-delay: 0.54s; }
.methods.pulsing .mcard:not(.sel):nth-child(5) { animation-delay: 0.72s; }

/* Terms box — enhanced */
.terms-box {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(192, 57, 43, 0.06);
    border: 1px solid rgba(192, 57, 43, 0.22);
    transition: border-color 0.2s, background 0.2s;
}

.terms-box.accepted {
    background: rgba(52, 211, 153, 0.06);
    border-color: rgba(52, 211, 153, 0.28);
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.terms-row input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-strong);
    border-radius: 5px;
    background: var(--bg-panel);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
    position: relative;
}

.terms-row input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--gold), var(--ember));
    border-color: var(--gold);
}

.terms-row input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.terms-row label {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.55;
}

.terms-row a { color: var(--gold-light); text-decoration: underline; font-weight: 600; }
.terms-row strong { color: var(--text); display: block; margin-top: 4px; font-size: 11px; }

.terms-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    font-size: 11px;
    color: var(--yellow);
}

/* ── TOS Modal ── */
.tos-box {
    width: 640px;
    max-width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.tos-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.tos-header h2 {
    font-size: 17px;
    font-weight: 700;
}

.tos-header .ornament { color: var(--gold); margin-right: 8px; font-size: 12px; }

.tos-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.tos-updated { font-size: 11px; color: var(--text-muted); margin-bottom: 18px; }

.tos-section { margin-bottom: 22px; }

.tos-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ember);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tos-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--ember));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.tos-section p,
.tos-section li { font-size: 12px; color: var(--text-muted); line-height: 1.75; }
.tos-section ul { padding-left: 20px; margin-top: 6px; }
.tos-section li { margin-bottom: 4px; }
.tos-section strong { color: var(--text); }

.tos-highlight {
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.25);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 10px 0;
}

.tos-highlight p { color: var(--text); font-weight: 600; }
.tos-highlight strong { color: var(--red); }

.tos-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    font-size: 10px;
    color: var(--text-dim);
}

/* ── Discord FAB ── */
.discord-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--ember));
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 28px var(--glow);
    transition: all 0.3s;
}

.discord-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(212,160,32,0.55); }
.discord-btn svg { width: 20px; height: 20px; fill: #fff; }

/* ── Toast ── */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; pointer-events: none; }

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(26, 20, 12, 0.96);
    border: 1px solid rgba(212, 160, 32, 0.35);
    box-shadow: 0 16px 50px rgba(0,0,0,0.5);
    min-width: 300px;
    max-width: 400px;
    animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.hiding { animation: toastOut 0.3s ease forwards; }

@keyframes toastOut {
    to { opacity: 0; transform: translateX(60px); }
}

.toast-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--ember));
    animation: toastBar 6s linear forwards;
}

@keyframes toastBar { from { width: 100%; } to { width: 0; } }

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(7, 5, 4, 0.8);
    padding: 28px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.footer-brand strong { display: block; font-family: var(--font-display); font-size: 15px; }
.footer-brand span { font-size: 11px; color: var(--text-muted); }

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.footer-links a { color: var(--gold-light); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-dot { color: var(--text-dim); }
.footer-copy { font-size: 11px; color: var(--text-dim); }

/* ── Login page ── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 160, 32, 0.06), transparent 60%), var(--bg-deep);
}

.login-page #lang-slider {
    top: 12px;
    right: 12px;
    left: auto;
}

.login-shell {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
    background: var(--bg-card);
}

.login-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    background: linear-gradient(165deg, var(--bg-panel) 0%, var(--bg-deep) 100%);
    border-right: 1px solid var(--border);
}

.login-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(212, 160, 32, 0.08), transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(232, 124, 44, 0.06), transparent 40%);
    pointer-events: none;
}

.login-visual-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    text-align: center;
}

.login-brand-mark {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 0 40px var(--glow);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.login-brand-logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 100px;
    margin: 0 auto 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px var(--glow));
}

.login-brand-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.1;
}

.login-brand-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.login-brand-tagline {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 28px;
    padding: 0 8px;
}

.login-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 160, 32, 0.12);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.login-features li span {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 40px;
    background: var(--bg-card);
}

.login-form-inner {
    width: 100%;
    max-width: 340px;
}

.login-form-head {
    margin-bottom: 28px;
}

.login-form-head h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 6px;
    line-height: 1.15;
}

.login-form-head p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.login-error {
    margin: 0 0 16px;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 4px;
}

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.field {
    position: relative;
    margin-bottom: 16px;
}

.field svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.login-form .field {
    margin-bottom: 0;
}

.login-form .field svg {
    top: auto;
    bottom: 13px;
    transform: none;
}

.field input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--glow);
}

.login-ref-block {
    margin-top: 14px;
}

.toggle-ref {
    font-size: 12px;
    color: var(--gold);
    cursor: pointer;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-body);
    opacity: 0.85;
}

.toggle-ref:hover {
    opacity: 1;
    text-decoration: underline;
}

#ref-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.2s ease;
    margin-top: 0;
}

#ref-container.active {
    max-height: 100px;
    opacity: 1;
    margin-top: 12px;
}

.login-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-muted);
}

.login-terms input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--gold);
}

.login-terms a {
    color: var(--gold-light);
}

.login-terms:has(input:checked) {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.04);
}

.login-submit {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-captcha {
    display: flex;
    justify-content: center;
    transform: scale(0.92);
    transform-origin: center top;
}

.error-box {
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.28);
    color: var(--red);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.error-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Success page ── */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.success-card {
    width: 500px;
    max-width: 100%;
    padding: 44px 40px;
    text-align: center;
    animation: modalIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.check-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--ember));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 0 50px var(--glow);
    animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(212,160,32,0.4); }
    50% { box-shadow: 0 0 60px rgba(212,160,32,0.7); }
}

.check-ring svg { width: 40px; height: 40px; stroke: #fff; stroke-width: 3; fill: none; }

.coins-display {
    margin: 24px 0;
    padding: 24px;
    border-radius: var(--radius-md);
    background: rgba(212, 160, 32, 0.06);
    border: 1px solid rgba(212, 160, 32, 0.2);
}

.coins-big {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 56px);
    font-weight: 800;
    line-height: 1;
}

.details { border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; text-align: left; }
.detail-row { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--text-muted); }
.detail-row .value { font-weight: 600; }
.detail-row .value.green { color: var(--green); }
.detail-row .value.gold { color: var(--gold-light); }

.btn-row { display: flex; gap: 10px; }

/* ── History page ── */
.history-page .content { padding-top: 32px; }

.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.page-header p { font-size: 13px; color: var(--text-muted); }

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.stat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.filter-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-panel);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.15s;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(212, 160, 32, 0.12);
    border-color: rgba(212, 160, 32, 0.35);
    color: var(--gold-light);
}

.data-table-wrap { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
    padding: 13px 18px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.data-table tbody td {
    padding: 13px 18px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.data-table tbody tr:hover td { background: rgba(212, 160, 32, 0.04); }

.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-paypal { background: rgba(0,112,243,0.12); color: #60a5fa; }
.badge-stripe { background: rgba(99,91,255,0.12); color: #a78bfa; }
.badge-nowpayments { background: rgba(52,211,153,0.12); color: var(--green); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

/* Confetti */
.confetti-piece {
    position: fixed;
    top: -10px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
    z-index: 2;
    pointer-events: none;
}

@keyframes confettiFall {
    to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 820px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
    .login-visual {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 32px 24px 28px;
    }
    .login-brand-mark {
        width: 72px;
        height: 72px;
        font-size: 32px;
        margin-bottom: 14px;
    }
    .login-brand-name { font-size: 24px; }
    .login-brand-tagline { margin-bottom: 20px; }
    .login-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .login-features li {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
        padding: 9px 12px;
        font-size: 12px;
    }
    .login-form-panel {
        padding: 28px 24px 32px;
    }
    .login-form-inner { max-width: 100%; }
}

@media (max-width: 900px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .packages { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 768px) {
    .topbar { padding: 0 16px; height: 58px; }
    .tb-coins .label { display: none; }
    .tb-user { display: none; }
    .tb-link span { display: none; }
    .content { padding: 20px 16px 40px; }
    .packages { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
    .trust-grid { margin: 0 auto 24px; padding: 0 16px; }
    .hero { padding: 36px 20px 32px; }
}

@media (max-width: 480px) {
    .packages { grid-template-columns: 1fr 1fr; }
    .methods { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .btn-row { flex-direction: column; }
    .discord-btn span { display: none; }
    .discord-btn { padding: 14px; border-radius: 50%; }
    .tos-footer { flex-direction: column; text-align: center; }
}
