/* RouteERP — Clean, Prestigious & Modern Corporate Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Color Palette - Modern Corporate */
    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-dark-section: #0f172a;
    --bg-dark-card: #1e293b;

    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --text-light: #f8fafc;

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-subtle: #eff6ff;
    --primary-border: #bfdbfe;

    --emerald: #10b981;
    --emerald-dark: #059669;
    --emerald-subtle: #ecfdf5;
    --emerald-border: #a7f3d0;

    --amber: #f59e0b;
    --amber-subtle: #fffbeb;

    --rose: #ef4444;
    --rose-dark: #dc2626;
    --rose-subtle: #fef2f2;
    --rose-border: #fecdd3;

    --border-color: #e2e8f0;
    --border-subtle: #edf2f7;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-subtle: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
    --shadow-drawer: -8px 0 32px rgba(15, 23, 42, 0.15);

    --header-height: 74px;
    --header-height-scrolled: 64px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img, svg, video, table {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}

.badge-primary {
    background: var(--primary-subtle);
    color: var(--primary-dark);
    border: 1px solid var(--primary-border);
}

.badge-emerald {
    background: var(--emerald-subtle);
    color: var(--emerald-dark);
    border: 1px solid var(--emerald-border);
}

.badge-rose {
    background: var(--rose-subtle);
    color: var(--rose-dark);
    border: 1px solid var(--rose-border);
}

/* Pulse Indicators */
.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap !important;
    word-break: keep-all !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-heading) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-danger-outline {
    background: #ffffff;
    color: var(--rose-dark) !important;
    border: 1px solid #fecaca;
}

.btn-danger-outline:hover {
    background: #fef2f2;
    border-color: #f87171;
    transform: translateY(-2px);
}

.btn-showroom-nav {
    background: #fef2f2;
    color: #dc2626 !important;
    border: 1px solid #fecaca;
    padding: 0.55rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1;
}

.btn-showroom-nav:hover {
    background: #fee2e2;
    border-color: #f87171;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

.btn-nav-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    padding: 0.58rem 1.3rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1;
}

.btn-showroom-drawer {
    background: var(--rose-subtle);
    color: #b91c1c !important;
    border: 1px solid var(--rose-border);
    width: 100%;
}

.btn-showroom-drawer:hover {
    background: #fee2e2;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Navbar (Ultra-Clean, Perfectly Aligned)
   ========================================================================== */
.site-header {
    position: relative;
    z-index: 1000;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s ease, 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
}

.navbar.scrolled {
    height: var(--header-height-scrolled);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    border-bottom-color: var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

/* Brand Logo (Using Official Favicon SVG + Wordmark) */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap !important;
}

.logo-favicon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
    transition: transform 0.25s ease;
}

.logo:hover .logo-favicon {
    transform: scale(1.06);
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-highlight {
    color: var(--primary);
}

/* Desktop Nav Links (Spacious, Responsive & Zero Overflow) */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.4vw, 1.4rem);
    margin: 0 auto;
    padding: 0;
    white-space: nowrap !important;
}

.nav-links a {
    color: #334155;
    font-weight: 600;
    font-size: 0.88rem;
    position: relative;
    padding: 0.4rem 0.15rem;
    white-space: nowrap !important;
    word-break: keep-all !important;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    white-space: nowrap !important;
}

.btn-showroom-nav {
    background: #fef2f2;
    color: #dc2626 !important;
    border: 1px solid #fecaca;
    padding: 0.48rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1;
}

.btn-showroom-nav:hover {
    background: #fee2e2;
    border-color: #f87171;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

.btn-nav-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    padding: 0.5rem 1.15rem;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1;
}

.btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 42px;
    height: 42px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: var(--bg-subtle);
    border-color: #cbd5e1;
}

