/* CSS Variables - ShopYagi Brand Palette */
:root {
    --primary: #ff7337;
    --primary-dark: #e65c1e;
    --primary-light: #fff5f0;
    --primary-muted: #ffe0d1;
    --secondary: #555;
    --warning: #ff7337;
    --danger: #dc3545;
    --success: #ff7337;
    --info: #ff7337;
    --bg: #ffffff;
    --text: #333333;
    --text-muted: #777;
    --border: #e0e0e0;
    --card-bg: #ffffff;
    --light: #f5f5f5;
    --dark: #212529;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}































/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    overflow-x: clip;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a,
button,
.btn,
.nav-link {
    -webkit-tap-highlight-color: transparent;
}

main {
    flex: 1;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.main-header .navbar-nav {
    align-items: center;
    gap: 2px;
}

.main-header .nav-link,
.main-header .navbar-text {
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #ffffff;
    padding: 1.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

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

.footer-logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.user-balance,
.user-menu {
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 80px 0;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-hero {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Search Container */
.search-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-input {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    color: #333;
}

.search-input::placeholder {
    color: #666;
}

.search-input:focus {
    background: white;
    color: #333;
    border: none;
    box-shadow: none;
}

.btn-search {
    background: var(--primary);
    border: none;
    color: white;
    padding: 15px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: var(--primary-dark);
    color: white;
}

/* Main Content - Keep Bootstrap container horizontal padding intact! */
.main-content {
    padding-top: 32px;
    padding-bottom: 32px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--warning));
    border-radius: 2px;
}

.section-header p {
    color: var(--text);
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Cards - Unified Card & Line Language (adapted from shopyagi in ShopYagi Orange) */
.card {
    background: #ffffff;
    border: 1px solid #e6e2de;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.card-header {
    background: #fafafa !important;
    border-bottom: 1px solid #eaeaea !important;
    padding: 14px 20px;
    min-height: 54px;
}

.card-header h4,
.card-header h5,
.card-header h6 {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 700;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-header h4 i,
.card-header h5 i,
.card-header h6 i {
    color: var(--primary);
}

.card-body {
    padding: 20px;
}

.card-notice-bar {
    padding: 12px 20px;
    background: #fff8f3;
    border-bottom: 1px solid #f5dfd2;
    color: #475569;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-notice-bar i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.card-toolbar {
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Underline Sub-tabs (Blog sub-tabs / Deposit method) */
.deposit-method-tabs {
    display: flex;
    flex-wrap: nowrap !important;
    border-bottom: 1px solid #eaeaea;
    background: #ffffff;
    padding: 0 20px;
    margin: 0;
    list-style: none;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.deposit-method-tabs::-webkit-scrollbar {
    display: none;
}

.deposit-method-tabs .nav-item {
    margin-bottom: -1px;
    flex-shrink: 0;
}

.deposit-method-tabs .nav-link {
    border: none !important;
    border-bottom: 2.5px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.deposit-method-tabs .nav-link:hover {
    color: #1f2937 !important;
}

.deposit-method-tabs .nav-link.active {
    background: transparent !important;
    color: var(--primary-dark) !important;
    border-bottom: 2.5px solid var(--primary) !important;
}

.deposit-method-tabs .nav-link.active i {
    color: var(--primary) !important;
}

.quick-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-quick-amount {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 9px !important;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.btn-quick-amount:hover {
    border-color: var(--primary) !important;
    color: var(--primary-dark) !important;
    background: var(--primary-light) !important;
}

.btn-quick-amount.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(255, 115, 55, 0.28);
}

.qr-hero-box {
    padding: 12px;
    border: 1px solid #f1dfd5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    display: inline-block;
}

.qr-hero-box img {
    width: 265px;
    max-width: 100%;
    height: auto;
    display: block;
}

.btn-copy-clean {
    background: #ffffff;
    border: 1px solid #d5d5d5;
    color: #334155;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-copy-clean:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: var(--primary-light);
}

.badge-gateway {
    background: #fff1e8;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-status-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}

.card-table-flush {
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.card-table-flush .table {
    margin-bottom: 0;
}

.card-table-flush .table th {
    background: #fafafa !important;
    color: #334155;
    border-bottom: 1px solid #e5e7eb !important;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 12px 16px;
    white-space: nowrap;
}

.card-table-flush .table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.card-table-flush .table tbody tr:last-child td {
    border-bottom: none;
}

.card-table-flush .table td .btn-group,
.card-table-flush .table td .d-flex {
    flex-wrap: nowrap !important;
}

.card-table-flush .table td .btn {
    white-space: nowrap;
}

.info-list-flush {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.info-list-row:last-child {
    border-bottom: none;
}

.info-list-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.info-list-value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-empty-state {
    padding: 44px 20px;
    text-align: center;
    color: #64748b;
}

.card-empty-state > i {
    font-size: 2.6rem;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: block;
}

/* Compact Floating Flash Toast (replaces full-width page-pushing banner) */
.yagi-flash-stack {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 1085;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}

.yagi-flash-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    animation: yagiToastIn 0.22s ease-out;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.yagi-flash-toast.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.yagi-flash-toast.toast-success {
    border-left-color: #16a34a;
}

.yagi-flash-toast.toast-success .yagi-flash-icon {
    color: #16a34a;
}

.yagi-flash-toast.toast-danger {
    border-left-color: #dc3545;
}

.yagi-flash-toast.toast-danger .yagi-flash-icon {
    color: #dc3545;
}

.yagi-flash-toast.toast-info,
.yagi-flash-toast.toast-warning {
    border-left-color: var(--primary);
}

.yagi-flash-toast.toast-info .yagi-flash-icon,
.yagi-flash-toast.toast-warning .yagi-flash-icon {
    color: var(--primary);
}

.yagi-flash-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.yagi-flash-text {
    flex: 1 1 auto;
}

.yagi-flash-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.yagi-flash-close:hover {
    color: #334155;
    background: #f1f5f9;
}

@keyframes yagiToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .yagi-flash-stack {
        top: 66px;
        right: 12px;
        left: 12px;
        max-width: none;
        align-items: center;
    }
    .yagi-flash-toast {
        width: auto;
        max-width: 100%;
    }
}

.btn-back-home {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #d5d5d5 !important;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-back-home:hover {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    border-color: var(--primary) !important;
}

/* Product & Category Cards */
.product-card,
.category-card,
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (hover: hover) {
    .product-card:hover,
    .category-card:hover,
    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: var(--primary);
    }
}

.product-card:active,
.blog-card:active {
    transform: scale(0.99);
}

.product-image,
.blog-image {
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.product-image img,
.blog-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 6px;
}

.product-card:hover .product-image img,
.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.product-info,
.blog-info {
    padding: 0.85rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h6,
.blog-info h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info p,
.blog-info p {
    color: var(--text);
    opacity: 0.8;
    font-size: 0.82rem;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-footer,
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category,
.product-footer .category,
.blog-meta .category {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.product-price-row .text-primary {
    font-size: 0.85rem;
}

.product-price-row .btn {
    border-radius: 16px;
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
}

/* Category Icons */
.category-icon,
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.category-icon i,
.service-icon i {
    font-size: 2rem;
    color: white;
}

.category-card:hover .category-icon,
.service-card:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--warning), #F57C00);
}

/* Services Section */
.services-section {
    background: var(--light);
    padding: 60px 0;
    margin: 80px -15px;
    border-radius: 20px;
}

.service-card {
    background: var(--card-bg);
    border: none;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-dark), #bf360c);
}

.service-content h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.main-footer h5,
.main-footer h6 {
    color: var(--primary);
    margin-bottom: 20px;
}

.main-footer ul {
    list-style: none;
}

.main-footer ul li {
    margin-bottom: 8px;
}

.main-footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer ul li a:hover {
    color: var(--primary);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--warning);
    transform: translateY(-2px);
}

/* Forms */
.form-control {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--card-bg);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 0.2rem rgba(255, 115, 55, 0.25);
}

.form-control::placeholder {
    color: var(--text);
    opacity: 0.6;
}

.form-select {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 115, 55, 0.2);
}

/* Modals */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid var(--border);
}

.modal-footer {
    border-top: 1px solid var(--border);
}

.modal-title {
    color: var(--text);
}

/* Tables */
.table {
    color: var(--text);
}

.table th {
    color: var(--text);
    border-color: var(--border);
    font-weight: 600;
}

.table td {
    border-color: var(--border);
}

.table-striped>tbody>tr:nth-of-type(odd)>td {
    background: var(--light);
}

/* Dropdowns */
.dropdown-menu {
    background: var(--card-bg);
    border-color: var(--border);
}

.dropdown-item {
    color: var(--text);
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--text);
}

/* Nav Tabs - Single-Row Unified Admin & Customer Bar across all screen widths */
#adminTabs,
#customerTabs {
    margin: 20px 24px 20px 24px !important;
    padding-bottom: 8px;
    gap: 5px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-padding-inline: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#adminTabs::-webkit-scrollbar,
#customerTabs::-webkit-scrollbar {
    display: none;
}

#adminTabs .nav-item,
#customerTabs .nav-item {
    flex-shrink: 0;
}

#adminTabsContent,
#customerTabsContent {
    margin-left: 24px;
    margin-right: 24px;
}

#adminTabsContent > .tab-pane > .my-4,
#customerTabsContent > .tab-pane > .my-4 {
    margin-top: 0 !important;
    margin-bottom: 32px !important;
}

