/* SCU Connect — White Corporate Design System */
:root {
    --white:      #ffffff;
    --bg:         #f8fafc;
    --bg2:        #f1f5f9;
    --border:     #e2e8f0;
    --border2:    #cbd5e1;
    --primary:    #4f46e5;
    --primary-h:  #4338ca;
    --primary-lt: #eef2ff;
    --cyan:       #0ea5e9;
    --green:      #059669;
    --danger:     #dc2626;
    --warning:    #d97706;
    --text:       #0f172a;
    --text-md:    #334155;
    --text-sm:    #64748b;
    --text-xs:    #94a3b8;
    --radius:     8px;
    --radius-lg:  14px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow:     0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:  0 10px 40px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── NAVBAR ── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.navbar .inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.05rem; color: var(--text);
}
.nav-brand .logo-mark {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary); display: flex; align-items: center;
    justify-content: center; color: #fff; font-size: .85rem; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-sm); font-size: .88rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Language Switcher */
.lang-switcher { display: flex; gap: 4px; }
.lang-opt {
    padding: 4px 8px; border-radius: 6px; font-size: .75rem;
    font-weight: 600; color: var(--text-sm); border: 1px solid var(--border);
    background: var(--white); transition: all .15s;
}
.lang-opt:hover, .lang-opt.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 20px; border-radius: var(--radius); font-size: .88rem;
    font-weight: 600; cursor: pointer; transition: all .15s; border: none;
    text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.3); transform: translateY(-1px); }
.btn-outline  { background: var(--white); border: 1px solid var(--border); color: var(--text-md); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost    { background: transparent; color: var(--text-sm); }
.btn-ghost:hover { color: var(--text); }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-success  { background: var(--green); color: #fff; }
.btn-sm  { padding: 6px 14px; font-size: .8rem; }
.btn-lg  { padding: 12px 28px; font-size: .95rem; }
.btn-full { width: 100%; }

/* ── HERO ── */
.hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 72px 0 60px;
}
.hero-inner {
    display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-lt); color: var(--primary);
    border: 1px solid #c7d2fe; padding: 5px 14px; border-radius: 20px;
    font-size: .73rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800; line-height: 1.2; letter-spacing: -.025em;
    color: var(--text); margin-bottom: 16px;
}
.hero h1 .grad {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 1rem; color: var(--text-sm); max-width: 480px; margin-bottom: 32px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Widget Preview */
.widget-preview {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
    box-shadow: var(--shadow-lg);
}
.wp-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.wp-logo { font-size: .82rem; font-weight: 800; color: var(--primary); }
.wp-balance { font-size: .75rem; color: var(--text-sm); }
.wp-balance strong { color: var(--primary); }
.wp-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 14px; }
.wp-action {
    padding: 8px 4px; border-radius: 7px; text-align: center; font-size: .75rem;
    font-weight: 700; cursor: default; border: 1px solid;
}
.wp-action.like    { background: #f0fdf4; border-color: #bbf7d0; color: #059669; }
.wp-action.dislike { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.wp-action.verify  { background: var(--primary-lt); border-color: #c7d2fe; color: var(--primary); }
.wp-score { background: var(--bg); border-radius: 7px; padding: 10px 12px; }
.wp-score .lbl { font-size: .7rem; color: var(--text-sm); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.wp-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.wp-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--cyan)); border-radius: 3px; }

/* ── SECTION BACKGROUNDS ── */
.how-section      { background: var(--bg); }
.features-section { background: var(--white); }

/* ── SECTION HEADING ── */
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 10px; color: var(--text); }
.section-heading p { color: var(--text-sm); max-width: 480px; margin: 0 auto; }

/* ── FLOW / HOW IT WORKS ── */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 0; flex-wrap: wrap; }
.flow-step {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px 20px;
    min-width: 160px; text-align: center; box-shadow: var(--shadow-sm);
}
.flow-step .phase { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--primary); margin-bottom: 8px; }
.flow-step .icon  { font-size: 1.6rem; margin-bottom: 10px; }
.flow-step h4     { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.flow-step p      { font-size: .78rem; color: var(--text-sm); }
.flow-arrow { display: flex; align-items: center; padding: 0 12px; color: var(--border2); font-size: 1.2rem; }

/* ── FEATURE CARDS ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card .icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--primary-lt); display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; margin-bottom: 14px;
}
.feature-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.feature-card p  { font-size: .83rem; color: var(--text-sm); line-height: 1.65; }

/* ── MINING SECTION ── */
.mining-section { background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%); color: #e0e7ff; }
.mining-section .section-heading h2 { color: #e0e7ff; }
.mining-section .section-heading p  { color: #94a3b8; }
.mining-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}
.mining-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg); padding: 24px;
}
.mining-card .tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #818cf8; margin-bottom: 10px; }
.mining-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: 7px; color: #e0e7ff; }
.mining-card p  { font-size: .82rem; color: #94a3b8; line-height: 1.65; }

/* ── CARDS / PANELS ── */
.card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: .9rem; font-weight: 700; }

