/* Base Styles & Variables */
:root {
    --brand-highlight: #c45911; /* Terracotta/Orange-Brown */
    --brand-corporate: #010066; /* Deep Navy Blue */
    --brand-corporate-soft: #192a7a;
    --brand-support: #1e90ff;
    --surface: #ffffff;
    --surface-alt: #f8f9ff;
    --surface-muted: #eef0ff;
    --primary-color: var(--brand-corporate);
    --secondary-color: var(--brand-highlight);
    --accent-color: #f4f4f4;
    --shadow-color: rgba(15, 23, 42, 0.12);
    --transition: all 0.3s ease;

    /* Light Mode Variables */
    --bg-color: #ffffff;
    --bg-light: #f8f9ff;
    --text-color: #010066; /* Navy Blue in Light Mode */
    --text-muted: #4a4a8c;
    --card-bg: #ffffff;
    --card-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    --nav-bg: rgba(255,255,255,0.95);
    --nav-scrolled: rgba(255,255,255,0.98);
    --border-color: #e5e5e5;
    --surface-border: rgba(1,0,102,0.08);
    --input-bg: #f7f8ff;
    --btn-text: #ffffff;
    --link-color: var(--brand-corporate);
    --link-hover: var(--secondary-color);
}

[data-theme="dark"] {
    --surface: #0b0930; /* Updated Brand Dark Blue */
    --surface-alt: #151342; /* Slightly lighter blue for secondary backgrounds */
    --surface-muted: #111028;
    --bg-color: #040318;
    --bg-light: #12112d;
    --text-color: #f8f8ff; /* Pure White in Dark Mode */
    --text-muted: #b8b9ff;
    --card-bg: #11112c;
    --card-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    --nav-bg: rgba(8, 10, 40, 0.92);
    --nav-scrolled: rgba(8, 10, 40, 0.98);
    --border-color: rgba(255, 255, 255, 0.12);
    --surface-border: rgba(255, 255, 255, 0.12);
    --input-bg: #16153b;
    --primary-color: #ffffff;
    --secondary-color: var(--brand-highlight);
    --btn-text: #ffffff;
    --link-color: #a8c6ff;
    --link-hover: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
    min-height: 100vh;
    overflow-wrap: anywhere;
    word-break: break-word;
}

html {
    background-color: var(--bg-color);
    color-scheme: light dark;
}

a {
    color: var(--link-color);
    transition: color 0.22s ease;
}

a:hover,
button:hover,
input:focus,
select:focus,
textarea:focus {
    color: var(--link-hover);
}

::placeholder {
    color: rgba(1, 0, 102, 0.4);
}

[data-theme="dark"] ::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.section-description,
.text-muted {
    color: var(--text-muted);
}

.text-strong {
    font-weight: 700;
}

.card,
.card-panel,
.modal,
.form-card,
.dashboard-panel,
.admin-card,
.admin-header,
.admin-table-container,
.profile-dropdown,
.footer,
.footer-bottom,
.dashboard-mobile-sidebar,
.dashboard-mobile-profile-card {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

input,
textarea,
select,
.form-control,
.search-input {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

button,
.btn,
.btn-primary,
.btn-secondary,
.btn-outline {
    color: inherit;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(196, 89, 17, 0.24);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw + 0.8rem, 1.8rem); }

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section-padding {
    padding: clamp(60px, 10vw, 100px) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--secondary-color);
}

.text-white {
    color: #ffffff !important;
}

.brand-dark-bg {
    background-color: #01006a !important;
}

/* Section Headers */
.section-header {
    margin-bottom: clamp(30px, 8vw, 60px);
}

.section-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
}

.section-title {
    color: var(--text-color);
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.about-text .section-title::after {
    left: 0;
    transform: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, color 220ms ease;
    border: 2px solid transparent;
    text-decoration: none;
    min-height: 48px;
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--btn-text);
    box-shadow: 0 16px 35px rgba(196, 89, 17, 0.22);
}

.btn-primary:hover {
    background-color: #a0480e;
    box-shadow: 0 20px 40px rgba(196, 89, 17, 0.28);
}

.btn-secondary {
    background-color: var(--brand-corporate);
    color: var(--btn-text);
    box-shadow: 0 16px 35px rgba(1, 0, 102, 0.18);
}

