/* ============================================
   MOVENZA — Design System v2
   ============================================ */

:root {
    --ink: #0d1b1e;
    --ink-2: #273940;
    --muted: #5a6e77;
    --line: #dde8e6;
    --soft: #f2f7f5;
    --paper: #ffffff;
    --brand: #0b746c;
    --brand-dark: #083f3b;
    --brand-light: #e3f2ef;
    --brand-mid: #c8e6e2;
    --accent: #c9972b;
    --accent-light: #fdf3e0;
    --good: #168263;
    --good-bg: #e3f5ee;
    --warn: #b45309;
    --warn-bg: #fef3c7;
    --danger: #9b1c1c;
    --danger-bg: #fef2f2;
    --shadow-sm: 0 2px 8px rgba(11, 116, 108, 0.06);
    --shadow: 0 8px 32px rgba(11, 50, 46, 0.10);
    --shadow-lg: 0 20px 60px rgba(8, 30, 28, 0.14);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --transition: 0.18s ease;
    /* ── Aliases for page-level compatibility ── */
    --text: #0d1b1e;
    --mu: #5a6e77;
    --rs: 8px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(170deg, #f4faf8 0%, #eaf4f1 50%, #f7faf9 100%);
    background-attachment: fixed;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
img { max-width: 100%; display: block; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: min(1200px, calc(100% - 32px));
    margin: 14px auto 0;
    padding: 10px 16px;
    border: 1px solid rgba(221, 232, 230, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    text-decoration: none;
}
.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--brand-light);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.brand strong { display: block; font-size: 1rem; font-weight: 900; color: var(--ink); }
.brand small { display: block; color: var(--muted); font-size: 0.72rem; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.site-nav a {
    padding: 8px 13px;
    border-radius: 8px;
    color: var(--ink-2);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.site-nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.site-nav a.active {
    color: var(--brand-dark);
    background: var(--brand-light);
    font-weight: 900;
}
.nav-sep {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.15);
    margin: 0 4px;
    flex-shrink: 0;
}

.header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.mobile-menu { display: none; }

/* ============================================
   BUTTONS
   ============================================ */
.primary-button,
.ghost-button,
.disabled-button,
.danger-button {
    min-height: 42px;
    border-radius: var(--radius);
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
    padding: 0 16px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}
.primary-button {
    color: white;
    background: var(--brand);
    box-shadow: 0 4px 14px rgba(11, 116, 108, 0.30);
}
.primary-button:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(11, 116, 108, 0.38);
}
.primary-button:active { transform: translateY(0); }
.primary-button.is-loading { opacity: 0.75; pointer-events: none; }
.primary-button.is-disabled, .primary-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ghost-button {
    color: var(--ink);
    background: white;
    border: 1.5px solid var(--line);
}
.ghost-button:hover { background: var(--soft); border-color: var(--brand-mid); color: var(--brand-dark); }
.ghost-button:active { transform: translateY(0); }

.disabled-button {
    color: var(--muted);
    background: var(--soft);
    border: 1.5px solid var(--line);
    cursor: not-allowed;
}
.danger-button {
    color: white;
    background: var(--danger);
    border: 0;
}
.danger-button:hover { background: #7f1d1d; }

.btn-sm { min-height: 34px; padding: 0 11px; font-size: 0.82rem; }
.btn-xs { min-height: 28px; padding: 0 9px; font-size: 0.78rem; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 0.95rem; }
.full { width: 100%; justify-content: center; }
.modal-close {
    width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background: white;
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background var(--transition);
}
.modal-close:hover { background: var(--soft); color: var(--ink); }
.modal-close svg { width: 16px; height: 16px; }

/* SVG sizes in buttons */
.primary-button svg, .ghost-button svg, .disabled-button svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ============================================
   LAYOUT WRAPPERS
   ============================================ */
.hero, .section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}
.app-page, .login-page {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 80px;
}
.app-page.studio-page { max-width: 100%; padding: 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
h1 {
    margin-bottom: 16px;
    font-size: clamp(2.4rem, 4.5vw, 5.5rem);
    line-height: 0.96;
    letter-spacing: -0.02em;
    font-weight: 900;
}
h2 {
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 3vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.01em;
    font-weight: 900;
}
h3 { font-weight: 800; letter-spacing: -0.01em; }
.hero-text { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 540px; }
.muted { color: var(--muted); }

/* ============================================
   HERO (landing)
   ============================================ */
.hero {
    min-height: calc(100vh - 100px);
    padding: 64px 0 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
    align-items: center;
    gap: 48px;
}
.hero-copy { max-width: 640px; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.trust-row span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: var(--radius);
    color: var(--brand-dark);
    background: var(--brand-light);
    font-weight: 800;
    font-size: 0.86rem;
}
.trust-row svg { width: 15px; height: 15px; }

/* Landing product preview */
.product-preview {
    padding: 18px;
    border: 1px solid rgba(221, 232, 230, 0.95);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.85);
    box-shadow: var(--shadow-lg);
}
.preview-top {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}
.preview-top span {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--brand-mid);
}
.preview-top strong { margin-left: auto; color: var(--muted); font-size: 0.82rem; }
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.preview-grid article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    min-height: 110px;
}
.preview-grid small { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.preview-grid strong { display: block; margin: 8px 0 4px; font-size: 1.9rem; font-weight: 900; }
.preview-grid em { color: var(--good); font-style: normal; font-weight: 900; font-size: 0.86rem; }
.preview-body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.6fr);
    gap: 10px;
}
.chart-card, .signal-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}
.chart-head { display: flex; justify-content: space-between; font-weight: 800; font-size: 0.86rem; margin-bottom: 10px; }
.chart-head svg { width: 17px; height: 17px; color: var(--brand); }
.chart {
    height: 200px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: end;
    gap: 8px;
    padding-top: 20px;
}
.chart span {
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, var(--brand), #b7d8d3);
    transition: height 0.6s ease;
}
.signal-card { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.signal-card small { color: var(--muted); font-weight: 800; font-size: 0.78rem; }
.signal-card strong { font-size: 1.1rem; font-weight: 900; line-height: 1.3; }
.signal-card span { color: var(--good); font-weight: 900; font-size: 0.86rem; }

/* ============================================
   SECTIONS (landing)
   ============================================ */
.section { padding: 80px 0; }
.section-heading { max-width: 720px; margin-bottom: 32px; }
.section-heading p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.section-heading.compact { margin-bottom: 20px; }
.section-heading.compact h2 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); }
.feature-band { border-top: 1px solid var(--line); }