/* ── STATS ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px; text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat .value { font-size: 1.7rem; font-weight: 800; color: var(--primary); }
.stat .label { font-size: .72rem; color: var(--text-sm); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-sm); font-weight: 600; font-size: .73rem; text-transform: uppercase; letter-spacing: .05em; background: var(--bg); }
tr:hover td { background: var(--bg); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.badge-pending  { background: #fffbeb; color: var(--warning); border: 1px solid #fde68a; }
.badge-approved { background: #f0fdf4; color: var(--green);   border: 1px solid #bbf7d0; }
.badge-rejected { background: #fef2f2; color: var(--danger);  border: 1px solid #fecaca; }
.badge-active   { background: var(--primary-lt); color: var(--primary); border: 1px solid #c7d2fe; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-md); margin-bottom: 5px; }
.form-control {
    width: 100%; padding: 10px 13px;
    background: var(--white); border: 1px solid var(--border2);
    border-radius: var(--radius); color: var(--text); font-size: .88rem;
    transition: border-color .15s, box-shadow .15s; outline: none; font-family: inherit;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.form-control::placeholder { color: var(--text-xs); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: .75rem; color: var(--text-xs); margin-top: 4px; }

/* ── OAUTH BUTTONS ── */
.oauth-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 18px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--white);
    color: var(--text-md); font-size: .88rem; font-weight: 600;
    cursor: pointer; transition: all .15s; text-decoration: none; width: 100%;
    margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.oauth-btn:hover { border-color: var(--border2); box-shadow: var(--shadow); color: var(--text); background: var(--bg); }
.oauth-btn img, .oauth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── ALERTS ── */
.alert { padding: 11px 15px; border-radius: var(--radius); font-size: .84rem; margin-bottom: 14px; border: 1px solid; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #065f46; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-warn    { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ── TABS ── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab { padding: 10px 18px; font-size: .88rem; font-weight: 600; color: var(--text-sm); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── DASHBOARD LAYOUT ── */
.dash-wrap { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
    width: 220px; flex-shrink: 0;
    background: var(--white); border-right: 1px solid var(--border);
    padding: 24px 0; box-shadow: var(--shadow-sm);
}
.sidebar a {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 20px; color: var(--text-sm); font-size: .85rem;
    font-weight: 500; transition: all .12s; border-left: 2px solid transparent;
}
.sidebar a:hover, .sidebar a.active { color: var(--primary); background: var(--primary-lt); border-left-color: var(--primary); }
.sidebar .nav-sect { padding: 14px 20px 5px; font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-xs); font-weight: 700; }
.dash-main { flex: 1; padding: 32px; overflow-y: auto; background: var(--bg); min-width: 0; }

