@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── Variables ─── */
:root {
    --bg: #0e0e10;
    --bg2: #16161a;
    --bg3: #1e1e24;
    --border: #2a2a35;
    --accent: #c9a96e;
    --accent2: #e8c99a;
    --text: #f0ede8;
    --text-muted: #888899;
    --red: #e05555;
    --green: #5dbea3;
    --yellow: #d4a843;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ─── Discount badge ─── */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e05555, #c03030);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 9px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(224, 85, 85, 0.4);
}

/* ─── Offer / original price ─── */
.price-original {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
    line-height: 1;
}

.price-value.offer {
    color: #e05555;
    font-size: 1.35rem;
}

/* ─── Image skeleton loader ─── */
.card-image-skeleton {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* ─── App wrapper ─── */
.app-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ─── Header ─── */
.app-header {
    background: linear-gradient(135deg, #0a0a0f 0%, #16161f 100%);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.header-brand:hover .header-title { color: var(--accent2); }
.header-brand:hover .header-icon  { opacity: 0.8; }

.header-icon {
    font-size: 1.8rem;
    color: var(--accent);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.header-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--text);
}

.header-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.header-badge {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    padding: 4px 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 2px;
    text-transform: uppercase;
}

/* ─── Contact Us button ─── */
.contact-us-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(201,169,110,0.4);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.contact-us-btn:hover {
    background: rgba(201,169,110,0.12);
    border-color: var(--accent);
    color: var(--accent2);
}
.contact-us-btn svg { flex-shrink: 0; opacity: 0.85; }

/* ─── Main ─── */
.app-main { flex: 1; max-width: 1600px; margin: 0 auto; width: 100%; padding: 2rem; }

/* ─── Currency switcher ─── */
.currency-switcher { gap: 6px; }

.currency-btns {
    display: flex;
    gap: 4px;
}

.currency-btn {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    transition: all 0.2s;
}

.currency-btn:hover { border-color: var(--accent); color: var(--accent); }

.currency-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

.exchange-rate {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

/* ─── Stats bar ─── */
.stats-bar {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.25rem 2rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ─── Filters panel ─── */
.filters-panel {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}

.search-input::placeholder { color: var(--text-muted); }

/* Toggle */
.stock-toggle { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; user-select: none; }
.stock-toggle input { display: none; }

.toggle-track {
    width: 40px; height: 22px;
    background: var(--border);
    border-radius: 11px;
    position: relative;
    transition: background 0.3s;
}

.toggle-track::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    top: 3px; left: 3px;
    transition: left 0.3s, background 0.3s;
}

.stock-toggle input:checked + .toggle-track { background: var(--accent); }
.stock-toggle input:checked + .toggle-track::after { left: 21px; background: #fff; }
.toggle-label { font-size: 0.85rem; color: var(--text-muted); }

/* Filter selects row */
.filter-selects {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }

.filter-group label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.filter-group select {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.filter-group select:focus { border-color: var(--accent); }

.reset-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    padding: 0.55rem 1rem;
    transition: all 0.2s;
    align-self: flex-end;
}

.reset-btn:hover { border-color: var(--red); color: var(--red); }

/* ─── Results info ─── */
.results-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.results-info strong { color: var(--accent); }

/* ─── Products grid ─── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* ─── Product card ─── */
.product-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.product-card.out-of-stock { opacity: 0.55; }

/* Card image */
.card-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg3);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .card-image { transform: scale(1.05); }

.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.stock-badge.out { background: var(--red); color: #fff; }
.stock-badge.low { background: var(--yellow); color: #000; }

.gender-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 8px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(201,169,110,0.4);
    color: var(--accent2);
    border-radius: 3px;
    backdrop-filter: blur(4px);
}

/* Card body */
.card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.card-brand {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text);
    flex: 1;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.meta-pill {
    font-size: 0.62rem;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.06em;
}

.meta-pill.segment { background: rgba(201,169,110,0.12); color: var(--accent2); border: 1px solid rgba(201,169,110,0.2); }
.meta-pill.catalog { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

.card-size {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-size strong { color: var(--text); }

/* Card footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.price-block { display: flex; flex-direction: column; gap: 1px; }
.price-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.price-value { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--accent2); }
.price-value small { font-size: 0.65rem; color: var(--text-muted); }

.stock-block { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.stock-number { font-size: 1.3rem; font-weight: 600; line-height: 1; }
.stock-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.stock-block.in .stock-number { color: var(--green); }
.stock-block.low .stock-number { color: var(--yellow); }
.stock-block.none .stock-number { color: var(--red); }

/* ─── Pagination ─── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 2rem;
}

.page-btn {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    min-width: 40px;
    padding: 0.5rem 0.8rem;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ─── Loading ─── */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 6rem 2rem;
    color: var(--text-muted);
}

.spinner {
    width: 44px; height: 44px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Empty state ─── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 6rem 2rem;
    color: var(--text-muted);
}

.empty-icon { font-size: 3rem; color: var(--border); }

.empty-state button {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
}

/* ─── Footer ─── */
.app-footer {
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .app-main { padding: 1rem; }
    .stats-bar { gap: 1rem; padding: 1rem; }
    .filter-selects { gap: 0.5rem; }
    .filter-group { min-width: 140px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
}

/* ─── Header right ─── */
.header-right { display: flex; align-items: center; gap: 1rem; }

/* ─── Cart button (header) ─── */
.cart-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    font-size: 1.3rem;
    padding: 8px 14px;
    transition: all 0.2s;
}
.cart-btn:hover { border-color: var(--accent); background: rgba(201,169,110,0.08); }

.cart-btn-badge {
    position: absolute;
    top: -7px; right: -7px;
    background: var(--accent);
    color: #000;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* ─── Add to cart btn (card) ─── */
.card-right { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.add-to-cart-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 300;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.add-to-cart-btn:hover { background: var(--accent); color: #000; transform: scale(1.1); }
.add-to-cart-btn.in-cart { background: var(--accent); color: #000; font-size: 1rem; }
.add-to-cart-btn.disabled { border-color: var(--border); color: var(--text-muted); cursor: not-allowed; }
.add-to-cart-btn.disabled:hover { background: transparent; transform: none; }

/* ─── Cart overlay ─── */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 200;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── Cart drawer ─── */
.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 420px; max-width: 95vw;
    height: 100vh;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    z-index: 300;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open { transform: translateX(0); }

/* Cart header */
.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-title { display: flex; align-items: center; gap: 0.6rem; }
.cart-icon { font-size: 1.3rem; }
.cart-title h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; font-weight: 400;
    color: var(--text);
}
.cart-count-badge {
    background: var(--accent); color: #000;
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 7px; border-radius: 10px;
}
.cart-close {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 1rem; padding: 4px 8px;
    border-radius: 6px; transition: all 0.2s;
}
.cart-close:hover { background: var(--bg3); color: var(--text); }

/* Cart empty */
.cart-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.75rem; flex: 1;
    color: var(--text-muted);
}
.cart-empty-icon { font-size: 2.5rem; color: var(--border); }
.cart-empty small { font-size: 0.75rem; }

/* Cart items list */
.cart-items {
    flex: 1; overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-track { background: var(--bg2); }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Cart item */
.cart-item {
    display: flex; gap: 0.75rem; align-items: center;
    padding: 0.85rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s;
}
.cart-item:hover { border-color: var(--accent); }

.cart-item-image { width: 60px; height: 60px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--bg2); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.2rem;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-brand { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.cart-item-name {
    font-size: 0.8rem; color: var(--text); line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cart-item-price { font-size: 0.8rem; color: var(--accent2); margin-top: 3px; }

.cart-item-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }

/* Qty control */
.qty-control { display: flex; align-items: center; gap: 4px; }
.qty-btn {
    width: 24px; height: 24px;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text);
    cursor: pointer; font-size: 1rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.qty-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-value { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }

.cart-item-total { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.cart-item-remove {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 0.8rem; padding: 2px;
    transition: color 0.2s;
}
.cart-item-remove:hover { color: var(--red); }

/* Cart footer */
.cart-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 0.75rem;
    flex-shrink: 0;
}
.cart-summary { display: flex; flex-direction: column; gap: 6px; }
.cart-summary-row {
    display: flex; justify-content: space-between;
    font-size: 0.82rem; color: var(--text-muted);
}
.cart-summary-row.total {
    font-size: 1rem; color: var(--text);
    padding-top: 8px; margin-top: 4px;
    border-top: 1px solid var(--border);
}
.cart-summary-row.total strong { color: var(--accent2); font-size: 1.15rem; }

.cart-checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none; border-radius: 10px;
    color: #000; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.85rem;
    transition: opacity 0.2s, transform 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cart-checkout-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.cart-delivery-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    color: var(--text-muted);
    background: rgba(201,169,110,0.07);
    border: 1px solid rgba(201,169,110,0.18);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}
.cart-delivery-note svg { flex-shrink: 0; opacity: 0.7; color: var(--accent); }

.cart-clear-btn {
    width: 100%; background: none;
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--text-muted); cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 0.8rem;
    padding: 0.55rem; transition: all 0.2s;
}
.cart-clear-btn:hover { border-color: var(--red); color: var(--red); }

/* ─── Auth checking splash ─── */
.auth-checking {
    display: flex; align-items: center; justify-content: center;
    height: 100vh; background: var(--bg);
}
.auth-checking-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.auth-checking-icon { font-size: 2.5rem; color: var(--accent); animation: pulse 2s infinite; }

/* ─── Header user ─── */
.header-user { display: flex; align-items: center; gap: 0.6rem; }

.user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}
.user-avatar-placeholder {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--accent);
}
.user-info { display: flex; flex-direction: column; gap: 1px; }
.user-name { font-size: 0.78rem; color: var(--text); font-weight: 500; }
.user-logout {
    background: none; border: none;
    color: var(--text-muted); font-size: 0.65rem;
    cursor: pointer; padding: 0; text-align: left;
    letter-spacing: 0.05em; text-transform: uppercase;
    transition: color 0.2s;
}
.user-logout:hover { color: var(--red); }

/* ─── Login page ─── */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    position: relative; overflow: hidden;
    padding: 1rem;
}

.login-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%; max-width: 420px;
    position: relative; z-index: 1;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-icon { font-size: 2.5rem; color: var(--accent); display: block; margin-bottom: 0.75rem; }
.login-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 300;
    letter-spacing: 0.1em; color: var(--text);
}
.login-subtitle {
    font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.15em;
    margin-top: 4px;
}

.login-divider {
    border-top: 1px solid var(--border);
    text-align: center; position: relative;
    margin: 1.5rem 0;
}
.login-divider-text {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--bg2);
    font-size: 0.6rem; color: var(--accent);
    letter-spacing: 0.2em; padding: 0 10px;
}

.login-description {
    text-align: center; font-size: 0.85rem;
    color: var(--text-muted); line-height: 1.6;
    margin-bottom: 1.75rem;
}

.login-buttons { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.5rem; }

.login-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    width: 100%; padding: 0.85rem 1.5rem;
    border-radius: 12px; border: 1px solid var(--border);
    cursor: pointer; font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem; font-weight: 500;
    transition: all 0.2s; text-decoration: none;
}

.login-btn.google {
    background: #fff; color: #1a1a1a; border-color: #ddd;
}
.login-btn.google:hover { background: #f5f5f5; box-shadow: 0 4px 16px rgba(255,255,255,0.15); }

.login-btn.apple {
    background: #000; color: #fff; border-color: #333;
}
.login-btn.apple:hover { background: #1a1a1a; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }

.provider-icon { width: 20px; height: 20px; flex-shrink: 0; }

.login-notice {
    text-align: center; font-size: 0.75rem;
    color: var(--text-muted); line-height: 1.7;
}
.login-notice small { font-size: 0.68rem; }

/* ─── Login background orbs ─── */
.login-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.login-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.12;
}
.orb1 { width: 400px; height: 400px; background: var(--accent); top: -100px; left: -100px; }
.orb2 { width: 300px; height: 300px; background: #6e3fff; bottom: -80px; right: -80px; }
.orb3 { width: 200px; height: 200px; background: var(--accent2); top: 50%; left: 60%; }

/* ─── Card cart actions (add + remove) ─── */
.card-cart-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.remove-from-cart-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.remove-from-cart-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(224, 85, 85, 0.08);
    transform: scale(1.1);
}

/* ─── Order Modal ─── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 400;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 18px;
    width: 100%; max-width: 520px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    animation: slideUp 0.25s ease;
}

/* Modal header */
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-title { display: flex; align-items: center; gap: 0.6rem; }
.modal-title h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem; font-weight: 400; color: var(--text);
}
.modal-close {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 1rem; padding: 4px 8px;
    border-radius: 6px; transition: all 0.2s;
}
.modal-close:hover { background: var(--bg3); color: var(--text); }

/* Modal body */
.modal-body {
    flex: 1; overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex; flex-direction: column; gap: 1.1rem;
}
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.modal-section-label {
    font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--accent);
}

