/* ═══════════════════════════════════════════════════════════════
   BCC BANK SOLUTION — Global Styles (Sidebar Layout)
   Design: Figma BCC-To-Dev (QR76d5CwHqKRmzJk6reMSu)
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--text-md);
    line-height: 1.5;
    color: var(--bcc-text);
    background: var(--bcc-bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.25; }
h1 { font-size: var(--text-4xl); font-weight: 700; }
h2 { font-size: var(--text-2xl); font-weight: 600; }
h3 { font-size: var(--text-lg); font-weight: 600; }
a { color: var(--bcc-primary); text-decoration: none; transition: color var(--duration-fast) var(--ease); }
a:hover { color: var(--bcc-primary-hover); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--bcc-primary); outline-offset: 2px; box-shadow: var(--shadow-focus); }

/* ── Skip Link ── */
.bcc-shell__skip-link {
    position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
    z-index: 999; padding: var(--sp-2) var(--sp-4);
    background: var(--bcc-primary); color: #fff; font-weight: 600;
    border-radius: var(--r-md);
}
.bcc-shell__skip-link:focus { left: var(--sp-4); top: var(--sp-4); width: auto; height: auto; }

/* ── Page container ── */
.bcc-page { display: grid; gap: var(--sp-6); width: 100%; }
.bcc-page h1, .bcc-page h2, .bcc-page h3, .bcc-page p { margin-top: 0; }

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

.client-shell {
    display: flex;
    min-height: 100vh;
}

/* ═══ SIDEBAR ═══ */
.bcc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bcc-white);
    border-right: 1px solid var(--bcc-border-light);
    display: flex;
    flex-direction: column;
    z-index: 110;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--bcc-gray-300) transparent;
}

.bcc-sidebar::-webkit-scrollbar { width: 4px; }
.bcc-sidebar::-webkit-scrollbar-track { background: transparent; }
.bcc-sidebar::-webkit-scrollbar-thumb { background: var(--bcc-gray-300); border-radius: var(--r-pill); }

/* Sidebar Brand */
.bcc-sidebar__brand {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-5) var(--sp-5);
    border-bottom: 1px solid var(--bcc-border-light);
    text-decoration: none;
    color: var(--bcc-text);
    flex-shrink: 0;
}
.bcc-sidebar__logo { height: 32px; width: auto; }
.bcc-sidebar__brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.bcc-sidebar__brand-text strong { font-size: var(--text-base); font-weight: 700; color: var(--bcc-text); }
.bcc-sidebar__brand-text small { font-size: var(--text-xs); color: var(--bcc-text-tertiary); font-weight: 500; }

/* Sidebar Navigation */
.bcc-sidebar__nav {
    flex: 1;
    padding: var(--sp-4) var(--sp-3);
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.bcc-sidebar__section {
    margin-bottom: var(--sp-3);
}

.bcc-sidebar__section-label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--bcc-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: var(--sp-2) var(--sp-3);
    margin: 0;
}

.bcc-sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--bcc-gray-600);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease);
    white-space: nowrap;
    min-height: 36px;
}
.bcc-sidebar__link:hover {
    color: var(--bcc-primary);
    background: var(--bcc-primary-8);
}
.bcc-sidebar__link.active,
.bcc-sidebar__link.bcc-nav-active {
    color: var(--bcc-primary);
    background: var(--bcc-primary-8);
    font-weight: 600;
}

/* Sidebar Footer */
.bcc-sidebar__footer {
    padding: var(--sp-4) var(--sp-3);
    border-top: 1px solid var(--bcc-border-light);
    flex-shrink: 0;
}

.bcc-sidebar__logout {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    width: 100%;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    border: none;
    background: none;
    color: var(--bcc-gray-600);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}
.bcc-sidebar__logout:hover {
    color: var(--bcc-error);
    background: var(--bcc-error-light);
}

/* ═══ SLIM HEADER (60px) ═══ */
.bcc-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--bcc-white);
    border-bottom: 1px solid var(--bcc-border-light);
    box-shadow: var(--shadow-xs);
}
.bcc-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sp-6);
    height: 100%;
}
.bcc-header__brand {
    display: none; /* Hidden on desktop — brand is in sidebar */
}
.bcc-header__currency-strip {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    font-size: var(--text-xs);
    color: var(--bcc-text-secondary);
    font-weight: 500;
}
.bcc-header__currency-item {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}
.bcc-header__currency-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}
.bcc-header__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.bcc-header__hamburger {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    align-items: center;
    justify-content: center;
    color: var(--bcc-gray-700);
    transition: background var(--duration-fast) var(--ease);
}
.bcc-header__hamburger:hover { background: var(--bcc-gray-100); }

.bcc-header__notification {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    border: none;
    background: none;
    color: var(--bcc-gray-600);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}
.bcc-header__notification:hover { background: var(--bcc-gray-100); }
.bcc-header__notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bcc-error);
    border: 2px solid var(--bcc-white);
}

.bcc-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bcc-primary-8);
    color: var(--bcc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow var(--duration-fast) var(--ease);
}
.bcc-header__avatar:hover { box-shadow: 0 0 0 3px var(--bcc-primary-20); }

.bcc-header__logout {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    border: 1.5px solid var(--bcc-border-light);
    background: var(--bcc-white);
    color: var(--bcc-gray-700);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-pill);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease);
}
.bcc-header__logout:hover { border-color: var(--bcc-primary); color: var(--bcc-primary); background: var(--bcc-primary-8); }

