/* AeroGreen — tema escuro premium com glassmorphism e gradientes refinados */
:root {
    --bg: #0d0b12;
    --bg-2: #06050a;
    --card: rgba(15, 12, 22, .85);
    --card-solid: #0f0c16;
    --card-2: #141019;
    --glass: rgba(255, 255, 255, .03);
    --glass-border: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .07);
    --text: rgba(255, 255, 255, .88);
    --muted: rgba(255, 255, 255, .5);
    --pink: #e14eca;
    --violet: #ba54f5;
    --purple: #8a2be2;
    --deep: #5603ad;
    --blue: #1d8cf8;
    --green: #00f2c3;
    --mint: #2dce89;
    --danger: #fd5d93;
    --yellow: #ffb648;
    --grad: linear-gradient(135deg, #e14eca, #ba54f5, #e14eca);
    --grad-subtle: linear-gradient(135deg, rgba(225, 78, 202, .15), rgba(186, 84, 245, .08));
    --sidebar: linear-gradient(180deg, rgba(138, 43, 226, .35) 0%, #000 100%);
    --glow-pink: 0 0 20px rgba(225, 78, 202, .15);
    --glow-purple: 0 0 30px rgba(138, 43, 226, .12);
    --radius: 8px;
    --radius-lg: 14px;
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
}
body[data-sidebar="pink"]   { --sidebar: linear-gradient(180deg, rgba(225, 78, 202, .3) 0%, #000 100%); }
body[data-sidebar="blue"]   { --sidebar: linear-gradient(180deg, rgba(29, 140, 248, .3) 0%, #000 100%); }
body[data-sidebar="green"]  { --sidebar: linear-gradient(180deg, rgba(0, 184, 148, .3) 0%, #000 100%); }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
html, body { margin: 0; }
body { overflow-x: hidden; max-width: 100vw;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(138, 43, 226, .12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(225, 78, 202, .06), transparent),
        linear-gradient(var(--bg), var(--bg-2));
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--violet); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink); }
h1, h2, h3, h4 { color: #fff; margin: 0 0 .4em; font-weight: 600; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 .6em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; }
.ic { flex-shrink: 0; vertical-align: middle; }
code, .code { font-family: ui-monospace, Consolas, monospace; background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-border); border-radius: 6px; padding: 2px 6px; font-size: 12px; }
.code { display: block; padding: 14px; white-space: pre-wrap; word-break: break-all; }

/* ---------------------------------------------------------------- layout */
.wrapper { display: flex; min-height: 100vh; overflow-x: hidden; max-width: 100%; }

.sidebar {
    position: fixed; top: 65px; left: 16px; bottom: 8px;
    width: 188px; z-index: 20;
    background: var(--sidebar);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 0; }
.sidebar-logo { margin: 0 12px; padding: 18px 0 14px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sidebar-logo a { color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-shadow: 0 0 20px rgba(225, 78, 202, .3); }
.sidebar-nav { padding: 18px 0; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 14px;
    margin: 2px 10px; padding: 11px 12px;
    color: rgba(255, 255, 255, .7); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; line-height: 1.2;
    border-radius: 8px; transition: all var(--transition); position: relative;
}
.sidebar-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sidebar-nav a.active {
    color: #fff; background: rgba(255, 255, 255, .1);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.sidebar-nav a.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px; border-radius: 0 3px 3px 0;
    background: var(--grad);
}

.main-panel { flex: 1; margin-left: 228px; min-width: 0; display: flex; flex-direction: column; }

.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 62px; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; padding: 0 24px 0 28px;
    background: rgba(13, 11, 18, .6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.navbar .brand img { height: 28px; display: block; filter: drop-shadow(0 0 8px rgba(225, 78, 202, .3)); }
.navbar-right { display: flex; align-items: center; gap: 12px; }

.balance-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 5px 4px 12px; border-radius: 30px;
    border: 1px solid rgba(138, 43, 226, .4); background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(138, 43, 226, .1);
    transition: border-color var(--transition);
}
.balance-pill:hover { border-color: rgba(225, 78, 202, .5); }
.balance-pill strong { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.balance-refresh { background: none; border: 0; color: var(--pink); cursor: pointer; padding: 3px; display: flex; transition: transform .3s; }
.balance-refresh:hover { transform: rotate(180deg); }
.balance-refresh.spin .ic { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--grad); color: #fff; font-size: 12px; font-weight: 600;
    padding: 6px 14px; border-radius: 20px; border: 0; cursor: pointer;
    box-shadow: 0 4px 15px rgba(225, 78, 202, .25);
    transition: all var(--transition);
}
.btn-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(225, 78, 202, .35); }

.dropdown { position: relative; }
.avatar { background: none; border: 0; display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 0; }
.avatar img { width: 30px; height: 30px; border-radius: 50%; display: block; border: 2px solid rgba(255, 255, 255, .1); transition: border-color var(--transition); }
.avatar:hover img { border-color: rgba(225, 78, 202, .4); }
.caret { border: 4px solid transparent; border-top-color: rgba(255, 255, 255, .5); margin-top: 4px; transition: transform var(--transition); }
.dropdown.open .caret { transform: rotate(180deg); }
.dropdown-menu {
    display: none; position: absolute; right: 0; top: 42px; min-width: 220px;
    background: rgba(30, 30, 47, .95); border: 1px solid var(--glass-border); border-radius: 12px;
    padding: 8px; box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
    backdrop-filter: blur(20px);
    animation: dropdown-in .2s ease;
}
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-6px); } }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dropdown-head strong, .dropdown-head small { display: block; }
.dropdown-head small { color: var(--muted); font-size: 11px; }
.dropdown-menu a { display: flex; gap: 10px; align-items: center; color: var(--text); padding: 9px 12px; border-radius: 8px; font-size: 13px; transition: background var(--transition); }
.dropdown-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.content { padding: 72px 24px 20px 0; flex: 1; display: flex; flex-direction: column; gap: 24px; }
.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 24px 24px 28px 0; font-size: 11px; color: rgba(255, 255, 255, .4); }
.footer a { color: rgba(255, 255, 255, .5); transition: color var(--transition); }
.footer a:hover { color: #fff; }
.footer span a { color: var(--violet); }
.footer .ic { color: var(--pink); }

.fixed-plugin { position: fixed; top: 110px; right: 0; z-index: 40; }
.fixed-plugin > button {
    background: rgba(15, 12, 22, .8); border: 1px solid var(--glass-border); color: #fff;
    padding: 10px 11px; border-radius: 10px 0 0 10px; cursor: pointer; display: flex;
    backdrop-filter: blur(8px); transition: all var(--transition);
}
.fixed-plugin > button:hover { background: rgba(225, 78, 202, .15); border-color: rgba(225, 78, 202, .3); }
.plugin-menu {
    display: none; position: absolute; right: 54px; top: 0;
    background: rgba(30, 30, 47, .95); border-radius: 12px; padding: 16px;
    width: 210px; box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}
.fixed-plugin.open .plugin-menu { display: block; }
.plugin-menu p { font-size: 11px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; letter-spacing: .5px; }
.swatches { display: flex; gap: 10px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); cursor: pointer; transition: all var(--transition); }
.swatch:hover { transform: scale(1.15); border-color: #fff; }
.sw-purple { background: #8a2be2; } .sw-pink { background: #e14eca; } .sw-blue { background: #1d8cf8; } .sw-green { background: #00b894; }

.bottom-nav { display: none; }

/* ---------------------------------------------------------------- componentes */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: rgba(255, 255, 255, .08); }
.card.pad { padding: 20px 24px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.card-title { font-weight: 300; font-size: 1.4rem; letter-spacing: -.3px; }
.kicker { color: var(--muted); font-size: 11px; text-transform: capitalize; margin-bottom: 4px; letter-spacing: .2px; }
.kicker.up { text-transform: uppercase; letter-spacing: .8px; font-size: 10px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 12px 0 18px; }
.badge-light { background: rgba(255, 255, 255, .9); color: #111; font-size: 10px; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; letter-spacing: .3px; }
.chip { display: inline-block; background: var(--grad); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 12px; border-radius: 20px; letter-spacing: .3px; }
.chip.light { background: rgba(255, 255, 255, .92); color: #111; }
.chip.dark { background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(4px); }
.grad-text { background: linear-gradient(135deg, #a855f7, #e14eca); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-soft { background: linear-gradient(135deg, #a78bfa, #e9d5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 10px; cursor: pointer;
    font: 600 12.5px Poppins, sans-serif; color: #fff;
    padding: 11px 28px; transition: all var(--transition); position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; filter: none; }
.btn-primary { background: var(--grad); background-size: 200% 200%; box-shadow: 0 4px 18px rgba(225, 78, 202, .2); }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(225, 78, 202, .35); }
.btn-dark { background: rgba(43, 53, 83, .6); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.btn-dark:hover { background: rgba(43, 53, 83, .9); border-color: rgba(255, 255, 255, .15); }
.btn-secondary { background: rgba(255, 255, 255, .9); color: #222; }
.btn-sm { padding: 7px 18px; font-size: 12px; border-radius: 8px; }
.btn-xs { padding: 5px 12px; font-size: 11px; border-radius: 6px; }
.btn-block { width: 100%; }

label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; letter-spacing: .2px; }
.form-control {
    width: 100%; background: rgba(255, 255, 255, .03); color: #fff;
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px;
    padding: 10px 14px; font: 13px Poppins, sans-serif; outline: none;
    transition: all var(--transition);
}
.form-control:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(138, 43, 226, .12); background: rgba(255, 255, 255, .05); }
.form-control::placeholder { color: rgba(255, 255, 255, .25); }
select.form-control { background: rgba(10, 8, 16, .8); }
select.form-control option { background: #1e1e2f; }
textarea.form-control { resize: vertical; }
.form-sm { padding: 6px 10px; font-size: 12px; min-width: 80px; }
.form-xs { padding: 4px 8px; font-size: 12px; width: 90px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); }

.alert { padding: 14px 18px; border-radius: 10px; font-size: 13px; backdrop-filter: blur(4px); }
.alert a { color: #fff; text-decoration: underline; }
.alert-success { background: rgba(45, 206, 137, .1); border: 1px solid rgba(45, 206, 137, .25); color: #9ff0cb; }
.alert-danger { background: rgba(253, 93, 147, .08); border: 1px solid rgba(253, 93, 147, .25); color: #ffb3cc; }
.alert-info { background: rgba(29, 140, 248, .08); border: 1px solid rgba(29, 140, 248, .2); color: #b5d9ff; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .04); color: var(--text); vertical-align: middle; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table-striped tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.st-pending { color: var(--yellow); } .st-approved { color: var(--mint); } .st-rejected { color: var(--danger); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.tab {
    background: rgba(255, 255, 255, .04); color: var(--text);
    border: 1px solid var(--glass-border); padding: 8px 16px;
    border-radius: 8px; font: 500 12px Poppins, sans-serif; cursor: pointer;
    transition: all var(--transition);
}
.tab:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(225, 78, 202, .2); }

.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .75); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: rgba(30, 30, 47, .98); border: 1px solid var(--glass-border); border-radius: 16px; padding: 28px; width: min(720px, 100%); max-height: 90vh; overflow: auto; text-align: center; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.modal-box .table { margin: 16px 0 22px; font-size: 12px; text-align: left; }
.modal-box .table td { padding: 6px 8px; }

/* ---------------------------------------------------------------- boas-vindas */
.hero {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 28px;
    min-height: 360px; border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 80% 10%, rgba(138, 43, 226, .2), transparent 50%),
        radial-gradient(circle at 20% 90%, rgba(225, 78, 202, .08), transparent 40%),
        var(--card-solid);
    border: 1px solid var(--glass-border);
}
.hero-text { padding: 8px 0 0; max-width: 480px; }
.hero h1 { font-size: 30px; font-weight: 700; margin: 14px 0 12px; color: rgba(255, 255, 255, .9); line-height: 1.2; }
.hero .lead { font-size: 14px; font-weight: 300; line-height: 1.65; color: rgba(255, 255, 255, .6); }
.hero .lead strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.hero-actions .btn { border-radius: 30px; padding: 10px 32px; }
.tip { font-size: 11.5px; color: rgba(255, 255, 255, .4); max-width: 390px; }
.hero-side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 18px; padding: 6px 0 0; }
.hero-illus {
    position: relative; width: 264px; height: 194px;
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px;
    background: linear-gradient(135deg, rgba(42, 31, 61, .6), rgba(18, 13, 28, .8));
    overflow: hidden;
}
.il-card { position: absolute; left: 14px; top: 20px; width: 76px; height: 42px; background: rgba(59, 37, 102, .7); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.il-card i { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.il-card i:first-child { width: 60%; background: rgba(255, 255, 255, .35); }
.il-line { position: absolute; inset: 20px 8px 0 10px; width: calc(100% - 18px); }
.il-line path { fill: none; stroke: #8b5cf6; stroke-width: 2.5; filter: drop-shadow(0 0 8px #8b5cf6); }
.il-line circle { fill: #c084fc; filter: drop-shadow(0 0 6px #c084fc); }
.il-mini { position: absolute; right: 14px; bottom: 16px; width: 76px; height: 62px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; background: rgba(26, 19, 40, .8); display: flex; align-items: center; justify-content: center; }
.il-mini svg { width: 56px; } .il-mini path { fill: none; stroke: #c084fc; stroke-width: 2; }
.il-bar { position: absolute; left: 14px; bottom: 6px; width: 140px; height: 22px; background: rgba(42, 33, 64, .6); border-radius: 4px; }
.first-step { width: 100%; max-width: 596px; border: 1px solid var(--glass-border); border-radius: 12px; padding: 16px 18px; background: rgba(5, 5, 5, .6); backdrop-filter: blur(4px); }
.first-step small { color: var(--violet); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.first-step h4 { margin: 8px 0 8px; font-size: 14px; }
.first-step p { font-size: 12px; color: rgba(255, 255, 255, .5); margin-bottom: 14px; }
.progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad); border-radius: 4px; box-shadow: 0 0 10px rgba(225, 78, 202, .3); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
    position: relative;
    background: linear-gradient(180deg, rgba(23, 18, 31, .8), rgba(13, 11, 18, .9));
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 22px 22px 22px; display: flex; flex-direction: column;
    transition: all var(--transition);
}
.feature:hover { border-color: rgba(138, 43, 226, .2); box-shadow: var(--glow-purple); transform: translateY(-2px); }
.feature::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 2px; border-radius: 0 0 4px 4px; background: var(--grad); opacity: .6; }
.feature-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.num { color: var(--violet); font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.feature-ic { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(42, 24, 64, .6); border: 1px solid rgba(76, 42, 120, .4); color: #d8b4fe; }
.feature small { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.feature h3 { font-size: 16px; margin: 6px 0 10px; }
.feature p { font-size: 12.5px; color: rgba(255, 255, 255, .5); flex: 1; margin-bottom: 24px; line-height: 1.6; }
.feature .btn { border-radius: 30px; }

.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.two-col h3 { font-size: 16px; }
.checklist, .flow { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li, .flow li {
    display: flex; gap: 14px; align-items: flex-start; padding: 14px;
    border: 1px solid var(--glass-border); border-radius: 10px;
    background: rgba(8, 8, 11, .5); transition: all var(--transition);
}
.checklist li:hover, .flow li:hover { border-color: rgba(138, 43, 226, .15); background: rgba(8, 8, 11, .8); }
.checklist b, .flow b { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-size: 12px; }
.checklist h4, .flow h4 { font-size: 13.5px; margin: 0 0 4px; }
.checklist p, .flow p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.flow { margin-bottom: 18px; }

/* ---------------------------------------------------------------- histórico / velas */
.row-form { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.row-form > div { flex: 0 1 280px; }
.row-form-actions { display: flex; gap: 8px; padding-bottom: 5px; }
.head-controls { display: flex; gap: 16px; align-items: flex-end; }
.head-controls label { margin-top: 0; color: #fff; font-size: 13px; }

.candles { display: flex; flex-wrap: wrap; gap: 7px; }
.vela {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 56px; text-align: center; color: #fff;
    font-size: 12px; font-weight: 700; line-height: 1.2;
    padding: 6px 8px; border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    transition: all .15s ease;
}
.vela:hover { transform: scale(1.08); z-index: 1; }
.vela small { font-size: 9px; font-weight: 500; opacity: .85; margin-top: 2px; }
.v-blue { background: linear-gradient(135deg, #1a7ae8, #1d8cf8); }
.v-purple { background: linear-gradient(135deg, #4a03a0, #6b21a8); }
.v-pink { background: linear-gradient(135deg, #c026d3, #e14eca); }
.vela.pink-row { background: linear-gradient(135deg, #c026d3, #e14eca); }

.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.stat {
    padding: 16px 18px; display: flex; flex-direction: column; min-height: 120px;
    color: var(--text); position: relative; overflow: hidden;
}
.stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); opacity: .3; }
.stat small { color: var(--muted); font-size: 10px; letter-spacing: .3px; }
.stat label { color: rgba(255, 255, 255, .7); margin: 6px 0 8px; font-size: 12px; font-weight: 500; }
.stat strong { color: #fff; font-size: 1.5rem; font-weight: 400; letter-spacing: -.5px; }
.stat .trend-up { color: var(--green); font-size: 18px; } .stat .trend-down { color: var(--danger); font-size: 18px; }
.limits p { font-size: 11px; margin: 5px 0; color: rgba(255, 255, 255, .6); }
.limits b { color: var(--pink); font-weight: 600; }

/* painéis de análise horária */
.history-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hour-chart { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.hour-row { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.hour-row .hour-label { width: 36px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hour-row .hour-bar { flex: 1; height: 16px; border-radius: 3px; background: rgba(255, 255, 255, .04); overflow: hidden; position: relative; }
.hour-row .hour-fill { height: 100%; border-radius: 3px; background: var(--grad); min-width: 2px; transition: width .5s ease; }
.hour-row .hour-count { width: 24px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 991px) {
    .history-panels { grid-template-columns: 1fr; }
}

.game-frame iframe { width: 100%; height: 500px; border: 0; border-radius: 12px; display: block; }
.game-placeholder { border: 1px dashed rgba(59, 37, 102, .4); border-radius: 12px; padding: 50px 16px; text-align: center; color: var(--muted); }
.inline-field { display: flex; align-items: center; gap: 12px; }
.inline-field label { margin: 0; color: #fff; }
.inline-field .form-control { width: 150px; }

/* ---------------------------------------------------------------- horários */
.horarios { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.horarios-top { align-self: stretch; display: flex; justify-content: space-between; align-items: center; }
.horarios-top h2 { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.back-link { display: inline-flex; gap: 6px; align-items: center; color: var(--violet); font-size: 13px; }
.online { font-size: 12px; color: #fff; display: flex; align-items: center; gap: 6px; }
.online .ic { color: var(--mint); }
.horarios .btn { border-radius: 8px; margin: 14px 0 20px; padding: 11px 36px; }
.estimate { margin-bottom: 4px; }
.estimate p { font-size: 11px; color: rgba(255, 255, 255, .6); margin: 0; }
.estimate mark { background: none; color: #ffe600; font-weight: 700; }
.estimate strong { display: block; font-size: 30px; font-weight: 400; margin: 4px 0 24px; letter-spacing: .5px; }
.est-low { color: #8b5cf6; text-shadow: 0 0 20px rgba(139, 92, 246, .3); }
.est-high { color: #e14eca; text-shadow: 0 0 20px rgba(225, 78, 202, .3); }
.est-note { font-size: 11px; max-width: 420px; }
.phone {
    width: 270px; height: 520px; border: 3px solid rgba(168, 85, 247, .5);
    border-radius: 28px; overflow: hidden; background: #111; margin-top: 10px;
    box-shadow: 0 0 40px rgba(168, 85, 247, .15), inset 0 0 20px rgba(0, 0, 0, .3);
}
.phone iframe { width: 100%; height: 100%; border: 0; }
.phone .game-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; border: 0; font-size: 12px; }

/* ---------------------------------------------------------------- carteira */
.wallet { max-width: 520px; width: 100%; margin: 24px auto 0; text-align: center; }
.wallet.narrow { max-width: 440px; margin-top: 0; }
.wallet-title { font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 14px; letter-spacing: -.3px; }
.wallet-title.green { color: var(--mint); }
.wallet-sub { font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-bottom: 22px; }
.wallet-form { text-align: center; }
.wallet-form.left { text-align: left; }
.wallet-form .form-control { background: rgba(11, 11, 16, .6); }
.wallet-form .form-control.center { text-align: center; font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.wallet-form label { margin-top: 20px; color: rgba(255, 255, 255, .6); }
.wallet-form > label:first-of-type { margin-top: 0; }
.help { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .35); margin-top: 6px; }
.quick { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 24px; }
.quick-btn {
    flex: 1; background: rgba(43, 53, 83, .4); color: #fff; border: 1px solid var(--glass-border);
    border-radius: 8px; padding: 10px 4px; font: 600 12px Poppins, sans-serif;
    cursor: pointer; transition: all var(--transition);
}
.quick-btn:hover { background: rgba(138, 43, 226, .2); border-color: rgba(138, 43, 226, .3); transform: translateY(-1px); }
.quick-btn.tall { padding: 10px 4px; line-height: 1.35; }
.input-group { display: flex; gap: 8px; }
.input-group span { display: flex; align-items: center; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .03); }
.warn { color: #ff8a65; font-size: 11px; text-align: left; margin: 0 0 16px; }
.center-btn { display: flex; margin: 0 auto 18px; border-radius: 8px; padding: 12px 36px; }
.pix-box { background: rgba(11, 11, 16, .6); border: 1px solid var(--glass-border); border-radius: 16px; padding: 28px; text-align: center; }
.pix-amount { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: -.5px; }
.qr { display: inline-block; background: #fff; padding: 12px; border-radius: 12px; margin-bottom: 16px; box-shadow: 0 8px 32px rgba(0, 0, 0, .3); }
.qr img, .qr svg { display: block; width: 210px; height: 210px; }
.copy-row { display: flex; gap: 8px; margin-bottom: 14px; }
.copy-row .form-control { font-size: 11px; }
.tx-list { margin-top: 30px; text-align: left; }
.tx-list h4 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.tx {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--glass-border); border-radius: 10px;
    margin-bottom: 8px; color: var(--text); font-size: 12.5px;
    transition: all var(--transition); background: rgba(255, 255, 255, .02);
}
.tx:hover { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); color: #fff; }
.tx em { font-style: normal; }

/* ---------------------------------------------------------------- aulas */
.aulas-hero {
    display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: center;
    padding: 28px 32px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border);
    background:
        radial-gradient(circle at 30% 0%, rgba(124, 58, 237, .3), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(225, 78, 202, .1), transparent 40%),
        linear-gradient(135deg, #1a1030, #0d0d18 60%, #102022);
}
.aulas-hero h1 { font-size: 34px; line-height: 1.15; font-weight: 800; margin: 14px 0 12px; max-width: 520px; }
.aulas-hero p { font-size: 13px; color: rgba(255, 255, 255, .6); max-width: 500px; line-height: 1.6; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.pills span { font-size: 11px; padding: 5px 14px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); }
.aulas-hero .hero-actions .btn { border-radius: 20px; padding: 10px 30px; }
.aulas-feature {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
    height: 200px; padding: 18px; border-radius: 14px; color: #fff;
    background: linear-gradient(135deg, rgba(124, 58, 237, .8), rgba(168, 85, 247, .6) 45%, rgba(15, 118, 110, .5));
    border: 1px solid rgba(255, 255, 255, .1);
    transition: all var(--transition);
}
.aulas-feature:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(124, 58, 237, .2); }
.aulas-feature .chip { position: absolute; top: 14px; left: 14px; }
.play-dot { width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; backdrop-filter: blur(4px); }
.aulas-feature small { font-size: 9px; opacity: .7; text-transform: uppercase; letter-spacing: .5px; }
.aulas-feature strong { font-size: 15px; line-height: 1.3; }
.aulas-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.video { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #111; margin-top: 10px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.lesson { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text); transition: all var(--transition); }
.lesson:hover { border-color: rgba(138, 43, 226, .2); background: rgba(255, 255, 255, .02); }
.lesson.active { border-color: rgba(109, 40, 217, .4); background: rgba(21, 13, 36, .6); }
.lesson b { width: 34px; height: 34px; border-radius: 8px; background: rgba(42, 24, 64, .6); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; color: #d8b4fe; }
.lesson strong { display: block; font-size: 12px; color: #fff; }
.lesson small { font-size: 11px; color: var(--muted); }
.tip-box { font-size: 11.5px; padding: 14px; border-radius: 10px; background: rgba(11, 22, 20, .5); border: 1px solid rgba(18, 53, 47, .5); color: rgba(255, 255, 255, .6); line-height: 1.5; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.showcase-item { border: 1px solid var(--glass-border); border-radius: 12px; padding: 18px; background: rgba(11, 11, 16, .5); transition: all var(--transition); }
.showcase-item:hover { border-color: rgba(138, 43, 226, .2); transform: translateY(-2px); }
.showcase-item h4 { font-size: 14px; margin: 12px 0 8px; }
.showcase-item p { font-size: 12px; line-height: 1.5; }

/* ---------------------------------------------------------------- painel admin */
.painel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.painel-head h2 { font-size: 22px; margin: 0; letter-spacing: -.3px; }
.painel-head .tabs { margin: 0; }
.painel-head .tab { text-decoration: none; }
a.stat:hover { outline: 1px solid rgba(138, 43, 226, .3); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filter-row .form-control { max-width: 320px; }
.chip-link { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--glass-border); color: var(--text); font-size: 12px; transition: all var(--transition); }
.chip-link:hover { border-color: rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .04); }
.chip-link.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(225, 78, 202, .15); }
form.inline { display: inline; }
.inline-form { display: inline-flex; gap: 4px; align-items: center; }
.stack label:first-of-type { margin-top: 4px; }
.stack .btn { margin-top: 16px; }
.vela-admin { position: relative; display: inline-block; }
.vela-admin button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(253, 93, 147, .8); color: #fff; font-size: 11px; line-height: 1; cursor: pointer; display: none; }
.vela-admin:hover button { display: block; }

/* ---------------------------------------------------------------- login */
.auth-body { display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-wrap { width: 100%; max-width: 400px; }
.auth-card {
    background: rgba(0, 0, 0, .7); border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 34px 30px; box-shadow: 0 24px 80px rgba(138, 43, 226, .12);
    backdrop-filter: blur(16px);
}
.auth-logo { display: block; height: 48px; margin: 0 auto 20px; filter: drop-shadow(0 0 12px rgba(225, 78, 202, .3)); }
.auth-card h2 { text-align: center; font-size: 22px; margin-bottom: 20px; }
.auth-card .btn-block { margin-top: 24px; border-radius: 10px; padding: 12px; }
.auth-foot { text-align: center; margin: 20px 0 8px; font-size: 13px; }
.auth-support { display: block; text-align: center; font-size: 12px; color: var(--mint); margin-top: 8px; }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .sidebar { display: none; }
    .main-panel { margin-left: 0; }
    .content { padding: 72px 16px 96px; }
    .footer { padding: 0 16px 96px; }
    .navbar { padding: 0 16px; }
    .hero, .two-col, .aulas-hero, .aulas-grid { grid-template-columns: 1fr; }
    .hero-side { align-items: stretch; }
    .hero-illus { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .fixed-plugin { display: none; }
    .bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        background: rgba(10, 5, 18, .92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, .06);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .bottom-nav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
        color: rgba(255, 255, 255, .5); font-size: 9px; text-transform: uppercase;
        letter-spacing: .3px; padding: 6px 0; border-radius: 10px;
        transition: all var(--transition);
    }
    .bottom-nav a.active { color: #fff; background: rgba(225, 78, 202, .12); }
    .bottom-nav a:hover { color: rgba(255, 255, 255, .8); }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stats-grid .limits { grid-column: 1 / -1; }
    .balance-pill strong { font-size: 12px; }
    .btn-pill { padding: 5px 10px; font-size: 11px; }
    .hero h1 { font-size: 24px; }
    .hero { padding: 20px; }
    .aulas-hero { padding: 20px 16px; }
    .aulas-hero h1 { font-size: 26px; }
    .head-controls { flex-wrap: wrap; }
    .card.pad { padding: 16px; }
    .quick { gap: 6px; }
    .game-frame iframe { height: 700px; }
    .candles { gap: 5px; }
    .vela { min-width: 48px; font-size: 11px; padding: 5px 6px; }
}

/* ---------------------------------------------------------------- bet selector */
.casa-selector { display: flex; gap: 8px; margin-bottom: 16px; }
.casa-btn {
    flex: 1; padding: 10px 16px; border: 2px solid var(--line); border-radius: 10px;
    background: var(--card-solid); color: var(--muted); font-weight: 700; font-size: 13px;
    cursor: pointer; transition: all var(--transition); text-align: center;
}
.casa-btn:hover { border-color: rgba(255,255,255,.2); color: var(--text); }
.casa-btn.active { border-color: var(--pink); color: #fff; background: rgba(225,78,202,.1); box-shadow: 0 0 16px rgba(225,78,202,.15); }

.bet-selector { display: flex; gap: 8px; margin-bottom: 12px; }
.bet-btn {
    flex: 1; padding: 10px 16px; border: 2px solid var(--line); border-radius: 10px;
    background: var(--card-solid); color: var(--muted); font-weight: 700; font-size: 13px;
    cursor: pointer; transition: all var(--transition); text-align: center;
}
.bet-btn:hover { border-color: rgba(255,255,255,.2); color: var(--text); }
.bet-btn.active { border-color: var(--pink); color: #fff; background: rgba(225,78,202,.1); box-shadow: 0 0 16px rgba(225,78,202,.15); }

/* ---------------------------------------------------------------- animações */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.content > * { animation: fadeIn .4s ease backwards; }
.content > *:nth-child(2) { animation-delay: .05s; }
.content > *:nth-child(3) { animation-delay: .1s; }
.content > *:nth-child(4) { animation-delay: .15s; }
.content > *:nth-child(5) { animation-delay: .2s; }
.content > *:nth-child(6) { animation-delay: .25s; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .15); }

/* Selection */
::selection { background: rgba(225, 78, 202, .25); color: #fff; }

/* ---------------------------------------------------------------- catalogador */
.cat-badge-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #34d399; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.25); }
.cat-dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.catstrip { display: flex; gap: 5px; overflow-x: auto; padding: 10px 0; margin-top: 6px; }
.catstrip .c { flex: none; min-width: 52px; text-align: center; padding: 6px 4px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 12px; }

.catlist { display: grid; gap: 12px; margin-top: 14px; }
.catcard { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.catcard.on { border-color: rgba(52,211,153,.6); box-shadow: 0 0 24px -6px rgba(52,211,153,.45); }
.catcard .cinfo { min-width: 0; }
.catcard .cp { font-weight: 900; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.catcard .cp .cdot { width: 11px; height: 11px; border-radius: 999px; flex: none; }
.catcard .cmeta { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 5px; line-height: 1.5; }
.catcard .cmeta b { color: #fff; }

.catstatus { flex: none; text-align: center; padding: 10px 14px; border-radius: 12px; font-weight: 900; font-size: 13px; min-width: 118px; }
.catstatus.go { background: rgba(16,185,129,.16); color: #34d399; border: 1px solid rgba(52,211,153,.5); }
.catstatus.go .sub { display: block; font-size: 11px; font-weight: 700; color: #a7f3d0; margin-top: 2px; }
.catstatus.wait { background: rgba(255,255,255,.05); color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.1); }
.catstatus.wait .sub { display: block; font-size: 11px; font-weight: 700; margin-top: 2px; }

.iacard { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 18px; margin-top: 16px; background: var(--card-solid); border: 1px solid rgba(52,211,153,.5); box-shadow: 0 0 30px -10px rgba(52,211,153,.4); }
.iacard.idle { border-color: var(--line); box-shadow: none; }
.iacard .ia-h { display: flex; align-items: center; gap: 9px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .03em; }
.iacard .ia-badge { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #34d399; border: 1px solid rgba(52,211,153,.5); padding: 3px 8px; border-radius: 999px; }
.iacard .ia-big { font-size: 24px; font-weight: 900; margin-top: 8px; }
.iacard .ia-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.patcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; margin-top: 10px; }
.patcard.on { border-color: rgba(52,211,153,.6); box-shadow: 0 0 20px -6px rgba(52,211,153,.4); }
.patcard .pn { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.patcard .pn .pdot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.patcard .pmeta { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 4px; }
.patcard .seqdots { display: flex; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.patcard .seqdots i { width: 13px; height: 13px; border-radius: 4px; background: var(--card-2); border: 1px solid rgba(255,255,255,.12); }
.patcard .seqdots i.f { background: var(--pink); border-color: transparent; }

.patstatus { flex: none; text-align: center; padding: 9px 13px; border-radius: 11px; font-weight: 900; font-size: 12.5px; min-width: 104px; }
.patstatus.go { background: rgba(16,185,129,.16); color: #34d399; border: 1px solid rgba(52,211,153,.5); }
.patstatus.go .sub { display: block; font-size: 10px; font-weight: 700; color: #a7f3d0; margin-top: 2px; }
.patstatus.wait { background: rgba(255,255,255,.05); color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.1); }
.patstatus.wait .sub { display: block; font-size: 10px; font-weight: 700; margin-top: 2px; }

@media (max-width: 600px) {
    .catcard { flex-direction: column; align-items: stretch; gap: 10px; }
    .catstatus { min-width: auto; }
    .patcard { flex-direction: column; align-items: stretch; gap: 10px; }
    .patstatus { min-width: auto; }
    .iacard .ia-big { font-size: 20px; }
}
