/* ===================================================================
   JMK PDF Tool - Modern Production Stylesheet (v2.0)
   Designed for high performance, accessibility, and modern SaaS aesthetics.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Root & Theme Variables --- */
:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Dark Theme Default */
    --bg-page: #0b0f19;
    --bg-page-gradient: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0b0f19 65%);
    --bg-surface: rgba(17, 24, 39, 0.75);
    --bg-surface-solid: #111827;
    --bg-card: rgba(30, 41, 59, 0.6);
    --bg-card-hover: rgba(51, 65, 85, 0.6);
    --bg-input: rgba(15, 23, 42, 0.8);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.1);
    --border-focus: #6366f1;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    
    --accent-emerald: #10b981;
    --accent-emerald-light: rgba(16, 185, 129, 0.15);
    --accent-rose: #f43f5e;
    --accent-rose-light: rgba(244, 63, 94, 0.15);
    --accent-amber: #f59e0b;
    --accent-amber-light: rgba(245, 158, 11, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* Light Theme Overrides (High-Contrast, Crisp & Accessible) */
[data-theme="light"] {
    --bg-page: #f1f5f9;
    --bg-page-gradient: radial-gradient(circle at 50% 0%, #e0e7ff 0%, #f1f5f9 70%);
    --bg-surface: #ffffff;
    --bg-surface-solid: #ffffff;
    --bg-card: #f8fafc;
    --bg-card-hover: #f1f5f9;
    --bg-input: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --border-subtle: #e2e8f0;
    --border-card: #cbd5e1;
    --border-focus: #4f46e5;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    
    --accent-emerald: #059669;
    --accent-emerald-light: #ecfdf5;
    --accent-rose: #e11d48;
    --accent-rose-light: #fff1f2;
    --accent-amber: #b45309;
    --accent-amber-light: #fffbeb;
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.15);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    background-image: var(--bg-page-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* --- Top Navigation Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: inline-block;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--border-subtle);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-focus);
    transform: translateY(-1px);
}

[data-theme="light"] .theme-toggle-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .theme-toggle-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.privacy-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .privacy-pill {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: pulse 2s infinite;
}

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

/* --- Main Layout Grid --- */
.main-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    width: 100%;
}

.hero-section {
    text-align: center;
    max-width: 1060px;
    margin: 0 auto 2.5rem;
    width: 100%;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0 auto 0.75rem;
    max-width: 760px;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
}

/* --- Tool Switcher Pills --- */
.tools-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
    width: 100%;
}

.tools-nav-pill-group {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

[data-theme="light"] .tools-nav-pill-group {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--border-subtle);
}

.tab-btn.active {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .tab-btn {
    color: #334155;
    font-weight: 600;
}

[data-theme="light"] .tab-btn:hover:not(.active) {
    color: #0f172a;
    background: #f1f5f9;
}

[data-theme="light"] .tab-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.35);
}

.tab-icon {
    font-size: 1rem;
    line-height: 1;
}

/* --- Workspace Layout (2 Columns: Work Area + Sidebar) --- */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.75rem;
    align-items: start;
}

.work-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tab Contents Toggle */
.tab-content {
    display: none;
    animation: fadeIn 0.25s ease forwards;
}

.tab-content.active {
    display: block;
}

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

