/* =====================================================================
   TokenFactoryPro — shared design system
   Direction: clean humanitarian/charity look inspired by pcrf.net —
   light ground, PCRF blue for primary actions, warm orange for accents,
   deep red reserved for warnings/errors. Cairo type family throughout,
   Arabic-first, RTL.
   ===================================================================== */
:root {
    --ink: #eef3f6;
    --ink-2: #ffffff;
    --panel: #ffffff;
    --panel-2: #f2f6f8;
    --panel-3: #e7eef2;
    --line: #dde6ea;
    --line-2: #c6d5db;
    --text: #16232b;
    --sub: #4f6570;
    --dim: #7c919c;
    --brand: #286f99;
    --brand-hi: #3d8ab5;
    --brand-ink: #ffffff;
    --live: #1f9d74;
    --live-bg: #e9f8f1;
    --live-line: #b7e6cd;
    --oxide: #a60001;
    --oxide-bg: #fdecec;
    --oxide-line: #f0bcbc;
    --warn: #ff9012;
    --warn-bg: #fff3e2;
    --warn-line: #ffd9a8;
    --mono: 'IBM Plex Mono', monospace;
    --f-display: 'Cairo', 'Manrope', sans-serif;
    --f-body: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
    --radius: 12px;
    --wrap: 1160px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background:
        radial-gradient(1100px 620px at 15% -10%, rgba(40, 111, 153, .08), transparent 60%),
        radial-gradient(900px 520px at 100% 0%, rgba(255, 144, 18, .06), transparent 55%),
        var(--ink);
    color: var(--text);
    font-family: var(--f-body);
    min-height: 100vh;
    line-height: 1.7;
}
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: .01em; }
a { color: var(--brand); text-decoration: none; }
code, .mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------------
   Header + hamburger nav
   --------------------------------------------------------------------- */
