/* assets/css/style.css */
/* Modernize Frontend & User Overhaul */

:root {
    /* Inherits from base-style.css foundations */
    --primary: #5d87ff;
    --primary-hover: #4570ea;
    --accent: #49beff;
    --navbar-height: 75px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-primary);
}

a {
    transition: all 0.3s ease;
}

/* Navbar Modernization */
.navbar {
    background: var(--bg-card) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    min-height: var(--navbar-height);
    padding: 0.5rem 0;
    z-index: 1040;
    /* Above all page content but below modals */
}

/* Ensure header elements stay in one line on mobile if possible, or wrap cleanly */
.navbar .container {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    /* Prevent vertical stacking of brand/toggler/icons */
}

.navbar-brand {
    flex-shrink: 0;
    margin-right: 2rem !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.navbar-collapse {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        justify-content: space-between;
        /* Space out menu and search */
        gap: 0.5rem;
        /* Increased gap */
    }
}

.navbar-nav {
    display: flex !important;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    /* Balanced spacing */
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
}

.navbar-actions {
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: 1.5rem;
    position: relative;
    z-index: 1050;
}

@media (max-width: 1400px) {
    .navbar-brand {
        margin-right: 1.5rem !important;
    }

    .navbar-nav {
        gap: 4px;
    }

    .navbar-nav .nav-link {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 0.875rem;
    }

    .brand-text {
        gap: 0;
    }

    .brand-title {
        font-size: 0.95rem !important;
    }

    .brand-meetei {
        font-size: 0.6rem !important;
    }

    .header-search-container {
        max-width: 250px;
    }
}

@media (max-width: 1200px) {
    .navbar-brand {
        margin-right: 1rem !important;
    }

    .navbar-nav .nav-link {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        font-size: 0.825rem;
    }

    .header-search-container {
        max-width: 180px;
    }
}

/* Sidebar Responsive Tweaks */
@media (max-width: 360px) {
    .btn-theme-select {
        font-size: 0.65rem !important;
        padding-left: 0.15rem !important;
        padding-right: 0.15rem !important;
    }

    .btn-theme-select i {
        display: none;
        /* Hide icons on extremely narrow screens to keep text visible */
    }

    .list-group-item {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 0.85rem;
    }
}

.brand-logo-container {
    height: 32px;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted) !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: var(--radius-pill);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-soft);
}

/* Premium Hover Dropdown System */
@media (min-width: 992px) {
    .dropdown-hover:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .dropdown-hover>.dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        margin-top: 0;
    }
}

.dropdown-menu {
    background: var(--dropdown-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-16) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.75rem !important;
    min-width: 220px;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: var(--dropdown-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dropdown-item {
    border-radius: var(--radius-10);
    padding: 0.6rem 1rem !important;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

/* Premium Card System */
.card,
.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-16);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover,
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

/* Button System */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(93, 135, 255, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(93, 135, 255, 0.35);
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(93, 135, 255, 0.3);
}

.btn-premium:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(93, 135, 255, 0.45);
}

@media (max-width: 768px) {
    .btn-lg {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Form Styling - Premium Overhaul */
.form-control,
.form-select {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-soft);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: var(--input-focus-shadow);
    transform: translateY(-1px);
}

/* Modern Header Search */
.header-search-container {
    max-width: 350px;
    /* Reduced from 450px to save space */
    margin: 0;
    width: 100%;
    flex-grow: 1;
    flex-shrink: 1;
    /* Allow shrinking */
    min-width: 150px;
    /* But not too much */
    transition: all 0.3s ease;
    z-index: 1045;
    /* Below actions but above content */
}

@media (max-width: 1400px) {
    .header-search-container {
        max-width: 300px;
    }
}

@media (max-width: 1200px) {
    .header-search-container {
        max-width: 200px;
    }
}

@media (max-width: 1100px) {
    .navbar-brand {
        margin-right: 0.75rem !important;
    }

    .header-search-container {
        max-width: 150px;
    }

    .navbar-nav .nav-link {
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
        font-size: 0.75rem;
    }
}

.header-search-input {
    border-radius: var(--radius-pill) !important;
    padding-left: 1.5rem !important;
    padding-right: 3.5rem !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-main) !important;
    height: 44px;
    font-weight: 500;
}

.header-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: var(--primary);
    color: white;
    border: none;
    transition: all 0.3s;
}

