/* =====================================================================
   GREEN TRÉBOL - Backoffice
   Paleta tomada del logo: verde bosque, verde trébol, verde hoja y dorado
   ===================================================================== */
:root {
    --gt-forest: #0E5E2B;
    --gt-forest-2: #0a4a21;
    --gt-green: #2E9E3E;
    --gt-leaf: #6CC04A;
    --gt-gold: #D9A93A;
    --gt-gold-2: #f0c75e;

    --gt-bg: #f3f7f4;
    --gt-surface: #ffffff;
    --gt-surface-2: #f7faf8;
    --gt-border: #e3ece6;
    --gt-text: #17261c;
    --gt-muted: #6b7c70;
    --gt-shadow: 0 1px 2px rgba(14, 94, 43, .05), 0 8px 24px rgba(14, 94, 43, .07);
    --gt-shadow-lg: 0 20px 50px rgba(14, 94, 43, .18);
    --gt-radius: 18px;
    --gt-sidebar-w: 264px;

    --bs-primary: #2E9E3E;
    --bs-primary-rgb: 46, 158, 62;
    --bs-success: #2E9E3E;
    --bs-success-rgb: 46, 158, 62;
    --bs-link-color: #1f8a32;
    --bs-link-color-rgb: 31, 138, 50;
    --bs-link-hover-color: #0E5E2B;
    --bs-body-font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-bg: var(--gt-bg);
    --bs-body-color: var(--gt-text);
    --bs-border-color: var(--gt-border);
}

[data-bs-theme="dark"] {
    --gt-bg: #0b140e;
    --gt-surface: #121e16;
    --gt-surface-2: #16251b;
    --gt-border: #213326;
    --gt-text: #e6efe8;
    --gt-muted: #93a699;
    --gt-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --bs-body-bg: var(--gt-bg);
    --bs-body-color: var(--gt-text);
    --bs-border-color: var(--gt-border);
    --bs-link-color: #7fd45b;
    --bs-link-color-rgb: 127, 212, 91;
    --bs-link-hover-color: #a6e68a;
    --bs-secondary-bg: var(--gt-surface-2);
    --bs-tertiary-bg: var(--gt-surface-2);
}

