/* 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: 100x;
    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;
    text-align: center;
    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-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: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    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);
}

/* 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;
    opacity: 0;
    transform: translateY(18px);
    animation: floatIn 0.6s ease forwards;
}

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

.features-grid .feature-card:nth-child(1) { animation-delay: 0.05s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.12s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.19s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.26s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.33s; }
.features-grid .feature-card:nth-child(6) { animation-delay: 0.40s; }
.features-grid .feature-card:nth-child(7) { animation-delay: 0.47s; }
.features-grid .feature-card:nth-child(8) { animation-delay: 0.54s; }

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

.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;
}

/* 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;
}

.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) {
    .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-buttons {
        flex-direction: column;
    }

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

    .features-grid,
    .pricing-grid,
    .stats-grid {
        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;
    }

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

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

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