.hamburger-box {
    width: 20px;
    height: 14px;
    position: relative;
    display: inline-block;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 20px;
    height: 2px;
    background-color: var(--text-heading);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.hamburger-inner {
    top: 6px;
}

.hamburger-inner::before {
    content: '';
    top: -6px;
    left: 0;
}

.hamburger-inner::after {
    content: '';
    top: 6px;
    left: 0;
}

.mobile-menu-btn.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.mobile-menu-btn.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.mobile-menu-btn.is-active .hamburger-inner::after {
    top: 0;
    transform: rotate(-90deg);
}

/* ==========================================================================
   Mobile Nav Drawer & Backdrop
   ========================================================================== */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 86vw);
    height: 100vh;
    background: #ffffff;
    box-shadow: var(--shadow-drawer);
    z-index: 1050;
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.25rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.drawer-close-btn:hover {
    background: #fee2e2;
    color: var(--rose-dark);
    border-color: #fca5a5;
}

.drawer-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.drawer-nav-group {
    display: flex;
    flex-direction: column;
}

.drawer-group-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-subtle);
    letter-spacing: 0.6px;
    margin-bottom: 0.6rem;
    padding-left: 0.2rem;
}

.drawer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.drawer-link i {
    width: 20px;
    color: var(--primary);
    font-size: 1rem;
    text-align: center;
}

.drawer-link:hover,
.drawer-link:active {
    background: var(--primary-subtle);
    color: var(--primary-dark);
    transform: translateX(4px);
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.drawer-footer-card {
    margin-top: auto;
    padding-top: 1rem;
}

.drawer-contact-row {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.drawer-contact-row i {
    font-size: 1.3rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: clamp(6.8rem, 13vw, 8.5rem) 0 4.5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge-wrap {
    margin-bottom: 1.4rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.8vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.18;
    margin-bottom: 1.3rem;
    color: var(--text-heading);
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.2rem;
}

.hero-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-body);
}

.hero-feature-item i {
    color: var(--emerald-dark);
}

/* Hero Visual Card (Fabrika Üretim Paneli Preview) */
.hero-visual-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: clamp(1.2rem, 3vw, 1.8rem);
    position: relative;
}

.dashboard-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.9rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-status-badge {
    background: var(--emerald-subtle);
    color: var(--emerald-dark);
    border: 1px solid var(--emerald-border);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.preview-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.preview-stat-box {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem;
}

.preview-stat-box .label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.preview-stat-box .val {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
}

.preview-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.preview-table {
    width: 100%;
    min-width: 360px;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.preview-table th {
    text-align: left;
    padding: 0.55rem 0.5rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.75rem;
}

.preview-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-heading);
}

.dashboard-preview-footer {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ==========================================================================
   Trust & Security Bar
   ========================================================================== */
.trust-bar {
    padding: 2.5rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-lg);
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.trust-bar-item:hover {
    border-color: var(--primary-border);
    transform: translateY(-2px);
}

.trust-bar-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon-blue { background: var(--primary-subtle); color: var(--primary); }
.icon-emerald { background: var(--emerald-subtle); color: var(--emerald-dark); }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-amber { background: var(--amber-subtle); color: #d97706; }

.trust-bar-text h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    color: var(--text-heading);
}

.trust-bar-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.45;
}

/* ==========================================================================
   Common Section Styles
   ========================================================================== */
.section {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(2.2rem, 5vw, 3.5rem) auto;
}

.section-header .section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-subtle);
    border: 1px solid var(--primary-border);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.22;
}

.section-header p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   9 Core ERP Modules Grid
   ========================================================================== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.module-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.module-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.module-card h3 {
    font-size: 1.22rem;
    margin-bottom: 0.75rem;
    color: var(--text-heading);
}

.module-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

