/* B2B Cross-border Vape Ordering Platform - Premium Minimalist UI */

:root {
    --b2b-bg: #fafafa;
    --b2b-bg-white: #ffffff;
    --b2b-text: #1d1d1f;
    --b2b-text-secondary: #6e6e73;
    --b2b-text-muted: #86868b;
    --b2b-border: #d2d2d7;
    --b2b-border-light: #e8e8ed;
    --b2b-accent: #1d1d1f;
    --b2b-accent-hover: #424245;
    --b2b-radius: 12px;
    --b2b-radius-sm: 8px;
    --b2b-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    --b2b-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
    --b2b-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --b2b-max-width: 1200px;
    --b2b-nav-height: 52px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body.b2b-body {
    font-family: var(--b2b-font);
    color: var(--b2b-text);
    background: var(--b2b-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.47059;
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
}

body.b2b-body .content {
    padding-top: var(--b2b-nav-height);
    min-height: calc(100vh - 120px);
    overflow-x: hidden;
}

/* Logged-in portal pages (user center, profile, etc.) */
body.b2b-body #content-container.container {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: auto;
    margin-right: auto;
}

body.b2b-body.has-mobile-nav .content {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* Mobile bottom tab bar */
.b2b-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--b2b-border-light);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: stretch;
}

.b2b-mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--b2b-text-muted);
    text-decoration: none;
    border-radius: 8px;
    min-width: 0;
}

.b2b-mobile-nav a i {
    font-size: 18px;
}

.b2b-mobile-nav a.active,
.b2b-mobile-nav a:hover {
    color: var(--b2b-text);
    background: var(--b2b-bg);
}

.b2b-desktop-only {
    display: block;
}

.b2b-mobile-only {
    display: none;
}

/* ── Navigation ── */
.b2b-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--b2b-nav-height);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--b2b-border-light);
}

.b2b-nav-inner {
    max-width: var(--b2b-max-width);
    margin: 0 auto;
    padding: 0 22px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.b2b-logo {
    font-size: 19px;
    font-weight: 600;
    color: var(--b2b-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.b2b-logo:hover,
.b2b-logo:focus {
    color: var(--b2b-text);
    text-decoration: none;
}

.b2b-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.b2b-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--b2b-text);
}

.b2b-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--b2b-text);
    margin: 4px 0;
    transition: 0.2s;
}

/* ── Buttons ── */
.b2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 980px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--b2b-font);
    line-height: 1.2;
    white-space: nowrap;
}

.b2b-btn-primary {
    background: var(--b2b-accent);
    color: #fff;
}

.b2b-btn-primary:hover,
.b2b-btn-primary:focus {
    background: var(--b2b-accent-hover);
    color: #fff;
    text-decoration: none;
}

.b2b-btn-outline {
    background: transparent;
    color: var(--b2b-text);
    border: 1px solid var(--b2b-border);
}

.b2b-btn-outline:hover,
.b2b-btn-outline:focus {
    background: var(--b2b-bg);
    color: var(--b2b-text);
    text-decoration: none;
    border-color: var(--b2b-text-secondary);
}

.b2b-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.b2b-btn-block {
    width: 100%;
}

/* ── Hero Section ── */
.b2b-hero {
    padding: 80px 22px 60px;
    text-align: center;
    max-width: var(--b2b-max-width);
    margin: 0 auto;
}

.b2b-hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--b2b-text-secondary);
    margin-bottom: 20px;
}

.b2b-hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 20px;
    color: var(--b2b-text);
}

