/* Blotato Clone UI: two surfaces — marketing (dark) + authenticated app (light DM Sans). */

:root {
    --c-white: #ffffff;
    --c-bg: #ffffff;
    --c-bg-muted: #f8f9fa;
    --c-bg-soft: #f1f3f5;
    --c-border: #e9ecef;
    --c-border-strong: #dee2e6;
    --c-text: #0c0d0e;
    --c-text-muted: #495057;
    --c-text-dim: #868e96;

    --c-purple: #7c3aed;
    --c-purple-600: #6d28d9;
    --c-purple-100: #ede9fe;
    --c-blue: #4263eb;
    --c-blue-50: #edf2ff;
    --c-pink: #e64980;
    --c-red: #fa5252;
    --c-orange: #fd7e14;
    --c-amber-bg: #fff4e6;
    --c-green: #37b24d;

    --m-bg: #0b0918;
    --m-bg-2: #141126;
    --m-border: #2a2342;
    --m-text: #f4f1fb;
    --m-text-dim: #b8b1d4;
    --m-pink: #ff3ea5;
    --m-violet: #7c3aed;

    --r-sm: 6px;
    --r: 10px;
    --r-lg: 14px;
    --shadow-1: 0 1px 2px rgba(12,13,14,0.06), 0 0 0 1px rgba(12,13,14,0.04);
    --shadow-2: 0 4px 14px rgba(12,13,14,0.08), 0 0 0 1px rgba(12,13,14,0.04);

    --rail-w: 64px;
    --rail-icon: 22px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--c-bg); color: var(--c-text);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px; line-height: 1.5;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

a { color: var(--c-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 { margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

button, .btn { font-family: inherit; cursor: pointer; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ========== MARKETING (public) dark shell ========== */

body.marketing { background: var(--m-bg); color: var(--m-text); }
body.marketing a { color: var(--m-pink); }

.marketing-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(11, 9, 24, 0.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--m-border);
}
.marketing-header-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
}
.marketing-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.15rem; color: var(--m-text); letter-spacing: -0.02em;
}
.marketing-brand img { width: 28px; height: 28px; border-radius: 50%; }
.marketing-nav { display: flex; gap: 6px; align-items: center; }
.marketing-nav a {
    color: var(--m-text-dim); padding: 8px 12px; border-radius: 8px; font-size: 0.92rem;
}
.marketing-nav a:hover { color: var(--m-text); background: rgba(255,255,255,0.04); text-decoration: none; }
.marketing-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--m-pink); color: #fff !important;
    padding: 10px 18px; border-radius: 999px; font-weight: 600;
    border: none; font-size: 0.95rem;
}
.marketing-cta:hover { background: #ff1f94; text-decoration: none; }

.marketing-strip {
    text-align: center; padding: 10px 16px;
    background: linear-gradient(90deg, rgba(255,62,165,0.12), rgba(124,58,237,0.12));
    border-top: 1px solid var(--m-border); border-bottom: 1px solid var(--m-border);
    font-size: 0.88rem; color: var(--m-text);
}
.marketing-strip b { color: var(--m-pink); }

.marketing-hero-wrap { max-width: 1100px; margin: 0 auto; padding: 80px 24px 64px; text-align: center; }
.marketing-eyebrow {
    display: inline-block; background: rgba(255,62,165,0.12); color: var(--m-pink);
    padding: 6px 14px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 20px;
}
.marketing-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1;
    letter-spacing: -0.03em; margin-bottom: 16px;
}
.marketing-hero-title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--m-pink), #c084fc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.marketing-hero-copy { font-size: 1.1rem; color: var(--m-text-dim); max-width: 640px; margin: 0 auto 28px; }
.marketing-hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.marketing-hero-cta .marketing-cta { padding: 14px 28px; font-size: 1rem; }
.marketing-hero-cta .marketing-link {
    color: var(--m-text-dim); padding: 14px 20px; border-radius: 999px;
    border: 1px solid var(--m-border); font-weight: 500;
}