.connection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.connection-card {
    min-height: 320px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    transition: transform var(--transition), box-shadow var(--transition);
}
.connection-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.connection-card h3 { margin: 20px 0 10px; font-size: 1.55rem; }
.connection-card p { color: var(--muted); line-height: 1.65; }
.connection-icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 12px;
    color: white;
    background: #1877f2;
}
.connection-icon svg { width: 26px; height: 26px; }
.instagram-card .connection-icon { background: linear-gradient(135deg, #833ab4, #e4405f, #f7b731); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article {
    min-height: 210px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-grid article:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-grid svg { width: 28px; height: 28px; color: var(--brand); }
.feature-grid strong { display: block; margin: 18px 0 8px; font-size: 1.1rem; }
.feature-grid span { display: block; color: var(--muted); line-height: 1.6; font-size: 0.93rem; }

.studio-section .studio-panel {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr minmax(300px, 0.75fr);
    gap: 20px;
}
.studio-section .post-preview {
    min-height: 340px;
    padding: 28px;
    border-radius: var(--radius);
    color: white;
    background: linear-gradient(135deg, rgba(8, 46, 43, 0.96), rgba(11, 116, 108, 0.94)), linear-gradient(45deg, rgba(201,151,43,0.6), transparent);
    display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
}
.studio-section .post-preview small { color: #c5e8e3; }
.studio-section .post-preview h3 { max-width: 400px; margin: 6px 0; font-size: 1.8rem; }
.studio-section .post-preview p { color: #c5e8e3; margin: 0; }

/* ============================================
   LOGIN
   ============================================ */
.login-page { display: grid; place-items: center; min-height: calc(100vh - 100px); }
.login-card {
    width: min(900px, 100%);
    display: grid;
    grid-template-columns: 1fr minmax(340px, 0.65fr);
    align-items: center;
    gap: 48px;
}
.login-card h1 { font-size: clamp(2.2rem, 4vw, 4rem); }
.login-form {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-lg);
}
.login-form label { display: block; margin: 14px 0 6px; font-weight: 800; font-size: 0.88rem; color: var(--ink-2); }
.login-form .primary-button { width: 100%; margin-top: 18px; }
.login-error {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid #fecaca;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ============================================
   APP CHROME
   ============================================ */
.app-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-top: 4px;
}
.app-hero h1 { font-size: clamp(2rem, 3.5vw, 3.6rem); margin-bottom: 10px; }
.app-hero .hero-text { font-size: 0.96rem; }

.app-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.5;
}
.app-alert strong { font-weight: 900; display: block; }
.app-alert.success { color: var(--brand-dark); background: var(--good-bg); border: 1px solid var(--brand-mid); }
.app-alert.error { color: var(--danger); background: var(--danger-bg); border: 1px solid #fecaca; }
.app-alert.warning { color: var(--warn); background: var(--warn-bg); border: 1px solid #fde68a; }

/* ============================================
   METRICS GRID
   ============================================ */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.metric-grid.wide { grid-template-columns: repeat(6, 1fr); }
.metric-grid.compact { grid-template-columns: repeat(5, 1fr); }

.metric-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.metric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), #5ecec7);
    opacity: 0;
    transition: opacity var(--transition);
}
.metric-card:hover::before { opacity: 1; }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-card svg { width: 24px; height: 24px; color: var(--brand); }
.metric-card small { display: block; margin: 12px 0 4px; color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.metric-card strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1; color: var(--ink); }
.metric-card em { display: block; margin-top: 4px; font-style: normal; font-size: 0.82rem; font-weight: 800; color: var(--good); }
.metric-card em.negative { color: var(--danger); }

/* Backwards compat */
.metric-grid article { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; min-height: 130px; }
.metric-grid svg { width: 24px; height: 24px; color: var(--brand); }
.metric-grid small { display: block; margin: 12px 0 4px; color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.metric-grid strong { display: block; font-size: 1.9rem; font-weight: 900; }
.pro-metrics { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }

/* ============================================
   APP CARDS (Dashboard)
   ============================================ */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.app-card {
    min-height: 240px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.app-card > svg { width: 30px; height: 30px; color: var(--brand); }
.app-card strong { display: block; font-size: 1.05rem; font-weight: 900; }
.app-card span { display: block; color: var(--muted); line-height: 1.55; font-size: 0.9rem; }
.app-card .badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: 20px;
    background: var(--good-bg); color: var(--good);
    font-size: 0.76rem; font-weight: 800;
}
.app-card .badge.pending { background: var(--warn-bg); color: var(--warn); }

.app-section {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

/* Page list */
.page-list { display: grid; gap: 10px; }
.page-option {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: white;
    transition: border-color var(--transition), background var(--transition);
}
.page-option.selected { border-color: var(--brand); background: var(--brand-light); }
.page-option img, .page-avatar {
    width: 50px; height: 50px;
    border-radius: 10px;
    object-fit: cover;
}
.page-avatar { display: grid; place-items: center; background: #1877f2; color: white; }
.page-avatar svg { width: 22px; height: 22px; }
.page-option strong, .page-option small { display: block; }
.page-option strong { font-weight: 800; }
.page-option small { color: var(--muted); font-size: 0.82rem; }

.empty-state {
    min-height: 160px;
    padding: 28px;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-lg);
    background: var(--soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}
.empty-state svg { width: 32px; height: 32px; color: var(--brand); opacity: 0.6; }
.empty-state strong { display: block; font-weight: 800; }
.empty-state span { display: block; color: var(--muted); font-size: 0.9rem; }

/* ============================================
   FORMS
   ============================================ */
label {
    display: block;
    margin: 12px 0 5px;
    color: var(--ink-2);
    font-weight: 800;
    font-size: 0.86rem;
}
input, select, textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 13px;
    background: white;
    color: var(--ink);
    font-size: 0.93rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11, 116, 108, 0.10);
}
textarea { min-height: 120px; resize: vertical; }
.field-help {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}
.form-divider { height: 1px; margin: 22px 0; background: var(--line); }
.char-count {
    text-align: right;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    margin-top: 3px;
}
.char-count.over { color: var(--danger); }

/* AI field row */
.ai-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 0;
}
.ai-field-row label { margin: 0; }
.ai-field-row .ai-improve-btn {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 6px;
    border: 1.5px solid var(--brand-mid);
    background: var(--brand-light);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.ai-improve-btn:hover { background: var(--brand-mid); }
.ai-improve-btn svg { width: 13px; height: 13px; }
.ai-improve-btn .spin { display: none; }
.ai-improve-btn.loading .spin { display: inline-block; animation: spin 0.8s linear infinite; }
.ai-improve-btn.loading .icon { display: none; }

/* ============================================
   STUDIO — Full Pro Layout
   ============================================ */
.studio-page-wrap {
    width: min(1340px, calc(100% - 24px));
    margin: 0 auto;
    padding: 28px 0 60px;
}

.studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.studio-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; }
.studio-header-left { display: flex; align-items: center; gap: 14px; }
.studio-header-right { display: flex; align-items: center; gap: 10px; }
.page-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #1877f2;
    color: white;
    font-weight: 800;
    font-size: 0.82rem;
}
.page-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.page-chip svg { width: 14px; height: 14px; }

/* Post type picker */
.post-type-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.type-card {
    padding: 14px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    text-align: left;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.type-card:hover { border-color: var(--brand-mid); background: var(--brand-light); transform: translateY(-1px); }
.type-card.active {
    border-color: var(--brand);
    background: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(11, 116, 108, 0.12);
}
.type-card svg { width: 20px; height: 20px; color: var(--brand); }
.type-card strong { display: block; font-size: 0.88rem; font-weight: 900; color: var(--ink); }
.type-card span { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.3; }

/* Studio split layout */
.studio-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    align-items: start;
}

/* Composer card */
.composer-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.composer-section {
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}
.composer-section:last-child { border-bottom: 0; }
.composer-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.composer-section-head h3 { margin: 0; font-size: 0.94rem; font-weight: 900; color: var(--ink-2); }
.composer-section-head .section-actions { display: flex; gap: 6px; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 20px;
    background: var(--good-bg);
    color: var(--good);
    font-size: 0.72rem;
    font-weight: 800;
}
.section-badge svg { width: 11px; height: 11px; }

/* Stepper */
.stepper-row {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    align-items: center;
}
.stepper-row .ghost-button { padding: 0; font-size: 1.3rem; width: 44px; }
.carousel-count-field { margin-bottom: 12px; }

/* Media toolbox */
.media-toolbox {
    padding: 16px;
    border: 1.5px dashed var(--brand-mid);
    border-radius: var(--radius);
    background: #f5faf9;
    margin-top: 6px;
}
.media-toolbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.media-toolbox-head h4 { margin: 0; font-size: 0.9rem; font-weight: 900; }
.media-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0;
}
.media-tool-grid .ghost-button { min-height: 46px; flex-direction: column; gap: 4px; font-size: 0.8rem; }
.media-tool-grid .ghost-button svg { width: 20px; height: 20px; }

