@font-face {
    font-family: "Tilda Sans";
    src: url("/fonts/TildaSans-VF.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #171713;
    --ink-soft: #484842;
    --muted: #74746d;
    --paper: #f5f4ef;
    --surface: #ffffff;
    --surface-warm: #eeede7;
    --line: #deddd5;
    --line-dark: #c8c7bd;
    --yellow: #ffd633;
    --yellow-strong: #ffc700;
    --yellow-pale: #fff4bc;
    --blue: #335cff;
    --blue-deep: #243fbd;
    --blue-pale: #e9edff;
    --green: #087f5b;
    --green-pale: #e6f6ef;
    --red: #d4382c;
    --text-primary: var(--ink);
    --text-secondary: var(--ink-soft);
    --text-muted: var(--muted);
    --text-light: #999990;
    --bg-page: var(--paper);
    --bg-card: var(--surface);
    --bg-subtle: var(--surface-warm);
    --border-color: var(--line);
    --border-subtle: var(--line);
    --border-hover: var(--line-dark);
    --brand-dark: var(--ink);
    --brand-yellow: var(--yellow);
    --brand-yellow-soft: var(--yellow-pale);
    --seller-blue: var(--blue);
    --seller-purple: var(--blue);
    --seller-blue-bg: var(--blue-pale);
    --primary-yellow: var(--yellow);
    --primary-color: var(--yellow);
    --secondary-color: var(--ink);
    --light-gray-color: var(--paper);
    --medium-gray-color: var(--line);
    --dark-gray-color: var(--muted);
    --text-color: var(--ink);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-xxl: 999px;
    --radius-full: 999px;
    --shadow-subtle: 0 1px 0 rgba(23, 23, 19, .04);
    --shadow-card: 0 18px 50px rgba(23, 23, 19, .08);
    --transition: 180ms cubic-bezier(.2, .8, .2, 1);
    --transition-normal: 180ms cubic-bezier(.2, .8, .2, 1);
    --spacing-xs: 6px;
    --spacing-sm: 10px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 36px;
    --spacing-xxl: 56px;
    --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: "Tilda Sans", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4, p, ul { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 19px; border: 1px solid var(--ink); border-radius: 12px; font-size: 15px; font-weight: 750; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.button-primary:hover { box-shadow: 6px 6px 0 var(--yellow); }
.button-ghost { background: rgba(255,255,255,.7); }
.button-ghost:hover { background: #fff; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 244, 239, .92);
    border-bottom: 1px solid rgba(23, 23, 19, .12);
    backdrop-filter: blur(18px);
}
.top-bar { background: var(--ink); color: #d7d6ce; }
.top-bar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; }
.top-bar-notice { display: flex; align-items: center; gap: 8px; }
.top-bar-notice::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ee1a0; box-shadow: 0 0 0 4px rgba(78,225,160,.12); }
.top-bar-notice span { color: #fff; font-weight: 650; }
.top-bar-links { display: flex; gap: 22px; }
.top-bar-links a { color: #b7b6ad; transition: color var(--transition); }
.top-bar-links a:hover { color: var(--yellow); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.logo-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-title { font-size: 20px; line-height: 1; font-weight: 820; letter-spacing: -.045em; }
.logo-title span, .logo-title .accent { color: var(--blue); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 2px; margin-left: auto; }
.nav-link { padding: 10px 12px; border-radius: 10px; color: var(--ink-soft); font-size: 14px; line-height: 1; font-weight: 650; white-space: nowrap; transition: background var(--transition), color var(--transition); }
.nav-link.seller-link { color: var(--blue-deep); }
.nav-link:hover, .nav-link.active { background: var(--surface); color: var(--ink); }
.header-search { position: relative; width: 190px; flex: 0 0 190px; }
.header-search::before { content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-54%); color: var(--muted); font-size: 19px; pointer-events: none; }
.header-search input { width: 100%; height: 42px; padding: 0 14px 0 39px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 14px; transition: border-color var(--transition), box-shadow var(--transition); }
.header-search input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,19,.07); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--surface); place-items: center; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 19px; height: 2px; background: var(--ink); transition: transform var(--transition), opacity var(--transition); }
.menu-toggle span { margin: 4px 0; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* Shared page patterns */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--ink); }
.page-header { max-width: 850px; }
.page-header h1, .contracts-title { margin-bottom: 14px !important; font-size: clamp(24px, 3.2vw, 38px) !important; font-weight: 750 !important; }
.page-header p { max-width: 720px; color: var(--ink-soft) !important; font-size: 16px !important; }
.seo-info-box, .seller-faq, .contracts-table-wrap { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-subtle); }
.seo-info-box { padding: clamp(24px, 4vw, 44px) !important; }
.seo-info-box h2 { font-size: clamp(20px, 2.2vw, 26px) !important; }
.seo-info-box p { color: var(--ink-soft) !important; }
.segmented-control-bar, .buyer-tags-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; align-items: center; }
.tab-enhanced { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border: 1px solid var(--line-dark); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: 14px; font-weight: 680; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.tab-enhanced:hover, .tab-enhanced.active { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 640px) {
    .segmented-control-bar, .buyer-tags-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .segmented-control-bar::-webkit-scrollbar, .buyer-tags-filter::-webkit-scrollbar { display: none; }
    .tab-enhanced { flex-shrink: 0; }
}
.notification { position: fixed; right: 24px; bottom: 24px; z-index: 200; padding: 14px 18px; background: var(--ink); color: #fff; border-radius: 12px; opacity: 0; transform: translateY(10px); transition: all var(--transition); }
.notification--show { opacity: 1; transform: none; }
.seller-hero { padding: 70px 0 !important; background: var(--blue) !important; color: #fff !important; border-bottom: 1px solid var(--ink); }
.seller-hero h1 { max-width: 900px; font-size: clamp(26px, 3.5vw, 42px) !important; line-height: 1.1; font-weight: 750 !important; }
.seller-hero p { max-width: 720px; }
.seller-hub-page > .container { padding-top: 60px !important; padding-bottom: 72px !important; }
.seller-hub-page > .container > h2 { font-size: clamp(22px, 2.8vw, 32px) !important; }
.seller-hub-page > .container > div[style*="grid-template-columns"] > a { border-color: var(--line-dark) !important; border-radius: 18px !important; box-shadow: var(--shadow-subtle); }
.seller-hub-page > .container > div[style*="grid-template-columns"] > a:hover { border-color: var(--ink) !important; box-shadow: 4px 4px 0 var(--ink); transform: translateY(-2px); }

/* Footer */
.main-footer { margin-top: 80px; background: var(--ink); color: #fff; }
.main-footer::before { content: ""; display: block; height: 8px; background: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 48px; padding: 64px 0 28px; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.logo-mark--footer { width: 44px; height: 44px; }
.footer-logo .logo-title { color: #fff; font-size: 24px; }
.footer-desc { max-width: 300px; color: #aead9f; font-size: 14px; }
.footer-col h4 { margin-bottom: 18px; color: #fff; font-size: 14px; letter-spacing: 0; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 10px; }
.footer-col li a { color: #aead9f; font-size: 13px; transition: color var(--transition); }
.footer-col li a:hover { color: var(--yellow); }
.footer-copyright { margin-top: 28px; color: #79786f; font-size: 12px; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; padding-top: 26px; border-top: 1px solid #34342f; color: #79786f; font-size: 12px; }

@media (max-width: 1060px) {
    .header-search { display: none; }
    .main-nav { margin-left: auto; }
}
@media (max-width: 820px) {
    .container { width: min(100% - 32px, 1240px); }
    .top-bar-links { display: none; }
    .top-bar-inner { justify-content: center; text-align: center; }
    .header-inner { min-height: 68px; }
    .menu-toggle { display: grid; margin-left: auto; }
    .main-nav { position: fixed; inset: 102px 0 auto; display: grid; gap: 4px; padding: 16px; background: var(--paper); border-bottom: 1px solid var(--line-dark); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform 260ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease; }
    .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-link { padding: 15px 16px; font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
    .brand-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .top-bar { display: none; }
    .main-nav { inset-top: 68px; top: 68px; }
    .logo-title { font-size: 18px; }
    .logo-mark { width: 36px; height: 36px; }
    .logo-mark--footer { width: 40px; height: 40px; }
    .footer-grid { grid-template-columns: 1fr; padding-top: 44px; }
    .brand-col, .footer-bottom { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.empty-state-note {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line, #dfe5ee);
    border-radius: 14px;
    color: var(--muted, #667085);
    background: var(--surface-soft, #f7f9fc);
}

/* Floating Bottom Sticky Seller Bar */
.global-seller-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    padding: 10px 0;
    background: rgba(18, 28, 48, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 214, 51, 0.35);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 300ms ease, opacity 300ms ease;
}

.global-seller-floating-bar.is-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

body {
    padding-bottom: 74px;
}

.seller-floating-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.seller-floating-close {
    position: absolute;
    right: -8px;
    top: -6px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    transition: background var(--transition);
}

.seller-floating-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.seller-floating-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seller-floating-badge {
    padding: 3px 8px;
    background: rgba(255, 214, 51, 0.2);
    border: 1px solid rgba(255, 214, 51, 0.4);
    border-radius: 999px;
    color: var(--yellow);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

.seller-floating-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
    white-space: nowrap;
}

.seller-floating-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    white-space: nowrap;
}

.seller-floating-code-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    color: var(--ink);
}

.seller-floating-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}

.seller-floating-code {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 850;
    color: var(--blue-deep);
    letter-spacing: .04em;
}

.seller-floating-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-floating-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
    border: 0;
    white-space: nowrap;
}

.seller-floating-btn--copy {
    background: var(--yellow);
    color: var(--ink);
}

.seller-floating-btn--copy:hover {
    background: #ffe066;
}

.seller-floating-btn--copy.copied {
    background: #2b8a3e !important;
    color: #ffffff !important;
}

.seller-floating-btn--link {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.seller-floating-btn--link:hover {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 900px) {
    .seller-floating-sub {
        display: none;
    }
}

@media (max-width: 720px) {
    body {
        padding-bottom: 104px;
    }
    .seller-floating-inner {
        flex-wrap: wrap;
        gap: 8px;
    }
    .seller-floating-info {
        width: 100%;
    }
    .seller-floating-code-box {
        flex: 1;
    }
    .seller-floating-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
