.mode-hidden { display: none !important; }
﻿/* ═══════════════════════════════════════════════════════
   BYPASS — New CSS Theme (complete rewrite)
   ═══════════════════════════════════════════════════════ */
* { margin:0; padding:0; box-sizing:border-box; }

:root {
    --bg:       #0a0a0a;
    --surface:  #111111;
    --surface2: #161616;
    --border:   rgba(255,255,255,0.08);
    --border2:  rgba(255,255,255,0.06);
    --accent:   #9ca3af;
    --accent2:  #6b7280;
    --accent3:  #d1d5db;
    --cyan:     #e5e7eb;
    --green:    #9ca3af;
    --amber:    #f59e0b;
    --red:      #ef4444;
    --text:     #e2e8f0;
    --text2:    #9ca3af;
    --text3:    #4b5563;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow: hidden;
}

#grid-bg { display:none; }
.orb     { display:none; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes pulseRing {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ══════════════════════════════════════════════════════
   LOGIN — SPLIT LAYOUT
   ══════════════════════════════════════════════════════ */

/* Left brand panel */
.login-brand-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.login-brand-noise {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(255,255,255,0.02) 0%, transparent 60%);
}

/* geometric decoration */
.login-brand-noise::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: pulseRing 5s ease-out infinite;
}
.login-brand-noise::after {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: pulseRing 5s ease-out 2s infinite;
}

.login-brand-content {
    position: relative; z-index: 1;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
}

.login-brand-logo {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #d1d5db;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    animation: float 4s ease-in-out infinite;
}

.login-brand-title {
    font-size: 3.5rem; font-weight: 900;
    color: #f8fafc;
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.login-brand-sub {
    font-size: 0.9rem; color: #4b5563;
    letter-spacing: 1px; margin-bottom: 3rem;
    line-height: 1.6;
}

.login-features {
    display: flex; flex-direction: column; gap: 1.1rem;
    margin-bottom: 3rem;
}

.login-feature-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    transition: all 0.25s;
}
.login-feature-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    transform: translateX(4px);
}

.login-feature-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 1rem;
    flex-shrink: 0;
}

.login-feature-title {
    font-size: 0.88rem; font-weight: 700; color: #e2e8f0;
    margin-bottom: 2px;
}
.login-feature-desc {
    font-size: 0.75rem; color: #4b5563;
}

.login-brand-footer { margin-top: auto; }

.login-whatsapp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: rgba(37,211,102,0.08);
    border: 1px solid rgba(37,211,102,0.25);
    border-radius: 10px;
    color: #25d366; font-size: 0.82rem; font-weight: 700;
    text-decoration: none; transition: all 0.2s;
}
.login-whatsapp-btn:hover {
    background: rgba(37,211,102,0.16);
    border-color: rgba(37,211,102,0.4);
    transform: translateY(-2px);
}

/* Right form panel */
.login-form-panel {
    width: 480px;
    flex-shrink: 0;
    background: var(--surface);
    border-left: 1px solid rgba(156,163,175,0.15);
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem;
    overflow-y: auto;
}

.login-form-inner {
    width: 100%;
    animation: fadeInUp 0.55s cubic-bezier(.16,1,.3,1);
}

.login-form-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(156,163,175,0.12);
    border: 1px solid rgba(156,163,175,0.25);
    border-radius: 20px;
    font-size: 0.65rem; font-weight: 800;
    color: var(--accent3); letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.login-form-title {
    font-size: 1.75rem; font-weight: 800;
    color: var(--text);
    margin-bottom: 0.4rem; line-height: 1.2;
}

.login-form-sub {
    font-size: 0.85rem; color: var(--text3);
    margin-bottom: 2rem;
}

.lf-group { margin-bottom: 1.35rem; }

