/* ==========================================================================
   Slate UI Design System - Pixel-Perfect Replica
   Colors: Slate Dark (#0f172a), Primary Purple (#6941C6 / #5c56ec),
   Hero Gradient (#5b4df1 to #8b5cf6), Clean White (#ffffff), Slate Border (#e2e8f0)
   ========================================================================== */

:root {
    --primary: #5c56ec;
    --primary-hover: #4e47e0;
    --primary-purple: #6941C6;
    --primary-purple-hover: #5935b0;
    --hero-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #ec4899 100%);
    --bg-page: #f4f6ff;
    --bg-card: rgba(255, 255, 255, 0.96);
    --border: rgba(99, 102, 241, 0.16);
    --border-hover: rgba(99, 102, 241, 0.32);
    --border-dashed: #6366f1;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --radius-pill: 9999px;
    --radius-card: 20px;
    --radius-sm: 10px;
    --shadow-card: 0 12px 32px -4px rgba(99, 102, 241, 0.09), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-dropdown: 0 20px 45px -10px rgba(0, 0, 0, 0.15), 0 0 1px 1px rgba(99, 102, 241, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: 
      radial-gradient(circle at 6% 14%, rgba(99, 102, 241, 0.20) 0%, transparent 40%),
      radial-gradient(circle at 94% 12%, rgba(6, 182, 212, 0.22) 0%, transparent 45%),
      radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.20) 0%, transparent 42%),
      radial-gradient(circle at 12% 90%, rgba(16, 185, 129, 0.16) 0%, transparent 38%),
      linear-gradient(135deg, #eef2ff 0%, #f5f3ff 35%, #ecfeff 70%, #fdf2f8 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------
 * TOP NAVBAR
 * ----------------------------------------------------------- */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.14);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Slate Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
    transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo-icon {
    transform: scale(1.05);
}

.brand-name {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}

/* Navigation Links & Purple Pills */
.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.nav-pill {
    background: var(--primary-purple);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.nav-pill:hover, .nav-pill.active {
    background: var(--primary-purple-hover);
    box-shadow: 0 4px 12px rgba(105, 65, 198, 0.3);
    transform: translateY(-1px);
}

.nav-text-link {
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-text-link:hover {
    color: var(--primary-purple);
}

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

.btn-install {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* -------------------------------------------------------------
 * MEGA MENU (SCREENSHOT 2)
 * ----------------------------------------------------------- */
.mega-menu-wrapper {
    position: relative;
    display: inline-block;
}

/* Open on hover smoothly */
.mega-menu-wrapper:hover .mega-menu,
.mega-menu-wrapper:focus-within .mega-menu,
.mega-menu.show {
    display: grid;
    animation: fadeInMenu 0.15s ease-out forwards;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 820px;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: var(--shadow-dropdown);
    border: 1px solid var(--border);
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    z-index: 9999;
    pointer-events: auto;
}

/* Invisible bridge to prevent mouseleave when hovering from button to menu */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translate(-50%, -6px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.mega-column h4 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.mega-column a {
    display: block;
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 10px;
    margin: 2px 0;
    border-radius: 8px;
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
}

.mega-column a:hover {
    color: var(--primary);
    background: #f1f5f9;
    transform: translateX(3px);
}

/* -------------------------------------------------------------
 * HERO BANNER (SCREENSHOT 1 & 2)
 * ----------------------------------------------------------- */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px 20px;
    width: 100%;
}

.hero-banner {
    background: var(--hero-gradient);
    border-radius: var(--radius-card);
    padding: 38px 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 12px 35px -8px rgba(92, 86, 236, 0.4);
    margin-bottom: 30px;
}

.hero-banner h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.hero-banner p {
    font-size: 14.5px;
    opacity: 0.92;
    max-width: 720px;
    margin: 0 auto 22px auto;
    line-height: 1.55;
}

.hero-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* -------------------------------------------------------------
 * TWO-COLUMN IMAGE RESIZER WORKSPACE (SCREENSHOT 1 & 3)
 * ----------------------------------------------------------- */
.resizer-workspace {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

/* Left Card: Resize Settings */
.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.settings-card h2 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 22px;
}

.form-label-sub {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.custom-select, .form-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
}

.custom-select:focus, .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(92, 86, 236, 0.15);
}

.dimensions-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dimension-sep {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    margin-top: 10px;
    user-select: none;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slider-val {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-apply-changes {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(92, 86, 236, 0.35);
    transition: all 0.2s;
    margin-top: 20px;
}

.btn-apply-changes:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 22px rgba(92, 86, 236, 0.45);
    transform: translateY(-1px);
}

.estimated-size-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

/* Right Card: Dashed Dropzone */
.dropzone-slate {
    background: linear-gradient(135deg, rgba(240, 244, 255, 0.90) 0%, rgba(245, 243, 255, 0.92) 50%, rgba(236, 254, 255, 0.90) 100%);
    border: 2px dashed var(--border-dashed);
    border-radius: var(--radius-card);
    padding: 50px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.10);
}

.dropzone-slate:hover, .dropzone-slate.dragover {
    border-color: #4f46e5;
    background: linear-gradient(135deg, rgba(224, 231, 255, 0.98) 0%, rgba(237, 233, 254, 0.98) 50%, rgba(207, 250, 254, 0.98) 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -5px rgba(99, 102, 241, 0.22);
}

.dropzone-3d-camera {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    object-fit: contain;
}

.dropzone-slate h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.dropzone-slate p.sub {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-choose-photo {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(92, 86, 236, 0.35);
    transition: all 0.2s;
    margin-bottom: 22px;
}

.btn-choose-photo:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.dropzone-note {
    font-size: 12px;
    color: var(--text-light);
}

/* Canvas & Image Preview when Loaded */
.preview-container {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
    display: none;
}

/* -------------------------------------------------------------
 * PDF CONVERTER VIEW (SCREENSHOT 2)
 * ----------------------------------------------------------- */
.pdf-search-box {
    max-width: 600px;
    margin: 0 auto 32px auto;
    position: relative;
}

.pdf-search-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-pill);
    padding: 13px 48px 13px 22px;
    font-size: 14.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    outline: none;
    transition: border-color 0.2s;
}

.pdf-search-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(105, 65, 198, 0.15);
}

.pdf-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.popular-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.tool-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.tool-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(105, 65, 198, 0.12);
}