.module-card-features {
    list-style: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.module-card-features li {
    font-size: 0.85rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.module-card-features li i {
    color: var(--emerald-dark);
    font-size: 0.75rem;
}

/* ==========================================================================
   Process Workflow Section
   ========================================================================== */
.workflow-section {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.workflow-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    position: relative;
}

.workflow-step-card {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.25rem;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
}

.workflow-step-card:hover {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.workflow-step-card h4 {
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.workflow-step-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Showroom Banner
   ========================================================================== */
.showroom-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: clamp(2.5rem, 6vw, 4rem) 0;
}

.showroom-box h2 {
    color: #ffffff;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 0.8rem;
}

.showroom-box p {
    color: #94a3b8;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    max-width: 650px;
    margin-bottom: 0;
    line-height: 1.7;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
    background: var(--bg-page);
}

.billing-switcher {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-subtle);
    margin-top: 1.5rem;
    max-width: 100%;
    overflow-x: auto;
}

.billing-tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    padding: 8px clamp(14px, 3vw, 24px);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.billing-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.yearly-badge {
    background: var(--emerald-subtle);
    color: var(--emerald-dark);
    border: 1px solid var(--emerald-border);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: 6px;
}

/* TCMB Rate Banner */
.tcmb-info-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 0.8rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.4rem;
    margin: 1.8rem auto 2.5rem auto;
    max-width: 720px;
    font-size: 0.9rem;
    color: var(--text-body);
    box-shadow: var(--shadow-subtle);
    flex-wrap: wrap;
    text-align: center;
}

.tcmb-tag {
    background: var(--primary-subtle);
    color: var(--primary-dark);
    border: 1px solid var(--primary-border);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* Pricing Grid */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

.pricing-plan-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: clamp(1.6rem, 3.5vw, 2.5rem);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-plan-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.12), var(--shadow-card);
    transform: scale(1.02);
}

.popular-ribbon {
    position: absolute;
    top: 0;
    right: 2rem;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.plan-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-heading);
}

.discount-pill {
    background: var(--rose-subtle);
    color: var(--rose-dark);
    border: 1px solid var(--rose-border);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.plan-price-area {
    margin: 1.2rem 0;
    min-height: 85px;
}

.price-strike-val {
    font-size: 1.1rem;
    color: var(--text-subtle);
    text-decoration: line-through;
    font-weight: 600;
    display: block;
    margin-bottom: -3px;
}

.price-main-val {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.currency-sym {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-heading);
}

.amount-num {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    font-weight: 900;
    color: var(--text-heading);
    line-height: 1;
}

.period-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tcmb-approx-tl {
    font-size: 0.86rem;
    color: var(--emerald-dark);
    font-weight: 600;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.plan-description-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.6rem;
    min-height: 48px;
}

.plan-features-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features-checklist li {
    font-size: 0.9rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.plan-features-checklist li i.fa-check {
    color: var(--emerald-dark);
    font-size: 0.85rem;
}

.plan-features-checklist li.negative {
    color: var(--text-subtle);
    text-decoration: line-through;
}

.plan-features-checklist li.negative i {
    color: #cbd5e1;
}

/* ==========================================================================
   Feature Comparison Matrix Tables
   ========================================================================== */
.comparison-table-wrap {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: clamp(1.4rem, 3.5vw, 2.5rem);
    box-shadow: var(--shadow-card);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.comparison-table-wrap h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 0.5rem;
}

.comparison-table-wrap p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

.matrix-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.matrix-table th {
    text-align: left;
    padding: 0.9rem 1rem;
    background: var(--bg-page);
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
    color: var(--text-heading);
}

.matrix-table th:not(:first-child) {
    text-align: center;
}

.matrix-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-body);
}

.matrix-table td:not(:first-child) {
    text-align: center;
}

.matrix-table tr:hover td {
    background: var(--bg-page);
}

.check-yes {
    color: var(--emerald-dark);
    font-size: 1.1rem;
}

.check-no {
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* ==========================================================================
   Contact / Demo Form Section
   ========================================================================== */
.contact-section {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.contact-card {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow-card);
    max-width: 840px;
    margin: 0 auto;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
}

.form-control-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 16px; /* Prevents auto-zoom on mobile Safari */
    color: var(--text-heading);
    transition: all 0.2s ease;
    min-height: 46px;
}

.form-control-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control-input::placeholder {
    color: var(--text-subtle);
}

