/* ============================================
   DraftSahayak v4.0 — Design System
   White + Indigo + Coral | Plus Jakarta Sans
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
    /* Palette */
    --ds-indigo: #312E81;
    --ds-indigo-mid: #4F46E5;
    --ds-indigo-light: #6366F1;
    --ds-indigo-pale: #EEF2FF;
    --ds-indigo-glow: rgba(79, 70, 229, 0.08);
    --ds-coral: #E8593C;
    --ds-coral-dark: #C7432A;
    --ds-coral-light: #F07A62;
    --ds-coral-pale: #FEF2F0;
    --ds-coral-glow: rgba(232, 89, 60, 0.08);

    /* Backgrounds */
    --ds-bg: #FFFFFF;
    --ds-bg-alt: #F4F5F7;
    --ds-bg-card: #FFFFFF;
    --ds-bg-elevated: #FFFFFF;
    --ds-bg-hero: linear-gradient(135deg, #312E81 0%, #4F46E5 100%);

    /* Text */
    --ds-text: #1E293B;
    --ds-text-secondary: #475569;
    --ds-text-muted: #94A3B8;
    --ds-text-on-dark: #FFFFFF;
    --ds-text-on-dark-muted: rgba(255, 255, 255, 0.65);

    /* Borders */
    --ds-border: #E2E8F0;
    --ds-border-light: #F1F5F9;

    /* Status */
    --ds-success: #16A34A;
    --ds-info: #0EA5E9;
    --ds-warning: #F59E0B;
    --ds-danger: #EF4444;

    /* Typography */
    --ds-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --ds-container: 1200px;
    --ds-radius: 8px;
    --ds-radius-lg: 12px;
    --ds-radius-xl: 20px;
    --ds-radius-full: 9999px;

    /* Shadows */
    --ds-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --ds-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --ds-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);

    /* Motion */
    --ds-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ds-transition: all 0.3s var(--ds-ease);
    --ds-transition-fast: all 0.15s var(--ds-ease);
}

/* --- DARK MODE --- */
[data-theme="dark"] {
    --ds-bg: #0F172A;
    --ds-bg-alt: #1E293B;
    --ds-bg-card: #1E293B;
    --ds-bg-elevated: #334155;
    --ds-bg-hero: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    --ds-text: #F1F5F9;
    --ds-text-secondary: #94A3B8;
    --ds-text-muted: #64748B;
    --ds-border: #334155;
    --ds-border-light: #1E293B;
    --ds-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --ds-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --ds-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--ds-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ds-text);
    background: var(--ds-bg);
    transition: background 0.3s, color 0.3s;
}
a { color: var(--ds-indigo-mid); text-decoration: none; transition: var(--ds-transition-fast); }
a:hover { color: var(--ds-indigo); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ds-font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ds-text);
    letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