.b2b-hero-sub {
    font-size: clamp(17px, 2.5vw, 21px);
    color: var(--b2b-text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.5;
    font-weight: 400;
}

.b2b-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Stats / Trust ── */
.b2b-stats {
    padding: 60px 22px;
    background: var(--b2b-bg-white);
    border-top: 1px solid var(--b2b-border-light);
    border-bottom: 1px solid var(--b2b-border-light);
}

.b2b-stats-grid {
    max-width: var(--b2b-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.b2b-stat-num {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--b2b-text);
    line-height: 1;
    margin-bottom: 8px;
}

.b2b-stat-label {
    font-size: 14px;
    color: var(--b2b-text-muted);
}

/* ── Features Section ── */
.b2b-section {
    padding: 80px 22px;
    max-width: var(--b2b-max-width);
    margin: 0 auto;
}

.b2b-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.b2b-section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.b2b-section-header p {
    font-size: 17px;
    color: var(--b2b-text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.b2b-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.b2b-feature-card {
    background: var(--b2b-bg-white);
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius);
    padding: 32px 28px;
    transition: box-shadow 0.2s ease;
}

.b2b-feature-card:hover {
    box-shadow: var(--b2b-shadow);
}

.b2b-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--b2b-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--b2b-text);
}

.b2b-feature-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.b2b-feature-card p {
    font-size: 15px;
    color: var(--b2b-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ── How It Works ── */
.b2b-steps {
    background: var(--b2b-bg-white);
    border-top: 1px solid var(--b2b-border-light);
    border-bottom: 1px solid var(--b2b-border-light);
    padding: 80px 22px;
}

.b2b-steps-grid {
    max-width: var(--b2b-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.b2b-step {
    text-align: center;
}

.b2b-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--b2b-text);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.b2b-step h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
}

.b2b-step p {
    font-size: 14px;
    color: var(--b2b-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ── CTA ── */
.b2b-cta {
    padding: 80px 22px;
    text-align: center;
}

.b2b-cta h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.b2b-cta p {
    color: var(--b2b-text-secondary);
    margin: 0 0 28px;
    font-size: 17px;
}

/* ── Footer ── */
.b2b-footer {
    padding: 32px 22px;
    border-top: 1px solid var(--b2b-border-light);
    text-align: center;
}

.b2b-footer p {
    font-size: 12px;
    color: var(--b2b-text-muted);
    margin: 0;
}

.b2b-footer a {
    color: var(--b2b-text-muted);
    text-decoration: none;
}

.b2b-footer a:hover {
    color: var(--b2b-text-secondary);
}

.b2b-footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 10px !important;
}

.b2b-footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.b2b-footer-contact i {
    opacity: 0.75;
}

/* ── Auth Pages ── */
.b2b-auth-wrap {
    max-width: 520px;
    margin: 40px auto 60px;
    padding: 0 22px;
    overflow-x: hidden;
}

.b2b-auth-card {
    background: var(--b2b-bg-white);
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius);
    padding: 40px 36px;
    box-shadow: var(--b2b-shadow);
    overflow-x: hidden;
}

.b2b-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.b2b-auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.b2b-auth-header p {
    font-size: 15px;
    color: var(--b2b-text-secondary);
    margin: 0;
}

.b2b-auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--b2b-border-light);
    margin-bottom: 28px;
}

.b2b-auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--b2b-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s;
}

.b2b-auth-tabs a.active,
.b2b-auth-tabs a:hover {
    color: var(--b2b-text);
}

.b2b-auth-tabs a.active {
    border-bottom-color: var(--b2b-text);
}

/* ── Form Elements ── */
.b2b-form-group {
    margin-bottom: 20px;
}

.b2b-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--b2b-text);
    margin-bottom: 6px;
}

.b2b-form-group label .required {
    color: #ff3b30;
    margin-left: 2px;
}