/* Items list */
.modal-items {
    display: flex; flex-direction: column; gap: 0.6rem;
    max-height: 200px; overflow-y: auto;
    padding-right: 4px;
}
.modal-item {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 0.65rem 0.85rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    gap: 0.75rem;
}
.modal-item-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.modal-item-brand {
    font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent);
}
.modal-item-name {
    font-size: 0.8rem; color: var(--text); line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modal-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.modal-item-qty { font-size: 0.72rem; color: var(--text-muted); }
.modal-item-price { font-size: 0.85rem; font-weight: 600; color: var(--accent2); }

/* Total */
.modal-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0.85rem;
    background: rgba(201,169,110,0.06);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 8px;
}
.modal-total span { font-size: 0.85rem; color: var(--text-muted); }
.modal-total strong { font-size: 1.15rem; color: var(--accent2); }

/* Fields */
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-label {
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted);
}
.modal-input, .modal-textarea {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    padding: 0.65rem 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}
.modal-input:focus, .modal-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}
.modal-input::placeholder, .modal-textarea::placeholder { color: var(--text-muted); }
.modal-error { font-size: 0.72rem; color: var(--red); }

/* Footer */
.modal-footer {
    display: flex; gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-cancel-btn {
    flex: 1; background: none;
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--text-muted); cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
    padding: 0.7rem; transition: all 0.2s;
}
.modal-cancel-btn:hover { border-color: var(--text-muted); color: var(--text); }

