:root {
    --primary: #ff6f00; /* Thrive Orange */
    --primary-hover: #e65100;
    --primary-soft: rgba(255, 111, 0, 0.08);
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-sidebar: #ffffff;
    --border-color: #e2e8f0;
    --text-heading: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-body);
    line-height: 1.6;
}

/* --- Enterprise Login Gateway --- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(255, 111, 0, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, rgba(255, 111, 0, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 24px;
}

.login-card {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 36px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    height: 40px;
    margin-bottom: 20px;
}

.login-header h1 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.login-form .input-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 12px 16px 12px 40px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fdfdfd;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.1);
}

.btn-login {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.2);
}

.btn-login:active {
    transform: translateY(0);
}

/* --- Dashboard Architecture --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden; /* Menu handles internal scroll */
}

.sidebar-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-logo {
    height: 28px;
}

.header-logo-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.5px;
}

.header-logo-text span {
    color: var(--primary);
}

.sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

/* Custom scrollbar for sidebar menu */
.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.menu-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0 16px 8px;
    display: block;
}

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

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.sidebar-menu a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-menu a:hover {
    background: #f7fafc;
    color: var(--text-heading);
}

.sidebar-menu a.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.sidebar-footer {
    padding: 20px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: auto; /* Pushes to bottom in flex column */
}

.sidebar-footer .user-pill {
    background: transparent;
    border: none;
    padding: 0;
    gap: 12px;
}

.sidebar-footer .user-pill img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sidebar-footer .user-pill .name {
    font-size: 14px;
    font-weight: 800;
}

.footer-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.footer-nav-link:hover {
    background: #f7fafc;
    color: var(--text-heading);
}

.footer-nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.logout-btn {
    color: var(--danger) !important;
    margin-top: 4px;
}

.logout-btn:hover {
    background: #fff5f5 !important;
    color: #c53030 !important;
}

/* --- Content Hub --- */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 30px 40px;
    min-width: 0;
    overflow-x: hidden;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.welcome-msg h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.7px;
}

.welcome-msg p {
    color: var(--text-muted);
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-icon-btn {
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.nav-icon-btn:hover {
    color: var(--text-heading);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    box-shadow: var(--shadow-subtle);
}

.user-pill img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.user-pill .details {
    display: flex;
    flex-direction: column;
}

.user-pill .name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}

.user-pill .role {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- Cards & Components --- */
.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
}

.card-title-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-heading);
}

.status-label {
    padding: 4px 12px;
    background: #ebfbee;
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Forms --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.full-width {
    grid-column: 1 / -1 !important;
}

.form-container {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    max-width: 1200px;
    margin: 0 auto;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-body);
    background: #fcfcfd;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.05);
}

.btn-primary-action {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-action:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.2);
}

/* --- Mobile Menu Trigger --- */
.mobile-toggle {
    display: none;
    font-size: 20px;
    color: var(--text-heading);
    cursor: pointer;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Dropdown Menu --- */
.has-dropdown .dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.has-dropdown .drop-icon {
    font-size: 12px !important;
    width: auto !important;
    transition: transform 0.3s ease;
}
.has-dropdown.open .drop-icon {
    transform: rotate(180deg);
}
.dropdown-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}
.dropdown-menu li a {
    font-size: 13px;
    padding: 8px 16px;
    color: var(--text-muted);
}
.dropdown-menu li a:before {
    content: '-';
    margin-right: 8px;
    color: var(--border-color);
}
.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    color: var(--primary);
    background: none;
}
.dropdown-menu li a.active:before {
    color: var(--primary);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .top-nav {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .welcome-msg h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .top-nav-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .main-content {
        padding: 20px;
    }
}

/* --- Sidebar Categorization --- */
.sidebar-section {
    margin-top: 25px;
}

.sidebar-category-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 24px 10px;
    opacity: 0.7;
}

/* --- Premium Components --- */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-premium);
}

.radiant-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    padding: 60px 40px;
    border-radius: 24px;
    margin: 0 40px 40px 40px;
    position: relative;
    overflow: hidden;
    color: white !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.radiant-header * {
    color: white !important;
}