/* Sidebar offcanvas search container overrides to prevent mobile input and dropdown clipping */
.offcanvas .header-search-container {
    max-width: none !important;
    width: 100% !important;
}

/* Pill Search Group Utility */
.pill-search-group {
    display: flex;
    align-items: center;
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    background: var(--bg-card);
    transition: var(--input-transition);
}

.pill-search-group:focus-within {
    border-color: var(--primary);
    box-shadow: var(--input-focus-shadow);
}

.pill-search-group .form-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 38px;
    height: 38px;
    padding-left: 1.25rem !important;
}

.pill-search-group .btn {
    border: none !important;
    border-radius: 0 !important;
    padding-right: 1.25rem !important;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebars & Offcanvas */
.offcanvas {
    border: none;
    box-shadow: var(--shadow-md);
}

.offcanvas-start {
    border-top-right-radius: var(--radius-16);
    border-bottom-right-radius: var(--radius-16);
}

.offcanvas .list-group-item {
    border: none;
    margin: 4px 15px;
    border-radius: var(--radius-10);
    padding: 0.8rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s;
}

/* Meetei Mayek Support */
.brand-meetei {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 1px;
    letter-spacing: 0.3px;
}

/* Glassmorphism Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-bs-theme="dark"] .glass-effect {
    background: rgba(42, 53, 71, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.card {
    animation: cardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Footer Modernization */
footer {
    background-color: #111c2d !important;
    color: #ffffff;
    padding: 5rem 0 2rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary);
}

/* Brand Identity Responsiveness */
@media (max-width: 576px) {
    .navbar-brand {
        margin-right: 0.5rem !important;
        gap: 8px !important;
    }

    .navbar-brand .brand-text .brand-title {
        font-size: 0.875rem !important;
        max-width: 140px !important;
    }

    .navbar-brand .brand-meetei {
        font-size: 0.55rem !important;
    }

    .navbar-brand img {
        height: 28px !important;
    }
}

@media (max-width: 380px) {
    .navbar-brand .brand-text .brand-title {
        max-width: 110px !important;
    }

    .navbar-brand {
        margin-right: 0.25rem !important;
    }
}

/* Global Search Results Dropdown */
.search-results-dropdown {
    width: 350px !important;
    max-height: 450px !important;
    overflow-y: auto;
    border-radius: var(--radius-16) !important;
    padding: 0.75rem !important;
    margin-top: 20px !important;
    z-index: 3000 !important;
    /* Extremely high to cover everything else */
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
    background: var(--bg-card) !important;
    right: 0 !important;
    top: 100% !important;
    /* Align to right of search bar by default on desktop */
    left: auto !important;
}