.nav-tabs {
    border-bottom-color: var(--border);
}

.nav-tabs .nav-link {
    color: #475569;
    border-color: transparent;
    border-radius: 8px !important;
    padding: 7px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-tabs .nav-link:hover {
    background: var(--primary-light);
    border-color: transparent;
    color: var(--primary-dark);
}

.nav-tabs .nav-link.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(255, 115, 55, 0.28);
}

@media (max-width: 768px) {
    #adminTabs,
    #customerTabs {
        margin: 14px 12px 16px 12px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-padding-inline: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 6px;
    }

    #adminTabs::-webkit-scrollbar,
    #customerTabs::-webkit-scrollbar {
        display: none;
    }

    #adminTabs .nav-item,
    #customerTabs .nav-item {
        flex-shrink: 0;
    }

    #adminTabsContent,
    #customerTabsContent {
        margin-left: 12px;
        margin-right: 12px;
    }

    .card-header {
        padding: 12px 14px;
    }

    .card-body {
        padding: 14px;
    }

    .card-toolbar {
        padding: 10px 14px;
    }

    .card-table-flush .table th,
    .card-table-flush .table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .info-list-row {
        padding: 10px 14px;
        flex-wrap: wrap;
    }

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

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.14s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    border: none;
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-1px);
    }
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important;
}