.lf-label {
    display: block; font-size: 0.78rem; font-weight: 700;
    color: var(--text2); margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.lf-input {
    width: 100%; padding: 13px 16px;
    background: rgba(6,7,13,0.8);
    border: 1px solid rgba(156,163,175,0.18);
    border-radius: 10px; color: var(--text);
    font-size: 0.92rem; transition: all 0.25s ease;
    outline: none;
}
.lf-input:focus {
    border-color: var(--accent);
    background: rgba(6,7,13,0.95);
    box-shadow: 0 0 0 3px rgba(156,163,175,0.12);
}

.lf-btn-submit {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #e2e8f0; font-weight: 700; font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
}
.lf-btn-submit:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.lf-btn-submit:active { transform: translateY(0); }

.lf-footer {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 1.5rem; font-size: 0.84rem; color: var(--text3);
}
.lf-footer a {
    color: var(--accent3); font-weight: 700;
    text-decoration: none; cursor: pointer; transition: color 0.2s;
}
.lf-footer a:hover { color: #fff; }

/* Keep old class for register modal compatibility */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text2); margin-bottom: 0.5rem; letter-spacing: 0.5px; text-transform: uppercase; }
.input-field { width: 100%; padding: 12px 16px; background: rgba(6,7,13,0.8); border: 1px solid rgba(156,163,175,0.18); border-radius: 10px; color: var(--text); font-size: 0.9rem; transition: all 0.25s ease; outline:none; }
.input-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(156,163,175,0.12); background: rgba(6,7,13,0.95); }
.btn-primary { width: 100%; padding: 13px; background: linear-gradient(135deg, #374151 0%, #1f2937 100%); color: #e2e8f0; font-weight: 700; font-size: 0.92rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; cursor: pointer; transition: all 0.25s ease; text-transform: uppercase; letter-spacing: 1.5px; }
.btn-primary:hover { transform: translateY(-2px); background: linear-gradient(135deg, #4b5563 0%, #374151 100%); }
.login-error { color: #fca5a5; font-size: 0.85rem; text-align: center; padding: 10px 14px; background: rgba(239,68,68,0.08); border-radius: 8px; border: 1px solid rgba(239,68,68,0.22); margin-bottom: 1rem; }
.link-register { display: block; text-align: center; margin-top: 1.1rem; font-size: 0.82rem; color: var(--text3); }
.link-register a { color: var(--accent3); font-weight: 700; text-decoration: none; cursor: pointer; }
.link-register a:hover { color: #fff; }
.glass { background: rgba(13,15,28,0.92); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); }
.login-card { animation: fadeInUp 0.5s ease; }

/* ══════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════ */
.dashboard-container {
    position: relative; z-index: 50;
    display: flex; height: 100vh; overflow: hidden;
}

/* ─── SIDEBAR ─── */
.sidebar {
    width: 256px;
    background: var(--surface);
    border-right: 1px solid rgba(156,163,175,0.12);
    overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column;
    padding-bottom: 1.5rem;
}

/* logo section */
.logo-section {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(156,163,175,0.1);
    margin-bottom: 0.75rem;
}

.sidebar-brand {
    display: flex; align-items: center; gap: 0.85rem;
}

.sidebar-brand-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar-brand-text { flex: 1; }

.logo-text {
    font-size: 1rem; font-weight: 900;
    color: var(--text);
    letter-spacing: 2px; text-transform: uppercase;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.6rem; color: var(--text3);
    letter-spacing: 1.5px; text-transform: uppercase;
    font-weight: 600; margin-top: 2px;
}

/* nav section labels */
nav { padding: 0 0.75rem; flex: 1; }

.nav-section-label {
    font-size: 0.62rem; font-weight: 800;
    color: var(--text3); letter-spacing: 2px;
    text-transform: uppercase;
    padding: 1rem 0.65rem 0.4rem;
    margin-top: 0.25rem;
}

.nav-item {
    background: transparent;
    border: none; outline: none;
    -webkit-appearance: none; appearance: none;
    font-family: inherit; box-sizing: border-box; text-align: left;
    padding: 0.72rem 0.85rem; color: var(--text2);
    cursor: pointer; transition: all 0.18s ease;
    user-select: none; touch-action: manipulation;
    display: flex; align-items: center; gap: 10px;
    border-radius: 9px; margin-bottom: 0.2rem;
    font-size: 0.83rem; font-weight: 600;
    width: 100%;
    position: relative;
}

.nav-item i {
    width: 18px; text-align: center; flex-shrink: 0;
    font-size: 0.88rem;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(156,163,175,0.07);
}

.nav-item.active {
    color: #fff;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
}
.nav-item.active::before {
    content: '';
    position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 3px; border-radius: 0 3px 3px 0;
    background: #9ca3af;
}
.nav-item.active i { color: #d1d5db; }

.nav-item-amber { color: var(--amber) !important; }
.nav-item-amber:hover { color: var(--amber) !important; background: rgba(245,158,11,0.07) !important; }
.nav-item-red { color: var(--red) !important; }
.nav-item-red:hover { color: var(--red) !important; background: rgba(239,68,68,0.07) !important; }
.nav-item-logout { color: rgba(239,68,68,0.65) !important; margin-top: 0.5rem; }
.nav-item-logout:hover { color: var(--red) !important; background: rgba(239,68,68,0.08) !important; }

.nav-spacer { flex: 1; min-height: 1.5rem; }

/* ─── MAIN CONTENT ─── */
.main-content {
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden; background: var(--bg);
}

.top-bar {
    background: var(--surface);
    border-bottom: 1px solid rgba(156,163,175,0.1);
    padding: 0 2rem;
    height: 60px;
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}

.top-bar-title {
    font-size: 0.85rem; font-weight: 700; color: var(--text2);
    text-transform: uppercase; letter-spacing: 1.5px;
    display: flex; align-items: center; gap: 9px;
}
.top-bar-title i { color: var(--accent); font-size: 0.9rem; }

.user-info { display: flex; align-items: center; gap: 0.85rem; }

.header-whatsapp-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(37,211,102,0.08);
    border: 1px solid rgba(37,211,102,0.25);
    border-radius: 8px;
    color: #25d366; font-size: 1rem;
    text-decoration: none; transition: all 0.2s;
    flex-shrink: 0;
}
.header-whatsapp-btn:hover {
    background: rgba(37,211,102,0.16);
    border-color: rgba(37,211,102,0.4);
    transform: translateY(-1px);
}


.user-badge {
    background: rgba(156,163,175,0.12);
    border: 1px solid rgba(156,163,175,0.25);
    padding: 0.35rem 0.85rem; border-radius: 20px;
    font-size: 0.68rem; color: var(--accent3);
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}

.content-area { flex: 1; overflow-y: auto; padding: 1.75rem 2rem; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.3s cubic-bezier(.16,1,.3,1); }

/* ─── STATS GRID ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem; margin-bottom: 1.5rem;
}

.stat-widget {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 14px; padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
    display: flex; flex-direction: column; gap: 0.3rem;
    position: relative; overflow: hidden;
}

.stat-widget::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #374151, #6b7280);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-widget:hover { border-color: rgba(156,163,175,0.22); transform: translateY(-2px); }
.stat-widget:hover::after { transform: scaleX(1); }

.stat-value {
    font-size: 2.2rem; font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem; color: var(--text3);
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
}

/* ─── CARDS ─── */
.card {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 14px; padding: 1.5rem; margin-bottom: 1.25rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.card-title {
    font-size: 0.82rem; font-weight: 800; color: var(--text2);
    margin-bottom: 1.25rem; display: flex; align-items: center; gap: 9px;
    text-transform: uppercase; letter-spacing: 1px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-icon { color: var(--accent); font-size: 0.9rem; }

/* ─── ACTIVITY LOG ─── */
.activity-log {
    max-height: 300px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 0.3rem;
}

.log-entry {
    display: flex; align-items: flex-start; gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    font-size: 0.82rem;
    border-left: 2px solid rgba(156,163,175,0.15);
    transition: all 0.15s;
}
.log-entry:hover { background: rgba(156,163,175,0.06); border-left-color: var(--accent); }
.log-time { font-size: 0.7rem; color: var(--text3); white-space: nowrap; font-weight: 600; }

/* ─── FORMS ─── */
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text2); margin-bottom: 0.5rem; letter-spacing: 0.5px; text-transform: uppercase; }
.form-field input, .form-field select { width: 100%; padding: 11px 14px; background: rgba(6,7,13,0.8); border: 1px solid rgba(156,163,175,0.15); border-radius: 9px; color: var(--text); font-size: 0.88rem; transition: all 0.2s ease; outline: none; }
.form-field input:focus, .form-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(156,163,175,0.1); }
.form-field select option { background: var(--surface); }

/* ─── BUTTONS ─── */
.btn { padding: 0.5rem 1.1rem; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.18s ease; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.btn-indigo { background: linear-gradient(135deg, #374151, #1f2937); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.1); }
.btn-indigo:hover { transform: translateY(-1px); background: linear-gradient(135deg, #4b5563, #374151); }
.btn-green  { background: rgba(255,255,255,0.05); color: #9ca3af; border-color: rgba(255,255,255,0.1); }
.btn-green:hover  { background: rgba(255,255,255,0.09); color: #e2e8f0; }
.btn-red    { background: rgba(239,68,68,0.1); color: var(--red); border-color: rgba(239,68,68,0.2); }
.btn-red:hover    { background: rgba(239,68,68,0.18); }
.btn-amber  { background: rgba(245,158,11,0.1); color: var(--amber); border-color: rgba(245,158,11,0.2); }
.btn-amber:hover  { background: rgba(245,158,11,0.18); }
.btn-gray   { background: rgba(255,255,255,0.04); color: var(--text2); border-color: rgba(255,255,255,0.08); }
.btn-gray:hover   { background: rgba(255,255,255,0.09); color: var(--text); }

/* ─── UPLOAD ─── */
.upload-area { border: 2px dashed rgba(156,163,175,0.18); border-radius: 12px; padding: 2.25rem; text-align: center; cursor: pointer; transition: all 0.2s; background: rgba(156,163,175,0.02); }
.upload-area:hover { border-color: var(--accent); background: rgba(156,163,175,0.06); }
.upload-icon { font-size: 2rem; margin-bottom: 0.65rem; color: var(--accent); opacity: 0.7; }

/* ─── TABLES ─── */
.table-container { border-radius: 12px; overflow: hidden; border: 1px solid var(--border2); }
        .table-container { overflow-x: auto; }
        .table-container table { min-width: 1100px; }
        .table-container th { white-space: nowrap; font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; color: #9ca3af; }
        .table-container td { vertical-align: middle; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--surface2); padding: 0.8rem 1rem; text-align: left; font-size: 0.7rem; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: 1.5px; border-bottom: 1px solid rgba(156,163,175,0.1); }
td { padding: 0.8rem 1rem; font-size: 0.84rem; color: var(--text2); border-bottom: 1px solid rgba(255,255,255,0.035); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(156,163,175,0.04); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(156,163,175,0.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(156,163,175,0.35); }

/* ─── ROLE VISIBILITY ─── */
.owner-only, .admin-only, .operator-only { display: none; }
.role-owner .owner-only    { display: block; }
.role-owner .admin-only    { display: block; }
.role-owner .operator-only { display: block; }
.role-admin .admin-only    { display: block; }
.role-admin .operator-only { display: block; }
.role-operator .operator-only { display: block; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.mb-4   { margin-bottom: 1rem; }

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; }
.modal-content { background: var(--surface); border: 1px solid rgba(156,163,175,0.2); border-radius: 16px; padding: 2rem; width: 480px; max-width: 95vw; box-shadow: 0 24px 60px rgba(0,0,0,0.8); animation: fadeInUp 0.3s cubic-bezier(.16,1,.3,1); }

/* ─── MOBILE OVERLAY ─── */
.sidebar-overlay { display: none; position: fixed; top: 0; left: 256px; right: 0; bottom: 0; background: rgba(0,0,0,0.65); z-index: 150; backdrop-filter: blur(2px); }
.sidebar-overlay.active { display: block; }

.hamburger { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(156,163,175,0.1); border: 1px solid rgba(156,163,175,0.2); border-radius: 8px; cursor: pointer; color: var(--accent3); font-size: 0.95rem; transition: all 0.2s; flex-shrink: 0; }
.hamburger:hover { background: rgba(156,163,175,0.18); }

/* ─── PLAN CARDS ─── */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1rem 0; }
.plan-card { border: 2px solid rgba(156,163,175,0.1); border-radius: 12px; padding: 1rem 0.75rem; text-align: center; cursor: pointer; transition: all 0.2s; background: rgba(156,163,175,0.02); }
.plan-card:hover { border-color: rgba(156,163,175,0.3); background: rgba(156,163,175,0.06); }
.plan-card.selected { border-color: #9ca3af; background: rgba(255,255,255,0.05); }
.plan-days  { font-size: 1.5rem; font-weight: 900; color: var(--text); }
.plan-label { font-size: 0.62rem; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.plan-price { font-size: 1.1rem; font-weight: 700; color: #d1d5db; }

/* ─── PIX ─── */
.pix-qr-container { text-align: center; }
.pix-qr-container img { width: 200px; height: 200px; border-radius: 10px; border: 2px solid rgba(156,163,175,0.2); margin: 0 auto; display: block; }
.pix-copy-box { background: rgba(6,7,13,0.9); border: 1px solid rgba(156,163,175,0.12); border-radius: 8px; padding: 0.65rem 1rem; font-size: 0.7rem; color: var(--text3); word-break: break-all; margin: 0.75rem 0; cursor: pointer; transition: border-color 0.2s; }
.pix-copy-box:hover { border-color: var(--accent); }
.pix-status-msg { font-size: 0.85rem; color: var(--text2); margin-top: 0.75rem; }

/* ─── REGISTER STEPS ─── */
.reg-step { display: none; }
.reg-step.active { display: block; }

/* ─── TOGGLE ─── */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.07); border-radius: 24px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); }
.toggle-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: var(--text3); border-radius: 50%; transition: 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); background: #d1d5db; }

/* ─── IPHONE FRAME ─── */
.iphone-frame { background: linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 100%); border-radius: 46px; padding: 10px 10px 18px; box-shadow: 0 0 0 1px rgba(156,163,175,0.2), 0 0 0 3px rgba(0,0,0,0.9), 0 30px 80px rgba(0,0,0,0.95); max-width: 260px; margin: 0 auto; position: relative; }
.iphone-frame.iphone-sm { max-width: 200px; border-radius: 36px; padding: 8px 8px 14px; }
.iphone-notch { width: 88px; height: 22px; background: #0a0a0a; border-radius: 0 0 16px 16px; margin: 0 auto 6px; position: relative; display: flex; align-items: center; justify-content: center; }
.iphone-notch::before { content: ''; width: 44px; height: 5px; background: #1a1a1a; border-radius: 3px; }
.iphone-notch::after { content: ''; width: 9px; height: 9px; background: #111; border-radius: 50%; border: 1px solid #222; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.iphone-sm .iphone-notch { width: 64px; height: 16px; border-radius: 0 0 11px 11px; margin-bottom: 4px; }
.iphone-sm .iphone-notch::before { width: 32px; height: 4px; }
.iphone-sm .iphone-notch::after { width: 7px; height: 7px; right: 10px; }
.iphone-screen { border-radius: 10px; overflow: hidden; background: #000; }
.iphone-sm .iphone-screen { border-radius: 8px; }
.iphone-bar { width: 72px; height: 5px; background: rgba(156,163,175,0.3); border-radius: 3px; margin: 12px auto 0; }
.iphone-sm .iphone-bar { width: 54px; height: 4px; margin-top: 8px; }

@keyframes previewProgress { 0%,100%{width:18%;margin-left:0} 50%{width:55%;margin-left:35%} }
@keyframes previewSpin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
@keyframes pvRedirectSpin { to{transform:rotate(360deg)} }
@keyframes pvPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

#buildGrid { display:grid; grid-template-columns:1fr 282px; gap:1.5rem; align-items:start; }
@media(max-width:960px){ #buildGrid{ grid-template-columns:1fr; } #buildPreviewCol{ display:none; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .login-brand-panel { display: none; }
    .login-form-panel { width: 100%; border-left: none; }
}

@media (max-width: 768px) {
    body { overflow: auto; }
    .login-form-panel { padding: 1.5rem; }
    .login-form-title { font-size: 1.4rem; }
    .dashboard-container { height: 100dvh; }
    .sidebar { position: fixed; left: -270px; top: 0; bottom: 0; width: 256px; z-index: 200; transition: left 0.28s cubic-bezier(0.4,0,0.2,1); }
    .sidebar.open { left: 0; }
    .hamburger { display: flex; }
    .top-bar { padding: 0 1rem; }
    .top-bar-title { font-size: 0.8rem; }
    .user-info .user-badge { display: none; }
    .user-info > div:first-child > div:first-child { display: none; }
    .content-area { padding: 1rem; overflow-y: auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; margin-bottom: 1rem; }
    .stat-widget { padding: 1rem; }
    .stat-value { font-size: 1.75rem; }
    .stat-label { font-size: 0.65rem; }
    .card { padding: 1rem; margin-bottom: 1rem; }
    .card-title { font-size: 0.82rem; margin-bottom: 1rem; }
    .activity-log { max-height: 240px; }
    th { padding: 0.65rem 0.75rem; font-size: 0.68rem; white-space: nowrap; }
    td { padding: 0.65rem 0.75rem; font-size: 0.78rem; }
    .upload-area { padding: 1.5rem 1rem; }
    .upload-icon { font-size: 1.75rem; }
    #cfgSection1, #cfgSection2 { grid-template-columns: 1fr !important; }
    #cfgSection1 > div:last-child, #cfgSection2 > div:last-child { display: none; }
    .modal-content { width: 95%; padding: 1.25rem; max-height: 88vh; overflow-y: auto; }
    .form-field > div[style*="display: flex"] { flex-direction: column; gap: 0.5rem; }
    .form-field > div[style*="display: flex"] > input { width: 100%; }
    #buildBtn { height: 48px; font-size: 0.85rem; }
    #progressSection { margin-top: 0.75rem; }
    .mb-4.btn { margin-bottom: 0.75rem; }
    .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .stat-value { font-size: 1.4rem; }
    .content-area { padding: 0.75rem; }
    .card { padding: 0.85rem; }
}


        /* ─── MODAL / REGISTER FULL PAGE ─── */
        .modal {
            display: none;
            position: fixed; inset: 0; z-index: 900;
            background: #0a0a0a;
            overflow-y: auto;
        }
        .modal.active { display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem 4rem; }

        .modal-content {
            background: #111111;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 16px;
            padding: 2.25rem;
            width: 100%;
            max-width: 500px;
            position: relative;
            box-shadow: 0 24px 60px rgba(0,0,0,0.8);
            animation: fadeInUp 0.35s cubic-bezier(.16,1,.3,1);
            margin-top: 2rem;
        }

        .modal-close {
            position: absolute; top: 1rem; right: 1rem;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            width: 34px; height: 34px;
            display: flex; align-items: center; justify-content: center;
            color: #9ca3af; cursor: pointer;
            transition: all 0.2s; font-size: 0.9rem;
        }
        .modal-close:hover { background: rgba(255,255,255,0.12); color: #e2e8f0; }

        .modal-header {
            font-size: 1.2rem; font-weight: 800;
            color: #e2e8f0;
            margin-bottom: 1.75rem;
            display: flex; align-items: center; gap: 10px;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.07);
        }
        .modal-header i { color: #9ca3af; }

        /* Botões dentro do modal */
        .btn-success {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            padding: 0.55rem 1.1rem;
            background: linear-gradient(135deg, #374151, #1f2937);
            color: #e2e8f0; font-weight: 700; font-size: 0.82rem;
            border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
            cursor: pointer; transition: all 0.2s;
            text-transform: uppercase; letter-spacing: 0.5px;
            width: 100%;
        }
        .btn-success:hover { background: linear-gradient(135deg, #4b5563, #374151); transform: translateY(-1px); }
        .btn-success:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

        .btn-secondary {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            padding: 0.55rem 1.1rem;
            background: rgba(255,255,255,0.05);
            color: #9ca3af; font-weight: 700; font-size: 0.82rem;
            border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
            cursor: pointer; transition: all 0.2s;
            text-transform: uppercase; letter-spacing: 0.5px;
        }
        .btn-secondary:hover { background: rgba(255,255,255,0.1); color: #e2e8f0; }

        /* Labels e inputs dentro do modal */
        .modal-content label, .modal-content .form-field label { color: #9ca3af !important; }
        .modal-content input, .modal-content select { color: #e2e8f0 !important; background: rgba(6,7,13,0.85) !important; border-color: rgba(255,255,255,0.1) !important; }
        .modal-content input::placeholder { color: #374151 !important; }
        .modal-content input:focus, .modal-content select:focus { border-color: #9ca3af !important; box-shadow: 0 0 0 3px rgba(156,163,175,0.1) !important; }
        .modal-content p { color: #9ca3af; }

        /* Planos dentro do modal */
        .modal-content .plan-card { background: rgba(255,255,255,0.03) !important; }
        .modal-content .plan-days { color: #e2e8f0 !important; }
        .modal-content .plan-price { color: #d1d5db !important; font-weight: 800; }
        .modal-content .plan-label { color: #4b5563 !important; }
        .modal-content .plan-card.selected { border-color: #9ca3af !important; background: rgba(255,255,255,0.07) !important; }

        /* PIX copy box dentro do modal */
        .modal-content .pix-copy-box { background: rgba(6,7,13,0.9) !important; color: #6b7280 !important; }

        /* Botão de criar conta do modal de sucesso */
        .modal-content .btn-green {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            padding: 0.55rem 1.1rem;
            background: rgba(255,255,255,0.07);
            color: #e2e8f0; font-weight: 700; font-size: 0.82rem;
            border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
            cursor: pointer; transition: all 0.2s;
            text-transform: uppercase; letter-spacing: 0.5px;
            width: 100%;
        }
        .modal-content .btn-green:hover { background: rgba(255,255,255,0.12); }

        /* Register page header decoration */
        #registerModal .register-page-brand {
            text-align: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        #registerModal .register-page-brand h1 {
            font-size: 1.8rem; font-weight: 900; color: #e2e8f0;
            letter-spacing: 2px; margin-bottom: 0.25rem;
        }
        #registerModal .register-page-brand p { font-size: 0.78rem; color: #4b5563; letter-spacing: 2px; text-transform: uppercase; }


/* ── Dashboard + Meus Builds (scoped) ── */
.dash-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:1.35rem; flex-wrap:wrap; }
.dash-kicker { font-size:0.68rem; font-weight:800; letter-spacing:0.16em; text-transform:uppercase; color:var(--text3); margin-bottom:0.35rem; }
.dash-hello { font-size:1.55rem; font-weight:800; color:#f1f5f9; letter-spacing:-0.02em; line-height:1.15; margin:0; }
.dash-hello span { color:#e5e7eb; }
.dash-sub { font-size:0.82rem; color:var(--text3); margin-top:0.35rem; }
.dash-refresh { width:40px; height:40px; border-radius:10px; border:1px solid var(--border); background:var(--surface); color:var(--text2); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:0.18s; }
.dash-refresh:hover { color:#fff; border-color:rgba(255,255,255,0.18); background:var(--surface2); }
.dash-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:0.85rem; margin-bottom:1.35rem; }
.dash-stat { display:flex; align-items:center; gap:0.9rem; background:var(--surface); border:1px solid var(--border2); border-radius:16px; padding:1.1rem 1.15rem; position:relative; overflow:hidden; transition:transform 0.18s, border-color 0.18s; }
.dash-stat.owner-only { display:none; }
.dash-stat::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:linear-gradient(180deg,#9ca3af,#374151); opacity:0.85; }
.dash-stat:hover { transform:translateY(-2px); border-color:rgba(156,163,175,0.22); }
.role-owner .dash-stat.owner-only { display:flex; }
.dash-stat-ico { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.06); color:#d1d5db; font-size:1rem; flex-shrink:0; }
.dash-stat-val { font-size:1.85rem; font-weight:900; color:#f8fafc; line-height:1; letter-spacing:-0.03em; }
.dash-stat-lbl { font-size:0.68rem; color:var(--text3); text-transform:uppercase; letter-spacing:0.12em; font-weight:700; margin-top:0.28rem; }
.dash-feed { padding:0 !important; overflow:hidden; }
.dash-feed .card-title { margin:0; padding:1.1rem 1.25rem 0.9rem; border-bottom:1px solid rgba(255,255,255,0.05); }
.dash-timeline { max-height:340px; overflow-y:auto; padding:0.4rem 0.5rem 0.75rem; display:flex; flex-direction:column; }
.dash-item { display:grid; grid-template-columns:16px 1fr auto; gap:0.75rem; align-items:start; padding:0.7rem 0.75rem; border-radius:10px; }
.dash-item:hover { background:rgba(255,255,255,0.03); }
.dash-dot { width:8px; height:8px; border-radius:50%; background:#6b7280; margin-top:0.45rem; box-shadow:0 0 0 3px rgba(107,114,128,0.18); }
.dash-item-title { font-size:0.84rem; color:#e5e7eb; font-weight:650; }
.dash-item-meta { font-size:0.75rem; color:var(--text3); margin-top:0.15rem; }
.dash-item-time { font-size:0.7rem; color:var(--text3); white-space:nowrap; font-weight:600; padding-top:0.15rem; }
.dash-empty { text-align:center; color:var(--text3); padding:1.75rem 1rem; font-size:0.85rem; }
.dash-skel { height:1.1em; width:3.2rem; border-radius:6px; background:linear-gradient(90deg,rgba(255,255,255,0.04),rgba(255,255,255,0.09),rgba(255,255,255,0.04)); background-size:200% 100%; animation:dashSkel 1.1s ease infinite; }
@keyframes dashSkel { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

.mb-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:1.1rem; flex-wrap:wrap; }
.mb-tools { display:flex; gap:0.6rem; flex-wrap:wrap; align-items:center; }
.mb-search { background:rgba(6,7,13,0.8); border:1px solid rgba(156,163,175,0.16); border-radius:10px; color:#e5e7eb; padding:9px 12px 9px 34px; font-size:0.84rem; min-width:220px; outline:none; }
.mb-search:focus { border-color:rgba(156,163,175,0.4); }
.mb-search-wrap { position:relative; }
.mb-search-wrap i { position:absolute; left:11px; top:50%; transform:translateY(-50%); color:#6b7280; font-size:0.78rem; }
.mb-chip { border:1px solid rgba(255,255,255,0.08); background:transparent; color:#9ca3af; border-radius:999px; padding:6px 12px; font-size:0.72rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; cursor:pointer; }
.mb-chip.on { background:rgba(255,255,255,0.08); color:#f8fafc; border-color:rgba(255,255,255,0.16); }
.mb-table table { min-width:720px; }
.mb-badge { display:inline-flex; align-items:center; gap:6px; padding:0.28rem 0.65rem; border-radius:999px; font-size:0.7rem; font-weight:800; letter-spacing:0.04em; text-transform:uppercase; }
.mb-badge.ok { background:rgba(34,197,94,0.1); color:#86efac; border:1px solid rgba(34,197,94,0.2); }
.mb-badge.run { background:rgba(245,158,11,0.1); color:#fbbf24; border:1px solid rgba(245,158,11,0.22); }
.mb-badge.err { background:rgba(239,68,68,0.1); color:#fca5a5; border:1px solid rgba(239,68,68,0.22); }
.mb-badge.wait { background:rgba(255,255,255,0.05); color:#9ca3af; border:1px solid rgba(255,255,255,0.08); }
.mb-dl { display:inline-flex; align-items:center; gap:6px; padding:0.38rem 0.8rem; border-radius:8px; background:rgba(255,255,255,0.06); color:#e5e7eb; text-decoration:none; font-size:0.75rem; font-weight:700; border:1px solid rgba(255,255,255,0.1); }
.mb-dl:hover { background:rgba(255,255,255,0.1); color:#fff; }
.mb-more { width:100%; margin-top:0.85rem; padding:0.7rem; border-radius:10px; border:1px dashed rgba(255,255,255,0.1); background:transparent; color:#9ca3af; font-weight:700; font-size:0.78rem; cursor:pointer; }
.mb-more:hover { color:#fff; border-color:rgba(255,255,255,0.2); }
.mb-count { font-size:0.75rem; color:var(--text3); font-weight:600; }
@media (max-width:768px) {
  .dash-hello { font-size:1.25rem; }
  .dash-stat-val { font-size:1.5rem; }
  .mb-search { min-width:0; width:100%; }
}

.team-quota { margin: 0 0 1rem; padding: 0.9rem 1rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border2); border-radius: 12px; }
.team-quota-top { display:flex; justify-content:space-between; gap:0.8rem; flex-wrap:wrap; font-size:0.82rem; font-weight:700; color:#e5e7eb; }
#teamQuotaLeft { color:var(--text2); font-weight:600; }
.team-quota-bar { height:6px; background:rgba(255,255,255,0.06); border-radius:999px; overflow:hidden; margin-top:0.55rem; }
#teamQuotaProg { height:100%; width:0; background:#9ca3af; border-radius:999px; transition:width 0.25s ease; }
.team-quota-hint { font-size:0.78rem; color:var(--text2); margin: 0 0 0.85rem; }
#teamAddOpBtn:disabled { opacity:0.45; cursor:not-allowed; pointer-events:none; }