.btn-secondary:hover {
    background-color: #000044;
}

.btn-outline {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(255,255,255,0.12);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 16px 34px;
    font-size: 1rem;
}

.w-100 {
    width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff; /* Pure white background */
    transition: all 0.4s ease;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

[data-theme="dark"] .header {
    background: #0b0930; /* Updated Brand Dark Blue background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Smart Hide/Show on Scroll - Optional: removing hidden to keep it always sticky if desired, but keeping the requested behavior */
.header.hidden {
    transform: translateY(-100%);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Account link (client/admin) shown in header */
.account-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 600;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.account-link i { color: var(--secondary-color); }
.account-link:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(1,0,102,0.06); background: rgba(196,89,17,0.04); }
.account-link .chevron { font-size: 0.9rem; color: var(--text-muted); }

/* Unified Profile Menu */
.profile-menu { position: relative; }
.profile-btn { display:inline-flex; align-items:center; gap:10px; padding:8px 12px; border-radius:10px; background:transparent; border:1px solid transparent; cursor:pointer; transition:var(--transition); font-weight:600; }
.profile-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(1,0,102,0.06); background: rgba(196,89,17,0.04); }
.profile-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover; display:inline-block; }
.profile-name { display:inline-block; max-width:140px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-chevron { color: var(--text-muted); }
.profile-dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--card-bg); border-radius: 12px; box-shadow: 0 10px 30px var(--card-shadow); border:1px solid var(--border-color); overflow: hidden; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .18s ease, transform .18s ease; z-index: 1100; }
.profile-dropdown.active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.profile-item { display: flex; align-items: center; gap:8px; padding: 10px 12px; color: var(--text-color); text-decoration: none; font-weight:600; }
.profile-item:hover { background: rgba(196,89,17,0.04); }
.profile-divider { height:1px; background: var(--border-color); margin:6px 0; }


/* Dashboard nav */
.dashboard-nav {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:24px;
    padding:10px;
    border:1px solid var(--border-color);
    border-radius:20px;
    background: linear-gradient(135deg, rgba(1,0,102,0.03), rgba(196,89,17,0.04));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.dashboard-nav a {
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:50px;
    padding:10px 14px;
    border-radius:14px;
    text-decoration:none;
    color:var(--text-color);
    background:transparent;
    font-weight:600;
    transition: all .2s ease;
}
.dashboard-nav a:hover {
    background: rgba(196,89,17,0.08);
    color: var(--secondary-color);
    transform: translateY(-1px);
}
.dashboard-nav a.active {
    background: linear-gradient(135deg, var(--secondary-color), #da7b32);
    color:white;
    box-shadow:0 10px 24px rgba(196,89,17,.22);
}

.dashboard-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 180px;
    padding: 28px 26px;
    border-radius: 28px;
    background: var(--card-bg);
    border: 1px solid rgba(1, 0, 102, 0.08);
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.10);
    text-decoration: none;
    color: inherit;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}
.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 64px rgba(15, 23, 42, 0.16);
    border-color: rgba(196, 89, 17, 0.25);
    background: linear-gradient(180deg, rgba(255,255,255,0.95), var(--card-bg));
}
.dashboard-stat-card--accent {
    background: linear-gradient(135deg, #010066 0%, #1a0080 100%);
    color: white;
}
.dashboard-stat-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.dashboard-stat-card__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}
.dashboard-stat-card--accent .dashboard-stat-card__label {
    color: rgba(255, 255, 255, 0.82);
}
.dashboard-stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 89, 17, 0.12);
    color: var(--secondary-color);
    font-size: 1.15rem;
}
.dashboard-stat-card--accent .dashboard-stat-card__icon {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}
.dashboard-stat-card__value {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1;
}
.dashboard-stat-card__meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.dashboard-stat-card--accent .dashboard-stat-card__meta {
    color: rgba(255, 255, 255, 0.85);
}

.dashboard-panel {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 18px 40px var(--card-shadow);
    padding: 28px;
}

