/* ==========================================================================
   CÀ PHÊ LUẬT (CAFELUAT.IO.VN) — PHẠM THỊ HỒNG NHUNG
   THEME: 100% BRIGHT LUXURY LEGAL STUDIO (KHÔNG NỀN TỐI / KHÔNG NỀN ĐEN)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-warm: #fcf9f2;
    --bg-header: rgba(255, 255, 255, 0.96);
    
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --navy-600: #475569;
    
    --gold: #b8860b;
    --gold-light: #dfb755;
    --gold-gradient: linear-gradient(135deg, #dfb755 0%, #b8860b 100%);
    --gold-bg: rgba(184, 134, 11, 0.08);
    --gold-border: rgba(184, 134, 11, 0.25);
    
    --emerald: #059669;
    --emerald-light: #10b981;
    --emerald-bg: #ecfdf5;
    --emerald-border: rgba(5, 150, 105, 0.25);
    
    --blue: #1d4ed8;
    --blue-bg: #eff6ff;
    
    --border: #e2e8f0;
    --border-light: rgba(0, 0, 0, 0.05);
    
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 0 0 1px var(--border);
    --shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.1), 0 0 0 1px var(--border);
    --shadow-gold: 0 10px 25px -4px rgba(184, 134, 11, 0.3);
    --shadow-emerald: 0 10px 25px -4px rgba(5, 150, 105, 0.3);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--navy-700);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   NAVIGATION BAR (100% BRIGHT)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: 42px;
    background: var(--gold-gradient);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    font-family: var(--font-display);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
    white-space: nowrap;
}

.brand-text h1 {
    font-size: 17px;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--navy-900);
    letter-spacing: 0.5px;
}

.brand-text p {
    font-size: 11px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.nav-item-link {
    color: var(--navy-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.nav-item-link:hover, .nav-item-link.active {
    color: var(--navy-900);
    background: var(--bg-subtle);
}

.nav-landing-tab {
    background: var(--gold-bg);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-landing-tab:hover {
    background: var(--gold-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.nav-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy-900);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-phone-btn:hover {
    background: var(--gold);
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.3);
}

/* ==========================================================================
   PAGE 1: TRANG CHỦ TỔNG QUAN
   ========================================================================== */
.hero-wrapper {
    padding: 50px 0 40px;
}

.hero-card-bright {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
    background: radial-gradient(circle at 10% 10%, #fdfbf7 0%, #ffffff 85%);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
}

.hero-main-heading {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1.25;
    color: var(--navy-900);
    margin-bottom: 16px;
}

.hero-main-heading span.highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-main-desc {
    font-size: 15.5px;
    color: var(--navy-700);
    margin-bottom: 30px;
    max-width: 580px;
}

.hero-btns-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.btn-open-landing {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-gradient);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: var(--shadow-gold);
    transition: all 0.25s ease;
}

.btn-open-landing:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(184, 134, 11, 0.4);
}

.btn-contact-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--navy-800);
    border: 1px solid var(--border);
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-contact-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-bg);
}

.stats-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.stat-box h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy-900);
    font-family: var(--font-display);
}

.stat-box h3 span { color: var(--gold); }
.stat-box p { font-size: 12.5px; color: var(--navy-600); font-weight: 600; }

/* Profile Card Widget (Light) */
.profile-box-widget {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--gold);
}

.avatar-circle {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    position: relative;
}

.avatar-img-sim {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdfbf7, #e2e8f0);
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    box-shadow: 0 6px 18px rgba(184, 134, 11, 0.2);
}

.verify-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    background: var(--emerald);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #fff;
}

.profile-title-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.profile-role-sub {
    font-size: 13px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 12px;
}

.profile-firm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-bg);
    border: 1px solid rgba(29, 78, 216, 0.2);
    color: var(--blue);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.profile-direct-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.profile-direct-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-subtle);
    border-radius: var(--radius-xs);
    font-size: 12.5px;
    color: var(--navy-800);
    text-decoration: none;
    transition: all 0.2s;
}

.profile-direct-item:hover {
    background: var(--gold-bg);
    color: var(--gold);
    transform: translateX(3px);
}

/* 4 Lĩnh Vực Cốt Lõi */
.section-intro-center {
    text-align: center;
    max-width: 650px;
    margin: 40px auto 36px;
}

.intro-tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 8px;
}