.modal-send-btn {
    flex: 2;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none; border-radius: 10px;
    color: #000; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem; font-weight: 600;
    padding: 0.7rem 1.2rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: opacity 0.2s, transform 0.2s;
}
.modal-send-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ─── User links ─── */
.user-links { display: flex; align-items: center; gap: 4px; }
.user-sep { font-size: 0.6rem; color: var(--border); }
.user-profile-link {
    font-size: 0.65rem; color: var(--accent);
    text-decoration: none; text-transform: uppercase;
    letter-spacing: 0.08em; transition: opacity 0.2s;
}
.user-profile-link:hover { opacity: 0.7; }

/* ─── Profile page ─── */
.profile-page {
    max-width: 620px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 1.5rem;
    padding-bottom: 3rem;
}
.profile-header { margin-bottom: 0.5rem; }
.profile-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 300; color: var(--text);
}
.profile-subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Settings card */
.settings-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.settings-card-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-muted);
    font-weight: 500;
}

/* User row */
.settings-user-row { display: flex; align-items: center; gap: 1rem; }
.settings-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    border: 2px solid var(--accent); object-fit: cover; flex-shrink: 0;
}
.settings-avatar-placeholder {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); color: #000;
    font-size: 1.3rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.settings-user-name { font-size: 1rem; font-weight: 500; color: var(--text); }
