/* Custom Variables - User-Specified Color Pattern */
:root {
    --color-primary: #e69829;
    --color-primary-strong: #cb7c11;
    --color-primary-soft: #fff1dd;
    --color-accent: #102b45;
    --color-accent-soft: #e7eef6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Sticky Footer Layout */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f0f2f5;
}

main {
    flex: 1;
    flex-shrink: 0;
}

footer {
    flex-shrink: 0;
}

/* Main Navbar Styles */
.navbar {
    background-color: #102b45;
    padding: 0.25rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    min-height: auto;
}

.navbar-brand {
    color: var(--bg-light) !important;
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--color-primary) !important;
}

.navbar-nav .nav-link {
    color: var(--bg-light) !important;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-primary) !important;
}

.navbar-nav .nav-link.active {
    background-color: var(--color-primary);
    color: var(--color-accent) !important;
}

.navbar-toggler {
    border-color: var(--bg-light);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Secondary Navbar Styles */
.navbar-secondary {
    background: #fff1dd !important;
    border-bottom: 1px solid #e69829;
    padding: 0.25rem 0;
    transition: var(--transition);
    min-height: auto;
}

.navbar-secondary .navbar-nav .nav-link {
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.navbar-secondary .navbar-nav .nav-link:hover {
    background-color: var(--color-primary-soft);
    color: var(--color-primary-strong) !important;
}

.navbar-secondary .navbar-nav .nav-link.active {
    background-color: var(--color-primary);
    color: var(--bg-light) !important;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background-color: var(--bg-light);
    border: 1px solid var(--color-accent-soft);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--color-primary-soft);
    color: var(--color-primary-strong);
}

/* Search Bar Styles */
.navbar-search {
    position: relative;
    flex: 0 1 auto;
    max-width: 600px;
    width: 100%;
}

.navbar-search .input-group {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: visible;
}

.navbar-search .form-select {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-dark);
    font-weight: 500;
}

.navbar-search .form-select:focus {
    background-color: var(--bg-light);
    border-color: var(--color-primary);
    box-shadow: none;
}

.navbar-search .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-dark);
    border-radius: 0;
    transition: var(--transition);
    padding: .5rem .75rem;
}

.navbar-search .form-control::placeholder {
    color: var(--text-light);
}

.navbar-search .form-control:focus {
    background-color: var(--bg-light);
    border-color: var(--color-primary);
    box-shadow: none;
    color: var(--text-dark);
}

.navbar-search .btn-primary-custom {
    background-color: var(--color-primary);
    border: none;
    color: var(--bg-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-search .btn-primary-custom:hover {
    background-color: var(--color-primary-strong);
    color: var(--bg-light);
}

/* Secondary navbar search bar */
.navbar-secondary .navbar-search .form-control {
    background-color: var(--color-accent-soft);
    border: 1px solid var(--color-accent-soft);
    color: var(--text-dark);
}

.navbar-secondary .navbar-search .form-control::placeholder {
    color: var(--text-light);
}

.navbar-secondary .navbar-search .form-control:focus {
    background-color: var(--bg-light);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(230, 152, 41, 0.25);
    color: var(--text-dark);
}

.navbar-secondary .navbar-search .btn-search {
    color: var(--text-dark);
}

.navbar-secondary .navbar-search .btn-search:hover {
    color: var(--color-primary);
}

/* User Account/Authentication Styles */
.navbar-auth .btn {
    margin-left: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--bg-light);
}

.btn-primary-custom:hover {
    background-color: var(--color-primary-strong);
    border-color: var(--color-primary-strong);
    color: var(--bg-light);
}

.btn-outline-custom {
    background-color: transparent;
    border-color: var(--bg-light);
    color: var(--bg-light);
}

.btn-outline-custom:hover {
    background-color: var(--bg-light);
    color: var(--color-accent);
}

/* Secondary navbar auth buttons */
.navbar-secondary .btn-primary-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--bg-light);
}

.navbar-secondary .btn-primary-custom:hover {
    background-color: var(--color-primary-strong);
    border-color: var(--color-primary-strong);
}

