/* ==========================================================================
   NBC Account v1.0 — Личный кабинет + все разделы
   ========================================================================== */

.nbc-account-wrapper,
.nbc-order-modal {
    --nbc-primary:      #FFD54F;
    --nbc-primary-dark: #FFC107;
    --nbc-accent:       #003399;
    --nbc-orange:       #FF6B00;
    --nbc-text:         #1a1a1a;
    --nbc-text-light:   #737373;
    --nbc-bg:           #F7F2E6;
    --nbc-bg-white:     #ffffff;
    --nbc-bg-light:     #f5f5f5;
    --nbc-border:       #e5e5e5;
    --nbc-radius:       12px;
    --nbc-radius-sm:    8px;
    --nbc-shadow:       0 2px 12px rgba(0,0,0,.08);
    --nbc-tr:           .2s ease;
    --nbc-sidebar-w:    240px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--nbc-text); line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}
.nbc-account-wrapper *, .nbc-account-wrapper *::before, .nbc-account-wrapper *::after { box-sizing: border-box; }

/* ══════════ LOGIN NOTICE ══════════ */

.nbc-account-login-notice {
    text-align: center; padding: 48px 20px;
    font-family: 'Montserrat', sans-serif; font-size: 16px;
}
.nbc-account-login-notice a { color: #FFC107; font-weight: 600; text-decoration: none; }
.nbc-account-login-notice a:hover { text-decoration: underline; }

/* ══════════ LAYOUT ══════════ */

/* Hide default WP/Elementor page title on account page */
.page-template-default .entry-header,
.page-template-default .entry-title,
.nbc-account-wrapper ~ .entry-title,
body.page .entry-header { display: none !important; }
body:has(.nbc-account-wrapper) {
    background: linear-gradient(to right, #ffffff 50%, #F7F2E6 50%) !important;
}

.nbc-account-wrapper {
    display: flex; min-height: 70vh;
    max-width: 1400px; margin: 0 auto;
    background: transparent;
}
.nbc-account-content {
    flex: 1 1 0%; min-width: 0; padding: 24px 32px 48px;
    background: var(--nbc-bg);
}

/* ══════════ SIDEBAR ══════════ */

.nbc-account-sidebar {
    width: var(--nbc-sidebar-w); flex: 0 0 var(--nbc-sidebar-w);
    background: var(--nbc-bg-white);
    border-right: 1px solid var(--nbc-border);
    display: flex; flex-direction: column;
    padding: 24px 0;
    position: sticky; top: 70px; align-self: flex-start;
    height: calc(100vh - 70px);
    box-shadow: -999px 0 0 0 #ffffff;
}

.nbc-sidebar-list {
    list-style: none; margin: 0; padding: 0;
    flex: 1 1 auto;
}

.nbc-sidebar-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--nbc-text-light);
    transition: background var(--nbc-tr), color var(--nbc-tr);
    border-radius: 60px 0 0 60px;
    margin-left: 8px; margin-right: -1px;
    position: relative;
}
.nbc-sidebar-item:hover { background: #fafafa; color: var(--nbc-text); }
.nbc-sidebar-item.active {
    color: var(--nbc-text); font-weight: 600;
    background: var(--nbc-bg);
    border-right: 1px solid var(--nbc-bg);
    z-index: 1;
}

.nbc-sidebar-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--nbc-bg-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative;
}
.nbc-sidebar-icon svg { width: 22px; height: 22px; }
.nbc-sidebar-item.active .nbc-sidebar-icon { background: var(--nbc-primary); }

/* Notification dot */
.nbc-sidebar-badge {
    position: absolute; top: -2px; right: -2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #4CAF50; color: #fff;
    font-size: 10px; font-weight: 700; line-height: 18px;
    text-align: center; z-index: 2;
}

.nbc-sidebar-label { white-space: nowrap; }

.nbc-sidebar-bottom {
    padding: 16px 20px;
    border-top: 1px solid var(--nbc-border);
}
.nbc-sidebar-bottom .nbc-sidebar-item {
    background: var(--nbc-primary); color: var(--nbc-text); font-weight: 600;
    border-radius: var(--nbc-radius-sm); padding: 14px 20px;
    justify-content: center; margin-left: 0; margin-right: 0;
    transition: background var(--nbc-tr);
}
.nbc-sidebar-bottom .nbc-sidebar-item:hover { background: var(--nbc-primary-dark); }
.nbc-sidebar-bottom .nbc-sidebar-icon { display: none; }

