/* AR Experience Creator - Stylesheet */
/* Aesthetic: Dark tech/holographic with cyan accents */

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

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #151d2e;
    --bg-card-hover: #1a2438;
    --bg-input: #0d1321;
    --border-color: #1e2d4a;
    --border-active: #06b6d4;
    --text-primary: #e8edf5;
    --text-secondary: #8896b0;
    --text-muted: #5a6a85;
    --accent: #06b6d4;
    --accent-dim: rgba(6, 182, 212, 0.15);
    --accent-glow: rgba(6, 182, 212, 0.3);
    --accent-secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-dim: rgba(239, 68, 68, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.1);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Background grid pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ============ LAYOUT ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ============ HEADER / NAV ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-links { display: flex; gap: 8px; align-items: center; }

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ============ HERO ============ */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #0891b2);
    color: #fff;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

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

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

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============ CARDS ============ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: var(--shadow-glow);
}

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

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title .icon {
    width: 32px;
    height: 32px;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
}

/* ============ FEATURE CARDS (Landing) ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 60px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 20px; }

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-textarea { resize: vertical; min-height: 80px; }
.form-select { cursor: pointer; }

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ============ FILE UPLOAD ZONES ============ */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.upload-zone.has-file {
    border-color: var(--success);
    border-style: solid;
    background: rgba(16, 185, 129, 0.05);
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.6; }

.upload-zone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.upload-zone .file-name {
    color: var(--success);
    font-weight: 500;
    font-size: 0.95rem;
}

.upload-preview {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

/* ============ CREATOR PAGE ============ */
.creator-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    padding: 32px 0;
    min-height: calc(100vh - 80px);
}

.creator-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.type-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.type-btn:hover { border-color: var(--accent); color: var(--text-primary); }

.type-btn.active {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.type-btn .type-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.type-btn .type-info { flex: 1; }
.type-btn .type-name { display: block; font-weight: 600; color: inherit; }
.type-btn .type-desc { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.creator-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============ ITEMS LIST ============ */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.item-card:hover { border-color: rgba(6, 182, 212, 0.3); }

.item-thumb {
    width: 60px;
    height: 60px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
}

.item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.item-info { flex: 1; min-width: 0; }

.item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-info p { font-size: 0.8rem; color: var(--text-muted); }

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

/* ============ QR CODE SECTION ============ */
.qr-section {
    text-align: center;
    padding: 40px;
}

.qr-container {
    display: inline-block;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    margin: 20px 0;
}

.qr-container canvas { display: block; }

.qr-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-all;
    margin-top: 12px;
}

/* ============ EXPERIENCE LIST (Dashboard) ============ */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.exp-card:hover { border-color: rgba(6, 182, 212, 0.3); box-shadow: var(--shadow-glow); }

.exp-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }

.exp-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.exp-meta span { display: flex; align-items: center; gap: 4px; }

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

/* ============ TOAST NOTIFICATIONS ============ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

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

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 { font-size: 1.15rem; font-weight: 600; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-color); display: flex; gap: 8px; justify-content: flex-end; }

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

/* ============ LOADING ============ */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 23, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    gap: 16px;
}

.loading-overlay p { color: var(--text-secondary); font-size: 0.95rem; }

/* ============ PROGRESS BAR ============ */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ============ TABS ============ */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { background: var(--bg-card); color: var(--accent); }

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { max-width: 400px; margin: 0 auto 24px; font-size: 0.9rem; }

/* ============ FOOTER ============ */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============ VIEWER PAGE ============ */
.viewer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 20px;
    text-align: center;
    padding: 24px;
}

.viewer-loading h2 { font-size: 1.3rem; }

.viewer-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 24px;
    gap: 20px;
}