.radiant-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.15) 0%, transparent 70%);
}

.radiant-header h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.radiant-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 500;
}

.performance-pill {
    background: rgba(255, 111, 0, 0.2);
    color: #ff8c33;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 111, 0, 0.3);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* --- Layout Optimization --- */
.main-content {
    max-width: 1400px;
    margin: 0 auto 0 240px;
}

@media (max-width: 1200px) {
    .main-content {
        padding: 30px;
    }
}
/* --- Global Table & Pill Architecture --- */
.lead-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.lead-table th { 
    text-align: left; 
    padding: 18px 15px; 
    border-bottom: 2px solid #f1f5f9; 
    color: #94a3b8; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-weight: 800; 
    white-space: nowrap;
}
.lead-table td { padding: 20px 15px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }

.status-pill { 
    padding: 6px 14px; 
    border-radius: 100px; 
    font-size: 11px; 
    font-weight: 800; 
    text-transform: uppercase; 
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.status-new { background: #f8fafc; color: #64748b; }
.status-active { background: #ecfeff; color: #0891b2; }
.status-working { background: #fff7ed; color: #ea580c; }
.status-in-contact { background: #f0fdfa; color: #0d9488; }
.status-in-process { background: #eff6ff; color: #2563eb; }
.status-follow-up { background: #fffbeb; color: #d97706; }
.status-converted, .status-closed-won { background: #f0fdf4; color: #16a34a; box-shadow: 0 0 15px rgba(22, 163, 74, 0.1); }
.status-lost, .status-waste { background: #fef2f2; color: #dc2626; }
.status-contacted { background: #fff7ed; color: #ea580c; }
.status-interested { background: #f0fdf4; color: #16a34a; }

.neglected-row { background-color: #fffafb !important; border-left: 4px solid #ef4444; }
.neglected-tag { color: #ef4444; font-size: 10px; font-weight: 800; text-transform: uppercase; margin-top: 4px; display: block; }

/* --- Dashboard Grid Hub --- */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -30px; position: relative; z-index: 10; padding: 0 40px; }
.modern-stat { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.03); }
.modern-stat .val { font-size: 28px; font-weight: 800; color: #0f172a; display: block; }
.modern-stat .lbl { font-size: 11px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }
.modern-stat i { float: right; font-size: 24px; color: #ff6f00; opacity: 0.2; }

@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; margin-top: 0; padding: 20px; }
}

/* --- Performance & Stat Cards --- */
.perf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.perf-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; }
.perf-card h4 { font-size: 11px; font-weight: 800; color: #94a3b8; text-transform: uppercase; margin-bottom: 10px; }
.perf-card .val { font-size: 28px; font-weight: 800; color: #0f172a; }
.perf-card .sub { font-size: 12px; color: #64748b; margin-top: 5px; }

.progress-bar { width: 100%; height: 8px; background: #f1f5f9; border-radius: 100px; margin-top: 15px; overflow: hidden; }
.progress-fill { height: 100%; background: #ff6f00; border-radius: 100px; }

/* --- Filter Bar Hub --- */
.filter-bar { 
    display: flex; 
    align-items: flex-end; 
    gap: 20px; 
    padding: 25px 35px !important; 
    background: white !important;
    border: 1px solid #f1f5f9;
}
.filter-group { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.filter-label { font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }
.filter-input { 
    width: 100%; 
    padding: 14px 18px; 
    border: 1.5px solid #f1f5f9; 
    border-radius: 12px; 
    background: #f8fafc; 
    font-size: 14px; 
    font-family: inherit; 
    color: #1e293b; 
    transition: 0.3s;
}
.filter-input:focus { border-color: #ff6f00; background: white; outline: none; box-shadow: 0 0 0 4px rgba(255,111,0,0.05); }
.btn-filter { 
    background: #0f172a; 
    color: white; 
    border: none; 
    padding: 15px 30px; 
    border-radius: 12px; 
    font-weight: 800; 
    font-size: 12px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    cursor: pointer; 
    transition: 0.3s;
}
.btn-filter:hover { background: #1e293b; transform: translateY(-2px); }


@media (max-width: 900px) {
    .filter-bar { flex-direction: column; align-items: stretch; }
}

/* --- Package Discovery Grid --- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 30px; }
.pkg-card { background: white; border-radius: 20px; overflow: hidden; border: 1px solid #f1f5f9; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.pkg-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }

.pkg-img { width: 100%; height: 220px; object-fit: cover; }
.pkg-content { padding: 20px; }
.pkg-meta { display: flex; gap: 15px; margin-bottom: 12px; }
.pkg-meta span { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }
.pkg-title { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 15px; line-height: 1.4; }
.pkg-price { font-size: 20px; font-weight: 800; color: #ff6f00; }

.specialty-tag { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    background: #0f172a; 
    color: white; 
    padding: 6px 14px; 
    border-radius: 100px; 
    font-size: 10px; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Approval & Rejection Terminal Extensions */
.btn-approve { 
    background: #10b981; 
    color: white; 
    border: none; 
    padding: 8px 16px; 
    border-radius: 8px; 
    font-weight: 800; 
    font-size: 11px; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: 0.3s; 
}
.btn-approve:hover { 
    background: #059669; 
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.btn-reject { 
    background: #fef2f2; 
    color: #ef4444; 
    border: 1px solid #fee2e2; 
    padding: 8px 16px; 
    border-radius: 8px; 
    font-weight: 800; 
    font-size: 11px; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: 0.3s; 
}
.btn-reject:hover { 
    background: #fee2e2; 
    transform: translateY(-1px);
}
.btn-reject-submit { 
    background: #0f172a; 
    color: white; 
    border: none; 
    padding: 14px; 
    border-radius: 12px; 
    width: 100%; 
    font-weight: 800; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    cursor: pointer; 
    transition: 0.3s; 
}
.btn-reject-submit:hover { 
    background: #1e293b; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px -10px rgba(15, 23, 42, 0.5);
}

/* Modal Frame Restoration */
.modal { 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    display: none; 
    background-color: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(8px); 
}
.modal-content { 
    background-color: #fff; 
    margin: 10% auto; 
    padding: 40px; 
    border-radius: 24px; 
    width: 90%; 
    max-width: 500px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
    border: 1px solid #f1f5f9; 
    position: relative; 
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- UNIVERSAL ELITE MOBILE RESPONSIVE LAYER --- */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0 !important;
        padding: 20px !important;
        max-width: 100% !important;
    }
    
    .radiant-header {
        margin: 0 0 30px 0 !important;
        padding: 40px 25px !important;
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .top-nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .welcome-msg h2 {
        font-size: 20px;
    }

    /* Fix Grid Hubs */
    .command-pulse-strip {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .pulse-card {
        padding: 12px !important;
        flex-direction: column !important;
        text-align: center;
        gap: 8px !important;
    }

    .modular-grid, .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .perf-grid, .stat-inline {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Fixed Table Overflow */
    .lead-card, .pkg-list-card, .content-card {
        overflow-x: auto !important;
        padding: 15px !important;
    }
    
    .lead-table, .pkg-table {
        min-width: 600px; /* Forces scroll instead of squishing */
    }

    /* Form Optimizations */
    .form-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .command-pulse-strip {
        grid-template-columns: 1fr !important;
    }
    
    .perf-grid, .stat-inline {
        grid-template-columns: 1fr !important;
    }
    
    .top-nav-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    
    .user-pill {
        justify-content: center;
    }
}
/* --- Itinerary Studio & Form Enhancements --- */
.form-help {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
    font-weight: 500;
}

.itinerary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    position: relative;
    transition: 0.3s;
}

.itinerary-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(255, 111, 0, 0.05);
}

.itinerary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.day-badge {
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activity-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    transition: 0.2s;
}

.activity-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.activity-card .form-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .activity-card .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .activity-card .form-grid {
        grid-template-columns: 1fr;
    }
}

.activity-card .form-group label {
    margin-bottom: 12px !important;
    display: block;
    color: var(--primary);
    font-weight: 800;
}

.helper-icon {
    color: var(--primary);
    margin-right: 5px;
    font-size: 14px;
}
