/* XT3 Storage - CSS Global (Modern Style) */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    --bg: #ffffff;
    --bg-secondary: #f7f9fb;
    --bg-tertiary: #eef2f6;
    --bg-dark: #0b1220;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.18);

    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Landing page only */
.landing-page {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 40%, #fefce8 100%);
}

.landing-page .hero {
    background: radial-gradient(circle at top, rgba(249, 115, 22, 0.16), transparent 60%),
                linear-gradient(180deg, #fff7ed 0%, #ffffff 55%, #fefce8 100%);
}

.landing-page .hero::before {
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(234, 179, 8, 0.12) 0%, transparent 50%);
}

.landing-page .hero h1 span {
    background: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-page .feature-card {
    border: 1px solid rgba(249, 115, 22, 0.12);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.landing-page .feature-icon {
    background: linear-gradient(135deg, #ffedd5 0%, #fef9c3 100%);
}

.landing-page .pricing {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 65%, #fefce8 100%);
}

.landing-page .pricing-card.featured {
    border-color: #f97316;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.18);
}

.landing-page .pricing-card.featured::before {
    background: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3);
}

.landing-page .docs {
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

h1, h2, h3, .section-title, .pricing-name, .card-title {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
}

.logo-img {
    width: 100px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
    background-color: #121721;
}

.logo-icon {
    background: var(--primary-gradient);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.logo-text {
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

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

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.nav-user span {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-dark);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: var(--warning);
    color: #1f2937;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

select.form-control {
    cursor: pointer;
}

/* Cards */
.card {
    background: var(--bg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* Alerts */
.alert {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-danger, .alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 86px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    pointer-events: none;
}

.toast {
    min-width: 240px;
    max-width: 360px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    transform: translateY(-6px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: auto;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-message {
    font-size: 14px;
    font-weight: 600;
}

.toast-success {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: #f0fdf4;
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #1f2937;
}

.toast-danger,
.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #fff7ed;
}

.toast-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
    color: #f0f9ff;
}

/* Confirm modal */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    padding: 24px;
}

.confirm-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.confirm-modal {
    width: min(92vw, 420px);
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    padding: 24px;
}

.confirm-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.confirm-message {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-tertiary);
}

.table td {
    font-size: 14px;
}

.table tbody tr {
    transition: background 0.15s ease;
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

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

/* Hero Section */
.hero {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #ecfeff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.10) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(34, 211, 238, 0.10) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 38px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 0 34px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.hero-preview {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(249, 115, 22, 0.2);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(2, 6, 23, 0.95) 100%);
    box-shadow: 0 30px 50px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

.hero-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    font-size: 13px;
}

.status-online {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(22, 163, 74, 0.2);
    color: #86efac;
}

.hero-code {
    margin: 0;
    border: 0;
    border-radius: 0;
    min-height: 320px;
    background: transparent;
}

.hero-preview-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 12px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #94a3b8;
    font-size: 12px;
}

.hero-trust {
    margin-top: 26px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-trust-item {
    border: 1px solid rgba(249, 115, 22, 0.2);
    background: rgba(255, 255, 255, 0.76);
    border-radius: var(--radius-lg);
    padding: 14px;
}

.hero-trust-item strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.hero-trust-item span {
    color: var(--text-secondary);
    font-size: 12px;
}

.landing-integrations {
    padding: 0 0 80px;
}

.integrations-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.integration-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.integration-chips span {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

/* Features */
.features {
    padding: 100px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0e6ff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ecfeff 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

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

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, #ffffff 0%, #f0fbff 100%);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
    content: 'Mais Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.pricing-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.pricing-price {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.pricing-price strong {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 16px;
}

.pricing-card .btn {
    width: 100%;
}

/* Docs */
.docs {
    padding: 100px 0;
    background: var(--bg);
}

.docs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.docs-content > div {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.docs-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px;
    border-radius: var(--radius-lg);
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    overflow-x: auto;
    line-height: 1.6;
    white-space: pre;
    border: 1px solid #1e293b;
}

.code-block .comment {
    color: #64748b;
}

.code-block .string {
    color: #67e8f9;
}

.code-block .keyword {
    color: #38bdf8;
}

/* Docs page */
.docs-page {
    background:
        radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(2, 132, 199, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 32%, #f7fafc 100%);
}

.docs-page .footer {
    margin-top: 40px;
}

.docs-page [id] {
    scroll-margin-top: 110px;
}

.docs-page-hero {
    padding-top: 78px;
    padding-bottom: 28px;
}

.docs-hero-wrap {
    text-align: center;
    max-width: 860px;
}

.docs-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0c4a6e;
    background: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
}

.docs-hero-cards {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.docs-mini-card {
    border: 1px solid #dbeafe;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    padding: 18px;
    text-align: left;
}

.docs-mini-card strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.docs-mini-card code,
.docs-mini-card p {
    font-size: 14px;
    color: var(--text);
    margin: 0;
}

.docs-page-content {
    padding-top: 20px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    max-width: 1160px;
}

.docs-sidebar {
    position: sticky;
    top: 96px;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    padding: 20px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.docs-sidebar h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #0f172a;
}

.docs-sidebar nav {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.docs-sidebar nav a {
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 8px 11px;
    transition: all 0.2s ease;
}

.docs-sidebar nav a:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0c4a6e;
}

.docs-sidebar nav a.active {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0c4a6e;
}

.docs-sidebar .btn {
    width: 100%;
}

.docs-stack {
    display: grid;
    gap: 20px;
}

.docs-card {
    border: 1px solid #dbeafe;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
    padding: 28px;
    scroll-margin-top: 110px;
}

.docs-card header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.docs-card header h2 {
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.docs-card header span {
    color: #075985;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.docs-card p {
    color: #334155;
    font-size: 16px;
    line-height: 1.72;
}

.docs-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 9px;
    color: #334155;
    line-height: 1.65;
}

.docs-list.compact {
    gap: 6px;
    font-size: 14px;
}

.docs-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0;
}

.code-head {
    margin-top: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.code-head strong {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.docs-card .code-block {
    margin-bottom: 4px;
    font-size: 13.5px;
    line-height: 1.72;
    background: #0b1324;
    border: 1px solid #1e293b;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.status-card {
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border);
    background: #fff;
}

.status-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.status-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.status-card.warn {
    background: #fffbeb;
    border-color: #fcd34d;
    box-shadow: inset 3px 0 0 #f59e0b;
}

.status-card.danger {
    background: #fef2f2;
    border-color: #fca5a5;
    box-shadow: inset 3px 0 0 #ef4444;
}

.status-card.info {
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: inset 3px 0 0 #3b82f6;
}

.status-card.success {
    background: #ecfdf5;
    border-color: #86efac;
    box-shadow: inset 3px 0 0 #10b981;
}

.use-cases {
    padding: 20px 0 100px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.use-case-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.use-case-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.use-case-card p {
    color: var(--text-secondary);
}

.faq {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.faq-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: start;
}

.faq-intro h2 {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.faq-intro p {
    color: var(--text-secondary);
    font-size: 17px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    padding: 18px 48px 18px 18px;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--text-muted);
}

.faq-item.is-open .faq-question::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
}

.faq-answer p {
    padding: 0 18px 18px;
    color: var(--text-secondary);
}

.landing-cta {
    padding: 10px 0 30px;
}

.landing-cta-box {
    border: 1px solid rgba(249, 115, 22, 0.24);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff7ed 0%, #fefce8 100%);
    box-shadow: 0 20px 45px rgba(249, 115, 22, 0.14);
    padding: 52px 28px;
    text-align: center;
}

.landing-cta-box h2 {
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.landing-cta-box p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 26px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard */
.dashboard {
    padding: 48px 0;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef6fb 100%);
    min-height: calc(100vh - 64px);
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(-3px);
}

.stat-card h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-card .subtext {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* API Keys */
.api-key-box {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.api-key-box label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.api-key-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-key-value code {
    flex: 1;
    background: var(--bg);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    word-break: break-all;
    border: 1px solid var(--border);
}

/* Upload panel */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upload-drop {
    position: relative;
    border: 1.5px dashed rgba(15, 23, 42, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.upload-drop:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.upload-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-drop label {
    font-weight: 600;
    color: var(--text);
    display: block;
}

.upload-meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.upload-options {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.upload-folder-panel {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.upload-folder-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text);
}

.upload-folder-header small {
    font-weight: 500;
    color: var(--text-muted);
}

.upload-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.upload-folder-grid .form-group {
    margin: 0;
}

.upload-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-status {
    min-height: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-status.success {
    color: #0f766e;
    font-weight: 600;
}

.upload-status.error {
    color: #b91c1c;
    font-weight: 600;
}

.upload-grid {
    align-items: start;
}

.upload-layout {
    max-width: 900px;
    margin: 0 auto;
}

.upload-card {
    padding: 32px;
}

.upload-preview {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    background: radial-gradient(circle at top, rgba(14, 165, 233, 0.12), transparent 55%),
                linear-gradient(180deg, #ffffff 0%, #f1f8ff 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.upload-preview-centered {
    margin-bottom: 28px;
}

.upload-preview img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    object-fit: contain;
}

.upload-preview .preview-meta {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.upload-preview-placeholder {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-preview-placeholder::before {
    content: 'Preview';
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.4);
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-progress-bar {
    position: relative;
    flex: 1;
    height: 12px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.upload-progress-bar span {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0ea5e9 0%, #22d3ee 100%);
    transition: width 0.2s ease;
}

.upload-progress-text {
    min-width: 48px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

/* Progress bar */
.progress {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.progress-bar.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.progress-bar.danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

/* Usage */
.usage-item {
    margin-bottom: 20px;
}

.usage-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.usage-label {
    font-weight: 500;
}

.usage-value {
    color: var(--text-secondary);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.badge-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.badge-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.badge-info {
    background: linear-gradient(135deg, var(--primary-light) 0%, #bae6fd 100%);
    color: var(--primary-dark);
}

/* Cloud Section */
.cloud-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.cloud-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cloud-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.cloud-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cloud-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cloud-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.cloud-feature:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.cloud-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.cloud-feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cloud-feature-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.cloud-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cloud-visual-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.cloud-visual-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cloud-visual-card:first-child {
    grid-column: span 2;
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.cloud-visual-card:first-child h3,
.cloud-visual-card:first-child p {
    color: white;
}

.cloud-visual-card h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cloud-visual-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Auth pages */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg-secondary);
}

.auth-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.auth-box h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.auth-box .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-box .form-group:last-of-type {
    margin-bottom: 24px;
}

.auth-box .btn {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

/* Grid layout */
.grid {
    display: grid;
    gap: 24px;
}

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

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

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero p {
        margin: 0 auto 34px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr 1fr;
    }

    .faq-wrap {
        grid-template-columns: 1fr;
    }

    .docs-hero-cards {
        grid-template-columns: 1fr;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
        top: auto;
    }

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

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

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

@media (max-width: 768px) {
    .toast-container {
        top: 76px;
        right: 12px;
        left: 12px;
        align-items: center;
    }

    .toast {
        width: min(92vw, 360px);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-user {
        border-left: none;
        padding-left: 0;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-trust {
        gap: 10px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid,
    .pricing-grid,
    .stats-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .docs-grid-2 {
        grid-template-columns: 1fr;
    }

    .docs-content {
        grid-template-columns: 1fr;
    }

    .cloud-grid {
        grid-template-columns: 1fr;
    }

    .cloud-visual {
        grid-template-columns: 1fr;
    }

    .cloud-visual-card:first-child {
        grid-column: span 1;
    }

    .cloud-content h2 {
        font-size: 28px;
    }

    .faq-intro h2,
    .landing-cta-box h2 {
        font-size: 30px;
    }

    .docs-card header h2 {
        font-size: 24px;
    }

    .docs-page-hero {
        padding-top: 56px;
        padding-bottom: 18px;
    }

    .docs-card {
        padding: 20px;
    }

    .landing-cta-box p {
        font-size: 16px;
    }

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

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

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

/* === Upload redesign === */

/* Drop zone inner layout */
.upload-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.upload-drop-icon {
    width: 68px;
    height: 68px;
    background: var(--primary-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 6px;
    transition: transform 0.2s, background 0.2s;
}

.upload-drop:hover .upload-drop-icon {
    transform: translateY(-3px);
}

.upload-drop.is-dragging {
    border-color: var(--primary);
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.upload-drop.is-dragging .upload-drop-icon {
    transform: scale(1.1);
    background: #bae6fd;
}

.upload-drop.has-file {
    border-color: var(--success);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.upload-drop.has-file .upload-drop-icon {
    background: #dcfce7;
    color: var(--success);
}

.upload-drop-label {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
    pointer-events: auto;
    margin: 0;
}

.upload-drop-cta {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.upload-drop-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.upload-drop .upload-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 500;
}

/* Visibility toggle row */
.upload-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 13px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.upload-options-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Toggle switch */
.upload-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.upload-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.toggle-track {
    position: relative;
    width: 42px;
    height: 24px;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-dark);
    border-radius: 12px;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s;
}

.upload-toggle input:checked + .toggle-track {
    background: var(--primary);
    border-color: var(--primary);
}

.upload-toggle input:checked + .toggle-track .toggle-thumb {
    transform: translateX(18px);
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Folder panel – override previous styles */
.upload-folder-panel {
    padding: 0;
    box-shadow: none;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
}

.upload-folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    font-weight: 400;
}

.upload-folder-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.upload-folder-title svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Segmented tab control */
.folder-tabs {
    display: flex;
    gap: 3px;
    background: var(--bg-tertiary);
    padding: 3px;
    border-radius: 8px;
}

.folder-tab-btn {
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

.folder-tab-btn.active {
    background: var(--bg);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.folder-tab-btn:hover:not(.active) {
    color: var(--text);
}

/* Tab panes */
.folder-tab-pane {
    display: none;
    padding: 16px 18px;
}

.folder-tab-pane.active {
    display: block;
}

/* Folder chips */
.folder-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.folder-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.folder-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.folder-chip svg {
    color: inherit;
    flex-shrink: 0;
    opacity: 0.7;
}

.folder-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.folder-chip.is-selected {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* Accessibility utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Folder name live preview */
.folder-name-preview {
    color: var(--primary-dark);
    font-weight: 500;
    background: var(--primary-light);
    border-radius: 6px;
    padding: 4px 10px;
    display: inline-block;
}

/* Submit button – full width */
.upload-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    gap: 10px;
    border-radius: var(--radius-lg);
    justify-content: center;
}