/* ══════════ CONTENT ══════════ */

.nbc-section h2 { font-size: 22px; font-weight: 700; margin: 0 0 20px; }

/* ══════════ DASHBOARD ══════════ */

.nbc-dash-greeting { font-size: 20px; font-weight: 600; margin: 0 0 16px; }

/* Calendar */
.nbc-dash-calendar {
    display: flex; flex-wrap: nowrap; gap: 4px; margin-bottom: 24px;
}
.nbc-cal-btn {
    background: var(--nbc-bg-white); border: 1px solid var(--nbc-border);
    border-radius: 20px; padding: 6px 10px;
    font-family: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: background var(--nbc-tr), border-color var(--nbc-tr);
    color: var(--nbc-text); white-space: nowrap; flex: 1 1 auto;
    text-align: center;
}
.nbc-cal-btn:hover { border-color: var(--nbc-primary-dark); }
.nbc-cal-btn.active {
    background: var(--nbc-primary); border-color: var(--nbc-primary-dark); font-weight: 600;
}
.nbc-cal-year { flex: 1 1 auto; }

/* Tiles - 3 column layout */
.nbc-dash-tiles {
    display: flex; gap: 16px;
    margin-bottom: 32px;
}
.nbc-tiles-left {
    flex: 1 1 0%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.nbc-tile {
    background: var(--nbc-bg-white); border: 1px solid var(--nbc-border);
    border-radius: var(--nbc-radius); padding: 20px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; transition: box-shadow var(--nbc-tr);
    text-align: center;
}
.nbc-tile:hover { box-shadow: var(--nbc-shadow); }
.nbc-tile-icon svg { width: 28px; height: 28px; color: var(--nbc-text-light); }
.nbc-tile-label { font-size: 13px; font-weight: 500; color: var(--nbc-text-light); }
.nbc-tile-count { font-size: 30px; font-weight: 700; color: var(--nbc-accent); line-height: 1; }

/* Certificate card */
.nbc-tile-cert {
    flex: 0 0 280px; background: var(--nbc-bg-white); border: 1px solid var(--nbc-border);
    border-radius: var(--nbc-radius); padding: 20px;
    display: flex; flex-direction: column; cursor: pointer;
    transition: box-shadow var(--nbc-tr);
}
.nbc-tile-cert:hover { box-shadow: var(--nbc-shadow); }
.nbc-cert-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.nbc-cert-visual { text-align: center; }
.nbc-cert-visual svg { width: 100%; max-width: 220px; height: auto; }
.nbc-cert-text { font-size: 12px; color: var(--nbc-text-light); line-height: 1.5; }

/* Bottom: recent orders + profile */
.nbc-dash-bottom { display: flex; gap: 16px; }

/* Recent orders */
.nbc-dash-recent {
    flex: 1 1 0%; min-width: 0;
    background: var(--nbc-bg-white); border-radius: var(--nbc-radius);
    padding: 20px; border: 1px solid var(--nbc-border);
}
.nbc-dash-recent h3 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }

.nbc-recent-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--nbc-border);
    cursor: pointer; transition: background var(--nbc-tr);
}
.nbc-recent-row:hover { background: #fafafa; }

.nbc-recent-images { display: flex; gap: 0; flex-shrink: 0; flex-wrap: nowrap; max-width: 180px; }
.nbc-recent-thumb {
    width: 40px; height: 40px; min-width: 40px; border-radius: 6px; object-fit: cover;
    border: 2px solid #fff; position: relative;
}
.nbc-recent-thumb:not(:first-child) { margin-left: -12px; }

.nbc-recent-info { display: flex; align-items: center; gap: 12px; font-size: 13px; flex: 1 1 auto; }
.nbc-recent-number { font-weight: 600; }
.nbc-recent-date { color: var(--nbc-text-light); }
.nbc-recent-total { font-weight: 600; margin-left: auto; text-align: right; white-space: nowrap; }

.nbc-no-data { color: var(--nbc-text-light); font-size: 14px; }

/* Profile block */
.nbc-dash-profile {
    flex: 0 0 280px; display: flex; flex-direction: column; gap: 16px;
    background: var(--nbc-bg-white); border-radius: var(--nbc-radius);
    padding: 20px; border: 1px solid var(--nbc-border);
}
.nbc-dash-profile-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.nbc-dash-profile-avatar { text-align: center; }
.nbc-dash-profile-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.nbc-dash-avatar-placeholder {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto;
    background: var(--nbc-bg-light); display: flex; align-items: center; justify-content: center;
}
.nbc-dash-avatar-placeholder svg { width: 36px; height: 36px; color: var(--nbc-text-light); }

.nbc-dash-profile-info { text-align: center; }
.nbc-dash-profile-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.nbc-dash-profile-email { font-size: 13px; color: var(--nbc-text-light); margin-bottom: 10px; }
.nbc-dash-profile-edit,
.nbc-dash-profile-logout {
    display: inline-block; font-size: 13px; text-decoration: none; font-weight: 500;
    margin: 0 8px;
}
.nbc-dash-profile-edit { color: var(--nbc-primary-dark); }
.nbc-dash-profile-logout { color: #c00; }

/* Requisites */
.nbc-dash-requisites {
    margin-top: auto; padding-top: 16px; border-top: 1px solid var(--nbc-border);
    font-size: 12px; color: var(--nbc-text-light);
    display: flex; flex-direction: column; gap: 4px;
}
.nbc-dash-req-logo { height: 28px; width: auto; margin-bottom: 4px; }
.nbc-dash-req-line { color: var(--nbc-text-light); text-decoration: none; }
.nbc-dash-req-line:hover { color: var(--nbc-text); }

/* Dashboard help block */
.nbc-dash-help {
    margin-top: 24px;
    background: var(--nbc-bg-white); border-radius: var(--nbc-radius);
    padding: 20px; border: 1px solid var(--nbc-border);
}
.nbc-dash-help h3 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.nbc-dash-help-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.nbc-dash-help-link {
    color: var(--nbc-text); text-decoration: none; font-size: 14px;
    padding: 8px 0; border-bottom: 1px solid var(--nbc-border);
    transition: color var(--nbc-tr);
}
.nbc-dash-help-link:hover { color: var(--nbc-accent); }
.nbc-dash-help-more {
    display: inline-block; margin-top: 8px;
    font-size: 13px; font-weight: 500; color: #003399;
    text-decoration: none;
}
.nbc-dash-help-more:hover { text-decoration: underline; }

/* Org title in summary */
.nbc-faq-hint { font-size: 13px; color: var(--nbc-text-light); margin-bottom: 12px; }

/* ══════════ PROFILE SECTION (Step 16) ══════════ */

.nbc-profile-layout { display: flex; gap: 40px; }
.nbc-profile-forms { flex: 1 1 0%; min-width: 0; }
.nbc-profile-summary { flex: 0 0 260px; }

.nbc-profile-photo {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 28px; padding-bottom: 20px;
    border-bottom: 1px solid var(--nbc-border);
}
.nbc-profile-photo-preview { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.nbc-profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.nbc-avatar-placeholder {
    width: 100%; height: 100%;
    background: var(--nbc-bg-light); display: flex; align-items: center; justify-content: center;
}
.nbc-avatar-placeholder svg { width: 36px; height: 36px; color: var(--nbc-text-light); }

.nbc-avatar-upload-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: var(--nbc-primary); border-radius: var(--nbc-radius-sm);
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background var(--nbc-tr); color: var(--nbc-text);
}
.nbc-avatar-upload-btn:hover { background: var(--nbc-primary-dark); }
.nbc-avatar-upload-btn svg { flex-shrink: 0; stroke: var(--nbc-text); }
.nbc-avatar-hint { font-size: 11px; color: var(--nbc-text-light); }
.nbc-avatar-delete {
    display: block; margin-top: 4px; margin-left: 96px;
    font-size: 11px; color: var(--nbc-text-light); text-decoration: none;
}
.nbc-avatar-delete:hover { color: #c00; text-decoration: underline; }

.nbc-profile-block {
    margin-bottom: 28px;
    background: var(--nbc-bg-white); border-radius: var(--nbc-radius);
    padding: 20px; border: 1px solid var(--nbc-border);
}
.nbc-profile-block h3 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }

.nbc-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.nbc-profile-field label {
    display: block; font-size: 12px; font-weight: 500; color: var(--nbc-text-light); margin-bottom: 4px;
}
.nbc-profile-field input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--nbc-border);
    border-radius: var(--nbc-radius-sm); font-family: inherit; font-size: 14px;
    outline: none; transition: border-color var(--nbc-tr); box-sizing: border-box;
}
.nbc-profile-field input:focus { border-color: var(--nbc-primary-dark); }

