/*
 * style.css — CHPH Fireworks Distribution Management System
 * Supplementary stylesheet loaded AFTER internal-management.css.
 * Contains: BEM aliases, high-tech fireworks enhancements, placeholder components,
 *           new scalable component classes.
 *
 * BEM convention used throughout: block__element--modifier
 * Prefix fw- is reserved for fireworks-themed visual effects.
 */

/* ============================================================
   § 1. ADDITIONAL DESIGN TOKENS
   ============================================================ */

:root {
    /* Fireworks glow effects */
    --fw-glow-brand:    0 0 20px rgba(0, 146, 65, 0.50), 0 0 42px rgba(0, 146, 65, 0.25);
    --fw-glow-soft:     0 0 12px rgba(0, 146, 65, 0.30);
    --fw-glow-blue:     0 0 18px rgba(78, 168, 255, 0.38), 0 0 36px rgba(78, 168, 255, 0.18);
    --fw-glow-amber:    0 0 16px rgba(245, 184, 61, 0.38);

    /* Scan-line texture */
    --fw-scan-line: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(255, 255, 255, 0.012) 1px,
        rgba(255, 255, 255, 0.012) 2px
    );

    /* Placeholder states */
    --ph-border:  rgba(255, 255, 255, 0.12);
    --ph-border-hover: rgba(0, 146, 65, 0.36);
    --ph-bg:      rgba(255, 255, 255, 0.025);
    --ph-text:    #607286;

    /* Extra radius */
    --radius-xs:  8px;
    --radius-lg:  22px;
    --radius-xl:  28px;
}

/* ============================================================
   § 2. KEYFRAME ANIMATIONS
   ============================================================ */

@keyframes fw-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 146, 65, 0);  }
    50%       { box-shadow: 0 0 0 6px rgba(0, 146, 65, 0.18), var(--fw-glow-soft); }
}

@keyframes fw-sparkle {
    0%, 100% { opacity: 1; }
    48%      { opacity: 1; }
    50%      { opacity: 0.60; }
    52%      { opacity: 1; }
}

@keyframes fw-scan {
    0%   { background-position: 0 0; }
    100% { background-position: 0 -40px; }
}

@keyframes fw-border-glow {
    0%, 100% { border-color: rgba(0, 146, 65, 0.24); }
    50%       { border-color: rgba(0, 146, 65, 0.54); box-shadow: inset 3px 0 0 rgba(0, 168, 74, 0.80), 0 0 14px rgba(0, 146, 65, 0.22); }
}

/* ============================================================
   § 3. HIGH-TECH FIREWORKS ENHANCEMENTS
   ============================================================ */

/* 3a. Topbar scan-line overlay */
.app-topbar {
    position: relative;
}

.app-topbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--fw-scan-line);
    pointer-events: none;
    z-index: 0;
}

.app-topbar > * {
    position: relative;
    z-index: 1;
}

/* 3b. Brand mark pulse glow */
.app-brand-mark,
.sidebar__brand-mark {
    animation: fw-pulse 4s ease-in-out infinite;
    transition: transform 0.22s ease;
}

.app-brand-mark:hover,
.sidebar__brand-mark:hover {
    transform: scale(1.08);
}

/* 3c. Metric card radial burst overlay */
.metric-card {
    position: relative;
}

.metric-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
}

.metric-card > * {
    position: relative;
    z-index: 1;
}

.metric-card-green::before {
    background: radial-gradient(circle at 78% 14%, rgba(0, 146, 65, 0.15) 0%, transparent 58%);
}

.metric-card-warm::before {
    background: radial-gradient(circle at 78% 14%, rgba(255, 139, 107, 0.12) 0%, transparent 58%);
}

.metric-card-blue::before {
    background: radial-gradient(circle at 78% 14%, rgba(78, 168, 255, 0.12) 0%, transparent 58%);
}

.metric-card-amber::before {
    background: radial-gradient(circle at 78% 14%, rgba(245, 184, 61, 0.12) 0%, transparent 58%);
}