.b2b-form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: var(--b2b-font);
    color: var(--b2b-text);
    background: var(--b2b-bg-white);
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.b2b-form-control:focus {
    border-color: var(--b2b-text);
    box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

.b2b-form-control::placeholder {
    color: var(--b2b-text-muted);
}

textarea.b2b-form-control {
    resize: vertical;
    min-height: 80px;
}

.b2b-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.b2b-phone-group {
    display: flex;
    gap: 8px;
}

.b2b-phone-code {
    width: 90px;
    flex-shrink: 0;
}

.b2b-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.b2b-radio-item {
    flex: 1;
    min-width: 140px;
}

.b2b-radio-item input[type="radio"] {
    display: none;
}

.b2b-radio-item label {
    display: block;
    padding: 12px 16px;
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
}

.b2b-radio-item input[type="radio"]:checked + label {
    border-color: var(--b2b-text);
    background: var(--b2b-bg);
}

.b2b-form-help {
    font-size: 12px;
    color: var(--b2b-text-muted);
    margin-top: 4px;
}

.b2b-form-footer {
    margin-top: 24px;
}

.b2b-form-footer .b2b-form-note {
    text-align: center;
    font-size: 13px;
    color: var(--b2b-text-muted);
    margin-top: 16px;
}

.b2b-form-footer .b2b-form-note a {
    color: var(--b2b-text);
    font-weight: 500;
}

/* Auth form — validation messages below fields (mobile-friendly) */
.b2b-auth-card form.nice-validator .b2b-form-group {
    position: relative;
}

.b2b-auth-card form.nice-validator .msg-box {
    display: block !important;
    position: static !important;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    line-height: 1.4;
}

.b2b-auth-card form.nice-validator .n-right,
.b2b-auth-card form.nice-validator .n-bottom,
.b2b-auth-card form.nice-validator .n-top,
.b2b-auth-card form.nice-validator .n-left {
    display: block !important;
    position: static !important;
    width: 100%;
    max-width: 100%;
    vertical-align: baseline;
    line-height: normal;
}

.b2b-auth-card form.nice-validator .msg-wrap {
    position: static !important;
    white-space: normal;
    word-break: break-word;
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
}

.b2b-auth-card form.nice-validator .n-arrow {
    display: none !important;
}

.b2b-auth-card form.nice-validator .n-error .n-msg {
    display: block;
    font-size: 13px;
    color: #ff3b30;
    line-height: 1.4;
}

.b2b-auth-card .b2b-form-group.has-error .b2b-form-control {
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

.b2b-auth-card .b2b-phone-group + .msg-box,
.b2b-auth-card .b2b-form-group > .msg-box {
    margin-top: 6px;
}

.b2b-auth-card .input-group + .msg-box {
    margin-top: 6px;
}

/* Reset password modal (login page) */
.b2b-resetpwd-layer.layui-layer {
    border-radius: 12px;
    overflow: hidden;
    max-width: calc(100vw - 24px);
}

.b2b-resetpwd-layer .layui-layer-title {
    font-size: 17px;
    font-weight: 600;
    padding: 14px 48px 14px 18px;
    height: auto;
    line-height: 1.4;
    border-bottom: 1px solid var(--b2b-border-light);
    background: var(--b2b-bg-white);
}

.b2b-resetpwd-layer .layui-layer-setwin {
    top: 14px;
    right: 12px;
}

.b2b-resetpwd-layer .layui-layer-content {
    padding: 0 !important;
    height: auto !important;
    overflow-x: hidden;
}

.b2b-resetpwd-form {
    padding: 16px 18px 20px;
}

.b2b-resetpwd-form .b2b-form-group {
    margin-bottom: 16px;
}

.b2b-resetpwd-type {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.b2b-resetpwd-type-opt {
    flex: 1;
    min-width: calc(50% - 5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.b2b-resetpwd-type-opt:has(input:checked) {
    border-color: var(--b2b-text);
    background: var(--b2b-bg);
}

.b2b-resetpwd-type-opt input {
    margin: 0;
}

.b2b-resetpwd-captcha {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.b2b-resetpwd-captcha .b2b-form-control {
    flex: 1;
    min-width: 0;
}

.b2b-resetpwd-captcha .btn-captcha {
    flex-shrink: 0;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
    max-width: 42%;
}

.b2b-resetpwd-footer {
    margin-top: 8px;
    padding-top: 4px;
}

/* Reset modal validation — same as auth forms */
.b2b-resetpwd-form.nice-validator .msg-box,
.b2b-resetpwd-layer form.nice-validator .msg-box {
    display: block !important;
    position: static !important;
    width: 100%;
    margin-top: 6px;
}

.b2b-resetpwd-form.nice-validator .n-right,
.b2b-resetpwd-form.nice-validator .n-bottom {
    display: block !important;
    position: static !important;
    width: 100%;
}

.b2b-resetpwd-form.nice-validator .msg-wrap {
    position: static !important;
    white-space: normal;
    word-break: break-word;
    margin: 0 !important;
}

.b2b-resetpwd-form.nice-validator .n-arrow {
    display: none !important;
}

@media (max-width: 480px) {
    .b2b-resetpwd-layer.layui-layer {
        left: 12px !important;
        right: 12px !important;
        width: calc(100vw - 24px) !important;
        margin: 0 auto;
    }

    .b2b-resetpwd-form {
        padding: 14px 14px 18px;
    }

    .b2b-resetpwd-type-opt {
        min-width: 100%;
    }

    .b2b-resetpwd-captcha {
        flex-direction: column;
    }

    .b2b-resetpwd-captcha .btn-captcha {
        max-width: 100%;
        width: 100%;
    }
}

/* ── Pending Page ── */
.b2b-pending-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--b2b-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
}

.b2b-pending-steps {
    text-align: left;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.b2b-pending-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--b2b-border-light);
    font-size: 14px;
    color: var(--b2b-text-secondary);
}

.b2b-pending-steps li:last-child {
    border-bottom: none;
}

.b2b-pending-steps .step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--b2b-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

.b2b-pending-steps li.done .step-icon {
    background: var(--b2b-text);
    color: #fff;
}

/* ── User dropdown in nav ── */
.b2b-nav-user-wrap {
    display: flex;
    align-items: center;
}

.b2b-nav .b2b-nav-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    line-height: 1;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0;
}

.b2b-nav .b2b-nav-user:hover,
.b2b-nav .b2b-nav-user:focus {
    background: var(--b2b-bg);
    outline: none;
    text-decoration: none;
}

.b2b-nav .b2b-nav-user.dropdown-toggle::after {
    display: none;
}

.b2b-nav .b2b-nav-user .avatar-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
    font-size: 0;
    line-height: 0;
    vertical-align: middle;
    overflow: hidden;
}

.b2b-nav .b2b-nav-user .avatar-img img {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.b2b-nav .dropdown-menu {
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius-sm);
    box-shadow: var(--b2b-shadow-lg);
    padding: 6px 0;
    margin-top: 8px;
}

.b2b-nav .dropdown-menu > li > a {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--b2b-text);
}

/* ── User center content ── */
.b2b-body .basicinfo .row > .col-xs-4,
.b2b-body .basicinfo .row > .col-md-2 {
    color: var(--b2b-text-secondary);
    font-size: 14px;
    word-break: break-word;
    padding-right: 8px;
}

.b2b-body .basicinfo .row > .col-xs-8,
.b2b-body .basicinfo .row > .col-md-4 {
    font-size: 14px;
    word-break: break-word;
}

.b2b-body .page-header {
    border-bottom: 1px solid var(--b2b-border-light);
    margin-top: 0;
}

.b2b-body .panel-default {
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius);
    box-shadow: none;
}