.nbc-profile-save {
    display: inline-block; padding: 10px 24px; border: none;
    background: var(--nbc-primary); border-radius: var(--nbc-radius-sm);
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background var(--nbc-tr); color: var(--nbc-text);
}
.nbc-profile-save:hover { background: var(--nbc-primary-dark); }
.nbc-profile-save:disabled { opacity: .6; cursor: not-allowed; }

.nbc-profile-danger { padding-top: 20px; border-top: 1px solid var(--nbc-border); }
.nbc-profile-delete {
    background: none; border: 1px solid #c00; color: #c00;
    padding: 8px 20px; border-radius: var(--nbc-radius-sm);
    font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
    transition: background var(--nbc-tr), color var(--nbc-tr);
}
.nbc-profile-delete:hover { background: #c00; color: #fff; }

/* Summary */
.nbc-profile-summary {
    background: var(--nbc-bg-white); border-radius: var(--nbc-radius);
    padding: 24px; align-self: flex-start;
    position: sticky; top: 90px;
    border: 1px solid var(--nbc-border);
}
.nbc-profile-summary h3 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.nbc-profile-summary h4 { font-size: 14px; font-weight: 600; margin: 16px 0 8px; color: var(--nbc-text); }
.nbc-summary-row { font-size: 13px; margin-bottom: 6px; line-height: 1.4; }
.nbc-summary-row span { color: var(--nbc-text-light); font-weight: 600; }

/* ══════════ ORDERS SECTION (Step 17) ══════════ */

.nbc-order-row {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; border: 1px solid var(--nbc-border);
    border-radius: var(--nbc-radius); margin-bottom: 12px;
    transition: box-shadow var(--nbc-tr);
    background: var(--nbc-bg-white);
}
.nbc-order-row:hover { box-shadow: var(--nbc-shadow); }

.nbc-order-images { display: flex; gap: 4px; flex-shrink: 0; }
.nbc-order-images img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }

.nbc-order-info { flex: 1 1 auto; min-width: 0; }
.nbc-order-number { font-weight: 600; font-size: 14px; }
.nbc-order-date { font-size: 13px; color: var(--nbc-text-light); margin-left: 8px; }
.nbc-order-total { font-weight: 700; font-size: 16px; display: block; margin-top: 4px; }
.nbc-order-bonuses { font-size: 12px; color: var(--nbc-primary-dark); }

.nbc-order-actions { display: flex; gap: 8px; flex-shrink: 0; }
.nbc-order-btn {
    padding: 8px 16px; border-radius: var(--nbc-radius-sm);
    font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
    transition: background var(--nbc-tr); border: none;
}
.nbc-order-btn-view { background: var(--nbc-bg-light); color: var(--nbc-text); }
.nbc-order-btn-view:hover { background: #eee; }
.nbc-order-btn-repeat { background: var(--nbc-primary); color: var(--nbc-text); }
.nbc-order-btn-repeat:hover { background: var(--nbc-primary-dark); }

/* Pagination */
.nbc-pagination {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 20px;
}
.nbc-page-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--nbc-border); background: var(--nbc-bg);
    font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
    transition: background var(--nbc-tr), border-color var(--nbc-tr);
    color: var(--nbc-text);
}
.nbc-page-btn:hover { border-color: var(--nbc-primary-dark); }
.nbc-page-btn.active { background: var(--nbc-primary); border-color: var(--nbc-primary-dark); font-weight: 700; }
.nbc-page-arrow { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--nbc-text-light); padding: 4px 8px; }
.nbc-page-arrow:disabled { opacity: .3; cursor: not-allowed; }

/* ══════════ ORDER MODAL ══════════ */

.nbc-order-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,.45); opacity: 0;
    transition: opacity 500ms ease;
}
.nbc-order-modal-overlay.active { display: block; opacity: 1; }

.nbc-order-modal {
    display: none; position: fixed;
    top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.92);
    z-index: 10002;
    width: 520px; max-width: calc(100vw - 32px); max-height: 85vh;
    background: var(--nbc-bg); border-radius: var(--nbc-radius);
    padding: 32px; box-shadow: 0 8px 40px rgba(0,0,0,.18);
    overflow-y: auto; opacity: 0;
    transition: opacity 500ms ease, transform 500ms ease;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}