.search-results-dropdown .dropdown-item {
    border-radius: var(--radius-12) !important;
    margin-bottom: 5px;
    padding: 10px !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.search-results-dropdown .dropdown-item:last-child {
    margin-bottom: 0;
}

.search-results-dropdown .dropdown-item img {
    box-shadow: var(--shadow-soft);
    margin-right: 15px;
}

.search-results-dropdown .dropdown-item:hover {
    background: var(--primary-soft) !important;
    transform: scale(1.02);
}

.search-results-dropdown .dropdown-item .fw-bold {
    color: var(--text-primary);
}

.search-results-dropdown .dropdown-item .text-primary {
    color: var(--primary) !important;
}

@media (max-width: 991px) {
    .search-results-dropdown {
        width: 100% !important;
        position: absolute !important;
        left: 0;
        right: 0;
    }
}

/* POS Enhanced Product Cards */
.pos-product-card {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.pos-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

.pos-product-card .card-img-top {
    border-radius: var(--radius-12) var(--radius-12) 0 0;
}


/* Global Overflow Fix */
html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.mop-price-wrapper {
    transition: opacity 0.3s ease;
}

/* --- PREMIUM WALLET OVERHAUL UTILITIES --- */

/* Glassmorphism Card */
.glass-card {
    background: rgba(var(--primary-rgb), 0.03);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gradient Primary */
.gradient-primary {
    background: linear-gradient(135deg, #5d87ff 0%, #49beff 100%);
    color: white;
}

.gradient-balance-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-balance-white {
    background-color: white !important;
    color: #764ba2 !important;
    border: none;
}

.btn-balance-white:hover {
    background-color: #f8f9fa !important;
    color: #667eea !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-white-glass:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    transform: translateY(-2px);
}

.gradient-success {
    background: linear-gradient(135deg, #13deb9 0%, #10b981 100%);
    color: white;
}

/* Dot Status Indicators */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot-success,
.status-dot-approved,
.status-dot-paid {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot-pending,
.status-dot-processing {
    background-color: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.status-dot-failed,
.status-dot-rejected {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.status-dot-refunded {
    background-color: var(--info);
    box-shadow: 0 0 8px var(--info);
}

/* Premium Sidebar Item */
.sidebar-nav-item {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
}

.sidebar-nav-item i {
    font-size: 1.1rem;
    width: 24px;
    margin-right: 12px;
    opacity: 0.7;
}

.sidebar-nav-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.sidebar-nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(93, 135, 255, 0.3);
}

.sidebar-nav-item.active i {
    opacity: 1;
}

/* Modern Table Enhancements */
.table-premium thead th {
    background: transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 1.25rem 1rem !important;
}

.table-premium tbody td {
    padding: 1.25rem 1rem !important;
    vertical-align: middle;
}

.table-premium tbody tr {
    transition: background 0.2s ease;
}

.table-premium tbody tr:hover {
    background: var(--bg-secondary);
}

/* Transaction Icon Container */
.tx-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Badge Refinements */
.badge-premium {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
}

/* --- HEADER WALLET PILL --- */
.header-wallet-pill {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 4px 12px 4px 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-soft);
}

.header-wallet-pill:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: var(--shadow-md);
}

.wallet-icon-wrapper {
    width: 28px;
    height: 28px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.header-wallet-pill:hover .wallet-icon-wrapper {
    background: var(--primary);
    transform: rotate(-12deg);
}

.header-wallet-pill:hover .wallet-icon-wrapper i {
    color: white !important;
}

.header-wallet-pill .wallet-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Sidebar Wallet Card */
.sidebar-wallet-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 16px;
    padding: 1.25rem;
    color: white;
    margin: 1rem;
    box-shadow: 0 10px 20px -5px rgba(93, 135, 255, 0.3);
}

/* Phone Validation & Feedback Styles */
.phone-validation-msg {
    display: block;
    width: 100%;
}

.is-invalid {
    border-color: var(--bs-danger, #dc3545) !important;
}

.is-valid {
    border-color: var(--bs-success, #198754) !important;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* AJAX Navigation & Shop Enhancements */
.bg-light-hover:hover {
    background-color: var(--bg-secondary, #eef2f5) !important;
    transform: translateX(5px);
}

.transition-all {
    transition: all 0.3s ease;
}

.blend-img {
    mix-blend-mode: multiply;
}

.ajax-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ajax-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* ==========================================================================
   EXTRACTED STYLES FROM VARIOUS PAGES (CONSOLIDATED STYLESHEET OVERHAUL)
   ========================================================================== */

/* 1. Premium Shop Redesign CSS Overrides (from shop.php) */
.premium-sidebar-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-soft) !important;
    border-radius: 16px !important;
}

[data-bs-theme="dark"] .premium-sidebar-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.category-link {
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    color: var(--text-secondary) !important;
}

.category-link:hover {
    background: var(--bg-secondary) !important;
    color: var(--primary) !important;
    transform: translateX(6px);
}

[data-bs-theme="dark"] .category-link:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #ffffff !important;
}

.category-icon-wrapper {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-link:hover .category-icon-wrapper {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: scale(1.1) rotate(5deg);
}

/* Premium Filter Headers */
.filter-header-premium {
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--text-muted) !important;
    font-weight: 800 !important;
}

/* Premium Shop Controls & Filters */
.premium-filter-btn {
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    background: var(--bg-card) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-filter-btn:hover,
.premium-filter-btn.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(93, 135, 255, 0.35) !important;
}

.shop-premium-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.shop-premium-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(93, 135, 255, 0.2) !important;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color);
}

.product-zoom-img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.shop-premium-card:hover .product-zoom-img {
    transform: scale(1.08) !important;
}

.shop-premium-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.5px;
}

.btn-shop-action {
    width: 40px;
    height: 40px;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
}

.btn-shop-action:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: scale(1.05);
}

/* Glass inputs */
.glass-input-premium {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    transition: all 0.3s ease !important;
}

.glass-input-premium:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(93, 135, 255, 0.15) !important;
}

/* Light mode specific shop card backgrounds */
[data-bs-theme="light"] .shop-premium-card {
    background: #ffffff !important;
}

[data-bs-theme="light"] .product-image-container {
    background: #f8fafc !important;
}

[data-bs-theme="light"] .category-icon-wrapper {
    background: #f1f5f9 !important;
}

[data-bs-theme="light"] .glass-input-premium {
    background: #ffffff !important;
}

[data-bs-theme="light"] .premium-sidebar-card {
    background: #ffffff !important;
}

[data-bs-theme="light"] .premium-filter-btn {
    background: #ffffff !important;
}

[data-bs-theme="light"] .btn-shop-action {
    background: #ffffff !important;
}

/* Additional Search Box Premium styling */
.shop-search-box {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.shop-search-box:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(93, 135, 255, 0.1) !important;
}

[data-bs-theme="light"] .shop-search-box {
    background: rgba(255, 255, 255, 0.02) !important;
}

.shop-search-input {
    color: var(--text-primary) !important;
}

.shop-search-input::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

/* Rating Star Accent */
.rating-stars {
    color: #ffc107 !important;
}

/* Discount Badge Accent */
.discount-badge {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger) !important;
    font-weight: 600 !important;
}