.marketing-section { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.marketing-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em;
    text-align: center; margin-bottom: 16px;
}
.marketing-section .subtitle { text-align: center; color: var(--m-text-dim); margin-bottom: 40px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.m-card { background: var(--m-bg-2); border: 1px solid var(--m-border); border-radius: var(--r-lg); padding: 24px; }
.m-card h3 { color: var(--m-text); margin-bottom: 10px; font-size: 1.1rem; }
.m-card p, .m-card li { color: var(--m-text-dim); font-size: 0.95rem; }
.m-card p { margin: 0; }
.m-card ul { margin: 0; padding-left: 18px; }
.m-card ul li { margin-bottom: 6px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.pricing-card {
    background: linear-gradient(180deg, rgba(124,58,237,0.15), rgba(124,58,237,0.03));
    border: 1px solid var(--m-border); border-radius: var(--r-lg);
    padding: 28px 24px; display: flex; flex-direction: column;
}
.pricing-card.is-featured {
    background: linear-gradient(180deg, rgba(255,62,165,0.2), rgba(255,62,165,0.04));
    border-color: rgba(255,62,165,0.4); transform: translateY(-6px);
}
.pricing-tier { font-size: 1.2rem; font-weight: 700; color: var(--m-text); }
.pricing-price { font-size: 2.2rem; font-weight: 800; color: var(--m-text); margin: 6px 0 20px; letter-spacing: -0.02em; }
.pricing-price small { font-size: 1rem; color: var(--m-text-dim); font-weight: 500; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 22px; color: var(--m-text-dim); font-size: 0.93rem; }
.pricing-features li { padding: 6px 0 6px 24px; position: relative; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--m-pink); font-weight: 700; }

.marketing-footer { border-top: 1px solid var(--m-border); background: var(--m-bg-2); padding: 48px 24px; }
.marketing-footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.marketing-footer h4 { color: var(--m-text); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.marketing-footer ul { list-style: none; padding: 0; margin: 0; }
.marketing-footer li { margin-bottom: 8px; }
.marketing-footer a { color: var(--m-text-dim); font-size: 0.92rem; }
.marketing-footer a:hover { color: var(--m-text); }
.marketing-footer-copy { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--m-border); color: var(--m-text-dim); font-size: 0.85rem; }

.marketing-prose { max-width: 780px; margin: 0 auto; padding: 64px 24px; color: var(--m-text); }
.marketing-prose h1 { font-size: 2.4rem; letter-spacing: -0.03em; margin-bottom: 12px; }
.marketing-prose h2 { font-size: 1.4rem; margin-top: 32px; }
.marketing-prose p, .marketing-prose li { color: var(--m-text-dim); }
.marketing-prose ul { padding-left: 22px; }
.marketing-prose a { color: var(--m-pink); }
.faq-item { border-top: 1px solid var(--m-border); padding: 18px 0; }
.faq-item h3 { margin: 0 0 6px; color: var(--m-text); font-size: 1.05rem; }
.faq-item p { color: var(--m-text-dim); margin: 0; }

/* ========== APP shell ========== */

body.app { background: var(--c-bg); color: var(--c-text); }

.app-shell { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }

.rail {
    background: var(--c-bg); border-right: 1px solid var(--c-border);
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 0; gap: 6px;
    position: sticky; top: 0; height: 100vh;
}
.rail-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    margin-bottom: 14px;
    background: #e7f5ff; object-fit: cover;
    border: 1px solid var(--c-border);
}
.rail-link {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; color: var(--c-text-muted); position: relative;
}
.rail-link:hover { background: var(--c-bg-soft); color: var(--c-text); text-decoration: none; }
.rail-link.is-active { background: var(--c-blue-50); color: var(--c-blue); }
.rail-link svg { width: var(--rail-icon); height: var(--rail-icon); stroke-width: 1.75; }
.rail-link[data-tip]::after {
    content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
    background: #000; color: #fff; padding: 6px 10px; border-radius: 6px;
    font-size: 0.82rem; white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity 120ms ease; z-index: 100;
}
.rail-link[data-tip]:hover::after { opacity: 0.95; }
.rail-spacer { flex: 1; }
.rail-bottom { display: flex; flex-direction: column; gap: 6px; align-items: center; padding-bottom: 10px; }
.rail-bottom .rail-link.is-help { color: var(--c-pink); }
.rail-bottom .rail-link.is-settings { color: var(--c-blue); }