html, body { min-height: 100%; }
body {
    background: var(--gt-bg);
    color: var(--gt-text);
    font-family: var(--bs-body-font-family);
    font-size: .925rem;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .fw-heading { font-weight: 700; letter-spacing: -.01em; }
.text-muted, .text-secondary { color: var(--gt-muted) !important; }
.text-gold { color: var(--gt-gold) !important; }
.text-forest { color: var(--gt-forest) !important; }
[data-bs-theme="dark"] .text-forest { color: var(--gt-leaf) !important; }
.text-leaf { color: var(--gt-leaf) !important; }
.fw-800 { font-weight: 800; }
.small-caps { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--gt-muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; word-break: break-all; }

/* ---------- Botones ---------- */
.btn { border-radius: 12px; font-weight: 600; padding: .6rem 1.1rem; }
.btn-sm { border-radius: 10px; padding: .35rem .75rem; }
.btn-lg { border-radius: 14px; padding: .8rem 1.4rem; }
.btn-primary, .btn-success {
    --bs-btn-bg: var(--gt-green);
    --bs-btn-border-color: var(--gt-green);
    --bs-btn-hover-bg: #26883a;
    --bs-btn-hover-border-color: #26883a;
    --bs-btn-active-bg: var(--gt-forest);
    --bs-btn-active-border-color: var(--gt-forest);
    --bs-btn-disabled-bg: var(--gt-green);
    --bs-btn-disabled-border-color: var(--gt-green);
    background-image: linear-gradient(135deg, #36ad46 0%, #1f8a32 100%);
    border: 0;
    box-shadow: 0 6px 16px rgba(46, 158, 62, .28);
}
.btn-primary:hover, .btn-success:hover { box-shadow: 0 8px 22px rgba(46, 158, 62, .38); transform: translateY(-1px); }
.btn-gold {
    color: #3b2a00; border: 0;
    background-image: linear-gradient(135deg, var(--gt-gold-2) 0%, var(--gt-gold) 100%);
    box-shadow: 0 6px 16px rgba(217, 169, 58, .32);
}
.btn-gold:hover { color: #2a1e00; filter: brightness(1.05); transform: translateY(-1px); }
.btn-soft {
    background: rgba(46, 158, 62, .1); color: var(--gt-green); border: 0;
}
.btn-soft:hover { background: rgba(46, 158, 62, .18); color: var(--gt-forest); }
[data-bs-theme="dark"] .btn-soft { color: var(--gt-leaf); }
.btn-outline-primary { --bs-btn-color: var(--gt-green); --bs-btn-border-color: var(--gt-green); --bs-btn-hover-bg: var(--gt-green); --bs-btn-hover-border-color: var(--gt-green); }
.btn, .card-hover { transition: all .18s ease; }

/* ---------- Formularios ---------- */
.form-control, .form-select {
    border-radius: 12px; padding: .65rem .9rem; border-color: var(--gt-border);
    background-color: var(--gt-surface);
}
.form-control:focus, .form-select:focus {
    border-color: var(--gt-leaf);
    box-shadow: 0 0 0 .25rem rgba(108, 192, 74, .18);
}
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.input-group-text { border-radius: 12px; background: var(--gt-surface-2); border-color: var(--gt-border); color: var(--gt-muted); }
.form-check-input:checked { background-color: var(--gt-green); border-color: var(--gt-green); }
.form-switch .form-check-input { width: 2.6em; height: 1.35em; }

/* ---------- Tarjetas ---------- */
.card {
    background: var(--gt-surface);
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-shadow);
}
.card-header {
    background: transparent; border-bottom: 1px solid var(--gt-border);
    padding: 1rem 1.25rem; font-weight: 700;
}
.card-header:first-child { border-radius: var(--gt-radius) var(--gt-radius) 0 0; }
.card-body { padding: 1.25rem; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--gt-shadow-lg); }

.stat-card { position: relative; overflow: hidden; }
.stat-card .stat-icon {
    width: 46px; height: 46px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
    background: rgba(46, 158, 62, .12); color: var(--gt-green);
}
.stat-card .stat-icon.gold { background: rgba(217, 169, 58, .15); color: #b8871c; }
.stat-card .stat-icon.blue { background: rgba(59, 130, 246, .12); color: #2f6fd6; }
.stat-card .stat-icon.purple { background: rgba(139, 92, 246, .12); color: #7c4ddb; }
.stat-card .stat-icon.red { background: rgba(220, 53, 69, .12); color: #d63447; }
.stat-card .stat-value { font-size: 1.55rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat-card .stat-label { font-size: .78rem; color: var(--gt-muted); font-weight: 600; }

/* Tarjeta principal (balance) */
.hero-card {
    position: relative; overflow: hidden; color: #fff; border: 0;
    background: radial-gradient(circle at 85% 15%, rgba(240, 199, 94, .35) 0, transparent 42%),
                linear-gradient(135deg, #0E5E2B 0%, #15803d 55%, #2E9E3E 100%);
    box-shadow: 0 18px 40px rgba(14, 94, 43, .35);
}
.hero-card::after {
    content: ""; position: absolute; right: -40px; bottom: -60px; width: 240px; height: 240px;
    background: url('../img/icon.png') no-repeat center/contain; opacity: .09; transform: rotate(-12deg);
}
.hero-card .hero-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero-card .hero-sub { color: rgba(255, 255, 255, .78); font-size: .82rem; font-weight: 600; }
.hero-card .hero-pill {
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px; padding: .7rem .9rem; backdrop-filter: blur(4px);
}
.hero-card .btn-light { color: var(--gt-forest); font-weight: 700; }
.hero-card .btn-outline-light { border-color: rgba(255, 255, 255, .5); }

/* ---------- Layout: sidebar ---------- */
.gt-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--gt-sidebar-w); z-index: 1040;
    background: linear-gradient(180deg, #0E5E2B 0%, #0a4a21 60%, #083a1a 100%);
    color: #d8eadc; display: flex; flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .08);
}
.gt-sidebar .brand {
    display: flex; align-items: center; gap: .7rem; padding: 1.3rem 1.3rem 1.1rem; text-decoration: none;
}
.gt-sidebar .brand img { width: 44px; height: 44px; background: #fff; border-radius: 12px; padding: 4px; }
.gt-sidebar .brand .brand-text { line-height: 1; color: #fff; font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; }
.gt-sidebar .brand .brand-text small { display: block; color: var(--gt-gold-2); font-size: .64rem; letter-spacing: .18em; margin-top: 4px; font-weight: 700; }
.gt-sidebar .nav-section { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(216, 234, 220, .5); padding: 1rem 1.5rem .4rem; font-weight: 700; }
.gt-sidebar .nav { padding: 0 .8rem; overflow-y: auto; flex: 1; flex-wrap: nowrap; }
.gt-sidebar .nav-link {
    color: rgba(230, 242, 233, .82); border-radius: 12px; padding: .68rem .9rem; margin-bottom: 2px;
    display: flex; align-items: center; gap: .8rem; font-weight: 600; font-size: .88rem;
}
.gt-sidebar .nav-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; opacity: .9; }
.gt-sidebar .nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.gt-sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(108, 192, 74, .32), rgba(46, 158, 62, .18));
    color: #fff; box-shadow: inset 3px 0 0 var(--gt-gold);
}
.gt-sidebar .nav-link .badge { margin-left: auto; }
.gt-sidebar .sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.gt-sidebar .ref-mini {
    background: rgba(255, 255, 255, .07); border-radius: 14px; padding: .8rem; font-size: .78rem;
}

.gt-main { margin-left: var(--gt-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.gt-topbar {
    position: sticky; top: 0; z-index: 1030;
    background: color-mix(in srgb, var(--gt-bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--gt-border);
    padding: .8rem 1.6rem; display: flex; align-items: center; gap: 1rem;
}
.gt-topbar .page-title { font-size: 1.15rem; font-weight: 800; margin: 0; }
.gt-topbar .page-sub { font-size: .78rem; color: var(--gt-muted); }
.gt-content { padding: 1.6rem; flex: 1; }
.gt-footer { padding: 1rem 1.6rem 1.4rem; font-size: .78rem; color: var(--gt-muted); }

.avatar {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .82rem; color: #fff;
    background: linear-gradient(135deg, var(--gt-leaf), var(--gt-forest));
}
.avatar.sm { width: 30px; height: 30px; border-radius: 10px; font-size: .7rem; }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.3rem; }
.avatar.gold { background: linear-gradient(135deg, var(--gt-gold-2), var(--gt-gold)); color: #3b2a00; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--gt-border);
    background: var(--gt-surface); color: var(--gt-text);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.icon-btn:hover { border-color: var(--gt-leaf); color: var(--gt-green); }

/* Navegación inferior móvil */
.gt-bottom-nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    background: var(--gt-surface); border-top: 1px solid var(--gt-border);
    padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .06);
}
.gt-bottom-nav a {
    flex: 1; text-align: center; text-decoration: none; color: var(--gt-muted);
    font-size: .66rem; font-weight: 700; padding: .35rem 0; border-radius: 12px;
}
.gt-bottom-nav a i { display: block; font-size: 1.3rem; line-height: 1.2; }
.gt-bottom-nav a.active { color: var(--gt-green); }
.gt-bottom-nav a.active i { transform: translateY(-1px); }
.gt-bottom-nav a.center i {
    width: 48px; height: 48px; margin: -24px auto 2px; border-radius: 16px; line-height: 48px; font-size: 1.4rem;
    color: #fff; background: linear-gradient(135deg, #36ad46, #0E5E2B); box-shadow: 0 8px 18px rgba(46, 158, 62, .4);
}

@media (max-width: 991.98px) {
    .gt-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .gt-sidebar.show { transform: none; }
    .gt-main { margin-left: 0; }
    .gt-content { padding: 1rem 1rem 6.5rem; }
    .gt-topbar { padding: .7rem 1rem; }
    .gt-footer { padding-bottom: 6rem; }
    .gt-bottom-nav { display: flex; }
    .hero-card .hero-amount { font-size: 2rem; }
}
.sidebar-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(5, 20, 10, .5); z-index: 1039;
}
.sidebar-backdrop.show { display: block; }

/* ---------- Tablas ---------- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--gt-text); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .8rem 1rem; border-bottom-color: var(--gt-border); vertical-align: middle; }
.table thead th {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gt-muted);
    font-weight: 700; background: var(--gt-surface-2); border-bottom: 1px solid var(--gt-border); white-space: nowrap;
}
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(46, 158, 62, .04); }
.table-responsive { border-radius: 0 0 var(--gt-radius) var(--gt-radius); }

.badge { font-weight: 700; border-radius: 8px; padding: .38em .65em; font-size: .72em; letter-spacing: .02em; }
.badge-soft-success { background: rgba(46, 158, 62, .14); color: #1f7f31; }
.badge-soft-warning { background: rgba(217, 169, 58, .18); color: #9a6d0c; }
.badge-soft-danger { background: rgba(220, 53, 69, .13); color: #c42a3b; }
.badge-soft-info { background: rgba(13, 148, 190, .13); color: #0b7ea3; }
.badge-soft-primary { background: rgba(59, 130, 246, .13); color: #2f6fd6; }
.badge-soft-secondary { background: rgba(108, 117, 125, .14); color: #5d6770; }
[data-bs-theme="dark"] .badge-soft-success { color: #7fd45b; }
[data-bs-theme="dark"] .badge-soft-warning { color: #f0c75e; }
[data-bs-theme="dark"] .badge-soft-danger { color: #ff8391; }
[data-bs-theme="dark"] .badge-soft-info { color: #5fd0f3; }
[data-bs-theme="dark"] .badge-soft-primary { color: #8db6ff; }
[data-bs-theme="dark"] .badge-soft-secondary { color: #b4bcc3; }

.amount-pos { color: #1f8a32; font-weight: 700; }
.amount-neg { color: #d63447; font-weight: 700; }
[data-bs-theme="dark"] .amount-pos { color: var(--gt-leaf); }

.empty-state { text-align: center; padding: 2.6rem 1rem; color: var(--gt-muted); }
.empty-state i { font-size: 2.6rem; color: var(--gt-leaf); opacity: .6; display: block; margin-bottom: .6rem; }

.alert { border-radius: 14px; border: 0; }
.alert-success { background: rgba(46, 158, 62, .12); color: #17692a; }
.alert-danger { background: rgba(220, 53, 69, .1); color: #a3222f; }
.alert-warning { background: rgba(217, 169, 58, .15); color: #7c5608; }
.alert-info { background: rgba(13, 148, 190, .1); color: #0a6784; }
[data-bs-theme="dark"] .alert-success { color: #9be07c; }
[data-bs-theme="dark"] .alert-danger { color: #ff9aa5; }
[data-bs-theme="dark"] .alert-warning { color: #f3d27f; }
[data-bs-theme="dark"] .alert-info { color: #7fd8f5; }

.dropdown-menu {
    border-radius: 14px; border: 1px solid var(--gt-border); box-shadow: var(--gt-shadow-lg);
    padding: .4rem; background: var(--gt-surface);
}
.dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-weight: 600; font-size: .86rem; }
.dropdown-item:active { background: var(--gt-green); }
.modal-content { border-radius: 20px; border: 0; background: var(--gt-surface); }
.nav-pills .nav-link { border-radius: 12px; font-weight: 600; color: var(--gt-muted); }
.nav-pills .nav-link.active { background: var(--gt-green); }
.pagination .page-link { border-radius: 10px !important; margin: 0 2px; border: 0; color: var(--gt-text); background: transparent; font-weight: 600; }
.pagination .active .page-link { background: var(--gt-green); color: #fff; }
.progress { border-radius: 99px; background: rgba(46, 158, 62, .1); height: 8px; }
.progress-bar { background: linear-gradient(90deg, var(--gt-leaf), var(--gt-green)); border-radius: 99px; }
.progress-bar.gold { background: linear-gradient(90deg, var(--gt-gold-2), var(--gt-gold)); }

/* ---------- Enlace de referido ---------- */
.ref-box {
    display: flex; align-items: center; gap: .5rem;
    background: var(--gt-surface-2); border: 1px dashed rgba(46, 158, 62, .45);
    border-radius: 14px; padding: .45rem .45rem .45rem .9rem;
}
.ref-box input { border: 0; background: transparent; flex: 1; min-width: 0; font-weight: 600; color: var(--gt-text); font-size: .85rem; outline: none; }
.btn-whatsapp { background: #25D366; color: #fff; border: 0; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }

/* ---------- Planes ---------- */
.plan-card { position: relative; overflow: hidden; text-align: center; }
.plan-card .plan-top {
    padding: 1.5rem 1rem 1.1rem;
    background: linear-gradient(160deg, rgba(108, 192, 74, .16), rgba(46, 158, 62, .03));
}
.plan-card .plan-icon { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(14, 94, 43, .25)); }
.plan-card .plan-price { font-size: 2rem; font-weight: 800; color: var(--gt-forest); letter-spacing: -.03em; }
[data-bs-theme="dark"] .plan-card .plan-price { color: var(--gt-leaf); }
.plan-card .plan-price small { font-size: .9rem; color: var(--gt-muted); font-weight: 700; }
.plan-card .plan-features { list-style: none; padding: 0; margin: 0; text-align: left; font-size: .84rem; }
.plan-card .plan-features li { padding: .35rem 0; display: flex; gap: .5rem; align-items: center; }
.plan-card .plan-features i { color: var(--gt-green); }
.plan-card.featured { border: 2px solid var(--gt-gold); }
.plan-card .ribbon {
    position: absolute; top: 14px; right: -34px; transform: rotate(45deg);
    background: linear-gradient(135deg, var(--gt-gold-2), var(--gt-gold)); color: #3b2a00;
    font-size: .62rem; font-weight: 800; letter-spacing: .08em; padding: .25rem 2.4rem;
}

/* ---------- Pago QR ---------- */
.qr-wrap {
    background: #fff; border-radius: 20px; padding: 16px; display: inline-block;
    box-shadow: 0 10px 30px rgba(14, 94, 43, .15); border: 1px solid var(--gt-border);
}
.qr-wrap canvas, .qr-wrap img { display: block; width: 220px; height: 220px; }
.pay-steps { display: flex; justify-content: space-between; position: relative; margin: 0 0 1.4rem; }
.pay-steps::before { content: ""; position: absolute; top: 17px; left: 12%; right: 12%; height: 3px; background: var(--gt-border); z-index: 0; }
.pay-step { position: relative; z-index: 1; text-align: center; flex: 1; font-size: .72rem; font-weight: 700; color: var(--gt-muted); }
.pay-step .dot {
    width: 36px; height: 36px; border-radius: 50%; margin: 0 auto .35rem; display: flex; align-items: center; justify-content: center;
    background: var(--gt-surface); border: 3px solid var(--gt-border); font-size: 1rem;
}
.pay-step.done .dot { background: var(--gt-green); border-color: var(--gt-green); color: #fff; }
.pay-step.current .dot { border-color: var(--gt-gold); color: var(--gt-gold); animation: pulse 1.6s infinite; }
.pay-step.done, .pay-step.current { color: var(--gt-text); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217, 169, 58, .5); } 70% { box-shadow: 0 0 0 12px rgba(217, 169, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 169, 58, 0); } }
.network-chip {
    display: inline-flex; align-items: center; gap: .4rem; background: rgba(130, 71, 229, .1); color: #7b3fe4;
    padding: .3rem .7rem; border-radius: 99px; font-weight: 700; font-size: .78rem;
}
[data-bs-theme="dark"] .network-chip { color: #b48cff; }

/* ---------- Árbol de red ---------- */
.tree-level { position: relative; }
.tree-node {
    display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 14px;
    background: var(--gt-surface); border: 1px solid var(--gt-border); margin-bottom: .5rem;
}
.tree-node .lvl { font-size: .62rem; font-weight: 800; padding: .2rem .45rem; border-radius: 6px; }
.tree-children { margin-left: 1.3rem; padding-left: 1.1rem; border-left: 2px dashed rgba(46, 158, 62, .3); }
.tree-toggle { border: 0; background: rgba(46, 158, 62, .1); color: var(--gt-green); border-radius: 8px; width: 28px; height: 28px; }
.level-chip { border-radius: 14px; padding: 1rem; text-align: center; border: 1px solid var(--gt-border); background: var(--gt-surface); }
.level-chip .n { font-size: 1.6rem; font-weight: 800; }
.l1 { background: rgba(46, 158, 62, .14); color: #1f7f31; }
.l2 { background: rgba(217, 169, 58, .18); color: #9a6d0c; }
.l3 { background: rgba(59, 130, 246, .13); color: #2f6fd6; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-side {
    flex: 1.1; position: relative; overflow: hidden; color: #fff; padding: 3rem;
    display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(circle at 80% 20%, rgba(240, 199, 94, .35) 0, transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(108, 192, 74, .35) 0, transparent 45%),
                linear-gradient(145deg, #083a1a 0%, #0E5E2B 50%, #1f8a32 100%);
}
.auth-side::after {
    content: ""; position: absolute; right: -120px; bottom: -120px; width: 520px; height: 520px;
    background: url('../img/icon.png') no-repeat center/contain; opacity: .1; transform: rotate(-15deg);
}
.auth-side h2 { font-size: 2.3rem; font-weight: 800; line-height: 1.15; max-width: 460px; }
.auth-side .feat { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; max-width: 420px; }
.auth-side .feat i {
    width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .14); color: var(--gt-gold-2); flex-shrink: 0; font-size: 1.1rem;
}
.auth-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1.2rem; background: var(--gt-bg); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .logo { width: 110px; }
@media (max-width: 991.98px) {
    .auth-side { display: none; }
}

/* ---------- Utilidades ---------- */
.copy-btn { cursor: pointer; }
.divider-text { display: flex; align-items: center; gap: .8rem; color: var(--gt-muted); font-size: .75rem; font-weight: 600; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--gt-border); }
.list-clean { list-style: none; padding: 0; margin: 0; }
.info-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--gt-border); font-size: .88rem; }
.info-row:last-child { border-bottom: 0; }
.info-row span:first-child { color: var(--gt-muted); }
.info-row span:last-child { font-weight: 700; text-align: right; }
.fade-up { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.toast-container { z-index: 1100; }
.chart-box { position: relative; height: 280px; }
.row-frozen { background: rgba(220, 53, 69, .06); }
.fraud-flag { color: #d63447; font-weight: 700; }
.batch-bar {
    position: sticky; bottom: 1rem; z-index: 20; border-radius: 16px; padding: .9rem 1.1rem;
    background: var(--gt-forest); color: #fff; box-shadow: var(--gt-shadow-lg);
}
@media (max-width: 991.98px) { .batch-bar { bottom: 5.5rem; } }

/* ---------- Rangos de reconocimiento ---------- */
.rank-badge {
    display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; font-size: .72rem; letter-spacing: .04em;
    padding: .32rem .7rem; border-radius: 99px; white-space: nowrap; border: 1px solid transparent;
}
.rank-badge.lg { font-size: .9rem; padding: .5rem 1rem; }
.rank-0 { background: rgba(108, 117, 125, .12); color: #5d6770; }
.rank-1 { background: rgba(46, 158, 62, .14); color: #1f7f31; border-color: rgba(46, 158, 62, .3); }
.rank-2 { background: rgba(13, 148, 190, .13); color: #0b7ea3; border-color: rgba(13, 148, 190, .3); }
.rank-3 { background: rgba(124, 77, 219, .13); color: #6b3fd0; border-color: rgba(124, 77, 219, .3); }
.rank-4 { background: linear-gradient(135deg, #f0c75e, #d9a93a); color: #3b2a00; box-shadow: 0 4px 12px rgba(217, 169, 58, .35); }
.rank-5 { background: linear-gradient(135deg, #0E5E2B, #2E9E3E 55%, #D9A93A); color: #fff; box-shadow: 0 4px 14px rgba(14, 94, 43, .4); }
[data-bs-theme="dark"] .rank-0 { color: #b4bcc3; }
[data-bs-theme="dark"] .rank-1 { color: #7fd45b; }
[data-bs-theme="dark"] .rank-2 { color: #5fd0f3; }
[data-bs-theme="dark"] .rank-3 { color: #b49bff; }
.rank-steps { display: flex; gap: .35rem; }
.rank-steps span { flex: 1; height: 6px; border-radius: 99px; background: rgba(46, 158, 62, .12); }
.rank-steps span.on { background: linear-gradient(90deg, var(--gt-gold-2), var(--gt-gold)); }

/* ---------- Botones flotantes de comunidad ---------- */
.gt-social-float { position: fixed; right: 16px; bottom: 16px; z-index: 1038; display: flex; flex-direction: column; gap: .55rem; }
.gt-social-float a { width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.45rem; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); transition: transform .15s ease; }
.gt-social-float a:hover { transform: scale(1.08); color: #fff; }
.gt-social-float .wa { background: #25D366; }
.gt-social-float .tg { background: #229ED9; }
@media (max-width: 991.98px) { .gt-social-float { bottom: calc(5.2rem + env(safe-area-inset-bottom)); } }