/* Composer actions */
.composer-actions {
    padding: 16px 22px;
    background: var(--soft);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.composer-actions .primary-button { flex: 1; min-width: 140px; }
.composer-actions .ghost-button { min-width: 44px; }
.action-icon-btn {
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: var(--radius);
    border: 1.5px solid var(--line);
    background: white;
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.action-icon-btn:hover { background: var(--soft); color: var(--brand); border-color: var(--brand-mid); }
.action-icon-btn svg { width: 17px; height: 17px; }

/* Status bar */
.studio-status-bar {
    padding: 10px 22px;
    background: var(--good-bg);
    border-top: 1px solid var(--brand-mid);
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 0.86rem;
    display: none;
    align-items: center;
    gap: 8px;
}
.studio-status-bar.active { display: flex; }
.studio-status-bar.error { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }
.studio-status-bar svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================
   PREVIEW PANEL (Studio right)
   ============================================ */
.preview-panel {
    position: sticky;
    top: 94px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.preview-panel-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.preview-panel-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--soft);
}
.preview-panel-head strong { font-size: 0.88rem; font-weight: 900; }

/* Phone mockup */
.social-phone {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}
.social-post-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}
.preview-page-img {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--brand-light);
    object-fit: cover;
    padding: 4px;
}
.social-post-head strong { display: block; font-size: 0.88rem; font-weight: 800; }
.social-post-head small { display: block; font-size: 0.75rem; color: var(--muted); }
.social-post-head .post-more { margin-left: auto; color: var(--muted); }
.social-post-head .post-more svg { width: 16px; height: 16px; }