::selection { background: var(--ds-indigo-mid); color: #fff; }

/* --- CONTAINER --- */
.ds-container { max-width: var(--ds-container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .ds-container { padding: 0 16px; } }

/* --- TOPBAR --- */
.ds-topbar {
    background: var(--ds-indigo);
    padding: 8px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-topbar-inner {
    max-width: var(--ds-container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ds-topbar a { color: rgba(255, 255, 255, 0.6); }
.ds-topbar a:hover { color: #fff; }
.ds-topbar-left { display: flex; gap: 20px; }
.ds-topbar-right {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}
.ds-topbar-right a { color: rgba(255, 255, 255, 0.5) !important; }
.ds-topbar-right strong { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 768px) { .ds-topbar { display: none; } }

/* --- HEADER --- */
.ds-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ds-border);
    transition: var(--ds-transition);
}
[data-theme="dark"] .ds-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--ds-border);
}
.ds-header--scrolled { box-shadow: var(--ds-shadow-sm); }
.ds-header-inner {
    max-width: var(--ds-container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

/* Logo */
.ds-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ds-logo-icon { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.ds-logo-name {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.ds-logo-draft { color: var(--ds-indigo); }
[data-theme="dark"] .ds-logo-draft { color: #C7D2FE; }
.ds-logo-sahayak { color: var(--ds-coral); }
.ds-logo-tagline {
    display: block;
    font-size: 9px;
    color: var(--ds-indigo-mid);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Nav */
.ds-nav { display: flex; align-items: center; gap: 4px; }
.ds-nav-item {
    position: relative;
    padding: 20px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ds-text-secondary);
    transition: var(--ds-transition-fast);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--ds-font);
    text-decoration: none;
}
.ds-nav-item:hover, .ds-nav-item.active { color: var(--ds-indigo); }
[data-theme="dark"] .ds-nav-item:hover,
[data-theme="dark"] .ds-nav-item.active { color: #C7D2FE; }
.ds-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--ds-coral);
    transform: scaleX(0);
    transition: transform 0.25s var(--ds-ease);
}
.ds-nav-item:hover::after, .ds-nav-item.active::after { transform: scaleX(1); }

/* Dropdown */
.ds-nav-dropdown { position: relative; }
.ds-nav-dropdown-arrow { font-size: 8px; margin-left: 4px; transition: transform 0.2s; display: inline-block; }
.ds-nav-dropdown:hover .ds-nav-dropdown-arrow { transform: rotate(180deg); }
.ds-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: var(--ds-bg-elevated);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s var(--ds-ease);
    z-index: 100;
}
.ds-nav-dropdown:hover .ds-nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ds-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--ds-radius);
    color: var(--ds-text);
    font-size: 14px;
    transition: var(--ds-transition-fast);
    text-decoration: none;
}
.ds-nav-dropdown-item:hover { background: var(--ds-bg-alt); color: var(--ds-indigo-mid); }
.ds-nav-dropdown-item small { display: block; font-size: 11px; color: var(--ds-text-muted); font-weight: 400; margin-top: 1px; }
.ds-nav-dropdown-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--ds-radius);
    background: var(--ds-indigo-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.ds-nav-dropdown-divider { height: 1px; background: var(--ds-border-light); margin: 4px 8px; }

/* Nav CTA */
.ds-nav-cta { margin-left: 16px; display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.ds-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ds-border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--ds-transition-fast);
    color: var(--ds-text-secondary);
}
.ds-theme-toggle:hover { border-color: var(--ds-indigo-mid); color: var(--ds-indigo-mid); }

/* Mobile hamburger */
.ds-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.ds-menu-toggle span { width: 22px; height: 2px; background: var(--ds-text); transition: var(--ds-transition); border-radius: 2px; }
.ds-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ds-menu-toggle.active span:nth-child(2) { opacity: 0; }
.ds-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.ds-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--ds-transition);
}
.ds-nav-backdrop.active { opacity: 1; visibility: visible; }

@media (max-width: 1024px) {
    .ds-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--ds-bg);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        gap: 0;
        z-index: 999;
        transition: right 0.35s var(--ds-ease);
        box-shadow: var(--ds-shadow-lg);
        overflow-y: auto;
    }
    .ds-nav.open { right: 0; }
    .ds-nav-item { padding: 14px 0; }
    .ds-nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
    }
    .ds-nav-cta { margin: 16px 0 0; flex-direction: column; }
    .ds-menu-toggle { display: flex; }
}

/* --- BUTTONS --- */
.ds-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--ds-font);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--ds-radius-full);
    transition: var(--ds-transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
    text-decoration: none;
    line-height: 1.4;
}
.ds-btn-coral {
    background: var(--ds-coral);
    color: #fff;
}
.ds-btn-coral:hover {
    background: var(--ds-coral-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 89, 60, 0.25);
}
.ds-btn-indigo {
    background: var(--ds-indigo);
    color: #fff;
}
.ds-btn-indigo:hover {
    background: var(--ds-indigo-mid);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}
.ds-btn-outline {
    background: transparent;
    color: var(--ds-text);
    border: 1.5px solid var(--ds-border);
}
.ds-btn-outline:hover { border-color: var(--ds-indigo-mid); color: var(--ds-indigo-mid); }
.ds-btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.ds-btn-outline-light:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.ds-btn-sm { padding: 8px 18px; font-size: 13px; }
.ds-btn-lg { padding: 16px 36px; font-size: 16px; }
.ds-mt-16 { margin-top: 16px; }