.dashboard-hero {
    margin-bottom: 30px;
}
.dashboard-hero__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(1,0,102,0.96), rgba(39,18,124,0.92));
    color: #ffffff;
    box-shadow: 0 26px 70px rgba(1, 0, 102, 0.2);
}
.dashboard-hero__content {
    max-width: 65%;
}
.dashboard-hero__eyebrow {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    margin-bottom: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.dashboard-hero__title {
    font-size: clamp(2rem, 3vw, 3.2rem);
    margin-bottom: 16px;
    line-height: 1.05;
}
.dashboard-hero__description {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    max-width: 580px;
}
.dashboard-hero__action {
    display:flex;
    justify-content:flex-end;
    width: 100%;
}
.dashboard-hero__action .btn {
    min-width: 210px;
}

.dashboard-stat-card--blue {
    background: linear-gradient(135deg, #0c4a6e 0%, #2563eb 100%);
    color: white;
}

.dashboard-stat-card--green {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
    color: white;
}

.dashboard-stat-card--orange {
    background: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
    color: white;
}

.dashboard-stat-card--purple {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: white;
}

.dashboard-stat-card,
.dashboard-request-card {
    animation: fadeInUp 0.45s ease both;
}

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

.requests-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
.requests-table thead {
    background: var(--bg-light);
}
.requests-table thead tr th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}
.requests-table tbody tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.requests-table tbody tr:hover {
    transform: translateY(-1px);
    background: rgba(196, 89, 17, 0.04);
    box-shadow: inset 0 0 0 1px rgba(196, 89, 17, 0.08);
}
.requests-table tbody tr td {
    vertical-align: middle;
}

.dashboard-desktop-table {
    display: block;
}
.dashboard-mobile-card-list {
    display: none;
}
.dashboard-request-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid rgba(1, 0, 102, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dashboard-request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
    border-color: rgba(196, 89, 17, 0.14);
}
.dashboard-request-card__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary-color);
}
.dashboard-request-card__title {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.dashboard-request-card__meta {
    display: grid;
    gap: 12px;
}
.dashboard-request-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.dashboard-request-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dashboard-request-card__status {
    min-width: 108px;
    justify-content: center;
}
.dashboard-request-card--empty {
    padding: 30px;
    text-align: center;
}

.dashboard-form-grid {
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:20px;
}
.dashboard-form-grid .field {
    display:flex;
    flex-direction:column;
    gap:8px;
}

main form input,
main form textarea,
main form select {
    width:100%;
    max-width:100%;
    padding:14px;
    border:1px solid var(--border-color);
    border-radius:12px;
    background: var(--input-bg);
    color: var(--text-color);
}

.dashboard-mobile-shell {
    display:none;
}
.dashboard-mobile-toggle {
    display:none;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:44px;
    padding:10px 14px;
    border-radius:999px;
    border:1px solid rgba(1,0,102,0.16);
    background: rgba(255,255,255,0.96);
    color: var(--text-color);
    font-weight:700;
    cursor:pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
[data-theme="dark"] .dashboard-mobile-toggle {
    background: rgba(21, 19, 66, 0.94);
    border-color: rgba(255,255,255,0.18);
    color:#fff;
}
.dashboard-mobile-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,1);
}
.dashboard-mobile-overlay {
    position:fixed;
    inset:0;
    background: rgba(15, 23, 42, 0.4);
    opacity:0;
    pointer-events:none;
    transition: opacity .25s ease;
    z-index:1500;
}
.dashboard-mobile-overlay.active {
    opacity:1;
    pointer-events:auto;
}
.dashboard-mobile-sidebar {
    position:fixed;
    top:0;
    left:0;
    display:flex;
    flex-direction:column;
    width:min(92vw, 300px);
    max-width: 300px;
    height:100vh;
    padding:22px 18px 20px;
    background: rgba(255,255,255,0.98);
    color:#111827;
    border-top-right-radius:28px;
    border-bottom-right-radius:28px;
    transform: translateX(-110%);
    transition: transform .32s ease, box-shadow .32s ease;
    z-index:1600;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(12px);
    overflow:hidden;
}
[data-theme="dark"] .dashboard-mobile-sidebar {
    background: rgba(8, 13, 44, 0.96);
    color:#f8fafc;
}
.dashboard-mobile-sidebar.active {
    transform: translateX(0);
}
.dashboard-mobile-profile-card {
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px;
    border-radius:22px;
    background: rgba(248,248,252,0.95);
    border:1px solid rgba(15,23,42,0.08);
    margin-bottom:24px;
    flex:0 0 auto;
}
[data-theme="dark"] .dashboard-mobile-profile-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.dashboard-mobile-profile-avatar {
    width:52px;
    height:52px;
    border-radius:50%;
    overflow:hidden;
    border:1px solid rgba(196,89,17,0.18);
    background:#fff;
    flex-shrink:0;
}
.dashboard-mobile-profile-avatar img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.dashboard-mobile-profile-info {
    flex:1;
    min-width:0;
}
.dashboard-mobile-profile-name {
    display:block;
    font-size:1rem;
    font-weight:700;
    color: inherit;
    line-height:1.2;
    margin-bottom:4px;
}
.dashboard-mobile-profile-email {
    display:block;
    font-size:0.86rem;
    color: rgba(15,23,42,0.7);
    line-height:1.3;
    word-break: break-word;
}
[data-theme="dark"] .dashboard-mobile-profile-email {
    color: rgba(255,255,255,0.72);
}
.dashboard-mobile-close {
    border:none;
    background: rgba(15,23,42,0.08);
    color: inherit;
    width:38px;
    height:38px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition: transform .18s ease, background .18s ease;
}
.dashboard-mobile-close:hover {
    transform: scale(1.04);
    background: rgba(15,23,42,0.14);
}
.dashboard-mobile-nav {
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:22px;
    flex:1 1 auto;
    overflow-y:auto;
    padding-right:4px;
}
.dashboard-mobile-link {
    display:flex;
    align-items:center;
    gap:14px;
    min-height:54px;
    padding:0 16px;
    border-radius:18px;
    border:1px solid transparent;
    background: rgba(15,23,42,0.04);
    color:#111827;
    text-decoration:none;
    font-weight:600;
    transition: transform .18s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
    position:relative;
}
[data-theme="dark"] .dashboard-mobile-link {
    background: rgba(255,255,255,0.05);
    color:#f8fafc;
}
.dashboard-mobile-link i {
    width:24px;
    text-align:center;
    color: var(--secondary-color);
    font-size:1rem;
}
.dashboard-mobile-link span {
    flex:1;
}
.dashboard-mobile-link:hover {
    transform: translateX(1px);
    background: rgba(196,89,17,0.12);
    box-shadow: 0 14px 30px rgba(16,24,40,0.08);
}
.dashboard-mobile-link:active {
    transform: scale(0.99);
}
.dashboard-mobile-link.active {
    background: var(--secondary-color);
    color:#ffffff;
    border-color: transparent;
    box-shadow: 0 18px 38px rgba(196,89,17,0.24);
    border-left: 4px solid rgba(255,255,255,0.9);
}
.dashboard-mobile-link.active i {
    color:#ffffff;
}
.dashboard-mobile-logout-wrap {
    margin-top:auto;
    padding-top: 18px;
    border-top:1px solid rgba(15,23,42,0.08);
    flex:0 0 auto;
}
.dashboard-mobile-link--logout {
    background: rgba(254,226,226,0.95);
    color:#b91c1c;
    border-color: rgba(248,113,113,0.4);
}
.dashboard-mobile-link--logout i {
    color:#dc2626;
}
.dashboard-mobile-link--logout:hover {
    background: rgba(254,205,211,0.95);
    color:#991b1b;
}
.dashboard-mobile-link--logout:active {
    transform: scale(0.98);
}