/* Generated media */
.generated-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #09302d 0%, #0b746c 60%, #c9972b 100%);
    display: none;
}
.generated-media.photo, .generated-media.carousel { display: block; aspect-ratio: 1 / 1; }
.generated-media.reel, .generated-media.story, .generated-media.video { display: block; aspect-ratio: 9 / 16; max-height: 340px; }
.generated-media.has-media { display: block; }

.uploaded-media {
    position: absolute; inset: 0; z-index: 2;
    display: none; background: #000;
}
.uploaded-media.active { display: block; }
.uploaded-media img, .uploaded-media video { width: 100%; height: 100%; object-fit: contain; }

.media-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; color: rgba(255,255,255,0.6);
}
.media-placeholder svg { width: 36px; height: 36px; }
.media-placeholder span { font-size: 0.82rem; font-weight: 700; }

.media-badge {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    padding: 5px 9px;
    border-radius: 6px;
    color: white;
    background: rgba(8, 31, 28, 0.78);
    font-weight: 800; font-size: 0.76rem;
}
.meta-music-note {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    background: #f0f9f7;
    font-size: 0.82rem; font-weight: 700;
}
.meta-music-note svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }

/* Carousel strip */
.carousel-strip {
    display: none;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    background: var(--soft);
    gap: 6px;
    grid-template-columns: repeat(6, 1fr);
}
.carousel-thumb-wrap { position: relative; }
.carousel-strip .carousel-thumb-wrap > button:first-child {
    width: 100%; aspect-ratio: 1/1;
    padding: 0; border: 2px solid transparent;
    border-radius: 6px; background: white; overflow: hidden;
    font-weight: 900; color: var(--ink-2); font-size: 0.76rem;
}
.carousel-strip .carousel-thumb-wrap > button:first-child:hover { border-color: var(--brand); }
.carousel-delete {
    position: absolute; top: -5px; right: -5px; z-index: 3;
    width: 20px; height: 20px; min-height: 20px;
    padding: 0; border-radius: 50%;
    border: 1.5px solid white;
    background: var(--danger); color: white;
    font-size: 14px; line-height: 1; cursor: pointer;
    display: grid; place-items: center;
}
.carousel-strip img, .carousel-strip video { width: 100%; height: 100%; object-fit: cover; }

