/* ─────────────────────────────────────────
   VibeNote Main Stylesheet
   Brand: Dark SaaS, Gold accents, Manrope
───────────────────────────────────────── */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; background: #0a0d12; color: #f5f7fb; line-height: 1.6; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── Layout ─── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.main-content { min-height: calc(100vh - 74px); }

/* ─── Typography ─── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(28px, 5vw, 52px); }
h2 { font-size: clamp(22px, 3vw, 36px); }
h3 { font-size: clamp(16px, 2vw, 22px); }
p { color: #9ea8bb; }

/* ─── Navigation ─── */
.nav { position: sticky; top: 0; z-index: 100; height: 74px; background: rgba(10,13,18,.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.09); }
.nav-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 20px; font-weight: 800; color: #f5f7fb; }
.nav-logo span { color: #d7b35d; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 500; color: #9ea8bb; transition: color .2s; }
.nav-link:hover { color: #f5f7fb; }
.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-agency { font-size: 13px; color: #9ea8bb; font-weight: 600; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #f5f7fb; border-radius: 2px; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 14px; border: none; transition: all .2s; white-space: nowrap; min-height: 46px; }
.btn-primary { background: #d7b35d; color: #111; }
.btn-primary:hover { background: #f0d48f; }
.btn-secondary { background: rgba(255,255,255,.04); color: #f5f7fb; border: 1px solid rgba(255,255,255,.09); }
.btn-secondary:hover { border-color: rgba(215,179,93,.4); color: #d7b35d; }
.btn-danger { background: rgba(255,138,138,.1); color: #ff8a8a; border: 1px solid rgba(255,138,138,.2); }
.btn-danger:hover { background: rgba(255,138,138,.2); }
.btn-google { background: rgba(255,255,255,.04); color: #f5f7fb; border: 1px solid rgba(255,255,255,.09); }
.btn-google:hover { background: rgba(255,255,255,.08); }
.btn-lg { padding: 16px 32px; font-size: 15px; min-height: 54px; }
.btn-sm { padding: 8px 18px; font-size: 13px; min-height: 36px; }
.btn-xs { padding: 6px 14px; font-size: 12px; min-height: 30px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── Cards ─── */
.card { background: rgba(18,23,34,.86); border: 1px solid rgba(255,255,255,.09); border-radius: 22px; padding: 28px; }
.card-badge { display: inline-block; background: rgba(215,179,93,.12); color: #d7b35d; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; letter-spacing: .05em; text-transform: uppercase; }

/* ─── Grid ─── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Badges ─── */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge-draft { background: rgba(158,168,187,.1); color: #9ea8bb; }
.badge-brief-saved { background: rgba(93,155,255,.1); color: #5d9bff; }
.badge-generated { background: rgba(215,179,93,.1); color: #d7b35d; }
.badge-editing { background: rgba(93,155,255,.1); color: #5d9bff; }
.badge-live { background: rgba(108,224,166,.1); color: #6ce0a6; }
.badge-lg { padding: 8px 20px; font-size: 13px; }

/* ─── Hero ─── */
.hero { padding: 100px 0 80px; text-align: center; background: radial-gradient(circle at top center, rgba(215,179,93,.08), transparent 60%); }
.hero-badge { display: inline-block; background: rgba(215,179,93,.1); border: 1px solid rgba(215,179,93,.2); color: #d7b35d; font-size: 12px; font-weight: 700; padding: 6px 18px; border-radius: 999px; margin-bottom: 24px; letter-spacing: .06em; text-transform: uppercase; }
.hero-heading { font-size: clamp(42px, 7vw, 78px); font-weight: 800; letter-spacing: -0.06em; color: #f5f7fb; margin-bottom: 20px; line-height: 1.05; }
.hero-sub { font-size: clamp(15px, 2vw, 18px); color: #9ea8bb; max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Sections ─── */
.section-workflow, .section-features, .section-pricing-preview, .section-cta, .section-pricing, .section-about, .section-terms { padding: 88px 0; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #d7b35d; margin-bottom: 12px; }
.section-heading { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; color: #f5f7fb; margin-bottom: 16px; }
.section-sub { color: #9ea8bb; max-width: 520px; margin-bottom: 48px; font-size: 16px; }

/* ─── Workflow Steps ─── */
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.workflow-step { background: rgba(18,23,34,.86); border: 1px solid rgba(255,255,255,.09); border-radius: 22px; padding: 28px; }
.step-icon { width: 46px; height: 46px; background: rgba(215,179,93,.1); border: 1px solid rgba(215,179,93,.2); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #d7b35d; margin-bottom: 16px; }
.workflow-step h3 { color: #f5f7fb; margin-bottom: 8px; font-size: 16px; }

/* ─── Feature Cards ─── */
.card-icon { font-size: 24px; margin-bottom: 16px; }
.card h3 { color: #f5f7fb; margin-bottom: 8px; }

/* ─── Pricing ─── */
.card-pricing h3 { font-size: 20px; color: #f5f7fb; margin-bottom: 12px; }
.price { font-size: 32px; font-weight: 800; color: #d7b35d; margin-bottom: 20px; }
.price span { font-size: 14px; color: #9ea8bb; font-weight: 500; }
.price-features { margin-bottom: 24px; }
.price-features li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: #9ea8bb; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.price-features li::before { content: '✓'; color: #6ce0a6; font-weight: 700; }
.card-featured { border-color: rgba(215,179,93,.3); background: rgba(215,179,93,.04); }
.agency-packs { margin-top: 64px; }
.agency-packs h2 { color: #f5f7fb; margin-bottom: 8px; }
.agency-packs p { margin-bottom: 24px; }

/* ─── CTA ─── */
.section-cta { background: radial-gradient(circle at center, rgba(215,179,93,.08), transparent 60%); text-align: center; }
.cta-inner h2 { color: #f5f7fb; margin-bottom: 12px; }
.cta-inner p { margin-bottom: 28px; }

/* ─── Page Hero ─── */
.page-hero { padding: 72px 0 48px; text-align: center; background: radial-gradient(circle at top, rgba(215,179,93,.06), transparent 50%); }
.page-hero h1 { color: #f5f7fb; margin-bottom: 12px; }

/* ─── Auth ─── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: radial-gradient(circle at top, rgba(215,179,93,.06), transparent 50%); }
.auth-card { background: rgba(18,23,34,.86); border: 1px solid rgba(255,255,255,.09); border-radius: 28px; padding: 40px; width: 100%; max-width: 440px; }
.auth-logo { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.auth-logo a { color: #f5f7fb; }
.auth-logo a span { color: #d7b35d; }
.auth-heading { font-size: 24px; color: #f5f7fb; margin-bottom: 6px; }
.auth-sub { color: #9ea8bb; margin-bottom: 28px; font-size: 14px; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.09); }
.auth-divider span { position: relative; background: rgba(18,23,34,.86); padding: 0 12px; color: #9ea8bb; font-size: 12px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-switch { text-align: center; font-size: 13px; color: #9ea8bb; margin-top: 20px; }
.auth-switch a { color: #d7b35d; font-weight: 600; }
.form-footer { display: flex; justify-content: flex-end; margin-top: -8px; }
.form-link { font-size: 13px; color: #9ea8bb; }
.form-link:hover { color: #d7b35d; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #9ea8bb; }
.form-check a { color: #d7b35d; }

/* ─── Forms ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; color: #9ea8bb; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); color: #f5f7fb; padding: 12px 16px; border-radius: 12px; font-family: inherit; font-size: 14px; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: rgba(215,179,93,.4); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(158,168,187,.5); }
.form-group select option { background: #121722; }
.form-hint { font-size: 12px; color: #9ea8bb; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.form-card { background: rgba(18,23,34,.86); border: 1px solid rgba(255,255,255,.09); border-radius: 22px; padding: 32px; max-width: 600px; }
.info-text { color: #9ea8bb; font-size: 14px; margin-bottom: 20px; }

/* ─── Dashboard ─── */
.dashboard { padding: 40px 0 80px; }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; gap: 16px; }
.dashboard-title { font-size: clamp(24px, 3vw, 36px); color: #f5f7fb; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 4px; }
.dashboard-sub { color: #9ea8bb; font-size: 14px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.stat-card { background: rgba(18,23,34,.86); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 24px; }
.stat-number { font-size: 36px; font-weight: 800; color: #d7b35d; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: #9ea8bb; }
.dashboard-section { margin-top: 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 { color: #f5f7fb; font-size: 18px; }
.link { color: #d7b35d; font-size: 13px; font-weight: 600; }

/* ─── Project Cards ─── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.project-card { background: rgba(18,23,34,.86); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 20px; transition: border-color .2s; }
.project-card:hover { border-color: rgba(215,179,93,.2); }
.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; }
.project-name { font-size: 15px; font-weight: 700; color: #f5f7fb; margin-bottom: 4px; }
.project-client { font-size: 13px; color: #9ea8bb; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; }
.project-date { font-size: 12px; color: #9ea8bb; }
.project-actions { display: flex; gap: 8px; }

/* ─── Project Overview ─── */
.back-link { font-size: 13px; color: #9ea8bb; display: inline-block; margin-bottom: 8px; }
.back-link:hover { color: #d7b35d; }
.project-pipeline { display: flex; align-items: center; margin-bottom: 40px; background: rgba(18,23,34,.86); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 20px 28px; }
.pipeline-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.pipeline-icon { width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #9ea8bb; }
.pipeline-step.active .pipeline-icon { background: rgba(215,179,93,.15); border-color: rgba(215,179,93,.4); color: #d7b35d; }
.pipeline-step.done .pipeline-icon { background: rgba(108,224,166,.1); border-color: rgba(108,224,166,.3); color: #6ce0a6; }
.pipeline-label { font-size: 12px; color: #9ea8bb; font-weight: 600; }
.pipeline-line { flex: 1; height: 1px; background: rgba(255,255,255,.09); margin: 0 8px; margin-bottom: 20px; }
.project-actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 40px; }
.action-card { background: rgba(18,23,34,.86); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 24px; text-align: center; transition: all .2s; display: block; }
.action-card:hover { border-color: rgba(215,179,93,.3); background: rgba(215,179,93,.04); }
.action-icon { font-size: 28px; margin-bottom: 12px; }
.action-card h3 { color: #f5f7fb; font-size: 15px; margin-bottom: 6px; }
.action-card p { font-size: 13px; }
.project-meta { background: rgba(18,23,34,.86); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 24px; display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 12px; color: #9ea8bb; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.meta-value { font-size: 14px; color: #f5f7fb; font-weight: 600; }
.meta-mono { font-family: 'Courier New', monospace; font-size: 12px; }
.danger-zone { background: rgba(255,138,138,.04); border: 1px solid rgba(255,138,138,.1); border-radius: 18px; padding: 24px; }
.danger-zone h3 { color: #ff8a8a; font-size: 15px; margin-bottom: 16px; }

/* ─── Brief Link ─── */
.brief-link-box { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 14px 16px; font-family: 'Courier New', monospace; font-size: 13px; color: #d7b35d; word-break: break-all; }

/* ─── Generate / Deploy Status ─── */
.generate-status { padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.status-info { background: rgba(93,155,255,.1); color: #5d9bff; border: 1px solid rgba(93,155,255,.2); }
.status-success { background: rgba(108,224,166,.1); color: #6ce0a6; border: 1px solid rgba(108,224,166,.2); }
.status-error { background: rgba(255,138,138,.1); color: #ff8a8a; border: 1px solid rgba(255,138,138,.2); }

/* ─── Preview Frame ─── */
.preview-frame-wrapper { border: 1px solid rgba(255,255,255,.09); border-radius: 18px; overflow: hidden; height: calc(100vh - 200px); }
.preview-frame { width: 100%; height: 100%; border: none; }

/* ─── Deploy Cards ─── */
.deploy-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; }
.deploy-card { text-align: center; }
.deploy-card-featured { border-color: rgba(215,179,93,.3); background: rgba(215,179,93,.04); }
.deploy-icon { font-size: 40px; margin-bottom: 16px; }
.deploy-card h3 { color: #f5f7fb; margin-bottom: 8px; }
.price-tag { font-size: 20px; font-weight: 800; color: #d7b35d; margin: 16px 0; }

/* ─── Editor Layout ─── */
.editor-layout { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - 74px); overflow: hidden; }
.editor-sidebar { background: #0d1118; border-right: 1px solid rgba(255,255,255,.09); display: flex; flex-direction: column; overflow: hidden; }
.editor-sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.editor-sidebar-header h2 { color: #f5f7fb; font-size: 16px; margin-top: 8px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-message { padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.chat-message.assistant { background: rgba(255,255,255,.04); color: #f5f7fb; }
.chat-message.user { background: rgba(215,179,93,.1); color: #f5f7fb; align-self: flex-end; max-width: 85%; }
.chat-examples { color: #9ea8bb; font-size: 13px; margin-top: 8px; }
.chat-input-area { padding: 16px; border-top: 1px solid rgba(255,255,255,.09); display: flex; flex-direction: column; gap: 10px; }
.chat-input-area textarea { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); color: #f5f7fb; padding: 12px; border-radius: 12px; font-family: inherit; font-size: 14px; resize: none; }
.editor-preview { display: flex; flex-direction: column; overflow: hidden; }
.editor-preview-toolbar { height: 56px; background: #0d1118; border-bottom: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; flex-shrink: 0; }
.preview-title { font-size: 14px; font-weight: 600; color: #f5f7fb; }
.toolbar-actions { display: flex; gap: 8px; }
.editor-iframe { flex: 1; border: none; background: #fff; }
.file-list { flex: 1; overflow-y: auto; padding: 8px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.file-item:hover, .file-item.active { background: rgba(215,179,93,.08); }
.file-name { font-size: 13px; color: #f5f7fb; font-family: 'Courier New', monospace; }
.file-icon { font-size: 16px; }
.code-editor { flex: 1; background: #0a0d12; color: #f5f7fb; border: none; padding: 20px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.7; resize: none; outline: none; }
.loading-text, .empty-text { padding: 16px; font-size: 13px; color: #9ea8bb; }

/* ─── Onboarding ─── */
.onboarding-page { min-height: 100vh; background: radial-gradient(circle at top, rgba(215,179,93,.06), transparent 50%); padding: 40px 24px; }
.onboarding-wrap { max-width: 680px; margin: 0 auto; }
.onboarding-header { text-align: center; margin-bottom: 32px; }
.onboarding-logo { font-size: 22px; font-weight: 800; color: #f5f7fb; margin-bottom: 20px; }
.onboarding-logo span { color: #d7b35d; }
.progress-bar { height: 6px; background: rgba(255,255,255,.06); border-radius: 999px; margin: 0 auto 8px; max-width: 360px; }
.progress-fill { height: 100%; background: #d7b35d; border-radius: 999px; transition: width .4s ease; }
.progress-label { font-size: 13px; color: #9ea8bb; }
.onboarding-card { background: rgba(18,23,34,.86); border: 1px solid rgba(255,255,255,.09); border-radius: 28px; padding: 40px; }
.onboarding-card h2 { color: #f5f7fb; font-size: 24px; margin-bottom: 8px; }
.step-sub { color: #9ea8bb; font-size: 14px; margin-bottom: 28px; }
.onboarding-form { display: flex; flex-direction: column; gap: 20px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; cursor: pointer; font-size: 13px; color: #f5f7fb; transition: border-color .2s; }
.checkbox-item:hover { border-color: rgba(215,179,93,.3); }
.checkbox-item input[type="checkbox"]:checked + span { color: #d7b35d; }

/* ─── Empty State ─── */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { color: #f5f7fb; font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: #9ea8bb; font-size: 14px; margin-bottom: 24px; }

/* ─── Alerts ─── */
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(255,138,138,.1); color: #ff8a8a; border: 1px solid rgba(255,138,138,.2); }
.alert-success { background: rgba(108,224,166,.1); color: #6ce0a6; border: 1px solid rgba(108,224,166,.2); }

/* ─── Templates ─── */
.template-card { padding: 0; overflow: hidden; }
.template-thumb { width: 100%; height: 180px; object-fit: cover; }
.template-thumb-placeholder { width: 100%; height: 180px; background: rgba(255,255,255,.04); }
.template-thumb-frame {
  position: relative;
  height: 220px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    radial-gradient(circle at top right, rgba(215,179,93,.10), transparent 45%),
    #0d1118;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.template-thumb-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(10,13,18,.14) 100%);
  pointer-events: none;
}
.template-thumb-iframe {
  width: 1440px;
  height: 900px;
  border: none;
  transform: scale(0.28);
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
}
.template-preview-frame {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(18,23,34,.86);
  min-height: 78vh;
}
.template-info { padding: 20px; }
.template-info h3 { color: #f5f7fb; margin-bottom: 8px; }
.template-info p { margin-top: 10px; min-height: 42px; }
.template-actions { display: flex; gap: 8px; margin-top: 16px; }

/* ─── Terms ─── */
.terms-content h2 { color: #f5f7fb; font-size: 18px; margin: 32px 0 12px; }
.terms-content p { font-size: 14px; margin-bottom: 12px; }

/* ─── About ─── */
.about-content h2 { color: #f5f7fb; font-size: 22px; margin: 32px 0 12px; }
.about-content p { font-size: 15px; margin-bottom: 16px; }

/* ─── Error Page ─── */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-inner { max-width: 480px; }
.error-code { font-size: 100px; font-weight: 800; color: rgba(215,179,93,.2); line-height: 1; margin-bottom: 16px; }
.error-heading { color: #f5f7fb; margin-bottom: 12px; }
.error-message { color: #9ea8bb; margin-bottom: 32px; }

/* ─── Footer ─── */
.footer { background: #0d1118; border-top: 1px solid rgba(255,255,255,.09); padding: 56px 0 0; margin-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-tagline { color: #9ea8bb; font-size: 13px; margin-top: 10px; max-width: 220px; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h4 { color: #f5f7fb; font-size: 13px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col a { display: block; color: #9ea8bb; font-size: 13px; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: #d7b35d; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; }
.footer-bottom p { font-size: 13px; color: #9ea8bb; }

/* ─── Header Actions ─── */
.header-actions { display: flex; gap: 10px; }

/* ─── Billing ─── */
.billing-plans { margin-bottom: 48px; }
.billing-history h2 { color: #f5f7fb; font-size: 18px; margin-bottom: 20px; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar { height: 300px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .deploy-options { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline-label { display: none; }
  .project-pipeline { padding: 16px; }
}

/* ─── Phase 2 Additions ─── */
.nav-link-active { color: #d7b35d !important; }
.nav-agency-link { text-decoration: none; }
.nav-agency-link:hover .nav-agency { color: #d7b35d; }
.alert-success { background: rgba(108,224,166,.1); color: #6ce0a6; border: 1px solid rgba(108,224,166,.2); padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }

/* ─── Phase 3 Additions ─── */

/* Dashboard stats - 4 columns */
.dashboard-stats { grid-template-columns: repeat(4, 1fr); }

/* Quick links */
.dashboard-quick-links { margin-top: 40px; }
.quick-link-card { background: rgba(18,23,34,.86); border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: all .2s; color: #9ea8bb; font-size: 13px; font-weight: 600; }
.quick-link-card:hover { border-color: rgba(215,179,93,.3); color: #d7b35d; background: rgba(215,179,93,.04); }
.quick-icon { font-size: 24px; }

/* Project filter */
.projects-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn { padding: 7px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,.09); background: transparent; color: #9ea8bb; cursor: pointer; transition: all .2s; text-transform: uppercase; letter-spacing: .04em; }
.filter-btn.active, .filter-btn:hover { border-color: rgba(215,179,93,.4); color: #d7b35d; background: rgba(215,179,93,.06); }

/* Project info grid */
.project-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.meta-list { display: flex; flex-direction: column; gap: 12px; }
.meta-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-label { font-size: 12px; color: #9ea8bb; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.meta-value { font-size: 13px; color: #f5f7fb; font-weight: 600; }

/* Key blur */
.key-blur { filter: blur(4px); transition: filter .2s; user-select: none; }

/* Action card locked state */
.action-card-locked { opacity: .45; pointer-events: none; }
.action-done { display: inline-block; font-size: 11px; color: #6ce0a6; font-weight: 700; margin-top: 8px; }

/* Brief options */
.brief-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.brief-option-card { text-align: center; padding: 32px; }
.brief-option-icon { font-size: 36px; margin-bottom: 16px; }
.brief-option-card h3 { color: #f5f7fb; margin-bottom: 8px; }
.brief-option-card p { font-size: 13px; margin-bottom: 20px; }

/* Brief summary */
.brief-summary { display: flex; flex-direction: column; gap: 10px; }
.brief-row { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.brief-row:last-child { border-bottom: none; }
.brief-label { font-size: 12px; color: #9ea8bb; font-weight: 600; }
.brief-val { font-size: 13px; color: #f5f7fb; max-width: 60%; text-align: right; }

/* Generate layout */
.generate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.generate-info-card h3, .generate-action-card h3 { color: #f5f7fb; margin-bottom: 16px; }
.generate-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.generate-list li { font-size: 14px; color: #9ea8bb; }
.generate-list li::before { content: none; }

/* New project tip */
.new-project-tip { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 20px; background: rgba(215,179,93,.04); border: 1px solid rgba(215,179,93,.1); border-radius: 14px; max-width: 600px; }
.tip-icon { font-size: 24px; flex-shrink: 0; }
.new-project-tip strong { color: #f5f7fb; display: block; margin-bottom: 4px; }
.new-project-tip p { font-size: 13px; margin: 0; }

/* Pipeline checkmark */
.pipeline-step.done .pipeline-icon { font-size: 16px; }

@media (max-width: 768px) {
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .project-info-grid { grid-template-columns: 1fr; }
  .brief-options { grid-template-columns: 1fr; }
  .generate-layout { grid-template-columns: 1fr; }
}

/* ─── Phase 5 Additions ─── */
.gen-progress-bar { height: 8px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.gen-progress-fill { height: 100%; background: linear-gradient(90deg, #d7b35d, #f0d48f); border-radius: 999px; transition: width .8s ease; width: 0%; }
.gen-stage { font-size: 13px; color: #9ea8bb; font-weight: 600; }
.badge-generating { background: rgba(215,179,93,.1); color: #d7b35d; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ─── Phase 7 Additions ─── */
.deploy-plan-badge { font-size: 11px; color: #9ea8bb; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.deploy-features { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.deploy-features li { font-size: 13px; color: #9ea8bb; display: flex; align-items: center; gap: 8px; }
.deploy-features li::before { content: '✓'; color: #6ce0a6; font-weight: 700; }

/* ─── Phase 9 Additions ─── */
.modal-overlay { display: none; }
.modal-overlay.active { display: flex; }
.badge-expired { background: rgba(255,138,138,.1); color: #ff8a8a; }
.license-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.license-free { background: rgba(158,168,187,.08); color: #9ea8bb; border: 1px solid rgba(158,168,187,.15); }
.license-export { background: rgba(93,155,255,.08); color: #5d9bff; border: 1px solid rgba(93,155,255,.15); }
.license-hosted { background: rgba(108,224,166,.08); color: #6ce0a6; border: 1px solid rgba(108,224,166,.15); }

/* ─── Footer Legal Links ─── */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 16px 0; }
.footer-bottom p { font-size: 12px; color: #9ea8bb; }
.footer-bottom a:hover { color: #f5f7fb; }
.noobdev-link { color: #d7b35d !important; font-weight: 700; }
.noobdev-link:hover { color: #f0d48f !important; }