.page-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
    flex-wrap:wrap;
}

.page-header-content {
    min-width:0;
    flex:1 1 280px;
}

.page-actions {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.dashboard-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap:16px;
    margin-bottom:24px;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius:18px;
    padding:20px;
    box-shadow:0 18px 36px rgba(15,23,42,.08);
    min-width:0;
}

.dashboard-card--accent {
    background: linear-gradient(135deg, #010066 0%, #1a0080 100%);
    color:white;
}

.auth-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--card-shadow);
    width: min(100%, 520px);
    margin: 0 auto;
}

.auth-grid {
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:20px;
}

.responsive-table-wrapper {
    overflow-x:auto;
    padding:12px;
    -webkit-overflow-scrolling: touch;
}

.responsive-table {
    width:100%;
    border-collapse:collapse;
    min-width:100%;
    table-layout:auto;
    max-width:100%;
}

.responsive-table th,
.responsive-table td {
    padding:12px 16px;
    text-align:left;
    vertical-align:top;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.responsive-table-wrapper table {
    width: 100%;
    min-width: 100%;
    table-layout: auto;
}

@media (max-width: 1600px) {
    .container {
        max-width: 1180px;
    }
    .dashboard-grid,
    .admin-cards,
    .about-grid,
    .stats-grid,
    .process-grid,
    .legal-preview-grid {
        gap: 24px;
    }
}

@media (max-width: 1366px) {
    .dashboard-grid,
    .admin-cards,
    .about-grid,
    .stats-grid,
    .process-grid,
    .legal-preview-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
    .service-buttons {
        gap: 10px;
    }
}

.chat-shell {
    display:flex;
    gap:20px;
    align-items:stretch;
    width:100%;
}

.chat-sidebar,
.chat-panel {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--card-shadow);
    min-width:0;
}