/* ═══ MAIN CONTENT ═══ */
.bcc-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: var(--sp-6);
    min-height: calc(100vh - var(--header-height));
}
.bcc-main__inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ═══ BOTTOM NAV (mobile only) ═══ */
.bcc-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--bottom-nav-height);
    background: var(--bcc-white);
    border-top: 1px solid var(--bcc-border-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    align-items: center;
    justify-content: space-around;
}
.bcc-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--sp-1) var(--sp-3);
    color: var(--bcc-text-tertiary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color var(--duration-fast) var(--ease);
    position: relative;
}
.bcc-bottom-nav__item:hover { color: var(--bcc-primary); }
.bcc-bottom-nav__item--active,
.bcc-bottom-nav__item.active {
    color: var(--bcc-primary);
    font-weight: 700;
}
.bcc-bottom-nav__item--active::after,
.bcc-bottom-nav__item.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    width: 20px;
    height: 3px;
    background: var(--bcc-primary);
    border-radius: var(--r-pill);
}

/* ═══ FOOTER ═══ */
.bcc-footer {
    margin-left: var(--sidebar-width);
    background: var(--bcc-gray-900);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--sp-5) var(--sp-6);
    font-size: var(--text-sm);
}
.bcc-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bcc-footer__links { display: flex; gap: var(--sp-5); }
.bcc-footer__links a { color: rgba(255, 255, 255, 0.6); }
.bcc-footer__links a:hover { color: #fff; }

/* ═══ DRAWER (mobile overlay) ═══ */
.bcc-drawer__header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-5) var(--sp-4);
    border-bottom: 1px solid var(--bcc-border-light);
    font-weight: 700;
    font-size: var(--text-base);
}
.bcc-drawer__logo { height: 32px; width: auto; }
.bcc-drawer__footer {
    padding: var(--sp-4);
    margin-top: auto;
    border-top: 1px solid var(--bcc-border-light);
}

/* ═══ DESKTOP NAV (hidden — replaced by sidebar) ═══ */
.bcc-desktop-nav { display: none; }

/* ═══ MEGA MENU (hidden — replaced by sidebar) ═══ */
.bcc-mega-menu { display: none; }
.bcc-mega-menu__backdrop { display: none; }
.bcc-mega-menu__panel { display: none; }

/* ═══════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ═══ CTA BUTTON ═══ */
.bcc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--btn-height);
    padding: 10px 20px;
    border-radius: var(--r-pill);
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--duration-fast) var(--ease);
}
.bcc-cta--primary {
    background: var(--bcc-primary);
    color: #fff;
    border-color: var(--bcc-primary);
    box-shadow: var(--shadow-primary);
}
.bcc-cta--primary:hover {
    background: var(--bcc-primary-hover);
    border-color: var(--bcc-primary-hover);
    transform: translateY(-1px);
}
.bcc-cta--outlined {
    background: transparent;
    color: var(--bcc-primary);
    border-color: var(--bcc-primary);
}
.bcc-cta--outlined:hover { background: var(--bcc-primary-8); }
.bcc-cta--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ═══ PAGE HEADER ═══ */
.bcc-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
}
.bcc-page-header__title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--bcc-text);
    letter-spacing: -0.02em;
}
.bcc-page-header__subtitle {
    font-size: var(--text-sm);
    color: var(--bcc-text-secondary);
    margin-top: var(--sp-1);
}
.bcc-page-header__actions { display: flex; gap: var(--sp-3); }

/* ═══ SECTION TITLE ═══ */
.bcc-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
}
.bcc-section-title__text {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--bcc-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ═══ ACCOUNT CARD ═══ */
.bcc-account-card {
    background: var(--bcc-white);
    border: 1px solid var(--bcc-border-light);
    border-radius: var(--r-xl);
    padding: var(--sp-4) var(--sp-6);
    box-shadow: var(--shadow-xs);
    transition: all var(--duration-normal) var(--ease);
}
.bcc-account-card--clickable { cursor: pointer; }
.bcc-account-card--clickable:hover {
    border-color: var(--bcc-primary-20);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.bcc-account-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--sp-4);
}
.bcc-account-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-lg);
    background: var(--bcc-primary-8);
    display: grid;
    place-items: center;
    color: var(--bcc-primary);
    flex-shrink: 0;
}
.bcc-account-card__name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--bcc-text);
    display: block;
}
.bcc-account-card__number {
    font-size: var(--text-xs);
    color: var(--bcc-text-secondary);
    margin-top: 2px;
    display: block;
}
.bcc-account-card__type {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--bcc-primary);
    background: var(--bcc-primary-8);
    padding: 3px 10px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}
.bcc-account-card__balance {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
}
.bcc-account-card__amount {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--bcc-text);
}
.bcc-account-card__currency {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--bcc-text-secondary);
}

/* ═══ QUICK ACTIONS ═══ */
.bcc-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: var(--sp-3);
}
.bcc-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-2);
    border: 1.5px solid var(--bcc-border-light);
    border-radius: var(--r-xl);
    background: var(--bcc-white);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}
.bcc-quick-action:hover {
    border-color: var(--bcc-primary);
    background: var(--bcc-primary-8);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.bcc-quick-action__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-lg);
    background: var(--bcc-primary-8);
    display: grid;
    place-items: center;
}
.bcc-quick-action__label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--bcc-gray-700);
    text-align: center;
}

