:root {
    --primary: #6330BF;
    --primary-light: #7a45d4;
    --secondary: #555;
    --accent: #6330BF;
    --danger: #d32f2f;
    --warning: #E8A020;
    --success: #2e7d32;
    --background: #f0f2f7;
    --card-bg: #ffffff;
    --text-main: #2c2c2c;
    --text-muted: #777;
    --divider: #dde1ef;
    --header-bg: #6330BF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

/* ── LAYOUT STRUCTURE ── */
.app-wrapper {
    display: flex;
    flex: 1;
}

/* ── SIDEBAR ── */
.sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    flex-shrink: 0;
    justify-content: space-between;
    /* Ensures support goes to bottom */
}

.sidebar-header {
    padding: 0.5rem 1.5rem 1rem;
    font-size: 10px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.5rem;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: #f8fafc;
    color: var(--primary);
}

.sidebar-link.active {
    background: #f0f3ff;
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* ── MAIN CONTENT ── */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
    background: var(--background);
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--divider);
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(44, 58, 140, 0.07);
}

/* ── BUTTONS ── */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

/* ── FORMS ── */
.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--divider);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ── HEADER / FOOTER ── */
/* ── TOP NAVBAR PREMIUM ── */
.top-navbar {
    background: linear-gradient(135deg, #4c1d95, #6b21a8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

.top-navbar-brand {
    display: flex;
    align-items: center;
}

.top-navbar-brand img {
    height: 38px;
    width: auto;
}

.header-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 24px;
}

.header-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.top-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.nav-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-user-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.user-greeting {
    font-size: 13px;
    color: #e2e8f0;
}

.user-greeting strong {
    color: white;
}

.btn-logout {
    color: #f87171;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ── SUPPORT SIDEBAR PREMIUM ── */
.support-sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 28px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.03);
}

.support-header {
    text-align: left;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 16px;
}

.support-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f3e8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.support-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.support-header p {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.support-channels {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.support-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s;
}

.support-card:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 48, 191, 0.08);
}

.sc-icon {
    color: var(--primary);
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.sc-info {
    display: flex;
    flex-direction: column;
}

.sc-info label {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 2px;
    font-weight: 700;
}

.sc-info a,
.sc-info span {
    font-size: 12px;
    color: #334155;
    font-weight: 700;
    text-decoration: none;
    word-break: break-all;
}

.sc-info a {
    color: var(--primary);
}

.sc-info a:hover {
    text-decoration: underline;
}

.support-footer-note {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #059669;
}

.support-footer-note p {
    font-size: 11px;
    color: #15803d;
    line-height: 1.4;
}

/* ── BADGES BET / NÃO-BET ── */
.badge-naobet {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-bet {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-bet-warn {
    background: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.main-footer {
    background: #fff;
    border-top: 1px solid var(--divider);
    padding: 1rem 32px;
    color: #888;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* ── AUTH PAGES ── */
.auth-card {
    max-width: 460px;
    margin: 4rem auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    color: var(--primary);
    font-size: 24px;
}

.auth-divider-container {
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-divider-line {
    position: absolute;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--divider);
}

.auth-divider-text {
    background: #fff;
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.btn-federated {
    width: 100%;
    height: 48px;
    background: #ffffff;
    color: #5e5e5e;
    border: 1px solid #8c8c8c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    text-transform: none;
}

.forgot-password-link {
    text-align: right;
    margin-top: 5px;
}

.forgot-password-link a {
    font-size: 11px;
    color: var(--secondary);
    text-decoration: none;
}

/* ── BREADCRUMB ── */
.breadcrumb-container {
    background: #fff;
    border-bottom: 1px solid var(--divider);
    padding: 0 24px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
}

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

.user-welcome {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 11px;
}

/* ── MODAL TABS ── */
.modal-tab-content { display: none !important; }
.modal-tab-content.tab-active { display: block !important; }

/* ── MODAL ── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

#agentTimelineModal {
    z-index: 1300;
}