/* Post caption in preview */
.social-caption { padding: 12px 14px 8px; }
.social-caption h3 { margin-bottom: 6px; font-size: 1.05rem; line-height: 1.3; font-weight: 800; }
.social-caption p { color: var(--ink-2); line-height: 1.5; font-size: 0.88rem; margin: 0; }
.preview-link {
    display: inline-block; max-width: 100%;
    margin: 6px 0; color: var(--brand); font-weight: 700; font-size: 0.86rem;
    overflow-wrap: anywhere;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag-row span {
    padding: 4px 8px; border-radius: 20px;
    background: var(--brand-light); color: var(--brand-dark);
    font-size: 0.76rem; font-weight: 800;
}
.social-caption .tag-row span { background: var(--brand-light); }
.social-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    padding: 2px 0;
}
.social-actions span {
    display: flex; align-items: center; justify-content: center;
    gap: 5px; padding: 10px;
    color: var(--muted); font-weight: 700; font-size: 0.82rem;
    cursor: pointer; transition: color var(--transition);
}
.social-actions span:hover { color: var(--brand); }
.social-actions svg { width: 15px; height: 15px; }

/* AI Kit panel */
.ai-kit-panel {
    padding: 14px 16px;
}
.ai-kit-panel h4 { margin: 0 0 12px; font-size: 0.88rem; font-weight: 900; color: var(--ink-2); }
.kit-grid { display: grid; gap: 8px; }
.kit-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--soft);
    border: 1px solid var(--line);
}
.kit-item small { display: block; color: var(--brand); font-weight: 800; font-size: 0.72rem; text-transform: uppercase; margin-bottom: 4px; }
.kit-item p { margin: 0; font-size: 0.84rem; line-height: 1.4; color: var(--ink-2); }