/* ═══ INFO CARD ═══ */
.bcc-info-card {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--bcc-white);
    border: 1px solid var(--bcc-border-light);
    border-radius: var(--r-xl);
    transition: all var(--duration-fast) var(--ease);
}
.bcc-info-card--clickable { cursor: pointer; }
.bcc-info-card--clickable:hover { border-color: var(--bcc-primary-20); box-shadow: var(--shadow-sm); }
.bcc-info-card__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--r-lg);
    display: grid;
    place-items: center;
}
.bcc-info-card__content { flex: 1; min-width: 0; }
.bcc-info-card__title { display: block; font-size: var(--text-base); font-weight: 600; color: var(--bcc-text); }
.bcc-info-card__subtitle {
    display: block;
    font-size: var(--text-sm);
    color: var(--bcc-text-secondary);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bcc-info-card__chevron { color: var(--bcc-text-tertiary); }

/* ═══ STATUS BADGE ═══ */
.bcc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-pill);
    font-size: var(--text-xs);
    font-weight: 600;
}
.bcc-status-badge--success { background: var(--bcc-success-light); color: var(--bcc-success); }
.bcc-status-badge--error { background: var(--bcc-error-light); color: var(--bcc-error); }
.bcc-status-badge--warning { background: var(--bcc-warning-light); color: var(--bcc-warning); }
.bcc-status-badge--info { background: var(--bcc-info-light); color: var(--bcc-info); }

/* Alias: BccStatusBadge component uses bcc-badge class */
.bcc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-pill);
    font-size: var(--text-xs);
    font-weight: 600;
}
.bcc-badge--success { background: var(--bcc-success-light); color: var(--bcc-success); }
.bcc-badge--error { background: var(--bcc-error-light); color: var(--bcc-error); }
.bcc-badge--warning { background: var(--bcc-warning-light); color: var(--bcc-warning); }
.bcc-badge--info { background: var(--bcc-info-light); color: var(--bcc-info); }
.bcc-badge--neutral { background: var(--bcc-gray-100); color: var(--bcc-gray-600); }

/* ═══ EMPTY STATE ═══ */
.bcc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--sp-9) var(--sp-6);
    text-align: center;
}
.bcc-empty-state__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--r-2xl);
    background: var(--bcc-primary-8);
    display: grid;
    place-items: center;
    margin-bottom: var(--sp-5);
}
.bcc-empty-state__title { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 600; color: var(--bcc-text); }
.bcc-empty-state__subtitle { font-size: var(--text-sm); color: var(--bcc-text-secondary); margin-top: var(--sp-2); max-width: 320px; }
.bcc-empty-state__action { margin-top: var(--sp-6); }

/* ═══ LOADING STATE ═══ */
.bcc-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--sp-9) var(--sp-6);
    gap: var(--sp-4);
}
.bcc-loading-state__text,
.bcc-loading-state__message { font-size: var(--text-sm); color: var(--bcc-text-secondary); }

/* ═══ FORM FIELD ═══ */
.bcc-form-field { display: flex; flex-direction: column; gap: 6px; }
.bcc-form-field__label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--bcc-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.bcc-form-field__input-wrap,
.bcc-form-field__wrapper {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    height: var(--input-height);
    padding: 0 var(--sp-4);
    border: 1.5px solid var(--bcc-border);
    border-radius: var(--r-xl);
    background: var(--bcc-white);
    transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.bcc-form-field__input-wrap:focus-within { border-color: var(--bcc-primary); box-shadow: var(--shadow-focus); }
.bcc-form-field__prefix { color: var(--bcc-text-tertiary); display: flex; }
.bcc-form-field__input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: var(--text-sm);
    color: var(--bcc-text);
    height: 100%;
}
.bcc-form-field__input::placeholder { color: var(--bcc-text-tertiary); }
.bcc-form-field__textarea {
    resize: vertical;
    min-height: 80px;
    padding: var(--sp-3) var(--sp-4);
    border: 1.5px solid var(--bcc-border);
    border-radius: var(--r-xl);
    background: var(--bcc-white);
    font-size: var(--text-sm);
    color: var(--bcc-text);
    transition: border-color var(--duration-fast) var(--ease);
}
.bcc-form-field__textarea:focus { border-color: var(--bcc-primary); outline: none; box-shadow: var(--shadow-focus); }
.bcc-form-field__suffix { display: flex; color: var(--bcc-text-tertiary); }
.bcc-form-field__error { font-size: var(--text-xs); color: var(--bcc-error); margin-top: 2px; }
.bcc-form-field--error .bcc-form-field__input-wrap,
.bcc-form-field--error .bcc-form-field__wrapper { border-color: var(--bcc-error); }
.bcc-form-field--disabled { opacity: 0.5; pointer-events: none; }

/* ═══ LIST TILE ═══ */
.bcc-list-tile {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    transition: background var(--duration-fast) var(--ease);
}
.bcc-list-tile:hover { background: var(--bcc-bg-hover); }
.bcc-list-tile--clickable { cursor: pointer; }
.bcc-list-tile--dense { padding: var(--sp-2) var(--sp-3); }
.bcc-list-tile__leading { flex-shrink: 0; }
.bcc-list-tile__content { flex: 1; min-width: 0; }
.bcc-list-tile__title { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--bcc-text); }
.bcc-list-tile__subtitle { display: block; font-size: var(--text-xs); color: var(--bcc-text-secondary); margin-top: 1px; }
.bcc-list-tile__trailing { flex-shrink: 0; }
.bcc-list-tile__chevron { color: var(--bcc-text-tertiary); flex-shrink: 0; }

