body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.top-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;  
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.top-admin .nav-actions a {
    color: rgba(255,255,255,0.9);
    margin-left: 0.75rem;
    text-decoration: none;
}
.top-admin .brand { gap: .5rem }
.top-admin .brand > div { line-height:1 }
.top-admin .nav-actions { gap:.6rem }
.top-admin .nav-actions a, .top-admin .nav-actions i { font-size:1.1rem }
.main-content {
    padding: 2rem;
}
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}
.voucher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.voucher-card {
    border: 1px solid #e6e9ef;
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
}
.voucher-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    position: relative;
}
.voucher-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg,#fbfdff 0%, #f8fafc 100%);
}
.img-top-wrap::after{
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 56%;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(10,14,20,0.06) 100%);
    pointer-events: none;
}
.img-top-wrap .validity-pill{ position:absolute; left:12px; top:12px }
.voucher-card .card-body { padding: 1rem 1rem 1.1rem 1rem; }
.voucher-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#fbfdff 0%, #f8fafc 100%);
    color: #374151;
    font-weight: 700;
    text-align: center;
    padding: 0.5rem;
    font-size: 1rem;
}
.voucher-card .img-top-wrap{ position: relative; }
.overlay-name{ position:absolute; left:12px; bottom:12px; color:white; font-weight:700; text-shadow:0 1px 3px rgba(0,0,0,0.5); }
.overlay-status{ position:absolute; right:12px; top:12px; padding:6px 10px; border-radius:999px; font-size:.8rem }
.overlay-status.enabled{ background: linear-gradient(135deg,#0ea5a4,#10b981); color:white }
.overlay-status.disabled{ background: linear-gradient(135deg,#e6e6e6,#f3f4f6); color:#374151; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.voucher-card .card-body small.status-line{ color:#374151; font-weight:600 }
.denom-buttons{ margin-top:6px; margin-bottom:12px; display:flex; flex-wrap:wrap; gap:8px }
.denom-buttons .btn{ border-radius:999px; padding:.35rem .6rem; transition: all .12s ease; border-width:1px }
.denom-buttons .btn.btn-outline-secondary{ background:transparent; color:#111827 }
.denom-buttons .btn.btn-selected{ background: linear-gradient(180deg,#0b1220 0%, #0f1724 100%); color: #ffffff; border-color: #0b1220; box-shadow: 0 4px 12px rgba(2,6,23,0.25) }
.validity-container{ display:flex; align-items:center; gap:8px }
.validity-pill{ padding:6px 10px; border-radius:999px; background:linear-gradient(180deg,#ffffff,#fbfdff); border:1px solid #e6eefb; font-size:.9rem; cursor:pointer }
.validity-pill.empty{ color:#6b7280; background:transparent; border:1px dashed #e6e9ef }
.voucher-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
}
.voucher-active {
    background-color: #d4edda;
    color: #155724;
}
.voucher-inactive {
    background-color: #f8d7da;
    color: #721c24;
}
.designation-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.25rem;
    font-weight: 500;
}
.cat-seasonal{ background: linear-gradient(90deg,#fff4e6,#fff7ed); color:#92400e }
.cat-celebration{ background: linear-gradient(90deg,#eef2ff,#f8f0ff); color:#3730a3 }
.cat-general{ background: linear-gradient(90deg,#eefcf3,#f6fffa); color:#065f46 }
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.stats-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #667eea;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.stats-card h6 {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.stats-card .number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}
.denomination-check {
    margin-right: 1rem;
}
table {
    font-size: 0.95rem;
}
th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
}
.action-icons {
    gap: 0.5rem;
}
.toggle-switch {
    cursor: pointer;
}

/* Flatpickr overrides */
.flatpickr-calendar { max-width:320px !important; font-size:14px }
.flatpickr-calendar.open { z-index: 99999 }
.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowBottom:before { display:none }

/* Stats page specific */
.stats-header{padding:1rem 1.25rem;background:linear-gradient(135deg,#667eea,#764ba2);color:white;border-radius:.5rem;margin-bottom:1rem}
.card {box-shadow:0 4px 18px rgba(13,23,36,0.06)}
.chart-wrap{height:320px}

/* Client page specific styles (hero, filters, client cards) */
.client-hero{ display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:1.25rem }
.client-hero .left{ width:100% }
.page-kicker{ padding:8px 0; margin-bottom:8px }
.page-kicker .kicker{ font-weight:700; color:#f97316; display:flex; align-items:center; gap:.5rem }
.client-hero{ margin-bottom:1.5rem }
.client-hero .hero-main .left{ width:100% }
.voucher-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap:1rem; width:100% }
.voucher-card{ box-sizing:border-box }
.cart-pill{ white-space:nowrap; padding:.4rem .75rem; min-width:90px; justify-content:center }

@media (max-width: 992px){
    .voucher-grid{ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 576px){
    .client-hero .hero-main{ flex-direction:column; gap:1rem }
    .hero-actions{ align-items:flex-start }
}
.client-hero .kicker{ display:flex; align-items:center; gap:.5rem; color:#f97316; font-weight:700; margin-bottom:.5rem }
.client-hero h1{ font-size:2.5rem; margin:0 0 .5rem 0; line-height:1.05; font-weight:800 }
.client-hero p.lead{ color:#6b7280; margin:0 0 .75rem 0 }
.denom-filter{ display:flex; gap:.5rem; margin-top:.5rem }
.denom-filter .btn{ border-radius:999px; padding:.45rem .75rem; background:white; border:1px solid #e6e9ef }
.hero-actions{ display:flex; gap:.75rem; align-items:center }
.btn-ghost{ background:white; border:1px solid #e6e9ef; color:#111827 }
.cart-pill{ display:inline-flex; align-items:center; gap:.5rem; padding:.4rem .6rem; border-radius:999px; background:white; box-shadow:0 6px 18px rgba(13,23,36,0.06) }

/* Cart drawer styles */
.cart-drawer { position:fixed; inset:0; display:none; z-index:1050 }
.cart-drawer.open { display:block }
.cart-drawer-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,0.5); cursor:pointer }
.cart-drawer-panel{ position:absolute; right:0; top:0; height:100vh; width:420px; max-width:90vw; background:white; box-shadow:-10px 0 40px rgba(0,0,0,0.15); display:flex; flex-direction:column; animation:slideIn 0.3s ease }
@keyframes slideIn { from { transform:translateX(100%) } to { transform:translateX(0) } }
.cart-drawer-header { padding:1.25rem; border-bottom:1px solid #e5e7eb; background:linear-gradient(135deg,#f3f4f6,#ffffff) }
.cart-drawer-header h5 { color:#111827; font-weight:700; font-size:1.25rem }
.cart-drawer-header .btn-ghost { color:#6b7280; font-size:1.25rem; padding:0.25rem 0.5rem; line-height:1 }
.cart-drawer-items { flex:1; overflow-y:auto; padding:1rem; display:flex; flex-direction:column; gap:0.75rem }
.cart-drawer-items .list-group { display:contents }
.cart-drawer-items .list-group-item { display:grid; grid-template-columns:1fr auto; gap:0.75rem; align-items:start; padding:1rem; background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; transition:all 0.2s }
.cart-drawer-items .list-group-item:hover { background:#f3f4f6; border-color:#d1d5db }
.cart-drawer-items .list-group-item > div:first-child { display:flex; flex-direction:column; gap:0.25rem }
.cart-drawer-items .list-group-item > div:first-child > div:first-child { font-weight:600; color:#111827; font-size:0.95rem }
.cart-drawer-items .list-group-item > div:first-child > div:last-child { color:#6b7280; font-size:0.85rem }
.cart-drawer-items .list-group-item > div:last-child { display:flex; flex-direction:column; align-items:flex-end; gap:0.5rem }
.cart-drawer-items .qty-control { display:inline-flex; align-items:center; gap:0.25rem; background:white; border:1px solid #d1d5db; border-radius:6px }
.cart-drawer-items .qty-control button { background:none; border:none; width:28px; height:28px; display:flex; align-items:center; justify-content:center; cursor:pointer; font-weight:600; color:#6b7280; transition:color 0.2s }
.cart-drawer-items .qty-control button:hover { color:#111827 }
.cart-drawer-items .qty-control button:active { transform:scale(0.95) }
.cart-drawer-items .btn-remove { background:none; border:none; color:#ef4444; cursor:pointer; font-size:0.85rem; font-weight:600; padding:0.25rem; transition:color 0.2s }
.cart-drawer-items .btn-remove:hover { color:#dc2626 }
.cart-drawer-footer { padding:1.25rem; border-top:2px solid #e5e7eb; background:#f9fafb; display:flex; flex-direction:column; gap:1rem }
.cart-summary { background:white; padding:1rem; border-radius:8px }
.cart-total-line { height:1px; background:#e5e7eb; margin:0.5rem 0 }
.btn-checkout { width:100%; padding:0.875rem; font-weight:600; background:linear-gradient(135deg,#f59e0b,#f97316); border:none; font-size:1rem }
.btn-checkout:hover { background:linear-gradient(135deg,#f8b500,#f77f00) }
.btn-block { width:100% }

/* Peach header area inside cards */
.card-peach{ background: linear-gradient(135deg,#fbfdff 0%, #f8fafc 100%); padding:0; height:200px; position:relative; display:flex; flex-direction:column; justify-content:flex-end }
.card-peach .initial-badge{ width:36px; height:36px; border-radius:999px; background:rgba(0,0,0,0.06); display:inline-flex; align-items:center; justify-content:center; font-weight:700; color:#1f2937; position:absolute; left:16px; top:16px }
.card-peach .valid-pill{ position:absolute; left:16px; top:16px; transform:translateY(-8px); background:#111827; color:white; padding:6px 10px; border-radius:999px; font-size:.8rem }
.card-peach .title{ font-size:1.25rem; font-weight:800; color:#111827; text-align:left; margin-left:16px }

.card-body .card-title{ font-weight:700; margin-top:.5rem }
.card-actions{ display:flex; align-items:center; gap:.5rem; margin-top:.75rem }
.qty-control{ display:inline-flex; align-items:center; gap:.5rem; border:1px solid #e6e9ef; padding:.15rem .45rem; border-radius:8px }
.qty-control button{ border:none; background:transparent; padding:.1rem .45rem }
.add-to-cart{ background: linear-gradient(180deg,#f59e0b,#f97316); color:white; border:none; padding:.5rem .85rem; border-radius:8px }
.denom-buttons .btn{ background:white; border:1px solid #e6e9ef }

@media (max-width: 768px){ .client-hero h1{ font-size:1.6rem } .client-hero{ flex-direction:column; align-items:flex-start } }