.b2b-body .sidenav .list-group-item.active {
    border-left-color: var(--b2b-text);
}

.b2b-body .sidenav .list-group-item.active > a {
    color: var(--b2b-text);
}

/* ── Catalog / Grid Ordering ── */
.b2b-catalog-wrap {
    max-width: var(--b2b-max-width);
    margin: 0 auto;
    padding: 24px 22px 60px;
}

.b2b-catalog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.b2b-catalog-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.b2b-catalog-meta {
    font-size: 14px;
    color: var(--b2b-text-secondary);
    margin: 0;
}

.b2b-product-block {
    background: var(--b2b-bg-white);
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.b2b-product-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    flex-wrap: wrap;
}

.b2b-product-head.collapsed .b2b-product-chevron {
    transform: rotate(0deg);
}

.b2b-product-chevron {
    display: inline-block;
    transform: rotate(90deg);
    transition: transform 0.2s;
    color: var(--b2b-text-muted);
    font-size: 18px;
}

.b2b-product-title {
    flex: 1;
    min-width: 200px;
}

.b2b-product-sku {
    font-size: 12px;
    color: var(--b2b-text-muted);
    margin-left: 8px;
}

.b2b-product-price {
    font-size: 17px;
    font-weight: 600;
}

.b2b-unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--b2b-text-secondary);
}

