/* =============================================
    intelliFleet360 GetSimple CMS Theme Styles
   ============================================= */

:root {
    /* Original Color Palette - Maintained */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-lighter: #dbeafe;
    
    --secondary: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #34d399;
    --secondary-lighter: #d1fae5;
    
    /* Extended Palette */
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Neutrals */
    --dark: #0f172a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --gradient-dark: linear-gradient(180deg, var(--dark) 0%, var(--gray-900) 100%);
    --gradient-light: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    --gradient-mesh: radial-gradient(at 20% 80%, var(--primary-lighter) 0%, transparent 50%),
                    radial-gradient(at 80% 20%, var(--secondary-lighter) 0%, transparent 50%),
                    radial-gradient(at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    
    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Shadows - Refined */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --shadow-primary: 0 8px 24px rgba(37, 99, 235, 0.2);
    --shadow-secondary: 0 8px 24px rgba(16, 185, 129, 0.2);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =============================================
   Base Styles
   ============================================= */

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

::selection {
    background-color: var(--primary);
    color: var(--white);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

/* =============================================
   Navbar
   ============================================= */
.navbar>.container{
    padding-right: 0px;
    padding-left: 0px;
}
.navbar-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    transition: all var(--transition-base);
    padding: 1.25rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 0.875rem 0;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand i {
    font-size: 2rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: var(--gray-100);
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background: none;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--dark);
    left: 0;
    transition: var(--transition-fast);
}

.navbar-toggler-icon::before {
    top: 8px;
}

.navbar-toggler-icon::after {
    bottom: 8px;
}

/* =============================================
   Buttons
   ============================================= */

.btn-sleek {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-transform: none;
    letter-spacing: -0.01em;
}

.btn-sleek-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-sleek-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
}

.btn-sleek-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-sleek-primary:hover::before {
    left: 100%;
}

.btn-sleek-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-sleek-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-sleek-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.btn-sleek-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* =============================================
   Cards
   ============================================= */

.card-sleek {
    background: var(--white);
    border: none;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    height: 100%;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-sleek::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.card-sleek:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-sleek:hover::before {
    opacity: 0.03;
}

.card-sleek > * {
    position: relative;
    z-index: 1;
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.card-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
}

.card-icon-wrapper i {
    font-size: 2.25rem;
    color: var(--white);
    z-index: 1;
    position: relative;
}

/* =============================================
   Hero Sections
   ============================================= */

.hero-sleek {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gradient-light);
    overflow: hidden;
}

.page-header-sleek {
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gradient-light);
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.page-hero {
    min-height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gradient-light);
    overflow: hidden;
    padding: 8rem 0;
}

.hero-background-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--primary-lighter) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, var(--secondary-lighter) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
}

.geometric-shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -250px;
    right: -250px;
    animation: morphing 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    bottom: -150px;
    left: -150px;
    animation: morphing 20s ease-in-out infinite reverse;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: rotate(270deg) scale(1.05);
    }
}

/* =============================================
   Stats & Testimonials
   ============================================= */

.stat-card-sleek {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

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

.stat-card-sleek::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transform: rotate(45deg);
    transition: all var(--transition-slow);
}

.stat-card-sleek:hover::before {
    top: -100%;
    left: -100%;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
}

.testimonial-sleek {
    background: var(--white);
    border-radius: var(--radius-3xl);
    padding: 3.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.testimonial-sleek::before {
    content: '"';
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    font-size: 1.375rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-primary);
}

/* =============================================
   API Documentation Styles
   ============================================= */

.api-docs-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

@media (min-width: 1200px) {
    .api-docs-wrapper {
        grid-template-columns: 280px 1fr 38%;
    }
}

.api-sidebar {
    position: sticky;
    top: 100px; 
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
}

.api-sidebar .nav-link {
    color: var(--gray-600);
    padding: 0.5rem 1rem;
    border-left: 2px solid transparent;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.api-sidebar .nav-link:hover {
    color: var(--primary);
    background-color: var(--gray-50);
}

.api-sidebar .nav-link.active {
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
    background-color: var(--primary-lighter);
}

.api-sidebar .nav-heading {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.api-content {
    min-width: 0;
}

.api-content h1, .api-content h2, .api-content h3, .api-content h4 {
    font-family: var(--font-display);
    color: var(--dark);
    scroll-margin-top: 100px;
}

.api-content h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.api-content h2 { font-size: 2rem; border-bottom: 1px solid var(--gray-200); padding-bottom: 0.5rem; margin-top: 4rem; margin-bottom: 1.5rem; }
.api-content h3 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.api-content h4 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--gray-800); }

.api-content p { line-height: 1.8; margin-bottom: 1rem; }

.api-content code {
    background-color: var(--gray-100);
    color: var(--primary-dark);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-md);
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 0.9em;
}