.alert-success-box {
    background: var(--emerald-subtle);
    border: 1px solid var(--emerald-border);
    color: var(--emerald-dark);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    display: none;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-section {
    background: var(--bg-page);
}

.faq-list-container {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.faq-accordion-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-accordion-item:hover {
    border-color: #cbd5e1;
}

.faq-accordion-header {
    padding: clamp(1rem, 2.5vw, 1.3rem) clamp(1.1rem, 3vw, 1.6rem);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-heading);
    gap: 1rem;
    user-select: none;
}

.faq-accordion-body {
    padding: 0 clamp(1.1rem, 3vw, 1.6rem) 1.3rem clamp(1.1rem, 3vw, 1.6rem);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    display: none;
}

.faq-accordion-item.active .faq-accordion-body {
    display: block;
}

.faq-accordion-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-toggle-icon {
    transition: transform 0.25s ease;
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: clamp(3.5rem, 7vw, 5rem) 0 2rem 0;
    border-top: 1px solid #1e293b;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3.5rem;
}

.footer-brand .logo-name {
    color: #ffffff;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.92rem;
    margin: 1.2rem 0 1.5rem 0;
    max-width: 320px;
    line-height: 1.6;
}

.footer-social-links {
    display: flex;
    gap: 0.6rem;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.footer-social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-col ul li a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom-row {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   Floating Back to Top Button
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

/* Tablets & Smaller Laptops (<= 1140px) - Clean switch to mobile navigation */
@media (max-width: 1140px) {
    .nav-links, 
    .nav-actions {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-content {
        max-width: 760px;
    }
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .workflow-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pricing-cards-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
    }
    .pricing-plan-card.popular {
        transform: none;
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* Small Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }
    .hero {
        padding-top: 5.8rem;
        padding-bottom: 3rem;
    }
    .hero-badge-wrap {
        margin-bottom: 1rem;
    }
    .hero-features-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .modules-grid {
        grid-template-columns: 1fr;
    }
    .workflow-steps-grid {
        grid-template-columns: 1fr;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .showroom-box {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .showroom-box .btn {
        width: 100%;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .logo-name {
        font-size: 1.3rem;
    }
    .logo-favicon {
        width: 30px;
        height: 30px;
    }
    .hero-features-row {
        grid-template-columns: 1fr;
    }
    .preview-stats-grid {
        grid-template-columns: 1fr;
    }
    .popular-ribbon {
        right: 1rem;
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    .back-to-top-btn {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   Legal & Security Center Modal Dialog
   ========================================================================== */
body.modal-open {
    overflow: hidden !important;
}

.legal-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.legal-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 1060px;
    height: 88vh;
    max-height: 850px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e2e8f0;
}

.legal-modal-backdrop.active .legal-modal-dialog {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: #0f172a;
    color: #ffffff;
    border-bottom: 1px solid #1e293b;
    flex-shrink: 0;
}

.legal-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.legal-modal-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.legal-modal-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.legal-modal-header p {
    color: #94a3b8;
    font-size: 0.82rem;
    margin: 0;
}

.legal-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-header-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.legal-header-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.legal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legal-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Modal Body Layout */
.legal-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #ffffff;
}

/* Sidebar Navigation */
.legal-modal-sidebar {
    width: 280px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 1.25rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow-y: auto;
    flex-shrink: 0;
}

.legal-nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    position: relative;
}

.legal-nav-item i {
    font-size: 1.05rem;
    color: #64748b;
    width: 20px;
    text-align: center;
    transition: color 0.2s ease;
}

.legal-nav-item:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.legal-nav-item:hover i {
    color: var(--primary);
}

.legal-nav-item.active {
    background: var(--primary-subtle);
    color: var(--primary);
    border-color: var(--primary-border);
    font-weight: 700;
}

.legal-nav-item.active i {
    color: var(--primary);
}

.legal-nav-item.active::after {
    content: '';
    position: absolute;
    right: -0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px 0 0 4px;
}

.legal-sidebar-card {
    margin-top: auto;
    background: #0f172a;
    color: #ffffff;
    padding: 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
}

.legal-sidebar-card h5 {
    color: #60a5fa;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legal-sidebar-card p {
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.legal-sidebar-card .btn-quick-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.45rem 0.75rem;
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.legal-sidebar-card .btn-quick-support:hover {
    background: var(--primary-dark);
}

/* Modal Content Area */
.legal-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.2rem 2.8rem;
    background: #ffffff;
    scroll-behavior: smooth;
}

.legal-tab-pane {
    display: none;
    animation: legalFadeIn 0.25s ease forwards;
}

.legal-tab-pane.active {
    display: block;
}

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

/* Document Typography & Elements */
.legal-doc-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
}

.legal-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.legal-doc-badge.badge-blue {
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.legal-doc-badge.badge-green {
    background: var(--emerald-subtle);
    color: var(--emerald-dark);
    border: 1px solid var(--emerald-border);
}

.legal-doc-badge.badge-amber {
    background: var(--amber-subtle);
    color: #b45309;
    border: 1px solid #fde68a;
}

.legal-doc-badge.badge-purple {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.legal-doc-header h2 {
    font-size: 1.65rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.legal-doc-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.82rem;
    color: #64748b;
    flex-wrap: wrap;
}

.legal-doc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Callout Box */
.legal-callout {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.1rem 1.4rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.legal-callout.callout-success {
    background: #f0fdf4;
    border-left-color: var(--emerald);
}

.legal-callout.callout-warning {
    background: #fffbeb;
    border-left-color: var(--amber);
}

.legal-callout-icon {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.legal-callout.callout-success .legal-callout-icon {
    color: var(--emerald);
}

.legal-callout.callout-warning .legal-callout-icon {
    color: var(--amber);
}

.legal-callout-text h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.legal-callout-text p {
    font-size: 0.88rem;
    color: #334155;
    margin: 0;
    line-height: 1.55;
}

/* Document Sections & Content */
.legal-section {
    margin-bottom: 2rem;
}

.legal-section h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section h4 i {
    color: var(--primary);
    font-size: 1rem;
}

.legal-section p {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 0.9rem;
}

.legal-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.2rem 0;
}

.legal-feature-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.1rem;
    transition: all 0.2s ease;
}

.legal-feature-box:hover {
    border-color: var(--primary-border);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
    background: #ffffff;
}

.legal-feature-box h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.legal-feature-box h5 i {
    color: var(--primary);
    font-size: 0.9rem;
}

.legal-feature-box p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

/* Table Style for SLA */
.legal-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.legal-table th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #cbd5e1;
}

.legal-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: top;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:hover td {
    background: #f8fafc;
}

.sla-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.sla-badge.critical {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecdd3;
}

.sla-badge.high {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.sla-badge.normal {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Contact Cards Grid */
.legal-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.legal-contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-contact-card .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.legal-contact-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.legal-contact-card p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.legal-contact-card .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    margin-top: 0.5rem;
    text-decoration: none;
}

.legal-contact-card .contact-link:hover {
    text-decoration: underline;
}

/* Modal Footer */
.legal-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.legal-trust-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.legal-trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.legal-trust-badges i {
    color: var(--emerald-dark);
}

/* Modal Responsive */
@media (max-width: 900px) {
    .legal-modal-dialog {
        height: 94vh;
        max-height: 94vh;
    }
    .legal-modal-body {
        flex-direction: column;
    }
    .legal-modal-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 0.75rem;
        gap: 0.4rem;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .legal-nav-item {
        white-space: nowrap;
        padding: 0.6rem 0.85rem;
        font-size: 0.82rem;
        width: auto;
    }
    .legal-nav-item.active::after {
        display: none;
    }
    .legal-sidebar-card {
        display: none;
    }
    .legal-modal-content {
        padding: 1.5rem 1.25rem;
    }
    .legal-feature-grid,
    .legal-contact-grid {
        grid-template-columns: 1fr;
    }
    .legal-modal-footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 0.9rem 1.25rem;
    }
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .legal-modal-backdrop,
    .legal-modal-backdrop * {
        visibility: visible;
    }
    .legal-modal-backdrop {
        position: absolute;
        left: 0;
        top: 0;
        background: transparent;
        padding: 0;
    }
    .legal-modal-dialog {
        box-shadow: none;
        border: none;
        height: auto;
        max-height: none;
    }
    .legal-modal-header .legal-modal-actions,
    .legal-modal-sidebar,
    .legal-modal-footer {
        display: none !important;
    }
    .legal-tab-pane {
        display: block !important;
        page-break-after: always;
    }
}