/* Sidebar mobile toggle */
.sidebar-toggle {
    display: none; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--white);
    font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--text-md);
    transition: all .15s; flex-shrink: 0;
}
.sidebar-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* ── GRID UTILITIES (replaces inline styles) ── */
.settings-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start;
}
.apply-grid {
    display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start;
}
.keys-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px;
}
.page-hdr {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-hdr h1 { font-size: 1.4rem; font-weight: 800; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── CODE BLOCK ── */
.code-block {
    background: #0f172a; border-radius: var(--radius); padding: 16px 18px;
    font-family: 'Fira Code', 'Cascadia Code', monospace; font-size: .78rem;
    color: #7dd3fc; overflow-x: auto; white-space: pre;
    border: 1px solid #1e293b;
}

/* ── DASHBOARD NAV RIGHT ── */
.dash-nav-right { display: flex; align-items: center; gap: 10px; }
.dash-avatar { border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.dash-username { font-size: .85rem; font-weight: 600; color: var(--text-md); white-space: nowrap; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── EMBED PREVIEW ── */
.embed-preview { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.style-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.style-option { cursor: pointer; border: 2px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: .8rem; font-weight: 600; color: var(--text-sm); background: var(--white); transition: all .15s; text-align: center; min-width: 80px; }
.style-option:hover, .style-option.active { border-color: var(--primary); color: var(--primary); background: var(--primary-lt); }

/* ── APPLY PAGE ── */
.apply-wrap { max-width: 760px; margin: 60px auto; padding: 0 24px; }
.apply-footer { margin-top: 60px; border-top: 1px solid var(--border); padding: 24px 0; text-align: center; }
.apply-footer p { font-size: .8rem; color: var(--text-sm); }

/* ── CTA SECTION ── */
.cta-section { background: var(--white); border-top: 1px solid var(--border); text-align: center; }
.cta-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.cta-sub { color: var(--text-sm); max-width: 460px; margin: 0 auto 32px; line-height: 1.65; }

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    background: var(--white); padding: 32px 0;
    text-align: center; font-size: .8rem; color: var(--text-sm);
}
footer a { color: var(--text-sm); }
footer a:hover { color: var(--primary); }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }

/* ── LOGIN PAGE ── */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-left {
    flex: 1; background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    padding: 48px; display: flex; flex-direction: column; justify-content: center;
    color: #fff;
}
.auth-right { width: 480px; flex-shrink: 0; background: var(--white); padding: 48px; display: flex; align-items: center; justify-content: center; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.auth-box .sub { color: var(--text-sm); font-size: .88rem; margin-bottom: 28px; }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-sep span { font-size: .75rem; color: var(--text-xs); }
.auth-sep::before, .auth-sep::after { content:''; flex:1; border-top:1px solid var(--border); }
.auth-note { font-size: .73rem; color: var(--text-xs); text-align: center; margin-top: 18px; line-height: 1.5; }

/* ── LANG SELECT ── */
.lang-select {
    appearance: none; -webkit-appearance: none;
    padding: 5px 28px 5px 10px; border-radius: 6px;
    border: 1px solid var(--border); background: var(--white);
    font-size: .78rem; font-weight: 600; color: var(--text-md);
    cursor: pointer; transition: border-color .15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 6px center; background-size: 14px;
}
.lang-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }

/* ── MODAL ── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(15,23,42,.5); backdrop-filter: blur(4px);
    z-index: 5000; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--white); border-radius: 16px;
    max-width: 640px; width: 100%; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2); padding: 36px;
    position: relative;
}
.modal-box h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.modal-box p, .modal-box li { font-size: .88rem; color: var(--text-sm); line-height: 1.8; }
.modal-box h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 8px; }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--bg); border: 1px solid var(--border);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--text-sm); transition: all .15s;
}
.modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ── COOKIE BANNER ── */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 4000;
    background: #0f172a; color: #e2e8f0;
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 24px rgba(0,0,0,.2);
    transform: translateY(100%); transition: transform .4s ease;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { font-size: .83rem; margin: 0; flex: 1; min-width: 200px; }
#cookie-banner a { color: #818cf8; text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-accept { background: var(--primary); color: #fff; border: none; padding: 8px 20px; border-radius: 8px; font-size: .83rem; font-weight: 700; cursor: pointer; }
.cookie-btn-reject { background: transparent; color: #94a3b8; border: 1px solid #334155; padding: 8px 16px; border-radius: 8px; font-size: .83rem; font-weight: 600; cursor: pointer; }

/* ── FOOTER ENHANCED ── */
footer { border-top: 1px solid var(--border); background: var(--white); padding: 40px 0 24px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; margin-bottom: 28px; flex-wrap: wrap; }
.footer-brand { max-width: 260px; }
.footer-brand .logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .85rem; font-weight: 800; margin-bottom: 10px; }
.footer-brand p { font-size: .8rem; color: var(--text-sm); line-height: 1.6; margin-top: 8px; }
.footer-links-col h5 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-xs); margin-bottom: 12px; }
.footer-links-col a { display: block; font-size: .83rem; color: var(--text-sm); margin-bottom: 7px; cursor: pointer; }
.footer-links-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .75rem; color: var(--text-xs); }

/* ── SITES SECTION (For Site Owners) ── */
.sites-section { background: var(--bg); }
.sites-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sites-text h2 {
    font-size: 1.8rem; font-weight: 800; margin: 14px 0 12px; line-height: 1.25; color: var(--text);
}
.sites-text p {
    color: var(--text-sm); margin-bottom: 24px; line-height: 1.7;
}
.sites-style-wrap { margin-top: 24px; }
.style-label { font-size: .78rem; font-weight: 600; color: var(--text-sm); margin-bottom: 10px; }
.style-thumb { width: 20px; height: 20px; border-radius: 4px; display: block; margin: 0 auto 4px; }
.style-thumb-logo { width: 40px; height: 20px; object-fit: contain; }
.style-thumb-text { font-size: .7rem; display: block; margin-bottom: 4px; }
.sites-code .embed-note { font-size: .75rem; color: var(--text-xs); margin-top: 8px; }