.chat-sidebar {
    width:320px;
    max-height:70vh;
    overflow:auto;
    padding:12px;
    flex-shrink:0;
}

.chat-panel {
    flex:1;
    padding:18px;
    max-height:70vh;
    overflow:auto;
    display:flex;
    flex-direction:column;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--brand-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    order: 2;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.fa-moon { display: block; }
.fa-sun { display: none; }

[data-theme="dark"] .fa-moon { display: none; }
[data-theme="dark"] .fa-sun { display: block; color: var(--brand-highlight); }

/* Logo Styling & Resize */
.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    transition: all 0.4s ease;
    text-decoration: none;
    cursor: pointer;
}

.header.scrolled .logo {
    font-size: 24px;
}

.logo-fidu {
    color: #c45911;
}

.logo-mav {
    color: #010066; /* Always navy on white bg */
    transition: color 0.4s ease;
}

[data-theme="dark"] .logo-mav {
    color: #ffffff;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    transition: var(--transition);
    order: 0;
}

/* Hide mobile-only elements on desktop */
.nav-menu__logo,
.nav-menu__close,
.nav-menu__account {
    display: none;
}

.nav-link {
    font-weight: 600;
    color: #010066; /* Navy text on white bg */
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
}

[data-theme="dark"] .nav-link {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-highlight);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--brand-highlight);
}

.hamburger {
    display: none;
    cursor: pointer;
    order: 1;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #010066; /* Navy bars on white bg */
    transition: var(--transition);
}

[data-theme="dark"] .bar {
    background-color: #ffffff;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(11, 9, 48, 0.9) 0%, rgba(11, 9, 48, 0.7) 100%), 
                url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&q=80&w=1600') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1.5s ease-out;
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--secondary-color);
}

.about-list {
    margin: 25px 0;
}