/* 2. Footer Premium Style (from includes/footer.php) */
.footer-premium {
    background: #0b111a;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.bg-dark-soft {
    background: rgba(0, 0, 0, 0.2);
}

.ls-2 {
    letter-spacing: 2px;
}

.x-small {
    font-size: 0.75rem;
}

.payment-icons-tray img {
    max-height: 20px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.payment-icons-tray:hover img {
    opacity: 1 !important;
    filter: none !important;
}

[data-bs-theme="light"] .footer-premium {
    background: #0f172a;
    /* Keep footer dark for premium contrast even in light mode */
}

/* 3. Product Details overrides (from product-details.php) */
#quantity::-webkit-inner-spin-button,
#quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#quantity {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 4. Login Container & Layout (from login.php) */
.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(93, 135, 255, 0.3);
}

.btn-premium:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(93, 135, 255, 0.45);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5. Checkout Card Selection styles (from checkout.php) */
.shipping-type-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-type-card:hover {
    border-color: var(--admin-primary) !important;
    background: var(--table-hover-bg);
}

.shipping-type-card.active {
    border-color: var(--admin-primary) !important;
    background: rgba(78, 115, 223, 0.05);
}

#order-summary-content.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* 6. 404 Floating Compass & Gradients (from 404.php) */
.gradient-text {
    background: linear-gradient(45deg, var(--ks-primary, #6366f1), var(--ks-secondary, #a855f7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.fa-spin-slow {
    animation: fa-spin 10s infinite linear;
}

.error-visual:hover .error-float-icon {
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.5s ease-out;
}

[data-bs-theme="dark"] .bg-theme-secondary {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="light"] .bg-theme-secondary {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* 7. Delivery Dashboard (from delivery/dashboard.php) */
:root {
    --primary-gradient: linear-gradient(135deg, #5d87ff 0%, #3a60d0 100%);
    --success-gradient: linear-gradient(135deg, #13deb9 0%, #0ba387 100%);
    --warning-gradient: linear-gradient(135deg, #ffae1f 0%, #e69100 100%);
    --info-gradient: linear-gradient(135deg, #539bff 0%, #2e7be5 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 40px rgba(93, 135, 255, 0.15);
}

.stat-card {
    border: none;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: var(--bs-surface);
}

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

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-card {
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--bs-surface);
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: all 0.3s ease;
}

.order-card.new-request::before {
    background: var(--bs-danger);
}

.order-card.active-delivery::before {
    background: var(--bs-primary);
}

.order-card:hover {
    transform: scale(1.01);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(93, 135, 255, 0.2);
}

.payment-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-action {
    border-radius: 14px;
    padding: 12px 24px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.customer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f0f3f9;
    color: #5d87ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.glass-pill {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .order-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .customer-avatar {
    background: rgba(255, 255, 255, 0.05);
}

/* 8. Admin Wallet management (from admin/wallet.php) */
.sortable {
    cursor: pointer;
}

.premium-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.premium-blob {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.stats-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animate-pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.status-badge {
    padding: 4px 12px;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge-pending {
    background: rgba(255, 161, 23, 0.1);
    color: #ffa117;
}

.status-badge-processing {
    background: rgba(83, 155, 255, 0.1);
    color: #539bff;
}

.status-badge-success,
.status-badge-paid {
    background: rgba(19, 222, 185, 0.1);
    color: #13deb9;
}

.status-badge-failed,
.status-badge-rejected {
    background: rgba(250, 137, 107, 0.1);
    color: #fa896b;
}

.type-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
}

.type-badge-deposit {
    background: rgba(3, 105, 161, 0.1);
    color: #0369a1;
}

.type-badge-withdrawal {
    background: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
}

.type-badge-refund {
    background: rgba(21, 128, 61, 0.1);
    color: #15803d;
}

.type-badge-cashback {
    background: rgba(161, 98, 7, 0.1);
    color: #a16207;
}

.type-badge-interest-credit {
    background: rgba(194, 65, 12, 0.1);
    color: #c2410c;
}

.type-badge-order-payment {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
}

.type-badge-delivery-earning {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.type-badge-admin-credit,
.type-badge-credit {
    background: rgba(67, 56, 202, 0.1);
    color: #4338ca;
}

[data-bs-theme="dark"] .type-badge-deposit {
    color: #38bdf8;
}

[data-bs-theme="dark"] .type-badge-withdrawal {
    color: #f87171;
}

[data-bs-theme="dark"] .type-badge-refund {
    color: #4ade80;
}

[data-bs-theme="dark"] .type-badge-cashback {
    color: #facc15;
}

[data-bs-theme="dark"] .type-badge-interest-credit {
    color: #fb923c;
}

[data-bs-theme="dark"] .type-badge-admin-credit,
[data-bs-theme="dark"] .type-badge-credit {
    color: #818cf8;
}

.nav-pills .nav-link {
    color: var(--text-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-pills .nav-link:hover {
    background: rgba(93, 135, 255, 0.05);
    color: var(--primary);
}

.nav-pills .nav-link.active {
    background-color: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .nav-pills .nav-link.active {
    background-color: var(--bg-card);
}

/* 9. Admin customers list (from admin/customers.php) */
.bg-soft-primary {
    background-color: var(--primary-soft);
}

/* 10. Admin customer details (from admin/customer_view.php) */
.status-badge-view {
    padding: 4px 12px;
    border-radius: 50rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge-pending-view {
    background: rgba(255, 161, 23, 0.1);
    color: #ffa117;
}

.status-badge-success-view,
.status-badge-paid-view {
    background: rgba(19, 222, 185, 0.1);
    color: #13deb9;
}

.status-badge-failed-view,
.status-badge-rejected-view {
    background: rgba(250, 137, 107, 0.1);
    color: #fa896b;
}

.type-badge-view {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
}

.type-badge-deposit-view {
    background: #e0f2fe;
    color: #0369a1;
}

.type-badge-withdrawal-view {
    background: #fef2f2;
    color: #b91c1c;
}

.type-badge-refund-view {
    background: #f0fdf4;
    color: #15803d;
}

.type-badge-cashback-view {
    background: #fef9c3;
    color: #a16207;
}

.type-badge-interest_credit-view {
    background: #ffedd5;
    color: #9a3412;
}

.type-badge-order_payment-view {
    background: #e0f2fe;
    color: #0369a1;
}

.type-badge-delivery_earning-view {
    background: #ede9fe;
    color: #5b21b6;
}

.type-badge-admin_credit-view,
.type-badge-credit-view {
    background: #ede9fe;
    color: #5b21b6;
}

.type-badge-admin_debit-view,
.type-badge-debit-view {
    background: #ffedd5;
    color: #9a3412;
}

#customerTabs .nav-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

#customerTabs .nav-link.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary) !important;
}

/* 11. Admin notifications table (from admin/notifications.php) */
.table-hover-custom tbody tr:hover {
    background-color: var(--primary-soft) !important;
    transition: background-color 0.2s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3) !important;
}

/* 12. Admin Integrated Profit Report (from admin/profit_report.php) */
.growth-indicator {
    font-size: 0.85rem;
    font-weight: 600;
}

.growth-up {
    color: #10b981;
}

.growth-down {
    color: #ef4444;
}

.card-stats {
    transition: transform 0.2s;
}

.card-stats:hover {
    transform: translateY(-5px);
}

.apexcharts-tooltip-custom {
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.badge-expense {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-sale {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-repair {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* 13. System Intelligence Reports (from admin/reports.php) */
.reports-container {
    --primary-glass: rgba(93, 135, 255, 0.1);
    --card-border: rgba(93, 135, 255, 0.15);
    padding-bottom: 50px;
}

.fw-800 {
    font-weight: 800;
}

.fw-700 {
    font-weight: 700;
}

/* Header & Filter Styles */
.glass-pill-group {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 50px;
}

.btn-glass {
    border: none;
    border-radius: 50px;
    padding: 6px 16px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glass.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(93, 135, 255, 0.3);
}

.date-input-glass {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2px 8px;
    transition: all 0.3s;
}

.date-input-glass:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glass);
}

.btn-primary-glass {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-primary-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 135, 255, 0.4);
}

/* Stat Card Modern */
.stat-card-modern {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stat-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.stat-card-modern.primary .stat-icon-wrapper {
    background: rgba(93, 135, 255, 0.1);
    color: #5d87ff;
}

.stat-card-modern.success .stat-icon-wrapper {
    background: rgba(19, 222, 185, 0.1);
    color: #13deb9;
}

.stat-card-modern.info .stat-icon-wrapper {
    background: rgba(83, 155, 255, 0.1);
    color: #539bff;
}

.stat-card-modern.warning .stat-icon-wrapper {
    background: rgba(255, 161, 23, 0.1);
    color: #ffa117;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: 800;
    margin: 5px 0;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.stat-footer {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: auto;
}

.stat-chart-mini {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100px;
    height: 60px;
    opacity: 0.4;
}

/* Premium Card */
.card-premium {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.card-premium-header {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-indicator {
    width: 4px;
    height: 18px;
    border-radius: 10px;
}

.card-premium-body {
    padding: 24px;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glass);
    color: var(--primary);
    border: none;
    transition: all 0.2s;
}

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

/* Table Modern */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    padding: 15px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-modern tbody tr:not(:last-child) td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.table-modern tbody tr:hover {
    background: var(--primary-glass);
}

.badge-status {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-status.active {
    background: rgba(19, 222, 185, 0.1);
    color: #13deb9;
}

.badge-status.inactive {
    background: rgba(250, 137, 107, 0.1);
    color: #fa896b;
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] .card-premium {
    background: #1a202c;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .stat-card-modern {
    background: #1a202c;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .table-modern tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* 14. Vendor Tracker Select2 styling (from vendor/tracker.php) */
.select2-container--default .select2-selection--single {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    height: calc(3.5rem + 2px);
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--bs-body-color);
    line-height: 1.2;
    font-weight: 600;
    padding-left: 0.75rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

.select2-dropdown {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--bs-primary);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

.select2-container {
    width: 100% !important;
}

/* App Download Button Styling */
.btn-premium-download {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.65rem 1.25rem;
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-premium-download:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(93, 135, 255, 0.4) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(93, 135, 255, 0.25);
    color: #fff !important;
}

.android-icon-glow {
    font-size: 1.8rem;
    color: #3ddc84;
    filter: drop-shadow(0 0 4px rgba(61, 220, 132, 0.4));
    transition: all 0.3s ease;
}

.btn-premium-download:hover .android-icon-glow {
    filter: drop-shadow(0 0 8px rgba(61, 220, 132, 0.8));
    transform: scale(1.1);
}

.download-badge-v {
    background: rgba(61, 220, 132, 0.15);
    color: #3ddc84;
    border: 1px solid rgba(61, 220, 132, 0.25);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    vertical-align: middle;
}

/* Razorpay Footer Logo Alignment and Sizing */
.razorpay-logo-footer {
    height: 12px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    filter: grayscale(1) brightness(2.5);
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: center;
}

[data-bs-theme="light"] .razorpay-logo-footer {
    filter: grayscale(1) brightness(0.2);
}

.payment-icons-tray:hover .razorpay-logo-footer {
    filter: none;
    opacity: 1;
}

/* --- PREMIUM SHOP CARD OVERHAULS --- */
.btn-cart-premium {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(93, 135, 255, 0.25) !important;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-cart-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(93, 135, 255, 0.4) !important;
    filter: brightness(1.08);
}

.wishlist-btn-premium {
    z-index: 2 !important;
    position: absolute;
    width: 36px;
    height: 36px;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wishlist-btn-premium:hover {
    transform: scale(1.1) !important;
    background: var(--bg-secondary) !important;
}

.premium-product-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden;
    position: relative;
}

.premium-product-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(93, 135, 255, 0.2) !important;
}

.product-image-capsule {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    padding: 1.25rem !important;
}

.product-image-capsule img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-product-card:hover .product-image-capsule img {
    transform: scale(1.06) !important;
}

.product-title-premium {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-title-premium:hover {
    color: var(--primary) !important;
}

.product-price-premium {
    color: var(--primary) !important;
    font-weight: 700;
}

[data-bs-theme="light"] .product-image-capsule {
    background: #ffffff !important;
}

/* --- COMPATIBLE ACCESSORIES SIDEBAR --- */
.accessories-scroll-container {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}

.accessories-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.accessories-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
.accessories-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.accessory-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.accessory-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(93, 135, 255, 0.2) !important;
}

.accessory-image-wrapper {
    width: 75px;
    height: 75px;
    background: #ffffff !important;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    flex-shrink: 0;
}

.accessory-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.accessory-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.accessory-title a {
    color: var(--text-primary) !important;
    transition: color 0.2s ease;
}

.accessory-title a:hover {
    color: var(--primary) !important;
}

.accessory-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.accessory-sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 32px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

/* --- PREMIUM PRODUCT DETAILS OVERHAUL --- */
.details-page-container {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.gallery-main-wrapper {
    position: relative;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-bs-theme="dark"] .gallery-main-wrapper {
    background: #ffffff; /* Keep white background for product images to maintain design integrity */
}

.gallery-main-img {
    max-height: 420px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-in-out;
}

.gallery-main-wrapper:hover .gallery-main-img {
    transform: scale(1.05);
}

.thumbnail-strip {
    display: flex;
    gap: 12px;
    margin-top: 1.25rem;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 4px;
}
.thumbnail-strip::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
.thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.thumb-item {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: #ffffff;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(93, 135, 255, 0.2);
}

.details-breadcrumb .breadcrumb-item a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.details-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary);
}

.details-breadcrumb .breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: 600;
}

.details-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
}

.details-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
}

.details-rating-stars {
    color: #ffbe2e;
    font-size: 0.9rem;
}

.price-container-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.price-main-details {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.mrp-details {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.1rem;
    font-weight: 500;
}

.discount-tag-details {
    background: linear-gradient(135deg, #13deb9 0%, #10b981 100%);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(19, 222, 185, 0.2);
}

.vendor-premium-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.vendor-premium-box:hover {
    border-color: rgba(93, 135, 255, 0.3);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.variation-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variation-pill {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.variation-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.variation-pill.active {
    border-color: var(--primary);
    color: white;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(93, 135, 255, 0.25);
}

.qty-control-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 2px;
}

.qty-btn-premium {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.qty-btn-premium:hover {
    background: var(--bg-card);
    color: var(--primary);
}

.qty-input-premium {
    width: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
}

/* Remove spin arrows from input number */
.qty-input-premium::-webkit-outer-spin-button,
.qty-input-premium::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-wishlist-details {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wishlist-details:hover {
    transform: scale(1.08);
    background: var(--bg-secondary);
    border-color: #ff4757;
}

.btn-wishlist-details i {
    font-size: 1.25rem;
    color: #ff4757;
    transition: transform 0.3s ease;
}

.btn-wishlist-details:active i {
    transform: scale(0.8);
}

.trust-item-details {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.trust-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.trust-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product Reviews Styles */
.reviews-section-card {
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.review-item-card {
    background: var(--bg-card);
    transition: all 0.25s ease;
}

.review-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light) !important;
}

.rating-progress-bar {
    height: 8px;
    border-radius: 4px;
    background-color: var(--border-color);
    overflow: hidden;
}

.rating-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffb800, #ff9900);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination .page-item .page-link {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    background: var(--bg-body);
}

.pagination .page-item .page-link:hover:not(.disabled) {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary-light);
}

/* Review Submissions Form elements */
.form-rating-stars i, .write-star {
    cursor: pointer;
    font-size: 1.3rem;
    transition: color 0.15s ease, transform 0.1s ease;
}
.form-rating-stars i:hover, .write-star:hover {
    transform: scale(1.2);
    color: #ffb800;
}

/* Premium In-App Update Overlay */
.premium-update-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: flex-end; /* Bottom sheet by default on mobile */
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-update-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Update Sheet Card */
.premium-update-sheet {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card, #121824);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 36px 28px 28px 28px;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-color, #ffffff);
}

.premium-update-overlay.show .premium-update-sheet {
    transform: translateY(0);
}

/* Halo and Bounce Icon Animation */
.update-pulse-halo {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-pulse-halo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.25);
    animation: haloPulse 2s infinite ease-out;
}

.update-icon-glow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    z-index: 2;
}

.update-icon-bounce {
    animation: iconBounce 2s infinite ease-in-out;
}

/* Typography & Content Layout */
.premium-update-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.premium-update-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted, #a0aec0);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.release-notes-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 28px;
    max-height: 180px;
    overflow-y: auto;
}

.release-notes-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color, #ffffff);
    margin-bottom: 12px;
}

.release-notes-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.release-notes-list li {
    font-size: 0.85rem;
    color: var(--text-muted, #a0aec0);
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.45;
}

.release-notes-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: #0d6efd;
    font-size: 0.8rem;
}

/* Dynamic Glowing Buttons */
.btn-premium-update {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 16px;
    padding: 14px 24px;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-premium-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.55);
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
}

.btn-premium-later {
    background: transparent;
    color: var(--text-muted, #a0aec0);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 16px;
    padding: 12px 24px;
    transition: all 0.2s ease;
}

.btn-premium-later:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color, #ffffff);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Desktop Dialog Card Override */
@media (min-width: 576px) {
    .premium-update-overlay {
        align-items: center; /* Centered modal style on desktop */
    }
    
    .premium-update-sheet {
        border-radius: 28px;
        transform: scale(0.9);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    }
    
    .premium-update-overlay.show .premium-update-sheet {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animations */
@keyframes haloPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.4; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* --- PREMIUM RESPONSIVE CAROUSEL SLIDESHOW --- */
.hero-carousel {
    position: relative;
    border-radius: var(--radius-16);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2.5rem;
}

.hero-carousel .carousel-inner {
    height: 480px;
}

@media (max-width: 991.98px) {
    .hero-carousel .carousel-inner {
        height: 380px;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel .carousel-inner {
        height: 280px;
    }
}

.hero-carousel .carousel-item {
    height: 100%;
    background-color: #0b0f19;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55;
    transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel .carousel-item.active img {
    transform: scale(1.04);
}

.hero-carousel .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 1;
}

.hero-carousel .carousel-caption {
    z-index: 2;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    right: 10%;
    padding: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-carousel .carousel-caption {
        text-align: left;
        left: 8%;
        right: 8%;
    }
}

.hero-carousel .carousel-indicators {
    z-index: 3;
    bottom: 20px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators .active {
    background-color: var(--primary);
    width: 24px;
    border-radius: 5px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 3;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    margin: 0 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

/* --- RESPONSIVE BUTTON SYSTEM OVERHAUL --- */
/* Ensures buttons adapt perfectly to all screen sizes, prevent text overflow, and stay touch-friendly */

.btn {
    white-space: normal !important; /* Allow text to wrap cleanly on narrow screens */
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%; /* Keep button within its container bounds */
    box-sizing: border-box;
}

/* Fluid responsive padding and font-sizes for standard buttons */
@media (max-width: 991.98px) {
    .btn {
        padding: 0.65rem 1.3rem;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    .btn {
        padding: 0.55rem 1.15rem;
        font-size: 0.825rem;
    }
    
    .btn-lg {
        padding: 0.65rem 1.35rem;
        font-size: 0.9rem;
    }

    /* Convert side-by-side buttons in flex layouts to stacked columns on mobile */
    .flex-sm-column-buttons {
        flex-direction: column !important;
        width: 100%;
        gap: 0.5rem !important;
    }

    .flex-sm-column-buttons > .btn,
    .flex-sm-column-buttons > a.btn {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 44px; /* Touch target size guideline */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-lg {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        min-height: 48px;
    }
    
    /* Make block-level buttons span fully on small devices */
    .btn-block-mobile {
        width: 100% !important;
        display: flex !important;
    }
}