/* Studio insights (below form) */
.studio-insights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.studio-insights article {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
}
.studio-insights small { display: block; color: var(--muted); font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; }
.studio-insights strong { display: block; margin: 8px 0 5px; font-size: 1.25rem; font-weight: 900; }
.studio-insights span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }

/* Optional fields */
.optional-fields {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.optional-fields summary {
    padding: 12px 14px;
    background: var(--soft);
    cursor: pointer;
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--ink-2);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.optional-fields summary::-webkit-details-marker { display: none; }
.optional-fields summary svg { width: 16px; height: 16px; color: var(--brand); }
.optional-fields[open] summary { border-bottom: 1px solid var(--line); }
.optional-fields .inner { padding: 14px; }

/* Schedule modal */
.schedule-modal-backdrop {
    position: fixed; inset: 0; z-index: 200;
    display: none; place-items: center;
    padding: 20px;
    background: rgba(8, 20, 18, 0.65);
    backdrop-filter: blur(12px);
}
.schedule-modal-backdrop.active { display: grid; }
.schedule-modal {
    width: min(480px, 100%);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.schedule-modal-head {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.schedule-modal-head h3 { margin: 0; font-size: 1.05rem; }
.schedule-modal-body { padding: 20px 22px; }
.schedule-modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================
   ANALYTICS
   ============================================ */
.analytics-page { }

.analytics-header-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}
.page-profile { display: flex; align-items: center; gap: 14px; }
.page-profile img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.page-profile-info strong { display: block; font-size: 1.05rem; font-weight: 900; }
.page-profile-info span { display: block; color: var(--muted); font-size: 0.86rem; }
.page-profile-info a { color: var(--brand); font-weight: 700; font-size: 0.82rem; }
.analytics-actions { display: flex; gap: 10px; }

.analytics-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 16px;
    margin-bottom: 20px;
}
.analytics-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}
.analytics-card h3 { margin: 0 0 16px; font-size: 0.96rem; font-weight: 900; color: var(--ink-2); }
.chart-wrap { position: relative; }
.chart-wrap canvas { width: 100% !important; }

/* AI insights */
.ai-insight-card {
    padding: 22px;
    border: 1px solid var(--brand-mid);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f0faf8, #e8f5f2);
}
.ai-insight-card .insight-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ai-insight-card .insight-head svg { width: 22px; height: 22px; color: var(--brand); }
.ai-insight-card .insight-head h3 { margin: 0; font-size: 0.96rem; font-weight: 900; }
.ai-insight-list { display: grid; gap: 10px; }
.ai-insight-item {
    padding: 12px 14px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--brand-mid);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ink-2);
}
.ai-insight-item .label {
    display: block;
    font-weight: 900;
    font-size: 0.76rem;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.ai-insight-item strong { color: var(--ink); }
.confidence-bar-wrap { margin-top: 6px; }
.confidence-bar {
    height: 5px; border-radius: 3px;
    background: var(--line);
    overflow: hidden;
    margin-top: 4px;
}
.confidence-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand), #5ecec7);
    transition: width 0.8s ease;
}