.app-main { min-width: 0; padding: 32px 48px 64px; max-width: 100%; }
.app-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.app-title h1 { font-size: 2rem; letter-spacing: -0.02em; }
.app-title .app-hint { display: inline-block; color: var(--c-text-muted); text-decoration: underline; font-size: 0.95rem; }

.tab-bar {
    display: inline-flex; gap: 4px; background: var(--c-bg-soft);
    padding: 4px; border-radius: 8px; margin-bottom: 22px;
}
.tab-bar a, .tab-bar button {
    padding: 8px 16px; border-radius: 6px; background: transparent; border: none;
    font-weight: 600; font-size: 0.92rem; color: var(--c-text-muted); text-decoration: none; cursor: pointer;
}
.tab-bar a.is-active, .tab-bar button.is-active {
    background: var(--c-white); color: var(--c-text); box-shadow: var(--shadow-1);
}
.tab-bar a:hover { color: var(--c-text); text-decoration: none; }

.app-meta-row { display: flex; align-items: center; gap: 12px; }
.app-pill { background: var(--c-bg-soft); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; font-weight: 600; color: var(--c-text); }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 8px; padding: 9px 16px;
    font-weight: 600; font-size: 0.93rem; line-height: 1.2;
    border: 1px solid var(--c-border-strong);
    background: var(--c-white); color: var(--c-text);
    text-decoration: none;
}
.btn:hover { background: var(--c-bg-soft); text-decoration: none; }
.btn-primary { background: var(--c-purple); color: #fff; border-color: var(--c-purple); }
.btn-primary:hover { background: var(--c-purple-600); color: #fff; }
.btn-ghost { border-color: transparent; }
.btn-danger { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.btn-sm { padding: 6px 10px; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--c-text); }
.field label .req { color: var(--c-red); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], textarea, select {
    width: 100%; font: inherit; color: var(--c-text); background: var(--c-white);
    border: 1px solid var(--c-border-strong); border-radius: 8px;
    padding: 9px 12px;
}
input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--c-purple-100); border-color: var(--c-purple);
}
textarea { min-height: 120px; resize: vertical; }
.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--c-text-dim); }
.input-with-icon input { padding-left: 38px; }

.table { width: 100%; border-collapse: collapse; background: var(--c-white); }
.table th, .table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 0.92rem; }
.table th { font-weight: 700; font-size: 0.88rem; }
.table tbody tr:hover { background: var(--c-bg-muted); }

.empty-state { padding: 40px 20px; text-align: center; color: var(--c-text-muted); }
.empty-state a { color: var(--c-purple); text-decoration: underline; }

.card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 20px; }
.card + .card { margin-top: 14px; }

.warn-box {
    background: var(--c-amber-bg); border-radius: var(--r);
    padding: 14px 16px; font-size: 0.9rem; color: #804a00; margin-bottom: 20px;
}
.warn-box strong { color: var(--c-orange); display: block; margin-bottom: 4px; }