.btn-success {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-info {
    background: var(--dark) !important;
    border-color: var(--dark) !important;
    color: #fff !important;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    background: #000 !important;
    border-color: #000 !important;
}

.btn-warning {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-danger {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
}

.btn-secondary {
    background: #555 !important;
    border-color: #555 !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background: #333 !important;
    border-color: #333 !important;
}

.btn-outline-dark {
    border: 1px solid #333 !important;
    color: #333 !important;
    background: transparent !important;
}

.btn-outline-dark:hover {
    background: #333 !important;
    color: #fff !important;
}

.btn-outline-primary {
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    background: #ffffff !important;
}

.btn-outline-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

.btn-outline-success {
    border: 1px solid #16a34a !important;
    color: #15803d !important;
    background: #ffffff !important;
}

.btn-outline-success:hover {
    background: #16a34a !important;
    color: #ffffff !important;
}

.btn-outline-warning {
    border: 1px solid #d97706 !important;
    color: #b45309 !important;
    background: #ffffff !important;
}

.btn-outline-warning:hover {
    background: #d97706 !important;
    color: #ffffff !important;
}

.btn-outline-danger {
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
    background: #ffffff !important;
}

.btn-outline-danger:hover {
    background: #dc3545 !important;
    color: #ffffff !important;
}

.btn-outline-info {
    border: 1px solid #0284c7 !important;
    color: #0369a1 !important;
    background: #ffffff !important;
}

.btn-outline-info:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
}

/* Alerts - Warm Orange Tones */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-info {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    border-left: 4px solid var(--primary) !important;
}

.alert-success {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    border-left: 4px solid var(--primary) !important;
}

.alert-warning {
    background: #fff8e1 !important;
    color: #8b6914 !important;
    border-left: 4px solid #ffc107 !important;
}

.alert-danger {
    background: #fce4ec !important;
    color: #c62828 !important;
    border-left: 4px solid var(--danger) !important;
}

/* Badges - Brand Consistent */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

.badge.bg-primary {
    background: var(--primary) !important;
}

.badge.bg-success {
    background: var(--primary) !important;
}

.badge.bg-info {
    background: var(--dark) !important;
}

.badge.bg-warning {
    background: var(--primary-muted) !important;
    color: var(--primary-dark) !important;
}

.badge.bg-secondary {
    background: #666 !important;
}

/* Text Color Overrides */
.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--primary) !important;
}