.api-content .table-responsive {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.api-content ul {
    margin-bottom: 1.5rem;
}

.api-content li {
    margin-bottom: 0.5rem;
}

.api-code-samples {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
}

.code-block {
    background-color: #282c34;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.code-block-header {
    background-color: #21252b;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #3a404a;
}

.code-block-header .nav-tabs { border-bottom: none; }

.code-block-header .nav-link {
    border: none;
    background: transparent;
    color: var(--gray-400);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.code-block-header .nav-link.active {
    color: var(--white);
    background-color: #282c34;
    border-radius: var(--radius-md);
}

.code-block-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    position: relative;
}

.code-block-body pre {
    margin: 0;
    background: transparent !important;
    padding: 0 !important;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.btn-copy {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gray-700);
    color: var(--white);
    border: none;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    opacity: 0.5;
    transition: all var(--transition-base);
}

.code-block-body:hover .btn-copy { opacity: 1; }
.btn-copy:hover { background: var(--gray-600); }

/* Method Badges */
.badge.bg-get { background-color: #059669 !important; }
.badge.bg-post { background-color: #2563eb !important; }
.badge.bg-put { background-color: #f59e0b !important; }
.badge.bg-delete { background-color: #ef4444 !important; }
.badge.bg-publish { background-color: #06b6d4 !important; }
.badge.bg-subscribe { background-color: #a855f7 !important; }

/* Alert Boxes */
.alert-info {
    background-color: var(--primary-lighter);
    border: 1px solid var(--primary-light);
    color: var(--primary-dark);
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
}

/* =============================================
   Industry Tabs
   ============================================= */

.industry-tabs {
    margin-bottom: 3rem;
}

.industry-tabs .nav-link {
    border: none;
    border-radius: var(--radius-2xl);
    padding: 1.25rem 2rem;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    margin: 0.5rem;
    text-decoration: none;
    border: 2px solid transparent;
}

.industry-tabs .nav-link.active {
    background: var(--gradient-primary);
    color: var(--white) !important;
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.industry-tabs .nav-link:not(.active):hover {
    background: var(--primary-lighter);
    color: var(--primary-dark) !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.industry-tabs .nav-link i,
.industry-tabs .nav-link span {
    position: relative;
    z-index: 10;
}

.tab-content {
    background: var(--white);
    border-radius: var(--radius-3xl);
    padding: 4rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.tab-content:hover::before {
    opacity: 0.02;
}

.tab-content > * {
    position: relative;
    z-index: 1;
}

.industry-feature-list {
    list-style: none;
    padding-left: 0;
}

.industry-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.industry-feature-list li:hover {
    background: var(--primary-lighter);
    transform: translateX(8px);
}

.industry-feature-list i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    transition: transform var(--transition-base);
    min-width: 24px;
}

.industry-feature-list li:hover i {
    transform: scale(1.2);
}

.industry-image-wrapper {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
    position: relative;
}

.industry-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.industry-image-wrapper:hover::after {
    opacity: 0.1;
}

.industry-image-wrapper img {
    transition: transform var(--transition-slow);
}

.tab-content:hover .industry-image-wrapper img {
    transform: scale(1.05);
}

/* =============================================
   Resource Cards (Blog/Resources)
   ============================================= */

.filter-btn {
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all var(--transition-base);
}

.filter-btn:hover {
    background: var(--primary-lighter);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.filter-btn.active::before {
    left: 100%;
    opacity: 0.2;
}

.resource-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.resource-card-img-wrapper {
    overflow: hidden;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    position: relative;
}

.resource-card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.resource-card:hover .resource-card-img-wrapper::after {
    left: 150%;
}

.resource-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.resource-card:hover .resource-card-img {
    transform: scale(1.05);
}

.resource-card-body {
    padding: 2rem;
}

.resource-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-cost { background-color: var(--secondary-lighter); color: var(--secondary-dark); }
.category-compliance { background-color: var(--primary-lighter); color: var(--primary-dark); }
.category-safety { background-color: rgba(245, 158, 11, 0.1); color: var(--accent); }

.resource-card-title {
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition-base);
    margin-bottom: 1rem;
}

.resource-card-title:hover {
    color: var(--primary);
}

.resource-card-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.resource-card-excerpt {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.resource-card-read-more {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-card-read-more:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.resource-card-read-more .bi {
    transition: transform var(--transition-base);
}

.resource-card-read-more:hover .bi {
    transform: translateX(4px);
}

.resource-item {
    transition: all var(--transition-slow);
}

.resource-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    display: none;
}

/* Featured Article */
.featured-article .resource-card {
    flex-direction: column;
}

.featured-article .resource-card-img {
    height: 300px;
}

@media (min-width: 992px) {
    .featured-article .resource-card {
        flex-direction: row;
    }
    .featured-article .resource-card-img-wrapper {
        width: 50%;
        border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
    }
    .featured-article .resource-card-img {
        height: 100%;
        min-height: 400px;
    }
    .featured-article .resource-card-body {
        width: 50%;
        padding: 3rem;
    }
}

/* =============================================
   Platform Feature Cards
   ============================================= */

.feature-section {
    padding: 5rem 0;
    position: relative;
}

.feature-section:nth-child(even) {
    background: var(--gray-50);
}

.feature-card-large {
    background: var(--white);
    border: none;
    border-radius: var(--radius-3xl);
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.feature-card-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.feature-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.feature-card-large:hover::before {
    opacity: 0.05;
}

.feature-card-large > * {
    position: relative;
    z-index: 1;
}

.feature-icon-large {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: var(--radius-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.feature-icon-large.secondary {
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-secondary);
}

.feature-icon-large::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    animation: iconPulse 3s ease-in-out infinite;
}

.feature-icon-large i {
    font-size: 3.5rem;
    color: var(--white);
    z-index: 1;
    position: relative;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-list li:hover {
    background: var(--primary-lighter);
    transform: translateX(8px);
}

.feature-list li i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.feature-highlight {
    background: var(--primary-lighter);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--gradient-light);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
}

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

.stat-mini .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
}

.stat-mini .label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* =============================================
   Blog Specific Styles
   ============================================= */

.blog-header {
    background: var(--gradient-light);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.blog-meta {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.blog-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.blog-content h2 {
    color: var(--dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--primary-lighter);
    padding-bottom: 0.5rem;
}

.blog-content h3 {
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-content h4 {
    color: var(--gray-800);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.blog-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.75rem;
    color: var(--gray-600);
}

.impact-highlight {
    background: linear-gradient(135deg, var(--primary-lighter), var(--secondary-lighter));
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.impact-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    pointer-events: none;
}

.impact-highlight h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.impact-highlight h4::before {
    content: '📊';
    font-size: 1.5rem;
}

.impact-highlight p {
    color: var(--gray-700);
    margin: 0;
    font-weight: 500;
}

.blog-cta {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-3xl);
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: float 20s ease-in-out infinite;
}

.blog-cta h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Table of Contents */
.table-of-contents {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
    position: sticky;
    top: 100px;
}

.table-of-contents h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    transition: all var(--transition-fast);
}

.table-of-contents a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* =============================================
   Solution Page Styles
   ============================================= */

.solution-image {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.solution-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.solution-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.solution-image:hover::after {
    opacity: 1;
}

.challenge-box {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.challenge-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    animation: float 15s ease-in-out infinite;
}

.challenge-box p {
    margin-bottom: 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.challenge-box strong {
    font-weight: 800;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.solution-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.solution-feature:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.solution-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-primary);
}

.solution-feature-content {
    flex: 1;
}

.solution-feature-content p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--gray-700);
}

/* =============================================
   Mission Section
   ============================================= */

.mission-icon-wrapper {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.mission-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    animation: iconPulse 3s ease-in-out infinite;
}

.mission-icon-wrapper i {
    font-size: 3rem;
    color: var(--white);
    z-index: 1;
    position: relative;
}

/* =============================================
   Breadcrumbs
   ============================================= */

.breadcrumb-sleek {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-sleek .breadcrumb-item {
    color: var(--gray-600);
}

.breadcrumb-sleek .breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb-sleek .breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    color: var(--gray-400);
}

.breadcrumb-nav {
    background: var(--gray-50);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-nav a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav .active {
    color: var(--gray-800);
    font-weight: 600;
}

/* =============================================
   CTA Section
   ============================================= */

.cta-sleek {
    background: var(--gradient-primary);
    border-radius: var(--radius-3xl);
    padding: 5rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.cta-sleek::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* =============================================
   Badge
   ============================================= */

.badge-sleek {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-lighter);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* =============================================
   Section Spacing
   ============================================= */

.section-sleek {
    padding: 6rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* =============================================
   Footer
   ============================================= */

.footer-sleek {
    background: var(--dark);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-sleek::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(4px);
}

.social-icon-sleek {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-icon-sleek:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
}

/* =============================================
   Utility Classes
   ============================================= */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-balance {
    text-wrap: balance;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading State */
.skeleton-sleek {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Focus States */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* =============================================
   Mobile Responsive
   ============================================= */

@media (max-width: 1199.98px) {
    .api-code-samples { display: none; }
    .api-docs-wrapper { grid-template-columns: 260px 1fr; }
}

@media (max-width: 767.98px) {
    .section-sleek {
        padding: 4rem 0;
    }
    
    .hero-sleek {
        min-height: 80vh;
    }
    
    .page-header-sleek {
        padding: 6rem 0 3rem;
    }
    
    .page-hero {
        min-height: 60vh;
        padding: 6rem 0;
    }
    
    .cta-sleek {
        padding: 3rem 2rem;
    }
    
    .testimonial-sleek {
        padding: 2.5rem;
    }
    
    .feature-card-large {
        padding: 2.5rem 2rem;
    }
    
    .feature-icon-large {
        width: 80px;
        height: 80px;
        margin-bottom: 2rem;
    }
    
    .feature-icon-large i {
        font-size: 2.5rem;
    }
    
    .stats-mini {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }
    
    .blog-header {
        padding: 6rem 0 3rem;
    }
    
    .blog-content {
        font-size: 1rem;
        padding: 2rem 0;
    }
    
    .blog-cta {
        padding: 2rem;
        margin-top: 3rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .impact-highlight {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .table-of-contents {
        position: static;
        margin: 1.5rem 0;
    }
    
    .tab-content {
        padding: 2.5rem;
    }
    
    .industry-tabs .nav-link {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .api-docs-wrapper { 
        grid-template-columns: 1fr; 
    }
    
    .api-sidebar { 
        position: static; 
        height: auto; 
        overflow-y: visible; 
        margin-bottom: 2rem; 
        border-bottom: 1px solid var(--gray-200); 
        padding-bottom: 1rem; 
    }
}

/* =============================================
   LEGAL DOCUMENT PAGES STYLES
   ============================================= */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 50ms linear;
}

.navbar-modern {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229,231,235,0.6);
    transition: all var(--transition-base);
    padding: 1.25rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-modern.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-md);
    padding: 0.875rem 0;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary) !important;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand i {
    font-size: 2rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: var(--gray-100);
}

.btn-sleek {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border: none;
    cursor: pointer;
    font-size: 0.925rem;
}

.btn-sleek-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-sleek-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37,99,235,0.25);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background: none;
    position: relative;
}

.navbar-toggler-icon::before, .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--dark);
    left: 0;
    transition: var(--transition-fast);
}

.navbar-toggler-icon::before {
    top: 8px;
}

.navbar-toggler-icon::after {
    bottom: 8px;
}

.api-hero {
    padding: 10rem 0 4rem;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.api-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(16,185,129,0.1) 0%, transparent 50%);
}

.api-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.api-hero .geometric-shape {
    position: absolute;
    opacity: 0.06;
}

.api-hero .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -180px;
    right: -160px;
    animation: morphing 22s ease-in-out infinite;
}

.api-hero .shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    bottom: -100px;
    left: -80px;
    animation: morphing 22s ease-in-out infinite reverse;
}

@keyframes morphing {
            0%,100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1); }
            25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; transform: rotate(90deg) scale(1.1); }
            50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; transform: rotate(180deg) scale(0.9); }
            75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; transform: rotate(270deg) scale(1.05); }
        }

.badge-sleek {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--primary-lighter);
    color: var(--primary);
}

.badge-api {
    background: rgba(37,99,235,0.15);
    color: var(--primary-light);
    border: 1px solid rgba(37,99,235,0.25);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: center;
}

.doc-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.doc-meta-item i {
    color: var(--primary);
    font-size: 1rem;
}

.hero-code-snippet {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray-400);
    max-width: 520px;
    overflow-x: auto;
}

.hero-code-snippet .kw {
    color: var(--primary-light);
}

.hero-code-snippet .str {
    color: var(--secondary-light);
}

.hero-code-snippet .cmt {
    color: var(--gray-500);
    font-style: italic;
}

.api-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 991px) {
            .api-layout { grid-template-columns: 1fr; gap: 0; }
        }