header.site-header {
    position: sticky; top: 0; z-index: 80;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.head-row {
    max-width: var(--wrap); margin: 0 auto; padding: 12px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .logo {
    width: 34px; height: 34px; border-radius: 9px; flex: none;
    background: linear-gradient(155deg, var(--brand-hi), var(--brand) 60%, #123a52 100%);
    box-shadow: 0 0 0 1px var(--line-2), inset 0 1px 2px rgba(255,255,255,.35), inset 0 -3px 5px rgba(0,0,0,.25);
    position: relative;
}
.brand .logo::after {
    content: "TF"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .02em;
}
.brand .btxt { display: flex; flex-direction: column; }
.brand .btxt b { font-size: 15px; font-weight: 700; color: var(--text); font-family: var(--f-display); }
.brand .btxt small { color: var(--dim); font-size: 10.5px; letter-spacing: .01em; }

nav.nav-links {
    display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
}
nav.nav-links a {
    color: var(--sub); font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap;
    transition: .15s background, .15s color;
}
nav.nav-links a:hover { background: var(--panel-2); color: var(--text); }
nav.nav-links a.active { color: var(--brand); background: var(--panel-3); }
nav.nav-links a.nav-external { color: var(--live); display: inline-flex; align-items: center; gap: 4px; }
nav.nav-links a.nav-disconnect { color: var(--oxide); }
nav.nav-links a.nav-disconnect:hover { background: var(--oxide-bg); }

.head-actions, .wallet-box { display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; }
.wc-inline-status { max-width: var(--wrap); margin: 8px auto 0; font-size: 12px; text-align: center; color: #b8690a; padding: 0 16px; }
.hamburger {
    display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    width: 38px; height: 38px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 0;
}
.hamburger span { width: 17px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.pill {
    background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 12px;
    display: flex; align-items: center; gap: 6px; color: var(--sub);
}
.pill b { color: var(--text); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--live); box-shadow: 0 0 6px rgba(31, 157, 116, .55); }
.dot.bad { background: var(--oxide); }
.dot.warn { background: var(--warn); }

.lang-switch { padding: 3px; gap: 2px; }
.lang-switch .lang-btn {
    background: transparent; border: none; color: var(--dim); font-size: 11px; font-weight: 700;
    padding: 4px 9px; border-radius: 999px; font-family: var(--mono); cursor: pointer;
}
.lang-switch .lang-btn.active { background: linear-gradient(180deg, var(--brand-hi), var(--brand)); color: #fff; }

button {
    cursor: pointer; border: none; border-radius: 8px; padding: 10px 16px; font-family: inherit;
    font-size: 13.5px; font-weight: 700; transition: .15s transform, .15s opacity, .15s box-shadow, .15s background;
}
button:active { transform: scale(.97); }
button:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--brand-hi), var(--brand)); color: #fff; box-shadow: 0 6px 16px -8px rgba(40, 111, 153, .55); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.btn-ok { background: var(--live-bg); border: 1px solid var(--live-line); color: #0f6b46; }
.btn-danger { background: var(--oxide-bg); border: 1px solid var(--oxide-line); color: #7a1113; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
a.btn-primary, a.btn-secondary, a.btn-ghost { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* Mobile nav drawer */
@media (max-width: 980px) {
    .hamburger { display: flex; }
    nav.nav-links {
        position: fixed; inset-inline: 0; top: 63px; z-index: 79;
        flex-direction: column; align-items: stretch; gap: 0; justify-content: flex-start;
        background: var(--ink-2); border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .25s ease;
        padding: 0 14px;
    }
    nav.nav-links.open { max-height: 420px; padding: 10px 14px 16px; }
    nav.nav-links a { padding: 12px 10px; border-bottom: 1px dashed var(--line); border-radius: 0; }
    nav.nav-links a:last-child { border-bottom: none; }

    /* Prevent header bar from overflowing horizontally on mobile:
       let it wrap instead of forcing everything into one nowrap row. */
    .head-row { flex-wrap: wrap; row-gap: 8px; }
    .wallet-box { flex: 1 1 100%; order: 3; justify-content: flex-start; }
    .head-actions { flex: 1 1 100%; order: 3; justify-content: flex-start; }
}

/* ---------------------------------------------------------------------
   Live ticker (signature element) — a scrolling on-chain readout,
   present on every page, wallet-free, sourced straight from BSC.
   --------------------------------------------------------------------- */
.ticker-wrap {
    background: var(--live-bg); border-bottom: 1px solid var(--live-line);
    overflow: hidden; white-space: nowrap; position: relative;
}
.ticker-wrap::before, .ticker-wrap::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none;
}
.ticker-wrap::before { inset-inline-start: 0; background: linear-gradient(90deg, var(--live-bg), transparent); }
.ticker-wrap::after { inset-inline-end: 0; background: linear-gradient(270deg, var(--live-bg), transparent); }
.ticker-track {
    display: inline-flex; gap: 42px; padding: 7px 0; animation: ticker-scroll 34s linear infinite;
    font-family: var(--mono); font-size: 11.5px; color: #0f6b46;
}
.ticker-track span.tk-label { color: #1f9d74; margin-inline-end: 6px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker-track { animation-name: ticker-scroll-rtl; }
@keyframes ticker-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------------------------------------------------------------------
   Layout shells
   --------------------------------------------------------------------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 16px 40px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 880px) { .grid2 { grid-template-columns: 1fr; } }

/* Page hero (content pages) */
.page-hero {
    max-width: var(--wrap); margin: 0 auto; padding: 46px 16px 26px;
}
.page-hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px;
    color: var(--live); background: var(--live-bg); border: 1px solid var(--live-line);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 700; color: var(--text); max-width: 780px; }
.page-hero p.lead-lg { color: var(--sub); font-size: 15px; max-width: 640px; margin-top: 14px; }

/* App hero (index/dapp) — the "struck medallion" kept, restyled */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 30px 16px 18px; text-align: center; }
.medallion-wrap { position: relative; display: inline-block; }
.medallion {
    width: 138px; height: 138px; border-radius: 28px; position: relative;
    background: linear-gradient(155deg, var(--brand-hi), var(--brand) 55%, #123a52 100%);
    box-shadow: 0 18px 34px -18px rgba(22, 35, 43, .45), inset 0 2px 4px rgba(255,255,255,.25), inset 0 -7px 12px rgba(0,0,0,.25);
    animation: strike .8s cubic-bezier(.18,.82,.22,1) both;
}
.medallion::after { content: ""; position: absolute; inset: 11px; border-radius: 20px; border: 1px solid rgba(255,255,255,.18); }
.medallion .word {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .1em;
}
.medallion-wrap::after {
    content: ""; position: absolute; inset: 0; border-radius: 28px; border: 1px solid var(--brand-hi); opacity: 0;
    animation: ring 1.1s .35s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes strike { 0% { transform: translateY(-46px) scale(.82); opacity: 0; } 58% { transform: translateY(3px) scale(1.03); opacity: 1; } 78% { transform: translateY(-2px) scale(.99); } 100% { transform: translateY(0) scale(1); } }
@keyframes ring { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .medallion, .medallion-wrap::after { animation: none !important; opacity: 1; } }
.hero-title { margin-top: 16px; font-size: 22px; font-weight: 700; color: var(--text); }
.hero-sub { margin-top: 6px; font-size: 13px; color: var(--sub); max-width: 480px; margin-inline: auto; }
.hero-rule { width: 64px; height: 2px; margin: 16px auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--brand), transparent); }

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */
section.card {
    position: relative; background: var(--panel);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 26px;
    margin-bottom: 16px; box-shadow: 0 10px 26px -20px rgba(22, 35, 43, .25); overflow: hidden;
}
html[dir="rtl"] section.card { padding: 20px 26px 20px 20px; }
section.card::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 16px; bottom: 16px; width: 4px;
    background: linear-gradient(180deg, var(--brand-hi), var(--live)); opacity: .7; border-radius: 0 3px 3px 0;
}
html[dir="rtl"] section.card::before { border-radius: 3px 0 0 3px; }
section.card > h2 {
    font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--brand);
    padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
section.card > h2 .badge {
    font-size: 10.5px; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--dim);
    padding: 2px 9px; border-radius: 999px; font-weight: 400; margin-inline-start: auto; font-family: var(--mono);
}
.lead { color: var(--sub); font-size: 12.5px; margin: -6px 0 14px; }