/* 3d. Neon text glow on metric values */
.metric-card-green .metric-value {
    text-shadow: var(--fw-glow-brand);
}

.metric-card-blue .metric-value {
    text-shadow: var(--fw-glow-blue);
}

.metric-card-amber .metric-value {
    text-shadow: var(--fw-glow-amber);
}

/* 3e. Active nav link animated glow */
.app-nav-link.active {
    animation: fw-border-glow 3.5s ease-in-out infinite;
}

/* 3f. Enhanced btn-primary glow on hover */
.btn-primary:hover {
    box-shadow: 0 14px 32px rgba(0, 146, 65, 0.42), var(--fw-glow-soft) !important;
    transform: translateY(-1px);
    transition: all 0.18s ease;
}

/* 3g. Sidebar brand radial glow background */
.app-brand {
    position: relative;
    overflow: hidden;
}

.app-brand::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 146, 65, 0.18), transparent 70%);
    pointer-events: none;
}

/* 3h. Panel card subtle left-border accent */
.panel-card {
    border-left: 3px solid rgba(0, 146, 65, 0.22) !important;
    transition: border-color 0.2s ease;
}

.panel-card:hover {
    border-left-color: rgba(0, 146, 65, 0.48) !important;
}

/* 3i. Summary chip hover shimmer */
.summary-chip {
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.summary-chip:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    transform: translateY(-2px);
}

/* ============================================================
   § 4. BEM ALIASES — Sidebar
   (aliases for internal-management.css classes, ensuring any
    new HTML using BEM names gets the same styles)
   ============================================================ */

.sidebar__brand           { /* identical to .app-brand */ }
.sidebar__brand-mark      { /* inherits from .app-brand-mark via element sharing */ }
.sidebar__brand-title     { color: #fff; font-size: 1.06rem; font-weight: 700; }
.sidebar__brand-subtitle  { color: var(--text-muted); font-size: 0.84rem; }

.sidebar__nav             { display: flex; flex-direction: column; gap: 6px; }

.sidebar__nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-soft, #d6e0ea);
    border: 1px solid transparent;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar__nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.04);
    color: #fff;
    transform: translateX(2px);
}

.sidebar__nav-link--active {
    color: #d8ffe7;
    background: rgba(0, 146, 65, 0.14);
    border-color: rgba(0, 146, 65, 0.24);
    box-shadow: inset 3px 0 0 #00a84a;
    animation: fw-border-glow 3.5s ease-in-out infinite;
}