/* --- Dropzone / File Upload Card --- */
.file-drop {
    padding: 2.25rem 2rem;
    text-align: center;
    border: 2px dashed var(--border-card);
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.file-drop:hover, .file-drop.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

[data-theme="light"] .file-drop {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .file-drop:hover, 
[data-theme="light"] .file-drop.dragover {
    border-color: #4f46e5;
    background: #f5f7ff;
}

.drop-icon-wrapper {
    width: 62px;
    height: 62px;
    margin: 0 auto 1.1rem;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(99, 102, 241, 0.25);
    transition: transform var(--transition-fast);
}

[data-theme="light"] .drop-icon-wrapper {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.file-drop:hover .drop-icon-wrapper {
    transform: scale(1.08);
}

.drop-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.drop-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transition: all var(--transition-fast);
}

.drop-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* --- File Preview Queue Cards --- */
.queue-card {
    display: none;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    margin-top: 1.25rem;
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.queue-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.badge-counter {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.clear-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-rose);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    background: var(--accent-rose-light);
}

.file-preview {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

/* Custom Scrollbar */
.file-preview::-webkit-scrollbar {
    width: 6px;
}
.file-preview::-webkit-scrollbar-thumb {
    background: var(--border-card);
    border-radius: var(--radius-pill);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.file-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-card);
}

.file-item.dragging {
    opacity: 0.4;
    border: 2px dashed var(--primary);
}

.file-item.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    flex: 1;
}

.file-order {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 20px;
}

.file-thumb {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.file-thumb-pdf {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border-color: rgba(244, 63, 94, 0.3);
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.file-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.file-size {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-block;
    width: fit-content;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.move-up, .move-down, .remove-file {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--border-subtle);
    transition: all var(--transition-fast);
}

.move-up:hover:not(:disabled), .move-down:hover:not(:disabled) {
    color: var(--text-primary);
    background: var(--primary);
}

.remove-file:hover {
    color: #ffffff;
    background: var(--accent-rose);
}

.move-up:disabled, .move-down:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

[data-theme="light"] .file-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .file-item:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

[data-theme="light"] .file-order {
    color: #475569;
    font-weight: 800;
}

[data-theme="light"] .file-name {
    color: #0f172a;
    font-weight: 700;
}

[data-theme="light"] .file-size {
    color: #475569;
    font-weight: 600;
}

[data-theme="light"] .move-up, 
[data-theme="light"] .move-down, 
[data-theme="light"] .remove-file {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

[data-theme="light"] .move-up:hover:not(:disabled), 
[data-theme="light"] .move-down:hover:not(:disabled) {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

[data-theme="light"] .remove-file:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

[data-theme="light"] .clear-btn {
    color: #e11d48;
}

[data-theme="light"] .clear-btn:hover {
    background: #fff1f2;
}

.reorder-instructions {
    display: none;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

[data-theme="light"] .reorder-instructions {
    color: #475569;
    font-weight: 500;
}

.reorder-instructions.show {
    display: block;
}

.file-size-warning {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--accent-amber-light);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 0.825rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

[data-theme="light"] .file-size-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.file-size-warning.show {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Options & Controls Section --- */
.options-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
}

.options-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

[data-theme="light"] .option-label {
    color: #1e293b;
    font-weight: 700;
}

.radio-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.5rem;
}

.radio-pill-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.radio-pill-item:hover {
    border-color: var(--border-card);
    color: var(--text-primary);
}

.radio-pill-item input[type="radio"] {
    accent-color: var(--primary);
}

.radio-pill-item:has(input[type="radio"]:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="light"] .radio-pill-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .radio-pill-item:hover {
    border-color: #94a3b8;
    color: #0f172a;
    background: #f8fafc;
}

[data-theme="light"] .radio-pill-item input[type="radio"] {
    accent-color: #4f46e5;
}

[data-theme="light"] .radio-pill-item:has(input[type="radio"]:checked) {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #312e81;
    font-weight: 700;
    box-shadow: 0 0 0 1px #4f46e5, 0 2px 6px rgba(79, 70, 229, 0.12);
}

/* --- Quick Preset Chips (CSC & Form Sizes) --- */
.preset-chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.preset-chip {
    padding: 0.4rem 0.8rem;
    font-size: 0.74rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-pill);
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-card);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
}

.preset-chip:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

.preset-chip.active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .preset-chip {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .preset-chip:hover:not(.active) {
    background: #eef2ff;
    color: #4338ca;
    border-color: #818cf8;
}

[data-theme="light"] .preset-chip.active {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.35) !important;
}

.custom-input, .custom-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.custom-input:focus, .custom-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .custom-input,
[data-theme="light"] .custom-select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .custom-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

[data-theme="light"] .custom-input:focus,
[data-theme="light"] .custom-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

[data-theme="light"] .checkbox-label {
    color: #1e293b;
    font-weight: 600;
}

[data-theme="light"] .checkbox-label input[type="checkbox"] {
    accent-color: #4f46e5;
}

/* --- Action & Progress Section --- */
.action-btn-main {
    width: 100%;
    padding: 0.95rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    transition: all var(--transition-fast);
}

.action-btn-main:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.action-btn-main:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

[data-theme="light"] .action-btn-main {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
}

[data-theme="light"] .action-btn-main:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.45);
}

[data-theme="light"] .action-btn-main:disabled {
    background: #e2e8f0 !important;
    color: #64748b !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

/* Progress Container */
.progress {
    display: none;
    margin-top: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-subtle);
}

.progress.show {
    display: block;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-subtle);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #10b981);
    border-radius: var(--radius-pill);
    transition: width 0.3s ease;
}

[data-theme="light"] .progress {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

[data-theme="light"] .progress-bar {
    background: #e2e8f0;
}

/* Size Comparison Card */
.size-comparison {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--accent-emerald-light);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-emerald);
    align-items: center;
    justify-content: space-around;
    text-align: center;
}

[data-theme="light"] .size-comparison {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.size-comparison.show {
    display: flex;
}

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

.size-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
}

[data-theme="light"] .size-label {
    color: #065f46;
    font-weight: 700;
}

.size-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

[data-theme="light"] .size-value {
    color: #064e3b;
    font-weight: 800;
}

.size-reduction {
    color: var(--accent-emerald) !important;
}

/* --- Sidebar Area (Right Column) --- */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sidebar-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.feature-bullet {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.feature-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.feature-desc {
    font-size: 0.775rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

[data-theme="light"] .sidebar-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .feature-bullet {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

[data-theme="light"] .feature-desc {
    color: #475569;
}

/* --- Sponsored Promo Banner (eDistrict Helper) --- */
.sponsored-promo-card {
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, var(--bg-surface) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-xl);
    padding: 1.4rem;
    overflow: hidden;
    transition: all var(--transition-normal);
}

[data-theme="light"] .sponsored-promo-card {
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    border: 1px solid #c7d2fe;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
}

.sponsored-promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #10b981, #06b6d4);
}

.sponsored-promo-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.promo-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary);
    text-transform: uppercase;
}

