/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 8px;

    /* Semantic colors (light defaults) */
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-heading: #334155;
    --border: #e2e8f0;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;

    /* Slate scale (light) */
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;

    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

[data-theme="dark"] {
    --bg: #0b0f19;
    --surface: #151b2b;
    --surface-alt: #1c2537;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-heading: #cbd5e1;
    --border: #1e293b;
    --input-bg: #1c2537;
    --input-border: #334155;

    --dark: #e2e8f0;
    --light: #0f172a;
    --gray-100: #1c2537;
    --gray-200: #1e293b;
    --gray-300: #334155;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;

    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: #0a0a0a;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #1a1a1a;
}

[data-theme="dark"] .navbar {
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.tagline {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a, .nav-links button {
    color: var(--gray-300);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links button:hover {
    color: white;
    background: var(--gray-700);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links button:hover {
    background: #1a1a1a;
}

.nav-links a svg, .nav-links button svg {
    vertical-align: -2px;
    margin-right: 2px;
    opacity: 0.7;
}

.nav-links .nav-active {
    color: white;
    background: var(--primary);
}

/* User dropdown menu */
.nav-user-menu {
    position: relative;
    margin-left: 0.5rem;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-300);
    background: none;
    border: 1px solid var(--gray-600);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s;
    font-family: inherit;
}

.nav-user-btn:hover {
    color: white;
    border-color: var(--gray-400);
}

.nav-chevron {
    opacity: 0.5;
    transition: transform 0.15s;
}

.nav-dropdown.open ~ .nav-user-btn .nav-chevron,
.nav-user-menu:has(.nav-dropdown.open) .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--dark);
    border: 1px solid var(--gray-600);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 200;
    padding: 4px 0;
}

[data-theme="dark"] .nav-dropdown {
    background: #161b22;
    border-color: #30363d;
}

.nav-dropdown.open {
    display: block;
}

.nav-dropdown-header {
    padding: 8px 14px;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: background 0.1s;
}

.nav-dropdown a:hover {
    background: var(--gray-700);
    color: white;
}

[data-theme="dark"] .nav-dropdown a:hover {
    background: #1c2537;
}

.nav-dropdown a svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 0;
}

.nav-dropdown-danger {
    color: var(--danger) !important;
}

.nav-dropdown-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--gray-300);
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.2s;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    color: white;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
}

/* Main content */
main {
    min-height: calc(100vh - 64px);
}

.page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-800) 100%);
    color: white;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0d1117 0%, #151b2b 100%);
}

.hero-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.3)) drop-shadow(0 0 32px rgba(168, 85, 247, 0.15));
}

.hero-icon svg {
    width: 100%;
    height: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface-alt);
    color: var(--text-heading);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--input-border);
    color: var(--text-muted);
}

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

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Auth containers */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
}