/* ═══ IN-PAGE HEADER (BccHeader component) ═══ */
.bcc-inpage-header__top {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
}
.bcc-inpage-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    border: none;
    background: var(--bcc-gray-100);
    color: var(--bcc-text);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
    flex-shrink: 0;
}
.bcc-inpage-header__back:hover { background: var(--bcc-primary-8); color: var(--bcc-primary); }
.bcc-inpage-header__titles { flex: 1; }
.bcc-inpage-header__title { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 700; color: var(--bcc-text); margin: 0; }
.bcc-inpage-header__subtitle { font-size: var(--text-sm); color: var(--bcc-text-secondary); margin: var(--sp-1) 0 0; }
.bcc-inpage-header__trailing { flex-shrink: 0; }

/* ═══ GLASS CARD (shared) ═══ */
.glass-card {
    background: var(--bcc-white);
    border: 1px solid var(--bcc-border-light);
    border-radius: var(--r-xl);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
}

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

.dash-section { display: grid; gap: var(--sp-4); }
.dash-currency-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); }
.dash-total-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    padding: var(--sp-4) var(--sp-6);
    background: var(--bcc-white);
    border: 1px solid var(--bcc-border-light);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
}
.dash-total-card__label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--bcc-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dash-total-card__amount {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--bcc-text);
}
.dash-indicators { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-3); }
.dash-accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-4); }
.dash-chart-card {
    padding: var(--sp-4) var(--sp-6);
    background: var(--bcc-white);
    border: 1px solid var(--bcc-border-light);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
}
.dash-period-select {
    padding: 6px 12px;
    border: 1.5px solid var(--bcc-border-light);
    border-radius: var(--r-pill);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--bcc-gray-700);
    background: var(--bcc-white);
    cursor: pointer;
}
.dash-period-select:focus { border-color: var(--bcc-primary); outline: none; }
.dash-meta { font-size: var(--text-xs); color: var(--bcc-text-tertiary); }

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE — Split Layout
   ═══════════════════════════════════════════════════════════════ */

.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
.login-brand {
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--sp-8);
    color: #fff;
}
.login-brand__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}
.login-brand__glow--top { width: 400px; height: 400px; background: #fff; top: -120px; right: -80px; }
.login-brand__glow--bottom { width: 300px; height: 300px; background: var(--bcc-primary-light); bottom: -80px; left: -60px; }
.login-brand__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.login-brand__content { position: relative; z-index: 1; max-width: 400px; text-align: center; }
.login-brand__logo { height: 64px; width: auto; margin-bottom: var(--sp-6); filter: brightness(0) invert(1); }
.login-brand__title { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 700; line-height: 1.15; margin-bottom: var(--sp-4); }
.login-brand__divider { width: 48px; height: 3px; background: rgba(255, 255, 255, 0.4); border-radius: var(--r-pill); margin: 0 auto var(--sp-4); }
.login-brand__subtitle { font-size: var(--text-sm); line-height: 1.6; opacity: 0.85; }
.login-brand__features { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-7); text-align: left; }
.login-brand__feature { display: flex; align-items: flex-start; gap: var(--sp-3); }
.login-brand__feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
}
.login-brand__feature-title { font-size: var(--text-sm); font-weight: 600; margin-bottom: 2px; }
.login-brand__feature-desc { font-size: var(--text-xs); opacity: 0.7; line-height: 1.4; }
.login-brand__footer {
    position: absolute;
    bottom: var(--sp-5);
    font-size: var(--text-xs);
    opacity: 0.5;
}

.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-8);
    background: var(--bcc-bg-page);
}
.login-form-container { width: 100%; max-width: 400px; }
.login-form-header { margin-bottom: var(--sp-6); }
.login-form-header__logo { height: 40px; width: auto; margin-bottom: var(--sp-5); }
.login-form-header__title { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 700; color: var(--bcc-text); }
.login-form-header__subtitle { font-size: var(--text-sm); color: var(--bcc-text-secondary); margin-top: var(--sp-2); }

.login-form__fields { display: flex; flex-direction: column; gap: var(--sp-4); }
.login-form__error {
    margin-top: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    background: var(--bcc-error-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.login-form__error-text { font-size: var(--text-sm); color: var(--bcc-error); font-weight: 500; margin: 0; }
.login-form__actions { margin-top: var(--sp-5); }
.login-form__actions .bcc-cta { width: 100%; }
.login-form__remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--sp-3);
}
.login-form__remember label {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-sm);
    color: var(--bcc-text-secondary);
    cursor: pointer;
}
.login-form__forgot {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--bcc-primary);
}

.login-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-top: var(--sp-5);
    justify-content: center;
}
.login-links__item { font-size: var(--text-sm); font-weight: 500; color: var(--bcc-text-secondary); }
.login-links__item:hover { color: var(--bcc-primary); }

.login-ssl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    margin-top: var(--sp-6);
    font-size: var(--text-xs);
    color: var(--bcc-text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════
   ACTIVATION LAYOUT — Split
   ═══════════════════════════════════════════════════════════════ */

.activation-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
.activation-brand {
    position: relative;
    background: var(--gradient-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--sp-8);
    color: #fff;
}
.activation-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-8);
    background: var(--bcc-bg-page);
}

/* Stepper */
.activation-stepper {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}
.activation-stepper__step {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--bcc-text-tertiary);
}
.activation-stepper__step--active {
    color: var(--bcc-primary);
    font-weight: 600;
}
.activation-stepper__step--done {
    color: var(--bcc-success);
}
.activation-stepper__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: var(--text-xs);
    font-weight: 700;
    border: 2px solid var(--bcc-border-light);
    color: var(--bcc-text-tertiary);
}
.activation-stepper__step--active .activation-stepper__dot {
    border-color: var(--bcc-primary);
    background: var(--bcc-primary);
    color: #fff;
}
.activation-stepper__step--done .activation-stepper__dot {
    border-color: var(--bcc-success);
    background: var(--bcc-success);
    color: #fff;
}
.activation-stepper__line {
    width: 32px;
    height: 2px;
    background: var(--bcc-border-light);
    border-radius: var(--r-pill);
}
.activation-stepper__step--done + .activation-stepper__line { background: var(--bcc-success); }

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

