* { box-sizing: border-box; }
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
    --bg: #f5f8fb;
    --text: #16202d;
    --line: #d8e3f0;
    --brand: #0c8f6b;
    --brand-dark: #076d50;
    --ink-soft: #526074;
    --cta-dark: #1e2f52;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --shadow-soft: 0 12px 28px rgba(22, 32, 45, 0.08);
    --shadow-strong: 0 18px 44px rgba(14, 33, 67, 0.18);
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 4% -6%, rgba(12, 143, 107, 0.16), transparent 38%),
        radial-gradient(circle at 95% 8%, rgba(47, 101, 224, 0.16), transparent 36%),
        linear-gradient(170deg, #f7fbff 0%, #f5f8fb 42%, #edf3fa 100%);
    min-height: 100vh;
}

a { color: #1456c6; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap { gap: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    border-bottom: 1px solid rgba(26, 52, 90, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.92));
    backdrop-filter: blur(8px);
}

.site-header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
}

.brand {
    font-weight: 800;
    color: #11233d;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark:hover { text-decoration: none; }

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(140deg, #0c8f6b, #2f65e0);
    box-shadow: 0 0 0 6px rgba(12, 143, 107, 0.12);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 9px 13px;
    font-weight: 700;
    color: #243857;
    text-decoration: none;
    transition: all 0.2s ease;
}

.site-link:hover {
    border-color: rgba(33, 50, 79, 0.18);
    background: #f3f7ff;
    text-decoration: none;
    transform: translateY(-1px);
}

.site-link-cta {
    color: #fff;
    background: linear-gradient(120deg, #0c8f6b, #1188c7);
    box-shadow: 0 8px 20px rgba(17, 109, 180, 0.24);
}

.site-link-cta:hover {
    color: #fff;
    background: linear-gradient(120deg, #0a7b5c, #0f77b0);
    border-color: transparent;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(30, 71, 118, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.87rem;
    font-weight: 700;
    color: #1a4873;
    background: rgba(232, 244, 255, 0.95);
}

main.container {
    padding-top: 8px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    margin: 16px 0;
    box-shadow: var(--shadow-soft);
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.btn {
    display: inline-block;
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    text-decoration: none;
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.btn.secondary { background: var(--cta-dark); }
.btn.secondary:hover { background: #162544; }

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cad7ea;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #5e92da;
    box-shadow: 0 0 0 3px rgba(94, 146, 218, 0.2);
    outline: none;
}

.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th,
.table td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.table-wrap { overflow-x: auto; }

.hero { padding: 40px 0; }
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e9f7f2;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
}

.landing-page {
    --landing-bg-1: #fef6ea;
    --landing-bg-2: #f1fff7;
    --landing-bg-3: #ecf3ff;
    --landing-text: #172230;
    --landing-soft: #526279;
    --landing-line: rgba(26, 40, 59, 0.14);
    --landing-brand: #ff7b1a;
    --landing-brand-dark: #de5e06;
    --landing-navy: #152843;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--landing-text);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 123, 26, 0.22), transparent 35%),
        radial-gradient(circle at 92% 14%, rgba(47, 101, 224, 0.2), transparent 38%),
        linear-gradient(160deg, var(--landing-bg-1), var(--landing-bg-2) 48%, var(--landing-bg-3));
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    margin: 20px 0 26px;
    padding: 26px;
    box-shadow: var(--shadow-strong);
}

.landing-page h1,
.landing-page h2,
.landing-page h3 {
    font-family: "Outfit", "Segoe UI", sans-serif;
    letter-spacing: -0.03em;
    margin-top: 0;
}

.landing-page .btn {
    background: linear-gradient(120deg, var(--landing-brand), #ff9d5f);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(222, 94, 6, 0.24);
}

.landing-page .btn:hover {
    background: linear-gradient(120deg, var(--landing-brand-dark), #ff7b1a);
}

.landing-page .btn.secondary {
    background: var(--landing-navy);
    box-shadow: 0 10px 20px rgba(21, 40, 67, 0.24);
}

.landing-page .btn.secondary:hover { background: #101f33; }

.landing-hero-v2 {
    border: 1px solid var(--landing-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(3px);
    padding: clamp(20px, 3vw, 34px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 123, 26, 0.12);
    color: #a94702;
    border: 1px solid rgba(255, 123, 26, 0.28);
    border-radius: 999px;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 0.82rem;
}

.hero-copy h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    line-height: 1.03;
    margin: 10px 0 10px;
}

.hero-copy p {
    font-size: 1.03rem;
    color: var(--landing-soft);
    max-width: 660px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 12px;
}

.hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    max-width: 380px;
}

.hero-points li {
    border: 1px solid rgba(26, 40, 59, 0.12);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 12px;
    padding: 8px 10px;
    font-weight: 600;
}

.hero-preview { display: grid; gap: 10px; }

.hero-metric,
.hero-flow {
    border: 1px solid rgba(20, 38, 61, 0.2);
    border-radius: 15px;
    padding: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(236, 244, 255, 0.88));
}

.hero-metric strong {
    display: block;
    font-size: 1.65rem;
    color: #102b4e;
}

.hero-metric span {
    color: #5f7090;
    font-size: 0.95rem;
}

.hero-flow h3 { margin-bottom: 10px; }
.hero-flow p { margin: 6px 0; color: #4f6077; }

.landing-section {
    margin-top: 18px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--landing-line);
    background: rgba(255, 255, 255, 0.78);
}

.section-header { margin-bottom: 14px; }

.section-kicker {
    display: inline-block;
    font-size: 0.77rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #37557e;
    margin-bottom: 8px;
}

.section-header h2 {
    margin-bottom: 0;
    font-size: clamp(1.3rem, 3.3vw, 2rem);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.step-card {
    border: 1px solid rgba(38, 56, 82, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 246, 255, 0.58));
    border-radius: 14px;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(22, 40, 66, 0.14);
}

.step-number {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0d2a4d;
    background: rgba(47, 101, 224, 0.16);
    border-radius: 7px;
    padding: 4px 8px;
    margin-bottom: 8px;
}

.step-card p {
    margin-bottom: 0;
    color: #4e617b;
}

.demo-surface {
    background: linear-gradient(145deg, rgba(21, 40, 67, 0.96), rgba(32, 66, 103, 0.96));
    color: #e7f1ff;
}

.demo-surface p { color: #ccdaed; }

.demo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.demo-card {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
}

.demo-card h3 { margin-bottom: 10px; }

.demo-card ul {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.demo-card li {
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 8px 10px;
}

.demo-note {
    margin: 0;
    color: #ffd9bb;
    font-weight: 700;
}

.pricing-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.pricing-card {
    position: relative;
    border: 1px solid rgba(26, 40, 59, 0.15);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(25, 42, 71, 0.14);
}

.pricing-card.free { background: linear-gradient(180deg, #f6fff8, #eefaf1); }
.pricing-card.standard { background: linear-gradient(180deg, #f3f8ff, #e9f2ff); }
.pricing-card.premium { background: linear-gradient(180deg, #fff9f1, #fff1de); }

.pricing-card.featured {
    border-color: rgba(255, 123, 26, 0.52);
    box-shadow: 0 16px 30px rgba(222, 94, 6, 0.16);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    background: #152843;
    color: #fff;
    padding: 4px 10px;
}

.plan-price {
    margin: 4px 0 8px;
    font-size: 1.72rem;
    font-weight: 800;
    color: #112035;
}

.plan-description {
    margin-top: 0;
    color: #526177;
}

.pricing-page-intro {
    margin: 0;
    color: #4f6179;
}

.pricing-feature-list {
    margin: 12px 0 14px;
    padding-left: 0;
    list-style: none;
}

.pricing-feature-list li {
    margin-bottom: 8px;
    color: #3f4f67;
    list-style: none;
}

.pricing-feature-list li::marker {
    content: "";
}

.pricing-feature-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-feature-icon {
    display: inline-flex;
    width: 1.2rem;
    justify-content: center;
    line-height: 1.2;
    flex: 0 0 1.2rem;
}

.pricing-feature-list li small {
    display: block;
    color: #637490;
}

.pricing-feature-warning {
    margin: 10px 0 14px;
    color: #6a7a92;
    font-size: 0.94rem;
}

.pricing-card ul {
    margin: 12px 0 14px;
    padding-left: 0;
    list-style: none;
}

.pricing-card li { margin-bottom: 8px; color: #3f4f67; list-style: none; }
.pricing-card li::marker { content: ""; }
.pricing-card li small { display: block; color: #637490; }

.landing-cta {
    margin-top: 20px;
    background: linear-gradient(130deg, #ff7b1a, #ffa766);
    border-radius: 18px;
    color: #fff;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.landing-cta h2 { margin-bottom: 6px; }
.landing-cta p { margin: 0; color: rgba(255, 255, 255, 0.94); }

.landing-cta .btn {
    background: #fff;
    color: #13253b;
    box-shadow: none;
}

.landing-cta .btn:hover { background: #f7f8fb; }

.admin-layout {
    grid-template-columns: minmax(220px, 280px) 1fr;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 12px;
}

.admin-sidebar h3 { margin-top: 0; }
.admin-sidebar p { margin: 8px 0; }

body.page-admin {
    background:
        radial-gradient(circle at 0% -10%, rgba(20, 103, 190, 0.16), transparent 38%),
        radial-gradient(circle at 100% 0%, rgba(17, 143, 122, 0.16), transparent 36%),
        linear-gradient(170deg, #f3f7fc 0%, #eef4fb 48%, #e8f0fa 100%);
}

body.page-admin .container {
    width: min(1280px, 94%);
}

body.page-admin .admin-layout {
    grid-template-columns: minmax(230px, 290px) 1fr;
    gap: 18px;
}

body.page-admin .admin-sidebar {
    top: 14px;
    border: 1px solid #cdddf1;
    background:
        radial-gradient(circle at 10% -20%, rgba(29, 102, 205, 0.18), transparent 45%),
        linear-gradient(180deg, #f9fcff 0%, #f1f7ff 100%);
    box-shadow: 0 16px 34px rgba(19, 44, 81, 0.12);
}

body.page-admin .admin-sidebar h3 {
    margin-bottom: 14px;
    font-family: "Outfit", "Segoe UI", sans-serif;
    letter-spacing: -0.01em;
    color: #142945;
}

body.page-admin .admin-sidebar p {
    margin: 0;
}

body.page-admin .admin-sidebar p + p {
    margin-top: 6px;
}

body.page-admin .admin-sidebar a,
body.page-admin .admin-sidebar strong {
    display: block;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 0.92rem;
    text-decoration: none;
}

body.page-admin .admin-sidebar a {
    color: #29486f;
    border: 1px solid transparent;
}

body.page-admin .admin-sidebar a:hover {
    background: #eaf3ff;
    border-color: #c7dcf4;
    text-decoration: none;
}

body.page-admin .admin-sidebar strong {
    color: #0f5c44;
    background: #e8f8f2;
    border: 1px solid #bfe8d8;
}

body.page-admin .admin-layout > .grid,
body.page-admin .admin-layout > .card {
    gap: 16px;
}

body.page-admin .admin-layout .card {
    border-color: #d4e2f1;
    border-radius: 18px;
    padding: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.56), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: 0 14px 34px rgba(17, 37, 67, 0.1);
    overflow-x: auto;
}

body.page-admin .admin-layout h1,
body.page-admin .admin-layout h2,
body.page-admin .admin-layout h3 {
    font-family: "Outfit", "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
    color: #132b47;
}

body.page-admin .admin-layout h1 {
    margin: 0 0 12px;
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
}

body.page-admin .admin-layout .row.gap {
    gap: 10px;
    flex-wrap: wrap;
}

body.page-admin .admin-layout label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1f3c60;
}

body.page-admin .admin-layout input,
body.page-admin .admin-layout select,
body.page-admin .admin-layout textarea {
    border-radius: 11px;
    border-color: #c7d8ec;
    background: #fff;
}

body.page-admin .admin-layout input:focus,
body.page-admin .admin-layout select:focus,
body.page-admin .admin-layout textarea:focus {
    border-color: #4b87d5;
    box-shadow: 0 0 0 3px rgba(75, 135, 213, 0.2);
}

body.page-admin .admin-layout .btn {
    border-radius: 11px;
    padding: 10px 14px;
}

body.page-admin .admin-layout .btn.secondary {
    background: #244269;
}

body.page-admin .admin-layout .btn.secondary:hover {
    background: #1a3457;
}

body.page-admin .admin-layout .table {
    min-width: 760px;
    border-radius: 12px;
    overflow: hidden;
}

body.page-admin .admin-layout .table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #ecf4ff;
    color: #203f64;
    font-weight: 800;
}

body.page-admin .admin-layout .table td,
body.page-admin .admin-layout .table th {
    border-color: #d5e3f2;
    vertical-align: top;
}

body.page-admin .admin-layout .table tr:nth-child(even) td {
    background: #fbfdff;
}

body.page-admin .admin-layout .table tr:hover td {
    background: #f2f7ff;
}

body.page-admin .admin-layout img[style*="width:56px"] {
    border: 1px solid #d4e3f1;
    box-shadow: 0 8px 16px rgba(18, 45, 82, 0.14);
}

body.page-admin .admin-layout p[style*="#b42318"],
body.page-admin .admin-layout p[style*="#b00020"] {
    color: #8f1717 !important;
    background: #ffecec;
    border: 1px solid #f2c6c6;
    padding: 10px 12px;
    border-radius: 10px;
    margin: 6px 0 12px 0;
}

body.page-admin .admin-layout p[style*="#1f7a1f"] {
    color: #0f5f2f !important;
    background: #e9f8ef;
    border: 1px solid #c1e8cf;
    padding: 10px 12px;
    border-radius: 10px;
    margin: 6px 0 12px 0;
}

body.page-admin .admin-layout form[style*="display:inline"] {
    display: inline-flex !important;
    align-items: center;
    margin-left: 8px !important;
}

body.page-admin .admin-layout button[style*="background:none"] {
    border: 0;
    background: none;
    color: #b42318 !important;
    cursor: pointer;
    font-weight: 700;
    border-radius: 8px;
    padding: 4px 6px !important;
}

body.page-admin .admin-layout button[style*="background:none"]:hover {
    background: #ffe9e9;
}

.vendor-main {
    gap: 14px;
}

.vendor-main .card {
    border-radius: 18px;
}

.vendor-main h1,
.vendor-main h2,
.vendor-main h3 {
    font-family: "Outfit", "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
}

.vendor-title {
    margin-bottom: 4px;
}

.vendor-section-title {
    margin-bottom: 10px;
}

.vendor-page-note {
    margin: 0 0 14px;
    color: #586d86;
}

.vendor-panel {
    width: min(100%, 860px);
}

.vendor-alert {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 8px 0 12px;
    font-weight: 600;
}

.vendor-alert.error {
    color: #8d1212;
    background: #ffeaea;
    border-color: #f5c4c4;
}

.vendor-alert.success {
    color: #0d5f2d;
    background: #e8f8ef;
    border-color: #bce9cc;
}

.vendor-alert.warning {
    color: #7a4b00;
    background: #fff6e6;
    border-color: #f2d7ab;
}

.vendor-soft-text {
    color: #546981;
}

.vendor-muted-note {
    margin: 0;
    color: #5a6f87;
}

.vendor-muted-note strong {
    color: #213c5f;
}

.vendor-note-inline {
    margin: 6px 0 12px 0;
    color: #7a4b00;
}

.vendor-subcard {
    background: linear-gradient(180deg, #fcfeff, #f4f8ff);
}

.vendor-subcard.light-green {
    background: linear-gradient(180deg, #fcfffe, #f3faf6);
}

.vendor-subcard.warm {
    background: linear-gradient(180deg, #fffdf7, #fff3dc);
}

.vendor-kpi-label {
    margin-top: 0;
}

.vendor-kpi-value {
    margin: 0;
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    font-weight: 800;
    color: #123259;
}

.vendor-kpi-caption {
    margin: 6px 0 0;
    color: #5f7590;
}

.vendor-form-card {
    border: 1px solid #dbe6f3;
    background: linear-gradient(180deg, #fdfeff, #f5f9ff);
}

.vendor-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.vendor-inline-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.vendor-inline-form .vendor-input-wrap {
    min-width: 110px;
}

.vendor-inline-form select,
.vendor-inline-form input {
    margin: 0;
}

.affiliate-link-input {
    margin-top: 8px;
}

.affiliate-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.affiliate-link-feedback {
    margin-top: 8px;
    min-height: 1.2em;
}

.affiliate-link-feedback.is-error {
    color: #b42318;
}

.vendor-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vendor-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.vendor-status-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c9d9ee;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #254a76;
    background: #eef5ff;
}

.vendor-status-pill.pending {
    color: #7c4a00;
    border-color: #f0d2ac;
    background: #fff5e8;
}

.vendor-status-pill.completed,
.vendor-status-pill.active {
    color: #0f6232;
    border-color: #b7e3c8;
    background: #e9f9ef;
}

.vendor-status-pill.inactive {
    color: #5c6673;
    border-color: #d4dbe7;
    background: #f1f4f9;
}

.vendor-thermal-card {
    width: min(100%, 860px);
}

.vendor-thermal-ticket {
    width: min(100%, 420px);
    margin: 0 auto;
    border: 1px dashed #c7d6e8;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.vendor-ticket-head {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #d2dbe7;
}

.vendor-ticket-shop {
    margin: 0 0 4px;
    font-size: 1.06rem;
}

.vendor-ticket-line {
    margin: 0;
    color: #586d86;
    font-size: 0.9rem;
}

.vendor-ticket-table th {
    width: 36%;
}

.vendor-ticket-foot {
    margin: 10px 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: #546981;
    border-top: 1px dashed #d2dbe7;
    padding-top: 8px;
}

.vendor-lock-card {
    border: 1px solid rgba(214, 152, 33, 0.3);
    background: linear-gradient(180deg, #fff8ed, #ffefd3);
}

.vendor-lock-title {
    margin-top: 0;
}

.vendor-separator {
    border: 0;
    border-top: 1px solid #dde6f1;
    margin: 16px 0;
}

.vendor-checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 6px;
}

.vendor-checkbox-inline input {
    width: auto;
    margin: 0;
}

.vendor-inline-check {
    width: auto;
    margin: 0 6px 0 0;
}

.vendor-gallery-grid {
    margin-top: 10px;
}

.vendor-gallery-item {
    display: block;
    margin: 0;
    padding: 12px;
    border: 1px solid #dce7f3;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.vendor-gallery-image {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #d7e4f3;
}

.vendor-gallery-meta {
    display: block;
    margin-top: 8px;
}

.vendor-gallery-meta input {
    width: auto;
    margin-right: 6px;
}

.vendor-variant-card {
    margin: 0 0 10px 0;
    background: linear-gradient(180deg, #ffffff, #f8fcff);
    border: 1px solid #dce7f3;
}

.vendor-tiny-help {
    margin-top: 6px;
}

.vendor-shop-link-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.vendor-feedback {
    margin: 10px 0 0 0;
    color: #44574c;
}

.vendor-logo-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dfe8dd;
}

.vendor-radio-card {
    display: block;
    border: 1px solid #d8e3f0;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    background: #fbfdff;
}

.vendor-radio-card input {
    width: auto;
    margin-right: 8px;
}

.vendor-radio-card small {
    color: #54677f;
}

.vendor-proof-form {
    margin-top: 12px;
}

.shop-view-shell {
    margin: 16px 0 24px;
}

.shop-hero {
    border-radius: 20px;
    background:
        radial-gradient(circle at 14% 6%, rgba(17, 147, 111, 0.2), transparent 32%),
        radial-gradient(circle at 92% 8%, rgba(47, 101, 224, 0.18), transparent 36%),
        linear-gradient(150deg, #ffffff, #f3f9ff);
}

.shop-hero-content h1 {
    margin: 4px 0 8px;
    font-family: "Outfit", "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
}

.shop-hero-content p {
    margin: 0;
    color: #526883;
    max-width: 640px;
}

.shop-hero-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #b8d4ee;
    background: #eff6ff;
    color: #274c79;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
}

.shop-hero-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #214165;
    background: #ecf4ff;
    border: 1px solid #c8d9ee;
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.shop-product-card {
    border: 1px solid #d7e4f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(19, 43, 76, 0.1);
    overflow: hidden;
}

.shop-product-media {
    background: linear-gradient(160deg, #eef5ff, #f8fcff);
}

.shop-product-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.shop-product-placeholder {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5e7390;
    font-weight: 700;
}

.shop-product-body {
    padding: 14px;
}

.shop-product-body h3 {
    margin: 0 0 8px;
    font-family: "Outfit", "Segoe UI", sans-serif;
}

.shop-price {
    margin: 0 0 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.shop-price strong {
    color: #123762;
}

.shop-product-meta {
    margin: 0 0 6px;
    color: #546b86;
    font-size: 0.92rem;
}

.shop-product-cta {
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

.shop-empty-state {
    text-align: center;
}

.shop-empty-state h1,
.shop-empty-state h2 {
    margin-bottom: 8px;
    font-family: "Outfit", "Segoe UI", sans-serif;
}

.shop-empty-state p {
    margin: 0;
    color: #566d88;
}

.shop-layout-compact .shop-hero-compact {
    padding: 14px 16px;
    border-radius: 16px;
    background:
        linear-gradient(140deg, #ffffff, #f6faff);
}

.shop-layout-compact .shop-hero-content h1 {
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.shop-products-grid-compact {
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.shop-product-card-compact .shop-product-image,
.shop-product-card-compact .shop-product-placeholder {
    height: 170px;
}

.shop-product-card-compact .shop-product-body {
    padding: 11px;
}

.shop-product-card-compact .shop-product-body h3 {
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.shop-product-card-compact .shop-price {
    margin-bottom: 6px;
}

.shop-layout-showcase .shop-hero-showcase {
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 122, 34, 0.22), transparent 36%),
        radial-gradient(circle at 88% 20%, rgba(18, 124, 218, 0.22), transparent 42%),
        linear-gradient(148deg, #ffffff, #eef6ff 52%, #f8fbff);
}

.shop-layout-showcase .shop-hero-content h1 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.shop-products-grid-showcase {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.shop-products-grid-showcase .shop-product-card.is-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
}

.shop-products-grid-showcase .shop-product-card.is-featured .shop-product-image,
.shop-products-grid-showcase .shop-product-card.is-featured .shop-product-placeholder {
    height: 100%;
    min-height: 250px;
}

.shop-products-grid-showcase .shop-product-card.is-featured .shop-product-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop-product-page {
    margin-top: 10px;
}

.shop-product-shell {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.shop-product-gallery-panel {
    background:
        radial-gradient(circle at 0% 0%, rgba(40, 123, 225, 0.14), transparent 46%),
        radial-gradient(circle at 100% 0%, rgba(255, 132, 64, 0.13), transparent 52%),
        linear-gradient(170deg, #fbfdff, #f3f8ff);
}

.shop-product-main-image {
    width: 100%;
    min-height: 320px;
    max-height: 510px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    border: 1px solid #d9e5f4;
}

.shop-product-main-placeholder {
    min-height: 340px;
    border-radius: 14px;
    border: 1px dashed #bed0e7;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, #f3f8ff, #f8fcff);
    color: #5c7394;
    font-weight: 700;
}

.shop-product-thumbs {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 9px;
}

.shop-product-thumb-btn {
    border: 1px solid #d3e1f2;
    background: #fff;
    padding: 3px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-product-thumb-btn:hover {
    transform: translateY(-1px);
    border-color: #89add5;
}

.shop-product-thumb-btn.is-active {
    border-color: #1f6fc2;
    box-shadow: 0 0 0 3px rgba(31, 111, 194, 0.16);
}

.shop-product-thumb-btn img {
    width: 100%;
    height: 76px;
    object-fit: cover;
    border-radius: 9px;
    display: block;
}

.shop-product-info-panel {
    position: sticky;
    top: 80px;
    background:
        linear-gradient(175deg, #ffffff, #f7fbff 50%, #eef7ff);
}

.shop-product-badge {
    margin: 0;
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #1f507d;
    background: #e9f3ff;
    border: 1px solid #c8dcee;
}

.shop-product-title {
    margin: 11px 0 8px;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: clamp(1.45rem, 2.8vw, 2.05rem);
    line-height: 1.1;
    color: #102a4a;
}

.shop-product-pricing {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 12px;
}

.shop-product-pricing strong {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    color: #143f6e;
}

.shop-product-pricing small {
    color: #7185a1;
    font-weight: 700;
}

.shop-product-facts {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.shop-product-facts p {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d8e4f4;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.shop-product-facts span {
    color: #536d8a;
    font-size: 0.9rem;
    font-weight: 700;
}

.shop-product-facts strong {
    color: #163a63;
    font-weight: 800;
    font-size: 0.93rem;
}

.shop-product-contact {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #4c6582;
}

.shop-product-order-btn {
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    font-size: 0.98rem;
}

.shop-negotiation-form {
    display: grid;
    gap: 8px;
}

.shop-negotiation-form label {
    margin: 0;
    color: #446282;
    font-size: 0.86rem;
    font-weight: 700;
}

.shop-negotiation-form input {
    margin: 0;
}

.shop-negotiation-fallback {
    display: inline-block;
    margin-top: 8px;
    color: #1e64ac;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.shop-negotiation-fallback:hover {
    text-decoration: underline;
}

.shop-product-section-card {
    margin-top: 14px;
}

.shop-product-section-card h2 {
    margin: 0 0 10px;
    font-family: "Outfit", "Segoe UI", sans-serif;
    color: #102c50;
}

.shop-variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.shop-variant-card {
    border: 1px solid #d9e5f4;
    border-radius: 14px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.shop-variant-card h3 {
    margin: 0 0 7px;
    font-size: 1rem;
    font-family: "Outfit", "Segoe UI", sans-serif;
    color: #1b3f66;
}

.shop-variant-meta {
    margin: 0 0 8px;
    color: #546e8d;
    font-size: 0.87rem;
}

.shop-variant-price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.shop-variant-price strong {
    color: #123b67;
}

.shop-variant-price small {
    color: #7488a4;
    font-weight: 700;
}

.shop-variant-stock {
    margin: 8px 0 0;
    color: #4e6784;
    font-size: 0.88rem;
}

.shop-product-description {
    margin: 0;
    color: #2f4762;
    line-height: 1.7;
}

.shop-order-page {
    margin-top: 10px;
}

.shop-order-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.2fr);
    gap: 16px;
    align-items: start;
}

.shop-order-product {
    position: sticky;
    top: 80px;
    background:
        radial-gradient(circle at 12% 0%, rgba(26, 123, 202, 0.16), transparent 42%),
        linear-gradient(165deg, #ffffff, #f5faff 58%, #eef6ff);
}

.shop-order-chip {
    margin: 0;
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid #c9dcee;
    background: #eaf3ff;
    color: #1f527f;
    font-size: 0.79rem;
    font-weight: 800;
}

.shop-order-product h1 {
    margin: 10px 0 8px;
    color: #102d4f;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

.shop-order-price {
    margin: 0 0 12px;
    color: #3f5c7e;
}

.shop-order-price strong {
    color: #163f6d;
    font-size: 1.18rem;
}

.shop-order-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.shop-order-meta p {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d8e4f3;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-order-meta span {
    color: #54708f;
    font-size: 0.9rem;
    font-weight: 700;
}

.shop-order-meta strong {
    color: #173d67;
}

.shop-order-back {
    width: 100%;
    text-align: center;
}

.shop-order-form-card h2 {
    margin: 0 0 6px;
    color: #102d4f;
    font-family: "Outfit", "Segoe UI", sans-serif;
}

.shop-order-note {
    margin: 0 0 12px;
    color: #56708e;
    font-size: 0.93rem;
}

.shop-order-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid #f3c4c8;
    background: #fff3f4;
    color: #9a2431;
    font-weight: 700;
}

.shop-order-form label {
    font-weight: 700;
    color: #1f416a;
}

.shop-order-form textarea {
    resize: vertical;
}

.shop-order-submit {
    width: 100%;
    margin-top: 4px;
}

.vendor-intro {
    margin-top: -2px;
    color: #566a82;
}

.vendor-sidebar-title {
    margin-bottom: 4px;
}

.vendor-sidebar-subtitle {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #5b6f89;
}

.vendor-menu {
    display: grid;
    gap: 8px;
}

.vendor-menu-link {
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(20, 53, 100, 0.14);
    background: linear-gradient(180deg, #ffffff, #f6faff);
    padding: 10px 12px;
    color: #1e3353;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vendor-menu-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(18, 42, 78, 0.12);
    background: #eef5ff;
}

.vendor-menu-link.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(130deg, #1f4f94, #0c8f6b);
    box-shadow: 0 12px 22px rgba(16, 56, 110, 0.24);
}

.vendor-menu-link.is-locked {
    opacity: 0.68;
    cursor: not-allowed;
}

.vendor-menu-lock a {
    display: inline-block;
    margin: 4px 0 0 2px;
    font-size: 0.84rem;
    font-weight: 700;
}

.vendor-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.vendor-kpi-card {
    border: 1px solid #d8e5f4;
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff, #f3f8ff);
}

.vendor-kpi-card h3 {
    margin: 0 0 8px;
    font-size: 0.92rem;
    color: #4e617c;
}

.vendor-kpi-card p {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.95rem);
    font-weight: 800;
    color: #132a4a;
}

.vendor-plan-lock {
    grid-column: 1 / -1;
    border: 1px solid rgba(216, 129, 31, 0.28);
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(180deg, #fff8ec, #fff1d9);
}

.vendor-plan-lock h3 {
    margin: 0 0 8px;
}

.vendor-plan-lock p {
    margin: 0;
}

.vendor-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.vendor-main .table th {
    background: #f3f8ff;
    color: #1f3b5f;
}

.vendor-main .table td,
.vendor-main .table th {
    border-color: #d6e3f2;
}

.vendor-main .table tr:nth-child(even) td {
    background: #fbfdff;
}

.vendor-main .table tr:hover td {
    background: #f0f6ff;
}

.vendor-main label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-shell {
    display: flex;
    justify-content: center;
    padding: 28px 0 40px;
}

.auth-card {
    width: min(100%, 680px);
    margin: 0;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #d6e3ef;
    box-shadow: var(--shadow-soft);
}

.auth-card.auth-card-sm { width: min(100%, 500px); }
.auth-title { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.auth-subtitle { margin: 8px 0 16px; color: var(--ink-soft); }
.auth-error { color: #b00020; margin: 0 0 12px; }
.auth-flash { margin: 0 0 12px; }
.auth-form h3 { margin: 10px 0 10px; color: #1f3d30; }
.auth-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.auth-form input { margin-bottom: 12px; }
.auth-help { display: block; margin-top: -4px; color: var(--ink-soft); }
.auth-divider { border: 0; border-top: 1px solid #e1eaf2; margin: 14px 0; }
.auth-submit { margin-top: 12px; }
.auth-links { margin-top: 12px; }
.auth-links a { font-weight: 700; }

.contact-page {
    display: grid;
    gap: 14px;
    padding: 18px 0 28px;
}

.contact-hero {
    border-radius: 16px;
    border: 1px solid #d6e3ef;
    background: linear-gradient(130deg, #f4f9ff, #eef5ff);
}

.contact-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    color: #17345b;
}

.contact-hero p {
    margin: 0;
    color: #48617f;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-info-card h2,
.contact-form-card h2,
.contact-faq-card h2 {
    margin: 0 0 10px;
    color: #17345b;
}

.contact-info-card h3 {
    margin: 14px 0 8px;
    color: #1f3b5f;
}

.contact-info-card p {
    margin: 0 0 8px;
    color: #3f5b7d;
}

.contact-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #cfe0f1;
    font-weight: 700;
    text-decoration: none;
    color: #1f3b5f;
    background: #f5f9ff;
}

.contact-social-link:hover {
    text-decoration: none;
    background: #eaf3ff;
}

.contact-other-list {
    margin: 0;
    padding-left: 18px;
}

.contact-other-list li {
    margin-bottom: 6px;
    color: #3f5b7d;
}

.contact-form-card .auth-subtitle {
    margin-top: 0;
}

.contact-faq-list {
    display: grid;
    gap: 10px;
}

.contact-faq-list article {
    border: 1px solid #dbe7f3;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f9fcff;
}

.contact-faq-list h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #1f3b5f;
}

.contact-faq-list p {
    margin: 0;
    color: #4a6381;
}

.site-footer {
    margin-top: 42px;
    border-top: 1px solid rgba(21, 48, 84, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 255, 0.92));
}

.site-footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #11233d;
}

.footer-note {
    margin: 3px 0 0;
    font-size: 0.9rem;
    color: #5b6f89;
}

.footer-credit {
    text-align: center;
    margin: 0;
}

.footer-credit-wrap {
    border-top: 1px solid rgba(21, 48, 84, 0.1);
    padding: 10px 0 14px;
}

.footer-credit-name,
.footer-credit-brand {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.footer-credit-name {
    color: #163a63;
    background: rgba(86, 152, 255, 0.16);
}

.footer-credit-brand {
    color: #0b5a39;
    background: rgba(53, 191, 129, 0.18);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(26, 58, 101, 0.14);
    color: #233a59;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.74);
}

.footer-link:hover {
    text-decoration: none;
    background: #edf4ff;
}

.badge-system-surface {
    border: 1px solid rgba(255, 123, 26, 0.22);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 232, 0.82));
}

.badge-system-intro {
    margin-top: 0;
    color: #3d4f67;
    max-width: 860px;
}

.badge-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.badge-pillar {
    border: 1px solid rgba(21, 40, 67, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    padding: 14px;
}

.badge-pillar h3 {
    margin: 0 0 6px;
}

.badge-pillar p {
    margin: 0;
    color: #516279;
}

.badge-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.badge-showcase-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.badge-showcase-card {
    border: 1px solid rgba(21, 40, 67, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    padding: 14px;
}

.badge-showcase-card h3 {
    margin: 8px 0;
}

.badge-showcase-card p {
    color: #556880;
}

.badge-showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 123, 26, 0.3);
    background: rgba(255, 123, 26, 0.12);
    color: #8f3b00;
    border-radius: 999px;
    padding: 5px 10px;
    margin: 0;
    font-weight: 700;
    font-size: 0.82rem;
}

.vendor-badge-list,
.shop-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vendor-badge-list {
    margin: 0 0 12px;
}

.shop-badge-list {
    margin: 2px 0 8px;
}

.vendor-badge-pill,
.shop-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.vendor-badge-easy,
.shop-badge-easy {
    background: #eafaf0;
    color: #15613e;
    border-color: #b6e6c9;
}

.vendor-badge-medium,
.shop-badge-medium {
    background: #eaf2ff;
    color: #244b8d;
    border-color: #bfd4fb;
}

.vendor-badge-hard,
.shop-badge-hard {
    background: #fff4e8;
    color: #8a4b00;
    border-color: #ffd3a7;
}

.vendor-badge-rare,
.shop-badge-rare {
    background: #fff0f4;
    color: #8d1d46;
    border-color: #f6b8cf;
}

@media (max-width: 900px) {
    .hero-grid,
    .demo-layout {
        grid-template-columns: 1fr;
    }

    .landing-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .site-footer-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .vendor-menu-link {
        padding: 9px 11px;
    }

    .vendor-panel {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .site-header-shell {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .site-nav {
        width: 100%;
    }

    .site-link {
        padding: 8px 10px;
    }

    .user-pill {
        width: 100%;
        justify-content: center;
    }

    .landing-page {
        border-radius: 16px;
        padding: 14px;
    }

    .landing-section,
    .landing-hero-v2,
    .landing-cta {
        padding: 14px;
    }

    .auth-shell { padding-top: 18px; }
    .auth-card { padding: 18px; }

    .shop-product-image,
    .shop-product-placeholder {
        height: 185px;
    }

    .shop-product-main-image,
    .shop-product-main-placeholder {
        min-height: 250px;
    }
}

@media (max-width: 980px) {
    .shop-product-shell {
        grid-template-columns: 1fr;
    }

    .shop-product-info-panel {
        position: static;
    }

    .shop-order-shell {
        grid-template-columns: 1fr;
    }

    .shop-order-product {
        position: static;
    }

    .shop-products-grid-showcase .shop-product-card.is-featured {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .shop-products-grid-showcase .shop-product-card.is-featured .shop-product-image,
    .shop-products-grid-showcase .shop-product-card.is-featured .shop-product-placeholder {
        min-height: 210px;
    }
}

.affiliate-surface {
    background: radial-gradient(circle at 12% 8%, rgba(255, 209, 146, 0.28), transparent 40%),
                linear-gradient(140deg, #132d4d 0%, #1b4a6f 55%, #225b75 100%);
    color: #eef5ff;
}

.affiliate-surface .section-kicker {
    color: #ffd39b;
}

.affiliate-surface p {
    color: #d8e5f5;
}

.affiliate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.affiliate-copy h2 {
    margin-bottom: 10px;
}

.affiliate-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 10px;
}

.affiliate-highlights span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 213, 157, 0.46);
    background: rgba(255, 213, 157, 0.16);
    color: #ffe5be;
    padding: 5px 11px;
    font-size: 0.82rem;
    font-weight: 700;
}

.affiliate-points {
    margin: 0 0 14px;
    padding-left: 18px;
    display: grid;
    gap: 7px;
}

.affiliate-points li {
    color: #e8f1ff;
}

.affiliate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.affiliate-card {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(7, 23, 40, 0.34);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(2px);
}

.affiliate-card h3 {
    margin-bottom: 12px;
}

.affiliate-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.affiliate-steps li {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: start;
    gap: 10px;
}

.affiliate-steps strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.82rem;
    background: rgba(255, 213, 157, 0.24);
    color: #ffe5be;
    border: 1px solid rgba(255, 213, 157, 0.38);
}

.affiliate-steps span {
    color: #e5efff;
    line-height: 1.45;
}

.affiliate-steps-program strong {
    background: rgba(47, 101, 224, 0.14);
    color: #163d73;
    border-color: rgba(47, 101, 224, 0.28);
}

.affiliate-steps-program span {
    color: #223a5a;
}

.affiliate-note {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.28);
    color: #ffd9aa !important;
    font-weight: 700;
}

.affiliate-note-program {
    border-top-color: rgba(15, 106, 67, 0.34);
    color: #0f6a43 !important;
}

@media (max-width: 900px) {
    .affiliate-layout {
        grid-template-columns: 1fr;
    }
}

/* Responsive hardening */
img,
video,
iframe,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

dialog {
    max-width: min(680px, calc(100vw - 24px));
}

.card {
    max-width: 100%;
}

.card,
.landing-page,
.landing-section,
.landing-hero-v2,
.landing-cta {
    overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
    .container {
        width: min(1120px, 95%);
    }

    body.page-admin .admin-layout {
        grid-template-columns: minmax(210px, 250px) 1fr;
        gap: 14px;
    }
}

@media (max-width: 1024px) {
    .container {
        width: min(1120px, 96%);
    }

    body.page-admin .admin-layout {
        grid-template-columns: 1fr;
    }

    body.page-admin .admin-sidebar {
        position: static;
    }

    .vendor-layout,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .vendor-sidebar,
    .admin-sidebar {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .card {
        padding: 14px;
    }

    .row {
        flex-wrap: wrap;
    }

    .btn {
        max-width: 100%;
    }

    .site-nav {
        gap: 6px;
    }

    .site-link {
        padding: 8px 10px;
        font-size: 0.92rem;
    }
}

@media (max-width: 760px) {
    .card,
    .table-wrap,
    .vendor-table-wrap,
    body.page-admin .admin-layout .card {
        overflow-x: auto;
    }

    .table,
    .vendor-main .table,
    body.page-admin .admin-layout .table {
        min-width: 640px;
    }

    .table th,
    .table td {
        font-size: 0.9rem;
        padding: 8px;
    }

    .vendor-main .vendor-orders-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
    }

    .vendor-main .vendor-orders-table thead {
        display: none;
    }

    .vendor-main .vendor-orders-table,
    .vendor-main .vendor-orders-table tbody,
    .vendor-main .vendor-orders-table tr,
    .vendor-main .vendor-orders-table td {
        display: block;
        width: 100%;
    }

    .vendor-main .vendor-orders-table tr {
        margin-bottom: 12px;
        border: 1px solid #d6e3f2;
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
    }

    .vendor-main .vendor-orders-table td {
        border: 0;
        border-bottom: 1px solid #e5edf8;
        display: grid;
        grid-template-columns: minmax(90px, 34%) 1fr;
        gap: 10px;
        align-items: start;
        padding: 10px 12px;
    }

    .vendor-main .vendor-orders-table td:last-child {
        border-bottom: 0;
    }

    .vendor-main .vendor-orders-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #35577f;
    }

    .vendor-main .vendor-orders-table .vendor-order-actions {
        align-items: stretch;
    }

    .vendor-main .vendor-orders-table .vendor-inline-form {
        width: 100%;
    }

    .footer-links {
        width: 100%;
    }

    .footer-link {
        flex: 1 1 auto;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(1120px, 97%);
    }

    .site-header {
        padding: 10px 0;
    }

    .site-header-shell {
        gap: 8px;
    }

    .brand-mark {
        font-size: 1rem;
    }

    .site-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .site-link,
    .site-link-cta {
        width: 100%;
    }

    .vendor-main .vendor-orders-table td {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .vendor-thermal-ticket {
        width: 100%;
    }

    .user-pill {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .auth-card {
        padding: 14px;
        border-radius: 14px;
    }

    .auth-form h3 {
        font-size: 1rem;
    }

    .landing-page {
        margin: 14px 0 18px;
        padding: 12px;
    }

    .landing-section,
    .landing-hero-v2,
    .landing-cta {
        padding: 12px;
        border-radius: 14px;
    }

    .landing-cta .btn,
    .hero-actions .btn,
    .affiliate-actions .btn,
    .vendor-quick-actions .btn {
        width: 100%;
    }
}

@media print {
    @page {
        size: 80mm auto;
        margin: 4mm;
    }

    .site-header,
    .site-footer,
    .admin-sidebar,
    .mobile-dim,
    .mobile-toggle-btn,
    .vendor-print-actions {
        display: none !important;
    }

    body {
        background: #fff !important;
        margin: 0 !important;
    }

    main.container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .admin-layout,
    .vendor-main {
        display: block !important;
    }

    .vendor-main .card.vendor-thermal-card {
        box-shadow: none !important;
        border: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .vendor-main .vendor-title {
        text-align: center;
        font-size: 12pt;
        margin: 0 0 6px;
    }

    .vendor-main .vendor-thermal-ticket {
        width: 72mm !important;
        margin: 0 auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    .vendor-main .vendor-table-wrap {
        overflow: visible !important;
    }

    .vendor-main .vendor-ticket-table {
        width: 100% !important;
        min-width: 0 !important;
    }

    .vendor-main .vendor-ticket-table th,
    .vendor-main .vendor-ticket-table td {
        border: 0 !important;
        border-bottom: 1px dashed #b8c8da !important;
        padding: 2.4mm 0 !important;
        font-size: 10pt !important;
        background: transparent !important;
    }

    .vendor-main .vendor-ticket-table th {
        width: 38%;
        color: #111 !important;
    }

    .vendor-main .vendor-ticket-line,
    .vendor-main .vendor-ticket-foot {
        color: #111 !important;
    }
}

.mobile-toggle-btn {
    display: none;
    position: relative;
    border: 1px solid rgba(32, 56, 92, 0.22);
    background: rgba(255, 255, 255, 0.94);
    color: #1d3558;
    border-radius: 10px;
    width: 42px;
    height: 38px;
    padding: 0;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.mobile-toggle-btn:hover {
    background: #eef4ff;
}

.toggle-bars,
.toggle-bars::before,
.toggle-bars::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #1d3558;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.toggle-bars {
    position: relative;
}

.toggle-bars::before {
    position: absolute;
    left: 0;
    top: -6px;
}

.toggle-bars::after {
    position: absolute;
    left: 0;
    top: 6px;
}

.mobile-toggle-btn[aria-expanded="true"] .toggle-bars {
    transform: rotate(45deg);
}

.mobile-toggle-btn[aria-expanded="true"] .toggle-bars::before {
    transform: rotate(90deg) translateX(-6px);
}

.mobile-toggle-btn[aria-expanded="true"] .toggle-bars::after {
    opacity: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-dim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(12, 20, 36, 0.5);
}

@media (max-width: 900px) {
    body.has-mobile-header-toggle .mobile-toggle-btn[data-header-toggle] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.has-mobile-header-toggle .site-header-shell {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    body.has-mobile-header-toggle .brand-mark {
        flex: 1 1 auto;
    }

    body.has-mobile-header-toggle .site-nav {
        display: none;
        width: 100%;
        padding-top: 6px;
    }

    body.has-mobile-header-toggle.header-menu-open .site-nav {
        display: flex;
    }

    body.has-mobile-header-toggle.header-menu-open .mobile-dim {
        display: block;
    }
}

@media (max-width: 1024px) {
    body.has-sidebar-toggle .mobile-toggle-btn[data-sidebar-toggle] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.has-sidebar-toggle .site-header-shell {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    body.has-sidebar-toggle .brand-mark {
        flex: 1 1 auto;
    }

    body.has-sidebar-toggle .site-nav {
        display: none;
    }

    body.has-sidebar-toggle main .admin-sidebar {
        position: fixed;
        top: 74px;
        left: 0;
        width: min(86vw, 320px);
        max-height: calc(100vh - 86px);
        overflow-y: auto;
        z-index: 130;
        margin: 0 0 0 10px;
        transform: translateX(-112%);
        transition: transform 0.22s ease;
    }

    body.has-sidebar-toggle.sidebar-open main .admin-sidebar {
        transform: translateX(0);
    }

    body.has-sidebar-toggle.sidebar-open .mobile-dim {
        display: block;
    }
}
