/* ============================================================
   ImageLevate by Axora Partners — CSS
   Dark/Light theme, responsive layout, modern UI components
   ============================================================ */

/* ---- CSS Variables (Themes) ---- */
:root {
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 1100px;
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.25s ease;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1117;
    --bg-card: #1a1d27;
    --bg-card-hover: #22263a;
    --bg-input: #252836;
    --text: #e4e6eb;
    --text-secondary: #9ca3af;
    --border: #2d3148;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --dropzone-bg: #1e2130;
    --dropzone-border: #3b3f5c;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafb;
    --bg-input: #f1f3f5;
    --text: #111827;
    --text-secondary: #4b5563;
    --border: #e5e7eb;
    --primary: #4f46e5;
    --primary-hover: #6366f1;
    --primary-glow: rgba(79, 70, 229, 0.15);
    --success: #15803d;
    --warning: #b45309;
    --error: #dc2626;
    --dropzone-bg: #f9fafb;
    --dropzone-border: #d1d5db;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ---- Navbar ---- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo { font-size: 1.5rem; }

.nav-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
}
.nav-link.active { color: var(--primary); }

.nav-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--bg-input);
    color: var(--text-secondary);
}
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-error   { background: rgba(239,68,68,0.15); color: var(--error); }

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}
.theme-toggle:hover { background: var(--bg-input); }