/* --- SECTION UTILITIES --- */
.ds-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ds-indigo-mid);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.ds-section-label::before { content: ''; width: 24px; height: 2px; background: var(--ds-coral); border-radius: 2px; }
.ds-section-desc {
    font-size: 17px;
    color: var(--ds-text-secondary);
    line-height: 1.7;
    max-width: 640px;
}
.ds-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--ds-coral), var(--ds-coral-light));
    border-radius: 2px;
    margin: 16px 0 0;
}

/* --- HERO --- */
.ds-hero {
    background: var(--ds-bg-hero);
    color: var(--ds-text-on-dark);
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}
.ds-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 89, 60, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ds-hero h1 { color: #fff; margin-bottom: 20px; }
.ds-hero-desc {
    font-size: 18px;
    color: var(--ds-text-on-dark-muted);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 32px;
}
.ds-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.ds-hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.ds-hero-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.ds-hero-stat-label {
    font-size: 12px;
    color: var(--ds-text-on-dark-muted);
    margin-top: 4px;
    font-weight: 500;
}
@media (max-width: 768px) {
    .ds-hero { min-height: auto; padding: 120px 0 60px; }
    .ds-hero-stats { gap: 24px; }
    .ds-hero-btns { flex-direction: column; }
    .ds-hero-btns .ds-btn { justify-content: center; }
}

/* --- SECTION SPACING --- */
.ds-section { padding: 80px 0; }
.ds-section-alt { background: var(--ds-bg-alt); }
.ds-section-dark {
    background: var(--ds-indigo);
    color: var(--ds-text-on-dark);
}
.ds-section-dark h2, .ds-section-dark h3 { color: #fff; }

/* --- CARDS --- */
.ds-card {
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    padding: 28px;
    transition: var(--ds-transition);
}
.ds-card:hover {
    border-color: var(--ds-indigo-mid);
    transform: translateY(-3px);
    box-shadow: var(--ds-shadow-md);
}
.ds-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--ds-radius);
    background: var(--ds-indigo-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.ds-card-coral .ds-card-icon { background: var(--ds-coral-glow); }

/* --- PILLAR CARDS (Homepage 3-column) --- */
.ds-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .ds-pillars { grid-template-columns: 1fr; } }

/* --- IMPACT GRID --- */
.ds-impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ds-impact-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    transition: var(--ds-transition);
}
.ds-impact-card:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow-md); }
.ds-impact-num {
    font-size: 40px;
    font-weight: 700;
    color: var(--ds-indigo-mid);
    line-height: 1;
}
.ds-impact-label { font-size: 14px; font-weight: 600; color: var(--ds-text); margin-top: 8px; }
@media (max-width: 768px) { .ds-impact-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .ds-impact-num { font-size: 28px; } }

/* --- RECHARGE / PRICING GRID --- */
.ds-recharge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* --- AI TOOLS GRID --- */
.ds-tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 768px) { .ds-tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ds-tools-grid { grid-template-columns: 1fr; } }

.ds-tcard {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    cursor: pointer;
    transition: var(--ds-transition-fast);
    text-decoration: none;
}
.ds-tcard:hover {
    border-color: var(--ds-indigo-mid);
    background: var(--ds-indigo-glow);
    transform: translateY(-2px);
    box-shadow: var(--ds-shadow-sm);
}
.ds-tcard-icon { font-size: 22px; flex-shrink: 0; }
.ds-tcard-body { min-width: 0; flex: 1; }
.ds-tcard-body strong { display: block; font-size: 13px; color: var(--ds-text); font-weight: 600; }
.ds-tcard-body small { display: block; font-size: 11px; color: var(--ds-text-muted); margin-top: 2px; line-height: 1.3; }
.ds-tcard-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--ds-radius-full);
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.ds-tcard-badge.free { background: #DCFCE7; color: #166534; }
[data-theme="dark"] .ds-tcard-badge.free { background: #14532D; color: #86EFAC; }
.ds-tcard-badge.pro { background: var(--ds-indigo-pale); color: var(--ds-indigo); }
[data-theme="dark"] .ds-tcard-badge.pro { background: #1E1B4B; color: #A5B4FC; }

/* --- FAQ --- */
.ds-faq-list { max-width: 720px; margin: 0 auto; }
.ds-faq-item { border-bottom: 1px solid var(--ds-border); }
.ds-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--ds-font);
    font-size: 16px;
    font-weight: 500;
    color: var(--ds-text);
    text-align: left;
    transition: var(--ds-transition-fast);
    line-height: 1.4;
}
.ds-faq-question:hover { color: var(--ds-indigo-mid); }
.ds-faq-toggle {
    font-size: 20px;
    color: var(--ds-text-muted);
    transition: transform 0.3s var(--ds-ease);
    flex-shrink: 0;
    margin-left: 16px;
}
.ds-faq-item.open .ds-faq-toggle { transform: rotate(45deg); color: var(--ds-coral); }
.ds-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ds-ease); }
.ds-faq-item.open .ds-faq-answer { max-height: 500px; padding-bottom: 20px; }
.ds-faq-answer p, .ds-faq-answer { font-size: 15px; color: var(--ds-text-secondary); line-height: 1.7; }