.text-info {
    color: var(--dark) !important;
}

/* Modal Headers - Orange Brand */
.modal-header {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 14px 14px 0 0;
}

.modal-header .modal-title {
    color: #fff;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Background Utility Overrides */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-info {
    background-color: var(--dark) !important;
}

.bg-success {
    background-color: var(--primary) !important;
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .main-header .navbar-collapse {
        padding-top: 0.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    .main-header .nav-link {
        padding: 0.6rem 0.75rem;
        border-radius: 8px;
    }
    .main-header .nav-link:hover {
        background: rgba(255, 255, 255, 0.14);
    }
    .main-header .navbar-nav:last-child {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .hero-section {
        padding: 30px 0 34px;
    }

    .hero-title {
        font-size: 2.15rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .btn-hero {
        padding: 10px 22px;
        font-size: 0.95rem;
    }

    .search-container {
        margin-top: 22px;
        padding: 16px;
        border-radius: 14px;
    }

    .search-container h4 {
        font-size: 1.05rem;
        margin-bottom: 10px !important;
    }

    .section-header h2 {
        font-size: 1.55rem;
    }

    .main-footer {
        padding: 32px 0 22px;
        margin-top: 1.5rem !important;
    }

    .main-footer h5,
    .main-footer h6 {
        margin-bottom: 12px;
    }

    .category-icon,
    .service-icon {
        width: 56px;
        height: 56px;
    }

    .category-icon i,
    .service-icon i {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .hero-section {
        padding: 28px 0 32px;
        text-align: center;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    /* Keep horizontal search bar clean & full-width on mobile (fixes Bootstrap input-group width:1% squish!) */
    .search-form .input-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        gap: 6px;
        background: #fff;
        padding: 5px;
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    }

    .search-form .search-input {
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 10px 12px !important;
        font-size: 0.94rem;
        box-shadow: none !important;
    }

    .search-form .btn-search {
        flex: 0 0 auto !important;
        white-space: nowrap;
        border-radius: 9px !important;
        padding: 10px 14px !important;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {

    .main-header,
    .btn,
    .modal {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* Admin Panel & Customer Dashboard Dark Theme Fixes */




/* Table Improvements */





/* Input Groups and Search */


/* Card Headers */



/* Badges in Tables */






/* Button Groups */





/* List Groups */


/* Filter Sidebar */


/* Product/Item Cards in Customer Dashboard */




/* Pagination */



/* Close Button */

/* Text Colors */







/* Border Utilities */





/* Background Utilities */


/* HR Elements */

/* Code Elements */


/* Blockquote */

/* Mark/Highlight */

/* Keyboard Element */

/* Navigation Breadcrumb */


/* Offcanvas */


/* Accordion */




/* Progress Bar */

/* Toast Notifications */


/* Additional Dark Theme Fixes for Remaining Issues */

/* Force all containers and rows to dark background */

/* Force main content areas */

/* Fix product/item lists with mixed backgrounds */


/* Fix any remaining white/light backgrounds in lists */

/* Fix table striping more aggressively */



/* Force all table cells */

/* Fix any remaining form elements */

/* Fix specific admin/customer dashboard elements */

/* Fix any remaining card-like elements */

/* Fix search and filter areas */

/* Fix any buttons that might have wrong colors */

/* Fix specific elements that might show white */

/* Fix table responsive wrapper */

/* Force fix for any remaining Bootstrap overrides */


/* Fix any inline styles that might override */

/* Additional specific fixes for table rows */


/* Fix any remaining content areas */

/* Fix spacing utilities that might have backgrounds */

/* Fix any remaining gaps */
/* Specific Alert and Info Box Fixes */






/* Specific class for the light blue notification box */

/* Fix for any light colored notification areas */

/* Fix for card info sections */

/* Fix for any remaining light backgrounds in admin sections */

/* Fix for system info boxes */

/* Fix for any notification with icons */

/* Fix for any remaining blue/light backgrounds in cards */

/* Fix for specific admin panel info sections */
/* Fix Input Field Text Visibility */



/* Fix specific input in deposit form */

/* Fix payment method cards */


/* Fix form labels */

/* Fix form text/help text */

/* Fix any number inputs specifically */