.bo-shell { display: flex; min-height: 100vh; }
.bo-shell__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bcc-gray-900);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 110;
}
.bo-shell__brand {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bo-shell__brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    background: var(--bcc-primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.bo-shell__brand-title { font-size: var(--text-base); font-weight: 700; color: #fff; margin: 0; }
.bo-shell__brand-subtitle { font-size: var(--text-xs); opacity: 0.5; margin: 0; }
.bo-shell__nav-section { padding: var(--sp-3) var(--sp-3); }
.bo-shell__nav-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
    padding: var(--sp-2) var(--sp-3);
    margin: 0;
}
.bo-shell__nav-list { display: flex; flex-direction: column; gap: 2px; }
.bo-shell__nav-link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease);
}
.bo-shell__nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.bo-shell__nav-link--active { color: #fff; background: var(--bcc-primary); font-weight: 600; }
.bo-shell__sidebar-footer {
    margin-top: auto;
    padding: var(--sp-4) var(--sp-3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.bo-shell__back-link {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease);
}
.bo-shell__back-link:hover { color: #fff; }

.bo-shell__main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}
.bo-shell__topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bcc-white);
    border-bottom: 1px solid var(--bcc-border-light);
    padding: 0 var(--sp-6);
    height: var(--header-height);
}
.bo-shell__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.bo-shell__topbar-title { font-size: var(--text-lg); font-weight: 700; color: var(--bcc-text); margin: 0; }
.bo-shell__topbar-subtitle { font-size: var(--text-xs); color: var(--bcc-text-tertiary); margin: 0; }
.bo-shell__topbar-actions { display: flex; align-items: center; gap: var(--sp-3); }
.bo-shell__logout-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    border: 1.5px solid var(--bcc-border-light);
    background: var(--bcc-white);
    color: var(--bcc-gray-700);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-pill);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease);
}
.bo-shell__logout-btn:hover { border-color: var(--bcc-primary); color: var(--bcc-primary); }

.bo-shell__mobile-menu { display: none; }
.bcc-shell__content {
    flex: 1;
    padding: var(--sp-6);
}
.backoffice-shell__content-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   BACKOFFICE COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Cards ── */
.bo-card { padding: var(--sp-5); }
.bo-form-card { padding: var(--sp-5); border-left: 3px solid var(--bcc-primary); }
.bo-detail-card { padding: var(--sp-5); }
.bo-detail-card--danger { border-left: 3px solid var(--bcc-error); }
.bo-detail-card--alert { border-left: 3px solid var(--bcc-warning); }
.bo-confirm-card { padding: var(--sp-5); border-left: 3px solid var(--bcc-success); }

/* ── Tables ── */
.bo-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bo-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--text-sm);
}
.bo-table thead th {
    text-align: left;
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bcc-text-tertiary);
    border-bottom: 2px solid var(--bcc-border-light);
    white-space: nowrap;
}
.bo-table tbody td {
    padding: var(--sp-3);
    border-bottom: 1px solid var(--bcc-gray-100);
    vertical-align: middle;
}
.bo-table__row--hover { transition: background var(--duration-fast) var(--ease); }
.bo-table__row--hover:hover { background: var(--bcc-bg-hover); }
.bo-table__row--critical { background: var(--bcc-error-light); }
.bo-table__row--critical:hover { background: rgba(239, 68, 68, 0.15); }
.bo-table__row--selected { background: var(--bcc-primary-8); }
.bo-table__row--clickable { cursor: pointer; }
.bo-table__cell--name { font-weight: 600; color: var(--bcc-text); }
.bo-table__cell--mono { font-family: "JetBrains Mono", "Fira Code", monospace; font-size: var(--text-xs); color: var(--bcc-text); }
.bo-table__cell--muted { color: var(--bcc-text-tertiary); font-size: var(--text-xs); }
.bo-table__cell--body { color: var(--bcc-text-secondary); }
.bo-table__cell--amount { text-align: right; font-weight: 600; font-family: "JetBrains Mono", "Fira Code", monospace; color: var(--bcc-text); }
.bo-table__cell--sub { font-size: var(--text-xs); color: var(--bcc-text-tertiary); margin-top: 2px; }
.bo-th--right { text-align: right !important; }
.bo-th--center { text-align: center !important; }
.bo-sub-section { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--bcc-border-light); }
.bo-sub-table { max-height: 300px; overflow-y: auto; }

/* ── KPI Grid ── */
.bo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--sp-4);
}
.bo-kpi-card {
    padding: var(--sp-5);
    text-align: center;
}
.bo-kpi-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bcc-text-tertiary);
    margin-bottom: var(--sp-2);
}
.bo-kpi-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    font-family: var(--font-heading);
}
.bo-kpi-value--primary { color: var(--bcc-primary); }
.bo-kpi-value--secondary { color: var(--bcc-info); }
.bo-kpi-value--danger { color: var(--bcc-error); }
.bo-kpi-value--warning { color: var(--bcc-warning); }
.bo-kpi-value--success { color: var(--bcc-success); }