/* --- PAGE LAYOUT (full-width, no sidebar) --- */
.ds-page-with-sidebar { padding: 100px 0 60px; }
.ds-layout-full { max-width: 100%; }
.ds-layout-main { min-width: 0; }

/* Sidebar removed in v4.0.3 — full-width layout */

/* --- FOOTER --- */
.ds-footer {
    background: var(--ds-indigo);
    color: rgba(255, 255, 255, 0.55);
    padding: 64px 0 0;
}
.ds-footer h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.ds-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
}
.ds-footer-links { list-style: none; }
.ds-footer-links li { margin-bottom: 8px; }
.ds-footer-links a { color: rgba(255, 255, 255, 0.5); font-size: 14px; }
.ds-footer-links a:hover { color: var(--ds-coral-light); }
.ds-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}
.ds-footer-bottom a { color: var(--ds-coral-light); }
@media (max-width: 768px) {
    .ds-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .ds-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) { .ds-footer-grid { grid-template-columns: 1fr; } }

/* --- WHATSAPP FLOAT --- */
.ds-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 900;
    transition: var(--ds-transition);
}
.ds-whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4); }
.ds-whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }

/* --- AI CHAT FLOAT --- */
.ds-ai-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 54px;
    height: 54px;
    background: var(--ds-indigo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(49, 46, 129, 0.3);
    z-index: 900;
    transition: var(--ds-transition);
    cursor: pointer;
    border: none;
    color: #fff;
    font-size: 22px;
}
.ds-ai-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(49, 46, 129, 0.4); background: var(--ds-indigo-mid); }

/* --- BACK TO TOP --- */
.ds-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 88px;
    width: 40px;
    height: 40px;
    background: var(--ds-bg-elevated);
    border: 1px solid var(--ds-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--ds-transition);
    z-index: 899;
    color: var(--ds-text-secondary);
}
.ds-back-to-top.visible { opacity: 1; visibility: visible; }
.ds-back-to-top:hover { border-color: var(--ds-indigo-mid); color: var(--ds-indigo-mid); }

/* --- BLOG --- */
.ds-post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 768px) { .ds-post-grid { grid-template-columns: 1fr; } }

/* --- SERVICES GRID --- */
.ds-services-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .ds-services-hub-grid { grid-template-columns: 1fr; } }

/* --- DOCS GRID --- */
.ds-docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .ds-docs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ds-docs-grid { grid-template-columns: 1fr; } }
.ds-doc-card {
    display: flex;
    flex-direction: column;
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    padding: 20px;
    text-decoration: none;
    transition: var(--ds-transition);
}
.ds-doc-card:hover { border-color: var(--ds-indigo-mid); transform: translateY(-2px); box-shadow: var(--ds-shadow-sm); }
.ds-doc-card-title { font-size: 14px; font-weight: 600; color: var(--ds-text); margin-bottom: 4px; }
.ds-doc-card-desc { font-size: 12px; color: var(--ds-text-muted); flex: 1; }
.ds-doc-card-btn {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ds-coral);
}

