/* =========================================================================
   DXF Mural Generator — Premium Dark UI
   ========================================================================= */

/* ── Custom Properties ──────────────────────────────────────────────────── */
:root {
    /* Background layers */
    --bg-base:        #080c14;
    --bg-panel:       rgba(14, 22, 40, 0.85);
    --bg-panel-hover: rgba(20, 32, 58, 0.9);
    --bg-sub:         rgba(8, 16, 30, 0.6);
    --bg-input:       rgba(4, 10, 22, 0.8);

    /* Border & glass */
    --border:         rgba(0, 212, 255, 0.12);
    --border-hover:   rgba(0, 212, 255, 0.35);
    --glass:          blur(16px);

    /* Grid lines */
    --grid-fine:      rgba(0, 212, 255, 0.045);
    --grid-bold:      rgba(0, 212, 255, 0.09);

    /* Accent - Cyan electric */
    --accent:         #00d4ff;
    --accent-dim:     rgba(0, 212, 255, 0.15);
    --accent-glow:    0 0 18px rgba(0, 212, 255, 0.45);

    /* CTA - Violet for payment */
    --cta:            #7c3aed;
    --cta-hover:      #6d28d9;
    --cta-light:      rgba(124, 58, 237, 0.18);
    --cta-glow:       0 0 22px rgba(124, 58, 237, 0.55);

    /* Success */
    --success:        #10b981;
    --success-dim:    rgba(16, 185, 129, 0.15);

    /* Warning */
    --warning:        #f59e0b;

    /* Text */
    --text-hi:        #e8f4ff;
    --text-mid:       #8db4d4;
    --text-lo:        #4a6a88;

    /* Sidebar */
    --sidebar-w:      300px;
    --sidebar-bg:     rgba(8, 14, 28, 0.96);

    /* Animation */
    --t-fast:  0.15s ease;
    --t-mid:   0.28s ease;
    --t-slow:  0.4s ease;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-hi);
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── App Layout ─────────────────────────────────────────────────────────── */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    backdrop-filter: var(--glass);
    z-index: 50;
    transition: width var(--t-mid), min-width var(--t-mid);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.6);
}

.sidebar.collapsed {
    width: 52px;
    min-width: 52px;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-body {
    opacity: 0;
    pointer-events: none;
}

.sidebar.collapsed .logo-block,
.sidebar.collapsed .lang-btn {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 16px 0;
}

/* Sidebar header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    animation: rotateHex 12s linear infinite;
}

@keyframes rotateHex {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.app-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-hi);
    letter-spacing: 0.03em;
    line-height: 1.2;
    transition: opacity var(--t-mid);
}

.app-subtitle {
    font-size: 10px;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: opacity var(--t-mid);
}

/* Header action buttons group */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Language toggle */
.lang-btn {
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-mid);
    padding: 4px 8px;
    font-size: 11px;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t-fast);
    white-space: nowrap;
    flex-shrink: 0;
}
.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.sidebar-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-mid);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast);
    flex-shrink: 0;
}
.sidebar-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.sidebar-toggle svg { width: 16px; height: 16px; }

/* Sidebar body */
.sidebar-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 10px 20px;
    transition: opacity var(--t-mid);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar-body::-webkit-scrollbar { width: 4px; }
.sidebar-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}
.sidebar-body::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ── Panels (Accordion) ─────────────────────────────────────────────────── */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color var(--t-fast);
    backdrop-filter: blur(8px);
}

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

.panel-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    color: var(--text-hi);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background var(--t-fast);
}

.panel-header:hover { background: rgba(0, 212, 255, 0.04); }

.panel-icon {
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.panel-title { flex: 1; }

.chevron {
    width: 14px;
    height: 14px;
    color: var(--text-lo);
    transition: transform var(--t-mid);
    flex-shrink: 0;
}

.panel.open .chevron { transform: rotate(180deg); }

.panel-body {
    padding: 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-slow), padding var(--t-slow);
}

.panel.open .panel-body {
    max-height: 600px;
    padding: 4px 12px 12px;
}

/* Sub-panel (inside panel) */
.sub-panel {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ── Control Rows ───────────────────────────────────────────────────────── */
.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 30px;
}

.control-row:last-child { margin-bottom: 0; }