.settings-user-email { font-size: 0.8rem; color: var(--text-muted); }
.settings-provider-badge {
    font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 2px 8px; border-radius: 4px;
    background: rgba(201,169,110,0.12); color: var(--accent);
    border: 1px solid rgba(201,169,110,0.2);
    display: inline-block; margin-top: 4px;
}

/* Method toggle */
.send-method-toggle { display: flex; flex-direction: column; gap: 0.6rem; }
.method-btn {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: var(--bg3); border: 1.5px solid var(--border);
    border-radius: 10px; cursor: pointer; text-align: left;
    transition: all 0.2s; width: 100%;
}
.method-btn:hover { border-color: var(--accent); }
.method-btn.active { border-color: var(--accent); background: rgba(201,169,110,0.06); }
.method-icon { font-size: 1.3rem; flex-shrink: 0; }
.method-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.method-name { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.method-desc { font-size: 0.72rem; color: var(--text-muted); }
.method-check { flex-shrink: 0; }

/* SMTP notice */
.smtp-notice {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    background: rgba(201,169,110,0.06);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 8px;
    font-size: 0.75rem; color: var(--text-muted);
}
.smtp-notice code {
    background: var(--bg3); padding: 1px 5px;
    border-radius: 4px; font-size: 0.72rem; color: var(--accent2);
}

/* Saved indicator */
.settings-saved {
    display: flex; align-items: center; gap: 0.5rem;
    justify-content: center;
    font-size: 0.78rem; color: var(--green);
    animation: fadeIn 0.3s ease;
}

/* Modal method indicator */
.modal-method-indicator {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0.85rem;
    border-radius: 8px; font-size: 0.78rem;
}
.modal-method-indicator.mailto { background: rgba(93,190,163,0.08); color: var(--green); border: 1px solid rgba(93,190,163,0.2); }
.modal-method-indicator.smtp   { background: rgba(201,169,110,0.08); color: var(--accent); border: 1px solid rgba(201,169,110,0.2); }
.modal-method-change {
    font-size: 0.68rem; color: var(--text-muted);
    text-decoration: underline; cursor: pointer;
}
.modal-method-change:hover { color: var(--accent); }

/* Modal status */
.modal-status {
    padding: 0.6rem 0.9rem; border-radius: 8px;
    font-size: 0.8rem; text-align: center;
}
.modal-status.success { background: rgba(93,190,163,0.1); color: var(--green); border: 1px solid rgba(93,190,163,0.2); }
.modal-status.error   { background: rgba(224,85,85,0.1);   color: var(--red);   border: 1px solid rgba(224,85,85,0.2); }

/* Spinner small */
.spinner-sm {
    width: 16px; height: 16px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ─── Login no provider warning ─── */
.login-no-provider {
    background: rgba(224,85,85,0.08);
    border: 1px solid rgba(224,85,85,0.25);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    text-align: center;
    color: var(--red);
    font-size: 0.82rem;
    line-height: 1.6;
}
.login-no-provider small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.72rem; }
.login-no-provider code {
    background: var(--bg3); padding: 1px 5px;
    border-radius: 4px; font-size: 0.7rem; color: var(--accent2);
}

/* ─── Login guest button ─── */
.login-btn.guest {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.login-btn.guest:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201,169,110,0.05);
}