.b2b-product-moq {
    font-size: 12px;
    color: var(--b2b-text-muted);
}

.b2b-flavor-grid-wrap {
    border-top: 1px solid var(--b2b-border-light);
}

.b2b-flavor-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.b2b-flavor-grid th,
.b2b-flavor-grid td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--b2b-border-light);
}

.b2b-flavor-grid th {
    background: var(--b2b-bg);
    font-weight: 500;
    color: var(--b2b-text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.b2b-flavor-grid tbody tr:last-child td {
    border-bottom: none;
}

.b2b-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-sm);
    overflow: hidden;
}

.b2b-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--b2b-bg);
    font-size: 18px;
    cursor: pointer;
    color: var(--b2b-text);
    line-height: 1;
}

.b2b-qty-btn:hover {
    background: var(--b2b-border-light);
}

.b2b-qty-input {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--b2b-border);
    border-right: 1px solid var(--b2b-border);
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

.b2b-qty-input::-webkit-outer-spin-button,
.b2b-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.b2b-catalog-footer {
    margin-top: 24px;
    text-align: right;
}

.b2b-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--b2b-text-secondary);
}

.text-right { text-align: right; }
.text-center { text-align: center; }

/* ── Order Pipeline ── */
.b2b-order-card {
    background: var(--b2b-bg-white);
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius);
    padding: 20px;
    margin-bottom: 16px;
}

.b2b-order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.b2b-order-date {
    font-size: 13px;
    color: var(--b2b-text-muted);
    margin-left: 8px;
}

.b2b-order-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 980px;
    background: var(--b2b-bg);
    margin-right: 8px;
}

.b2b-order-total {
    font-weight: 600;
}

.b2b-order-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--b2b-border-light);
}

.b2b-pipeline {
    display: flex;
    gap: 0;
    margin: 16px 0;
}

.b2b-pipeline-lg .b2b-pipeline-step {
    padding-bottom: 8px;
}

.b2b-pipeline-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.b2b-pipeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--b2b-border);
    z-index: 0;
}

.b2b-pipeline-step.b2b-pipeline-done:not(:last-child)::after {
    background: var(--b2b-text);
}

.b2b-pipeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--b2b-border);
    margin: 0 auto 8px;
    position: relative;
    z-index: 1;
}

.b2b-pipeline-done .b2b-pipeline-dot {
    background: var(--b2b-text);
}

.b2b-pipeline-active .b2b-pipeline-dot {
    background: var(--b2b-text);
    box-shadow: 0 0 0 4px rgba(29, 29, 31, 0.12);
}

.b2b-pipeline-label {
    font-size: 11px;
    color: var(--b2b-text-muted);
    line-height: 1.3;
    padding: 0 4px;
}

.b2b-pipeline-done .b2b-pipeline-label,
.b2b-pipeline-active .b2b-pipeline-label {
    color: var(--b2b-text);
    font-weight: 500;
}