.navbar-secondary .btn-outline-custom {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.navbar-secondary .btn-outline-custom:hover {
    background-color: var(--color-primary);
    color: var(--bg-light);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.2rem 0;
    }
    
    .navbar-secondary {
        padding: 0.2rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        border-radius: var(--border-radius);
    }
    
    .navbar-search {
        margin: 1rem 0;
        max-width: 100%;
    }
    
    .navbar-search .input-group {
        flex-direction: column;
    }
    
    .navbar-search .form-select {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        margin-bottom: 0.5rem;
    }
    
    .navbar-search .form-control {
        border-radius: 0;
        margin-bottom: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-search .btn-primary-custom {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .navbar-auth {
        margin-top: 1rem;
        text-align: center;
    }
    
    .navbar-auth .btn {
        display: block;
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* Sticky Navbar Styles */
.navbar.sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    animation: slideDown 0.3s ease;
}

.navbar-secondary.sticky {
    position: sticky;
    top: 32px; /* Height of main navbar */
    z-index: 1029;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cart Badge Styles */
.navbar-cart {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-primary);
    color: var(--bg-light);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 152, 41, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 152, 41, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 152, 41, 0);
    }
}

/* Hero Section Styles */
.hero-section {
    padding: 3rem 0;
}

.hero-stats {
    border-top: 1px solid var(--color-accent-soft);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.hero-stats h4 {
    color: var(--color-primary);
}

/* Category Cards */
.category-card .card {
    transition: var(--transition);
    cursor: pointer;
}

.category-card .card-img-top {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Product Cards */
.product-card .card {
    transition: var(--transition);
    cursor: pointer;
}

.product-card .card-img-top {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.product-card .rating {
    color: var(--color-primary);
}

.product-card .price .text-danger {
    color: var(--color-primary) !important;
}

/* Deal Cards */
.deal-card {
    transition: var(--transition);
}

.deal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Testimonial Cards */
.testimonial-card .card {
    transition: var(--transition);
    height: 100%;
}

.testimonial-card .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card .rating {
    color: var(--color-primary);
}

/* Brand Logos */
.brand-logo {
    transition: var(--transition);
    padding: 1rem;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-card .card-img-top {
        height: 150px;
    }
    
    .product-card .card-img-top {
        height: 200px;
    }
    
    .deal-card .row {
        text-align: center;
    }
    
    .deal-card img {
        margin-bottom: 1rem;
    }
}

/* ── Image Placeholders ─────────────────────────────────── */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-img-placeholder {
    height: 300px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
}

.deal-img-block {
    height: 200px;
    border-radius: var(--border-radius);
}

.deal-price {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* ── Deals Section Background ───────────────────────────── */
.deals-section {
    background-color: var(--color-primary-soft);
}

/* ── Testimonial Avatars ────────────────────────────────── */
.testimonial-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.avatar-blue  { background: linear-gradient(135deg, #102b45, #1a3d5a); }
.avatar-gold  { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong)); }
.avatar-green { background: linear-gradient(135deg, #28a745, #1e7e34); }

/* ── Brand Icon Blocks ──────────────────────────────────── */
.brand-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: var(--border-radius);
}

.brand-icon-1 { background: linear-gradient(135deg, #102b45, #1a3d5a); }
.brand-icon-2 { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong)); }
.brand-icon-3 { background: linear-gradient(135deg, #28a745, #1e7e34); }
.brand-icon-4 { background: linear-gradient(135deg, #17a2b8, #138496); }
.brand-icon-5 { background: linear-gradient(135deg, #6f42c1, #5a32a3); }
.brand-icon-6 { background: linear-gradient(135deg, #6c757d, #5a6268); }

/* ─── Seller Portal – Shared Sidebar & Layout ──────────────────────── */
.seller-sidebar {
    width: 240px;
    min-width: 240px;
    background: #102b45;
    min-height: calc(100vh - 120px);
    padding: 1.5rem 0;
    flex-shrink: 0;
}
.sidebar-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: rgba(230,152,41,0.15);
    color: #e69829;
}
.sidebar-nav li a .bi { font-size: 1rem; flex-shrink: 0; }
.sidebar-nav li a .badge-soon {
    margin-left: auto;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
}
.seller-main { flex: 1; padding: 2rem; min-width: 0; overflow-x: hidden; }
@media (max-width: 768px) {
    .seller-sidebar { display: none; }
    .seller-main    { padding: 1rem; }
}

/* ── Search Autocomplete Dropdown ────────────────────────────────────────── */
#search-suggest-box {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14);
    z-index: 9999;
    overflow: hidden;
    max-height: 440px;
    overflow-y: auto;
}
.suggest-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 14px 4px;
    background: #fff;
}
.suggest-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 14px;
    text-decoration: none;
    color: #102b45;
    transition: background 0.1s;
    border-bottom: 1px solid #f3f4f6;
}
.suggest-item:last-of-type { border-bottom: none; }
.suggest-item:hover,
.suggest-item.ss-active {
    background: #f0f7ff;
    color: #102b45;
    text-decoration: none;
}
.suggest-thumb {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #f0f2f5;
    background: #f9fafb;
}
.suggest-thumb-ph {
    width: 46px;
    height: 46px;
    background: #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #9ca3af;
}
.suggest-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}
.suggest-meta { flex: 1; min-width: 0; }
.suggest-name {
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
    color: #102b45;
}
.suggest-sub {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 1px;
}
.suggest-badge {
    font-size: 0.67rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}
.suggest-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #3b82f6;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.1s;
}
.suggest-footer:hover { background: #eff6ff; color: #1d4ed8; text-decoration: none; }
mark.ss-hl {
    background: #fef9c3;
    color: #102b45;
    border-radius: 2px;
    padding: 0 1px;
    font-weight: 700;
}

/* ── Shared Seller UI Components ─────────────────────────────────────────── */
.page-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Stat pills */
.stat-pill {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    text-align: center;
    flex: 1;
}
.stat-pill .stat-value { font-size: 1.4rem; font-weight: 800; color: #1f2937; line-height: 1; }
.stat-pill .stat-label { font-size: 0.78rem; color: #6b7280; margin-top: 0.2rem; }

/* Filter tabs */
.filter-tabs { border-bottom: 2px solid #f3f4f6; margin-bottom: 1.25rem; }
.filter-tab {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
}
.filter-tab:hover { color: #e69829; }
.filter-tab.active-tab { color: #e69829; border-bottom-color: #e69829; }

/* Action buttons */
.btn-action {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.btn-action:hover { border-color: #e69829; color: #e69829; }
.btn-action.danger:hover { border-color: #dc3545; color: #dc3545; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state-icon {
    width: 80px; height: 80px; border-radius: 20px;
    background: rgba(230,152,41,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #e69829;
    margin: 0 auto 1.5rem;
}

/* Search input */
.search-input {
    border-color: #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.85rem 0.5rem 2.25rem;
    font-size: 0.875rem;
}
.search-input:focus { border-color: #e69829; box-shadow: 0 0 0 3px rgba(230,152,41,0.12); outline: none; }
.search-wrap { position: relative; }
.search-wrap .bi-search { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: #9ca3af; }

@media (max-width: 640px) {
    .stat-pill .stat-value { font-size: 1.1rem; }
}

/* ── Account Center ────────────────────────────────────────────────────────── */
:root {
    --acct-rgb: 230, 152, 41; /* default amber — overridden per page */
}

/* Layout */
.acct-wrap { background: #f4f6f9; min-height: 100vh; }
.acct-breadcrumb { background: #fff; border-bottom: 1px solid #e8eaed; padding: 10px 0; font-size: 0.82rem; }
.acct-breadcrumb a { color: #e69829; text-decoration: none; }
.acct-breadcrumb a:hover { color: #b06a00; }

/* Sidebar */
.acct-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 24px 20px;
    text-align: center;
    position: sticky;
    top: 80px;
}
.acct-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #102b45, #1a4a70);
    color: #fff; font-size: 1.6rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
}
.acct-user-name  { font-size: 0.95rem; font-weight: 800; color: #102b45; line-height: 1.25; }
.acct-user-email { font-size: 0.75rem; color: #9ca3af; margin-top: 2px; }
.acct-member-since { font-size: 0.72rem; color: #bbb; margin-top: 3px; }
.acct-wallet-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(230,152,41,0.1); color: #b06a00;
    font-size: 0.72rem; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
    margin-top: 8px; text-decoration: none;
    transition: background 0.15s;
}
.acct-wallet-chip:hover { background: rgba(230,152,41,0.2); color: #8a5200; }
.acct-nav { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; }
.acct-nav li a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px;
    color: #374151; text-decoration: none;
    font-size: 0.85rem; font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.acct-nav li a:hover { background: #f8f9fa; color: #102b45; }
.acct-nav li a.acct-nav-active {
    background: rgba(var(--acct-rgb), 0.1);
    color: rgb(var(--acct-rgb));
}
.acct-nav li a i { width: 18px; text-align: center; font-size: 0.9rem; }
.acct-nav-badge {
    margin-left: auto;
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 7px; border-radius: 20px;
    background: rgba(230,152,41,0.12); color: #b06a00;
}
.acct-nav-divider { border-color: #f0f2f5; margin: 8px 0; }

/* Page header */
.acct-page-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    margin-bottom: 20px;
}
.acct-page-title {
    font-size: 1.25rem; font-weight: 800; color: #102b45;
    display: flex; align-items: center; gap: 8px;
    margin: 0;
}
.acct-page-title i { color: rgb(var(--acct-rgb)); }
.acct-page-count { font-size: 0.8rem; font-weight: 500; color: #9ca3af; }

/* Filter pills */
.acct-filter-pill {
    display: inline-block; padding: 0.3rem 0.9rem;
    border-radius: 20px; font-size: 0.82rem; font-weight: 600;
    border: 1.5px solid #e5e7eb; color: #6b7280;
    text-decoration: none; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.acct-filter-pill:hover { border-color: rgb(var(--acct-rgb)); color: rgb(var(--acct-rgb)); }
.acct-filter-pill.active {
    background: rgba(var(--acct-rgb), 0.1);
    border-color: rgba(var(--acct-rgb), 0.35);
    color: rgb(var(--acct-rgb));
}

/* Mobile nav strip (shown below 992px) */
.acct-mobile-nav {
    display: none;
    overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0 4px;
    margin-bottom: 4px;
    gap: 8px;
}
.acct-mobile-nav::-webkit-scrollbar { display: none; }
.acct-mobile-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    text-decoration: none; color: #6b7280;
    border: 1.5px solid #e5e7eb; white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}
.acct-mobile-nav a:hover { border-color: #e69829; color: #b06a00; }
.acct-mobile-nav a.acct-nav-active {
    background: rgba(var(--acct-rgb), 0.1);
    border-color: rgba(var(--acct-rgb), 0.35);
    color: rgb(var(--acct-rgb));
}

/* Content card */
.acct-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 20px;
}
.acct-card-body { padding: 24px 28px; }
.acct-card-head {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f2f5;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.acct-card-head:last-child { border-bottom: none; }
/* Account action buttons */
.acct-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.83rem; font-weight: 700;
    padding: 7px 16px; border-radius: 8px;
    border: 1.5px solid #e69829; color: #b06a00;
    background: transparent; text-decoration: none;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.acct-btn:hover { background: rgba(230,152,41,0.1); color: #8a5200; }
.acct-btn-filled {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.88rem; font-weight: 700;
    padding: 9px 22px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, #e69829, #cb7c11);
    color: #fff; text-decoration: none; cursor: pointer;
    transition: opacity 0.2s;
}
.acct-btn-filled:hover { opacity: 0.88; color: #fff; }

.acct-section-title {
    font-size: 1rem; font-weight: 800; color: #102b45;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 12px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.acct-section-title i { color: rgb(var(--acct-rgb)); }

/* Empty state */
.acct-empty {
    background: #fff; border-radius: 16px;
    padding: 64px 20px; text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.acct-empty-icon { font-size: 3.5rem; color: #d1d5db; display: block; margin-bottom: 14px; }
.acct-empty h5 { font-weight: 700; color: #374151; margin-bottom: 6px; }
.acct-empty p  { color: #9ca3af; font-size: 0.88rem; margin-bottom: 20px; }

@media (max-width: 991.98px) {
    .acct-sidebar { display: none; }
    .acct-mobile-nav { display: flex; }
}

/* ════════════════════════════════════════════════════════════════════
   ECOMPAY DASHBOARD — DESIGN SYSTEM
   ════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────────── */
:root {
  --ds-bg:           #f0f2f5;
  --ds-surface:      #ffffff;
  --ds-surface-2:    #f9fafb;
  --ds-surface-3:    #f3f4f6;
  --ds-border:       #e5e7eb;
  --ds-border-2:     #f3f4f6;
  --ds-text-1:       #1f2937;
  --ds-text-2:       #374151;
  --ds-text-3:       #6b7280;
  --ds-text-4:       #9ca3af;
  --ds-brand:        #e69829;
  --ds-brand-dk:     #cb7c11;
  --ds-brand-soft:   rgba(230,152,41,.1);
  --ds-brand-ring:   rgba(230,152,41,.18);
  --ds-navy:         #102b45;
  --ds-navy-2:       #1a4a70;
  --ds-shadow-sm:    0 1px 2px rgba(0,0,0,.05);
  --ds-shadow:       0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --ds-shadow-md:    0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --ds-shadow-lg:    0 8px 32px rgba(0,0,0,.1),  0 4px 8px rgba(0,0,0,.04);
  --ds-r-sm:  6px;
  --ds-r:     8px;
  --ds-r-md:  12px;
  --ds-r-lg:  14px;
  --ds-r-xl:  18px;
  --ds-navbar-h: 46px;
  /* Status colours */
  --c-paid:       #166534; --c-paid-bg:       #dcfce7; --c-paid-border:       #bbf7d0;
  --c-failed:     #991b1b; --c-failed-bg:     #fee2e2; --c-failed-border:     #fecaca;
  --c-processing: #1e40af; --c-processing-bg: #eff6ff; --c-processing-border: #bfdbfe;
  --c-created:    #9a3412; --c-created-bg:    #fff7ed; --c-created-border:    #fed7aa;
  --c-refunded:   #6b21a8; --c-refunded-bg:   #f3e8ff; --c-refunded-border:   #e9d5ff;
  --c-expired:    #6b7280; --c-expired-bg:    #f3f4f6; --c-expired-border:    #e5e7eb;
  --c-active:     #166534; --c-active-bg:     #dcfce7; --c-active-border:     #bbf7d0;
  --c-pending:    #9a3412; --c-pending-bg:    #fff7ed; --c-pending-border:    #fed7aa;
  --c-suspended:  #991b1b; --c-suspended-bg:  #fee2e2; --c-suspended-border:  #fecaca;
}

/* ── Utility weights (Bootstrap 5 only goes to fw-bold=700) ─────────── */
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

/* ── Dashboard layouts ──────────────────────────────────────────────── */
.pay-layout {
  display: flex;
  min-height: calc(100vh - var(--ds-navbar-h));
  background: var(--ds-bg);
}
.admin-layout {
  display: flex;
  min-height: calc(100vh - var(--ds-navbar-h));
  background: var(--ds-bg);
}
.pay-main,
.merchant-main,
.admin-main {
  flex: 1;
  padding: 2rem;
  min-width: 0;
  overflow-x: hidden;
}
@media (max-width: 991px) {
  .pay-main, .merchant-main, .admin-main { padding: 1.25rem 1rem; }
}

/* ── Admin Sidebar ──────────────────────────────────────────────────── */
.admin-sidebar-nav {
  width: 240px;
  background: var(--ds-navy);
  min-height: calc(100vh - var(--ds-navbar-h));
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: var(--ds-navbar-h);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.admin-sidebar-brand {
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: .25rem;
}
.admin-sidebar-section {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.25);
  padding: .85rem 1.25rem .2rem;
  display: block;
}
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 1.25rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  position: relative;
}
.admin-sidebar-link:hover {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.05);
}
.admin-sidebar-link.active {
  color: var(--ds-brand);
  background: rgba(230,152,41,.1);
  border-left-color: var(--ds-brand);
  font-weight: 700;
}
.admin-sidebar-link i { font-size: .95rem; width: 18px; text-align: center; flex-shrink: 0; }
.admin-sidebar-bottom {
  margin-top: auto;
  padding: .75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
@media (max-width: 991px) { .admin-sidebar-nav { display: none; } }

/* ── Merchant Sidebar ───────────────────────────────────────────────── */
.merchant-sidebar {
  width: 232px;
  background: var(--ds-navy);
  min-height: calc(100vh - var(--ds-navbar-h));
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: var(--ds-navbar-h);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.merchant-sidebar-head {
  padding: .875rem 1rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: .25rem;
}
.merchant-sidebar-section {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.25);
  padding: .85rem 1rem .2rem;
  display: block;
}
.merchant-sidebar-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.merchant-sidebar-link:hover {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.05);
}
.merchant-sidebar-link.active {
  color: var(--ds-brand);
  background: rgba(230,152,41,.1);
  border-left-color: var(--ds-brand);
  font-weight: 700;
}
.merchant-sidebar-link i { font-size: .95rem; width: 18px; text-align: center; flex-shrink: 0; }
.merchant-sidebar-bottom {
  margin-top: auto;
  padding: .75rem 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
@media (max-width: 991px) { .merchant-sidebar { display: none; } }

/* ── Cards ──────────────────────────────────────────────────────────── */
.pay-card {
  background: var(--ds-surface);
  border-radius: var(--ds-r-lg);
  box-shadow: var(--ds-shadow);
  overflow: hidden;
}
.pay-card-body   { padding: 1.5rem; }
.pay-card-head {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--ds-border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
/* Override old page-card to use same system */
.page-card {
  background: var(--ds-surface);
  border-radius: var(--ds-r-lg);
  box-shadow: var(--ds-shadow);
}

/* ── Enhanced Stat Pills ────────────────────────────────────────────── */
.stat-pill {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-md);
  padding: 1.1rem 1.25rem;
  text-align: center;
  flex: 1;
  min-width: 130px;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.stat-pill::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ds-brand), var(--ds-brand-dk));
  border-radius: 0 0 var(--ds-r-md) var(--ds-r-md);
  opacity: 0;
  transition: opacity .2s;
}
.stat-pill:hover { transform: translateY(-2px); box-shadow: var(--ds-shadow-md); }
.stat-pill:hover::after { opacity: 1; }
.stat-pill .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ds-text-1);
  line-height: 1.15;
  display: block;
}
.stat-pill .stat-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--ds-text-4);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .3rem;
  display: block;
}

/* ── Tables ─────────────────────────────────────────────────────────── */
.pay-table { width: 100%; border-collapse: collapse; }
.pay-table thead th {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ds-text-4);
  background: var(--ds-surface-2);
  border-bottom: 1px solid var(--ds-border);
  padding: .75rem 1rem;
  white-space: nowrap;
}
.pay-table tbody td {
  vertical-align: middle;
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--ds-border-2);
  font-size: .875rem;
  color: var(--ds-text-2);
  transition: background .1s;
}
.pay-table tbody tr:last-child td { border-bottom: none; }
.pay-table tbody tr:hover td { background: var(--ds-surface-2); }

/* ── Status Badges ──────────────────────────────────────────────────── */
.sbadge {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .26rem .7rem;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.sbadge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.sbadge-paid       { background: var(--c-paid-bg);       color: var(--c-paid);       border-color: var(--c-paid-border); }
.sbadge-failed     { background: var(--c-failed-bg);     color: var(--c-failed);     border-color: var(--c-failed-border); }
.sbadge-processing { background: var(--c-processing-bg); color: var(--c-processing); border-color: var(--c-processing-border); }
.sbadge-created    { background: var(--c-created-bg);    color: var(--c-created);    border-color: var(--c-created-border); }
.sbadge-refunded   { background: var(--c-refunded-bg);   color: var(--c-refunded);   border-color: var(--c-refunded-border); }
.sbadge-expired    { background: var(--c-expired-bg);    color: var(--c-expired);    border-color: var(--c-expired-border); }
.sbadge-active     { background: var(--c-active-bg);     color: var(--c-active);     border-color: var(--c-active-border); }
.sbadge-pending    { background: var(--c-pending-bg);    color: var(--c-pending);    border-color: var(--c-pending-border); }
.sbadge-suspended  { background: var(--c-suspended-bg);  color: var(--c-suspended);  border-color: var(--c-suspended-border); }
.sbadge-live  { background: var(--c-active-bg);     color: var(--c-active);     border-color: var(--c-active-border); }
.sbadge-test  { background: var(--c-processing-bg); color: var(--c-processing); border-color: var(--c-processing-border); }

/* ── Filter Bar / Tabs ──────────────────────────────────────────────── */
.pay-filter-bar {
  display: flex;
  align-items: center;
  gap: .2rem;
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid var(--ds-border-2);
  margin-bottom: 1rem;
}
.pay-filter-bar::-webkit-scrollbar { display: none; }
.pay-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  font-size: .83rem;
  font-weight: 600;
  color: var(--ds-text-3);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .12s, border-color .12s;
}
.pay-filter-tab:hover { color: var(--ds-brand); }
.pay-filter-tab.active { color: var(--ds-brand); border-bottom-color: var(--ds-brand); }

/* ── Breadcrumb ─────────────────────────────────────────────────────── */
.pay-breadcrumb {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--ds-text-4);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.pay-breadcrumb a { color: var(--ds-brand); text-decoration: none; font-weight: 500; transition: color .12s; }
.pay-breadcrumb a:hover { color: var(--ds-brand-dk); }
.pay-breadcrumb .sep { color: var(--ds-border); }

/* ── Page Header ────────────────────────────────────────────────────── */
.pay-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.pay-page-title  { font-size: 1.4rem; font-weight: 800; color: var(--ds-text-1); margin: 0 0 .2rem; letter-spacing: -.02em; }
.pay-page-sub    { font-size: .875rem; color: var(--ds-text-3); margin: 0; }

/* ── Search Input ───────────────────────────────────────────────────── */
.pay-search-wrap { position: relative; }
.pay-search-wrap .bi {
  position: absolute; left: .85rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ds-text-4); font-size: .9rem;
  pointer-events: none;
}
.pay-search-input {
  width: 100%;
  padding: .55rem 1rem .55rem 2.4rem;
  border: 1.5px solid var(--ds-border);
  border-radius: var(--ds-r);
  font-size: .875rem;
  color: var(--ds-text-1);
  background: var(--ds-surface);
  transition: border-color .15s, box-shadow .15s;
}
.pay-search-input:focus {
  border-color: var(--ds-brand);
  box-shadow: 0 0 0 3px var(--ds-brand-ring);
  outline: none;
}
.pay-search-input::placeholder { color: var(--ds-text-4); }

/* ── Action Buttons ─────────────────────────────────────────────────── */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  border-radius: var(--ds-r-sm);
  border: 1.5px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text-2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .12s, color .12s, background .12s;
}
.btn-action:hover { border-color: var(--ds-brand); color: var(--ds-brand); background: var(--ds-brand-soft); }
.btn-action.danger:hover { border-color: #dc3545; color: #dc3545; background: #fff5f5; }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.pay-alert {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1rem;
  border-radius: var(--ds-r);
  font-size: .875rem;
  margin-bottom: 1rem;
  border-width: 1px;
  border-style: solid;
}
.pay-alert i { flex-shrink: 0; margin-top: .1rem; }
.pay-alert-success { background: var(--c-active-bg);   color: var(--c-active);   border-color: var(--c-active-border); }
.pay-alert-danger  { background: var(--c-failed-bg);   color: var(--c-failed);   border-color: var(--c-failed-border); }
.pay-alert-warning { background: var(--c-created-bg);  color: var(--c-created);  border-color: var(--c-created-border); }
.pay-alert-info    { background: var(--c-processing-bg);color: var(--c-processing);border-color: var(--c-processing-border); }

/* ── Modals ──────────────────────────────────────────────────────────── */
.modal-content {
  border: none;
  border-radius: var(--ds-r-xl);
  box-shadow: var(--ds-shadow-lg);
}
.modal-header { padding: 1.25rem 1.5rem .5rem; border-bottom: none; }
.modal-body   { padding: 1rem 1.5rem; }
.modal-footer { padding: .5rem 1.5rem 1.25rem; border-top: none; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.pay-label {
  display: block;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ds-text-3);
  margin-bottom: .3rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--ds-brand);
  box-shadow: 0 0 0 3px var(--ds-brand-ring);
}
input[type="color"].form-control-color:focus {
  box-shadow: none;
}

/* ── Code blocks ─────────────────────────────────────────────────────── */
.pay-code {
  background: #0f172a;
  color: #a3e635;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: .82rem;
  border-radius: var(--ds-r);
  padding: .75rem 1rem;
  word-break: break-all;
  line-height: 1.65;
}

/* ── Mode badge ──────────────────────────────────────────────────────── */
.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 800;
  padding: .3rem .8rem;
  border-radius: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mode-badge::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor;
}
.mode-badge-live { background: rgba(22,163,74,.12); color: #16a34a; }
.mode-badge-test { background: rgba(107,114,128,.12); color: #6b7280; }

/* ── Mode switch link ────────────────────────────────────────────────── */
.mode-switch-btn {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  padding: .25rem .6rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--ds-r-sm);
  transition: color .12s, border-color .12s, background .12s;
}
.mode-switch-btn:hover {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.05);
}

/* ── Gateway status indicator ─────────────────────────────────────────── */
.gw-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.gw-dot-ok   { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.2); }
.gw-dot-warn { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.2); }
.gw-dot-off  { background: #d1d5db; }

/* ── Empty state ─────────────────────────────────────────────────────── */
.pay-empty { text-align: center; padding: 4rem 2rem; }
.pay-empty-icon {
  width: 72px; height: 72px;
  border-radius: var(--ds-r-xl);
  background: var(--ds-brand-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: var(--ds-brand);
  margin: 0 auto 1.25rem;
}
.pay-empty h5 { font-weight: 700; color: var(--ds-text-1); margin-bottom: .5rem; }
.pay-empty p  { color: var(--ds-text-3); font-size: .875rem; }

/* ── Legacy compatibility — used across admin + dashboard pages ─────── */
/* Status badges (old markup: class="status-badge badge-{status}") */
.status-badge { font-size:.7rem; font-weight:700; padding:.25rem .68rem; border-radius:20px; display:inline-block; letter-spacing:.04em; }
.badge-paid       { background:var(--c-paid-bg);       color:var(--c-paid);       border:1px solid var(--c-paid-border); }
.badge-failed     { background:var(--c-failed-bg);     color:var(--c-failed);     border:1px solid var(--c-failed-border); }
.badge-created    { background:var(--c-created-bg);    color:var(--c-created);    border:1px solid var(--c-created-border); }
.badge-processing { background:var(--c-processing-bg); color:var(--c-processing); border:1px solid var(--c-processing-border); }
.badge-refunded   { background:var(--c-refunded-bg);   color:var(--c-refunded);   border:1px solid var(--c-refunded-border); }
.badge-expired    { background:var(--c-expired-bg);    color:var(--c-expired);    border:1px solid var(--c-expired-border); }
.badge-active     { background:var(--c-active-bg);     color:var(--c-active);     border:1px solid var(--c-active-border); }
.badge-pending    { background:var(--c-pending-bg);    color:var(--c-pending);    border:1px solid var(--c-pending-border); }
.badge-suspended  { background:var(--c-suspended-bg);  color:var(--c-suspended);  border:1px solid var(--c-suspended-border); }
.badge-live       { background:var(--c-active-bg);     color:var(--c-active);     border:1px solid var(--c-active-border); }
.badge-test       { background:var(--c-processing-bg); color:var(--c-processing); border:1px solid var(--c-processing-border); }
.badge-processed  { background:var(--c-active-bg);     color:var(--c-active);     border:1px solid var(--c-active-border); }
.badge-initiated  { background:var(--c-processing-bg); color:var(--c-processing); border:1px solid var(--c-processing-border); }

/* Shared table styles — all page-specific table class names */
.transactions-table th, .merchants-table th, .txn-table th,
.settle-table th, .webhooks-table th, .apikeys-table th,
.admin-table th {
  font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  color:var(--ds-text-4); background:var(--ds-surface-2);
  border-bottom:1px solid var(--ds-border); padding:.75rem 1rem; white-space:nowrap;
}
.transactions-table td, .merchants-table td, .txn-table td,
.settle-table td, .webhooks-table td, .apikeys-table td,
.admin-table td {
  vertical-align:middle; padding:.875rem 1rem;
  border-bottom:1px solid var(--ds-border-2);
  font-size:.875rem; color:var(--ds-text-2);
  transition:background .1s;
}
.transactions-table tbody tr:hover td, .merchants-table tbody tr:hover td,
.txn-table tbody tr:hover td, .settle-table tbody tr:hover td,
.webhooks-table tbody tr:hover td, .apikeys-table tbody tr:hover td,
.admin-table tbody tr:hover td { background:var(--ds-surface-2); }
.transactions-table tbody tr:last-child td, .merchants-table tbody tr:last-child td,
.txn-table tbody tr:last-child td, .settle-table tbody tr:last-child td,
.webhooks-table tbody tr:last-child td, .apikeys-table tbody tr:last-child td,
.admin-table tbody tr:last-child td { border-bottom:none; }

/* Old filter-tab class still used on some pages */
.filter-tabs { border-bottom:2px solid var(--ds-border-2); margin-bottom:1.1rem; }
.filter-tab {
  display:inline-block; padding:.48rem 1rem;
  font-size:.83rem; font-weight:600; color:var(--ds-text-3);
  text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-2px;
  transition:color .12s, border-color .12s;
}
.filter-tab:hover { color:var(--ds-brand); }
.filter-tab.active-tab { color:var(--ds-brand); border-bottom-color:var(--ds-brand); }

/* Old search-wrap used in dashboard pages */
.search-wrap { position:relative; }
.search-wrap .bi-search {
  position:absolute; left:.75rem; top:50%;
  transform:translateY(-50%); color:var(--ds-text-4);
  pointer-events:none;
}
.search-input {
  border:1.5px solid var(--ds-border); border-radius:var(--ds-r);
  padding:.52rem .85rem .52rem 2.35rem; font-size:.875rem;
}
.search-input:focus {
  border-color:var(--ds-brand);
  box-shadow:0 0 0 3px var(--ds-brand-ring);
  outline:none;
}

/* Event chips used on webhooks page */
.event-chip {
  display:inline-block; background:var(--ds-surface-3);
  border-radius:6px; padding:2px 9px;
  font-size:.72rem; font-weight:600; color:var(--ds-text-2);
  margin:2px; font-family:monospace;
}