.toc-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
    padding: 1.75rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.toc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.toc-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 1rem;
    padding-left: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 2px;
}

.toc-link {
    display: block;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-600);
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.125rem 0;
}

.toc-link:hover {
    color: var(--primary);
    background: var(--primary-lighter);
    border-left-color: var(--primary-light);
}

.toc-link.active {
    color: var(--primary);
    background: var(--primary-lighter);
    border-left-color: var(--primary);
    font-weight: 600;
}

.toc-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 1rem;
}

.toc-schedule-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding: 0.5rem 1rem 0.25rem;
}

.toc-mobile-toggle {
    display: none;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    height: 56px;
}

.toc-mobile-toggle:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: scale(1.08);
}

.toc-mobile-toggle i {
    transition: transform var(--transition-fast);
}

.toc-mobile-toggle.open i {
    transform: rotate(180deg);
}

@media (max-width: 991px) {
            .toc-sidebar { position: relative; top: auto; max-height: none; overflow: visible; padding-right: 0; margin-bottom: 2rem; }
            .toc-mobile-toggle { display: flex; align-items: center; justify-content: space-between; }
            .toc-content {
                display: none; background: var(--white); border: 1px solid var(--gray-200);
                border-radius: var(--radius-xl); padding: 1rem; margin-top: -0.5rem;
                margin-bottom: 1rem; box-shadow: var(--shadow-md);
                max-height: 50vh; overflow-y: auto;
            }
            .toc-content.show { display: block; }
        }

