:root {
    --gold: #C9A961;
    --gold-light: #D4B978;
    --gold-dark: #A68B4B;
    --gold-glow: rgba(201,169,97,0.3);
    --black: #0A0A0A;
    --black-light: #111111;
    --black-elevated: #1A1A1A;
    --black-card: #161616;
    --white: #FFFFFF;
    --white-muted: rgba(255,255,255,0.7);
    --white-faint: rgba(255,255,255,0.4);
    --gray: #666666;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-sm: 6px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Backward compatibility aliases */
    --primary: var(--gold);
    --primary-dark: var(--gold-dark);
    --primary-light: var(--gold-light);
    --accent: var(--gold-light);
    --secondary: var(--white);
    --off-white: var(--black-light);
    --light-gray: var(--black-elevated);
    --dark-gray: var(--gray);
    --shadow: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --card-bg: var(--black-elevated);
}

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

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; }

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* ========== LOADING SCREEN ========== */
.loading-screen {
    position: fixed; inset: 0;
    background: var(--black);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-container { text-align: center; }
.loader {
    width: 60px; height: 60px;
    border: 3px solid rgba(201,169,97,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}
.loader-container h2 {
    font-size: 2rem; color: var(--gold);
    letter-spacing: 8px; margin-bottom: 8px;
}
.loader-container p { color: var(--white-muted); font-size: 0.9rem; letter-spacing: 4px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(201,169,97,0.15);
    z-index: 1000;
    padding: 0 40px;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.nav-logo:hover { color: var(--gold); }

.nav-links {
    display: flex; align-items: center; gap: 4px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--white-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.nav-links a:hover { color: var(--gold); background: rgba(201,169,97,0.08); }
.nav-links a.active { color: var(--gold); }

.navbar.scrolled {
    background: rgba(10,10,10,0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%) !important;
    color: var(--black) !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    letter-spacing: 2px !important;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--gold-glow);
}

.mobile-menu-btn {
    display: none; background: none; border: none;
    color: var(--white); font-size: 1.5rem; cursor: pointer;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.75) 50%, rgba(10,10,10,0.85) 100%);
    z-index: 1;
}

.hero-bg-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    z-index: 0;
}

.hero-content {
    position: relative; z-index: 2;
    max-width: 1400px; width: 100%;
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--white-muted);
    max-width: 700px; margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-buttons {
    display: flex; gap: 20px; justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex; gap: 60px; justify-content: center;
    flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat h3 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 4px;
}
.hero-stat p {
    color: var(--white-faint);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: var(--transition);
    font-family: 'Source Sans 3', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--black);
    box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--gold-glow);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,169,97,0.08);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    background: var(--white-muted);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}

.btn-lg { padding: 18px 44px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ========== SECTIONS ========== */
.section {
    padding: 120px 40px;
    position: relative;
}

.section-alt { background: var(--black-light); }

.section-header {
    text-align: center; max-width: 700px;
    margin: 0 auto 80px;
}

.section-badge {
    display: inline-block;
    color: var(--gold);
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
}
.section-badge::after {
    content: ''; display: block;
    width: 40px; height: 2px;
    background: var(--gold);
    margin: 12px auto 0;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    color: var(--white);
}

.section-header p {
    color: var(--white-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

/* ========== CARDS ========== */
.card {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(201,169,97,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.card:hover::before { opacity: 1; }

.card-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(201,169,97,0.2) 0%, rgba(201,169,97,0.05) 100%);
    border: 1px solid rgba(201,169,97,0.3);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.card-icon i { font-size: 1.5rem; color: var(--gold); }

.card h3 {
    font-size: 1.3rem; margin-bottom: 12px;
    color: var(--white);
}
.card p {
    color: var(--white-muted);
    font-size: 0.95rem; line-height: 1.7;
}

/* ========== SERVICE CARDS ========== */
.service-card {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
    position: relative;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201,169,97,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.service-image {
    height: 240px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.service-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--black-card) 100%);
}
.service-image i {
    font-size: 3.5rem;
    color: rgba(201,169,97,0.3);
    position: relative; z-index: 1;
}

.service-content { padding: 32px; }
.service-content h3 {
    font-size: 1.3rem; margin-bottom: 12px;
}
.service-content p {
    color: var(--white-muted);
    font-size: 0.9rem; line-height: 1.7;
    margin-bottom: 20px;
}

/* ========== REVIEWS ========== */
.review-card {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    transition: var(--transition);
}
.review-card:hover {
    border-color: rgba(201,169,97,0.2);
    transform: translateY(-4px);
}

.review-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 20px;
}
.review-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--black); font-weight: 700; font-size: 1.3rem;
    font-family: 'Oswald', sans-serif;
}
.review-meta h4 { font-size: 1rem; margin-bottom: 4px; }
.stars { color: var(--gold); font-size: 0.9rem; }

