/* 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 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-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); }

/* ── 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;
}

/* ── 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); }

/* ── 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; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .wp-preview-col { display: none; }
    .auth-left { display: none; }
    .auth-right { width: 100%; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .dash-wrap { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .flow-arrow { display: none; }
}