@media (min-width: 992px) { .toc-content { display: block !important; } }

.api-content {
    max-width: 780px;
}

.api-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.api-section:last-child {
    border-bottom: none;
}

.section-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.api-section h2 {
    font-size: clamp(1.375rem,2.5vw,1.75rem);
    margin-bottom: 1.25rem;
    scroll-margin-top: 100px;
}

.api-section h3 {
    font-size: clamp(1.05rem,2vw,1.2rem);
    color: var(--gray-800);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.api-section p, .api-section li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.api-section ul, .api-section ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.api-section ul li, .api-section ol li {
    margin-bottom: 0.5rem;
}

.api-section ul li::marker {
    color: var(--primary-light);
}

.callout {
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.callout-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.callout-important {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.callout-important .callout-icon {
    background: #ffedd5;
    color: #ea580c;
}

.callout-info {
    background: var(--primary-lighter);
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0;
}

.callout-info .callout-icon {
    background: #bfdbfe;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.callout-success {
    background: var(--secondary-lighter);
    border: 1px solid #a7f3d0;
}

.callout-success .callout-icon {
    background: #a7f3d0;
    color: var(--secondary-dark);
}

.callout-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-left: 4px solid var(--warning-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0;
}

.callout-warning .callout-icon {
    background: #fde68a;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.callout-dark {
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
}

.callout-dark .callout-icon {
    background: var(--gray-800);
    color: var(--primary-light);
}

.callout-dark p {
    color: var(--gray-400);
}

.callout-dark strong {
    color: var(--white);
}

.callout-dark code {
    background: rgba(37,99,235,0.15);
    color: var(--primary-light);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.callout p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.callout strong {
    color: var(--dark);
}

.definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.def-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    transition: all var(--transition-base);
}

.def-card:hover {
    background: var(--white);
    border-color: var(--purple-light);
    box-shadow: var(--shadow-sm);
}

.def-term {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 0.25rem;
}

.def-desc {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin: 1.5rem 0;
    transition: all var(--transition-base);
}

.contact-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.contact-row i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.spec-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
}

.spec-table thead th {
    background: var(--gray-50);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-700);
    padding: 0.875rem 1.25rem;
    border-bottom: 2px solid var(--gray-200);
    text-align: left;
}

.spec-table tbody td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    vertical-align: middle;
}

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

.spec-table tbody tr:hover {
    background: var(--gray-50);
}

.spec-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.spec-badge-blue {
    background: var(--primary-lighter);
    color: var(--primary);
}

.spec-badge-green {
    background: var(--secondary-lighter);
    color: var(--secondary-dark);
}

.spec-badge-amber {
    background: #fef3c7;
    color: #b45309;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.tier-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 1.75rem;
    transition: all var(--transition-base);
    text-align: center;
}

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

.tier-card.tier-featured {
    border-color: var(--primary);
    position: relative;
}

.tier-card.tier-featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.tier-icon-standard {
    background: var(--gray-100);
    color: var(--gray-600);
}

.tier-icon-pro {
    background: var(--primary-lighter);
    color: var(--primary);
}

.tier-icon-enterprise {
    background: var(--secondary-lighter);
    color: var(--secondary-dark);
}

.tier-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tier-rate {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.tier-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: var(--gray-600);
    margin-bottom: 0.4rem;
    text-align: left;
}