.sidebar__badge {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sidebar__footer          { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.sidebar__user-card       { display: flex; align-items: center; gap: 12px; }
.sidebar__section-title   {
    padding: 0 10px;
    color: #607286;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar__avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(0, 146, 65, 0.92), rgba(78, 168, 255, 0.9));
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar__utility-links   { display: flex; flex-direction: column; gap: 8px; }

.sidebar__utility-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #d6e0ea;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar__utility-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ============================================================
   § 5. BEM ALIASES — Topbar
   ============================================================ */

.topbar__copy     { min-width: 0; }
.topbar__title    { font-size: 1.25rem; font-weight: 700; color: #fff; }
.topbar__subtitle { margin-top: 4px; color: var(--text-muted, #93a4b5); font-size: 0.92rem; }
.topbar__actions  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.topbar__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-soft, #d6e0ea);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__pill-value   { font-weight: 700; }

.topbar__pill--danger {
    color: #ff938a;
    border-color: rgba(255, 123, 114, 0.28);
    background: rgba(255, 123, 114, 0.08);
}

.topbar__pill--warning {
    color: #f9c75d;
    border-color: rgba(245, 184, 61, 0.24);
    background: rgba(245, 184, 61, 0.08);
}

/* ============================================================
   § 6. BEM ALIASES — Metric Cards
   ============================================================ */

.metric-card--green  { /* same as .metric-card-green  */ }
.metric-card--warm   { /* same as .metric-card-warm   */ }
.metric-card--blue   { /* same as .metric-card-blue   */ }
.metric-card--amber  { /* same as .metric-card-amber  */ }

.metric-card--green::before  { background: radial-gradient(circle at 78% 14%, rgba(0, 146, 65, 0.15) 0%, transparent 58%); }
.metric-card--warm::before   { background: radial-gradient(circle at 78% 14%, rgba(255, 139, 107, 0.12) 0%, transparent 58%); }
.metric-card--blue::before   { background: radial-gradient(circle at 78% 14%, rgba(78, 168, 255, 0.12) 0%, transparent 58%); }
.metric-card--amber::before  { background: radial-gradient(circle at 78% 14%, rgba(245, 184, 61, 0.12) 0%, transparent 58%); }

.metric-card--green .metric-value  { text-shadow: var(--fw-glow-brand); }
.metric-card--blue  .metric-value  { text-shadow: var(--fw-glow-blue); }
.metric-card--amber .metric-value  { text-shadow: var(--fw-glow-amber); }

.metric-card__icon   { /* same as .metric-icon   */ }
.metric-card__label  { /* same as .metric-label  */ }
.metric-card__value  { /* same as .metric-value  */ }
.metric-card__meta   { /* same as .metric-meta   */ }

/* ============================================================
   § 7. BEM ALIASES — Status Pills
   ============================================================ */

.status-pill--success    { background: rgba(0, 146, 65, 0.14);  color: #66e08d;  border-color: rgba(0, 146, 65, 0.24); }
.status-pill--pending    { background: rgba(245, 184, 61, 0.12); color: #f2c45b;  border-color: rgba(245, 184, 61, 0.22); }
.status-pill--delivering { background: rgba(78, 168, 255, 0.12); color: #7ac7ff;  border-color: rgba(78, 168, 255, 0.22); }
.status-pill--cancelled  { background: rgba(255, 123, 114, 0.12); color: #ff938a; border-color: rgba(255, 123, 114, 0.22); }
.status-pill--low-stock  { background: rgba(255, 123, 114, 0.12); color: #ff938a; border-color: rgba(255, 123, 114, 0.22); }
.status-pill--neutral    { background: rgba(255, 255, 255, 0.08); color: #d7e0ea;  border-color: rgba(255, 255, 255, 0.12); }

/* ============================================================
   § 8. BEM ALIASES — Panel Card
   ============================================================ */

.panel-card__header { /* same as .panel-header */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px 0;
}

.panel-card__body { /* same as .panel-body */
    padding: 18px 22px 22px;
}

.panel-card__title {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

.panel-card__subtitle {
    margin: 6px 0 0;
    color: var(--text-muted, #93a4b5);
    font-size: 0.92rem;
}

.panel-card__link {
    color: #a9bbc9;
    text-decoration: none;
    font-size: 0.92rem;
    white-space: nowrap;
}

.panel-card__link:hover {
    color: #c9ffd9;
}

/* ============================================================
   § 9. CAMPAIGN BANNER PLACEHOLDER
   New slot for global campaign banners / system announcements
   Usage: Remove .campaign-banner--hidden when ready to show
   ============================================================ */

.campaign-banner {
    margin: 0 28px 18px;
}

.campaign-banner--hidden {
    display: none;
}

.campaign-banner__inner {
    border-radius: 16px;
    overflow: hidden;
}

.campaign-banner__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 72px;
    padding: 16px 24px;
    border-radius: 16px;
    border: 2px dashed var(--ph-border);
    background: var(--ph-bg);
    color: var(--ph-text);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    animation: fw-sparkle 4s ease-in-out infinite;
}

.campaign-banner__placeholder::before {
    content: '🎆';
    font-size: 1.2rem;
    opacity: 0.6;
}

.campaign-banner__placeholder:hover {
    border-color: var(--ph-border-hover);
    background: rgba(0, 146, 65, 0.04);
    color: #93b8a0;
}

.campaign-banner__image {
    display: block;
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 200px;
}

/* Compact variant for module pages */
.campaign-banner--compact .campaign-banner__placeholder {
    min-height: 52px;
    font-size: 0.82rem;
}

/* ============================================================
   § 10. PROMO SECTION — Dashboard banner slot
   ============================================================ */

.promo-section {
    margin-bottom: 22px;
}

.promo-section__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 80px;
    padding: 18px 24px;
    border-radius: 16px;
    border: 2px dashed var(--ph-border);
    background: var(--ph-bg);
    color: var(--ph-text);
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    animation: fw-sparkle 5s ease-in-out infinite;
}

.promo-section__placeholder::before {
    content: '✦';
    color: rgba(0, 146, 65, 0.5);
    font-size: 1rem;
}

.promo-section__placeholder:hover {
    border-color: var(--ph-border-hover);
    background: rgba(0, 146, 65, 0.04);
}

/* ============================================================
   § 11. CATALOG PROMO STRIP — Above product table
   ============================================================ */

.catalog-promo-strip {
    margin-bottom: 18px;
}

.catalog-promo-strip__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 22px;
    border-radius: 14px;
    border: 2px dashed var(--ph-border);
    background: var(--ph-bg);
    color: var(--ph-text);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    animation: fw-sparkle 4.5s ease-in-out infinite;
}

.catalog-promo-strip__placeholder::before {
    content: '🎇';
    font-size: 1.1rem;
    opacity: 0.65;
}

.catalog-promo-strip__placeholder:hover {
    border-color: var(--ph-border-hover);
    background: rgba(0, 146, 65, 0.04);
}

.catalog-promo-strip__image {
    display: block;
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    max-height: 120px;
}

/* ============================================================
   § 12. PRODUCT ROW THUMBNAIL — In product table
   ============================================================ */

.product-row__thumb {
    width: 64px;
    padding-right: 0 !important;
}

.product-row__thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px dashed var(--ph-border);
    background: var(--ph-bg);
    display: grid;
    place-items: center;
    color: var(--ph-text);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: border-color 0.18s ease, background-color 0.18s ease;
    cursor: pointer;
}

.product-row__thumb-placeholder:hover {
    border-color: var(--ph-border-hover);
    background: rgba(0, 146, 65, 0.06);
    color: #7ecfa0;
}

.product-row__thumb-image {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   § 13. PRODUCT HERO IMAGE — Product detail page
   ============================================================ */

.product-hero {
    margin-bottom: 18px;
}

.product-hero__image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    border: 2px dashed var(--ph-border);
    background: var(--ph-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--ph-text);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.22s ease, background-color 0.22s ease;
    animation: fw-sparkle 6s ease-in-out infinite;
}

.product-hero__image-placeholder:hover {
    border-color: var(--ph-border-hover);
    background: rgba(0, 146, 65, 0.05);
}

.product-hero__icon {
    font-size: 2.2rem;
    opacity: 0.5;
    line-height: 1;
}

.product-hero__icon-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(0, 146, 65, 0.45);
    letter-spacing: 0.06em;
}

.product-hero__label {
    font-size: 0.84rem;
    color: var(--ph-text);
}

.product-hero__sublabel {
    font-size: 0.76rem;
    color: rgba(96, 114, 134, 0.75);
}

.product-hero__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   § 14. CATALOG GRID — Product card grid layout (future use)
   Activate by replacing the table view with .catalog-grid
   ============================================================ */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.catalog-grid__card {
    border-radius: var(--radius, 18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%),
        #181e27;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-grid__card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 146, 65, 0.28);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 18px rgba(0, 146, 65, 0.12);
}

.catalog-grid__card-thumb {
    width: 100%;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 146, 65, 0.08), transparent 70%),
        rgba(255, 255, 255, 0.025);
    display: grid;
    place-items: center;
    color: rgba(0, 146, 65, 0.35);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-grid__card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.catalog-grid__card-info {
    padding: 14px 16px;
}

.catalog-grid__card-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.97rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-grid__card-sku {
    margin-top: 4px;
    color: var(--text-muted, #93a4b5);
    font-size: 0.82rem;
}

.catalog-grid__card-price {
    margin-top: 8px;
    color: #00a84a;
    font-size: 1.05rem;
    font-weight: 700;
}

.catalog-grid__card-badge {
    margin-top: 10px;
}

/* ============================================================
   § 14b. BRAND LOGO ENHANCEMENTS
   ============================================================ */

/* Brand mark — icon replaces "FW" text */
.app-brand-mark,
.sidebar__brand-mark {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #009241 0%, #00c956 60%, #00e87a 100%);
    box-shadow: 0 0 0 1px rgba(0, 200, 100, 0.25), 0 4px 14px rgba(0, 146, 65, 0.40);
}

.app-brand-mark .bi,
.sidebar__brand-mark .bi {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
    font-size: 1.25rem;
    line-height: 1;
}

/* Brand title — gradient text */
.app-brand-title,
.sidebar__brand-title {
    background: linear-gradient(90deg, #ffffff 0%, #a3d9b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

/* Brand subtitle — slightly brighter */
.app-brand-subtitle,
.sidebar__brand-subtitle {
    color: rgba(163, 217, 184, 0.60);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

/* Brand container — tighter left padding */
.app-brand,
.sidebar__brand {
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(0, 146, 65, 0.06);
    border-color: rgba(0, 146, 65, 0.18);
}

/* ============================================================
   § 14c. CHOICE CARD → COMPACT TOGGLE BUTTONS
   ============================================================ */

/* Override grid to flex row */
.choice-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px !important;
}

/* Remove the tall card style, replace with compact button style */
.choice-card-body {
    min-height: auto !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.10) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.choice-card-body::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.choice-card input:checked + .choice-card-body {
    border-color: rgba(0, 200, 100, 0.55) !important;
    background: rgba(0, 146, 65, 0.14) !important;
    box-shadow: 0 0 0 1px rgba(0, 146, 65, 0.12), 0 4px 18px rgba(0, 146, 65, 0.18) !important;
    transform: none !important;
}

.choice-card input:checked + .choice-card-body::before {
    background: #00c956;
    border-color: #00c956;
    box-shadow: 0 0 0 3px rgba(0, 200, 86, 0.22);
}

.choice-card-body strong {
    font-size: 0.92rem;
    white-space: nowrap;
}

.choice-card-body small {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(139, 154, 176, 0.9) !important;
}

.choice-card:hover .choice-card-body {
    border-color: rgba(255, 255, 255, 0.20) !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

/* ============================================================
   § 15. TABLE TEXT BRIGHTNESS — Orders & all data tables
   ============================================================ */

/* Primary cell text — bright white */
.table td,
.table th {
    color: #d0d7de;
}

/* fw-semibold lines (order code, customer name, warehouse...) */
.table td .fw-semibold {
    color: #e6edf3;
}

/* Secondary lines (small text-muted) — visible without hover */
.table td .small,
.table td small {
    color: #8b9ab0 !important;
}

/* text-end amounts — slightly warm white */
.table td.text-end {
    color: #e6edf3;
    font-variant-numeric: tabular-nums;
}

/* Date column */
.table td:has(> .text-nowrap),
.table td.text-nowrap {
    color: #a8b8cc;
}

/* Hover row — boost brightness further */
.table-hover > tbody > tr:hover > td {
    color: #f0f6fc !important;
}

.table-hover > tbody > tr:hover > td .small,
.table-hover > tbody > tr:hover > td small {
    color: #adc0d8 !important;
}

/* ============================================================
   § 15b. BOOTSTRAP ICONS SIZING OVERRIDES
   ============================================================ */

/* Nav badge icon */
.app-nav-badge .bi,
.sidebar__badge .bi {
    font-size: 1.1rem;
    line-height: 1;
    display: block;
}

/* Metric card icon */
.metric-icon .bi,
.metric-card__icon .bi {
    font-size: 1.6rem;
    line-height: 1;
    display: block;
}

/* Topbar pill icon */
.topbar-pill .bi,
.topbar__pill .bi {
    font-size: 0.82rem;
    opacity: 0.85;
}

/* Action button icon-only (no text) */
.btn .bi:only-child {
    margin: 0;
}

/* Status badge icon */
.badge .bi {
    font-size: 0.78em;
    vertical-align: -0.05em;
}

/* ============================================================
   § 16. PAGE-LEVEL BEM WRAPPERS (moved)
   ============================================================ */

.dashboard-page,
.products-page,
.orders-page,
.customers-page,
.users-page,
.warehouses-page,
.syncwp-page,
.reconciliation-page,
.auth-page {
    /* page-level scope selectors — no styles needed,
       used as BEM block scope for nested elements */
}

/* Page header BEM aliases */
.page-header__eyebrow { /* same as .eyebrow-text */ }
.page-header__title   { /* same as .page-title   */ }
.page-header__actions { /* same as .page-actions */ }

/* ============================================================
   § 17. FORM SECTION BEM WRAPPERS
   ============================================================ */

.product-form__card      { /* scoped to product create/edit form */ }
.product-form__section   { margin-bottom: 1.5rem; }
.product-form__warehouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.order-form__section   { /* scoped to order create/edit form */ }
.order-form__items     { /* order items table container      */ }
.order-form__totals    { /* grand total row                  */ }
.order-form__footer    { /* submit buttons row               */ }

/* ============================================================
   § 17. DATA TABLE BEM WRAPPERS
   ============================================================ */

.data-table-card {
    border-radius: var(--radius, 18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%),
        #181e27;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.data-table-card__body { padding: 0; }

/* Subtle row stripe enhancement on hover */
.data-table-card .table-hover > tbody > tr:hover > * {
    background: rgba(0, 146, 65, 0.04) !important;
}

/* ============================================================
   § 18. SYNC RESULT CARDS
   ============================================================ */

.sync-result-card {
    border-radius: var(--radius-sm, 12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 20px;
    transition: border-color 0.2s ease;
}

.sync-result-card:hover {
    border-color: rgba(0, 146, 65, 0.22);
}

.sync-result-card__label {
    color: var(--text-muted, #93a4b5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 8px;
}

.sync-result-card__value {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.sync-result-card__value--created { color: #66e08d; text-shadow: var(--fw-glow-brand); }
.sync-result-card__value--updated { color: #7ac7ff; text-shadow: var(--fw-glow-blue); }
.sync-result-card__value--skipped { color: var(--text-muted, #93a4b5); }

/* ============================================================
   § 19. QR PAYMENT PANEL ENHANCEMENTS
   ============================================================ */

.transfer-qr-preview {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
}

.transfer-qr-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================================
   § 20. UTILITY CLASSES (Fireworks design system)
   ============================================================ */

/* Text */
.text-brand     { color: #009241 !important; }
.text-brand-lit { color: #00e56a !important; text-shadow: var(--fw-glow-brand); }
.text-glow-blue { color: #7ac7ff !important; text-shadow: var(--fw-glow-blue); }

/* Dividers */
.divider-dark {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 20px 0;
}

/* Highlight ring */
.ring-brand {
    outline: 2px solid rgba(0, 146, 65, 0.40);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Eyebrow helper variants */
.eyebrow-text--blue   { color: #4ea8ff !important; }
.eyebrow-text--amber  { color: #f5b83d !important; }
.eyebrow-text--danger { color: #ff7b72 !important; }

/* Spacing helpers */
.gap-fw    { gap: 16px; }
.gap-fw-sm { gap: 10px; }
.gap-fw-lg { gap: 24px; }

/* ============================================================
   § 21. RESPONSIVE OVERRIDES (additions only)
   ============================================================ */

@media (max-width: 1399.98px) {
    .campaign-banner {
        margin: 0 18px 16px;
    }
}

@media (max-width: 991.98px) {
    .campaign-banner {
        margin: 0 18px 14px;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .campaign-banner {
        margin: 0 14px 12px;
    }

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

    .product-hero__image-placeholder {
        aspect-ratio: 3 / 2;
    }

    .product-form__warehouse-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 479.98px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}