/* ── Detail Grid ── */
.bo-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--sp-4);
    margin-top: var(--sp-4);
}
.bo-detail-grid--2col { grid-template-columns: repeat(2, 1fr); }
.bo-detail-value {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--bcc-text);
    margin-top: var(--sp-1);
}
.bo-detail-value--mono { font-family: "JetBrains Mono", "Fira Code", monospace; font-size: var(--text-sm); }
.bo-detail-value--highlight { font-size: var(--text-xl); font-weight: 700; }
.bo-detail-sub { font-size: var(--text-xs); color: var(--bcc-text-tertiary); margin-top: 2px; }
.bo-detail-extra { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--bcc-border-light); }
.bo-detail-extra__label { margin-bottom: var(--sp-2); }
.bo-detail-actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

/* ── Forms ── */
.bo-form-grid {
    display: grid;
    gap: var(--sp-4);
    margin-top: var(--sp-4);
}
.bo-form-grid--2col { grid-template-columns: repeat(2, 1fr); }
.bo-form-grid--3col { grid-template-columns: repeat(3, 1fr); }
.bo-form-grid--auto { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.bo-form-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
    justify-content: flex-end;
}
.bo-form-actions--start { justify-content: flex-start; }
.bo-span-full { grid-column: 1 / -1; }
.bo-textarea {
    width: 100%;
    min-height: 80px;
    padding: var(--sp-3);
    border: 1.5px solid var(--bcc-border-light);
    border-radius: var(--r-xl);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--bcc-text);
    background: var(--bcc-bg-section);
    resize: vertical;
    transition: border-color var(--duration-fast) var(--ease);
}
.bo-textarea:focus { outline: none; border-color: var(--bcc-primary); box-shadow: var(--shadow-focus); }
.bo-textarea--tall { min-height: 120px; }
.bo-select { cursor: pointer; }

/* ── Alerts ── */
.bo-alert {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-xl);
    font-size: var(--text-sm);
    font-weight: 500;
}
.bo-alert--success { background: var(--bcc-success-light); color: var(--bcc-success); border: 1px solid rgba(22, 163, 74, 0.2); }
.bo-alert--error { background: var(--bcc-error-light); color: var(--bcc-error); border: 1px solid rgba(239, 68, 68, 0.2); }
.bo-alert--warning { background: var(--bcc-warning-light); color: #92400E; border: 1px solid rgba(245, 158, 11, 0.2); }
.bo-alert--info { background: var(--bcc-info-light); color: var(--bcc-info); border: 1px solid rgba(59, 130, 246, 0.2); }
.bo-alert__text { flex: 1; }

/* ── Buttons ── */
.bo-actions { display: flex; align-items: center; gap: var(--sp-2); }
.bo-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-pill);
    border: 1.5px solid var(--bcc-error);
    background: transparent;
    color: var(--bcc-error);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}
.bo-btn-danger:hover { background: var(--bcc-error); color: #fff; }
.bo-btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }
.bo-btn-danger-fill {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-pill);
    border: none;
    background: var(--bcc-error);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}
.bo-btn-danger-fill:hover { background: #DC2626; }
.bo-btn-danger-fill:disabled { opacity: 0.5; cursor: not-allowed; }
.bo-btn-success {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-pill);
    border: none;
    background: var(--bcc-success);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}
.bo-btn-success:hover { background: #15803D; }
.bo-btn-success:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    border: none;
    background: transparent;
    color: var(--bcc-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}
.btn-ghost:hover { background: var(--bcc-primary-8); }
.btn-ghost:disabled { color: var(--bcc-text-tertiary); cursor: not-allowed; }
.btn-ghost:disabled:hover { background: transparent; }

/* ── Search ── */
.bo-search-bar {
    display: flex;
    align-items: flex-end;
    gap: var(--sp-3);
    margin-top: var(--sp-4);
}
.bo-search-bar__input { flex: 1; }

/* ── Filters ── */
.bo-filters {
    display: flex;
    align-items: flex-end;
    gap: var(--sp-4);
    flex-wrap: wrap;
    margin-top: var(--sp-3);
}
.bo-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--sp-4);
    margin-top: var(--sp-3);
}
.bo-filter-field { min-width: 150px; }
.bo-filter-action { display: flex; align-items: flex-end; }

/* ── Pagination ── */
.bo-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    margin-top: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--bcc-border-light);
}
.bo-pagination__info {
    font-size: var(--text-xs);
    color: var(--bcc-text-tertiary);
    font-weight: 500;
}

/* ── Misc ── */
.bo-hint { font-size: var(--text-xs); color: var(--bcc-text-tertiary); margin-top: var(--sp-1); }
.bo-hint-inline { font-size: var(--text-xs); color: var(--bcc-text-tertiary); font-weight: 400; }
.bo-link {
    color: var(--bcc-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--duration-fast) var(--ease);
}
.bo-link:hover { color: var(--bcc-primary-dark); text-decoration: underline; }
.bo-count { font-size: var(--text-xs); font-weight: 500; color: var(--bcc-text-tertiary); }
.bo-count--mono { font-family: "JetBrains Mono", "Fira Code", monospace; }
.bo-count--danger { color: var(--bcc-error); }
.bo-nowrap { white-space: nowrap; }
.bo-text-center { text-align: center; }
.bo-text-upper { text-transform: uppercase; }
.bo-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-sm);
    color: var(--bcc-primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: var(--sp-3);
    transition: color var(--duration-fast) var(--ease);
}
.bo-breadcrumb:hover { color: var(--bcc-primary-dark); }
.bo-back-link {
    font-size: var(--text-sm);
    color: var(--bcc-primary);
    text-decoration: none;
}
.bo-back-link:hover { text-decoration: underline; }
.bo-client-header { margin-bottom: var(--sp-2); }