.tier-feature i {
    color: var(--secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.auth-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

.auth-step {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-step i {
    color: var(--primary);
}

.auth-arrow {
    color: var(--gray-400);
    font-size: 1rem;
}

.endpoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.endpoint-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    transition: all var(--transition-base);
}

.endpoint-card:hover {
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.endpoint-method {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.method-get {
    background: #dbeafe;
    color: #1d4ed8;
}

.method-post {
    background: #d1fae5;
    color: #059669;
}

.method-ws {
    background: #fef3c7;
    color: #b45309;
}

.endpoint-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.endpoint-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

.dispute-timeline {
    position: relative;
    padding-left: 2.5rem;
    margin: 1.5rem 0;
}

.dispute-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.dispute-step {
    position: relative;
    margin-bottom: 1.5rem;
}

.dispute-step:last-child {
    margin-bottom: 0;
}

.dispute-step-dot {
    position: absolute;
    left: -2.5rem;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--white);
    z-index: 1;
}

.dispute-step:nth-child(1) .dispute-step-dot {
    background: var(--purple);
}

.dispute-step:nth-child(2) .dispute-step-dot {
    background: var(--accent);
}

.dispute-step:nth-child(3) .dispute-step-dot {
    background: var(--secondary);
}

.dispute-step:nth-child(4) .dispute-step-dot {
    background: var(--gray-600);
}

.dispute-step h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.dispute-step p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: var(--gray-500);
}

.acceptance-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    color: var(--white);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.acceptance-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.acceptance-banner h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.acceptance-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.schedule-header {
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.schedule-header-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: rgba(37,99,235,0.2);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.schedule-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
}

.schedule-header p {
    color: var(--gray-400);
    margin: 0;
    font-size: 0.85rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 100;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-sleek {
    background: var(--dark);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-sleek::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(4px);
}

.social-icon-sleek {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-icon-sleek:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
}

@media print {
            .navbar-modern, .toc-sidebar, .back-to-top, .reading-progress,
            .footer-sleek, .toc-mobile-toggle { display: none !important; }
            .api-layout { grid-template-columns: 1fr; }
            .api-hero { padding: 2rem 0; background: #fff; }
            .api-hero h1, .api-hero p, .api-hero .doc-meta-item { color: #000 !important; -webkit-text-fill-color: #000 !important; }
            .api-section { break-inside: avoid; }
            body { font-size: 12pt; color: #000; }
            a { color: #000; text-decoration: underline; }
        }

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

.terms-hero {
    padding: 10rem 0 4rem;
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.35;
    background-image: radial-gradient(circle at 20% 80%, var(--primary-lighter) 0%, transparent 40%),
                radial-gradient(circle at 80% 25%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
}

.terms-hero .geometric-shape {
    position: absolute;
    opacity: 0.07;
}

.terms-hero .shape-1 {
    width: 420px;
    height: 420px;
    background: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -200px;
    right: -180px;
    animation: morphing 22s ease-in-out infinite;
}

.terms-hero .shape-2 {
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    bottom: -120px;
    left: -100px;
    animation: morphing 22s ease-in-out infinite reverse;
}

@keyframes morphing {
            0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1); }
            25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; transform: rotate(90deg) scale(1.1); }
            50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; transform: rotate(180deg) scale(0.9); }
            75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; transform: rotate(270deg) scale(1.05); }
        }

.terms-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 991px) {
            .terms-layout {
                grid-template-columns: 1fr;
                gap: 0;
            }
        }

.terms-content {
    max-width: 780px;
}

.terms-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    margin-bottom: 1.25rem;
    scroll-margin-top: 100px;
}

.terms-section h3 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--gray-800);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.terms-section p, .terms-section li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.terms-section ul, .terms-section ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.terms-section ul li, .terms-section ol li {
    margin-bottom: 0.5rem;
    position: relative;
}

.terms-section ul li::marker {
    color: var(--primary-light);
}

.terms-section ol li::marker {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.clause-ref {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-display);
    vertical-align: middle;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
    list-style: none;
    padding: 0;
}

.services-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--gray-700);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.services-list li:hover {
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xs);
}

.services-list li i {
    color: var(--secondary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.9rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--gray-700);
}

.payment-pill i {
    color: var(--primary);
}

.term-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-lighter);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.term-highlight i {
    font-size: 1rem;
}

@media print {
            .navbar-modern, .toc-sidebar, .back-to-top, .reading-progress,
            .footer-sleek, .toc-mobile-toggle { display: none !important; }
            .terms-layout { grid-template-columns: 1fr; }
            .terms-hero { padding: 2rem 0; }
            .terms-section { break-inside: avoid; }
            body { font-size: 12pt; color: #000; }
            h2, h3 { color: #000; }
            a { color: #000; text-decoration: underline; }
        }

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

.agreement-hero {
    padding: 10rem 0 4rem;
    background: linear-gradient(175deg, var(--dark) 0%, #162544 60%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.agreement-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(16,185,129,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.agreement-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--gray-50), transparent);
    pointer-events: none;
}

.hero-shield {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 32px rgba(16,185,129,0.3);
    position: relative;
}

.hero-shield::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(52,211,153,0.3);
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
            0%, 100% { opacity: 0.4; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.06); }
        }

.compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.5rem;
}

.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.agreement-body {
    background: var(--gray-50);
    padding-bottom: 6rem;
}

.agreement-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.toc-link .toc-num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-400);
    min-width: 1.2rem;
    padding-top: 0.1rem;
}

.toc-link.active .toc-num {
    color: var(--primary);
}