.review-card > p {
    color: var(--white-muted);
    font-size: 1rem; line-height: 1.8;
    font-style: italic;
}

.review-verified {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--success); font-size: 0.8rem; font-weight: 600;
    margin-top: 16px;
    text-transform: uppercase; letter-spacing: 1px;
}

/* ========== FORMS ========== */
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block; font-weight: 600;
    font-size: 0.85rem; margin-bottom: 8px;
    color: var(--white-muted);
    text-transform: uppercase; letter-spacing: 1px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: var(--white); font-family: inherit; font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,169,97,0.1);
    background: rgba(255,255,255,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--white-faint); }

/* ========== DROPDOWN / SELECT FIX ========== */
select, select option, select optgroup {
    color: var(--white) !important;
    background-color: var(--black-elevated) !important;
}
select option {
    color: var(--white) !important;
    background-color: var(--black-elevated) !important;
    padding: 8px 12px !important;
}
select option:hover, select option:focus, select option:active, select option:checked {
    background-color: rgba(201,169,97,0.25) !important;
    color: var(--white) !important;
}
select optgroup {
    color: var(--gold) !important;
    background-color: var(--black-light) !important;
    font-style: normal !important;
    font-weight: 700 !important;
}
select {
    color: var(--white) !important;
    background-color: rgba(255,255,255,0.05) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C9A961' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
}

/* ========== MINI CALENDAR ========== */
.mini-calendar {
    width: 100%;
    border-collapse: collapse;
}
.mini-calendar th {
    padding: 8px 4px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.mini-calendar td {
    padding: 6px 4px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--white-muted);
    border-radius: var(--radius-sm);
    cursor: default;
    position: relative;
    transition: all 0.2s;
}
.mini-calendar td.today {
    background: rgba(201,169,97,0.2);
    color: var(--gold);
    font-weight: 700;
    border: 1px solid var(--gold);
}
.mini-calendar td.has-event::after {
    content: '';
    display: block;
    width: 5px; height: 5px;
    background: var(--gold);
    border-radius: 50%;
    margin: 2px auto 0;
}
.mini-calendar td.has-job::after {
    background: var(--success);
}
.mini-calendar td.empty {
    color: rgba(255,255,255,0.15);
}
.mini-calendar td.other-month {
    color: rgba(255,255,255,0.2);
}
.mini-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.mini-calendar-nav button {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white-muted);
    width: 28px; height: 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.75rem;
}
.mini-calendar-nav button:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.mini-calendar-nav span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
}

/* ========== EVENT PLANNER ========== */
.event-card {
    padding: 14px 18px;
    border-left: 3px solid var(--gold);
    background: rgba(201,169,97,0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 10px;
    transition: all 0.2s;
}
.event-card:hover {
    background: rgba(201,169,97,0.1);
}
.event-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.event-dot.meeting { background: var(--gold); }
.event-dot.social { background: var(--success); }
.event-dot.training { background: var(--info); }
.event-dot.other { background: var(--warning); }

.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

/* ========== AUTH ========== */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
}

.auth-card {
    background: var(--black-elevated);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%; max-width: 460px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}