/* ─── Login separator ─── */
.login-separator {
    display: flex; align-items: center; gap: 0.75rem;
    color: var(--text-muted); font-size: 0.75rem;
}
.login-separator::before,
.login-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ─── Stripe payment button ─── */
.cart-stripe-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.85rem 1.2rem;
    background: #635bff;
    color: #fff;
    border: none; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 0.5rem;
}
.cart-stripe-btn:hover:not(:disabled) { background: #5247e5; }
.cart-stripe-btn:active:not(:disabled) { transform: scale(0.98); }
.cart-stripe-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.cart-stripe-btn--disabled {
    background: #2a2a35 !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border);
}

.cart-stripe-error {
    font-size: 0.78rem; color: var(--red, #e05555);
    background: rgba(224,85,85,0.08);
    border: 1px solid rgba(224,85,85,0.2);
    border-radius: 6px; padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

/* ─── Commande succès page ─── */
.success-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; background: var(--bg1, #0e0e10);
}
.success-card {
    text-align: center;
    background: var(--bg2, #14141a);
    border: 1px solid var(--border, rgba(201,169,110,0.15));
    border-radius: 16px; padding: 3rem 2.5rem;
    max-width: 420px; width: 90%;
}
.success-icon {
    font-size: 3rem; color: var(--accent, #c9a96e);
    margin-bottom: 1rem;
}
.success-card h1 {
    font-size: 1.5rem; color: var(--text, #e8e0d0);
    margin-bottom: 0.75rem;
}
.success-card p {
    color: var(--text-muted, #7a7a8a); margin-bottom: 2rem;
}
.success-back-btn {
    padding: 0.75rem 2rem;
    background: var(--accent, #c9a96e); color: #0e0e10;
    border: none; border-radius: 8px;
    font-weight: 700; font-size: 0.9rem; cursor: pointer;
    transition: opacity 0.2s;
}
.success-back-btn:hover { opacity: 0.85; }

/* ── Bouton bilan de vente ── */
.bilan-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.4rem;
    background: #1e2d3d;
    color: #7ec8e3;
    border: 1px solid #2e4a63;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 0.75rem;
    width: 100%;
    justify-content: center;
}
.bilan-btn:hover:not(:disabled) {
    background: #253d52;
    border-color: #4a7a9b;
}
.bilan-btn:disabled {
    opacity: 0.6;
    cursor: default;
}
.bilan-locked {
    color: #8a9bac;
    border-color: #2a3a4a;
    background: #161e26;
}
.bilan-locked:hover {
    background: #1e2d3d !important;
    border-color: #3a5a7a !important;
}

/* ── Formulaire PIN admin ── */
.pin-form {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    width: 100%;
}
.pin-input {
    flex: 1;
    background: #1a1a24;
    border: 1px solid #2e3e4e;
    border-radius: 7px;
    color: var(--text, #f0ede8);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    outline: none;
    letter-spacing: 0.15em;
}
.pin-input:focus {
    border-color: #4a7a9b;
}
.pin-confirm-btn {
    background: #4a7a9b;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.pin-confirm-btn:hover:not(:disabled) { background: #5a8aab; }
.pin-confirm-btn:disabled { opacity: 0.6; cursor: default; }
.pin-cancel-btn {
    background: transparent;
    color: var(--text-muted, #888);
    border: 1px solid #2e2e3e;
    border-radius: 7px;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    transition: color 0.2s;
}
.pin-cancel-btn:hover { color: var(--red, #e05555); }
.pin-error {
    color: var(--red, #e05555);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* ════════════════════════════════════════
   Page Bilan Admin (/bilan)
   ════════════════════════════════════════ */
.bilan-admin-page {
    min-height: 100vh;
    background: var(--bg, #0e0e10);
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

/* ── Écran login PIN ── */
.bilan-login-card {
    background: var(--bg2, #16161a);
    border: 1px solid var(--border, #2a2a35);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    align-self: flex-start;
    margin-top: 8vh;
}
.bilan-login-icon {
    color: var(--accent, #c9a96e);
    margin-bottom: 1.25rem;
}
.bilan-login-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--text, #f0ede8);
    margin-bottom: 0.5rem;
}
.bilan-login-card p {
    color: var(--text-muted, #888);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.bilan-login-card .pin-form {
    width: 100%;
}

/* ── Dashboard ── */
.bilan-dashboard {
    width: 100%;
    max-width: 960px;
}
.bilan-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.bilan-dashboard-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text, #f0ede8);
    margin: 0 0 0.25rem;
}
.bilan-subtitle {
    color: var(--text-muted, #888);
    font-size: 0.85rem;
    margin: 0;
}
.bilan-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.bilan-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.25rem;
    background: var(--accent, #c9a96e);
    color: #0e0e10;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.bilan-download-btn:hover:not(:disabled) { opacity: 0.85; }
.bilan-download-btn:disabled { opacity: 0.6; cursor: default; }
.bilan-clear-btn {
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--text-muted, #888);
    border: 1px solid var(--border, #2a2a35);
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.bilan-clear-btn:hover { color: var(--red, #e05555); border-color: var(--red, #e05555); }

/* ── Stat cards ── */
.bilan-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.bilan-stat-card {
    background: var(--bg2, #16161a);
    border: 1px solid var(--border, #2a2a35);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.bilan-stat-card.accent {
    border-color: var(--accent, #c9a96e);
    background: #1e1a12;
}
.bilan-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.bilan-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text, #f0ede8);
}
.bilan-stat-card.accent .bilan-stat-value { color: var(--accent, #c9a96e); }

/* ── Blocs commande ── */
.bilan-order-block {
    background: var(--bg2, #16161a);
    border: 1px solid var(--border, #2a2a35);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.bilan-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--bg3, #1e1e24);
    border-bottom: 1px solid var(--border, #2a2a35);
}
.bilan-order-date  { font-size: 0.85rem; color: var(--accent, #c9a96e); font-weight: 600; }
.bilan-order-count { font-size: 0.8rem; color: var(--text-muted, #888); }
.bilan-order-devise {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    text-transform: uppercase;
}
.bilan-devise-eur { background: rgba(91,158,255,0.18); color: #5b9eff; }
.bilan-devise-ron { background: rgba(201,169,110,0.18); color: var(--accent, #c9a96e); }

/* ── Sections devises ── */
.bilan-currency-section {
    margin-bottom: 2rem;
}
.bilan-currency-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius, 12px) var(--radius, 12px) 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0;
}
.bilan-currency-eur {
    background: rgba(91,158,255,0.12);
    border: 1px solid rgba(91,158,255,0.25);
    color: #8ab8ff;
}
.bilan-currency-ron {
    background: rgba(201,169,110,0.12);
    border: 1px solid rgba(201,169,110,0.25);
    color: var(--accent, #c9a96e);
}
.bilan-currency-header svg { opacity: 0.8; flex-shrink: 0; }
.bilan-currency-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.75;
}

/* ── Tableau ── */
.bilan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.bilan-table th {
    text-align: left;
    padding: 0.6rem 1rem;
    color: var(--text-muted, #888);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border, #2a2a35);
}
.bilan-table td {
    padding: 0.65rem 1rem;
    color: var(--text, #f0ede8);
    border-bottom: 1px solid rgba(42,42,53,0.5);
    vertical-align: middle;
}
.bilan-table tfoot td {
    font-weight: 700;
    color: var(--accent, #c9a96e);
    border-top: 1px solid var(--border, #2a2a35);
    border-bottom: none;
}
.bilan-brand { display: block; font-size: 0.75rem; color: var(--text-muted, #888); }
.bilan-name  { display: block; font-weight: 500; }
.bilan-size  { display: inline-block; margin-top: 2px; font-size: 0.72rem; color: var(--text-muted); background: var(--bg3, #1e1e24); padding: 1px 6px; border-radius: 4px; }
.bilan-total-half { color: var(--accent, #c9a96e); font-weight: 600; }
.bilan-subtotal-label { color: var(--text-muted, #888); font-style: italic; }
.bilan-marge-pos { color: var(--green, #5dbea3); font-weight: 600; }
.bilan-marge-neg { color: var(--red,   #e05555); font-weight: 600; }

.bilan-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted, #888);
}
.bilan-empty p { font-size: 1.1rem; margin-bottom: 0.5rem; }
.bilan-empty small { font-size: 0.85rem; }