.agreement-content {
    background: var(--white);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.doc-header-bar {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.doc-actions {
    display: flex;
    gap: 0.5rem;
}

.doc-action-btn {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.doc-action-btn:hover {
    background: var(--primary-lighter);
    color: var(--primary);
    border-color: var(--primary-light);
}

.doc-inner {
    padding: 3rem 2.75rem 4rem;
}

.clause-section {
    margin-bottom: 3rem;
    scroll-margin-top: 110px;
}

.clause-section:last-child {
    margin-bottom: 0;
}

.clause-heading {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--primary-lighter);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.clause-heading .clause-number {
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sub-clause {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray-700);
}

.sub-clause::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
}

.sub-clause-alpha {
    margin-bottom: 0.5rem;
    padding-left: 2rem;
    position: relative;
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.sub-clause-alpha::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
    font-family: var(--font-display);
}

.legal-text {
    font-family: var(--font-legal);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--gray-700);
}

.legal-text p {
    margin-bottom: 0.85rem;
}

.whereas-text {
    font-family: var(--font-legal);
    font-style: italic;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-lighter);
    margin-bottom: 0.75rem;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
}

.definition-term {
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-body);
}

.callout-child-safety {
    background: var(--child-safety-bg);
    border: 1px solid rgba(5,150,105,0.2);
    border-left: 4px solid var(--child-safety);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0;
}

.callout-child-safety .callout-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--child-safety);
    margin-bottom: 0.65rem;
}

.callout-child-safety .callout-icon i {
    font-size: 1.2rem;
}

.callout-child-safety p {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.7;
}

.callout-warning .callout-icon i {
    font-size: 1.2rem;
}

.callout-warning p {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.7;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    margin: 1.25rem 0;
    font-size: 0.88rem;
}

.schedule-table thead th {
    background: var(--dark);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.schedule-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    vertical-align: middle;
}

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

.schedule-table tbody tr:hover {
    background: var(--gray-50);
}

.package-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-base);
    position: relative;
}

.package-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.package-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.package-card.recommended::before {
    content: 'Recommended';
    position: absolute;
    top: -0.6rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.package-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
}

.signature-block {
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gray-50);
}

.signature-block h5 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.sig-line {
    border-bottom: 1px solid var(--gray-400);
    margin: 0.5rem 0 0.35rem;
    height: 1.5rem;
}

.sig-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 500;
}

.toc-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1060;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.toc-mobile-overlay.show {
    opacity: 1;
}

.toc-mobile-drawer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: var(--white);
    z-index: 1070;
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    overflow-y: auto;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.toc-mobile-drawer.show {
    transform: translateY(0);
}

.toc-mobile-drawer .drawer-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 4px;
    margin: 0 auto 1.25rem;
}

@media (max-width: 1024px) {
            .agreement-layout {
                grid-template-columns: 1fr;
            }
            .toc-sidebar { display: none; }
            .toc-mobile-toggle { display: flex; align-items: center; justify-content: center; }
            .toc-mobile-drawer { display: block; }
            .doc-inner { padding: 2rem 1.75rem 3rem; }
        }

@media (max-width: 768px) {
            .agreement-hero { padding: 8rem 0 3rem; }
            .doc-header-bar { padding: 1rem 1.25rem; }
            .doc-inner { padding: 1.5rem 1.25rem 2.5rem; }
            .clause-heading { font-size: 1.15rem; }
            .signature-block { padding: 1.25rem; }
            .doc-actions { display: none; }
            .compliance-badges { gap: 0.4rem; }
            .compliance-badge { font-size: 0.7rem; padding: 0.3rem 0.6rem; }
        }

@media (max-width: 480px) {
            .agreement-hero { padding: 7rem 0 2.5rem; }
            .hero-shield { width: 68px; height: 68px; font-size: 2rem; }
            .doc-inner { padding: 1.25rem 1rem 2rem; }
            .sub-clause-alpha { padding-left: 1.6rem; }
        }

@media print {
            .navbar-modern, .toc-sidebar, .toc-mobile-toggle,
            .reading-progress, .doc-action-btn, .footer-sleek { display: none !important; }
            .agreement-hero {
                background: #1e3a5f !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
                padding: 3rem 0 2rem;
            }
            .agreement-layout { grid-template-columns: 1fr; }
            .agreement-content { box-shadow: none; border: 1px solid #ddd; }
            .doc-inner { padding: 2rem; }
            .clause-section { page-break-inside: avoid; }
            body { font-size: 11pt; }
        }

.privacy-hero {
    padding: 10rem 0 4rem;
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
}

.privacy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.35;
    background-image: radial-gradient(circle at 15% 85%, var(--primary-lighter) 0%, transparent 40%),
                radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
}

.privacy-hero .geometric-shape {
    position: absolute;
    opacity: 0.07;
}

.privacy-hero .shape-1 {
    width: 420px;
    height: 420px;
    background: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -200px;
    right: -180px;
    animation: morphing 22s ease-in-out infinite;
}

.privacy-hero .shape-2 {
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    bottom: -120px;
    left: -100px;
    animation: morphing 22s ease-in-out infinite reverse;
}

.privacy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 991px) {
            .privacy-layout {
                grid-template-columns: 1fr;
                gap: 0;
            }
        }

.policy-content {
    max-width: 780px;
}

.policy-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    margin-bottom: 1.25rem;
    scroll-margin-top: 100px;
}

.policy-section h3 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--gray-800);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.policy-section p, .policy-section li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.policy-section ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.policy-section ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.policy-section ul li::marker {
    color: var(--primary-light);
}

.retention-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.retention-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 520px;
}

.retention-table thead th {
    background: var(--gray-50);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-700);
    padding: 0.875rem 1.25rem;
    border-bottom: 2px solid var(--gray-200);
    text-align: left;
}

.retention-table tbody td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    vertical-align: top;
}

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