[data-theme="light"] .promo-badge-tag {
    color: #4338ca;
}

.promo-tag-genuine {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.25);
    letter-spacing: 0.04em;
}

[data-theme="light"] .promo-tag-genuine {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.promo-content-link {
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.promo-product-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.promo-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.promo-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.promo-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-emerald);
}

[data-theme="light"] .promo-subtitle {
    color: #059669;
}

.promo-headline {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.highlight-brand {
    color: #38bdf8;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .highlight-brand {
    color: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

[data-theme="light"] .promo-desc {
    color: #334155;
}

.promo-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0;
}

.promo-features-list li {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="light"] .promo-features-list li {
    color: #334155;
}

.promo-features-list li svg {
    color: var(--accent-emerald);
    flex-shrink: 0;
}

/* 3-Step License Flow Box */
.promo-steps-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
}

[data-theme="light"] .promo-steps-box {
    background: #ffffff;
    border: 1px solid #e0e7ff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.05);
}

.promo-steps-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 0.55rem;
}

[data-theme="light"] .promo-steps-title {
    color: #4338ca;
}

.promo-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.step-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.73rem;
}

.step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.35);
    font-weight: 800;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-theme="light"] .step-num {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.step-txt {
    color: var(--text-secondary);
    line-height: 1.35;
}

[data-theme="light"] .step-txt {
    color: #334155;
}

.step-txt strong {
    color: var(--text-primary);
    font-weight: 700;
}

[data-theme="light"] .step-txt strong {
    color: #0f172a;
}

.promo-cta-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.825rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transition: all var(--transition-fast);
}

[data-theme="light"] .promo-cta-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.sponsored-promo-card:hover .promo-cta-btn {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.promo-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: center;
}

[data-theme="light"] .promo-trust-badge {
    color: #64748b;
}

.promo-trust-badge svg {
    color: var(--accent-emerald);
    flex-shrink: 0;
}

/* --- Information & FAQ Section --- */
.info-section {
    max-width: 1300px;
    margin: 3rem auto 0;
    padding: 0 1.5rem;
}

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

.info-feature-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
}

[data-theme="light"] .info-feature-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.info-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Professional SaaS Site Footer --- */
.site-footer {
    margin-top: auto;
    background: var(--bg-surface-solid);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    padding-top: 3.5rem;
    padding-bottom: 2rem;
}

.footer-top-accent {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.6;
}

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

.footer-main-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
}

.footer-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: block;
    line-height: 1.2;
}

.footer-bio {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 380px;
}

.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
}

.footer-social-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.social-lead {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-icon-btn:hover {
    color: #ffffff;
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-pill);
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.footer-link-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

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

/* Footer Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-copyright-text strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
}

/* Responsive Footer Grid */
@media (max-width: 992px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .footer-col-brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-col-brand {
        grid-column: span 1;
    }
    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* --- Floating Toast Notification --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: slideIn 0.3s ease;
}

.toast.toast-success {
    border-left: 4px solid var(--accent-emerald);
}

.toast.toast-error {
    border-left: 4px solid var(--accent-rose);
}

.toast.toast-info {
    border-left: 4px solid var(--primary);
}

@keyframes slideIn {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-area {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .header-nav {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-top: 0.35rem;
        border-top: 1px solid var(--border-subtle);
    }
    .header-nav::-webkit-scrollbar {
        display: none;
    }
    .header-nav .nav-link {
        font-size: 0.78rem;
        padding: 0.25rem 0.65rem;
        border-radius: var(--radius-pill);
        background: rgba(255, 255, 255, 0.05);
        white-space: nowrap;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .tools-nav-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.25rem 0.5rem;
        justify-content: flex-start;
    }
    .tools-nav-wrapper::-webkit-scrollbar {
        display: none;
    }
    .tools-nav-pill-group {
        flex-wrap: nowrap;
        width: max-content;
        margin: 0 auto;
        border-radius: var(--radius-pill);
        padding: 0.35rem;
    }
    .tab-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    .file-drop {
        padding: 2rem 1rem;
    }
    .drop-title {
        font-size: 1.1rem;
    }
    .radio-pills {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .content-card {
        padding: 2rem 1.25rem;
    }
    .content-page-title {
        font-size: 1.75rem;
    }
}

/* --- Static & Legal Pages (About, Contact, Privacy, Terms) --- */
.content-container {
    max-width: 900px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
    flex: 1;
    width: 100%;
}

.content-card {
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .content-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.05);
}

.content-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .content-header {
    border-bottom: 1px solid #e2e8f0;
}

.content-page-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.content-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.content-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 0.85rem;
}

.content-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}

.content-body p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.content-body ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.content-body strong {
    color: var(--text-primary);
}

.content-highlight-box {
    background: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    color: var(--text-primary);
}

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

.feature-box-static {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.feature-box-static .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-box-static h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-box-static p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.contact-card-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.contact-icon-large {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary-gradient);
    color: #ffffff !important;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
    transition: all var(--transition-fast);
    text-decoration: none !important;
}

.contact-email-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
}

.back-to-tools-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.back-to-tools-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-3px);
}