.tool-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-size: 20px;
    flex-shrink: 0;
}

.tool-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.tool-card span {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Universal File Dropzone (Screenshot 2) */
.dropzone-universal {
    background: #f8faff;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-card);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dropzone-universal:hover, .dropzone-universal.dragover {
    border-color: var(--primary-purple);
    background: #f0f4ff;
}

.dropzone-universal-icon {
    font-size: 48px;
    margin-bottom: 14px;
    color: #94a3b8;
}

.btn-choose-files {
    background: var(--primary-purple);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(105, 65, 198, 0.35);
    margin: 18px 0;
}

.supported-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #10b981;
    font-size: 13px;
    font-weight: 700;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------
 * FILE QUEUES, BUTTONS & TOAST
 * ----------------------------------------------------------- */
.queue-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.queue-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.btn-icon-round {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.15s;
}

.btn-icon-round:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-icon-round.danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* -------------------------------------------------------------
 * 3. FEATURES SECTION (Why Choose DOCS?)
 * ----------------------------------------------------------- */
.features {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #4f46e5, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #ec4899);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.14);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.98rem;
}

.feature-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
    cursor: pointer;
}

.feature-link:hover {
    gap: 0.8rem;
    color: #7c3aed;
}

/* -------------------------------------------------------------
 * 4. TOOLS SECTION (Our Powerful Tools)
 * ----------------------------------------------------------- */
.tools {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: stretch;
}

.tool-showcase {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #be185d 100%);
    border-radius: 28px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(67, 56, 202, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tool-showcase:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 55px rgba(67, 56, 202, 0.35);
}

.tool-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.tool-content {
    position: relative;
    z-index: 1;
}

.tool-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.tool-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tool-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.tool-features li {
    color: #ffffff;
    padding: 0.65rem 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.02rem;
}

.tool-features li::before {
    content: '✓';
    display: inline-flex;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2.2rem;
    background: #ffffff;
    color: #4338ca;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    align-self: flex-start;
}

.tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
}

/* -------------------------------------------------------------
 * 5. STATS SECTION
 * ----------------------------------------------------------- */
.stats {
    padding: 4.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06);
    transition: transform 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.12);
}

.stat-number {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

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

/* -------------------------------------------------------------
 * 6. CTA SECTION
 * ----------------------------------------------------------- */
.cta {
    padding: 5.5rem 2rem;
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 50%, #db2777 100%);
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.hero-btn-primary {
    background: #ffffff;
    color: #4338ca;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
}

/* -------------------------------------------------------------
 * 7. FOOTER
 * ----------------------------------------------------------- */
.footer {
    background: #090d16;
    color: #ffffff;
    padding: 4.5rem 2rem 2.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #a5b4fc;
    padding-left: 5px;
}

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

/* -------------------------------------------------------------
 * RESPONSIVE RULES
 * ----------------------------------------------------------- */
@media (max-width: 968px) {
    .tools-container {
        grid-template-columns: 1fr;
    }

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

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }
}

/* -------------------------------------------------------------
 * PDF STUDIO TOOL-SPECIFIC OPTIONS & CANVAS STYLING
 * ----------------------------------------------------------- */
.tool-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
}