.retention-table tbody tr:hover {
    background: var(--gray-50);
}

.retention-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--primary-lighter);
    color: var(--primary);
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.right-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    transition: all var(--transition-base);
}

.right-card:hover {
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.right-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--primary-lighter);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.right-card h5 {
    font-size: 0.95rem;
    margin-bottom: 0.375rem;
}

.right-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.security-item i {
    color: var(--secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.consent-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    color: var(--white);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.consent-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.consent-banner h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.consent-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.consent-banner ul {
    padding-left: 1.25rem;
}

.consent-banner li {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.consent-banner li::marker {
    color: rgba(255,255,255,0.5);
}

@media print {
            .navbar-modern, .toc-sidebar, .back-to-top, .reading-progress,
            .footer-sleek, .toc-mobile-toggle { display: none !important; }

            .privacy-layout { grid-template-columns: 1fr; }
            .privacy-hero { padding: 2rem 0; }
            .policy-section { break-inside: avoid; }

            body { font-size: 12pt; color: #000; }
            h2, h3 { color: #000; }
            a { color: #000; text-decoration: underline; }
        }

.navbar-nav .nav-link:hover,.navbar-nav .nav-link.active {
    color: var(--primary)!important;
    background: var(--gray-100);
}

.navbar-toggler-icon::before,.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--dark);
    left: 0;
    transition: var(--transition-fast);
}

.hvp-hero {
    padding: 10rem 0 4rem;
    background: linear-gradient(135deg,#1e1b4b 0%,var(--dark) 50%,#172554 100%);
    position: relative;
    overflow: hidden;
}

.hvp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 60%,rgba(124,58,237,0.12) 0%,transparent 50%),radial-gradient(circle at 70% 40%,rgba(37,99,235,0.1) 0%,transparent 50%);
}

.hvp-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.02) 1px,transparent 1px);
    background-size: 50px 50px;
}

.hvp-hero .geo {
    position: absolute;
    opacity: 0.06;
}

.hvp-hero .geo-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-partner);
    border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
    top: -180px;
    right: -140px;
    animation: morph 22s ease-in-out infinite;
}

.hvp-hero .geo-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg,var(--secondary),var(--secondary-light));
    border-radius: 63% 37% 54% 46%/55% 48% 52% 45%;
    bottom: -100px;
    left: -80px;
    animation: morph 22s ease-in-out infinite reverse;
}

@keyframes morph{0%,100%{border-radius:30% 70% 70% 30%/30% 30% 70% 70%;transform:rotate(0deg) scale(1)}25%{border-radius:58% 42% 75% 25%/76% 46% 54% 24%;transform:rotate(90deg) scale(1.1)}50%{border-radius:50% 50% 33% 67%/55% 27% 73% 45%;transform:rotate(180deg) scale(0.9)}75%{border-radius:33% 67% 58% 42%/63% 68% 32% 37%;transform:rotate(270deg) scale(1.05)}}

.badge-partner {
    background: rgba(124,58,237,0.15);
    color: var(--purple-light);
    border: 1px solid rgba(124,58,237,0.25);
}

.text-gradient-partner {
    background: var(--gradient-partner);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hvp-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

@media(max-width:991px){.hvp-layout{grid-template-columns:1fr;gap:0}}

@media(max-width:991px){
            .toc-sidebar{position:relative;top:auto;max-height:none;overflow:visible;padding-right:0;margin-bottom:2rem}
            .toc-mobile-toggle{display:flex;align-items:center;justify-content:space-between}
            .toc-content{display:none;background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-xl);padding:1rem;margin-top:-0.5rem;margin-bottom:1rem;box-shadow:var(--shadow-md);max-height:50vh;overflow-y:auto}
            .toc-content.show{display:block}
        }

@media(min-width:992px){.toc-content{display:block!important}}

.hvp-content {
    max-width: 780px;
}

.hvp-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.hvp-section:last-child {
    border-bottom: none;
}

.hvp-section h2 {
    font-size: clamp(1.375rem,2.5vw,1.75rem);
    margin-bottom: 1.25rem;
    scroll-margin-top: 100px;
}

.hvp-section h3 {
    font-size: clamp(1.05rem,2vw,1.2rem);
    color: var(--gray-800);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.hvp-section p,.hvp-section li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.hvp-section ul,.hvp-section ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.hvp-section ul li,.hvp-section ol li {
    margin-bottom: 0.5rem;
}

.hvp-section ul li::marker {
    color: var(--purple-light);
}

.callout-purple {
    background: var(--purple-lighter);
    border: 1px solid #c4b5fd;
}

.callout-purple .callout-icon {
    background: #c4b5fd;
    color: var(--purple);
}

.def-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.onboard-flow {
    margin: 1.5rem 0;
    counter-reset: step;
}

.onboard-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    counter-increment: step;
    position: relative;
}

.onboard-step::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: -12px;
    width: 2px;
    background: var(--gray-200);
}

.onboard-step:last-child::after {
    display: none;
}

.onboard-num {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.onboard-step:nth-child(1) .onboard-num {
    background: var(--purple);
}

.onboard-step:nth-child(2) .onboard-num {
    background: var(--primary);
}

.onboard-step:nth-child(3) .onboard-num {
    background: var(--secondary);
}

.onboard-step:nth-child(4) .onboard-num {
    background: var(--accent);
}

.onboard-step:nth-child(5) .onboard-num {
    background: #ec4899;
}

.onboard-step:nth-child(6) .onboard-num {
    background: var(--info);
}

.onboard-step:nth-child(7) .onboard-num {
    background: #8b5cf6;
}

.onboard-step:nth-child(8) .onboard-num {
    background: var(--secondary-dark);
}

.onboard-body h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.onboard-body p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

.obligation-group {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}

.obligation-group-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--purple);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.obligation-group-title i {
    font-size: 0.9rem;
}