.auth-card .logo {
    text-align: center; margin-bottom: 32px;
}
.auth-card .logo h2 {
    font-size: 1.8rem; color: var(--gold);
    letter-spacing: 6px;
}
.auth-card .logo p {
    color: var(--white-muted); margin-top: 8px;
    font-size: 0.9rem;
}

.google-btn {
    width: 100%; padding: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    gap: 12px; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: var(--transition);
    color: var(--white); font-family: inherit;
}
.google-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
}

.google-account-chip {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--black-light);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    cursor: pointer; transition: var(--transition);
    width: 100%; text-align: left; font-family: inherit;
    color: var(--white);
}
.google-account-chip:hover {
    background: var(--black-elevated);
    border-color: var(--gold);
}
.google-account-chip .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gold); color: var(--black);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
    flex-shrink: 0;
}
.google-account-chip .info { flex: 1; }
.google-account-chip .info strong { display: block; font-size: 0.95rem; }
.google-account-chip .info small { color: var(--white-faint); font-size: 0.8rem; }
.google-account-chip .badge {
    font-size: 0.7rem; padding: 3px 10px;
    border-radius: 20px; background: var(--gold); color: var(--black);
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

.auth-divider-text {
    text-align: center; color: var(--white-faint); font-size: 0.8rem;
    padding: 16px 0;
    position: relative;
}
.auth-divider-text::before,
.auth-divider-text::after {
    content: ''; display: block;
    height: 1px; background: rgba(255,255,255,0.1);
    flex: 1;
}

.divider {
    text-align: center; position: relative;
    margin: 28px 0;
}
.divider::before {
    content: ''; position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px; background: rgba(255,255,255,0.1);
}
.divider span {
    background: var(--black-elevated); padding: 0 20px;
    position: relative; color: var(--white-faint);
    font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========== DASHBOARD ========== */
.dashboard { display: flex; min-height: 100vh; background: var(--black); }

.sidebar {
    width: 280px; background: var(--black-light);
    border-right: 1px solid rgba(255,255,255,0.06);
    position: fixed; height: 100vh;
    overflow-y: auto; z-index: 100;
    transition: var(--transition);
    display: flex; flex-direction: column;
}

.sidebar-header {
    padding: 28px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; gap: 12px;
}
.sidebar-header h3 {
    font-size: 1.2rem; letter-spacing: 3px;
}

.sidebar-nav { padding: 16px 0; list-style: none; flex: 1 0 auto; }
.sidebar-nav li { margin: 4px 16px; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px;
    color: var(--white-muted); text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500; font-size: 0.9rem;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(201,169,97,0.1);
    color: var(--gold);
}
.sidebar-nav a i { width: 22px; text-align: center; }
.nav-section {
    margin: 16px 24px 6px; padding: 0;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gray);
    opacity: 0.6;
}
.nav-section:first-child { margin-top: 4px; }

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto; width: 100%;
}

.main-content {
    flex: 1; margin-left: 280px;
    padding: 40px; min-height: 100vh;
}

.page-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-header h1 {
    font-size: 1.8rem; letter-spacing: 3px;
}

/* ========== STATS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px; margin-bottom: 40px;
}

.stat-card {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--gold), transparent);
}
.stat-icon {
    width: 48px; height: 48px;
    background: rgba(201,169,97,0.1);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.stat-icon i { color: var(--gold); font-size: 1.2rem; }
.stat-value {
    font-size: 2rem; font-weight: 700;
    color: var(--white); font-family: 'Oswald', sans-serif;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.85rem; color: var(--white-faint);
    text-transform: uppercase; letter-spacing: 2px;
}

/* ========== TABLES ========== */
.table-container {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}
.table-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: space-between;
}
.table-header h3 { font-size: 1.1rem; letter-spacing: 2px; }

table { width: 100%; border-collapse: collapse; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
.table-scroll table { margin-bottom: 0; }
th, td { padding: 16px 24px; text-align: left; }
th {
    font-weight: 600; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--white-faint);
    background: rgba(255,255,255,0.03);
}
tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody tr:last-child { border-bottom: none; }