/* --- AZ FILTER (Dictionary) --- */
.ds-az-btn {
    padding: 4px 10px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    background: transparent;
    color: var(--ds-text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ds-transition-fast);
    font-family: var(--ds-font);
}
.ds-az-btn:hover, .ds-az-btn.active { background: var(--ds-indigo); color: #fff; border-color: var(--ds-indigo); }

/* --- INTAKE FORM WRAPPER --- */
.ds-intake-form { margin-bottom: 32px; }
.ds-intake-form .ds-form-group { margin-bottom: 16px; }
.ds-intake-form .ds-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ds-text);
    margin-bottom: 6px;
}
.ds-intake-form .ds-form-group input,
.ds-intake-form .ds-form-group select,
.ds-intake-form .ds-form-group textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    font-family: var(--ds-font);
    font-size: 14px;
    color: var(--ds-text);
    background: var(--ds-bg-card);
    transition: var(--ds-transition-fast);
}
.ds-intake-form .ds-form-group input:focus,
.ds-intake-form .ds-form-group select:focus,
.ds-intake-form .ds-form-group textarea:focus {
    outline: none;
    border-color: var(--ds-indigo-mid);
    box-shadow: 0 0 0 3px var(--ds-indigo-glow);
}
.ds-intake-form .ds-form-group textarea { min-height: 100px; resize: vertical; }

/* --- DOCS CONTAINER --- */
.ds-docs-container { margin-bottom: 40px; }
.ds-docs-container .ds-section-label { margin-bottom: 8px; }

/* --- SECTION DESC --- */
.ds-section-desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ds-text-secondary);
    max-width: 640px;
}

/* --- NAV CTA --- */
.ds-nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

/* --- DROPDOWN DIVIDER --- */
.ds-nav-dropdown-divider {
    height: 1px;
    background: var(--ds-border);
    margin: 4px 8px;
}

/* --- DARK MODE TOGGLE --- */
.ds-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ds-border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--ds-transition-fast);
    color: var(--ds-text-secondary);
}
.ds-theme-toggle:hover { border-color: var(--ds-indigo-mid); color: var(--ds-indigo-mid); }

/* --- LEGAL DICTIONARY TERMS --- */
.ds-dict-section { margin-bottom: 24px; }
.ds-dict-term { transition: background 0.2s; }
.ds-dict-term:hover { background: var(--ds-bg-alt); margin: 0 -12px; padding-left: 12px !important; padding-right: 12px !important; border-radius: var(--ds-radius); }

/* --- PROMPT SAHAYAK CARDS --- */
.psah-prompt-card { cursor: default; }
.psah-prompt-card:hover { border-color: var(--ds-indigo-mid); box-shadow: var(--ds-shadow-sm); transform: translateY(-2px); }
.psah-cat-section { animation: dsFadeIn 0.3s var(--ds-ease); }

/* --- SCROLL REVEAL ANIMATION --- */
@keyframes dsFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- TOOLS GRID LINK FIX --- */
a.ds-tcard { color: inherit; }
a.ds-tcard:hover { color: inherit; }
a.ds-tcard:hover strong { color: var(--ds-indigo-mid); }

/* --- CARD LINKS --- */
a.ds-card { color: inherit; cursor: pointer; }
a.ds-card:hover { color: inherit; }

/* --- ENTERPRISE PLANS RESPONSIVE --- */
@media (max-width: 768px) {
    .ds-page-with-sidebar { padding-top: 80px; }
}
@media (max-width: 900px) {
    .psah-prompt-card .ds-btn { padding: 4px 8px; font-size: 10px; }
}

/* --- GENERIC MARGIN/PADDING HELPERS --- */
.ds-mt-16 { margin-top: 16px; }
.ds-mt-24 { margin-top: 24px; }
.ds-mt-32 { margin-top: 32px; }

/* --- DOCUMENT COPY PROTECTION --- */
.ds-doc-protected {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    margin-bottom: 24px;
}
.ds-doc-preview-content {
    padding: 32px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--ds-text-secondary);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}
.ds-doc-preview-content * {
    -webkit-user-select: none !important;
    user-select: none !important;
}
.ds-doc-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 48px;
    font-weight: 900;
    color: rgba(79, 70, 229, 0.04);
    letter-spacing: 8px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}
.ds-doc-blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0.98) 60%, #fff 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    z-index: 2;
}
[data-theme="dark"] .ds-doc-blur-overlay {
    background: linear-gradient(to bottom, rgba(15,23,42,0) 0%, rgba(15,23,42,0.8) 30%, rgba(15,23,42,0.98) 60%, #0F172A 100%);
}

/* --- PRINT --- */
@media print { .ds-header, .ds-topbar, .ds-footer, .ds-whatsapp-float, .ds-ai-float, .ds-back-to-top { display: none !important; } }