.plain-card {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; margin-bottom: 16px;
    box-shadow: 0 10px 26px -22px rgba(22, 35, 43, .2);
}
.plain-card h3 { color: var(--brand); font-size: 15px; margin-bottom: 8px; }
.plain-card p { color: var(--sub); font-size: 13.5px; margin: 0; }

/* ---------------------------------------------------------------------
   Form pieces / stats / clauses (shared with app + contact form)
   --------------------------------------------------------------------- */
.clause { position: relative; margin-bottom: 16px; padding-inline-start: 30px; }
.clause-no {
    position: absolute; inset-inline-start: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
    border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 10.5px; color: var(--brand);
}
.clause:last-child { margin-bottom: 0; }
.field { margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 12px; color: var(--sub); margin-bottom: 5px; }
.field .hint { color: var(--dim); font-size: 11px; margin-top: 4px; }
input[type=text], input[type=number], input[type=email], textarea, select {
    width: 100%; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
    border-radius: 8px; padding: 10px 12px; font-size: 13.5px; font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(40, 111, 153, .16); }
textarea { resize: vertical; min-height: 64px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tab-btn { background: transparent; border: 1px solid var(--line-2); color: var(--sub); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; }
.tab-btn.active { background: linear-gradient(180deg, var(--brand-hi), var(--brand)); color: #fff; border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(22,35,43,.04); }
.stat .l { font-size: 10.5px; color: var(--dim); margin-bottom: 4px; letter-spacing: .01em; }
.stat .v { font-size: 14px; font-weight: 700; font-family: var(--mono); color: var(--brand); direction: ltr; unicode-bidi: isolate; }

.item-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.item-card .ihead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.item-card .itext { font-size: 13.5px; color: var(--text); word-break: break-word; margin-bottom: 8px; }
.item-card .imeta { font-size: 11px; color: var(--dim); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.item-card .iactions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-note { color: var(--dim); font-size: 12.5px; text-align: center; padding: 16px 0; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

.copy-btn { background: none; border: 1px solid var(--line-2); color: var(--dim); cursor: pointer; padding: 4px 8px; border-radius: 6px; font-size: 11px; transition: .2s; font-family: var(--mono); }
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.token-chip { background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; font-size: 11px; font-family: var(--mono); color: var(--sub); display: inline-block; }

#actionLog { max-height: 260px; overflow: auto; display: flex; flex-direction: column-reverse; gap: 8px; }
.log-item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; }
.log-item .lhead { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); font-size: 11px; margin-bottom: 3px; }
.log-item.ok { border-color: var(--live-line); }
.log-item.pending { border-color: var(--warn-line); }
.log-item.fail { border-color: var(--oxide-line); }
.log-item a { font-family: var(--mono); font-size: 11px; }

#errConsole {
    margin: 22px auto 24px; max-width: var(--wrap); background: rgba(255,255,255,.98); border: 1px solid var(--line);
    border-top: 2px solid var(--oxide); border-radius: 16px; max-height: 380px; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 12px 30px -22px rgba(22, 35, 43, .3);
}
#errConsole .ec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
#errConsole .ec-head h3 { font-size: 12.5px; color: var(--oxide); display: flex; align-items: center; gap: 8px; }
#errConsole .ec-count { background: var(--oxide-bg); color: var(--oxide); border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 700; }
#errConsole .ec-body { overflow: auto; padding: 8px 14px 14px; font-family: var(--mono); font-size: 12px; }
#errConsole.collapsed .ec-body { display: none; }
.err-item { border-bottom: 1px dashed var(--line); padding: 8px 0; }
.err-item:last-child { border-bottom: none; }
.err-item .em-head { color: var(--dim); font-size: 11px; margin-bottom: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.err-item .em-ctx { color: #b8690a; }
.err-item .em-msg { color: var(--oxide); white-space: pre-wrap; word-break: break-word; }
.ec-toggle-arrow { transition: .2s transform; }
#errConsole.collapsed .ec-toggle-arrow { transform: rotate(180deg); }

#txToast { position: fixed; top: 14px; inset-inline: 0; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
#txToast .toast-box {
    pointer-events: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--live-bg);
    border: 1px solid var(--live-line); border-radius: 999px; padding: 8px 10px 8px 16px; box-shadow: 0 10px 26px rgba(22,35,43,.18);
    font-size: 12.5px; max-width: 92vw; animation: toastIn .2s ease-out; color: #0f6b46;
}
#txToast .toast-box.fail { background: var(--oxide-bg); border-color: var(--oxide-line); color: #7a1113; }
#txToast .toast-link { background: var(--live); color: #fff; font-weight: 700; border-radius: 999px; padding: 6px 12px; font-size: 12px; white-space: nowrap; }
#txToast .toast-box.fail .toast-link { background: var(--oxide); color: #fff; }
#txToast .toast-close { background: transparent; border: none; color: var(--dim); cursor: pointer; font-size: 14px; padding: 0 4px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------------------------
   Content-page pieces: steps, feature grid, contract card, FAQ
   --------------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feature { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.feature .fi { width: 34px; height: 34px; border-radius: 9px; background: var(--live-bg); border: 1px solid var(--live-line); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; font-size: 15px; }
.feature h4 { font-size: 13.5px; color: var(--text); margin-bottom: 6px; }
.feature p { font-size: 12.5px; color: var(--sub); margin: 0; }

.step-list { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: none; }
.step .sn { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--brand); }
.step .sc h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.step .sc p { font-size: 13px; color: var(--sub); margin: 0; }

.contract-card {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: var(--live-bg); border: 1px solid var(--live-line); border-radius: 12px; padding: 14px 16px;
}
.contract-card .ca-addr { font-family: var(--mono); font-size: 12.5px; color: #0f6b46; direction: ltr; unicode-bidi: isolate; }
.contract-card .ca-label { font-size: 11px; color: #1f9d74; margin-bottom: 3px; }

.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 16px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { font-size: 13px; color: var(--sub); margin: 10px 0 0; }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-channel { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-channel:last-child { border-bottom: none; }
.contact-channel .ci { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--panel-3); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.contact-channel .ct b { display: block; font-size: 13px; color: var(--text); }
.contact-channel .ct span { font-size: 12px; color: var(--dim); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
footer.site-footer { border-top: 1px solid var(--line); margin-top: 20px; background: var(--ink-2); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 34px 16px 20px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 780px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-inner h5 { font-size: 12px; color: var(--dim); margin-bottom: 12px; letter-spacing: .02em; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-inner ul a { color: var(--sub); font-size: 13px; }
.footer-inner ul a:hover { color: var(--brand); }
.footer-brand p { color: var(--sub); font-size: 12.5px; max-width: 280px; margin: 10px 0 16px; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.social-row a {
    width: 34px; height: 34px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-2);
    display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 14px; transition: .15s;
}
.social-row a:hover { border-color: var(--brand); color: var(--brand); }
.footer-bottom {
    max-width: var(--wrap); margin: 0 auto; padding: 16px 16px 26px; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: 11.5px; color: var(--dim);
}
.footer-disclaimer { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; font-size: 11.5px; color: var(--dim); }