/* ── Permissions ── */
.bo-perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-5);
    margin-top: var(--sp-4);
}
.bo-perm-group { }
.bo-perm-category {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bcc-primary);
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 2px solid var(--bcc-primary-8);
}
.bo-perm-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.bo-perm-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    transition: background var(--duration-fast) var(--ease);
    cursor: pointer;
}
.bo-perm-item:hover { background: var(--bcc-bg-hover); }
.bo-perm-label { font-size: var(--text-sm); color: var(--bcc-text); flex: 1; }

/* ── Feature Flags ── */
.bo-flag-list { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); }
.bo-flag-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-4);
    border-radius: var(--r-lg);
    background: var(--bcc-bg-section);
    border: 1px solid var(--bcc-border-light);
    transition: border-color var(--duration-fast) var(--ease);
}
.bo-flag-item:hover { border-color: var(--bcc-primary-12); }
.bo-flag-content { flex: 1; }
.bo-flag-header { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-1); }
.bo-flag-name { font-size: var(--text-sm); font-weight: 600; color: var(--bcc-text); margin: 0; }
.bo-flag-desc { font-size: var(--text-xs); color: var(--bcc-text-secondary); margin: 0; line-height: 1.5; }
.bo-flag-segments { font-size: var(--text-xs); color: var(--bcc-text-tertiary); margin: var(--sp-1) 0 0; }
.bo-flag-toggle {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
    cursor: pointer;
}
.bo-flag-toggle-label { font-size: var(--text-xs); font-weight: 600; color: var(--bcc-text-secondary); }

/* ── Notifications ── */
.bo-notif-layout { display: grid; gap: var(--sp-5); }
.bo-info-box {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-lg);
    font-size: var(--text-sm);
    font-weight: 500;
}
.bo-info-box--primary { background: var(--bcc-primary-8); color: var(--bcc-primary-dark); }
.bo-checkbox-row { margin-top: var(--sp-3); }
.bo-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--bcc-text);
}
.bo-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--bcc-primary);
    cursor: pointer;
}
.bo-checkbox--primary { accent-color: var(--bcc-primary); }

/* ── Confirmation ── */
.bo-confirm-list { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); }
.bo-confirm-row {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--bcc-gray-100);
}
.bo-confirm-row--block { flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
.bo-confirm-label { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--bcc-text-tertiary); min-width: 120px; }
.bo-confirm-value { font-size: var(--text-sm); font-weight: 500; color: var(--bcc-text); }
.bo-confirm-message { font-size: var(--text-sm); color: var(--bcc-text-secondary); line-height: 1.6; white-space: pre-wrap; }

/* ── Tickets / History ── */
.bo-sla-indicator { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--text-xs); font-weight: 600; }
.bo-sla-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bo-history { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--bcc-border-light); }
.bo-history__list { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-3); }
.bo-history__item {
    display: flex;
    align-items: baseline;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    background: var(--bcc-bg-section);
    font-size: var(--text-sm);
}
.bo-history__date { font-family: "JetBrains Mono", "Fira Code", monospace; font-size: var(--text-xs); color: var(--bcc-text-tertiary); white-space: nowrap; }
.bo-history__author { font-weight: 600; color: var(--bcc-text); white-space: nowrap; }
.bo-history__message { color: var(--bcc-text-secondary); }

/* ── Risk ── */
.bo-risk--danger { color: var(--bcc-error); }
.bo-risk--warning { color: var(--bcc-warning); }
.bo-risk--success { color: var(--bcc-success); }

/* ── Payload / Code ── */
.bo-payload {
    background: var(--bcc-gray-900);
    color: #E5E7EB;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-lg);
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: var(--text-xs);
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 250px;
    overflow-y: auto;
}
.bo-payload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-4); }
.bo-payload-label { margin-bottom: var(--sp-2); }

/* ── Action Section ── */
.bo-action-section {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--bcc-border-light);
}