/* ========== STATUS BADGES ========== */
.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
}

/* ========== PROGRESS ========== */
.progress-bar {
    width: 100%; height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ========== PHOTO GRID ========== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.photo-item {
    aspect-ratio: 4/3;
    background: var(--black-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.06);
}
.photo-item:hover {
    transform: scale(1.02);
    border-color: rgba(201,169,97,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.photo-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.photo-item:hover img { transform: scale(1.05); }

/* ========== GALLERY ========== */
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item img {
    transition: transform 0.5s ease;
}
#galleryFilters button {
    transition: all 0.2s ease;
}
#galleryFilters button:hover {
    transform: translateY(-1px);
}

/* ========== TAGS ========== */
.tag {
    display: inline-flex; align-items: center;
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600;
    background: rgba(201,169,97,0.1);
    color: var(--gold);
    text-transform: uppercase; letter-spacing: 1px;
}

/* ========== MODALS ========== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; padding: 20px;
    animation: fadeIn 0.3s ease;
}
.modal {
    background: var(--black-elevated);
    border-radius: var(--radius-lg);
    width: 100%; max-width: 600px;
    max-height: 90vh; overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1.2rem; letter-spacing: 2px; }
.modal-close {
    background: none; border: none;
    font-size: 1.5rem; color: var(--white-faint);
    cursor: pointer; transition: color 0.3s;
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: flex-end; gap: 12px;
}

/* ========== TOAST ========== */
.toast-container {
    position: fixed; top: 20px; right: 20px;
    z-index: 10001;
    display: flex; flex-direction: column; gap: 12px;
}
.toast {
    background: var(--black-elevated);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex; align-items: center; gap: 14px;
    animation: slideInRight 0.4s ease;
    border-left: 3px solid var(--gold);
    border: 1px solid rgba(255,255,255,0.08);
    max-width: 400px;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast i { font-size: 1.2rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast-content h4 {
    font-weight: 600; font-size: 0.95rem;
    margin-bottom: 2px; font-family: 'Source Sans 3', sans-serif;
    text-transform: none; letter-spacing: 0;
}
.toast-content p { font-size: 0.85rem; color: var(--white-muted); }

/* ========== FOOTER ========== */
.footer {
    background: var(--black-light);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 80px 40px 40px;
}

.footer-content {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px; margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.5rem; margin-bottom: 16px;
    color: var(--gold); letter-spacing: 4px;
}
.footer-brand p {
    color: var(--white-muted);
    font-size: 0.95rem; line-height: 1.8;
}

.footer-links h4 {
    font-size: 0.9rem; margin-bottom: 24px;
    color: var(--white); letter-spacing: 3px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: var(--white-muted); text-decoration: none;
    font-size: 0.9rem; transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    text-align: center;
    color: var(--white-faint);
    font-size: 0.85rem;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center; padding: 60px 20px;
}
.empty-state i {
    font-size: 3.5rem; color: rgba(255,255,255,0.1);
    margin-bottom: 16px;
}
.empty-state h3 {
    font-size: 1.2rem; margin-bottom: 8px;
    color: var(--white-muted);
}
.empty-state p { color: var(--white-faint); font-size: 0.9rem; }

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== GRIDS ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0;
        background: var(--black-light); flex-direction: column;
        padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        gap: 4px; border-top: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 14px 20px; min-height: 44px; display: flex; align-items: center; }
    .mobile-menu-btn { display: block; min-height: 44px; min-width: 44px; }
    
    .section { padding: 80px 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-stats { gap: 30px; }
    
    .sidebar { transform: translateX(-100%); width: 82vw; max-width: 320px; z-index: 1200; }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,0.6); }
    .main-content { margin-left: 0; padding: 16px; min-width: 0; width: 100%; }
    .sidebar-nav a { padding: 14px 16px; min-height: 48px; }
    .mobile-overlay { z-index: 1100; }
    .page-header { margin-bottom: 24px; }
    .page-header h1 { font-size: 1.3rem; letter-spacing: 1px; }
    
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }

    .card { padding: 16px; }
    th, td { padding: 10px 12px; font-size: 0.8rem; }
    .card, .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .btn { padding: 12px 20px; font-size: 0.8rem; }
    .modal { margin: 10px; max-width: calc(100vw - 20px) !important; }
    .modal-body { max-height: 60vh; }
    .auth-card { padding: 28px 20px; margin: 10px; }
    .chat-container { height: calc(100vh - 120px) !important; }
    .chat-input-area { padding: 8px 12px !important; }

    /* Chat tab on phones: toolbar wraps instead of overflowing; the DM contacts
       panel and the conversation each take the full width and swap via a back
       button, instead of cramming a 220px sidebar beside a sliver of messages. */
    .chat-toolbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px !important; }
    .chat-warning { padding: 6px 12px; font-size: 0.72rem; }
    .chat-message { max-width: 85%; }
    .chat-dm-layout .chat-contacts { width: 100% !important; border-right: none; }
    .chat-dm-layout.has-target .chat-contacts { display: none; }
    .chat-dm-layout:not(.has-target) .chat-convo { display: none; }
    .chat-dm-layout .chat-back {
        display: flex; align-items: center; gap: 8px; width: 100%;
        background: var(--off-white); border: none;
        border-bottom: 1px solid var(--light-gray);
        color: var(--dark-gray); font-weight: 600;
        padding: 12px 16px; cursor: pointer; font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-text p { font-size: 0.9rem; }
    .btn { padding: 14px 24px; font-size: 0.85rem; min-height: 44px; }
    .auth-card { padding: 24px 16px; }
    .auth-card input, .auth-card select { font-size: 16px; padding: 12px; }
    .clock-time { font-size: 2.5rem; }
    .clock-btn { padding: 14px 30px; font-size: 0.9rem; min-height: 48px; }
    th, td { padding: 8px 8px; font-size: 0.75rem; }
    .job-detail-header { flex-direction: column; gap: 12px; }
    .job-detail-meta { flex-direction: column; gap: 6px; }
    .profile-header { flex-direction: column; text-align: center; gap: 12px; }
    .stat-value { font-size: 1.5rem; }
    .section-title { font-size: 1.6rem; }
    .hero { padding: 80px 16px 60px; min-height: 90vh; }
    .google-account-chip { padding: 10px; }
    .google-account-chip .info strong { font-size: 0.85rem; }
    .google-account-chip .info small { font-size: 0.7rem; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(201,169,97,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,169,97,0.5); }

/* ========== SELECTION ========== */
::selection {
    background: rgba(201,169,97,0.3);
    color: var(--white);
}

/* ========== CLOCK WIDGET ========== */
.clock-widget {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.clock-time {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
}
.clock-date {
    font-size: 1rem;
    color: var(--white-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.clock-location {
    font-size: 0.9rem;
    color: var(--white-faint);
    margin-bottom: 24px;
}
.clock-location i { color: var(--danger); margin-right: 8px; }
.clock-btn {
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
}
.clock-btn.in {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
}
.clock-btn.out {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: var(--white);
}
.clock-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* ========== USER PROFILE ========== */
.user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
    flex-shrink: 0;
}
.user-profile {
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.user-info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.user-info p { font-size: 0.75rem; color: var(--white-faint); text-transform: capitalize; }

/* ========== MOBILE OVERLAY ========== */
.mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* ========== JOB DETAIL ========== */
.job-detail { animation: fadeIn 0.4s ease; }
.job-detail-header {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 30px;
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.job-detail-title h2 {
    font-size: 1.5rem; margin-bottom: 12px;
    font-family: 'Oswald', sans-serif; letter-spacing: 2px;
}
.job-detail-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    margin-top: 12px;
}
.job-detail-meta span {
    font-size: 0.85rem; color: var(--white-muted);
    display: flex; align-items: center; gap: 6px;
}
.job-detail-meta i { color: var(--gold); }

/* ========== MAP CONTAINER ========== */
.map-container {
    background: var(--black-elevated);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
}
.map-container i {
    font-size: 3rem; color: var(--gold);
    margin-bottom: 12px;
    display: block;
}
.map-container p { color: var(--white-muted); margin-bottom: 16px; }

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    padding-left: 24px;
}
.timeline::before {
    content: ''; position: absolute; left: 6px; top: 0; bottom: 0;
    width: 2px; background: rgba(201,169,97,0.3);
}
.timeline-item {
    position: relative;
    padding-bottom: 20px;
}
.timeline-item::before {
    content: ''; position: absolute; left: -22px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%; background: var(--gold);
    border: 2px solid var(--black-card);
}
.timeline-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.timeline-item p { font-size: 0.85rem; color: var(--white-faint); }

/* ========== CHAT ========== */
.chat-container {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex; flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 500px;
}
.chat-messages {
    flex: 1; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0; /* lets this flex child scroll instead of expanding the container */
    padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
}
.chat-message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeInUp 0.3s ease;
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* Mobile DM back button — hidden on desktop, shown when the contacts panel collapses. */
.chat-back { display: none; }
/* Flex chain must allow shrinking so .chat-messages scrolls inside the DM column.
   The conversation column is bound to the layout height and clips internally, so
   .chat-messages (flex:1) gets a real bounded height to scroll within. */
.chat-dm-layout, .chat-convo { min-height: 0; }
.chat-convo { height: 100%; overflow: hidden; }
.chat-message.received {
    align-self: flex-start;
    background: var(--black-elevated);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--white);
}
.chat-message.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}
.chat-message .meta {
    font-size: 0.75rem;
    margin-top: 6px;
    opacity: 0.7;
}
.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; gap: 12px;
}
.chat-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 2px solid rgba(255,255,255,0.08);
    background: var(--black-elevated);
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}
.chat-input:focus { border-color: var(--gold); }
.chat-send-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: var(--black);
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.chat-send-btn:hover { transform: scale(1.05); }
.chat-warning {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; color: var(--warning);
    padding: 8px 20px;
    background: rgba(255,193,7,0.05);
}
.chat-warning i { font-size: 1rem; }
.chat-user:hover { background: rgba(37,99,235,0.05); }
.chat-user.active { background: rgba(37,99,235,0.1); font-weight: 600; }
.btn-ghost { background: transparent; border: none; color: var(--gray); cursor: pointer; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; transition: var(--transition); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--white); }