#signature-canvas {
    touch-action: none;
    user-select: none;
}

/* -------------------------------------------------------------
 * 10. FINANCIAL CALCULATORS SUITE (EMI, MF, FD, COMP)
 * ----------------------------------------------------------- */
.calc-tabs-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.calc-tab-btn {
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calc-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fafc;
}

.calc-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(91, 77, 241, 0.28);
}

.calc-subnav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.calc-pill-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.calc-group-label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.calc-pill-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
}

.calc-pill-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.calc-pill-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.calc-grid-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
}

.calc-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px 26px;
    box-shadow: var(--shadow-card);
}

.calc-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
}

.calc-input-group {
    margin-bottom: 22px;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calc-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
}

.calc-input-with-symbol {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 10px;
    transition: border-color 0.2s;
}

.calc-input-with-symbol:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(91, 77, 241, 0.15);
}

.calc-symbol, .calc-symbol-right {
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
}

.calc-symbol { margin-right: 4px; }
.calc-symbol-right { margin-left: 4px; }

.calc-num-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    width: 120px;
}

.calc-slider {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}

.calc-minmax-row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 5px;
}

.calc-mini-toggle {
    display: inline-flex;
    background: #e2e8f0;
    border-radius: 6px;
    padding: 2px;
}

.calc-mini-btn {
    border: none;
    background: transparent;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    color: #64748b;
}

.calc-mini-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.calc-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}