.nbc-order-modal.active { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }

.nbc-order-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 28px; line-height: 1;
    cursor: pointer; color: var(--nbc-text-light);
}
.nbc-order-modal-close:hover { color: var(--nbc-text); }

.nbc-modal-order-header { margin-bottom: 20px; }
.nbc-modal-order-number { font-size: 18px; font-weight: 700; }
.nbc-modal-order-date { font-size: 13px; color: var(--nbc-text-light); margin-left: 8px; }

.nbc-modal-order-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--nbc-border);
}
.nbc-modal-order-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.nbc-modal-item-info { flex: 1 1 auto; }
.nbc-modal-item-name { font-size: 14px; font-weight: 500; }
.nbc-modal-item-mods { font-size: 12px; color: var(--nbc-text-light); }
.nbc-modal-item-qty { font-size: 13px; color: var(--nbc-text-light); }
.nbc-modal-item-total { font-weight: 600; font-size: 14px; flex-shrink: 0; }

.nbc-modal-order-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0 8px; font-size: 18px; font-weight: 700;
}
.nbc-modal-order-bonuses { font-size: 13px; color: var(--nbc-primary-dark); }

/* ── Order progress bar ── */
.nbc-order-progress {
    position: relative;
    padding: 20px 0 24px;
    margin-bottom: 16px;
}
.nbc-progress-track {
    position: absolute;
    top: 34px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #E8E8E8;
    border-radius: 2px;
    z-index: 0;
}
.nbc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF9800, #FF5722);
    border-radius: 2px;
    transition: width .5s ease;
}
.nbc-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.nbc-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.nbc-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 6px;
    border: 3px solid #E8E8E8;
    transition: all .3s ease;
}
.nbc-step-done .nbc-step-icon {
    background: #FFF3E0;
    border-color: #FF9800;
}
.nbc-step-active .nbc-step-icon {
    background: #FF9800;
    border-color: #FF5722;
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(255, 152, 0, .35);
}
.nbc-step-label {
    font-size: 10px;
    color: #999;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
}
.nbc-step-done .nbc-step-label {
    color: #FF9800;
    font-weight: 600;
}
.nbc-step-active .nbc-step-label {
    color: #FF5722;
    font-weight: 700;
}

.nbc-modal-repeat-btn {
    width: 100%; margin-top: 16px; padding: 14px; border: none;
    background: var(--nbc-primary); border-radius: var(--nbc-radius-sm);
    font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background var(--nbc-tr); color: var(--nbc-text);
}
.nbc-modal-repeat-btn:hover { background: var(--nbc-primary-dark); }

/* ══════════ FAQ (Step 18) ══════════ */

.nbc-faq-item {
    border-bottom: 1px solid var(--nbc-border);
    background: var(--nbc-bg-white);
    padding: 0 16px; margin-bottom: 8px;
    border-radius: var(--nbc-radius-sm);
    border: 1px solid var(--nbc-border);
}
.nbc-faq-question {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; cursor: pointer; font-size: 15px; font-weight: 500;
    gap: 12px;
}
.nbc-faq-question svg {
    width: 20px; height: 20px; flex-shrink: 0;
    transition: transform var(--nbc-tr); color: var(--nbc-text-light);
}
.nbc-faq-item.open .nbc-faq-question svg { transform: rotate(180deg); }
.nbc-faq-answer {
    display: none; padding: 0 0 16px; font-size: 14px;
    color: var(--nbc-text-light); line-height: 1.6;
}
.nbc-faq-item.open .nbc-faq-answer { display: block; }

.nbc-faq-ask {
    display: inline-block; margin-top: 24px; padding: 12px 32px; border: none;
    background: var(--nbc-primary); border-radius: 8px;
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background var(--nbc-tr); color: var(--nbc-text);
    text-decoration: none;
}
.nbc-faq-ask:hover { background: var(--nbc-primary-dark); }

/* ══════════ PLACEHOLDER ══════════ */

.nbc-placeholder-msg {
    padding: 32px; text-align: center;
    color: var(--nbc-text-light); font-size: 15px;
    background: var(--nbc-bg-white); border-radius: var(--nbc-radius);
    border: 1px solid var(--nbc-border);
}

/* ══════════ TOAST ══════════ */

.nbc-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: var(--nbc-text); color: #fff; padding: 12px 24px;
    border-radius: var(--nbc-radius-sm); font-size: 14px; font-weight: 500;
    z-index: 11000; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.nbc-toast.show { opacity: 1; }