.b2b-order-status-banner {
    background: var(--b2b-bg);
    border-radius: var(--b2b-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.b2b-order-status-banner p {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--b2b-text-secondary);
}

.b2b-price-mask {
    color: var(--b2b-text-muted);
    font-style: italic;
    font-size: 13px;
}

/* Table horizontal scroll fallback (tablet) */
.b2b-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Public shop catalog: always show flavor list on all screen sizes */
.b2b-shop-public .b2b-shop-flavors-table {
    display: block;
}
.b2b-shop-public .b2b-shop-flavors-cards {
    display: none;
}
@media (max-width: 768px) {
    .b2b-shop-public .b2b-shop-flavors-table {
        display: none;
    }
    .b2b-shop-public .b2b-shop-flavors-cards {
        display: block;
    }
}

/* Mobile card rows (replaces table on small screens) */
.b2b-flavor-cards {
    display: none;
}

.b2b-flavor-card {
    padding: 14px 16px;
    border-bottom: 1px solid var(--b2b-border-light);
}

.b2b-flavor-card:last-child {
    border-bottom: none;
}

.b2b-flavor-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.b2b-flavor-card-row:last-child {
    margin-bottom: 0;
}

.b2b-flavor-card-label {
    color: var(--b2b-text-muted);
    font-size: 12px;
    flex-shrink: 0;
}

.b2b-flavor-card-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    word-break: break-word;
}

.b2b-cart-item {
    background: var(--b2b-bg-white);
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.b2b-cart-item-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    padding: 4px 0;
}

.b2b-cart-item-row strong {
    font-weight: 600;
}

.b2b-cart-summary {
    background: var(--b2b-bg);
    border-radius: var(--b2b-radius-sm);
    padding: 16px;
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.b2b-sticky-footer {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--b2b-bg) 70%, transparent);
    padding: 16px 0 8px;
    margin-top: 8px;
    z-index: 10;
}

/* ── User dashboard (member center) ── */
.b2b-portal-wrap {
    max-width: var(--b2b-max-width);
    margin: 0 auto;
    padding: 20px 12px 40px;
}

.b2b-user-dashboard .panel-default {
    border: none;
    background: transparent;
    box-shadow: none;
}

.b2b-user-dashboard .panel-body {
    padding: 0;
}

.b2b-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--b2b-border-light);
}

.b2b-dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.b2b-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.b2b-profile-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--b2b-bg-white);
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.b2b-profile-avatar {
    flex-shrink: 0;
}

.b2b-profile-avatar .avatar-img,
.b2b-profile-avatar .avatar-img img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

.b2b-profile-avatar .avatar-text {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    line-height: 88px;
    font-size: 36px;
}

.b2b-profile-main {
    flex: 1;
    min-width: 0;
}

.b2b-profile-main h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
}

.b2b-profile-main h2 a {
    color: var(--b2b-text);
    text-decoration: none;
}

.b2b-profile-bio {
    color: var(--b2b-text-secondary);
    font-size: 15px;
    margin: 0 0 12px;
}

.b2b-profile-bio a {
    color: var(--b2b-text-secondary);
    text-decoration: none;
}

.b2b-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.b2b-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 980px;
    background: var(--b2b-bg);
    color: var(--b2b-text-secondary);
}

.b2b-tag-primary {
    background: var(--b2b-text);
    color: #fff;
}

.b2b-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.b2b-stat-card {
    background: var(--b2b-bg-white);
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius-sm);
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

.b2b-stat-card:hover {
    border-color: var(--b2b-border);
    text-decoration: none;
    color: inherit;
}

.b2b-stat-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.b2b-stat-label {
    font-size: 12px;
    color: var(--b2b-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.b2b-info-card {
    background: var(--b2b-bg-white);
    border: 1px solid var(--b2b-border-light);
    border-radius: var(--b2b-radius);
    padding: 20px 24px;
}

.b2b-info-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--b2b-text-secondary);
}

.b2b-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.b2b-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.b2b-info-item dt {
    font-size: 12px;
    color: var(--b2b-text-muted);
    font-weight: 500;
    margin: 0;
}