/* Post performance list */
.post-insight-list { display: grid; gap: 12px; }
.post-insight-list article {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    transition: transform var(--transition), box-shadow var(--transition);
}
.post-insight-list article:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.post-insight-list .post-img {
    width: 90px; height: 90px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--brand-light);
}
.post-insight-list .post-img-placeholder {
    width: 90px; height: 90px;
    border-radius: var(--radius);
    background: var(--brand-light);
    display: grid;
    place-items: center;
    color: var(--brand);
}
.post-insight-list .post-img-placeholder svg { width: 30px; height: 30px; }
.post-insight-list strong { display: block; font-weight: 800; font-size: 0.92rem; margin-bottom: 2px; line-height: 1.4; }
.post-insight-list small { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 8px; }
.post-metric-row { display: flex; flex-wrap: wrap; gap: 5px; }
.post-metric-row span {
    padding: 4px 8px;
    border-radius: 20px;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: 0.76rem; font-weight: 800;
}
.post-metric-row span.best { background: var(--good-bg); color: var(--good); }
.post-insight-list em { display: block; margin-top: 6px; color: var(--danger); font-style: normal; font-size: 0.78rem; }
.post-rank {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 7px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 900;
    background: var(--accent-light); color: var(--accent);
    margin-bottom: 5px;
}
.post-rank svg { width: 11px; height: 11px; }