/* ══════════ RESPONSIVE ══════════ */

@media (max-width: 991px) {
    body:has(.nbc-account-wrapper) { overflow-x: hidden; }
    body:has(.nbc-account-wrapper) .site-main { padding-inline-start: 0 !important; padding-inline-end: 0 !important; }
    .nbc-account-wrapper { flex-direction: row; }

.nbc-account-sidebar {
        width: 58px; flex: 0 0 58px;
        position: sticky; top: 60px; height: calc(100vh - 60px); height: calc(100dvh - 60px);
        border-right: 1px solid var(--nbc-border);
        padding: 16px 0; overflow: visible;
    }
    .nbc-sidebar-list { display: flex; flex-direction: column; gap: 0; overflow: visible; }
    .nbc-sidebar-item {
        flex-direction: column; padding: 10px 2px; gap: 4px;
        border-radius: 16px 0 0 16px; border-bottom: none;
        min-width: auto; text-align: center; font-size: 10px;
        margin-left: 0; margin-right: -1px;
    }
    .nbc-sidebar-item.active { background: var(--nbc-bg); border-right: 1px solid var(--nbc-bg); }
    .nbc-sidebar-label { font-size: 10px; line-height: 1.1; }
    .nbc-sidebar-icon { width: 40px; height: 40px; }
    .nbc-sidebar-icon svg { width: 20px; height: 20px; }
    .nbc-sidebar-bottom { padding: 8px 6px; }
    .nbc-sidebar-bottom .nbc-sidebar-item { padding: 10px 4px; border-radius: 50%; margin-left: 0; margin-right: 0; width: 44px; height: 44px; justify-content: center; }
    .nbc-sidebar-bottom .nbc-sidebar-icon { display: flex; }
    .nbc-sidebar-bottom .nbc-sidebar-label { font-size: 10px; }

    .nbc-account-content { padding: 16px; }

    /* Dashboard: recent orders ABOVE profile on mobile */
    .nbc-dash-bottom { flex-direction: column; }
    .nbc-dash-recent { order: 1; }
    .nbc-dash-profile { order: 2; flex: none; }
    .nbc-dash-profile-avatar { flex-shrink: 0; }
    .nbc-dash-profile-avatar img { width: 60px; height: 60px; }
    .nbc-dash-requisites { flex-direction: row; flex-wrap: wrap; gap: 8px; width: 100%; }

    /* Tiles stack */
    /* Месяцы — горизонтальный скролл */
    .nbc-dash-calendar {
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; padding-bottom: 4px;
    }
    .nbc-dash-calendar::-webkit-scrollbar { display: none; }
    .nbc-cal-btn { flex: 0 0 auto; }

    /* Tiles stack */
    .nbc-dash-tiles { flex-direction: column; }
    .nbc-tiles-left { grid-template-columns: 1fr 1fr; }
    .nbc-tile-cert { flex: none; }

    /* Recent orders carousel */
    .nbc-recent-list {
        display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; padding-bottom: 8px;
    }
    .nbc-recent-row {
        flex: 0 0 260px; scroll-snap-align: start;
        border: 1px solid var(--nbc-border); border-radius: var(--nbc-radius);
        padding: 12px; flex-direction: column; gap: 8px;
    }
    .nbc-recent-info { gap: 6px; }

    /* Profile */
    .nbc-profile-layout { flex-direction: column; }
    .nbc-profile-summary { flex: none; position: static; }
    .nbc-profile-grid { grid-template-columns: 1fr; }

    /* Order rows */
    .nbc-order-row { flex-wrap: wrap; }
    .nbc-order-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 480px) {
    .nbc-sidebar-label { display: none; }
    .nbc-sidebar-item { padding: 10px 4px; }
    .nbc-account-sidebar { width: 56px; flex: 0 0 56px; }
    .nbc-sidebar-icon { width: 36px; height: 36px; }
    .nbc-sidebar-icon svg { width: 18px; height: 18px; }
    .nbc-sidebar-bottom .nbc-sidebar-label { display: none; }
    .nbc-dash-tiles { gap: 10px; }
    .nbc-tile { padding: 14px; }
    .nbc-tile-count { font-size: 24px; }
    .nbc-cal-btn { padding: 4px 10px; font-size: 12px; flex: 0 0 auto; }
}