/* ========== PRICING ========== */
.pricing-calculator {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.06);
}
.pricing-result {
    background: linear-gradient(135deg, rgba(201,169,97,0.1), rgba(201,169,97,0.05));
    border: 1px solid rgba(201,169,97,0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}
.pricing-result h3 {
    font-size: 2rem; color: var(--gold);
    font-family: 'Oswald', sans-serif;
    margin: 8px 0;
}
.pricing-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.breakdown-item {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
}
.breakdown-item p { font-size: 0.8rem; color: var(--white-faint); margin-bottom: 4px; }
.breakdown-item h4 { font-size: 1.1rem; color: var(--white); }

/* ========== BUTTON STATES ========== */
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: var(--black); }
.btn-warning:hover { background: #e6a700; }

/* ========== PHOTO LABEL ========== */
.photo-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== SWARM AGENTS ========== */
.agent-card {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.agent-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
}
.agent-card.sales::before { background: linear-gradient(90deg, #2563EB, #3B82F6); }
.agent-card.tech::before { background: linear-gradient(90deg, #059669, #10B981); }
.agent-card.admin::before { background: linear-gradient(90deg, #D97706, #F59E0B); }
.agent-card.support::before { background: linear-gradient(90deg, #7C3AED, #8B5CF6); }
.agent-card:hover { transform: translateY(-4px); border-color: rgba(201,169,97,0.2); }
.agent-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
}
.agent-status .dot {
    width: 8px; height: 8px; border-radius: 50%;
    animation: pulse 2s infinite;
}
.agent-status.online .dot { background: var(--success); }
.agent-status.busy .dot { background: var(--warning); }
.agent-status.idle .dot { background: var(--white-faint); }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.agent-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.agent-action-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0;
    font-size: 0.85rem;
    color: var(--white-muted);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.agent-action-item:last-child { border-bottom: none; }
.agent-action-item i { color: var(--gold); margin-top: 2px; }

/* ========== SAVINGS TRACKER ========== */
.savings-card {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid var(--success);
}
.savings-amount {
    font-size: 2rem; font-weight: 700;
    color: var(--success);
    font-family: 'Oswald', sans-serif;
}
.savings-label {
    font-size: 0.85rem; color: var(--white-faint);
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 8px;
}
.savings-comparison {
    display: flex; align-items: center; gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.savings-comparison .old {
    text-decoration: line-through;
    color: var(--white-faint);
    font-size: 0.9rem;
}
.savings-comparison .new {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}
.savings-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
    background: rgba(16,185,129,0.15); color: var(--success);
}

/* ========== MAP ========== */
#kmMap {
    width: 100%;
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.leaflet-container {
    background: #1a1a2e;
}
.leaflet-popup-content-wrapper {
    background: var(--card-bg);
    color: var(--white);
    border-radius: var(--radius-sm);
}
.leaflet-popup-tip {
    background: var(--card-bg);
}
.tracker-active {
    border-left: 4px solid var(--success);
    animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
    0%, 100% { border-left-color: var(--success); }
    50% { border-left-color: rgba(16,185,129,0.3); }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(220,53,69,0.4); }
    50% { box-shadow: 0 8px 40px rgba(220,53,69,0.7); }
}


/* === EB MOBILE FIX (phone overlap) === */
/* Dashboard top bar + hamburger: hidden on desktop, solid bar on phone */
.dashboard-topbar { display: none; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  background: var(--black-light, #15151f);
  color: #fff; border: 1px solid rgba(255,255,255,0.12);
  width: 42px; height: 42px; border-radius: 10px;
  font-size: 1.1rem; cursor: pointer; flex: 0 0 auto;
  align-items: center; justify-content: center;
}
.page-title { margin: 0; font-size: 1.25rem; line-height: 1.2; }

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .dashboard-topbar {
    display: flex;
    position: sticky; top: 0; z-index: 90;
    margin: -16px -16px 14px;            /* span full width over main-content padding */
    padding: 10px 16px;
    background: var(--black, #0a0a0a);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hamburger { display: inline-flex; }
  .main-content { padding: 16px; padding-top: 16px; }

  /* Tables: scroll horizontally instead of bursting the layout */
  .main-content table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

  /* Modals fit the screen */
  .modal { width: 96vw !important; max-width: 96vw !important; max-height: 90vh; overflow-y: auto; }
  .modal-overlay { padding: 12px; }

  /* Stop long text / urls from overflowing cards */
  .card, .stat-card { overflow-wrap: anywhere; word-break: break-word; }

  /* Any 2/3/4-col grids collapse (covers inline grid-template too) */
  .grid-2, .grid-3, .grid-4, .stats-grid, .form-grid { grid-template-columns: 1fr !important; }
}
/* === /EB MOBILE FIX === */

/* === EB MOBILE FIX 2 (dashboard header hamburger) === */
@media (max-width: 768px) {
  .page-header { justify-content: flex-start; gap: 12px; align-items: center; }
  .page-header .page-title { flex: 1; }
}
/* === /EB MOBILE FIX 2 === */

/* === EB MOBILE FIX 3 (collapse inline grids on phone) === */
@media (max-width: 768px) {
  .main-content [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .main-content [style*="display:flex"], .main-content [style*="display: flex"] { flex-wrap: wrap; }
  .main-content img { max-width: 100%; height: auto; }
}
/* === /EB MOBILE FIX 3 === */

/* === EB MOBILE FIX 4 (GPS floating banner) === */
@media (max-width: 768px) {
  .gps-floating { top: auto !important; right: 14px !important; left: 14px !important; bottom: 14px !important; justify-content: center; }
}
/* === /EB MOBILE FIX 4 === */
