/* CSS Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-dark: #07070a;
    --bg-card: rgba(13, 13, 18, 0.65);
    --bg-input: rgba(18, 18, 24, 0.8);
    --accent-violet: hsl(262, 85%, 58%);
    --accent-fuchsia: hsl(316, 85%, 54%);
    --accent-cyan: hsl(190, 90%, 50%);
    --text-primary: hsl(0, 0%, 96%);
    --text-secondary: hsl(240, 8%, 70%);
    --text-muted: hsl(240, 5%, 45%);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-inter);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background glowing meshes */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 15s infinite alternate;
}

.bg-glow-right {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: 300px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 12s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.15); }
}

/* Typography & Headers */
h1, h2, h3, h4 {
    font-family: var(--font-outfit);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-violet) 70%, var(--accent-fuchsia) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    background: rgba(7, 7, 10, 0.7);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-fuchsia));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

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

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    z-index: 1000;
}

.lang-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 12px 5px 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-inter);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { letter-spacing: 0.05em; }

.lang-chevron {
    width: 12px;
    height: 12px;
    stroke: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.lang-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #0f172a;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    min-width: 200px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(139,92,246,0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.lang-menu-inner {
    padding: 8px;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,0.3) transparent;
}

.lang-menu-group { margin-bottom: 6px; }

.lang-menu-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(139, 92, 246, 0.7);
    padding: 4px 10px 2px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: var(--font-inter);
    font-weight: 500;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #fff;
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(217,70,239,0.15));
    color: #fff;
}

.lang-option-code {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(139,92,246,0.7);
    background: rgba(139,92,246,0.12);
    padding: 1px 5px;
    border-radius: 4px;
}

/* Button Classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    font-family: var(--font-inter);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-fuchsia));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    padding: 24px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-hover);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px 24px;
    position: relative;
}

.hero-tag {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    max-width: 800px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Main Container Routing views */
.view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: none;
}

.view-container.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Features Component */
.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Live Demo Workspace */
.demo-workspace {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

@media (max-width: 900px) {
    .demo-workspace {
        grid-template-columns: 1fr;
    }
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-area:hover {
    border-color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.03);
}

.preview-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    display: block;
}

.box-overlay {
    position: absolute;
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 10px #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    pointer-events: none;
    font-family: var(--font-mono);
}

.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.censor-options {
    display: flex;
    gap: 12px;
}

.censor-mode-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
}

.censor-mode-btn.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-violet);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* Sample Images grid */
.sample-presets {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.sample-preset-card {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.sample-preset-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sample-preset-card:hover {
    transform: scale(1.05);
}

.sample-preset-card.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.sample-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.65rem;
    text-align: center;
    padding: 2px 0;
}

/* Code Playground and JSON blocks */
.code-header {
    background: #111116;
    padding: 10px 16px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.code-tabs {
    display: flex;
    gap: 8px;
}

.code-tab {
    padding: 4px 10px;
    font-size: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-mono);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.code-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.code-content {
    background: #0d0d12;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
    color: #e2e8f0;
}

/* Interactive Pricing */
.pricing-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    width: fit-content;
    margin: 0 auto 32px auto;
    padding: 4px;
}

.pricing-toggle-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 18px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.pricing-toggle-btn.active {
    background: var(--accent-violet);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.pricing-card.premium {
    border-color: var(--accent-violet);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.2);
}

.pricing-card.active-plan {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.25);
    position: relative;
}

.pricing-card.active-plan::before {
    content: "✓ Current Plan";
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--accent-cyan);
    color: #0a0a0f;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}


.price {
    font-size: 2.5rem;
    font-family: var(--font-outfit);
    font-weight: 800;
    margin: 16px 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: "✓";
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Auth Cards */
.auth-container {
    max-width: 420px;
    margin: 60px auto 0 auto;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: var(--font-inter);
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: var(--font-outfit);
    font-size: 1.05rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: white;
    border-bottom-color: var(--accent-violet);
}

/* Dashboard View styling */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

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

.stat-card-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-value {
    font-size: 2rem;
    font-family: var(--font-outfit);
    font-weight: 800;
    margin-top: 8px;
    background: linear-gradient(135deg, white, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.key-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.key-actions {
    display: flex;
    gap: 8px;
}

/* Custom SVG chart styling */
.svg-chart-container {
    width: 100%;
    height: 200px;
    margin-top: 16px;
    position: relative;
}

.svg-chart {
    width: 100%;
    height: 100%;
}

.chart-line {
    fill: none;
    stroke: var(--accent-violet);
    stroke-width: 3;
    stroke-linecap: round;
    animation: drawLine 2s ease-out forwards;
}

.chart-area {
    fill: url(#chart-gradient);
}

.chart-grid-line {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

.chart-dot {
    fill: var(--accent-cyan);
    stroke: var(--bg-dark);
    stroke-width: 2;
    transition: var(--transition-smooth);
}

.chart-dot:hover {
    r: 6;
}

/* Documentation Styling */
.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-nav-link {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.docs-nav-link:hover, .docs-nav-link.active {
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

.docs-content {
    max-width: 800px;
}

.docs-section {
    margin-bottom: 48px;
}

.docs-section h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.docs-table th, .docs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.docs-table th {
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--font-outfit);
    font-weight: 600;
}

.docs-table code {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

/* Notification banner */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(13, 13, 18, 0.95);
    border: 1px solid var(--accent-violet);
    box-shadow: var(--shadow-glow);
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    z-index: 2000;
    display: none;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.notification.show {
    display: block;
}

.notification.success {
    border-color: var(--accent-cyan);
}

.notification.error {
    border-color: #ef4444;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.9rem;
}

.logs-table th, .logs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.logs-table th {
    background: rgba(255, 255, 255, 0.01);
}

/* Checkout Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 4, 6, 0.75);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-card {
    max-width: 440px;
    width: 90%;
    padding: 30px;
    position: relative;
    border-radius: 16px;
    animation: zoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    color: white;
}

.checkout-plan-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.checkout-plan-summary p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.checkout-plan-summary h4 {
    font-size: 1.15rem;
    margin: 4px 0;
}

.checkout-price {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 1.05rem;
}

.checkout-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 20px;
    text-align: center;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Checkout sandbox test-mode banner ─────────────────────────────────── */
.checkout-sandbox-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 0.8rem;
    color: #fbbf24;
    line-height: 1.4;
}

.checkout-sandbox-banner i {
    font-size: 1rem;
    flex-shrink: 0;
}

.checkout-sandbox-banner code {
    background: rgba(245, 158, 11, 0.15);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #fde68a;
}

/* ── Form field error state ─────────────────────────────────────────────── */
.form-input.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ── Downgrade confirmation modal ───────────────────────────────────────── */
.downgrade-confirm-body {
    text-align: center;
    padding: 12px 0 24px;
}

.downgrade-confirm-body .downgrade-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: #f59e0b;
}

.downgrade-confirm-body h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.downgrade-confirm-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.downgrade-confirm-actions {
    display: flex;
    gap: 12px;
}

.downgrade-confirm-actions .btn {
    flex: 1;
}

/* Model Option Cards in Dashboard */
.model-opt-label {
    display: block;
    cursor: pointer;
    position: relative;
}

.model-opt-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.model-opt-card {
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.model-opt-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 242, 254, 0.3);
}

.model-opt-label input[type="radio"]:checked + .model-opt-card {
    background: rgba(0, 242, 254, 0.06);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.model-opt-title {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.model-opt-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Premium Lock Overlay for Model Settings */
.premium-lock-overlay {
    background: rgba(13, 21, 39, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
}