/* ============================================
   MODALS
   ============================================ */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 150;
    display: none; place-items: center;
    padding: 20px;
    background: rgba(8, 20, 18, 0.65);
    backdrop-filter: blur(12px);
}
.modal-backdrop.active { display: grid; }
.modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    position: relative;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: 0 30px 90px rgba(0,0,0,0.22);
}
.modal-close { position: absolute; top: 18px; right: 18px; }
.modal-head { display: flex; align-items: center; gap: 14px; padding-right: 52px; margin-bottom: 22px; }
.modal-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: #1877f2;
    display: grid; place-items: center;
    color: white;
}
.modal-icon svg { width: 22px; height: 22px; }
.modal-icon.instagram { background: linear-gradient(135deg, #833ab4, #e4405f, #f7b731); }
.modal-icon.setup { background: var(--brand-dark); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.modal-note {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.88rem;
}

/* ============================================
   ADMIN SETUP
   ============================================ */
.setup-modal-grid {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 0.75fr);
    gap: 24px;
}
.setup-guide { display: grid; gap: 10px; }
.setup-guide article {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px; border-radius: var(--radius);
    background: var(--soft); border: 1px solid var(--line);
}
.setup-guide strong {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 6px;
    background: var(--brand); color: white;
    font-size: 0.82rem; flex-shrink: 0;
}
.setup-guide h3 { margin: 0 0 4px; font-size: 0.92rem; }
.setup-guide p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.setup-status {
    display: none;
    margin: 12px 0 0; padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.88rem;
}
.setup-status.success { display: block; color: var(--brand-dark); background: var(--good-bg); border: 1px solid var(--brand-mid); }
.setup-status.error { display: block; color: var(--danger); background: var(--danger-bg); border: 1px solid #fecaca; }
.studio-status { margin-top: 0; }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 999;
    display: flex; flex-direction: column-reverse; gap: 10px;
    pointer-events: none;
}
.toast {
    min-width: 280px; max-width: 400px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--ink);
    color: white;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.4;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: flex-start; gap: 10px;
    animation: toastIn 0.28s ease;
    pointer-events: auto;
}
.toast svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.toast.success { background: var(--brand-dark); }
.toast.error { background: #7f1d1d; }
.toast.warning { background: #92400e; }
.toast.out { animation: toastOut 0.22s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ============================================
   SPINNER
   ============================================ */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    width: 16px; height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ============================================
   SUBSCRIBE / SUPPORT
   ============================================ */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 10px;
}
.plan-card {
    padding: 28px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 14px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan-card.featured {
    border-color: var(--brand);
    background: linear-gradient(135deg, #f0faf8, white);
}
.plan-card .plan-name { font-size: 1.2rem; font-weight: 900; }
.plan-card .plan-price { font-size: 2.5rem; font-weight: 900; line-height: 1; }
.plan-card .plan-price small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.plan-card .plan-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.plan-card .plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-card .plan-features li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.plan-card .plan-features svg { width: 15px; height: 15px; color: var(--good); flex-shrink: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .studio-split { grid-template-columns: 1fr 340px; }
    .metric-grid.wide { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
    .site-header { flex-wrap: wrap; gap: 12px; }
    .site-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 52px; }
    .product-preview { max-width: 700px; margin: 0 auto; }
    .app-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .pro-metrics { grid-template-columns: repeat(3, 1fr); }
    .metric-grid.wide { grid-template-columns: repeat(3, 1fr); }
    .analytics-grid-2 { grid-template-columns: 1fr; }
    .setup-modal-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .connection-grid { grid-template-columns: 1fr; }
    .plan-grid { grid-template-columns: 1fr 1fr; }
    .post-type-strip { grid-template-columns: repeat(4, 1fr); }
    .studio-split { grid-template-columns: 1fr; }
    .preview-panel { position: static; }
    .studio-insights { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .site-header { width: calc(100% - 20px); min-height: 60px; flex-wrap: nowrap; padding: 8px 12px; }
    .site-nav, .header-actions { display: none; }
    .mobile-menu { display: block; flex-shrink: 0; }
    .brand { min-width: auto; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-mark img { width: 26px; height: 26px; }
    .mobile-menu summary {
        min-height: 40px; padding: 0 12px;
        border: 1.5px solid var(--line); border-radius: 8px;
        background: white; color: var(--ink); font-weight: 800;
        display: inline-flex; align-items: center; gap: 7px;
        list-style: none; cursor: pointer;
    }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu summary svg { width: 17px; height: 17px; }
    .mobile-menu-panel {
        position: absolute; top: calc(100% + 8px); right: 0;
        width: min(80vw, 300px);
        padding: 8px;
        border: 1px solid var(--line); border-radius: var(--radius-lg);
        background: rgba(255,255,255,0.98);
        box-shadow: var(--shadow-lg);
        display: grid; gap: 3px; z-index: 200;
    }
    .mobile-menu { position: relative; }
    .mobile-menu-panel a {
        min-height: 42px; padding: 0 12px;
        border-radius: 8px; display: flex; align-items: center;
        color: var(--ink-2); font-weight: 800; font-size: 0.9rem;
    }
    .mobile-menu-panel a.active, .mobile-menu-panel a:hover { color: var(--brand-dark); background: var(--brand-light); }

    .hero { padding: 40px 0 36px; }
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.9rem; }
    .app-page, .login-page { padding: 40px 0 60px; width: calc(100% - 24px); }
    .app-hero { flex-direction: column; }
    .app-hero h1 { font-size: 2rem; }
    .app-grid { grid-template-columns: 1fr; }
    .metric-grid, .pro-metrics, .metric-grid.wide { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; }
    .plan-grid { grid-template-columns: 1fr; }
    .studio-split { grid-template-columns: 1fr; }
    .post-type-strip { grid-template-columns: repeat(2, 1fr); }
    .studio-insights { grid-template-columns: 1fr 1fr; }
    .preview-grid { grid-template-columns: 1fr; }
    .preview-body { grid-template-columns: 1fr; }
    .analytics-header-band { flex-direction: column; align-items: flex-start; }
    .composer-actions { flex-wrap: wrap; }
    .composer-actions .primary-button { flex: 1 1 auto; }
    .login-card { grid-template-columns: 1fr; min-height: auto; }
    .setup-modal-grid { grid-template-columns: 1fr; }
    .post-insight-list article { grid-template-columns: 1fr; }
    .post-insight-list .post-img, .post-insight-list .post-img-placeholder { width: 100%; height: 180px; }
    .toast-container { right: 12px; bottom: 12px; left: 12px; }
    .toast { min-width: 0; }
    .media-tool-grid { grid-template-columns: 1fr; }
    .section { padding: 54px 0; }
}