.viewer-start .instructions {
    color: var(--text-secondary);
    max-width: 400px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.ar-scene-container {
    position: fixed;
    inset: 0;
    z-index: 10;
}

/* ============ BADGE / TAG ============ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-cyan { background: var(--accent-dim); color: var(--accent); }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-secondary); }
.badge-green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-yellow { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .creator-layout {
        grid-template-columns: 1fr;
    }
    .creator-sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
    }
    .type-btn {
        min-width: 160px;
        flex-shrink: 0;
    }
    .type-btn .type-desc { display: none; }
}

/* ============ AUTH PAGE ============ */
.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.auth-tab {
    flex: 1;
    padding: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

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

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

.auth-form {
    padding: 28px;
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--accent);
}

.auth-message {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.auth-error {
    background: var(--danger-dim);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============ NAV USER ============ */
.nav-user {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
}

/* ============ ENHANCED PANO CONTROLS ============ */
.pano-controls {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 210;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 360px;
    width: 90%;
}

.pano-controls-main {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    width: 100%;
}

.pano-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

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

.pano-label {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: 42px;
}

.pano-val {
    min-width: 48px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
}

.pano-controls .blend-slider {
    -webkit-appearance: none;
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

.pano-controls .blend-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid #fff;
}

.pano-toggle-btn {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent);
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.pano-toggle-btn:hover { background: rgba(255, 255, 255, 0.15); }

.pano-advanced {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pano-reset-btn {
    display: block;
    width: 100%;
    padding: 7px;
    margin-top: 10px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.pano-reset-btn:hover { border-color: var(--accent); color: var(--accent); }

.pano-close-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}

.pano-gyro-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10002;
    background: rgba(6, 182, 212, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ============ 360 PREVIEW IN CREATOR ============ */
.modal.modal-wide {
    max-width: 1100px;
}

.preview-360 {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-input);
}

.preview-360-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.preview-360-hint {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.preview-360-canvas {
    position: relative;
    width: 100%;
    height: 500px;
    cursor: grab;
}

.preview-360-canvas:active {
    cursor: grabbing;
}

.preview-360-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.preview-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.preview-crosshair::before,
.preview-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
}

.preview-crosshair::before {
    width: 1px;
    height: 24px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.preview-crosshair::after {
    width: 24px;
    height: 1px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ============ PREVIEW FLOATING CONTROLS ============ */
.preview-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 260px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    pointer-events: auto;
    font-family: 'Outfit', sans-serif;
}

.preview-controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-controls-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-controls-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.preview-controls-body {
    padding: 8px 12px 10px;
    max-height: 420px;
    overflow-y: auto;
}

.prev-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

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

.prev-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    font-weight: 500;
    min-width: 46px;
    white-space: nowrap;
}

.prev-slider {
    -webkit-appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.prev-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid #fff;
}

.prev-val {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    min-width: 38px;
    text-align: right;
    white-space: nowrap;
}

.preview-controls-body::-webkit-scrollbar {
    width: 4px;
}

.preview-controls-body::-webkit-scrollbar-track {
    background: transparent;
}

.preview-controls-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* ============ POLICY PAGES ============ */
.policy-page {
    padding: 60px 0 80px;
    max-width: 800px;
}

.policy-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.policy-page .policy-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
}

.policy-page h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.policy-page p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.policy-page ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 24px;
}

.policy-page li {
    margin-bottom: 6px;
}

.policy-page a {
    color: var(--accent);
    text-decoration: none;
}

.policy-page a:hover {
    text-decoration: underline;
}

.policy-page code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px;
    font-size: 0.9rem;
}

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

.policy-table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.policy-table td {
    color: var(--text-secondary);
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner p {
    color: var(--text-secondary);
    margin: 0;
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: none;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

/* ============ FOOTER LINKS ============ */
.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ============ TOGGLE SWITCH ============ */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: var(--accent);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
    .hero h1 { font-size: 2rem; }
    .nav-inner { flex-direction: column; gap: 12px; }
    .features-grid { grid-template-columns: 1fr; }
    .exp-grid { grid-template-columns: 1fr; }
    .btn-lg { padding: 14px 24px; }
    .cookie-banner { flex-direction: column; gap: 12px; text-align: center; }
    .policy-table { font-size: 0.8rem; }
    .policy-table th, .policy-table td { padding: 8px 10px; }
}