/* ---- Container ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 0 20px var(--primary-glow); }

.btn-secondary {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card-hover); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-small { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-large { padding: 0.85rem 2.5rem; font-size: 1.1rem; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- Dropzone ---- */
.dropzone {
    border: 2px dashed var(--dropzone-border);
    border-radius: var(--radius);
    background: var(--dropzone-bg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.dropzone:hover, .dropzone.drag-over {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.dropzone-icon { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.dropzone-text { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.25rem; }
.dropzone-hint { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }

/* ---- Upload Preview ---- */
.upload-preview { margin-top: 1.5rem; }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

.upload-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-count { color: var(--text-secondary); font-size: 0.9rem; }

/* ---- Options ---- */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.option-group {
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.option-group h3 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input, .radio-label input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.sub-options {
    padding-left: 1.5rem;
    margin-top: 0.25rem;
}

/* Sliders */
.slider-group {
    margin-bottom: 0.75rem;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.slider-group input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

/* ---- Platforms ---- */
.platform-section { margin-bottom: 1.5rem; }

.platform-section h3 small {
    font-weight: 400;
    color: var(--text-secondary);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.platform-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-input);
}

.platform-card:hover { border-color: var(--primary); }

.platform-card input:checked ~ .platform-name {
    color: var(--primary);
    font-weight: 700;
}

.platform-name { font-size: 0.95rem; font-weight: 600; }
.platform-detail { font-size: 0.75rem; color: var(--text-secondary); }

/* Locked platform (plan restriction) */
.platform-card.platform-locked {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}
.platform-lock-badge {
    display: none;
    font-size: 0.65rem;
    color: var(--warning);
    font-weight: 600;
    margin-top: 2px;
}
.platform-card.platform-locked .platform-lock-badge {
    display: inline-block;
}

/* ---- Process Button ---- */
.process-actions {
    text-align: center;
    margin-top: 1rem;
}

/* ---- Progress ---- */
.progress-container { max-width: 600px; margin: 0 auto; }

.progress-bar {
    height: 12px;
    background: var(--bg-input);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #a78bfa);
    border-radius: 50px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.progress-detail {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ---- Results Page ---- */
.results-header {
    text-align: center;
    padding: 1.5rem 0;
}

.results-header h1 { font-size: 1.8rem; }
.job-info { color: var(--text-secondary); margin: 0.5rem 0 1rem; }

.header-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.summary-stat {
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Result cards */
.result-card { margin-bottom: 1.5rem; }

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-header h3 { font-size: 1.1rem; }
.result-time { color: var(--text-secondary); font-size: 0.85rem; }

.error-msg {
    color: var(--error);
    background: rgba(239,68,68,0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.comparison-image h4 {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.comparison-image img {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
}

.compliance-section, .download-section {
    margin-top: 1rem;
}

.compliance-section h4, .download-section h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-badge {
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ---- Error Card ---- */
.error-card {
    text-align: center;
    color: var(--error);
}

/* ---- Footer ---- */
/* ---- Logo in Navbar ---- */
.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 2rem 2rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.footer-brand strong {
    color: var(--text);
    font-size: 0.95rem;
}
.footer-by {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.82rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-copy {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ---- Static Pages (About, Contact, Terms, Privacy) ---- */
.static-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}
.page-hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
}
.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.text-gradient {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto;
}
.page-section {
    margin-bottom: 1.5rem;
    padding: 2rem;
}
.page-section h2 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
}
.page-section h2:first-child { margin-top: 0; }
.page-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.page-section ul {
    color: var(--text-secondary);
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* Company details */
.company-details {
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
.detail-row {
    display: flex;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
    font-weight: 600;
    min-width: 100px;
    color: var(--text);
    font-size: 0.85rem;
}

/* About features grid */
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}
.about-feature {
    background: var(--bg-input);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.about-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.about-feature h3 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--text);
}
.about-feature p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Page CTA */
.page-cta {
    text-align: center;
    padding: 2.5rem 1rem;
}
.page-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.page-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
}
.contact-form .form-group {
    margin-bottom: 1rem;
}
.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.form-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
textarea.form-input { resize: vertical; }

/* Dimension & watermark inputs */
.dim-input {
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color var(--transition);
}
.dim-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
select.dim-input option {
    background: var(--bg-card);
    color: var(--text);
}

.contact-result {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}
.contact-success {
    background: rgba(34,197,94,0.1);
    color: var(--success);
    border: 1px solid var(--success);
}
.contact-error {
    background: rgba(239,68,68,0.1);
    color: var(--error);
    border: 1px solid var(--error);
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact-icon {
    font-size: 1.5rem;
    min-width: 36px;
    text-align: center;
}
.contact-method h3 {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    color: var(--text);
}
.contact-method p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.contact-hours h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}
.contact-hours p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Legal pages */
.legal-page .page-section h2 {
    font-size: 1.1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.legal-page .page-section h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.legal-page .page-section h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin: 1rem 0 0.3rem;
}

/* ---- Subscription Management (Account page) ---- */
.sub-info { margin-top: 0.5rem; }
.sub-detail { margin-bottom: 1rem; }
.sub-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.sub-label {
    font-weight: 600;
    color: var(--text-secondary);
}
.sub-badge {
    font-size: 0.78rem;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 600;
}
.sub-badge-active {
    background: rgba(34,197,94,0.15);
    color: var(--success);
}
.sub-badge-warning {
    background: rgba(245,158,11,0.15);
    color: var(--warning);
}
.sub-note {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0.75rem 0;
}
.btn-danger-outline {
    color: var(--error) !important;
    border-color: var(--error) !important;
}
.btn-danger-outline:hover {
    background: var(--error) !important;
    color: #fff !important;
}

/* ---- Image Gallery ---- */
.gallery-stats {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.gallery-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}
.gallery-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(99,102,241,0.12);
}
.gallery-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
}
[data-theme="dark"] .gallery-img-wrap {
    background: #1a1d27;
}
.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-card-info {
    padding: 0.5rem 0.75rem;
}
.gallery-filename {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gallery-meta {
    font-size: 0.72rem;
    color: var(--text-secondary);
}
.gallery-card-actions {
    padding: 0 0.75rem 0.75rem;
    display: flex;
    gap: 0.5rem;
}
.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .navbar { padding: 0.5rem 1rem; }
    .container { padding: 1rem; }
    .hero h1 { font-size: 1.5rem; }
    .options-grid { grid-template-columns: 1fr; }
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
    .comparison-container { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 1.6rem; }
    .footer-links { gap: 1rem; }
    .nav-links { gap: 0.5rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .platform-grid { grid-template-columns: 1fr; }
    .header-actions { flex-direction: column; }
    .nav-link { font-size: 0.8rem; }
}

/* ---- Post-Enhancement Adjustment Panel ---- */
.adjust-panel {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.adjust-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--bg-input);
    cursor: pointer;
    user-select: none;
}

.adjust-header h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
}

.adjust-toggle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.adjust-body {
    padding: 1rem;
}

.adjust-sliders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.adjust-slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.adjust-slider-group input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

/* ============================================================
   Auth, Pricing, Account Styles
   ============================================================ */

/* ---- Navbar Auth ---- */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.nav-user-link { text-decoration: none; }
.nav-user-link:hover .nav-avatar { background: var(--primary-hover); }

.badge-plan {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

.nav-usage-hint {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* ---- Auth Page ---- */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem 2rem 1.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: -2px;
    transition: var(--transition);
    outline: none;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.btn-full { width: 100%; justify-content: center; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn-google {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
    gap: 0.6rem;
}

.btn-google:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-secondary);
}

.auth-message {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.msg-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.msg-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.auth-footer-text {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 1.25rem;
    line-height: 1.5;
}

/* ---- Account Page ---- */
.account-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.account-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.plan-info-card {
    background: var(--bg-input);
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.plan-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.plan-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}

.plan-badge-large {
    color: var(--primary);
}

.usage-bar {
    height: 6px;
    background: var(--bg-card);
    border-radius: 50px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #a78bfa);
    border-radius: 50px;
    transition: width 0.3s;
}

.plan-features {
    margin-top: 1rem;
}

.plan-features h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.upgrade-cta {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    text-align: center;
}

.upgrade-cta p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.account-actions {
    display: flex;
    gap: 0.75rem;
}

/* ---- Pricing Page ---- */
.pricing-page { max-width: 1000px; margin: 0 auto; }

.pricing-hero {
    text-align: center;
    padding: 1.5rem 0 2rem;
}

.pricing-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.currency-toggle {
    display: inline-flex;
    gap: 0;
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
}

.currency-btn {
    padding: 0.4rem 1.25rem;
    border: none;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.currency-btn.active {
    background: var(--primary);
    color: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.pricing-popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.pricing-current {
    border-color: var(--success);
}

.popular-badge, .current-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popular-badge {
    background: var(--primary);
    color: #fff;
}

.current-badge {
    background: var(--success);
    color: #fff;
}

.pricing-plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.pricing-price small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    flex: 1;
}

.pricing-features li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pricing-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.plat-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.pricing-faq { margin-top: 1rem; }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.faq-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.faq-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ---- Payment Result ---- */
.payment-result {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.payment-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.payment-success .payment-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.payment-result h1 {
    margin-bottom: 0.5rem;
}

.payment-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ---- Plan Limit Alert ---- */
.plan-limit-alert {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.plan-limit-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--warning);
}

.plan-limit-actions {
    display: flex;
    gap: 0.5rem;
}

.text-secondary { color: var(--text-secondary); }

/* ---- Responsive Auth ---- */
@media (max-width: 480px) {
    .auth-card { padding: 1.5rem 1.25rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .plan-info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Homepage Landing Section (v2)
   ============================================================ */

/* ---- Hero Landing ---- */
.hero-landing {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--primary);
    background: var(--primary-glow);
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
}

.hero-gradient {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    max-width: 640px;
    margin: 0 auto 1.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.btn-glow {
    box-shadow: 0 0 24px var(--primary-glow), 0 4px 12px rgba(0,0,0,0.2);
}

.btn-glow:hover {
    box-shadow: 0 0 32px rgba(99, 102, 241, 0.4), 0 6px 16px rgba(0,0,0,0.25);
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ---- Stats Strip ---- */
.stats-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ---- How It Works ---- */
.how-it-works {
    margin-bottom: 2.5rem;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    flex: 1;
    max-width: 260px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* ---- Features Grid v2 ---- */
.features-section {
    margin-bottom: 2.5rem;
}

.feature-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card-v2:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon-blue   { background: rgba(99,102,241,0.15); color: #4f46e5; }
.feature-icon-yellow { background: rgba(245,158,11,0.15); color: #b45309; }
.feature-icon-green  { background: rgba(34,197,94,0.15);  color: #15803d; }
.feature-icon-purple { background: rgba(167,139,250,0.15);color: #7c3aed; }
.feature-icon-red    { background: rgba(239,68,68,0.15);  color: #dc2626; }
.feature-icon-cyan   { background: rgba(34,211,238,0.15); color: #0891b2; }

[data-theme="dark"] .feature-icon-blue   { color: #818cf8; }
[data-theme="dark"] .feature-icon-yellow { color: #fbbf24; }
[data-theme="dark"] .feature-icon-green  { color: #4ade80; }
[data-theme="dark"] .feature-icon-purple { color: #a78bfa; }
[data-theme="dark"] .feature-icon-red    { color: #f87171; }
[data-theme="dark"] .feature-icon-cyan   { color: #22d3ee; }

.feature-card-v2 h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.feature-card-v2 p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ---- Plans CTA Section ---- */
.plans-cta-section {
    margin-bottom: 1.5rem;
}

.plans-cta-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.plans-cta-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.plans-cta-desc {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

/* Mini plans (shared) */
.cta-plans-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.mini-plan {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 0.75rem;
    position: relative;
    text-align: center;
    transition: var(--transition);
}

.mini-plan:hover { border-color: var(--primary); }

.mini-plan-popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.mini-plan-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mini-plan-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.mini-plan-price {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.mini-plan-price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.mini-plan-detail {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Landing Responsive ---- */
@media (max-width: 768px) {
    .hero-title { font-size: 1.75rem; }
    .hero-desc { font-size: 0.95rem; }
    .stats-strip { flex-wrap: wrap; gap: 1rem; }
    .stat-divider { display: none; }
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .feature-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .cta-plans-mini { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.4rem; }
    .feature-grid-6 { grid-template-columns: 1fr; }
    .cta-plans-mini { grid-template-columns: repeat(2, 1fr); }
}

.adjust-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.adjust-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}