.control-row > label {
    flex: 1;
    font-size: 12px;
    color: var(--text-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.control-hint {
    font-size: 11px;
    color: var(--text-lo);
    margin-bottom: 6px;
    font-style: italic;
}

.hint {
    font-size: 10px;
    color: var(--text-lo);
    font-weight: 400;
}

/* ── Stepper ────────────────────────────────────────────────────────────── */
.stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color var(--t-fast);
    flex-shrink: 0;
}

.stepper:focus-within { border-color: var(--accent); }

.stepper-btn {
    background: rgba(0, 212, 255, 0.05);
    border: none;
    color: var(--text-mid);
    width: 26px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
    flex-shrink: 0;
}

.stepper-btn:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.stepper input[type="number"] {
    width: 60px;
    background: var(--bg-input);
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-hi);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    padding: 0 4px;
    height: 28px;
    outline: none;
    -moz-appearance: textfield;
}

.stepper input[type="number"]::-webkit-outer-spin-button,
.stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* ── Standalone Input ───────────────────────────────────────────────────── */
.input-solo {
    width: 90px;
    flex-shrink: 0;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-hi);
    font-family: var(--font);
    font-size: 12px;
    padding: 5px 8px;
    outline: none;
    transition: border-color var(--t-fast);
    -moz-appearance: textfield;
}

.input-solo:focus { border-color: var(--accent); }
.input-solo::-webkit-outer-spin-button,
.input-solo::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Range Slider ───────────────────────────────────────────────────────── */
input[type="range"] {
    width: 90px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
    height: 4px;
    border-radius: 2px;
}

/* ── Badge (jitter value) ───────────────────────────────────────────────── */
.badge {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 4px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
    min-width: 32px;
    text-align: center;
}

/* ── Select ─────────────────────────────────────────────────────────────── */
.native-select {
    flex-shrink: 0;
    width: 130px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-hi);
    font-family: var(--font);
    font-size: 12px;
    padding: 5px 8px;
    outline: none;
    cursor: pointer;
    transition: border-color var(--t-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a6a88' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

.native-select:focus { border-color: var(--accent); }
.native-select option { background: #0e1628; }

/* ── Segmented Control ──────────────────────────────────────────────────── */
.seg-control {
    display: flex;
    background: var(--bg-sub);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.seg-control input[type="radio"] { display: none; }

.seg-control label {
    flex: 1;
    text-align: center;
    padding: 7px 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-mid);
    cursor: pointer;
    transition: all var(--t-mid);
    border-right: 1px solid var(--border);
    user-select: none;
}

.seg-control label:last-child { border-right: none; }

.seg-control input[type="radio"]:checked + label {
    background: linear-gradient(135deg, var(--accent-dim), rgba(0, 212, 255, 0.08));
    color: var(--accent);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.2);
}

/* ── Action Panel (Generate) ────────────────────────────────────────────── */
.action-panel {
    margin-top: 4px;
    margin-bottom: 8px;
}

.btn-generate {
    width: 100%;
    padding: 11px 16px;
    background: linear-gradient(135deg, #0284c7, var(--accent) 120%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
    transition: all var(--t-mid);
    position: relative;
    overflow: hidden;
}

.btn-generate::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--t-fast);
}

.btn-generate:hover { 
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(0, 212, 255, 0.4);
}

.btn-generate:hover::after { background: rgba(255,255,255,0.06); }

.btn-generate:active { transform: translateY(0); }

.btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* Status message */
.status-msg {
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--text-lo);
    text-align: center;
    min-height: 18px;
    transition: color var(--t-fast);
}

.status-msg.processing { color: var(--accent); }
.status-msg.success    { color: var(--success); }
.status-msg.error      { color: #f87171; }

/* ── Download Panel ─────────────────────────────────────────────────────── */
.download-panel {
    margin-top: 2px;
}

.btn-download {
    width: 100%;
    padding: 11px 16px;
    background: linear-gradient(135deg, #4c1d95, var(--cta));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    transition: all var(--t-mid);
    margin-bottom: 0;
}

/* STEP button — teal/green to differentiate from DXF purple */
.btn-download.btn-step {
    background: linear-gradient(135deg, #065f46, #059669);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.25);
    margin-top: 8px;
}

.btn-download.btn-step:hover:not(:disabled) {
    box-shadow: 0 6px 28px rgba(5, 150, 105, 0.45);
}

.btn-download:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--cta-glow);
}

.btn-download:disabled {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-lo);
    box-shadow: none;
    cursor: not-allowed;
}

.download-hint {
    margin-top: 6px;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--text-lo);
    text-align: center;
}