.b2b-info-item dd {
    font-size: 14px;
    margin: 0;
    word-break: break-word;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .b2b-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .b2b-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .b2b-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .b2b-nav-toggle {
        display: block;
    }

    .b2b-nav-actions {
        display: none;
        position: absolute;
        top: var(--b2b-nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 22px;
        border-bottom: 1px solid var(--b2b-border-light);
        gap: 10px;
    }

    .b2b-nav-actions.open {
        display: flex;
    }

    .b2b-nav-actions .b2b-btn {
        width: 100%;
        justify-content: center;
    }

    .b2b-hero {
        padding: 60px 22px 40px;
    }

    .b2b-features-grid {
        grid-template-columns: 1fr;
    }

    .b2b-steps-grid {
        grid-template-columns: 1fr;
    }

    .b2b-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .b2b-form-row {
        grid-template-columns: 1fr;
    }

    .b2b-auth-card {
        padding: 28px 22px;
    }

    .b2b-section {
        padding: 60px 22px;
    }

    /* Catalog & cart mobile */
    .b2b-catalog-wrap {
        padding: 16px 12px 24px;
    }

    .b2b-catalog-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 20px;
    }

    .b2b-catalog-header h1 {
        font-size: 22px;
    }

    .b2b-catalog-header .b2b-btn {
        width: 100%;
    }

    .b2b-product-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
    }

    .b2b-product-title {
        min-width: 0;
        width: 100%;
    }

    .b2b-product-sku {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .b2b-desktop-only {
        display: none !important;
    }

    .b2b-mobile-only {
        display: block !important;
    }

    .b2b-flavor-cards {
        display: block;
    }

    .b2b-flavor-grid-wrap .b2b-table-scroll {
        display: none;
    }

    .b2b-catalog-footer {
        position: sticky;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to top, var(--b2b-bg) 80%, transparent);
        padding-top: 12px;
        margin-top: 16px;
    }

    .b2b-catalog-footer .b2b-btn {
        width: 100%;
    }

    body.b2b-body.has-mobile-nav .b2b-catalog-footer {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    /* Order pipeline: vertical on narrow screens */
    .b2b-pipeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .b2b-pipeline-step {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }

    .b2b-pipeline-step:not(:last-child)::after {
        display: none;
    }

    .b2b-pipeline-dot {
        margin: 0;
        flex-shrink: 0;
    }

    .b2b-pipeline-label {
        padding: 0;
        font-size: 13px;
    }

    .b2b-order-card-head {
        flex-direction: column;
    }

    .b2b-order-card-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .b2b-order-card-foot .b2b-btn {
        width: 100%;
        text-align: center;
    }

    .b2b-auth-wrap {
        padding: 16px 12px 32px;
    }

    .b2b-mobile-nav {
        display: flex;
    }

    body.b2b-body.has-mobile-nav .b2b-footer {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    body.b2b-body #content-container .col-md-3 {
        display: none;
    }

    body.b2b-body #content-container .col-md-9 {
        width: 100%;
        float: none;
    }

    body.b2b-body .panel-body {
        padding: 12px;
    }

    .b2b-portal-wrap {
        padding: 16px 12px 32px;
    }

    .b2b-dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .b2b-dashboard-header h1 {
        font-size: 22px;
    }

    .b2b-dashboard-actions {
        width: 100%;
    }

    .b2b-dashboard-actions .b2b-btn {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .b2b-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
    }

    .b2b-profile-tags {
        justify-content: center;
    }

    .b2b-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .b2b-info-grid {
        grid-template-columns: 1fr;
    }

    body.b2b-body .sidebar-toggle {
        display: block !important;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .b2b-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .b2b-hero-actions .b2b-btn {
        width: 100%;
    }

    .b2b-radio-group {
        flex-direction: column;
    }

    .b2b-radio-item {
        min-width: 100%;
    }

    .b2b-qty-control {
        width: 100%;
        max-width: 140px;
    }

    body.b2b-body {
        font-size: 16px;
    }

    .b2b-nav-inner {
        padding: 0 12px;
    }

    .b2b-logo {
        font-size: 16px;
        max-width: calc(100vw - 100px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