.obligation-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.obligation-group ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.obligation-group ul li i {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.spec-badge-purple {
    background: var(--purple-lighter);
    color: var(--purple);
}

.commission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.commission-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--transition-base);
}

.commission-card:hover {
    border-color: var(--purple-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.commission-card.cc-highlight {
    border-color: var(--purple);
    background: linear-gradient(180deg,var(--purple-lighter),var(--white));
}

.cc-range {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.cc-bonus {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 0.25rem;
}

.cc-label {
    font-size: 0.78rem;
    color: var(--gray-500);
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.insurance-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    text-align: center;
    transition: all var(--transition-base);
}

.insurance-card:hover {
    background: var(--white);
    border-color: var(--purple-light);
    box-shadow: var(--shadow-sm);
}

.insurance-card i {
    font-size: 1.5rem;
    color: var(--purple);
    margin-bottom: 0.5rem;
    display: block;
}

.insurance-card .ins-type {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.insurance-card .ins-min {
    font-size: 0.8rem;
    color: var(--gray-500);
}

@media print{.navbar-modern,.toc-sidebar,.back-to-top,.reading-progress,.footer-sleek,.toc-mobile-toggle{display:none!important}.hvp-layout{grid-template-columns:1fr}.hvp-hero{padding:2rem 0;background:#fff}.hvp-hero h1,.hvp-hero p,.hvp-hero .doc-meta-item{color:#000!important;-webkit-text-fill-color:#000!important}.hvp-section{break-inside:avoid}body{font-size:12pt;color:#000}a{color:#000;text-decoration:underline}}

.fsa-hero {
    padding: 10rem 0 4rem;
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
}

.fsa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.35;
    background-image: radial-gradient(circle at 25% 75%, var(--primary-lighter) 0%, transparent 40%),
                radial-gradient(circle at 75% 30%, rgba(16,185,129,0.08) 0%, transparent 40%);
}

.fsa-hero .geometric-shape {
    position: absolute;
    opacity: 0.07;
}

.fsa-hero .shape-1 {
    width: 420px;
    height: 420px;
    background: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -200px;
    right: -180px;
    animation: morphing 22s ease-in-out infinite;
}

.fsa-hero .shape-2 {
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    bottom: -120px;
    left: -100px;
    animation: morphing 22s ease-in-out infinite reverse;
}

.fsa-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 991px) { .fsa-layout { grid-template-columns: 1fr; gap: 0; } }

.fsa-content {
    max-width: 780px;
}

.fsa-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.fsa-section:last-child {
    border-bottom: none;
}

.fsa-section h2 {
    font-size: clamp(1.375rem,2.5vw,1.75rem);
    margin-bottom: 1.25rem;
    scroll-margin-top: 100px;
}

.fsa-section h3 {
    font-size: clamp(1.05rem,2vw,1.2rem);
    color: var(--gray-800);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.fsa-section p, .fsa-section li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.fsa-section ul, .fsa-section ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.fsa-section ul li, .fsa-section ol li {
    margin-bottom: 0.5rem;
}

.fsa-section ul li::marker {
    color: var(--primary-light);
}

.service-category {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-base);
}

.service-category:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.service-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.service-category-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.svc-icon-core {
    background: var(--primary-lighter);
    color: var(--primary);
}

.svc-icon-driver {
    background: var(--secondary-lighter);
    color: var(--secondary-dark);
}

.svc-icon-video {
    background: #fef3c7;
    color: #b45309;
}

.svc-icon-compliance {
    background: #e0e7ff;
    color: #4338ca;
}

.svc-icon-recovery {
    background: #fce7f3;
    color: #be185d;
}

.service-category-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.service-category-sub {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
}

.service-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-category ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.service-category ul li i {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.pkg-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

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

.pkg-card.pkg-featured {
    border-color: var(--primary);
}

.pkg-card.pkg-featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pkg-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.pkg-name-basic {
    color: var(--gray-600);
}

.pkg-name-standard {
    color: var(--primary);
}

.pkg-name-premium {
    color: var(--accent);
}

.pkg-name-enterprise {
    color: var(--secondary-dark);
}

.pkg-name-custom {
    color: var(--gray-800);
}

.pkg-features {
    text-align: left;
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.spec-table tfoot td {
    padding: 0.875rem 1.25rem;
    font-weight: 700;
    color: var(--dark);
    border-top: 2px solid var(--gray-200);
    background: var(--gray-50);
}

.precedence-list {
    position: relative;
    padding-left: 2.5rem;
    margin: 1.25rem 0;
    counter-reset: precedence;
}

.precedence-list::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.precedence-item {
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    counter-increment: precedence;
}

.precedence-item::before {
    content: counter(precedence);
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-display);
    z-index: 1;
}

.precedence-item:nth-child(n+5)::before {
    background: var(--gray-500);
}

.consent-checklist {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.consent-checklist h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.consent-checklist h4 i {
    color: var(--primary);
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.consent-item i {
    color: var(--secondary);
    margin-top: 3px;
    flex-shrink: 0;
}

.legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--gray-500);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

@media print {
            .navbar-modern, .toc-sidebar, .back-to-top, .reading-progress,
            .footer-sleek, .toc-mobile-toggle { display: none !important; }
            .fsa-layout { grid-template-columns: 1fr; }
            .fsa-hero { padding: 2rem 0; }
            .fsa-section { break-inside: avoid; }
            body { font-size: 12pt; color: #000; }
            a { color: #000; text-decoration: underline; }
        }s