/* Sidebar Footer (Legal Links) */
.sidebar-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 10px;
    color: var(--text-lo);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.sidebar-footer a {
    color: var(--text-mid);
    text-decoration: none;
    transition: color var(--t-fast);
}

.sidebar-footer a:hover {
    color: var(--accent);
}

/* ── Main Content & Canvas ──────────────────────────────────────────────── */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-base);
    background-image:
        linear-gradient(var(--grid-fine) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px),
        linear-gradient(var(--grid-bold) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
    overflow: hidden;
    position: relative;
}

/* Canvas toolbar */
.canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 12, 20, 0.7);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    z-index: 10;
}

.toolbar-left { display: flex; gap: 4px; }

.tool-btn {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-mid);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast);
}

.tool-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.tool-btn svg { width: 16px; height: 16px; }

.toolbar-stats {
    font-size: 11px;
    color: var(--text-lo);
    font-family: var(--font-mono, monospace);
}

/* Canvas container */
.canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#previewCanvas {
    position: absolute;
    top: 0; left: 0;
    cursor: grab;
    image-rendering: crisp-edges;
}

#previewCanvas:active { cursor: grabbing; }

/* Placeholder overlay */
.canvas-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity var(--t-slow);
}

.canvas-overlay.hidden { opacity: 0; }

.placeholder-content {
    text-align: center;
    color: var(--text-lo);
}

.placeholder-content svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50%       { opacity: 0.55; transform: scale(1.04); }
}

.placeholder-content p {
    font-size: 13px;
    max-width: 220px;
    line-height: 1.6;
}

/* Spinner */
.spinner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 20, 0.7);
    backdrop-filter: blur(4px);
    gap: 16px;
    z-index: 20;
}

.spinner-overlay.hidden { display: none; }

.spinner-overlay p {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ── Utility ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Modal Overlay ──────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn var(--t-mid) ease;
}

.modal-overlay.hidden { display: none; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(14, 22, 45, 0.98), rgba(8, 14, 30, 0.98));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 18px;
    padding: 36px 32px 32px;
    width: 540px;
    max-width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: slideUp var(--t-mid) ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-mid);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast);
}

.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text-hi); }
.modal-close svg { width: 16px; height: 16px; }

.modal-header { text-align: center; margin-bottom: 20px; }

/* Extrusion depth group (STEP modal) */
.extrude-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(5, 150, 105, 0.07);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.extrude-group label {
    font-size: 13px;
    color: var(--text-mid);
    flex: 1;
}

.stepper-modal {
    flex-shrink: 0;
}

.modal-logo {
    margin: 0 auto 14px;
    width: 44px;
    height: 44px;
}

.modal-logo svg { width: 100%; height: 100%; }

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-hi);
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-mid);
}

/* Plan cards */
.plans-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-lo);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.plan-card {
    background: rgba(8, 16, 32, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all var(--t-mid);
    position: relative;
    text-align: center;
    outline: none;
}

.plan-card:hover, .plan-card:focus {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.plan-card.featured {
    border-color: var(--cta);
    background: var(--cta-light);
}

.plan-card.featured:hover, .plan-card.featured:focus {
    border-color: #a855f7;
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}

.plan-card.selected {
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
}

.plan-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-lo);
    margin-bottom: 8px;
    height: 14px;
}

.plan-badge.popular { color: #a78bfa; }
.plan-badge.save    { color: var(--success); }

.plan-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-hi);
    line-height: 1;
    margin-bottom: 4px;
}

.plan-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-mid);
}

.plan-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 10px;
}

.plan-features {
    list-style: none;
    text-align: left;
    font-size: 11px;
    color: var(--text-mid);
    line-height: 1.8;
}

.modal-legal {
    text-align: center;
    font-size: 11px;
    color: var(--text-lo);
    margin-top: 4px;
}

/* Demo notice */
.demo-notice {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
}

.demo-inner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.demo-icon {
    width: 20px;
    height: 20px;
    color: var(--warning);
    flex-shrink: 0;
    margin-top: 1px;
}

.demo-inner strong { display: block; color: var(--warning); font-size: 13px; margin-bottom: 2px; }
.demo-inner p { font-size: 12px; color: var(--text-mid); }

.btn-demo-download {
    width: 100%;
    padding: 10px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    color: var(--warning);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast);
}

.btn-demo-download:hover {
    background: rgba(245, 158, 11, 0.25);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .app-layout { flex-direction: column; }

    .sidebar {
        width: 100% !important;
        min-width: unset;
        height: auto;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

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

    .modal-content { padding: 24px 18px; }
}