/* ── Dialogs ── */
.bo-dialog { padding: var(--sp-4); }
.bo-dialog__header {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
}
.bo-dialog__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-lg);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.bo-dialog__icon--danger { background: var(--bcc-error-light); color: var(--bcc-error); }
.bo-dialog__icon--success { background: var(--bcc-success-light); color: var(--bcc-success); }
.bo-dialog__icon--warning { background: var(--bcc-warning-light); color: #92400E; }
.bo-dialog__title { font-size: var(--text-lg); font-weight: 700; color: var(--bcc-text); margin: 0; }
.bo-dialog__subtitle { font-size: var(--text-sm); color: var(--bcc-text-secondary); margin: var(--sp-1) 0 0; }
.bo-dialog__info-box {
    background: var(--bcc-bg-section);
    border: 1px solid var(--bcc-border-light);
    border-radius: var(--r-lg);
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-4);
}
.bo-dialog__info-label { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; color: var(--bcc-text-tertiary); margin: 0; }
.bo-dialog__info-value { font-size: var(--text-base); font-weight: 600; color: var(--bcc-text); margin: var(--sp-1) 0 0; font-family: "JetBrains Mono", "Fira Code", monospace; }
.bo-dialog__field { margin-bottom: var(--sp-4); }
.bo-dialog__field-label { font-size: var(--text-sm); font-weight: 600; color: var(--bcc-text); margin-bottom: var(--sp-2); display: block; }
.bo-dialog__required { color: var(--bcc-error); }
.bo-dialog__optional { font-size: var(--text-xs); color: var(--bcc-text-tertiary); font-weight: 400; }
.bo-dialog__validation { font-size: var(--text-xs); color: var(--bcc-error); margin-top: var(--sp-1); }
.bo-dialog__warning-box {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    background: var(--bcc-warning-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--r-lg);
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-5);
}
.bo-dialog__warning-text { font-size: var(--text-sm); color: #92400E; line-height: 1.5; margin: 0; }
.bo-dialog__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
}
.bo-dialog__btn--danger {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-pill);
    border: none;
    background: var(--bcc-error);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease);
}
.bo-dialog__btn--danger:hover { background: #DC2626; }
.bo-dialog__btn--danger:disabled { opacity: 0.5; cursor: not-allowed; }
.bo-dialog__btn--success {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-pill);
    border: none;
    background: var(--bcc-success);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease);
}
.bo-dialog__btn--success:hover { background: #15803D; }
.bo-dialog__btn--success:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Backoffice Responsive ── */
@media (max-width: 768px) {
    .bo-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .bo-form-grid--2col,
    .bo-form-grid--3col { grid-template-columns: 1fr; }
    .bo-detail-grid,
    .bo-detail-grid--2col { grid-template-columns: 1fr; }
    .bo-perm-grid { grid-template-columns: 1fr; }
    .bo-payload-grid { grid-template-columns: 1fr; }
    .bo-search-bar { flex-direction: column; align-items: stretch; }
    .bo-filters { flex-direction: column; align-items: stretch; }
    .bo-filters-grid { grid-template-columns: 1fr; }
    .bo-confirm-row { flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
    .bo-history__item { flex-direction: column; gap: var(--sp-1); }
}

/* ═══════════════════════════════════════════════════════════════
   MUD OVERRIDES
   ═══════════════════════════════════════════════════════════════ */

.mud-paper { border-radius: var(--r-xl); }
.mud-button-filled-primary { background-color: var(--bcc-primary) !important; }
.mud-button-filled-primary:hover { background-color: var(--bcc-primary-hover) !important; }
.mud-table-root { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.mud-table-head .mud-table-cell { color: var(--bcc-text); background: var(--bcc-gray-50); font-weight: 700; font-size: var(--text-sm); }
.mud-tabs-tabbar .mud-tab.mud-tab-active { color: var(--bcc-primary) !important; }
.mud-input-control .mud-input-root { border-radius: var(--r-xl) !important; }
.mud-nav-link { border-radius: var(--r-md) !important; font-size: var(--text-sm) !important; }

/* ═══ BLAZOR ERROR UI ═══ */
#blazor-error-ui {
    background: #fff4e5;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.7rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ═══ ANIMATION ═══ */
@keyframes bcc-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bcc-slide-in-left { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes bcc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

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

@media (max-width: 1023px) {
    /* Sidebar hidden on tablet/mobile */
    .bcc-sidebar { display: none; }

    /* Header spans full width */
    .bcc-header {
        left: 0;
    }
    .bcc-header__brand {
        display: flex;
        align-items: center;
        gap: var(--sp-3);
        text-decoration: none;
        color: var(--bcc-text);
    }
    .bcc-header__logo { height: 28px; width: auto; }
    .bcc-header__brand-text { display: none; }
    .bcc-header__hamburger { display: flex; }
    .bcc-header__logout span { display: none; }
    .bcc-header__currency-strip { display: none; }

    /* Main content full width */
    .bcc-main {
        margin-left: 0;
    }

    /* Bottom nav visible */
    .bcc-bottom-nav { display: flex; }

    /* Footer full width */
    .bcc-footer {
        margin-left: 0;
        display: none;
    }

    /* Login single column */
    .login-split { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-form-side { min-height: 100vh; }

    /* Activation single column */
    .activation-split { grid-template-columns: 1fr; }
    .activation-brand { display: none; }
    .activation-form-side { min-height: 100vh; }

    /* Backoffice */
    .bo-shell__sidebar { display: none; }
    .bo-shell__main { margin-left: 0; }
    .bo-shell__mobile-menu { display: block; margin: var(--sp-3) var(--sp-4); }
    .bo-shell__mobile-menu-trigger {
        display: block;
        width: 100%;
        padding: var(--sp-3) var(--sp-4);
        border-radius: var(--r-md);
        background: var(--bcc-gray-100);
        border: 1px solid var(--bcc-border-light);
        font-size: var(--text-sm);
        font-weight: 600;
        cursor: pointer;
    }
    .bo-shell__mobile-menu-panel {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: var(--sp-3);
    }
    .bo-shell__mobile-link {
        display: block;
        padding: var(--sp-2) var(--sp-3);
        border-radius: var(--r-md);
        font-size: var(--text-sm);
        color: var(--bcc-text);
        text-decoration: none;
    }
    .bo-shell__mobile-link:hover { background: var(--bcc-gray-100); }
    .bo-shell__mobile-link--active { background: var(--bcc-primary-8); color: var(--bcc-primary); font-weight: 600; }
}

@media (max-width: 639px) {
    .bcc-main {
        padding: var(--sp-4) var(--sp-4) calc(var(--bottom-nav-height) + var(--sp-6));
    }
    .bcc-page { gap: var(--sp-5); }
    .dash-currency-totals { grid-template-columns: 1fr; }
    .dash-accounts-grid { grid-template-columns: 1fr; }
    .bcc-page-header__title { font-size: var(--text-2xl); }
    .bcc-quick-actions { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