.about-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list li i {
    color: var(--secondary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    box-shadow: 0 10px 30px var(--card-shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pricing-card.featured {
    background: var(--primary-color);
    color: #ffffff; /* On garde blanc pour le contraste sur fond sombre */
    transform: scale(1.05);
    border: none;
    box-shadow: 0 20px 40px rgba(1, 0, 102, 0.2);
}

[data-theme="dark"] .pricing-card.featured {
    background: var(--secondary-color);
    color: #ffffff;
}

[data-theme="dark"] .pricing-card.featured .price,
[data-theme="dark"] .pricing-card.featured h3 {
    color: #ffffff;
}

.pricing-card.featured .pricing-header h3,
.pricing-card.featured .section-title,
.pricing-card.featured .price {
    color: #ffffff;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.pricing-features {
    margin-bottom: 40px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card.featured .pricing-features li {
    border-bottom-color: rgba(255,255,255,0.1);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
}

.testimonial-card p {
    color: #ffffff;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card .client-info strong {
    color: var(--secondary-color);
    display: block;
    font-size: 1.1rem;
}

.testimonial-card .client-info span {
    color: #d1d1ff;
    font-size: 0.9rem;
}

.quote {
    color: var(--secondary-color);
    font-size: 35px;
    margin-bottom: 20px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(196, 89, 17, 0.1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    transition: var(--transition);
}

[data-theme="dark"] .info-item i {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-maps {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 5px;
    transition: var(--transition);
}

.btn-maps:hover {
    color: var(--brand-corporate);
    padding-left: 5px;
}

[data-theme="dark"] .btn-maps {
    color: #ffffff;
}

[data-theme="dark"] .btn-maps:hover {
    color: var(--secondary-color);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-contact li i {
    color: #ffffff !important;
    width: 20px;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.map-placeholder {
    margin-top: 30px;
}

.map-box {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
}

.map-box i {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 50px var(--card-shadow);
}

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

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-color);
    border-radius: 5px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

input:focus, textarea:focus {
    border-color: var(--secondary-color);
}

.btn-primary.btn-sm,
.btn-outline.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 5px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-30 {
    margin-top: 30px;
}

/* Services Section Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.services-grid .service-card {
    grid-column: span 2;
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    box-shadow: 0 10px 30px var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.services-grid .service-card:nth-child(7) {
    grid-column: 2 / span 2;
}

.services-grid .service-card:nth-child(8) {
    grid-column: 4 / span 2;
}

.services-grid .service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.services-grid .service-card p {
    flex-grow: 1;
    width: 100%;
}

.service-buttons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin-top: 18px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.service-buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Interactive Map Styling */
.map-container-wrapper {
    margin-top: 60px;
    width: 100%;
}

.google-map-embed {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.google-map-embed:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.google-map-embed iframe {
    display: block;
    border: none;
    transition: var(--transition);
}

[data-theme="dark"] .google-map-embed iframe {
    filter: brightness(0.8) contrast(1.2);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 80px 0 30px;
}

[data-theme="dark"] .footer {
    background: #0b0930; /* Updated Brand Dark Blue background */
    color: #ffffff;
}

.footer p,
.footer h4,
.footer a {
    color: #ffffff !important;
}

[data-theme="dark"] .footer .logo-text {
    color: var(--text-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-about .logo {
    margin-bottom: 20px;
    display: inline-block;
}

/* Footer logo: FIDU keeps original header color, MAV stays white always */
.footer .logo-fidu {
    color: #c45911 !important;
}

.footer .logo-mav {
    color: #ffffff !important;
}

.footer-about p {
    opacity: 0.7;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    opacity: 0.7;
    color: inherit;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

[data-theme="dark"] .social-icons a {
    background: rgba(255,255,255,0.1);
    color: #ffffff !important;
}

.social-icons a:hover {
    background: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-color);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        max-width: 360px;
        height: 100vh;
        justify-content: flex-start;
        text-align: left;
        padding: 40px 30px;
        gap: 10px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.15);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu__logo {
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-menu__close {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .close-menu-btn {
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--text-color);
        cursor: pointer;
        padding: 10px;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .close-menu-btn:hover {
        background: rgba(196, 89, 17, 0.1);
        color: var(--secondary-color);
    }

    .nav-link {
        font-size: 1.15rem;
        margin: 0;
        padding: 15px 16px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 14px;
        transition: all 0.3s ease;
    }

    .nav-link i {
        width: 24px;
        text-align: center;
        color: var(--secondary-color);
    }

    .nav-link:hover {
        background: rgba(196, 89, 17, 0.1);
        color: var(--secondary-color);
    }

    .nav-menu__account {
        margin-top: 30px;
        width: 100%;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu__account .btn {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .theme-toggle {
        margin: 0;
    }

    .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .about-grid, .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 40px;
    }

    .about-img {
        order: -1;
    }

    .about-img img {
        box-shadow: 10px 10px 0 var(--secondary-color);
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-text {
        text-align: center;
    }

    .about-list li {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid .service-card,
    .services-grid .service-card:nth-child(7),
    .services-grid .service-card:nth-child(8) {
        grid-column: span 1;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured { transform: scale(1); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1300px) {
    .container {
        max-width: 1180px;
    }
    .dashboard-grid,
    .admin-cards,
    .about-grid,
    .stats-grid,
    .process-grid,
    .legal-preview-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        gap: 24px;
    }
    .dashboard-hero__card {
        gap: 18px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    .dashboard-grid,
    .admin-cards,
    .about-grid,
    .stats-grid,
    .process-grid,
    .legal-preview-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        gap: 24px;
    }
    .service-buttons {
        max-width: 100%;
    }
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .dashboard-hero__card {
        flex-direction: column;
        align-items: stretch;
    }
    .dashboard-hero__content {
        max-width: 100%;
    }
    .dashboard-hero__action {
        width: 100%;
        justify-content: flex-start;
    }
    .dashboard-grid,
    .admin-cards,
    .about-grid,
    .stats-grid,
    .process-grid,
    .legal-preview-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-form-grid,
    .auth-grid,
    .company-type-details {
        grid-template-columns: 1fr;
    }
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .admin-table-container,
    .responsive-table-wrapper {
        overflow-x: auto;
    }
    .admin-table th,
    .admin-table td {
        white-space: normal !important;
    }
}

@media (max-width: 767px) {
    .dashboard-mobile-shell {
        display:block;
    }

    .dashboard-nav {
        display:none;
    }

    .dashboard-nav a {
        width:100%;
        min-height:54px;
        justify-content:flex-start;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns:1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .dashboard-card,
    .dashboard-stat-card {
        padding: 20px;
        border-radius: 22px;
    }

    .dashboard-stat-card {
        min-height: 150px;
    }

    .dashboard-stat-card__value {
        font-size: 1.7rem;
    }

    .dashboard-mobile-toggle {
        display:inline-flex;
    }

    .dashboard-desktop-table {
        display: none;
    }

    .dashboard-mobile-card-list {
        display: grid;
        gap: 16px;
        padding: 0;
    }

    .dashboard-request-card {
        padding: 20px;
    }
}

@media (max-width: 680px) {
    .dashboard-hero__card {
        padding: 22px;
    }

    .dashboard-stat-card {
        padding: 18px;
    }

    .dashboard-hero__title {
        font-size: 2rem;
    }

    .dashboard-request-card {
        padding: 18px;
    }

    .dashboard-request-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

@media (max-width: 540px) {
    .page-actions,
    .page-header {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .dashboard-hero__card {
        padding: 18px;
    }

    .dashboard-request-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header {
        align-items:flex-start;
    }

    .page-actions {
        width:100%;
        justify-content:flex-start;
    }

    .dashboard-form-grid {
        grid-template-columns:1fr;
    }

    .container {
        padding: 0 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid .service-card,
    .services-grid .service-card:nth-child(7),
    .services-grid .service-card:nth-child(8) {
        grid-column: auto;
    }

    .service-buttons {
        flex-direction: column;
        align-items: center;
    }

    .service-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .testimonials-grid { 
        grid-template-columns: 1fr; 
    }

    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center;
    }

    .footer-links h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .social-icons {
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding:24px 20px;
    }

    .chat-shell {
        flex-direction:column;
    }

    .chat-sidebar {
        width:100%;
        max-height:320px;
    }

    .chat-panel {
        max-height:none;
    }
}

@media (max-width: 480px) {
    .dashboard-panel {
        padding:18px;
    }

    .dashboard-grid {
        grid-template-columns:1fr;
    }
}

/* New Section Styles */
/* About Features (Pourquoi nous choisir) */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.about-feature {
    text-align: center;
    padding: 40px 30px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--card-shadow);
    transition: var(--transition);
}

.about-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 45px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-feature h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--card-shadow);
    border-bottom: 4px solid var(--secondary-color);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-weight: 600;
    color: var(--text-muted);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.process-step {
    text-align: center;
    padding: 40px 30px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--card-shadow);
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.step-icon {
    font-size: 45px;
    color: var(--secondary-color);
    margin: 20px 0;
}

.process-step h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Legal Preview Section */
.legal-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.legal-preview-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--card-shadow);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.legal-preview-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
}

.preview-icon {
    font-size: 45px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.legal-preview-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.legal-preview-card p {
    margin-bottom: 20px;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px var(--card-shadow);
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(196, 89, 17, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-color);
}

.faq-question i {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-muted);
}

/* Responsive for new sections */
@media (max-width: 1024px) {
    .about-grid,
    .stats-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .legal-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-grid,
    .stats-grid,
    .process-grid,
    .legal-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* Account Dropdown Styles */
.account-menu-container {
    position: relative;
    display: inline-block;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--card-shadow);
    min-width: 220px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.account-menu-container:hover .account-dropdown,
.account-menu-container:focus-within .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.account-dropdown-item:hover {
    background: var(--bg-light);
}

.account-dropdown-item.logout {
    color: #dc2626;
}

.account-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

@media (max-width: 768px) {
    .account-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }
    .account-menu-container:hover .account-dropdown,
    .account-menu-container:focus-within .account-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}