/* ── HAMBURGER MENU ── */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 6px; border: none; background: none;
    border-radius: 6px; transition: background .15s; flex-shrink: 0;
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — sağlam breakpoint sistemi
   ═══════════════════════════════════════════════════════ */

/* ── 1100px: Container padding ── */
@media (max-width: 1100px) {
    .hero-inner { gap: 40px; }
    .sites-grid { gap: 40px; }
}

/* ── 960px: Tablet / Mobile nav ── */
@media (max-width: 960px) {
    /* ---- Navbar ---- */
    .navbar { position: sticky; }
    .nav-links {
        display: none;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--white); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 12px 16px; gap: 2px;
        z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
    .nav-toggle { display: flex; }
    /* Login butonunu gizle, sadece Get Started göster */
    .nav-cta .btn-outline { display: none; }

    /* ---- Hero ---- */
    .hero { padding: 56px 0 48px; }
    .hero-inner { grid-template-columns: 1fr; gap: 0; }
    .wp-preview-col { display: none; }

    /* ---- For Site Owners ---- */
    .sites-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* ---- Auth ---- */
    .auth-left { display: none; }
    .auth-right { width: 100%; }

    /* ---- Footer ---- */
    .footer-top { flex-direction: column; gap: 28px; }
}

/* ── 768px: Tablet ── */
@media (max-width: 768px) {
    .section { padding: 56px 0; }

    /* Dashboard sidebar — hidden by default, toggle via JS */
    .dash-wrap { flex-direction: column; }
    .sidebar {
        width: 100%; border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0; max-height: 0; overflow: hidden;
        transition: max-height .3s ease, padding .3s ease;
    }
    .sidebar.mobile-open {
        max-height: 800px; padding: 8px 0;
    }
    .sidebar-toggle { display: flex; }
    .dash-main { padding: 20px 16px; }

    /* Grid layouts */
    .settings-grid { grid-template-columns: 1fr; }
    .apply-grid    { grid-template-columns: 1fr; }
    .keys-grid     { grid-template-columns: 1fr; }

    /* How it works flow */
    .flow { flex-direction: column; align-items: stretch; gap: 12px; }
    .flow-arrow { display: none; }
    .flow-step { min-width: unset; }

    /* Features & Stats */
    .features { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }

    /* Cookie: dikey stack */
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px; padding: 16px 20px;
    }
    #cookie-banner p { min-width: unset; flex: unset; width: 100%; }
    .cookie-btns { width: 100%; justify-content: flex-end; }

    /* Footer links */
    .footer-top > div:last-child { flex-wrap: wrap; gap: 28px; }
}

/* ── 480px: Mobile ── */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 44px 0; }

    /* Hero */
    .hero { padding: 44px 0 36px; }
    .hero h1 { font-size: 1.65rem; letter-spacing: -.02em; }
    .hero-sub { font-size: .92rem; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .hero-btns .btn { width: 100%; justify-content: center; }

    /* Navbar cta */
    .nav-cta { gap: 6px; }
    .nav-cta .btn-primary { padding: 7px 12px; font-size: .8rem; }

    /* Dashboard nav right on mobile */
    .dash-username { display: none; }
    .dash-avatar { width: 24px; height: 24px; }
    .dash-nav-right { gap: 6px; }

    /* Features */
    .features { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }

    /* Section heading */
    .section-heading h2 { font-size: 1.4rem; }

    /* Sites section */
    .sites-grid .sites-text h2 { font-size: 1.4rem !important; }

    /* Cookie banner — tam mobile */
    #cookie-banner { padding: 14px 16px; gap: 10px; }
    .cookie-btns { flex-direction: row; gap: 8px; width: 100%; }
    .cookie-btn-accept { flex: 1; text-align: center; }
    .cookie-btn-reject { flex: 1; text-align: center; }

    /* Modal */
    .modal-box { padding: 22px 16px; margin: 16px; }
    .modal-box h2 { font-size: 1.1rem; }

    /* Auth */
    .auth-right { padding: 28px 20px; }

    /* Tables */
    table { font-size: .78rem; }
    th, td { padding: 8px 10px; }

    /* Footer */
    .footer-top { gap: 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-links-col { min-width: 120px; }

    /* Code block */
    .code-block { font-size: .72rem; padding: 14px 12px; }
}