.calc-stat-box.highlight {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.stat-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.stat-value.primary { color: #5b4df1; }
.stat-value.success { color: #059669; }
.stat-value.warning { color: #d97706; }

/* Donut Chart */
.donut-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.donut-svg-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}

.donut-center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 140px;
    pointer-events: none;
}

.donut-center-main {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    word-break: break-word;
}

.donut-center-sub {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donut-legend-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #334155;
}

.donut-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Amortization & Growth Tables */
.calc-table-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-export-csv {
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-export-csv:hover {
    background: #047857;
}

.calc-table-responsive {
    overflow-x: auto;
}

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

.calc-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    padding: 10px 14px;
    text-align: right;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}

.calc-table th:first-child {
    text-align: left;
}

.calc-table td {
    padding: 10px 14px;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    white-space: nowrap;
}

.calc-table td:first-child {
    text-align: left;
}

.amort-year-row {
    cursor: pointer;
    transition: background 0.15s;
}

.amort-year-row:hover {
    background: #f8fafc;
}

.progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    justify-content: flex-end;
}

.progress-bar-fill {
    height: 6px;
    background: #5b4df1;
    border-radius: 4px;
}

.sub-amort-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.sub-amort-table th {
    background: #e2e8f0;
    color: #475569;
    padding: 8px 12px;
    font-size: 11px;
    text-align: right;
}

.sub-amort-table th:first-child {
    text-align: left;
}

.sub-amort-table td {
    padding: 7px 12px;
    text-align: right;
    border-bottom: 1px solid #f1f5f9;
}

.sub-amort-table td:first-child {
    text-align: left;
}

/* SIP vs FD Comparison Styles */
.sip-advantage-banner {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 18px;
}

.sip-advantage-amt {
    font-size: 26px;
    font-weight: 900;
    color: #047857;
    margin: 4px 0;
}

.sip-advantage-sub {
    font-size: 12px;
    font-weight: 600;
    color: #065f46;
}

.comp-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.comp-card-half {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.comp-card-half.sip {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.comp-half-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.comp-half-main {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.comp-card-half.sip .comp-half-main {
    color: #059669;
}

.comp-half-gain {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
}

.comp-chart-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 170px;
    padding: 10px 0;
    border-bottom: 2px solid #e2e8f0;
}

.comp-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.comp-bar-track {
    width: 100%;
    height: 110px;
    background: #f1f5f9;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.comp-bar-fill {
    width: 100%;
    border-radius: 6px 6px 0 0;
    transition: height 0.5s ease;
}

.fill-invested { background: #94a3b8; }
.fill-fd { background: #3b82f6; }
.fill-sip { background: #10b981; }

.comp-bar-label {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
    text-align: center;
}

.comp-bar-name {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-top: 6px;
    text-align: center;
}

@media (max-width: 900px) {
    .calc-grid-layout {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   ADOBE SCAN: AI PDF SCANNER, OCR - PLAY STORE REPLICA STYLES
   Colors: Adobe Dark Navy (#0f172a, #1e293b), Adobe Signature Blue (#1473e6),
   Cyan Glow (#0ea5e9), Pure White (#ffffff), Slate Border (#e2e8f0)
   ========================================================================== */

.adobe-scan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px 40px;
}

/* 1. App Bar Header */
.adobe-app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 10px 25px -5px rgba(20, 115, 230, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(20, 115, 230, 0.12);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 18px;
}

.adobe-app-branding {
    display: flex;
    align-items: center;
    gap: 16px;
}

.adobe-logo-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1473e6 0%, #0055b8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(20, 115, 230, 0.35);
}

.adobe-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adobe-brand-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.adobe-ai-chip {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.adobe-brand-sub {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 3px;
}

.adobe-app-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adobe-btn-primary {
    background: #1473e6;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(20, 115, 230, 0.35);
}

.adobe-btn-primary:hover {
    background: #0d62cc;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(20, 115, 230, 0.45);
}

.adobe-btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.adobe-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* 2. Search & Filter Bar */
.adobe-search-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.adobe-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 0 16px;
    border: 1px solid rgba(20, 115, 230, 0.16);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    color: #64748b;
}

.adobe-search-box input {
    width: 100%;
    border: none;
    outline: none;
    padding: 13px 12px;
    font-size: 14px;
    color: #0f172a;
    background: transparent;
}

.adobe-chips-carousel {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.adobe-chips-carousel::-webkit-scrollbar {
    display: none;
}

.adobe-chip {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.adobe-chip:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.adobe-chip.active {
    background: #1473e6;
    color: #ffffff;
    border-color: #1473e6;
    box-shadow: 0 4px 12px rgba(20, 115, 230, 0.3);
}

.adobe-chip-sm {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.adobe-chip-sm:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* 3. Scans Header & Grid */
.adobe-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.adobe-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.adobe-scans-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.adobe-scans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.adobe-scan-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.adobe-scan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -4px rgba(20, 115, 230, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(20, 115, 230, 0.25);
}

.adobe-scan-thumb-wrap {
    height: 190px;
    background: #0f172a;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adobe-scan-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.adobe-scan-card:hover .adobe-scan-thumb-img {
    transform: scale(1.03);
}

.adobe-scan-page-pill {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.adobe-scan-ocr-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(20, 115, 230, 0.90);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.adobe-scan-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.adobe-scan-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.adobe-scan-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adobe-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 14px;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.adobe-icon-btn:hover {
    color: #0f172a;
}

.adobe-scan-meta {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 14px;
}

.adobe-scan-actions-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.adobe-action-btn {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.adobe-action-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.adobe-action-btn.primary {
    background: #1473e6;
    color: #ffffff;
    border-color: #1473e6;
}

.adobe-action-btn.primary:hover {
    background: #0d62cc;
}

.adobe-action-btn.danger {
    flex: 0 0 34px;
    color: #ef4444;
}

.adobe-action-btn.danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Empty State */
.adobe-scans-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 24px;
    text-align: center;
    border: 2px dashed #cbd5e1;
}

.adobe-empty-icon {
    font-size: 48px;
    margin-bottom: 14px;
}

.adobe-scans-empty h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.adobe-scans-empty p {
    font-size: 14px;
    color: #64748b;
    max-width: 440px;
    margin-bottom: 22px;
    line-height: 1.5;
}

/* 4. Fullscreen Modals (Camera & Review) */
.adobe-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 12000;
    display: flex;
    flex-direction: column;
    user-select: none;
}

.adobe-camera-viewport,
.adobe-review-viewport {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background: #000000;
    overflow: hidden;
    position: relative;
}

/* Camera Top HUD */
.adobe-camera-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 10;
}

.adobe-hud-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.adobe-hud-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.adobe-hud-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.adobe-hud-pill.active {
    background: #1473e6;
    border-color: #1473e6;
    box-shadow: 0 2px 10px rgba(20, 115, 230, 0.4);
}

/* Video & HUD Canvas */
.adobe-camera-stream-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#adobe-camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#adobe-camera-hud-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.adobe-hud-status-banner {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    color: #38bdf8;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.adobe-camera-flash-fx {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 100;
}

.adobe-camera-fallback-card {
    background: #1e293b;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    color: #ffffff;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.adobe-camera-fallback-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.adobe-camera-fallback-card p {
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Mode Selector Carousel */
.adobe-mode-carousel-wrap {
    padding: 10px 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    z-index: 10;
}

.adobe-mode-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 20px;
    scrollbar-width: none;
}

.adobe-mode-carousel::-webkit-scrollbar {
    display: none;
}

.adobe-mode-chip {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.adobe-mode-chip.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Camera Bottom Shutter Bar */
.adobe-camera-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 16px 24px 30px;
    background: #000000;
    z-index: 10;
}

.adobe-gallery-btn,
.adobe-tray-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

.adobe-gallery-btn:hover,
.adobe-tray-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.adobe-tray-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #1473e6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
}

/* Iconic Adobe Scan Dual-Ring Shutter Button */
.adobe-shutter-btn {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: transparent;
    border: 4px solid #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s ease;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.adobe-shutter-inner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1473e6 0%, #0ea5e9 100%);
    box-shadow: 0 0 12px rgba(20, 115, 230, 0.6);
    transition: transform 0.12s ease;
}

.adobe-shutter-btn:active {
    transform: scale(0.94);
}

.adobe-shutter-btn:active .adobe-shutter-inner {
    transform: scale(0.88);
}

/* 5. Review & Crop Screen */
.adobe-review-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.adobe-review-title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 55%;
}

.adobe-review-title-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    outline: none;
    width: 100%;
    padding: 2px 4px;
}

.adobe-review-title-input:focus {
    border-bottom-color: #38bdf8;
}

.adobe-review-page-indicator {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}

.adobe-btn-save-pdf {
    background: #1473e6;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(20, 115, 230, 0.4);
    transition: all 0.15s ease;
}

.adobe-btn-save-pdf:hover {
    background: #0d62cc;
    transform: translateY(-1px);
}

/* Canvas Stage */
.adobe-review-canvas-stage {
    flex: 1;
    background: #0b1120;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#adobe-review-canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    cursor: crosshair;
}

/* 2.5x Floating Magnifying Loupe */
.adobe-magnifying-loupe {
    position: fixed;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), 0 0 12px rgba(20, 115, 230, 0.5);
    pointer-events: none;
    z-index: 1000;
    background: #000000;
}

/* Magic Eraser Toolbar */
.adobe-eraser-toolbar {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.90);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.adobe-eraser-toolbar input[type="range"] {
    width: 100px;
    accent-color: #38bdf8;
}

/* Multi-Page Tray Strip */
.adobe-review-tray-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
}

.adobe-review-tray-strip::-webkit-scrollbar {
    display: none;
}

.adobe-tray-page-item {
    position: relative;
    width: 52px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    background: #1e293b;
    transition: all 0.15s ease;
}

.adobe-tray-page-item.active {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.adobe-tray-page-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adobe-tray-page-num {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
}

/* Bottom Tool Bar */
.adobe-review-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 14px 20px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.adobe-tool-item {
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.adobe-tool-item:hover,
.adobe-tool-item.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.adobe-tool-item.danger:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.adobe-tool-icon {
    font-size: 18px;
}

/* Filter Popup Bar */
.adobe-filter-popup {
    position: absolute;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 6px 10px;
    display: none;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 25;
}

.adobe-filter-popup.open {
    display: flex;
}

.adobe-filter-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.adobe-filter-btn.active {
    background: #1473e6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(20, 115, 230, 0.4);
}

/* 6. AI OCR & Assistant Modal */
.adobe-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 13000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.adobe-ocr-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.adobe-ocr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.adobe-progress-track {
    width: 100%;
    height: 4px;
    background: #f1f5f9;
    overflow: hidden;
}

.adobe-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1473e6, #0ea5e9);
    transition: width 0.3s ease;
}

.adobe-ocr-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.adobe-ai-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.adobe-ai-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.adobe-ai-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.adobe-ai-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.adobe-ocr-textarea {
    width: 100%;
    min-height: 180px;
    max-height: 240px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
}

.adobe-ocr-textarea:focus {
    border-color: #1473e6;
    box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.15);
}

.adobe-ocr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.adobe-tool-btn-sm {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.adobe-tool-btn-sm:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.adobe-tool-btn-sm.primary {
    background: #1473e6;
    color: #ffffff;
    border-color: #1473e6;
}

@media (max-width: 640px) {
    .adobe-app-bar {
        padding: 18px 20px;
    }
    .adobe-app-actions {
        width: 100%;
        flex-direction: column;
    }
    .adobe-btn-primary, .adobe-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .adobe-scans-grid {
        grid-template-columns: 1fr;
    }
}