.social-login { display: flex; flex-direction: column; gap: 10px; max-width: 280px; }
.social-login button {
    display: flex; align-items: center; gap: 10px; padding: 12px 18px;
    border-radius: var(--r); border: none; color: #fff; font-weight: 700; font-size: 0.95rem;
    cursor: pointer;
}
.social-login button svg { width: 18px; height: 18px; }
.social-twitter  { background: #000; }
.social-linkedin { background: #0a66c2; }
.social-facebook { background: #1877f2; }
.social-tiktok   { background: #000; }
.social-instagram{ background: linear-gradient(45deg, #e4405f, #dd2a7b); }
.social-threads  { background: #000; }
.social-pinterest{ background: #e60023; }
.social-bluesky  { background: #0093ff; }
.social-youtube  { background: #ff0000; }

/* Remix composer */
.remix-shell {
    display: grid; grid-template-columns: 240px 1fr 360px; gap: 0;
    margin: -32px -48px -64px;
    min-height: calc(100vh - 0px);
    background: var(--c-bg);
}
.remix-left { border-right: 1px solid var(--c-border); padding: 20px 18px; background: var(--c-white); }
.remix-center { padding: 22px 28px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.remix-right { border-left: 1px solid var(--c-border); padding: 18px; background: var(--c-white); display: flex; flex-direction: column; min-height: 100vh; }
.remix-add-source {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--c-purple); font-weight: 600; font-size: 0.92rem;
    padding: 8px 10px; border-radius: 8px;
}
.remix-add-source:hover { background: var(--c-purple-100); text-decoration: none; }
.remix-source-card {
    border: 1px solid var(--c-border); border-radius: 10px; padding: 10px 12px;
    margin-top: 10px; background: var(--c-white);
}
.remix-source-card strong { font-size: 0.88rem; display: block; margin-bottom: 2px; }
.remix-source-card span { font-size: 0.78rem; color: var(--c-text-dim); }
.remix-pager { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--c-text-muted); font-size: 0.88rem; margin-top: 10px; }
.remix-pager button { background: transparent; border: 1px solid var(--c-border); border-radius: 6px; width: 28px; height: 28px; color: var(--c-text-muted); cursor: pointer; }
.chat-msg { background: var(--c-bg-soft); border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; color: var(--c-text); margin-bottom: 10px; }
.chat-msg.is-assistant { background: var(--c-bg-soft); }
.prompts-link { display: inline-flex; align-items: center; gap: 6px; color: var(--c-text-muted); font-size: 0.82rem; margin-top: 10px; }
.composer-add-media { color: var(--c-purple); font-weight: 600; font-size: 0.88rem; display: inline-flex; gap: 4px; align-items: center; }
.composer-add-media:hover { text-decoration: none; color: var(--c-purple-600); }
.composer-toolbar { border-top: 1px solid var(--c-border); margin-top: 14px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }

.tab-row { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--c-border); margin-bottom: 18px; }
.tab-row .tab {
    padding: 10px 14px; display: inline-flex; align-items: center; gap: 6px;
    border: none; background: transparent; color: var(--c-text-muted);
    font-weight: 600; font-size: 0.9rem; cursor: pointer; border-bottom: 2px solid transparent;
}
.tab-row .tab.is-active { color: var(--c-purple); border-bottom-color: var(--c-purple); }
.tab-row .tab-x { margin-left: 6px; color: var(--c-text-dim); font-size: 0.85rem; }
.tab-row .tab-add {
    padding: 8px 14px; color: var(--c-text); font-weight: 700; font-size: 0.9rem;
    border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-white);
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    margin-left: 8px;
}
.tab-row .tab-add:hover { background: var(--c-bg-soft); }

/* Add Post popover */
.add-post-wrap { position: relative; }
.add-post-wrap[open] > summary::marker,
.add-post-wrap[open] > summary::-webkit-details-marker { display: none; }
.add-post-wrap summary { list-style: none; cursor: pointer; }
.add-post-wrap summary::-webkit-details-marker { display: none; }

.add-post-pop {
    position: absolute; top: calc(100% + 8px); left: 0;
    width: 240px; background: var(--c-white);
    border: 1px solid var(--c-border); border-radius: 12px;
    box-shadow: 0 10px 32px rgba(12,13,14,0.12), 0 0 0 1px rgba(12,13,14,0.04);
    padding: 10px 6px; z-index: 40;
}
.add-post-pop .title {
    font-size: 0.82rem; color: var(--c-text-dim);
    padding: 4px 12px 8px; font-weight: 500;
}
.add-post-pop a {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 12px; border-radius: 8px;
    color: var(--c-text); font-weight: 600; font-size: 0.92rem;
}
.add-post-pop a:hover { background: var(--c-bg-soft); text-decoration: none; }
.add-post-pop .brand {
    width: 24px; height: 24px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; flex: none;
}
.add-post-pop .brand svg { width: 14px; height: 14px; }
.brand-x         { background: #000; }
.brand-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.brand-linkedin  { background: #0a66c2; }
.brand-facebook  { background: #1877f2; }
.brand-pinterest { background: #e60023; }
.brand-tiktok    { background: #000; }
.brand-threads   { background: #000; }
.brand-bluesky   { background: #0085ff; }
.brand-youtube   { background: #ff0000; }
.brand-other     { background: #495057; }
.brand-multi     { background: #7c3aed; }
.tab-row .tab-close-all {
    margin-left: auto; color: var(--c-red); font-weight: 700; font-size: 0.9rem;
    display: inline-flex; gap: 6px; align-items: center;
    background: transparent; border: none; cursor: pointer;
}

.composer { border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 16px 18px; background: var(--c-white); }
.composer textarea { border: none; padding: 0; resize: vertical; min-height: 180px; font-size: 1rem; width: 100%; }
.composer textarea:focus { outline: none; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.composer-count { color: var(--c-text-dim); font-size: 0.88rem; }
.composer-actions { display: flex; gap: 10px; align-items: center; }

.chat-panel { display: flex; flex-direction: column; flex: 1; }
.chat-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.chat-panel-header select { border: 1px solid var(--c-border); padding: 6px 10px; border-radius: 6px; font-size: 0.88rem; background: var(--c-white); width: auto; }
.chat-body { flex: 1; }
.chat-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-border); }
.chat-input { border: 1px solid var(--c-border); border-radius: var(--r); padding: 12px; color: var(--c-text-muted); font-size: 0.95rem; }

/* Settings > Accounts — social login buttons */
.help-inline-link {
    display: inline-block; color: #2563eb;
    font-size: 0.92rem; text-decoration: underline;
    margin: 4px 0 16px;
}

.important-callout {
    background: #fff4e8; border-radius: 8px;
    padding: 14px 18px; margin-bottom: 20px;
}
.important-callout > strong:first-child {
    display: block; color: #c2410c;
    font-weight: 700; margin-bottom: 6px; font-size: 0.92rem;
}
.important-callout ul { margin: 0; padding-left: 18px; font-size: 0.92rem; color: var(--c-text); }
.important-callout li { margin: 3px 0; }

.login-btn-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.login-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 18px; border-radius: 8px;
    font-weight: 600; font-size: 0.96rem; color: #fff;
    width: fit-content; min-width: 260px;
    transition: filter .15s ease;
}
.login-btn:hover { filter: brightness(1.08); text-decoration: none; color: #fff; }
.login-btn__icon {
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
}
.login-btn__icon svg { width: 18px; height: 18px; }

.login-btn--x         { background: #000; }
.login-btn--linkedin  { background: #0a66c2; }
.login-btn--facebook  { background: #1877f2; }
.login-btn--tiktok    { background: #000; }
.login-btn--instagram { background: linear-gradient(90deg, #f58529, #dd2a7b 55%, #8134af); }
.login-btn--threads   { background: #000; }
.login-btn--pinterest { background: #e60023; }
.login-btn--bluesky   { background: #0085ff; }
.login-btn--youtube   { background: #ff0000; }

/* OAuth consent screen (platform authorize mock) */
body.oauth-page { background: #f4f6fb; min-height: 100vh; }
.oauth-consent { max-width: 480px; margin: 60px auto 40px; }
.oauth-consent__sub { font-size: 0.88rem; color: var(--c-text-muted); margin: 0 0 14px; }
.oauth-consent__hero {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; border-radius: 12px 12px 0 0;
    color: #fff;
}
.oauth-consent__icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
}
.oauth-consent__icon svg { width: 24px; height: 24px; }
.oauth-consent__hero strong { display: block; font-size: 1.05rem; color: #fff; font-weight: 700; }
.oauth-consent__hero small { font-size: 0.8rem; opacity: 0.85; }

.oauth-consent__card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 22px 24px;
}
.oauth-consent__card h2 {
    font-size: 1rem; font-weight: 700;
    margin: 0 0 14px; color: var(--c-text);
}
.oauth-consent__card ul {
    padding-left: 22px; margin: 0 0 18px;
    list-style: disc;
}
.oauth-consent__card li {
    margin: 8px 0; font-size: 0.92rem; color: var(--c-text); line-height: 1.45;
}
.oauth-consent__fineprint {
    font-size: 0.82rem; color: var(--c-text-muted);
    margin: 0 0 18px; line-height: 1.5;
}
.oauth-consent__fineprint a { color: #2563eb; text-decoration: underline; }
.oauth-consent__actions {
    display: flex; gap: 10px;
    padding-top: 16px; border-top: 1px solid var(--c-border);
}
.oauth-consent__actions .btn { flex: 1; justify-content: center; padding: 11px; }
.oauth-consent__allow { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.oauth-consent__allow:hover { background: #084d92; color: #fff; }
.oauth-consent__redirect-note {
    text-align: center; font-size: 0.78rem;
    color: var(--c-text-muted); margin: 14px 0 0;
}

/* Modal (CSS :target) */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(12,13,14,0.45);
    display: none; align-items: flex-start; justify-content: center;
    padding: 72px 16px; z-index: 100;
}
.modal-overlay:target { display: flex; }
.modal {
    background: var(--c-white); border-radius: 14px;
    box-shadow: 0 20px 60px rgba(12,13,14,0.22);
    width: 100%; max-width: 640px; padding: 0;
    position: relative;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 10px; }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.modal-close {
    color: var(--c-text-muted); width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px; font-size: 1.1rem;
}
.modal-close:hover { background: var(--c-bg-soft); text-decoration: none; }
.modal-body { padding: 8px 24px 22px; }

.seg-tabs {
    display: flex; gap: 4px; background: var(--c-bg-soft);
    padding: 4px; border-radius: 8px; margin-bottom: 18px;
    overflow-x: auto;
}
.seg-tabs label {
    flex: 1; min-width: fit-content; padding: 8px 14px; border-radius: 6px;
    font-weight: 600; font-size: 0.88rem; color: var(--c-text-muted);
    text-align: center; cursor: pointer; white-space: nowrap;
}
.seg-tabs input[type="radio"] { display: none; }
.seg-tabs input[type="radio"]:checked + label {
    background: var(--c-white); color: var(--c-text); box-shadow: var(--shadow-1);
}

.modal .btn-primary { width: 100%; justify-content: center; padding: 12px; font-size: 1rem; }
.modal details { border-top: 1px solid var(--c-border); padding-top: 14px; margin-top: 16px; }
.modal details summary {
    list-style: none; cursor: pointer; color: var(--c-text-muted);
    font-weight: 600; font-size: 0.92rem;
    display: flex; align-items: center; gap: 8px;
}
.modal details summary::-webkit-details-marker { display: none; }
.modal details summary svg { width: 16px; height: 16px; flex-shrink: 0; }

.modal .check-row {
    display: flex; align-items: center; gap: 10px; margin: 14px 0;
    font-size: 0.92rem; color: var(--c-text);
}
.modal .check-row input[type="checkbox"] { width: auto; }
.modal .field-label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--c-text); margin: 12px 0 6px;
}
.modal .field-label .muted { font-weight: 400; color: var(--c-text-muted); }
.modal input[type="text"],
.modal input[type="url"],
.modal textarea {
    width: 100%; border: 1px solid var(--c-border); border-radius: 8px;
    padding: 10px 12px; font-size: 0.95rem; background: var(--c-white);
}
.modal textarea { resize: vertical; font-family: inherit; }

/* Inspiration / posts grid */
.inspiration-grid { columns: 4 240px; column-gap: 16px; }
.inspiration-card {
    break-inside: avoid; margin-bottom: 16px;
    border: 1px solid var(--c-border); border-radius: var(--r-lg);
    padding: 14px; background: var(--c-white); display: block;
}
.inspiration-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.inspiration-card p { font-size: 0.88rem; color: var(--c-text-muted); margin: 0; }
.inspiration-card img { width: 100%; border-radius: var(--r); margin-bottom: 8px; display: block; }

.filters-panel {
    border: 1px solid var(--c-border); border-radius: var(--r-lg);
    padding: 14px; background: var(--c-white); width: 220px;
}
.filters-panel h4 { font-size: 0.92rem; margin-bottom: 12px; }
.filters-panel .filter-group { padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.filters-panel .filter-group:last-child { border-bottom: none; }
.filters-panel details summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; padding: 4px 0; list-style: none; }
.filters-panel details summary::-webkit-details-marker { display: none; }

.videos-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.video-card {
    border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden;
    background: var(--c-white); display: flex; flex-direction: column;
}
.video-card .thumb { aspect-ratio: 9/16; background: #d3d3d3; position: relative; overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .meta { padding: 10px 12px; }
.video-card .meta h4 { font-size: 0.92rem; margin-bottom: 4px; }
.video-card .meta p { font-size: 0.8rem; color: var(--c-text-dim); margin: 0; }

.settings-tabs {
    display: flex; gap: 32px; border-bottom: 1px solid var(--c-border);
    margin-bottom: 24px;
}
.settings-tabs a {
    padding: 14px 0; color: var(--c-text-muted); font-weight: 600; font-size: 1rem;
    border-bottom: 2px solid transparent; text-decoration: none;
}
.settings-tabs a.is-active { color: var(--c-blue); border-bottom-color: var(--c-blue); }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--c-white); }
.login-card {
    max-width: 380px; width: 100%;
    background: var(--c-white); border: 1px solid var(--c-border);
    border-radius: var(--r-lg); padding: 36px 32px;
    box-shadow: var(--shadow-2); text-align: center;
}
.login-card h1 { font-size: 1.8rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.login-mascot { width: 180px; height: 180px; margin: 0 auto 20px; display: block; border-radius: 50%; object-fit: cover; background: #d9f5f0; }
.login-card .field { text-align: left; }
.login-card .btn-primary { width: 100%; justify-content: center; padding: 12px; }
.login-card .otp-row { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.login-card .otp-row input { width: 44px; height: 48px; text-align: center; font-size: 1.2rem; border: 1px solid var(--c-border-strong); border-radius: 8px; padding: 0; }
.login-card .muted { color: var(--c-text-muted); font-size: 0.92rem; margin: 0 0 18px; }

/* Notice */
.notice { padding: 10px 14px; border-radius: 8px; font-size: 0.92rem; margin-bottom: 14px; }
.notice.success { background: #ebfbee; color: #2b8a3e; }
.notice.warning { background: #fff4e6; color: #d9480f; }
.notice.error   { background: #fff5f5; color: #c92a2a; }
.notice.info    { background: #edf2ff; color: #364fc7; }

.muted { color: var(--c-text-muted); }
.dim { color: var(--c-text-dim); }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }

@media (max-width: 900px) {
    .remix-shell { grid-template-columns: 1fr; }
    .remix-left, .remix-right { border: none; }
    .marketing-footer-inner { grid-template-columns: 1fr 1fr; }
    .app-main { padding: 24px 18px; }
}