.intro-heading {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.intro-desc {
    font-size: 15px;
    color: var(--navy-600);
}

.hubs-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.hub-card-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hub-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hub-icon-circle {
    width: 54px;
    height: 54px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.hub-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.hub-details-p {
    font-size: 14px;
    color: var(--navy-700);
    margin-bottom: 18px;
}

.hub-check-ul {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-check-ul li {
    font-size: 13px;
    color: var(--navy-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-check-ul li::before {
    content: "✓";
    color: var(--emerald);
    font-weight: bold;
}

.btn-card-landing {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    color: var(--navy-900);
    transition: all 0.25s;
}

.btn-card-landing.primary-gold {
    background: var(--gold-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.25);
}

.btn-card-landing:hover {
    background: var(--navy-900);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Consultation Booking Strip (Light) */
.consultation-strip {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* ==========================================================================
   PAGE 2: DEDICATED LANDING PAGE (MAU-ONLINE.HTML) STUDIO
   ========================================================================== */
.studio-top-nav {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 30px;
    margin: 30px 0 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.studio-main-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 60px;
}

.studio-form-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.studio-card-header {
    background: #fdfbf7;
    border-bottom: 1px solid var(--border);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.studio-card-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-card-body {
    padding: 32px;
}

.form-step-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-step-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-label-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.step-badge-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-900);
}

.step-num-icon {
    width: 26px;
    height: 26px;
    background: var(--gold-bg);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.input-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.field-wrapper {
    margin-bottom: 14px;
}

.field-label-text {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.field-label-text span.req { color: #e11d48; }

.form-input-box {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--navy-900);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-sans);
    transition: all 0.2s;
}

.form-input-box:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

/* Right Sticky Download Panel */
.sticky-download-panel {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.btn-huge-zip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--emerald);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-emerald);
    transition: all 0.25s ease;
}

.btn-huge-zip:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.4);
}

/* ==========================================================================
   FOOTER (100% BRIGHT / LIGHT)
   ========================================================================== */
.footer-bright {
    background: #ffffff;
    border-top: 1px solid var(--border);
    color: var(--navy-600);
    padding: 40px 0 30px;
    text-align: center;
    margin-top: 60px;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 19px;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.footer-sub-text {
    font-size: 13px;
    color: var(--navy-700);
    margin-bottom: 16px;
}

.float-actions {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn-round {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.float-btn-round.zalo { background: #0068ff; }
.float-btn-round.hotline { background: #059669; }

@media (max-width: 900px) {
    .hero-card-bright, .hubs-grid-4, .consultation-strip, .studio-main-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ADMIN PORTAL STYLES (PHẦN B: HỆ THỐNG QUẢN TRỊ NỘI BỘ)
   ========================================================================== */
.admin-body {
    background-color: #f1f5f9;
    color: var(--navy-800);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Admin Login Overlay */
.admin-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
}

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

.login-logo-box {
    width: 56px;
    height: 56px;
    background: var(--navy-900);
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-gold);
}

.login-brand-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.login-brand-header p {
    font-size: 13.5px;
    color: var(--navy-600);
    margin-bottom: 12px;
}

.login-badge-lawyer {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--navy-900);
}

.login-form .field-wrapper {
    margin-bottom: 16px;
}

.back-home-link {
    font-size: 13px;
    color: var(--navy-600);
    text-decoration: none;
    transition: color 0.2s;
}

.back-home-link:hover {
    color: var(--gold);
}

/* Admin Layout (Sidebar + Main) */
.admin-app-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 270px;
    background: #ffffff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.brand-logo-small {
    width: 38px;
    height: 38px;
    background: var(--navy-900);
    color: var(--gold-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sidebar-brand-title {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--navy-900);
    line-height: 1.2;
}

.sidebar-brand-sub {
    font-size: 11.5px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-subtle);
    margin: 14px 16px;
    border-radius: var(--radius-sm);
}

.user-avatar-sm {
    font-size: 24px;
}

.user-info-sm strong {
    display: block;
    font-size: 13.5px;
    color: var(--navy-900);
    line-height: 1.2;
}

.user-badge-role {
    font-size: 11px;
    color: var(--emerald);
    font-weight: 700;
}

.sidebar-menu {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.sidebar-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-700);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    position: relative;
}

.sidebar-nav-btn:hover {
    background: var(--bg-subtle);
    color: var(--navy-900);
}

.sidebar-nav-btn.active {
    background: var(--navy-900);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.nav-icon {
    font-size: 18px;
}

.nav-tag-hot {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    background: #ef4444;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
}

.nav-counter {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    background: var(--bg-subtle);
    color: var(--navy-900);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.sidebar-nav-btn.active .nav-counter {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-action-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-800);
    text-decoration: none;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-logout-btn:hover {
    background: #fca5a5;
}

/* Admin Main View */
.admin-main-view {
    flex: 1;
    margin-left: 270px;
    padding: 28px 36px 80px;
    max-width: 1500px;
}

/* Topbar */
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 20px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

.topbar-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--navy-900);
    margin-bottom: 2px;
}

.topbar-subtext {
    font-size: 13px;
    color: #64748b;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-quick-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--emerald);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-emerald);
    transition: transform 0.2s;
}

.btn-quick-new:hover {
    transform: translateY(-2px);
    background: #047857;
}

.topbar-contact-badge {
    padding: 8px 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-900);
}

/* Tab Panes */
.admin-tab-pane {
    display: none;
}

.admin-tab-pane.active {
    display: block;
    animation: fadeInTab 0.25s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon-wrapper.bg-blue { background: #eff6ff; color: #1d4ed8; }
.stat-icon-wrapper.bg-green { background: #ecfdf5; color: #059669; }
.stat-icon-wrapper.bg-gold { background: #fefce8; color: #ca8a04; }
.stat-icon-wrapper.bg-purple { background: #f5f3ff; color: #7c3aed; }

.stat-label {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--navy-900);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-trend {
    font-size: 11.5px;
    font-weight: 700;
}

.text-green { color: #059669; }
.text-blue { color: #2563eb; }
.text-amber { color: #d97706; }
.text-purple { color: #7c3aed; }

/* Dashboard Split Grid */
.dashboard-split-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.admin-card-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.header-title-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title-flex h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--navy-900);
}

.section-desc {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* Quick Customer List */
.quick-cust-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-cust-card {
    padding: 14px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.btn-card-small {
    width: 100%;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-weight: 700;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-card-small:hover {
    background: var(--gold);
    color: #ffffff;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.admin-table th {
    background: var(--bg-subtle);
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: var(--navy-900);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.font-mono {
    font-family: var(--font-mono);
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.text-blue { color: #1d4ed8; }

/* Status Badges */
.badge-pill-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-status-green { background: #dcfce7; color: #15803d; }
.badge-status-blue { background: #dbeafe; color: #1d4ed8; }
.badge-status-gold { background: #fef9c3; color: #a16207; }
.badge-status-gray { background: #e2e8f0; color: #475569; }

.badge-service {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-subtle);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy-900);
}

.badge-counter {
    display: inline-block;
    padding: 2px 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    border-radius: 10px;
    font-size: 11px;
}

/* Action Buttons in Tables */
.btn-action-small {
    padding: 6px 12px;
    background: var(--navy-900);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-action-small:hover {
    background: var(--gold);
}

.btn-action-edit {
    padding: 6px 10px;
    background: #f1f5f9;
    color: var(--navy-900);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-action-del {
    padding: 6px 10px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Generator View */
.generator-banner {
    background: linear-gradient(135deg, var(--navy-900) 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.badge-ready {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gold-light);
    color: var(--navy-900);
    font-weight: 800;
    font-size: 11px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.generator-banner h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 8px;
    color: #ffffff;
}

.generator-banner p {
    font-size: 14px;
    color: #cbd5e1;
    max-width: 900px;
    margin-bottom: 20px;
}

.banner-presets {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.preset-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--gold-light);
}

.preset-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-preset {
    padding: 6px 12px;
    background: #ffffff;
    color: var(--navy-900);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.form-section-box {
    margin-bottom: 24px;
}

.section-header-highlight {
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    gap: 14px;
}

.step-badge {
    width: 32px;
    height: 32px;
    background: var(--navy-900);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crm-picker-row {
    margin-bottom: 18px;
    padding: 12px 16px;
    background: var(--bg-warm);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
}

.select-highlight {
    font-weight: 700;
    color: var(--navy-900);
    border-color: var(--gold);
}

.text-money-words {
    padding: 10px 14px;
    background: var(--bg-subtle);
    border: 1px dashed var(--border);
    border-radius: var(--radius-xs);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--emerald);
    min-height: 42px;
    display: flex;
    align-items: center;
}

.field-hint {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 4px;
}

.checkbox-save-cust {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border-radius: var(--radius-xs);
    font-size: 12.5px;
    color: var(--navy-800);
}

.checkbox-save-cust label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Industry Table */
.table-industry {
    width: 100%;
    border-collapse: collapse;
}

.table-industry th {
    background: var(--bg-subtle);
    font-size: 12px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--navy-900);
}

.table-industry td {
    border-bottom: 1px solid var(--border);
    padding: 4px 6px;
    vertical-align: middle;
}

.btn-add-row {
    padding: 6px 12px;
    background: var(--navy-900);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Generator Action Box */
.generator-action-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-generate-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: var(--emerald);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: var(--shadow-emerald);
    transition: all 0.25s ease;
}

.btn-generate-main:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.4);
}

.btn-icon {
    font-size: 20px;
}

.generator-sub-actions {
    margin-top: 16px;
    text-align: center;
}

.single-file-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.btn-single-file {
    padding: 8px 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--navy-800);
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s;
}

.btn-single-file:hover {
    background: #ffffff;
    border-color: var(--gold);
    color: var(--gold);
}

/* Repository Tree View */
.repo-tree-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.repo-group-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.repo-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.repo-group-title h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--navy-900);
    flex: 1;
}

.badge-pill-count {
    font-size: 11px;
    font-weight: 700;
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.repo-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.repo-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-subtle);
    border-radius: 6px;
}

.repo-item-row strong {
    font-size: 13px;
    color: var(--navy-900);
    display: block;
}

/* Modals */
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: var(--radius-md);
    max-width: 620px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--navy-900);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #64748b;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--navy-900);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

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

.btn-cancel {
    padding: 10px 18px;
    background: var(--bg-subtle);
    color: var(--navy-700);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.owner-sync-checkbox-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.checkbox-label-main {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label-main input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--navy-900);
    cursor: pointer;
}

.checkbox-text-bold {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-900);
}

.sync-hint-badge {
    margin-top: 6px;
    font-size: 12.5px;
    color: #166534;
    font-weight: 500;
}

.table-industry input.input-industry-code {
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    text-align: center;
    color: var(--navy-900);
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 4px;
    width: 100%;
}

.table-industry textarea.input-industry-desc {
    width: 100%;
    font-size: 12.5px;
    line-height: 1.4;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px;
    resize: vertical;
    font-family: inherit;
}

.table-industry input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #16a34a;
    cursor: pointer;
}

/* ==========================================
   OCR UPLOAD & REVIEW MODAL STYLES
   ========================================== */
.ocr-upload-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border: 2px dashed #86efac;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.ocr-upload-card.drag-over {
    border-color: #16a34a;
    background: #dcfce7;
    transform: scale(1.01);
}

.ocr-upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    padding: 10px;
}

.ocr-icon-circle {
    width: 44px;
    height: 44px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-upload-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #15803d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    margin-top: 10px;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
    transition: background 0.2s;
}

.btn-upload-trigger:hover {
    background: #166534;
}

.ocr-progress-container {
    margin-top: 14px;
}

.ocr-progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.ocr-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #15803d);
    transition: width 0.3s ease;
}

.ocr-status-caption {
    font-size: 12px;
    color: #166534;
    font-weight: 600;
    margin-top: 6px;
    text-align: center;
}

/* Modal Overlay */
.ocr-review-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ocr-review-card {
    background: #fff;
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid #cbd5e1;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ocr-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.btn-close-modal {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    background: #fee2e2;
    color: #dc2626;
}

.ocr-review-body {
    padding: 16px 20px;
    overflow-y: auto;
}

.ocr-table-review {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ocr-table-review th {
    padding: 8px 10px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    border-bottom: 1px solid #cbd5e1;
    text-align: left;
}

.ocr-table-review td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.ocr-field-title {
    font-weight: 600;
    color: #1e293b;
}

.ocr-edit-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.2s;
}

.ocr-edit-input:focus {
    border-color: #22c55e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

.badge-status-ok {
    display: inline-block;
    padding: 3px 8px;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 11px;
    border-radius: 20px;
}

.badge-status-warn {
    display: inline-block;
    padding: 3px 8px;
    background: #fef3c7;
    color: #b45309;
    font-weight: 700;
    font-size: 11px;
    border-radius: 20px;
}

.ocr-review-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.btn-ocr-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-ocr-confirm {
    background: #15803d;
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(21, 128, 61, 0.3);
    transition: background 0.2s;
}

.btn-ocr-confirm:hover {
    background: #166534;
}

.ocr-toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #15803d;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 999999;
    display: none;
    animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1200px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .generator-form-grid, .dashboard-split-grid, .repo-tree-view {
        grid-template-columns: 1fr;
    }
}