.auth-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Pending state icon */
.pending-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Phase-2 review card */
.review-card {
    background: var(--surface-2, rgba(255,255,255,0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.review-row:last-child { border-bottom: none; }
.review-label { color: var(--text-muted); }
.review-value { font-weight: 600; color: var(--text); }

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--input-bg);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.balance-card h3 {
    color: rgba(255,255,255,0.8);
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.stat {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.section {
    margin-top: 2rem;
}

.section h3 {
    margin-bottom: 1rem;
    color: var(--text-heading);
}

/* Tables */
.table-container {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Pagination */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.8125rem;
    color: var(--text-muted);
    gap: 1rem;
}

.pagination-info { white-space: nowrap; }

.pagination-controls {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.pagination-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}

.pagination-ellipsis {
    padding: 0 0.25rem;
    color: var(--text-muted);
}

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

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

th {
    background: var(--surface-alt);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
}

tr:hover {
    background: var(--surface-alt);
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Status badges */
.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available { background: #dcfce7; color: #166534; }
.status-reserved { background: #fef3c7; color: #92400e; }
.status-active { background: #dbeafe; color: #1e40af; }
.status-completed { background: #e5e7eb; color: #374151; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-maintenance { background: #fff3e0; color: #b35c00; }

[data-theme="dark"] .status-available { background: #052e16; color: #86efac; }
[data-theme="dark"] .status-reserved { background: #451a03; color: #fcd34d; }
[data-theme="dark"] .status-active { background: #172554; color: #93c5fd; }
[data-theme="dark"] .status-completed { background: #1f2937; color: #9ca3af; }
[data-theme="dark"] .status-pending { background: #451a03; color: #fcd34d; }
[data-theme="dark"] .status-confirmed { background: #052e16; color: #86efac; }
[data-theme="dark"] .status-cancelled { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .status-maintenance { background: #2a1800; color: #ffa100; }

/* Slots grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Flip card wrapper */
.slot-card-wrapper {
    perspective: 1200px;
    height: 310px;
}

.slot-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
    cursor: pointer;
}

.slot-card.flipped {
    transform: rotateY(180deg);
}

.slot-card-front,
.slot-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.slot-card-back {
    transform: rotateY(180deg);
}

.slot-flip-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    padding: 0 1.5rem 0.25rem;
    opacity: 0.6;
    user-select: none;
}

.slot-header {
    background: var(--gray-800);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

[data-theme="dark"] .slot-header {
    background: #0d1117;
}

.slot-model {
    font-weight: 600;
}

.slot-body {
    padding: 1.25rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.slot-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.slot-info-row {
    display: flex;
    justify-content: space-between;
}

.slot-info-label {
    color: var(--text-muted);
}

.slot-info-value {
    font-weight: 500;
}

.slot-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* Slot card back — model spec sheet */
.slot-back-header {
    background: var(--gray-800);
    color: white;
    padding: 0.875rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

[data-theme="dark"] .slot-back-header {
    background: #0d1117;
}

.slot-back-title {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
}

.slot-back-body {
    padding: 1rem 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.slot-meta-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    font-size: 0.8125rem;
}

.slot-meta-key {
    color: var(--text-muted);
    white-space: nowrap;
    font-family: 'IBM Plex Mono', monospace;
}

.slot-meta-val {
    font-weight: 500;
    word-break: break-word;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--primary);
}

.slot-no-meta {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.slot-back-footer {
    padding: 0.5rem 1.5rem 0.75rem;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

/* Sessions tabs */
.sessions-tab-bar {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.sessions-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1.25rem 0.625rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.sessions-tab:hover {
    color: var(--text);
}

.sessions-tab.sessions-tab-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    margin-left: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--text-muted);
    vertical-align: middle;
}

.sessions-tab.sessions-tab-active .tab-count {
    background: var(--primary);
    color: #fff;
}

/* Sessions */
.sessions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.session-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.session-stat {
    text-align: center;
    padding: 0.5rem;
    background: var(--surface-alt);
    border-radius: var(--radius);
}

.session-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.session-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.session-card-completed {
    opacity: 0.85;
}

.session-meta-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.session-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.session-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.session-meta-value {
    font-size: 0.875rem;
    color: var(--text);
}

.session-token {
    background: var(--gray-800);
    color: #10b981;
    padding: 1rem;
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 0.875rem;
    word-break: break-all;
    margin-bottom: 1rem;
}

[data-theme="dark"] .session-token {
    background: #0d1117;
}

.session-actions {
    display: flex;
    gap: 0.5rem;
}

/* Amount buttons */
.amount-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Payment grid */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.modal-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

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

.cost-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Toast notifications */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2000;
}

.toast {
    background: var(--dark);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

[data-theme="dark"] .toast {
    background: #1c2537;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--primary); }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-user-menu {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

    .page {
        padding: 1rem;
    }
}

/* Utility */
.container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* Copy button */
.copy-btn {
    background: var(--gray-700);
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.copy-btn:hover {
    background: var(--gray-600);
}

/* ========================================
   Terminal Chat — Tokyo Night (always dark)
   ======================================== */

.terminal-chat-container {
    --tc-bg: #1a1b26;
    --tc-bg-highlight: #24283b;
    --tc-fg: #c0caf5;
    --tc-fg-dark: #a9b1d6;
    --tc-comment: #565f89;
    --tc-cyan: #7dcfff;
    --tc-blue: #7aa2f7;
    --tc-purple: #bb9af7;
    --tc-green: #9ece6a;
    --tc-yellow: #e0af68;
    --tc-red: #f7768e;
    --tc-gutter: #3b4261;

    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    background: var(--tc-bg);
    border: 1px solid var(--tc-gutter);
    box-shadow: 0 0 30px rgba(122, 162, 247, 0.08), 0 0 60px rgba(122, 162, 247, 0.04);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header bar */
.terminal-chat-header {
    background: var(--tc-bg-highlight);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--tc-gutter);
    user-select: none;
}

.terminal-chat-buttons {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.tc-btn {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    cursor: default;
}

.tc-btn-close {
    background: #ff5f56;
    cursor: pointer;
}

.tc-btn-close:hover {
    background: #e04843;
}

.tc-btn-minimize {
    background: #ffbd2e;
}

.tc-btn-maximize {
    background: #27c93f;
}

.terminal-chat-title {
    flex: 1;
    text-align: center;
    color: var(--tc-fg-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.terminal-chat-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--tc-fg-dark);
    opacity: 0.4;
    letter-spacing: 0.05em;
    min-width: 52px;
    text-align: right;
    user-select: none;
    transition: color 0.3s, opacity 0.3s;
}

.terminal-chat-timer.timer-warning {
    color: var(--tc-yellow);
    opacity: 0.9;
    font-weight: 700;
}

.terminal-chat-timer.timer-critical {
    color: var(--tc-red);
    opacity: 1;
    font-weight: 700;
    animation: blink-timer 0.8s step-end infinite;
}

@keyframes blink-timer {
    50% { opacity: 0.2; }
}

/* Session expiry warning in chat */
.chat-expiry-warning {
    margin-bottom: 16px;
    border: 1px solid var(--tc-yellow);
    border-radius: 6px;
    padding: 10px 14px;
    background: rgba(255, 198, 0, 0.06);
}

.chat-expiry-warning .chat-msg-role {
    color: var(--tc-yellow);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
}

.chat-expiry-warning .chat-msg-content {
    color: var(--tc-fg);
}

.expiry-warning-text {
    display: block;
    margin-bottom: 10px;
    color: var(--tc-yellow);
    font-size: 13px;
}

.expiry-warning-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Chat body / output area */
.terminal-chat-body {
    min-height: 500px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--tc-fg);
}

.terminal-chat-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-chat-body::-webkit-scrollbar-track {
    background: var(--tc-bg);
}

.terminal-chat-body::-webkit-scrollbar-thumb {
    background: var(--tc-gutter);
    border-radius: 4px;
}

.terminal-chat-body::-webkit-scrollbar-thumb:hover {
    background: var(--tc-comment);
}

/* Messages */
.chat-msg {
    margin-bottom: 16px;
}

.chat-msg-role {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
}

.chat-msg-user .chat-msg-role {
    color: var(--tc-green);
}

.chat-msg-assistant .chat-msg-role {
    color: var(--tc-cyan);
}

.chat-msg-system .chat-msg-role {
    color: var(--tc-yellow);
}

.chat-msg-error .chat-msg-role {
    color: var(--tc-red);
}

.chat-msg-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--tc-fg-dark);
}

.chat-msg-content code {
    background: var(--tc-bg-highlight);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 13px;
}

.chat-msg-content pre {
    background: var(--tc-bg-highlight);
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid var(--tc-blue);
    margin: 8px 0;
    overflow-x: auto;
}

.chat-msg-content pre code {
    background: none;
    padding: 0;
}

/* Markdown-rendered content */
.chat-msg-content.md-rendered {
    white-space: normal;
    word-wrap: break-word;
}

.chat-msg-content.md-rendered p {
    margin: 0 0 0.75em 0;
}

.chat-msg-content.md-rendered p:last-child {
    margin-bottom: 0;
}

.chat-msg-content.md-rendered h1,
.chat-msg-content.md-rendered h2,
.chat-msg-content.md-rendered h3,
.chat-msg-content.md-rendered h4,
.chat-msg-content.md-rendered h5,
.chat-msg-content.md-rendered h6 {
    color: var(--tc-fg);
    font-weight: 700;
    margin: 1em 0 0.5em 0;
}

.chat-msg-content.md-rendered h1:first-child,
.chat-msg-content.md-rendered h2:first-child,
.chat-msg-content.md-rendered h3:first-child {
    margin-top: 0;
}

.chat-msg-content.md-rendered h1 { font-size: 1.4em; }
.chat-msg-content.md-rendered h2 { font-size: 1.25em; }
.chat-msg-content.md-rendered h3 { font-size: 1.1em; }
.chat-msg-content.md-rendered h4,
.chat-msg-content.md-rendered h5,
.chat-msg-content.md-rendered h6 { font-size: 1em; }

.chat-msg-content.md-rendered ul,
.chat-msg-content.md-rendered ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.chat-msg-content.md-rendered li {
    margin-bottom: 0.25em;
}

.chat-msg-content.md-rendered blockquote {
    border-left: 3px solid var(--tc-purple);
    padding: 0.5em 1em;
    margin: 0.5em 0;
    color: var(--tc-comment);
    background: rgba(36, 40, 59, 0.5);
    border-radius: 0 4px 4px 0;
}

.chat-msg-content.md-rendered hr {
    border: none;
    border-top: 1px solid var(--tc-gutter);
    margin: 1em 0;
}

.chat-msg-content.md-rendered a {
    color: var(--tc-blue);
    text-decoration: none;
}

.chat-msg-content.md-rendered a:hover {
    text-decoration: underline;
}

.chat-msg-content.md-rendered strong {
    color: var(--tc-fg);
    font-weight: 700;
}

.chat-msg-content.md-rendered em {
    color: var(--tc-purple);
    font-style: italic;
}

.chat-msg-content.md-rendered del {
    opacity: 0.6;
}

.chat-msg-content.md-rendered .code-block {
    position: relative;
    margin: 0.75em 0;
}

.chat-msg-content.md-rendered .code-block pre {
    margin: 0;
}

.chat-msg-content.md-rendered .code-block .code-lang {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 8px;
    font-size: 11px;
    color: var(--tc-comment);
    background: var(--tc-bg);
    border-radius: 0 6px 0 4px;
    user-select: none;
}

.chat-msg-content.md-rendered .code-block .code-copy {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 8px;
    background: none;
    border: none;
    color: var(--tc-comment);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    line-height: 1;
    z-index: 1;
}

.chat-msg-content.md-rendered .code-block:hover .code-copy {
    opacity: 1;
}

.chat-msg-content.md-rendered .code-block .code-copy:hover {
    color: var(--tc-fg);
}

.chat-msg-content.md-rendered .code-block .code-copy.copied {
    color: var(--tc-green);
    opacity: 1;
}

/* Shift lang label left when copy button is present */
.chat-msg-content.md-rendered .code-block:hover .code-lang {
    right: 30px;
}

/* Welcome banner */
.chat-welcome {
    border: 1px solid var(--tc-blue);
    background: var(--tc-bg-highlight);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    line-height: 1.8;
}

.chat-welcome .cw-title {
    color: var(--tc-cyan);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.chat-welcome .cw-detail {
    color: var(--tc-fg-dark);
    font-size: 13px;
}

.chat-welcome .cw-label {
    color: var(--tc-comment);
}

.chat-welcome .cw-value {
    color: var(--tc-green);
}

.chat-welcome .cw-hint {
    color: var(--tc-comment);
    font-size: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--tc-gutter);
    padding-top: 8px;
}

/* Input area */
.terminal-chat-input-area {
    display: flex;
    align-items: flex-end;
    padding: 12px 16px;
    background: var(--tc-bg-highlight);
    border-top: 1px solid var(--tc-gutter);
    gap: 8px;
}

.terminal-chat-prompt {
    color: var(--tc-green);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    user-select: none;
}

#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--tc-fg);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    caret-color: var(--tc-cyan);
    max-height: 126px;
    overflow-y: auto;
}

#chat-input::placeholder {
    color: var(--tc-comment);
}

.terminal-chat-send {
    background: none;
    border: 1px solid var(--tc-gutter);
    color: var(--tc-comment);
    font-size: 18px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    transition: all 0.15s;
}

.terminal-chat-send:hover {
    color: var(--tc-cyan);
    border-color: var(--tc-cyan);
}

/* Streaming state — dim but keep interactive for /stop, /exit */
.chat-streaming .terminal-chat-input-area {
    opacity: 0.6;
}

.chat-streaming .terminal-chat-prompt {
    color: var(--tc-yellow);
}

/* Blinking cursor for streaming */
@keyframes tc-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.chat-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--tc-cyan);
    animation: tc-blink 1s infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-chat-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .terminal-chat-body {
        min-height: 350px;
        padding: 12px;
        font-size: 13px;
    }

    .terminal-chat-input-area {
        padding: 10px 12px;
    }

    #chat-input {
        font-size: 13px;
    }
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    margin-top: 5rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 720px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.4;
    letter-spacing: 0.5px;
}

.footer-sep {
    margin: 0 0.5rem;
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .site-footer {
        margin-top: 3rem;
    }
}

/* Stripe Card Element */
.stripe-card-element {
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    background: var(--input-bg);
    transition: border-color 0.2s;
}
.stripe-card-element.StripeElement--focus {
    border-color: var(--primary);
}
.stripe-card-element.StripeElement--invalid {
    border-color: var(--danger);
}
.stripe-card-errors {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.35rem;
    min-height: 1.2em;
}

/* ── My Account Page ─────────────────────────────────────────── */

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.account-col-left,
.account-col-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.account-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.account-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
}

.account-stat-row:last-child {
    border-bottom: none;
}

.account-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account-stat-value {
    font-weight: 500;
    color: var(--text);
}

.account-edit-form .form-group {
    margin-bottom: 0.75rem;
}

.account-edit-form label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.3rem;
}

.account-api-key-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-alt, var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.75rem;
}

.account-api-key-display code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--primary);
    word-break: break-all;
}

.account-new-key-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.account-new-key-box code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--success);
    word-break: break-all;
    display: block;
    margin-bottom: 0.5rem;
}

.account-new-key-warning {
    font-size: 0.75rem;
    color: var(--warning);
}

.account-method-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.account-method-row:last-child {
    border-bottom: none;
}

.account-method-icon {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
}

.account-method-info {
    flex: 1;
    font-size: 0.9rem;
}

.account-method-brand {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.account-tx-credit { color: var(--success); font-weight: 600; }
.account-tx-debit  { color: var(--danger);  font-weight: 600; }

/* Chat page removes page padding for full-width terminal feel */
#chat-page {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ================================================================
   LANDING PAGE — Industrial Terminal Redesign (lp-* namespace)
   ================================================================ */

#landing-page {
    background: #0a0a0a;
    color: #e5e5e5;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100%;
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
}

[data-theme="dark"] {
    --bg: #0a0a0a;
}

/* ---- Hero ---- */
.lp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 4rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.lp-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #ffa100;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.lp-headline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: #f0f0f0;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.lp-accent { color: #ffa100; }

.lp-sub {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #777;
    margin-bottom: 2.5rem;
    max-width: 440px;
}

.lp-ctas {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lp-btn-primary {
    background: #ffa100;
    color: #0a0a0a;
    border: none;
    padding: 0.75rem 1.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    border-radius: 2px;
    text-transform: uppercase;
}

.lp-btn-primary:hover {
    background: #ffb733;
    transform: translateY(-1px);
}

.lp-btn-ghost {
    background: transparent;
    color: #666;
    border: 1px solid #252525;
    padding: 0.75rem 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    border-radius: 2px;
}

.lp-btn-ghost:hover {
    color: #e5e5e5;
    border-color: #555;
}

/* ---- Terminal Code Block ---- */
.lp-hero-terminal {
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,161,0,0.04);
}

.lp-terminal-bar {
    background: #161616;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid #1e1e1e;
}

.lp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.lp-dot-r { background: #ff5f57; }
.lp-dot-y { background: #ffbd2e; }
.lp-dot-g { background: #28c840; }

.lp-terminal-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: #444;
    margin: 0 auto;
}

.lp-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.75;
    padding: 1.5rem 1.75rem;
    color: #b0b8c8;
    white-space: pre;
    overflow-x: auto;
    margin: 0;
}

.lp-c-kw  { color: #ff7b72; }
.lp-c-str { color: #79c0ff; }
.lp-c-num { color: #d2a8ff; }

.lp-cursor {
    color: #ffa100;
    animation: lp-blink 1.1s step-end infinite;
}

@keyframes lp-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ---- Specs Bar ---- */
.lp-specs {
    display: flex;
    align-items: center;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    background: #080808;
}

.lp-spec {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.lp-spec-sep {
    width: 1px;
    height: 36px;
    background: #1e1e1e;
    flex-shrink: 0;
}

.lp-spec-val {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffa100;
    letter-spacing: -0.01em;
}

.lp-spec-key {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #444;
}

/* ---- Feature Cards ---- */
.lp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #1a1a1a;
}

.lp-card {
    padding: 2.5rem 3rem;
    border-right: 1px solid #1a1a1a;
    transition: background 0.2s;
}

.lp-card:last-child { border-right: none; }
.lp-card:hover { background: #0d0d0d; }

.lp-card-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffa100;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}

.lp-card-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.lp-card-body {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #555;
}

/* ---- Video Proof Section ---- */
.lp-proof {
    padding: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-proof-header {
    margin-bottom: 2rem;
}

.lp-proof-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #ffa100;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.lp-proof-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #e5e5e5;
    letter-spacing: -0.02em;
}

.lp-videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.lp-video {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    background: #0d0d0d;
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
}

.lp-video:hover {
    border-color: #ffa100;
    background: #111;
}

.lp-video-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border-radius: 4px;
    border: 1px solid #1e1e1e;
}

.lp-video-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.lp-video-source {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffa100;
}

.lp-video-title {
    font-size: 0.88rem;
    color: #aaa;
    font-weight: 500;
    line-height: 1.4;
}

/* ---- Landing Page Responsive ---- */
@media (max-width: 960px) {
    .lp-hero {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem 2rem;
        gap: 2.5rem;
    }
    .lp-headline { font-size: 2.2rem; }
    .lp-sub { max-width: 100%; }
    .lp-specs { flex-wrap: wrap; }
    .lp-spec { flex: 1 0 40%; }
    .lp-spec-sep { display: none; }
    .lp-cards { grid-template-columns: 1fr; }
    .lp-card {
        border-right: none;
        border-bottom: 1px solid #1a1a1a;
    }
    .lp-card:last-child { border-bottom: none; }
    .lp-videos { grid-template-columns: 1fr; }
    .lp-proof { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
    .lp-headline { font-size: 1.7rem; }
    .lp-ctas { flex-direction: column; align-items: flex-start; }
    .lp-spec { flex: 1 0 100%; }
}

/* ================================================================
   AUTH PAGES — Match industrial black landing page theme
   ================================================================ */

#login-page,
#register-page,
#complete-page {
    background: #0a0a0a !important;
    min-height: calc(100vh - 57px);
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login-page .auth-container,
#register-page .auth-container,
#complete-page .auth-container {
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 4px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    margin: 2rem;
}

#login-page .auth-container h2,
#register-page .auth-container h2,
#complete-page .auth-container h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f0f0f0;
    text-align: left;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

#login-page .auth-sub,
#register-page .auth-sub,
#complete-page .auth-sub {
    font-size: 0.85rem;
    color: #555;
    text-align: left;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

#login-page .form-group label,
#register-page .form-group label,
#complete-page .form-group label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 0.4rem;
}

#login-page .form-group input,
#register-page .form-group input,
#complete-page .form-group input {
    background: #111;
    border: 1px solid #252525;
    color: #e5e5e5;
    border-radius: 2px;
    padding: 0.65rem 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    transition: border-color 0.15s;
}

#login-page .form-group input:focus,
#register-page .form-group input:focus,
#complete-page .form-group input:focus {
    outline: none;
    border-color: #ffa100;
    background: #111;
}

#login-page .form-group small,
#register-page .form-group small,
#complete-page .form-group small {
    color: #444;
    font-size: 0.72rem;
    margin-top: 0.3rem;
    display: block;
}

#login-page .btn-primary,
#register-page .btn-primary,
#complete-page .btn-primary {
    background: #ffa100;
    color: #0a0a0a;
    border: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 2px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
    margin-top: 0.5rem;
}

#login-page .btn-primary:hover,
#register-page .btn-primary:hover,
#complete-page .btn-primary:hover {
    background: #ffb733;
}

#login-page .auth-switch,
#register-page .auth-switch,
#complete-page .auth-switch {
    text-align: left;
    font-size: 0.8rem;
    color: #444;
    margin-top: 0.75rem;
}

#login-page .auth-switch a,
#register-page .auth-switch a,
#complete-page .auth-switch a {
    color: #ffa100;
    text-decoration: none;
}

#login-page .auth-switch a:hover,
#register-page .auth-switch a:hover,
#complete-page .auth-switch a:hover {
    color: #ffb733;
}

/* Pending state */
#register-page .pending-icon {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 0.75rem;
}

/* Review card (Phase 2) */
#complete-page .review-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

#complete-page .review-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #444;
}

#complete-page .review-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #e5e5e5;
}

#complete-page .review-row {
    border-bottom-color: #1e1e1e;
}
