/* ========================================
   Init Pricing Table — Base / Variables
   ======================================== */

:root {
    /* Primary & Gradients */
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --accent: #34d399;

    /* Modern Gradient Presets */
    --gradient-green: linear-gradient(135deg, #10b981, #34d399);
    --gradient-ocean: linear-gradient(135deg, #0ea5e9, #6366f1);
    --gradient-sunset: linear-gradient(135deg, #f97316, #ec4899);
    --gradient-aurora: linear-gradient(135deg, #10b981, #06b6d4);
    --gradient-rose: linear-gradient(135deg, #fb7185, #fbbf24);
    --gradient-midnight: linear-gradient(135deg, #1e1b4b, #312e81);
    --gradient-cyber: linear-gradient(135deg, #d946ef, #06b6d4);

    /* Surfaces */
    --bg: #0a0a0c;
    --surface: #141416;
    --surface-raised: #1e1e22;
    --border: rgba(255,255,255,0.06);
    --text: #f0f0f0;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    /* Status */
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Radius & Shadows */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 20px rgba(16,185,129,0.15);

    --font: 'Inter', system-ui, sans-serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.app-header {
    height: 52px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex-shrink: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.3px;
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 3px;
}

.divider {
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 3px;
}

/* Layout Body */
.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.sidebar-section:last-child { border-bottom: none; margin-bottom: 0; }

.sidebar-section h3 {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.sidebar-section h3 i { font-size: 10px; }

/* Canvas */
.canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.canvas-wrapper {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    position: relative;
    min-height: 0;
}

.canvas-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.canvas-hint {
    height: 28px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 10px;
    color: var(--text-dim);
    flex-shrink: 0;
}
.canvas-hint i { font-size: 9px; opacity: 0.5; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* Responsive */
@media (max-width: 1000px) {
    .sidebar { width: 220px; min-width: 220px; padding: 10px; }
}

@media (max-width: 700px) {
    .app-body { flex-direction: column; }
    .sidebar { width: 100%; height: auto; max-height: 32vh; border-right: none; border-bottom: 1px solid var(--border); padding: 10px; }
    .canvas-wrapper { padding: 12px; }
    .export-options { grid-template-columns: 1fr; }
}