/* KeyForge V2 - Green & White High-Trust Design System */

:root {
    --color-primary: #008060; /* Shopify Green - very soothing, premium high trust */
    --color-primary-hover: #006b50;
    --color-primary-light: #f0fdf4; /* Calming sage-white glow */
    --color-primary-glow: rgba(0, 128, 96, 0.12);
    
    --color-accent: #eab308; /* Amber-Gold for ratings, badges, and accents */
    --color-accent-light: #fef9c3;
    
    --color-bg: #f8fafc; /* Soothing Clean Slate-White background */
    --color-bg-surface: #ffffff; /* Pure white panels */
    --color-bg-secondary: #f1f5f9; /* Soft cool grey secondary bg */
    
    --color-text: #0f172a; /* Slate dark text */
    --color-text-light: #475569; /* Slate grey medium text */
    --color-text-muted: #94a3b8;
    
    --color-border: #cbd5e1;
    --color-border-hover: #94a3b8;
    
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    
    --color-danger: #ef4444;
    --color-danger-light: #fee2e2;
    
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    
    --font-heading: 'Cairo', 'Inter', sans-serif;
    --font-body: 'Cairo', 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-trust: 0 20px 25px -5px rgba(0, 128, 96, 0.04), 0 10px 10px -5px rgba(0, 128, 96, 0.02);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html[dir="rtl"] * {
    letter-spacing: normal !important;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Helper Class for Panels */
.glass-panel {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

/* Main Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(21, 128, 61, 0.2);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
}

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

.header-top-row {
    display: contents;
}

.logo-area {
    order: 1;
}

.nav-links {
    order: 2;
}

.header-actions {
    order: 3;
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.mobile-nav-toggle svg {
    width: 22px;
    height: 22px;
}

.mobile-nav-toggle:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 9998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 9996;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.admin-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    min-height: 44px;
    padding: 0.65rem 1rem;
    margin-bottom: 0;
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-sidebar-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.admin-sidebar-toggle:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    width: 260px;
}

.search-box input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.55rem 2.6rem 0.55rem 0.85rem;
    color: var(--color-text);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

html[dir="rtl"] .search-box input {
    padding: 0.55rem 0.85rem 0.55rem 2.6rem;
}

html[dir="rtl"] .search-btn {
    right: auto;
    left: 10px;
}

html[dir="ltr"] .search-btn {
    right: 10px;
    left: auto;
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.search-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-btn svg {
    width: 16px;
    height: 16px;
}

.cart-toggle-btn {
    position: relative;
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cart-toggle-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.cart-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.cart-count {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--color-danger);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* Main Content Area */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 150px);
}

.content-view {
    display: none;
}

.content-view.active {
    display: block;
    animation: fadeIn 0.3s ease-out forwards;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(240, 253, 244, 0.3) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.hero-content {
    max-width: 780px;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #15803d;
    padding: 0.3rem 0.85rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-desc {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Trust Badges Row */
.trust-badges-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.trust-badge-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.trust-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.trust-badge-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.trust-badge-item p {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.homepage-payment-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding: 0.85rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.homepage-payment-trust.hidden {
    display: none;
}

.homepage-payment-trust-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
}

.homepage-payment-trust-logos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    min-height: 36px;
}

.payment-trust-badge.paypal-trust-badge {
    border-color: #003087;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4fa 100%);
}

.payment-trust-badge .payment-logo {
    max-height: 22px;
    width: auto;
}

.payment-trust-badge.hidden {
    display: none;
}

/* Category filter */
.store-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.8rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1rem;
}

.filter-headline h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.filter-headline p {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
}

.cat-tab {
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.cat-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cat-tab.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(21, 128, 61, 0.15);
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.8rem;
}

.product-card {
    position: relative;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 2px var(--color-primary-light);
    border-color: var(--color-primary);
}

.product-card-visual {
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.product-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Trust Rich Modern Gradients */
.gradient-cyan { background: linear-gradient(135deg, #0f766e 0%, #115e59 100%); color: #ffffff; }
.gradient-purple { background: linear-gradient(135deg, #581c87 0%, #4c1d95 100%); color: #ffffff; }
.gradient-rose { background: linear-gradient(135deg, #9f1239 0%, #881337 100%); color: #ffffff; }
.gradient-emerald { background: linear-gradient(135deg, #065f46 0%, #064e3b 100%); color: #ffffff; }

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid var(--color-border);
}

.product-card-icon {
    width: 52px;
    height: 52px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.product-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.stock-pill {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--color-success-light);
    color: #065f46;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.stock-pill.out-of-stock {
    background: var(--color-danger-light);
    color: #991b1b;
}

.stock-pill.low-stock {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.stock-pill.stock-pill-loading {
    background: rgba(148, 163, 184, 0.2);
    color: var(--color-text-light);
    animation: stock-pill-pulse 1.2s ease-in-out infinite;
}

@keyframes stock-pill-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

#modal-product-stock.stock-loading {
    color: var(--color-text-light) !important;
    opacity: 0.7;
}

.product-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.product-card-desc {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-accent);
    font-size: 0.8rem;
    margin-bottom: 0.85rem;
}

.product-card-rating span {
    color: var(--color-text-muted);
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 0.85rem;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.original-price {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.sale-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Button UI Components */
.btn {
    background: none;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 10px rgba(21, 128, 61, 0.2);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--color-text);
}

.btn-emerald {
    background: var(--color-success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.btn-emerald:hover {
    background: var(--color-success);
    color: #ffffff;
    border-color: var(--color-success);
}

.btn-danger {
    background: var(--color-danger-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: var(--color-danger);
    color: #ffffff;
    border-color: var(--color-danger);
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    border: 1px solid #22c55e;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: #ffffff;
    border-color: #128C7E;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-block { width: 100%; }
.btn-lg {
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Modal and Drawers overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top, 0px))
             max(1rem, env(safe-area-inset-right, 0px))
             max(1rem, env(safe-area-inset-bottom, 0px))
             max(1rem, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 780px;
    max-height: min(85vh, calc(100vh - 60px));
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    margin: auto;
}

.modal-header-block {
    flex-shrink: 0;
}

.modal-scroll-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 128, 96, 0.45) rgba(0, 128, 96, 0.06);
}

.modal-scroll-body::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-body::-webkit-scrollbar-track {
    background: rgba(0, 128, 96, 0.04);
    border-radius: 3px;
}

.modal-scroll-body::-webkit-scrollbar-thumb {
    background: rgba(0, 128, 96, 0.35);
    border-radius: 3px;
}

.modal-scroll-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 128, 96, 0.55);
}

.modal-footer-actions {
    flex-shrink: 0;
    padding-top: 1rem;
}

.modal-footer-actions.admin-product-modal-footer,
.modal-footer-actions.review-action-btns,
.modal-footer-actions.custom-gw-modal-footer {
    padding-top: 0;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #f1f5f9;
    border: none;
    color: var(--color-text-light);
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 2;
}

html[dir="ltr"] .modal-close-btn {
    left: auto;
    right: 1rem;
}

#checkout-modal .checkout-step {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.checkout-payment-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#admin-verify-payment-modal .review-action-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #ffffff 100%);
    border-top: 1px solid var(--color-border);
    margin: 0 -2rem -2rem;
    padding: 1rem 2rem 1.25rem;
    z-index: 2;
}

html[dir="rtl"] .cart-drawer {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--color-border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    animation: slideInRight 0.25s ease-out forwards;
}

html[dir="ltr"] .cart-drawer {
    left: 0;
    right: auto;
    animation: slideInLeft 0.25s ease-out forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: var(--color-text);
}

.animated-scale {
    animation: scaleIn 0.2s ease-out forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Product Detail Grid Layout */
.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.product-modal-visual {
    height: 100%;
    min-height: 220px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-visual svg {
    width: 80px;
    height: 80px;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
}

.category-badge {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.product-modal-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.modal-rating {
    color: var(--color-accent);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.product-modal-desc {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.modal-activation-guide {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
}

.modal-activation-guide h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-primary);
}

.modal-activation-guide ol {
    padding-right: 1.1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-text-light);
}

.modal-activation-guide li {
    margin-bottom: 0.3rem;
}

.modal-stock-status {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.modal-stock-status strong {
    color: #059669;
}

.modal-footer-action {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.2rem;
    margin-top: auto;
}

.modal-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-price-area {
    display: flex;
    flex-direction: column;
}

.modal-price-area .original-price,
.modal-price-area .sale-price {
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.modal-price-area .original-price.price-updating,
.modal-price-area .sale-price.price-updating {
    opacity: 0.35;
    transform: translateY(-4px);
}

.modal-price-area .original-price { font-size: 0.8rem; }
.modal-price-area .sale-price { font-size: 1.5rem; }

/* Duration selector — product detail modal */
.duration-selector-wrap {
    width: 100%;
}

.duration-selector-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 0.55rem;
}

.duration-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.duration-pill {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.duration-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.duration-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-light);
    background: #ffffff;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    white-space: nowrap;
    line-height: 1.3;
}

.duration-pill .duration-pill-price {
    font-weight: 800;
    color: var(--color-primary);
}

.duration-pill input:checked + span .duration-pill-price,
.duration-pill.active span .duration-pill-price {
    color: #ffffff;
}

.duration-pill:hover span {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.duration-pill input:checked + span,
.duration-pill.active span {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 128, 96, 0.18);
}

html[dir="rtl"] .duration-selector {
    flex-direction: row;
}

/* Admin pricing mode toggle */
.admin-pricing-mode-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 10px);
    background: rgba(16, 185, 129, 0.04);
}

.admin-pricing-mode-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text);
}

.admin-pricing-mode-option input[type="radio"] {
    accent-color: #10b981;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.admin-fixed-pricing-wrap.hidden,
#admin-duration-pricing-wrap.hidden {
    display: none;
}

/* Admin duration pricing tiers */
.duration-pricing-section {
    padding: 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
}

.duration-pricing-heading {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.duration-pricing-desc {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.55;
}

.duration-pricing-tier {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    margin-bottom: 0.65rem;
}

.duration-pricing-tier:last-child {
    margin-bottom: 0;
}

.duration-pricing-tier-lifetime {
    border-color: rgba(0, 128, 96, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.duration-tier-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px dashed var(--color-border);
}

.duration-tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 0.4rem;
    border-radius: 6px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 800;
}

.duration-tier-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
}

.admin-duration-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.admin-duration-pricing-grid .duration-pricing-tier {
    margin-bottom: 0;
}

/* Admin product modal — scrollable body + sticky footer */
#admin-product-modal .modal-content {
    padding: 0;
}

#admin-product-modal .admin-product-modal-header {
    flex-shrink: 0;
    padding: 2rem 2rem 0.75rem;
    padding-left: 3rem;
}

#admin-product-modal .admin-product-modal-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 0.65rem;
}

#admin-product-modal .admin-product-modal-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#admin-product-modal .admin-product-modal-body {
    padding: 0.5rem 2rem 1rem;
}

.modal-footer-btns {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#admin-product-modal .admin-product-modal-footer {
    flex-shrink: 0;
    margin-top: 0;
    padding: 1rem 2rem 1.25rem;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 128, 96, 0.22);
    box-shadow: 0 -4px 12px rgba(0, 128, 96, 0.06);
}

.price-from-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.1rem;
}

.cart-item-duration {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 600;
    margin-top: 0.1rem;
}

/* Cart drawer sliding layout */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1000;
}

.cart-drawer {
    position: absolute;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: #ffffff;
    border-right: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.cart-drawer-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.2rem 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.cart-item-visual {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-visual svg {
    width: 20px;
    height: 20px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.cart-item-info .price {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
}

.cart-item-remove-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.3rem;
}

.cart-item-remove-btn:hover {
    color: var(--color-danger);
}

.cart-drawer-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: #f8fafc;
}

.coupon-section {
    margin-bottom: 1rem;
}

.coupon-input {
    display: flex;
    gap: 0.4rem;
}

.coupon-input input {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
    font-size: 0.875rem;
}

.coupon-input input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.feedback-msg {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    margin-top: 0.25rem;
}

.feedback-msg.success { color: var(--color-success); }
.feedback-msg.error { color: var(--color-danger); }

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.discount-row { color: var(--color-success); font-weight: 600; }
.total-row {
    border-top: 1px solid var(--color-border);
    padding-top: 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Forms CSS elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.4rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    color: var(--color-text);
    font-size: 0.9375rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(21, 128, 61, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.helper-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-top: 0.25rem;
    display: block;
}

.max-width-md { max-width: 680px; }
.text-center { text-align: center; }

/* Checkout methods panel */
.checkout-step {
    animation: fadeIn 0.2s ease forwards;
}

.checkout-step h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.checkout-step > p,
.checkout-step .modal-header-block p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.payment-methods {
    margin-bottom: 1.5rem;
}

.payment-methods > label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-height: min(40vh, 320px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Global constraint so every official/CDN logo stays compact & crisp */
.payment-logo {
    max-height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

.payment-logo-fallback {
    max-height: none;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-text);
    white-space: nowrap;
}

/* Moroccan Cash Plus / Wafacash styled badge (no public CDN logo) */
.cashplus-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #c1272d, #006233);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.1;
}

.cashplus-badge .cashplus-flag {
    font-size: 0.85rem;
    line-height: 1;
}

.checkout-no-gateway-msg {
    color: var(--color-danger);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem;
    background: var(--color-danger-light);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.pay-option input { display: none; }

/* Gateway instructions layout */
.gateway-instruction-box {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

.gateway-instruction-box h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.gateway-instruction-box p {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.copy-input {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.copy-input input {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
    font-family: monospace;
    font-size: 0.9375rem;
    font-weight: 500;
}

.instruction-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    line-height: 1.55;
    border-top: 1px solid var(--color-border);
    padding-top: 0.6rem;
    margin-top: 0.6rem;
}

/* File Upload Mock Field */
.file-upload-wrapper {
    position: relative;
    height: 38px;
    background: #ffffff;
    border: 1px dashed var(--color-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 0.8rem;
    cursor: pointer;
    overflow: hidden;
}

.file-input-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-btn-mock {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 0.5rem;
    z-index: 1;
}

.file-upload-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 180px;
    z-index: 1;
}

/* Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.neon-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(21, 128, 61, 0.1);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Success details styles */
.success-icon-badge {
    width: 60px;
    height: 60px;
    background: var(--color-success-light);
    border: 2px solid var(--color-success);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
}

.success-icon-badge svg {
    width: 32px;
    height: 32px;
}

.success-icon-badge.pending-icon {
    background: var(--color-warning-light);
    border-color: var(--color-warning);
    color: var(--color-warning);
}

.delivered-keys-box {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

.delivered-keys-box h3 {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: 0.8rem;
}

.key-display-item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

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

.key-title {
    font-size: 0.875rem;
    font-weight: 700;
}

.key-value-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.key-string {
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.pending-info-box {
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.pending-info-box p {
    margin-bottom: 0.4rem;
}

.activation-guide-box {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-text-light);
}

.activation-guide-box h4 {
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

/* Tracker Result Layout */
.tracker-container {
    max-width: 650px;
    margin: 3rem auto;
}

.tracker-card {
    padding: 2.5rem;
}

.tracker-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tracker-icon {
    width: 52px;
    height: 52px;
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.tracker-icon svg {
    width: 26px;
    height: 26px;
}

.tracker-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tracker-header p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.tracker-form .input-group {
    display: flex;
    gap: 0.4rem;
}

.tracker-form input {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.65rem 1rem;
    color: var(--color-text);
    font-size: 0.9rem;
}

.tracker-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.tracker-results {
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.tracked-order-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.tracked-order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.tracked-order-header strong {
    color: var(--color-text);
}

.tracked-order-items {
    border-top: 1px dashed var(--color-border);
    border-bottom: 1px dashed var(--color-border);
    padding: 0.85rem 0;
    margin-bottom: 0.85rem;
}

.tracked-item-row {
    margin-bottom: 0.85rem;
}

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

.tracked-item-info {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.4rem;
}

.tracked-key-line {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tracked-key-line span {
    font-family: monospace;
    color: var(--color-primary);
    font-weight: 700;
}

/* Admin Dashboard Portal */
body.admin-page .admin-layout,
.admin-layout {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 0.85rem;
    /* LTR flex axis: row-reverse + DOM (toggle, sidebar, main) → main left, sidebar right */
    direction: ltr;
}

html[dir="ltr"] body.admin-page .admin-layout,
html[dir="ltr"] .admin-layout {
    flex-direction: row;
    direction: ltr;
}

.admin-sidebar {
    flex: 0 0 280px;
    direction: rtl;
    padding: 1.2rem;
    height: fit-content;
    position: sticky;
    top: 4.75rem;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(236, 253, 245, 0.96) 50%,
        rgba(209, 250, 229, 0.92) 100%
    );
    border-inline-start: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow: -4px 0 24px rgba(6, 78, 59, 0.06);
}

html[dir="ltr"] .admin-sidebar {
    direction: ltr;
    border-inline-start: none;
    border-inline-end: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow: 4px 0 24px rgba(6, 78, 59, 0.06);
}

.admin-main-panel {
    flex: 1;
    min-width: 0;
    min-height: 480px;
    direction: rtl;
}

html[dir="ltr"] .admin-main-panel {
    direction: ltr;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.2rem;
}

.admin-profile .avatar {
    width: 38px;
    height: 38px;
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.admin-profile .avatar svg {
    width: 18px;
    height: 18px;
}

.admin-profile h4 {
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-profile p {
    font-size: 0.875rem;
    color: #10b981;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.menu-item {
    position: relative;
    display: block;
    color: var(--color-text-light);
    text-decoration: none;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.admin-sidebar .menu-item:hover {
    background: rgba(236, 253, 245, 0.85);
    color: var(--color-primary);
}

.menu-item.active {
    background: var(--color-primary-light);
    border-inline-end: 3px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
}

.logout-btn { margin-top: 0.85rem; }

/* Admin Content Panel */
body.admin-page .admin-main-panel {
    padding-inline-end: 0.25rem;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.tab-header {
    margin-bottom: 1.5rem;
}

.tab-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.tab-header p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Stats counter cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.bg-green { background: var(--color-primary); }
.bg-blue { background: #3b82f6; }
.bg-emerald { background: #10b981; }
.bg-orange { background: #f97316; }

.border-green { border-color: rgba(21, 128, 61, 0.1); }
.border-blue { border-color: rgba(59, 130, 246, 0.1); }
.border-emerald { border-color: rgba(16, 185, 129, 0.1); }
.border-orange { border-color: rgba(249, 115, 22, 0.1); }

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.15rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Charts + lists dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 1.5rem;
}

.chart-box, .notifications-box {
    padding: 1.5rem;
}

.chart-box h3, .notifications-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.6rem;
}

.chart-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.alert-item.danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.alert-item.warning {
    border-color: #fef3c7;
    background: #fffbeb;
}

.alert-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.alert-item.danger .alert-dot { background: var(--color-danger); }
.alert-item.warning .alert-dot { background: var(--color-warning); }


.alert-text {
    flex-grow: 1;
}

/* Overview analytics layout */
.overview-analytics-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.overview-analytics-charts-grid {
    margin-top: 0;
}

.overview-analytics-stats-row {
    margin-bottom: 0;
}

.overview-alerts-wrap {
    margin-top: 1.5rem;
}

.overview-alerts-wrap .notifications-box {
    padding: 1.5rem;
}

.overview-alerts-wrap .notifications-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.6rem;
}

#overview-sales-dots circle {
    fill: #10b981;
    stroke: #fff;
    stroke-width: 2;
}

/* Analytics dashboard */
.analytics-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.analytics-compare {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.35rem;
}

.analytics-compare.positive { color: #10b981; }
.analytics-compare.negative { color: #ef4444; }

.analytics-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.analytics-chart-wide {
    grid-column: 1 / -1;
}

.analytics-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 180px;
}

.analytics-bar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1fr auto;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.analytics-bar-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text);
    font-weight: 600;
}

.analytics-bar-track {
    height: 10px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.analytics-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981);
    border-radius: 999px;
    min-width: 4px;
    transition: width 0.4s ease;
}

.analytics-bar-value {
    font-weight: 700;
    color: #059669;
    min-width: 2.5rem;
    text-align: left;
}

.analytics-bar-empty {
    text-align: center;
    color: var(--color-text-light);
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

#analytics-sales-dots circle {
    fill: #10b981;
    stroke: #fff;
    stroke-width: 2;
}

@media (max-width: 900px) {
    .analytics-charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Tables design */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

th, td {
    padding: 0.9rem 1.2rem;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--color-border);
}

th {
    color: var(--color-text-light);
    font-weight: 700;
}

.table-container tbody td {
    font-weight: 500;
    color: var(--color-text-light);
}

tbody tr {
    transition: var(--transition-fast);
}

tbody tr:hover {
    background: #f8fafc;
}

.badge-pill {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
}

.badge-completed {
    background: var(--color-success-light);
    color: #065f46;
}

.badge-refunded {
    background: var(--color-danger-light);
    color: #991b1b;
}

.product-row-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
}

.product-row-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-row-icon svg {
    width: 16px;
    height: 16px;
}

.actions-cell {
    display: flex;
    gap: 0.4rem;
}

.admin-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.btn-delete-order {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.btn-delete-order:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.btn-whatsapp-delivery {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #ffffff;
    border: 1px solid #1da851;
    padding: 0.28rem 0.5rem;
    min-width: 2rem;
    line-height: 1;
}

.btn-whatsapp-delivery:hover,
.btn-whatsapp-delivery:focus-visible {
    background: #1ebe57;
    color: #ffffff;
    border-color: #1a9e4a;
}

.btn-whatsapp-delivery .admin-whatsapp-icon {
    color: currentColor;
}

/* Settings Form grids */
.settings-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
}

.settings-form, .settings-coupons {
    padding: 1.5rem;
}

.settings-form h3, .settings-coupons h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.coupon-input-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr auto;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.coupon-input-row input {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
    font-size: 0.875rem;
}

.coupons-list-container {
    max-height: 220px;
    overflow-y: auto;
}

.coupons-list-container th, .coupons-list-container td {
    padding: 0.55rem 0.85rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Payment Gateways Dashboard */
.gateways-setup-section {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.gateways-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-add-custom-gw {
    flex-shrink: 0;
    font-weight: 700;
    white-space: nowrap;
}

.gateways-section-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
}

.gateways-section-header p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.gateways-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.gateway-setup-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 128, 96, 0.12);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gateway-setup-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08), var(--shadow-sm);
}

.gateway-setup-card.is-disabled {
    opacity: 0.72;
    background: rgba(248, 250, 252, 0.95);
}

.gw-logo {
    width: 30px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(0, 128, 96, 0.08), rgba(16, 185, 129, 0.04));
    border: 1px solid rgba(0, 128, 96, 0.12);
    padding: 2px 4px;
    overflow: hidden;
    line-height: 0;
}

.gw-logo svg,
.gw-logo .gw-logo-img,
.gw-logo-img {
    max-height: 22px;
    max-width: 40px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 3px;
}

.gateway-setup-card.is-custom {
    border-color: rgba(0, 128, 96, 0.22);
    background: linear-gradient(145deg, rgba(240, 253, 244, 0.5), rgba(255, 255, 255, 0.95));
}

.gateway-type-badge {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 128, 96, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 128, 96, 0.18);
}

.gateway-type-badge.type-wallet { background: rgba(59, 130, 246, 0.1); color: #2563eb; border-color: rgba(59, 130, 246, 0.2); }
.gateway-type-badge.type-bank { background: rgba(0, 128, 96, 0.1); color: var(--color-primary); }
.gateway-type-badge.type-crypto { background: rgba(245, 158, 11, 0.12); color: #d97706; border-color: rgba(245, 158, 11, 0.25); }

.gateway-card-btns {
    display: flex;
    gap: 0.35rem;
}

.btn-gw-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.85rem;
    line-height: 1;
}

.btn-gw-icon:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.btn-gw-icon.btn-gw-delete:hover {
    border-color: var(--color-danger);
    background: var(--color-danger-light);
    color: var(--color-danger);
}

/* Emerald ON/OFF toggle switch */
.gw-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.gw-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gw-switch-track {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    transition: var(--transition-fast);
}

.gw-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
}

html[dir="rtl"] .gw-switch-track::after {
    left: auto;
    right: 3px;
}

.gw-switch input:checked + .gw-switch-track {
    background: linear-gradient(135deg, #10b981, #008060);
}

.gw-switch input:checked + .gw-switch-track::after {
    transform: translateX(20px);
}

html[dir="rtl"] .gw-switch input:checked + .gw-switch-track::after {
    transform: translateX(-20px);
}

.gw-switch-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 1.75rem;
}

.gw-switch input:checked ~ .gw-switch-label {
    color: var(--color-primary);
}

/* ===== Refactored admin gateway row: [Logo][Name+Desc][Toggle] ===== */
.gateway-row-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(0, 128, 96, 0.15);
}

.gateway-row-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 32px;
    flex-shrink: 0;
}

.gateway-row-logo .gw-logo {
    width: auto;
    height: auto;
    max-width: 44px;
    background: none;
    border: none;
    padding: 0;
}

.gateway-row-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.gateway-row-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gateway-row-desc {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-light);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gateway-row-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ===== Premium emerald pill toggle switch ===== */
.emerald-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.emerald-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.emerald-switch-track {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.emerald-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.emerald-switch input:checked + .emerald-switch-track {
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3), 0 2px 8px rgba(16, 185, 129, 0.25);
}

.emerald-switch input:checked + .emerald-switch-track::after {
    transform: translateX(20px);
}

.emerald-switch-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 1.75rem;
}

.emerald-switch input:checked ~ .emerald-switch-label {
    color: #047857;
}

/* RTL-safe knob travel */
html[dir="rtl"] .emerald-switch-track::after {
    left: auto;
    right: 3px;
}

html[dir="rtl"] .emerald-switch input:checked + .emerald-switch-track::after {
    transform: translateX(-20px);
}

.gateway-details-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gateway-details-inputs .mini-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.gateway-details-inputs label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gateway-details-inputs input,
.gateway-details-inputs textarea {
    padding: 0.55rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    transition: var(--transition-fast);
    font-family: inherit;
}

.gateway-details-inputs input:focus,
.gateway-details-inputs textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.gateway-details-inputs textarea {
    resize: vertical;
    min-height: 64px;
}

.gateways-save-sticky {
    position: sticky;
    bottom: 0;
    margin-top: 1.5rem;
    padding: 1rem 0 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 70%, transparent);
    border-top: 1px solid rgba(0, 128, 96, 0.1);
    z-index: 2;
}

.gateways-save-sticky .btn-lg {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Custom Gateway Modal */
.custom-gw-modal-shell {
    max-width: 520px;
}

.custom-gw-modal-header h2 {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    color: var(--color-primary);
}

.custom-gw-type-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 128, 96, 0.04);
    border: 1px dashed rgba(0, 128, 96, 0.15);
}

.custom-gw-enabled-row {
    margin-top: 0.25rem;
}

.custom-gw-enabled-switch {
    justify-content: flex-start;
}

.custom-gw-modal-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.custom-gw-modal-footer {
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.required-mark {
    color: var(--color-danger);
}

/* Checkout payment option pills — emerald theme */
/* Compact, low-profile horizontal payment badge (logo + name side-by-side) */
.pay-option {
    border: 1px solid var(--color-border);
    background: #ffffff;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    cursor: pointer;
    text-align: start;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    flex: 0 1 auto;
}

/* Sleek low-profile horizontal badge variant */
.payment-method-badge {
    flex: 0 1 auto;
    max-width: 100%;
}

.pay-option-content {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.pay-option .pay-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: auto;
    flex-shrink: 0;
    line-height: 0;
}

.pay-option .pay-logo svg,
.pay-option .pay-logo .payment-logo,
.pay-option .pay-logo .gw-logo-img {
    max-height: 24px;
    max-width: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.btn-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.checkout-copy-btn {
    flex-shrink: 0;
}

.pay-option .pay-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 1.35;
}

.pay-option:hover {
    border: 1px solid #10b981;
    background: linear-gradient(145deg, rgba(236, 253, 245, 0.85), #ffffff);
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.pay-option.active {
    border: 1px solid #10b981;
    background: linear-gradient(145deg, #f0fdf4, #ffffff);
    transform: scale(1.03);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22), 0 4px 14px rgba(16, 185, 129, 0.15);
}

.pay-option.active .pay-title {
    color: var(--color-primary);
}

.pay-option.paypal-gateway:hover,
.pay-option.paypal-gateway.active {
    border-color: #003087;
    background: linear-gradient(145deg, rgba(0, 48, 135, 0.06), #ffffff);
    box-shadow: 0 0 0 2px rgba(0, 48, 135, 0.18), 0 4px 14px rgba(0, 48, 135, 0.12);
}

.pay-option.paypal-gateway.active .pay-title,
.pay-option.paypal-gateway:hover .pay-title {
    color: #003087;
}

.checkout-gw-panel.paypal-checkout-panel {
    border-color: rgba(0, 48, 135, 0.25);
    background: linear-gradient(145deg, #f5f8fc, #ffffff);
}

.tracked-payment-paypal {
    color: #003087;
}

.checkout-gw-panel {
    border-color: rgba(0, 128, 96, 0.2);
    background: linear-gradient(145deg, #f8fffe, #ffffff);
}

.checkout-gw-details {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.checkout-gw-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkout-gw-field-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.checkout-gw-field-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.checkout-gw-instructions,
#checkout-payment-instructions {
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--color-border);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

html[dir="ltr"] .checkout-gw-instructions,
html[dir="ltr"] #checkout-payment-instructions,
html[dir="ltr"] .checkout-payment-form .checkout-submit-btn,
html[dir="ltr"] .product-card-footer .btn-buy-now {
    text-align: left;
}

html[dir="rtl"] .checkout-gw-instructions,
html[dir="rtl"] #checkout-payment-instructions,
html[dir="rtl"] .checkout-payment-form .checkout-submit-btn,
html[dir="rtl"] .product-card-footer .btn-buy-now {
    text-align: right;
}

.product-card-footer .btn-buy-now,
.checkout-payment-form .checkout-submit-btn {
    white-space: normal;
    line-height: 1.35;
    min-height: 2.5rem;
}

/* Checkout payment proof fields (anti-fraud) */
.checkout-proof-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 128, 96, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.checkout-proof-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.checkout-proof-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid rgba(0, 128, 96, 0.18);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-proof-input::placeholder {
    color: var(--color-text-light);
    opacity: 0.75;
}

.checkout-proof-input:hover {
    border-color: rgba(16, 185, 129, 0.35);
}

.checkout-proof-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.checkout-receipt-upload.premium-upload {
    height: auto;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    border: 1px dashed rgba(0, 128, 96, 0.28);
    border-radius: 8px;
    background: linear-gradient(145deg, #f8fffe, #ffffff);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.checkout-receipt-upload.premium-upload:hover,
.checkout-receipt-upload.premium-upload:focus-within {
    border-color: var(--color-primary);
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.checkout-receipt-upload .file-upload-btn-mock {
    color: var(--color-primary);
    font-weight: 700;
}

.checkout-receipt-preview {
    position: relative;
    margin-top: 0.5rem;
    display: inline-flex;
    align-self: flex-start;
}

.checkout-receipt-preview-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0, 128, 96, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.checkout-receipt-preview-remove {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Anti-fraud proof required alert */
.proof-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.proof-alert-card {
    width: 100%;
    max-width: 480px;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.proof-alert-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.proof-alert-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.85rem;
}

.proof-alert-message {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.75;
    text-align: start;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(254, 243, 199, 0.45);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
}

.proof-alert-dismiss {
    font-weight: 700;
}

html[dir="rtl"] .proof-alert-message {
    text-align: right;
}

/* NEW: Verification Review Popup Receipt Layout (Drawing realistic receipt) */
.payment-review-details {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.review-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.review-row-grid:last-child { margin-bottom: 0; }

.review-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.15rem;
}

.review-value {
    font-size: 0.9375rem;
    color: var(--color-text);
}

.review-value.highlight-price {
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 700;
}

.review-value.highlight-ref {
    font-family: monospace;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 0.5px;
}

.receipt-preview-box h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.receipt-image-container {
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    min-height: 280px;
    max-height: 380px;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
    gap: 0.5rem;
}

.receipt-preview-thumb-btn {
    border: none;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.receipt-preview-thumb-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

.receipt-preview-thumb {
    max-width: 100%;
    max-height: 280px;
    border-radius: 8px;
    border: 1px solid rgba(0, 128, 96, 0.2);
    display: block;
    margin: 0 auto;
    object-fit: contain;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.receipt-preview-hint {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin: 0;
}

.review-action-btns {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
}

/* Toast container styling */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    z-index: 10000;
    display: flex;
    align-items: center;
    animation: slideInRight 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideInRight {
    from { transform: translateX(120%); }
    to { transform: translateX(0); }
}

.toast-container.hidden { display: none; }

/* Premium White & Green Footer styling */
.main-footer {
    border-top: 1px solid var(--color-border);
    background: #ffffff;
    margin-top: 4.5rem;
    box-shadow: 0 -10px 40px rgba(0, 128, 96, 0.02);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 1. PRODUCT SLIDER CAROUSEL SECTION */
.footer-slider-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
}

.footer-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 0.85rem;
}

.footer-slider-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
    position: relative;
    margin: 0;
    padding-bottom: 0.95rem;
    margin-bottom: -16px;
    display: inline-block;
    border-bottom: 3px solid var(--color-primary);
}

.footer-slider-nav {
    display: flex;
    gap: 0.5rem;
}

.footer-slider-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #ffffff;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.footer-slider-nav-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 128, 96, 0.15);
}

.footer-slider-nav-btn svg {
    width: 18px;
    height: 18px;
}

/* RTL layout fixes for arrows */
html[dir="rtl"] .footer-slider-nav-btn.prev-btn svg,
html[dir="ltr"] .footer-slider-nav-btn.next-btn svg {
    transform: rotate(0deg);
}
html[dir="rtl"] .footer-slider-nav-btn.next-btn svg,
html[dir="ltr"] .footer-slider-nav-btn.prev-btn svg {
    transform: rotate(180deg);
}

.footer-slider-container {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.75rem 0.25rem 1.75rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.footer-slider-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.footer-slider-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    min-width: 275px;
    width: 275px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.footer-slider-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(0, 128, 96, 0.08);
}

.slider-card-visual {
    width: 62px;
    height: 62px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.slider-card-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.footer-slider-card:hover .slider-card-image {
    transform: scale(1.08);
}

.slider-card-icon {
    color: var(--color-primary);
    opacity: 0.85;
}

.slider-card-icon svg {
    width: 26px;
    height: 26px;
}

.slider-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex-grow: 1;
    min-width: 0;
}

.slider-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.slider-card-rating {
    font-size: 0.75rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin: 0.1rem 0;
}

.slider-card-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.slider-card-price .price-from-label {
    margin-bottom: 0;
}

.slider-card-price .original-price,
.slider-card-price .sale-price {
    display: inline;
}

.slider-card-price .original-price {
    margin-inline-end: 0.4rem;
}

.slider-card-price .original-price {
    font-size: 0.7rem;
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.slider-card-price .sale-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-primary);
}

.slider-card-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.slider-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
}

.slider-action-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.08);
}

.slider-action-btn svg {
    width: 13px;
    height: 13px;
}

/* 2. SOCIAL MEDIA SECTION ROW */
.footer-social-row {
    background: var(--color-primary-light);
    border-top: 1px solid rgba(0, 128, 96, 0.06);
    border-bottom: 1px solid rgba(0, 128, 96, 0.06);
    padding: 1.75rem 0;
}

.footer-social-row.hidden {
    display: none;
}

.footer-social-icons .social-icon-btn.hidden {
    display: none;
}

.footer-social-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.footer-social-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.footer-social-icons .social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    outline: none;
}

.footer-social-icons .social-icon-btn svg {
    transition: transform 0.3s ease;
}

.footer-social-icons .social-icon-btn:hover svg {
    transform: scale(1.1);
}

/* Social Network Specific Hover Classes */
.footer-social-icons .social-facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
}

.footer-social-icons .social-tiktok:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.footer-social-icons .social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(220, 39, 67, 0.3);
}

.footer-social-icons .social-twitter:hover {
    background: #1da1f2;
    color: #ffffff;
    border-color: #1da1f2;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(29, 161, 242, 0.3);
}

.footer-social-icons .social-youtube:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35);
}

.footer-social-icons .social-whatsapp:hover {
    color: #25d366;
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

.footer-social-icons .social-telegram:hover {
    color: #229ed9;
    background: rgba(34, 158, 217, 0.12);
    border-color: rgba(34, 158, 217, 0.35);
    transform: translateY(-2px);
}

.footer-social-icons .social-snapchat:hover {
    color: #fffc00;
    background: rgba(255, 252, 0, 0.15);
    border-color: rgba(255, 252, 0, 0.4);
    transform: translateY(-2px);
}

/* Admin social platform toggles */
.social-platform-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-platform-row {
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 10px);
    background: rgba(255, 255, 255, 0.02);
}

.social-platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.social-platform-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-text);
}

.social-platform-url-wrap {
    margin-top: 0.65rem;
}

.social-platform-url-wrap.hidden {
    display: none;
}

.social-platform-url-wrap input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 8px);
    background: var(--color-bg, #0f172a);
    color: var(--color-text);
    font-size: 0.9rem;
}

.social-platform-url-wrap input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}


/* 3. FOOTER 4-COLUMNS GRID */
.footer-main-grid {
    padding: 3.5rem 0;
    background: #ffffff;
}

.main-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

html[dir="rtl"] .main-grid-inner {
    text-align: right;
}

html[dir="ltr"] .main-grid-inner {
    text-align: left;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* About Column Details */
.footer-col-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.footer-col-about .footer-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 128, 96, 0.15);
}

.footer-col-about .footer-logo-icon svg {
    width: 18px;
    height: 18px;
}

.footer-col-about .footer-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
}

.footer-col-about .footer-highlight {
    color: var(--color-primary);
}

.footer-col-about .footer-about-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.footer-col-about .footer-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-col-about .trust-pill {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 128, 96, 0.08);
}

/* Col Titles with Underlines */
.footer-col-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
    display: inline-block;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 35px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

html[dir="rtl"] .footer-col-title::after {
    right: 0;
}

html[dir="ltr"] .footer-col-title::after {
    left: 0;
}

/* Links lists */
.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
}

.footer-links-list li a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links-list li a:hover {
    color: var(--color-primary);
}

html[dir="rtl"] .footer-links-list li a:hover {
    transform: translateX(-4px);
}

html[dir="ltr"] .footer-links-list li a:hover {
    transform: translateX(4px);
}

/* Newsletter styling */
.footer-col-newsletter .newsletter-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-col-newsletter .newsletter-input-group {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 2px;
    transition: var(--transition-smooth);
}

.footer-col-newsletter .newsletter-input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.footer-col-newsletter .newsletter-input-group input {
    border: none;
    outline: none;
    background: transparent;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    flex-grow: 1;
    color: var(--color-text);
    min-width: 0;
}

.footer-col-newsletter .newsletter-submit-btn {
    border: none;
    outline: none;
    background: var(--color-primary);
    color: #ffffff;
    padding: 0 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.footer-col-newsletter .newsletter-submit-btn:hover {
    background: var(--color-primary-hover);
}

.footer-col-newsletter .newsletter-submit-btn svg {
    transform: rotate(0deg);
}

html[dir="rtl"] .footer-col-newsletter .newsletter-submit-btn svg {
    transform: rotate(180deg);
}

.footer-col-newsletter .newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.85rem;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.footer-col-newsletter .newsletter-consent input {
    margin-top: 0.15rem;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

/* 4. BOTTOM COPYRIGHT & PAYMENTS BAR */
.footer-bottom-bar {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    padding: 1.6rem 0;
}

.bottom-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .bottom-bar-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-bottom-left {
        align-items: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

.footer-bottom-bar .copyright-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.8rem;
}

.footer-legal-links a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--color-primary);
}

.footer-legal-sep {
    color: var(--color-border);
    user-select: none;
}

.modal-policy-hint {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
}

.modal-policy-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.modal-policy-link:hover {
    text-decoration: underline;
}

.policy-modal-text-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer-bottom-bar .payment-badges-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-bar .payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    color: var(--color-text-light);
    height: 26px;
    transition: var(--transition-fast);
}

.footer-bottom-bar .payment-badge:hover {
    border-color: var(--color-primary);
}

.footer-bottom-bar .payment-badge .payment-logo {
    max-height: 18px;
    width: auto;
    opacity: 0.85;
}

.footer-bottom-bar .payment-badge:hover .payment-logo {
    opacity: 1;
}

.footer-bottom-bar .payment-badge.hidden {
    display: none;
}

.footer-bottom-bar .payment-badge.border-paypal {
    border-color: #003087;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4fa 100%);
}

.footer-bottom-bar .payment-badge.border-paypal:hover {
    border-color: #009cde;
    box-shadow: 0 2px 8px rgba(0, 48, 135, 0.15);
}

.footer-bottom-bar .payment-badge.border-paypal .payment-logo {
    max-height: 20px;
}

html[dir="ltr"] .admin-sidebar .menu-item.active {
    border-inline-end: none;
    border-inline-start: 3px solid var(--color-primary);
}

.footer-bottom-bar .ssl-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-success);
    border: 1px solid var(--color-success-light);
    background: var(--color-success-light);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}


/* Policy modal custom formatting content */
.policy-modal-text-content p {
    margin-bottom: 1rem;
}

.policy-modal-text-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.policy-modal-text-content ul {
    margin-bottom: 1.25rem;
    list-style-type: disc;
}

html[dir="rtl"] .policy-modal-text-content ul {
    padding-right: 1.25rem;
    padding-left: 0;
}

html[dir="ltr"] .policy-modal-text-content ul {
    padding-left: 1.25rem;
    padding-right: 0;
}

.policy-modal-text-content li {
    margin-bottom: 0.45rem;
}


/* Order Timeline Stepper Styling */
.stepper-container {
    margin: 1.5rem 0 2rem 0;
    padding: 1.5rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.stepper-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stepper-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.stepper-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-border);
    z-index: 1;
    border-radius: 2px;
}

/* Connective active progress line overlay */
.stepper-progress-line {
    position: absolute;
    top: 20px;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    z-index: 2;
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%; /* Dynamic from JS */
}

/* Modifier color states for the active progress line */
.stepper-progress-line.warning {
    background: var(--color-warning);
}
.stepper-progress-line.danger {
    background: var(--color-danger);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 25%;
    text-align: center;
}

.step-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg-surface);
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.step-label {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.step-subtext {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    line-height: 1.45;
    margin-top: 0.2rem;
}

/* Completed Step state */
.step-item.completed .step-bubble {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 128, 96, 0.2);
}
.step-item.completed .step-label {
    color: var(--color-primary);
}

/* Active Pending Step state */
.step-item.active-pending .step-bubble {
    background: var(--color-warning);
    border-color: var(--color-warning);
    color: #ffffff;
    animation: pulse-orange 2s infinite;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.step-item.active-pending .step-label {
    color: var(--color-warning);
}

/* Active Failed / Rejected Step state */
.step-item.active-failed .step-bubble {
    background: var(--color-danger);
    border-color: var(--color-danger);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}
.step-item.active-failed .step-label {
    color: var(--color-danger);
}

/* Active Normal state (e.g. for final step when active but not finalized or just highlight) */
.step-item.active-success .step-bubble {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 128, 96, 0.1);
}
.step-item.active-success .step-label {
    color: var(--color-primary);
}

/* Disabled state */
.step-item.disabled .step-bubble {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}
.step-item.disabled .step-label {
    color: var(--color-text-muted);
}

/* Animations */
@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Responsive vertical layout for mobile */
@media (max-width: 600px) {
    .stepper-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .stepper-steps::before {
        left: auto;
        right: 20px;
        top: 0;
        bottom: 0;
        width: 4px;
        height: 100%;
    }
    
    .stepper-progress-line {
        left: auto;
        right: 20px;
        top: 0;
        width: 4px;
        height: 0%;
        transition: height 0.4s ease;
    }
    
    .step-item {
        flex-direction: row;
        width: 100%;
        text-align: right;
        gap: 1rem;
    }
    
    .step-label {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
}

.hidden { display: none !important; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .gateways-grid {
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        position: sticky;
        top: 0;
        z-index: 9999;
    }

    .header-container {
        display: block;
        padding: 0.65rem 1rem;
    }

    .header-top-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    .mobile-nav-toggle {
        display: flex;
        order: unset;
    }

    .logo-area {
        flex: unset;
        min-width: 0;
        max-width: 100%;
        order: unset;
        justify-self: center;
        overflow: hidden;
    }

    .logo-icon {
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 1.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0.4rem;
        flex-shrink: 0;
        order: unset;
    }

    .lang-selector-container {
        order: 1;
    }

    .cart-toggle-btn {
        order: 2;
    }

    .customer-auth-btn {
        order: 3;
    }

    .search-box {
        order: 99;
    }

    /* Nav fully out of header flow until drawer opens */
    .nav-links,
    .navbar-menu {
        display: none !important;
        position: fixed;
        top: 0;
        inset-inline-end: 0;
        width: min(85vw, 320px);
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        gap: 0.35rem;
        padding: 4.75rem 1rem 1.5rem;
        margin: 0;
        background: linear-gradient(
            165deg,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(236, 253, 245, 0.94) 45%,
            rgba(209, 250, 229, 0.9) 100%
        );
        border-inline-start: 1px solid rgba(16, 185, 129, 0.28);
        box-shadow: -8px 0 32px rgba(6, 78, 59, 0.14);
        z-index: 10001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        pointer-events: none;
        visibility: hidden;
    }

    html[dir="ltr"] .nav-links,
    html[dir="ltr"] .navbar-menu {
        inset-inline-end: auto;
        inset-inline-start: 0;
        border-inline-start: none;
        border-inline-end: 1px solid var(--color-border);
    }

    body.mobile-nav-open .nav-links,
    body.mobile-nav-open .navbar-menu {
        display: flex !important;
        pointer-events: auto;
        visibility: visible;
    }

    .nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.65rem 1rem;
        font-size: 1rem;
        width: 100%;
    }

    .search-box {
        display: none;
    }

    .customer-auth-btn span:not(.customer-auth-name) {
        display: none;
    }

    .customer-auth-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }

    .lang-selector-btn {
        min-height: 44px;
        padding: 0.5rem 0.65rem;
    }

    .lang-selector-btn #current-lang-text {
        display: none;
    }

    .cart-toggle-btn {
        width: 44px;
        height: 44px;
    }

    .main-content {
        padding: 1.25rem 1rem;
    }

    .hero-section {
        padding: 2rem 1.25rem;
    }

    .hero-content h1 {
        font-size: 1.65rem;
    }

    .trust-badges-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .store-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .category-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 0.4rem;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .cat-tab {
        flex-shrink: 0;
        min-height: 44px;
        padding: 0.55rem 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .product-card-body h3 {
        font-size: 0.95rem;
    }

    .product-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .product-card-footer .btn-buy-now {
        width: 100%;
        min-height: 44px;
    }

    .product-modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: calc(100vw - 1.5rem);
        max-height: 90vh;
        max-height: 90dvh;
        padding: 1.25rem;
        margin: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-footer-row {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-footer-row .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .duration-selector {
        gap: 0.4rem;
    }

    .duration-pill span {
        white-space: normal;
        text-align: center;
        min-width: calc(50% - 0.25rem);
        flex: 1 1 calc(50% - 0.25rem);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .payment-options {
        flex-direction: column;
    }

    .payment-options .pay-option {
        flex: 1 1 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-duration-pricing-grid {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-sidebar-toggle {
        display: flex;
        position: fixed;
        top: 4.25rem;
        z-index: 9998;
        width: auto;
        min-width: 44px;
        margin: 0;
        box-shadow: var(--shadow-sm);
        direction: ltr;
        right: 0.75rem;
        left: auto;
        inset-inline-end: auto;
        inset-inline-start: auto;
    }

    html[dir="ltr"] body.admin-page .admin-sidebar-toggle {
        right: auto;
        left: 0.75rem;
    }

    #view-admin,
    body.admin-page .admin-layout,
    #admin-dashboard.admin-layout {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    body.admin-page .admin-layout,
    #admin-dashboard.admin-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 0;
        direction: ltr;
    }

    .admin-sidebar-overlay {
        z-index: 9999;
    }

    body.admin-page .admin-main-panel {
        padding-top: 3.25rem;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        flex: none;
        inset-inline-end: 0;
        inset-inline-start: auto;
        width: min(85vw, 320px);
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        z-index: 10000;
        margin: 0;
        padding: 1rem 0.85rem 1.25rem;
        box-sizing: border-box;
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition:
            transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0.3s,
            opacity 0.3s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: linear-gradient(
            165deg,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(236, 253, 245, 0.94) 45%,
            rgba(209, 250, 229, 0.9) 100%
        );
        border-inline-start: 1px solid rgba(16, 185, 129, 0.28);
        box-shadow: -8px 0 32px rgba(6, 78, 59, 0.14);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    html[dir="rtl"] .admin-sidebar {
        inset-inline-end: 0;
        inset-inline-start: auto;
        transform: translate3d(100%, 0, 0);
    }

    html[dir="ltr"] .admin-sidebar {
        inset-inline-end: auto;
        inset-inline-start: 0;
        transform: translate3d(-100%, 0, 0);
    }

    body.admin-sidebar-open .admin-sidebar {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-menu {
        gap: 0;
        margin-bottom: 1rem;
    }

    .sidebar-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .sidebar-menu li:last-child {
        border-bottom: none;
    }

    .sidebar-menu .menu-item {
        display: block;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.92rem;
        gap: 0.45rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    .admin-main-panel {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        margin: 0;
        overflow-x: hidden;
        padding-inline: 0.75rem;
        box-sizing: border-box;
    }

    .admin-tab-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    .tab-header h2,
    .tab-header p {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    .flex-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .flex-header .btn {
        width: 100%;
        min-height: 44px;
    }

    .tab-header h2 {
        font-size: 1.25rem;
    }

    .table-container,
    .admin-orders-table-wrap,
    .admin-products-table-wrap,
    .admin-customers-table-wrap,
    .admin-deposits-table-wrap,
    .admin-freeze-appeals-table-wrap,
    .purchased-keys-table-wrap {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Universal fluidity — prevent horizontal bleed on mobile */
    .header-container,
    .main-content,
    .hero-section,
    .store-filter-container,
    .max-width-md,
    .footer-slider-section,
    .footer-main-grid,
    .footer-bottom-bar {
        max-width: 100%;
        box-sizing: border-box;
    }

    img,
    .product-card-image,
    .product-modal-image,
    .payment-logo,
    .gw-logo-img {
        max-width: 100%;
        height: auto;
    }

    .hero-content h1 {
        word-wrap: break-word;
    }

    #admin-product-modal .admin-product-modal-header,
    #admin-product-modal .admin-product-modal-body,
    #admin-product-modal .admin-product-modal-footer {
        padding-inline: 1.25rem;
    }

    #admin-product-modal .admin-product-modal-header {
        padding-top: 1.5rem;
        padding-inline-start: 2.75rem;
    }

    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 40px;
    }

    .footer-slider-section {
        padding: 2rem 1rem 1rem;
    }

    .footer-slider-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .footer-slider-card {
        min-width: min(275px, calc(100vw - 3rem));
        width: min(275px, calc(100vw - 3rem));
    }

    .footer-slider-nav-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 420px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .hero-content h1 {
        font-size: 1.45rem;
    }

    .footer-slider-card {
        min-width: calc(100vw - 2.5rem);
        width: calc(100vw - 2.5rem);
    }

    .header-top-row {
        gap: 0.35rem;
    }

    .header-actions {
        gap: 0.25rem;
    }

    .responsive-data-table tbody td {
        padding: 0.65rem 0.85rem;
        font-size: 0.875rem;
    }
}

/* Header Lang Dropdown Selector Styles */
.lang-selector-container {
    position: relative;
    display: inline-block;
}
.lang-selector-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.85rem;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.lang-selector-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text-light);
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 130px;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}
.lang-dropdown.hidden {
    display: none;
}
.lang-option {
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
    text-align: right;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    width: 100%;
}
html[dir="ltr"] .lang-option {
    text-align: left;
}
.lang-option:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
/* RTL support for lang switcher placement */
html[dir="ltr"] .lang-dropdown {
    right: auto;
    left: 0;
}

/* --- Customer Auth Button --- */
.customer-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #00a67e 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 128, 96, 0.25);
    white-space: nowrap;
    font-family: inherit;
}

.customer-auth-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, #008f6b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 128, 96, 0.3);
}

.customer-auth-name {
    opacity: 0.92;
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-auth-name.hidden {
    display: none;
}

/* --- Auth Modal (Premium Emerald Glass) --- */
.auth-modal-overlay {
    background: rgba(6, 24, 20, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-modal-shell {
    max-width: 440px;
    width: min(92vw, 440px);
    padding: 2.25rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: var(--radius-lg);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(240, 253, 244, 0.88) 45%,
        rgba(236, 253, 245, 0.9) 100%
    );
    box-shadow:
        0 24px 48px rgba(6, 78, 59, 0.18),
        0 0 0 1px rgba(16, 185, 129, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.auth-glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(52, 211, 153, 0.12), rgba(16, 185, 129, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-modal-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 55%;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.auth-modal-close {
    z-index: 2;
}

.auth-modal-header,
.auth-tabs,
.auth-modal-body {
    position: relative;
    z-index: 1;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.85rem;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 95, 70, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.2);
    animation: authIconPulse 3s ease-in-out infinite;
}

@keyframes authIconPulse {
    0%, 100% { box-shadow: 0 0 18px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 28px rgba(16, 185, 129, 0.35); }
}

.auth-modal-icon svg {
    width: 26px;
    height: 26px;
}

.auth-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #047857 0%, #10b981 55%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.auth-modal-header p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.55;
    max-width: 32ch;
    margin-inline: auto;
}

.auth-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.35rem;
    background: rgba(6, 78, 59, 0.06);
    padding: 0.3rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.12);
    flex-shrink: 0;
}

.auth-modal-body {
    padding-bottom: 0.35rem;
}

.auth-tab {
    flex: 1;
    padding: 0.62rem 0.85rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: calc(var(--radius-md) - 2px);
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: 0.01em;
}

.auth-tab:hover:not(.active) {
    color: #059669;
    background: rgba(16, 185, 129, 0.06);
}

.auth-tab.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow:
        0 4px 14px rgba(5, 150, 105, 0.35),
        0 0 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

.auth-form .form-group,
.auth-input-group {
    margin-bottom: 1.05rem;
    text-align: start;
}

.auth-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #065f46;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-form input,
.auth-input {
    width: 100%;
    padding: 0.72rem 0.95rem;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.75);
    color: var(--color-text);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.15s ease;
}

.auth-form input::placeholder,
.auth-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.75;
}

.auth-form input:hover,
.auth-input:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(255, 255, 255, 0.9);
}

.auth-form input:focus,
.auth-input:focus {
    outline: none;
    border-color: #10b981;
    background: #fff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover {
    color: #6b7280;
}

.password-toggle-btn:focus-visible {
    outline: 2px solid rgba(16, 185, 129, 0.45);
    outline-offset: 1px;
}

[dir="rtl"] .password-toggle-btn {
    right: auto;
    left: 0.65rem;
}

[dir="rtl"] .password-input-wrap input {
    padding-right: 0.95rem;
    padding-left: 2.75rem;
}

[dir="rtl"] .customer-settings-form .password-input-wrap input {
    padding-right: 0.85rem;
    padding-left: 2.75rem;
}

.auth-remember-me {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 1.15rem;
    padding: 0.35rem 0;
}

.auth-remember-me .emerald-checkbox-label {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.auth-or-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0 0.95rem;
    color: var(--color-text-light);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.04em;
}

.auth-or-divider::before,
.auth-or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.28), transparent);
}

.btn-google-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.72rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #3c4043;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-google-signin:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #c6c9cc;
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.16);
}

.btn-google-signin:active:not(:disabled) {
    background: #f1f3f4;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}

.btn-google-signin:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.btn-google-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.btn-google-signin.is-loading .btn-google-icon {
    opacity: 0.35;
}

.btn-google-signin.is-loading .btn-google-label::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-inline-start: 0.45rem;
    border: 2px solid rgba(66, 133, 244, 0.25);
    border-top-color: #4285f4;
    border-radius: 50%;
    vertical-align: -0.12em;
    animation: btn-google-spin 0.7s linear infinite;
}

@keyframes btn-google-spin {
    to { transform: rotate(360deg); }
}

.auth-submit-btn {
    margin-top: 0.25rem;
    padding: 0.78rem 1rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auth-submit-signin {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.auth-submit-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.45), 0 0 16px rgba(16, 185, 129, 0.25);
}

.auth-submit-signup {
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
    border: 1px solid rgba(52, 211, 153, 0.45);
    box-shadow: 0 6px 20px rgba(6, 95, 70, 0.3);
}

.auth-submit-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(6, 95, 70, 0.4), 0 0 16px rgba(16, 185, 129, 0.2);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Registration DOB & Gender */
.reg-dob-group {
    margin-bottom: 1.05rem;
}

.reg-dob-fieldset {
    margin: 0;
    padding: 20px;
    background: rgba(16, 185, 129, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    text-align: start;
}

.reg-dob-legend {
    display: block;
    width: 100%;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding: 0;
    color: #065f46;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: start;
}

.reg-dob-segments {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    direction: inherit;
}

.reg-dob-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.reg-dob-segment-year {
    flex: 1.35;
}

.reg-dob-input {
    width: 100%;
    padding: 0.72rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    letter-spacing: 0.06em;
    color: var(--color-text);
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
    outline: none;
}

.reg-dob-input::placeholder {
    color: rgba(100, 116, 139, 0.55);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.reg-dob-input:hover {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.05);
}

.reg-dob-input:focus {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.07);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.reg-dob-separator {
    flex-shrink: 0;
    align-self: center;
    padding-block-end: 1.65rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(16, 185, 129, 0.45);
    user-select: none;
    line-height: 1;
}

.reg-dob-segment-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(6, 95, 70, 0.75);
    text-align: center;
    white-space: nowrap;
    width: 100%;
}

.auth-gender-group {
    margin-bottom: 1.05rem;
}

.auth-gender-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #065f46;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: start;
}

.reg-gender-pills {
    display: flex;
    flex-direction: row;
    gap: 0.55rem;
    width: 100%;
    direction: inherit;
}

.reg-gender-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--color-text-light);
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    user-select: none;
}

.reg-gender-pill:hover {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.06);
    color: #047857;
}

.reg-gender-pill.active {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
    border-color: rgba(16, 185, 129, 0.5);
    color: #fff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3), 0 0 10px rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.reg-dob-group,
.auth-gender-group {
    text-align: start;
}

html[dir="ltr"] .reg-dob-fieldset,
html[dir="ltr"] .reg-dob-segments,
html[dir="ltr"] .reg-gender-pills {
    direction: ltr;
}

html[dir="rtl"] .reg-dob-fieldset,
html[dir="rtl"] .reg-dob-segments,
html[dir="rtl"] .reg-gender-pills {
    direction: rtl;
}

html[dir="rtl"] .reg-dob-input {
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: center;
}

/* Registration validation modal */
.reg-validation-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.reg-validation-modal-card {
    width: 100%;
    max-width: 460px;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 20px rgba(16, 185, 129, 0.12);
}

.reg-validation-modal-icon {
    font-size: 2.1rem;
    margin-bottom: 0.65rem;
}

.reg-validation-modal-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: #047857;
    margin-bottom: 0.85rem;
}

.reg-validation-message {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.7;
    text-align: start;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
}

.reg-validation-dismiss {
    font-weight: 700;
}

.reg-validation-shake {
    animation: reg-validation-shake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes reg-validation-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Security tamper modal (emerald shake) */
.security-tamper-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.security-tamper-modal-card {
    width: 100%;
    max-width: 460px;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 24px rgba(16, 185, 129, 0.18);
}

.security-tamper-modal-icon {
    font-size: 2.1rem;
    margin-bottom: 0.65rem;
}

.security-tamper-modal-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: #047857;
    margin-bottom: 0.85rem;
}

.security-tamper-message {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.7;
    text-align: start;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
}

.security-tamper-dismiss {
    font-weight: 700;
}

.security-tamper-shake {
    animation: reg-validation-shake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@media (max-width: 480px) {
    .reg-gender-pills {
        flex-direction: column;
    }

    .reg-dob-fieldset {
        padding: 16px 12px;
    }

    .reg-dob-segments {
        gap: 0.2rem;
    }

    .reg-dob-input {
        padding: 0.62rem 0.35rem;
        font-size: 0.95rem;
    }

    .reg-dob-separator {
        font-size: 1rem;
        padding-block-end: 1.5rem;
    }

    .reg-dob-segment-label {
        font-size: 0.6rem;
    }

    .auth-modal-shell {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .auth-modal-header h2 {
        font-size: 1.2rem;
    }

    .auth-tab {
        font-size: 0.78rem;
        padding: 0.55rem 0.5rem;
    }
}

/* ===== Admin password gate modal (emerald glass) ===== */
.admin-auth-modal-overlay {
    background: rgba(6, 24, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1100;
}

.admin-auth-modal-shell {
    max-width: 400px;
    width: min(92vw, 400px);
    padding: 2.25rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-lg);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(240, 253, 244, 0.9) 45%,
        rgba(236, 253, 245, 0.92) 100%
    );
    box-shadow:
        0 24px 48px rgba(6, 78, 59, 0.2),
        0 0 0 1px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.admin-auth-glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(52, 211, 153, 0.15), rgba(16, 185, 129, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.admin-auth-modal-glow {
    position: absolute;
    top: -42%;
    left: 50%;
    transform: translateX(-50%);
    width: 125%;
    height: 58%;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.24) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.admin-auth-modal-header,
.admin-auth-form {
    position: relative;
    z-index: 1;
}

.admin-auth-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-auth-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.85rem;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 95, 70, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.38);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.22);
}

.admin-auth-modal-icon svg {
    width: 26px;
    height: 26px;
}

.admin-auth-modal-header h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
    background: linear-gradient(135deg, #047857 0%, #10b981 55%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.admin-auth-modal-header p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.55;
    max-width: 30ch;
    margin-inline: auto;
}

.admin-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.admin-auth-submit-btn {
    margin-top: 0.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@media (max-width: 480px) {
    .admin-auth-modal-shell {
        padding: 1.85rem 1.35rem 1.65rem;
    }

    .admin-auth-modal-header h2 {
        font-size: 1.25rem;
    }
}

/* ===== Checkout auth gate modal (emerald glass) ===== */
.checkout-gate-modal-overlay {
    background: rgba(6, 24, 20, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1050;
}

.checkout-gate-modal-shell {
    max-width: 420px;
    width: min(92vw, 420px);
    padding: 2.25rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.26);
    border-radius: var(--radius-lg);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(240, 253, 244, 0.9) 45%,
        rgba(236, 253, 245, 0.92) 100%
    );
    box-shadow:
        0 24px 48px rgba(6, 78, 59, 0.2),
        0 0 0 1px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.checkout-gate-modal-glow {
    position: absolute;
    top: -42%;
    left: 50%;
    transform: translateX(-50%);
    width: 125%;
    height: 58%;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.24) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.checkout-gate-modal-close {
    z-index: 2;
}

.checkout-gate-modal-header,
.checkout-gate-modal-actions {
    position: relative;
    z-index: 1;
}

.checkout-gate-modal-header {
    text-align: center;
    margin-bottom: 1.65rem;
}

.checkout-gate-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.85rem;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 95, 70, 0.09) 100%);
    border: 1px solid rgba(16, 185, 129, 0.36);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.22);
    animation: authIconPulse 3s ease-in-out infinite;
}

.checkout-gate-modal-icon svg {
    width: 26px;
    height: 26px;
}

.checkout-gate-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #047857 0%, #10b981 55%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.checkout-gate-modal-header p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.55;
    max-width: 32ch;
    margin-inline: auto;
}

.checkout-gate-quick-note {
    font-size: 13px;
    color: var(--color-primary);
    text-align: center;
    margin: 0 0 1rem;
    animation: fadeIn 0.4s ease-out forwards;
}

.checkout-gate-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-gate-register-btn {
    font-weight: 700;
}

@media (max-width: 480px) {
    .checkout-gate-modal-shell {
        padding: 1.85rem 1.35rem 1.65rem;
    }

    .checkout-gate-modal-header h2 {
        font-size: 1.22rem;
    }
}

/* ===== Checkout contact modal (emerald glass) ===== */
.checkout-contact-modal-overlay {
    background: rgba(6, 24, 20, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1060;
}

.checkout-contact-modal-shell {
    max-width: 440px;
    width: min(92vw, 440px);
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.26);
    border-radius: var(--radius-lg);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(240, 253, 244, 0.9) 45%,
        rgba(236, 253, 245, 0.92) 100%
    );
    box-shadow:
        0 24px 48px rgba(6, 78, 59, 0.2),
        0 0 0 1px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.checkout-contact-modal-glow {
    position: absolute;
    top: -42%;
    left: 50%;
    transform: translateX(-50%);
    width: 125%;
    height: 58%;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.24) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.checkout-contact-modal-header,
.checkout-contact-form,
.checkout-contact-modal-actions {
    position: relative;
    z-index: 1;
}

.checkout-contact-modal-header {
    text-align: center;
    margin-bottom: 1.35rem;
}

.checkout-contact-modal-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
    background: linear-gradient(135deg, #047857 0%, #10b981 55%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.checkout-contact-modal-header p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.55;
    max-width: 34ch;
    margin-inline: auto;
}

.checkout-contact-form .form-group {
    margin-bottom: 0.85rem;
}

.checkout-contact-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.35rem;
    display: block;
}

.checkout-contact-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.admin-order-contact-block {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--color-text-light);
    line-height: 1.45;
}

.admin-order-contact-line {
    margin-top: 0.15rem;
}

@media (max-width: 480px) {
    .checkout-contact-modal-shell {
        padding: 1.65rem 1.25rem 1.5rem;
    }

    .checkout-contact-modal-header h2 {
        font-size: 1.18rem;
    }
}

.emerald-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    user-select: none;
    text-align: start;
}

.emerald-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.emerald-checkbox-custom {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid #34d399;
    border-radius: 0.3rem;
    background: linear-gradient(145deg, rgba(6, 95, 70, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
    box-shadow: inset 0 1px 2px rgba(6, 78, 59, 0.06);
    transition: var(--transition-fast);
    position: relative;
}

.emerald-checkbox-custom::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 0.3rem;
    height: 0.55rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.emerald-checkbox-input:focus-visible + .emerald-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.emerald-checkbox-input:checked + .emerald-checkbox-custom {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.emerald-checkbox-input:checked + .emerald-checkbox-custom::after {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.emerald-checkbox-label:hover .emerald-checkbox-custom {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.admin-product-image-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.55rem;
}

.admin-product-image-preview {
    position: relative;
    margin-top: 0.75rem;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.admin-product-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-product-image-clear {
    position: absolute;
    top: 0.2rem;
    inset-inline-end: 0.2rem;
    width: 1.35rem;
    height: 1.35rem;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Customer Dashboard --- */
.customer-dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    margin-top: 0.85rem;
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 1rem 2rem;
}

html[dir="rtl"] .customer-dashboard-layout {
    direction: rtl;
}

.customer-sidebar {
    padding: 1.2rem;
    height: fit-content;
    position: sticky;
    top: 5rem;
}

.customer-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--color-border);
}

.customer-avatar {
    width: 44px;
    height: 44px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.customer-avatar svg {
    width: 22px;
    height: 22px;
}

.customer-profile h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    word-break: break-word;
}

.customer-profile p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    word-break: break-all;
}

.customer-sidebar-menu {
    list-style: none;
    margin-bottom: 1rem;
}

.customer-menu-item {
    position: relative;
    display: block;
    padding: 0.65rem 0.85rem;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    transition: var(--transition-fast);
}

.customer-menu-item:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.customer-menu-item.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-inline-end: 3px solid var(--color-primary);
}

html[dir="ltr"] .customer-menu-item.active {
    border-inline-end: none;
    border-inline-start: 3px solid var(--color-primary);
}

.customer-main-panel {
    min-width: 0;
    position: relative;
}

.customer-dashboard-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.customer-welcome-message {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(120deg, #047857, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #047857;
    line-height: 1.3;
}

.customer-notif-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(236, 253, 245, 0.9), #ffffff);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.customer-notif-bell-btn:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18);
}

.customer-notif-bell-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.notification-badge-unread {
    position: absolute;
    top: -0.35rem;
    inset-inline-end: -0.35rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(239, 68, 68, 0.65);
    animation: notif-badge-pulse 2s ease-in-out infinite;
}

@keyframes notif-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(239, 68, 68, 0.85); }
}

.customer-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.customer-notifications-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.notification-card {
    position: relative;
    padding: 1rem 1.15rem;
    padding-inline-end: 2.75rem;
    font-size: 0.9375rem;
    border-inline-start: 3px solid transparent;
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(236, 253, 245, 0.45));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.18);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.08);
}

.notification-card.unread {
    border-inline-start-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.72), rgba(255, 255, 255, 0.88));
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.22), 0 4px 20px rgba(16, 185, 129, 0.12);
    animation: notification-unread-glow 2.4s ease-in-out infinite;
}

.notification-card.read {
    opacity: 0.82;
    border-inline-start-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.85), rgba(255, 255, 255, 0.7));
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.notification-card.dismissing {
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
}

@keyframes notification-unread-glow {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.22), 0 4px 20px rgba(16, 185, 129, 0.1);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.38), 0 0 18px rgba(16, 185, 129, 0.28);
    }
}

.notification-dismiss-btn {
    position: absolute;
    top: 0.55rem;
    inset-inline-end: 0.55rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.notification-dismiss-btn:hover,
.notification-dismiss-btn:focus-visible {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    outline: none;
}

.notification-dismiss-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
}

.notification-dismiss-icon {
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 700;
}

.notification-dismiss-tooltip {
    position: absolute;
    top: calc(100% + 0.35rem);
    inset-inline-end: 0;
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.92);
    color: #f9fafb;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0.2s ease-in-out;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.notification-dismiss-btn:hover .notification-dismiss-tooltip,
.notification-dismiss-btn:focus-visible .notification-dismiss-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-card.customer-flash-pulse {
    animation: notification-unread-glow 1.2s ease-in-out infinite, customer-flash-pulse 1.5s ease-in-out infinite;
}

.notification-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.notification-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    flex: 1 1 auto;
    min-width: 0;
}

.notification-unread-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.notification-card-body {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0.65rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.notification-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.notification-card-from {
    font-weight: 600;
    color: #047857;
}

.notification-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: stretch;
}

.notification-card-actions .btn-sm {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
}

.notification-reply-form .notif-reply-btn {
    flex-shrink: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
}

.tab-badge-dot {
    position: absolute;
    top: 0.45rem;
    inset-inline-end: 0.5rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(239, 68, 68, 0.75);
    animation: tab-badge-dot-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.tab-badge-dot.hidden {
    display: none;
}

.tab-badge-count {
    position: absolute;
    top: 0.35rem;
    inset-inline-end: 0.45rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(239, 68, 68, 0.65);
    animation: tab-badge-dot-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.tab-badge-count.hidden {
    display: none;
}

@keyframes tab-badge-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(239, 68, 68, 0.55); transform: scale(1); }
    50% { box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(239, 68, 68, 0.9); transform: scale(1.12); }
}

.admin-customer-chat-btn {
    position: relative;
}

.button-badge-dot {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.75);
    animation: badge-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(239, 68, 68, 0.55); transform: scale(1); }
    50% { box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(239, 68, 68, 0.9); transform: scale(1.12); }
}

.notification-thread {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(16, 185, 129, 0.12);
}

.notification-thread-message {
    max-width: 92%;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.55;
    word-break: break-word;
}

.chat-bubble-admin {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #065f46;
}

.chat-bubble-customer {
    align-self: flex-end;
    background: linear-gradient(135deg, #374151, #1f2937);
    border: 1px solid rgba(55, 65, 81, 0.5);
    color: #f9fafb;
}

html[dir="rtl"] .chat-bubble-admin {
    align-self: flex-end;
}

html[dir="rtl"] .chat-bubble-customer {
    align-self: flex-start;
}

.notification-thread-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    opacity: 0.88;
}

.notification-thread-sender {
    font-weight: 700;
}

.notification-thread-text {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.875rem;
}

.notification-reply-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
    margin-bottom: 0.65rem;
}

.chat-reply-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.chat-attach-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.1));
    color: #047857;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-attach-btn:hover {
    border-color: var(--color-primary);
    background: rgba(16, 185, 129, 0.22);
}

.chat-image-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    width: fit-content;
    max-width: 100%;
    font-size: 0.875rem;
}

.chat-image-preview.hidden {
    display: none;
}

.chat-image-preview-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.chat-image-preview-remove {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.12);
    color: var(--color-text);
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-image-preview-remove:hover {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.chat-bubble-image {
    display: block;
    max-width: 200px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: 0.35rem;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-fast);
}

.chat-bubble-image:hover {
    opacity: 0.92;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.chat-bubble-customer .chat-bubble-image {
    border-color: rgba(255, 255, 255, 0.15);
}

.notification-reply-input {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
    transition: var(--transition-fast);
}

.notification-reply-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.admin-chat-modal-shell {
    background: linear-gradient(160deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(16, 185, 129, 0.22);
    max-width: 640px;
}

.admin-chat-scroll-body {
    max-height: min(62vh, 520px);
    overflow-y: auto;
}

.admin-chat-conversations-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-chat-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.admin-chat-thread-card {
    padding: 0.9rem 1rem;
    font-size: 0.9375rem;
}

.admin-chat-thread-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.admin-chat-thread-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
}

.admin-chat-thread-date {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.admin-chat-thread-body {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.55;
    margin: 0 0 0.5rem;
    white-space: pre-wrap;
}

.admin-chat-reply-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(16, 185, 129, 0.12);
}

.admin-chat-reply-input {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
}

.admin-chat-reply-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.frozen-account-appeal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

.frozen-account-appeal-overlay.hidden {
    display: none;
    pointer-events: none;
}

body.frozen-appeal-locked {
    overflow: hidden;
}

.frozen-account-appeal-card {
    position: relative;
    max-width: 520px;
    width: 100%;
    max-height: min(92vh, 640px);
    overflow-y: auto;
    padding: 1.5rem 1.35rem;
    padding-top: 2.75rem;
    border: 1px solid rgba(220, 38, 38, 0.28);
    background: linear-gradient(160deg, rgba(254, 242, 242, 0.96), #ffffff);
    font-size: 0.875rem;
    box-shadow: 0 24px 48px rgba(127, 29, 29, 0.18);
}

.frozen-appeal-logout-btn {
    position: absolute;
    top: 0.85rem;
    inset-inline-end: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: linear-gradient(145deg, #ffffff, rgba(248, 250, 252, 0.95));
    color: var(--color-text);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.35;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    z-index: 1;
}

.frozen-appeal-logout-btn:hover {
    border-color: rgba(16, 185, 129, 0.45);
    color: #047857;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
    transform: translateY(-1px);
}

.frozen-appeal-logout-btn:active {
    transform: translateY(0);
}

.frozen-account-appeal-card h2 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    color: #b91c1c;
    line-height: 1.45;
}

.frozen-appeal-desc {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.frozen-appeal-compose {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.frozen-appeal-input {
    width: 100%;
    min-height: 5.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.55;
    resize: vertical;
    background: #fff;
    transition: var(--transition-fast);
}

.frozen-appeal-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.frozen-appeal-actions-row {
    margin-top: 0.15rem;
}

.frozen-appeal-submit-btn {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.875rem;
}

.frozen-appeals-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(220, 38, 38, 0.14);
    max-height: min(38vh, 260px);
    overflow-y: auto;
}

.frozen-appeals-thread {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.frozen-appeals-empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.admin-freeze-appeals-table-wrap {
    overflow-x: auto;
}

.admin-freeze-appeals-table {
    width: 100%;
    font-size: 0.875rem;
}

.admin-freeze-appeals-table td,
.admin-freeze-appeals-table th {
    font-size: 0.875rem;
}

.admin-freeze-appeals-empty-cell {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.admin-freeze-appeal-message-cell {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-freeze-appeal-unread-row td {
    background: rgba(220, 38, 38, 0.04);
}

.admin-freeze-appeal-modal-shell {
    background: linear-gradient(160deg, rgba(254, 242, 242, 0.92), rgba(255, 255, 255, 0.97));
    border: 1px solid rgba(220, 38, 38, 0.22);
    max-width: 640px;
}

.admin-freeze-appeal-modal-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.admin-freeze-appeal-scroll-body {
    max-height: min(52vh, 420px);
    overflow-y: auto;
}

.admin-freeze-appeal-thread {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.25rem 0;
}

.admin-freeze-appeal-reply-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
}

#image-lightbox-modal.image-lightbox-overlay {
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#image-lightbox-modal.image-lightbox-overlay.hidden {
    display: none;
}

.lightbox-close-btn {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 95vh;
    pointer-events: none;
}

/* Firestore boot progress — thin top bar + delayed corner spinner */
.firestore-boot-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100000;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.firestore-boot-progress.is-hiding {
    opacity: 0;
}

.firestore-boot-progress-bar {
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    box-shadow: 0 0 8px var(--color-primary-glow);
    animation: firestore-boot-indeterminate 1.15s ease-in-out infinite;
}

@keyframes firestore-boot-indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(420%); }
}

.firestore-boot-spinner-wrap {
    position: fixed;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    pointer-events: none;
    opacity: 0;
    animation: firestore-boot-spinner-in 0.25s ease forwards;
}

@keyframes firestore-boot-spinner-in {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.firestore-boot-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 128, 96, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: firestore-boot-spin 0.75s linear infinite;
}

@keyframes firestore-boot-spin {
    to { transform: rotate(360deg); }
}

#products-list.storefront-syncing {
    opacity: 0.72;
    transition: opacity 0.35s ease;
}

#products-list.storefront-synced {
    opacity: 1;
    transition: opacity 0.35s ease;
}

.lightbox-image,
#image-lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.admin-freeze-appeal-reply-input {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
}

.admin-freeze-appeal-reply-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

@media (max-width: 640px) {
    .frozen-account-appeal-card {
        padding: 1.15rem 1rem;
        padding-top: 2.65rem;
        max-height: 94vh;
    }

    .frozen-appeal-logout-btn {
        top: 0.65rem;
        inset-inline-end: 0.65rem;
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    .frozen-appeals-preview {
        max-height: min(32vh, 200px);
    }
}

.customer-mobile-tabs {
    display: none;
    gap: 0.35rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.customer-mobile-tab {
    position: relative;
    flex-shrink: 0;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}

.customer-mobile-tab.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.customer-tab-content {
    display: none;
}

.customer-tab-content.active {
    display: block;
}

.customer-inventory-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.inventory-key-code {
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    background: var(--color-bg-secondary);
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--color-border);
    word-break: break-all;
}

.inventory-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--color-text-light);
}

.customer-orders-table-wrap {
    overflow-x: auto;
}

.customer-orders-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.customer-orders-table th,
.customer-orders-table td {
    padding: 0.75rem 1rem;
    text-align: start;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9375rem;
}

.customer-orders-table th {
    background: var(--color-bg-secondary);
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.customer-orders-table td {
    color: var(--color-text-light);
    font-weight: 500;
}

.customer-order-products {
    max-width: 200px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
}

/* Purchased Keys & Licenses table (cyber-emerald glassmorphism) */
.purchased-keys-table-wrap {
    overflow-x: auto;
    padding: 0.35rem;
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: linear-gradient(160deg, rgba(236, 253, 245, 0.55), rgba(255, 255, 255, 0.85));
    box-shadow: 0 18px 40px -28px rgba(4, 120, 87, 0.55);
}

.purchased-keys-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.purchased-keys-table th,
.purchased-keys-table td {
    padding: 0.8rem 1rem;
    text-align: start;
    border-bottom: 1px solid rgba(16, 185, 129, 0.16);
    font-size: 0.9375rem;
    vertical-align: middle;
}

.purchased-keys-table thead th {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.06));
    font-weight: 700;
    color: #065f46;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.purchased-keys-table tbody td {
    color: var(--color-text-light);
    font-weight: 500;
}

.purchased-keys-table tbody tr {
    transition: background 0.18s ease;
}

.purchased-keys-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.07);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35), 0 0 18px -6px rgba(16, 185, 129, 0.45);
}

.purchased-keys-table tbody tr:last-child td {
    border-bottom: none;
}

.inventory-key-product {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.inventory-key-product-name {
    font-weight: 700;
    color: var(--color-text);
}

.inventory-key-duration {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

/* License key cell: monospace + clipping safety */
.purchased-keys-table .inventory-key-code {
    display: inline-block;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    background: rgba(15, 23, 42, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.4);
}

.inventory-key-action-cell {
    text-align: end;
    white-space: nowrap;
}

.purchased-keys-action-col {
    width: 1%;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.completed {
    background: var(--color-success-light);
    color: #047857;
}

.status-badge.pending {
    background: var(--color-warning-light);
    color: #b45309;
}

.status-badge.rejected {
    background: var(--color-danger-light);
    color: #b91c1c;
}

.status-badge.refunded {
    background: #e0e7ff;
    color: #4338ca;
}

/* Purchased keys table — responsive stacked cards on mobile */
@media (max-width: 640px) {
    .purchased-keys-table-wrap {
        overflow-x: hidden;
    }

    .purchased-keys-table {
        min-width: 0;
    }

    .purchased-keys-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .purchased-keys-table,
    .purchased-keys-table tbody,
    .purchased-keys-table tr,
    .purchased-keys-table td {
        display: block;
        width: 100%;
    }

    .purchased-keys-table tbody tr {
        margin-bottom: 0.85rem;
        border: 1px solid rgba(16, 185, 129, 0.25);
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.6);
        padding: 0.35rem 0.15rem;
    }

    .purchased-keys-table tbody td {
        border-bottom: 1px solid rgba(16, 185, 129, 0.12);
        padding: 0.6rem 0.9rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        text-align: end;
    }

    .purchased-keys-table tbody td:last-child {
        border-bottom: none;
    }

    .purchased-keys-table tbody td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        font-weight: 700;
        color: #065f46;
        text-align: start;
        flex-shrink: 0;
    }

    .purchased-keys-table .inventory-key-code {
        max-width: 60%;
    }

    .inventory-key-action-cell {
        justify-content: stretch;
    }

    .inventory-key-action-cell .copy-key-btn {
        width: 100%;
    }
}

/* Support tickets */
.customer-ticket-form {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.customer-ticket-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
}

.customer-ticket-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.customer-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.support-ticket-card {
    padding: 1rem 1.15rem;
}

.support-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--color-border);
}

.support-ticket-id {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
}

.support-ticket-date {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.support-ticket-message {
    font-size: 0.88rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.support-ticket-replies {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-reply {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.support-reply.admin {
    background: var(--color-primary-light);
    border-inline-start: 3px solid var(--color-primary);
}

.support-reply-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.customer-settings-form {
    padding: 1.5rem;
    max-width: 520px;
}

.customer-settings-form .form-group {
    margin-bottom: 1rem;
}

.customer-settings-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.customer-settings-form input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
}

.customer-settings-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

@media (max-width: 900px) {
    .customer-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .customer-sidebar {
        display: none;
    }

    .customer-mobile-tabs {
        display: flex;
    }

    .customer-auth-btn span:not(.customer-auth-name) {
        display: none;
    }

    .customer-auth-btn {
        padding: 0.5rem;
    }
}

/* --- KeyForge Customer Wallet --- */
.wallet-header-row {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.wallet-header-row .wallet-status-card {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.wallet-topup-btn {
    align-self: center;
    white-space: nowrap;
    padding: 0.85rem 1.35rem;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-md);
}

.wallet-status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
}

.wallet-status-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #10b981, #047857);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.wallet-status-icon svg {
    width: 26px;
    height: 26px;
}

.wallet-status-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.2rem;
}

.wallet-status-amount-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.wallet-status-amount {
    font-size: 1.65rem;
    font-weight: 800;
    color: #047857;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.wallet-status-currency {
    font-size: 0.95rem;
    font-weight: 700;
    color: #10b981;
}

.pay-option.wallet {
    flex: 1 1 100%;
    min-height: auto;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: linear-gradient(145deg, rgba(236, 253, 245, 0.95), #ffffff);
}

.pay-option.wallet.active {
    border: 1px solid #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25), 0 8px 24px rgba(16, 185, 129, 0.12);
}

.pay-option.wallet.disabled {
    opacity: 0.72;
    cursor: not-allowed;
    pointer-events: none;
    border-style: dashed;
    border-color: rgba(16, 185, 129, 0.22);
    background: linear-gradient(145deg, #f8fafc, #ffffff);
}

.pay-option.wallet .wallet-pay-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #047857;
}

.wallet-balance-chip {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.wallet-balance-chip.muted {
    background: rgba(100, 116, 139, 0.1);
    color: var(--color-text-light);
}

.wallet-insufficient-hint {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b45309;
    line-height: 1.45;
    margin-top: 0.15rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wallet-checkout-summary .wallet-balance-value {
    color: #047857;
    font-weight: 800;
}

.wallet-logo-emerald svg {
    max-height: 22px;
    max-width: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.delivered-key-item {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--color-border);
}

.delivered-key-item:last-child {
    border-bottom: none;
}

.delivered-key-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: center;
    margin-bottom: 0.35rem;
}

.delivered-key-duration {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.delivered-key-code {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9375rem;
    padding: 0.5rem 0.65rem;
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
    word-break: break-all;
}

/* --- Admin Customer Accounts --- */
.customer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-border);
}

.customer-avatar-placeholder {
    color: var(--color-text-muted, #6b7280);
    background: rgba(107, 114, 128, 0.12);
}

.admin-customer-name-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.admin-customer-name-text {
    min-width: 0;
}

.badge-login-google,
.badge-login-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-login-google {
    color: #fff;
    background: #dc2626;
}

.badge-login-email {
    color: #fff;
    background: #2563eb;
}

.admin-customer-login-method-cell {
    white-space: nowrap;
}

.admin-customers-table-wrap {
    overflow-x: auto;
}

.admin-customers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.admin-customers-table th,
.admin-customers-table td {
    padding: 0.85rem 1rem;
    text-align: start;
    border-bottom: 1px solid var(--color-border);
}

.admin-customers-table td,
.admin-deposits-table td {
    font-weight: 500;
    color: var(--color-text-light);
}

.admin-customers-table th {
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(16, 185, 129, 0.06);
}

.admin-customer-password-cell {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-customer-password-text {
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    letter-spacing: 0.04em;
}

.admin-password-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-password-toggle-btn:hover {
    background: rgba(16, 185, 129, 0.22);
    color: #047857;
}

.admin-location-cell,
.admin-geo-bot-cell {
    max-width: 14rem;
    vertical-align: middle;
    transition: all 0.2s ease-out;
}

.admin-location-cell-inner,
.admin-geo-bot-cell-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    padding: 0.32rem 0.62rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(16, 185, 129, 0.55);
    box-shadow:
        0 0 0 1px rgba(16, 185, 129, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 10px rgba(16, 185, 129, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease-out;
}

.admin-geo-bot-cell:hover .admin-geo-bot-cell-inner {
    background: rgba(255, 255, 255, 0.38);
    border-color: rgba(16, 185, 129, 0.72);
    box-shadow:
        0 0 0 1px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 0 14px rgba(16, 185, 129, 0.16);
}

[dir="rtl"] .admin-location-cell-inner,
[dir="rtl"] .admin-geo-bot-cell-inner {
    flex-direction: row-reverse;
}

.admin-location-text,
.admin-geo-bot-text {
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #065f46;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10rem;
    transition: color 0.2s ease-out;
}

.admin-location-flag,
.admin-location-flag-img {
    flex-shrink: 0;
    font-size: 1.05em;
    line-height: 1;
    transition: transform 0.2s ease-out;
}

.admin-location-flag-img {
    display: block;
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25);
}

.admin-geo-bot-cell[title] {
    cursor: help;
}

.admin-geo-bot-cell[title]:hover .admin-geo-bot-text {
    color: #047857;
}

@media (max-width: 900px) {
    .admin-location-cell,
    .admin-geo-bot-cell {
        max-width: none;
    }

    .admin-location-text,
    .admin-geo-bot-text {
        max-width: 7rem;
    }
}

.auth-country-group {
    margin-bottom: 1.05rem;
}

.country-select {
    position: relative;
    width: 100%;
}

.country-select-trigger {
    width: 100%;
    padding: 0.72rem 0.95rem;
    padding-inline-end: 2.25rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    background: rgba(20, 20, 20, 0.85);
    color: #ecfdf5;
    cursor: pointer;
    text-align: start;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2310b981' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 12px 8px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, transform 0.15s ease;
}

[dir="rtl"] .country-select-trigger {
    background-position: left 0.85rem center;
    padding-inline-start: 2.25rem;
    padding-inline-end: 0.95rem;
}

.country-select-trigger:hover {
    border-color: rgba(16, 185, 129, 0.55);
    background-color: rgba(24, 24, 24, 0.92);
}

.country-select-trigger:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45), 0 0 4px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.country-select-trigger-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: start;
}

.country-select-trigger:not(.has-value) .country-select-trigger-text {
    color: rgba(236, 253, 245, 0.55);
}

.country-select-options-panel {
    position: absolute;
    z-index: 9999;
    width: 100%;
    margin-top: 0.35rem;
    max-height: 280px;
    overflow: hidden;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 16px rgba(16, 185, 129, 0.08);
}

#country-search-input {
    width: 100%;
    padding: 0.72rem 0.95rem;
    border: none;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px 12px 0 0;
    font-size: 0.92rem;
    font-family: inherit;
    background: transparent;
    color: #ecfdf5;
    text-align: start;
}

#country-search-input::placeholder {
    color: rgba(236, 253, 245, 0.45);
}

#country-search-input:focus {
    outline: none;
    box-shadow: inset 0 -2px 0 rgba(16, 185, 129, 0.55), 0 0 12px rgba(16, 185, 129, 0.2);
}

.country-select-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    contain: layout style paint;
}

.country-select-list::-webkit-scrollbar {
    width: 8px;
}

.country-select-list::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.85);
    border-radius: 4px;
}

.country-select-list::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.45);
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.country-select-list::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.65);
}

html[dir="rtl"] .country-select-list,
html[lang="ar"] .country-select-list {
    direction: rtl;
}

html[dir="ltr"] .country-select-list,
html[lang="en"] .country-select-list,
html[lang="fr"] .country-select-list {
    direction: ltr;
}

.country-option-row {
    padding: 0.62rem 0.95rem;
    font-size: 0.92rem;
    color: #ecfdf5;
    cursor: pointer;
    text-align: start;
    overflow-wrap: anywhere;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.country-option-row:hover,
.country-option-row.focused {
    background: rgba(16, 185, 129, 0.14);
    color: #d1fae5;
}

.country-option-row.selected {
    background: rgba(16, 185, 129, 0.22);
    color: #a7f3d0;
    font-weight: 600;
}

.country-option-row.hidden {
    display: none;
}

html[dir="rtl"] .auth-country-group,
html[lang="ar"] .auth-country-group {
    text-align: start;
}

html[dir="rtl"] .country-select-trigger,
html[dir="rtl"] #country-search-input,
html[dir="rtl"] .country-option-row,
html[lang="ar"] .country-select-trigger,
html[lang="ar"] #country-search-input,
html[lang="ar"] .country-option-row {
    text-align: start;
    direction: rtl;
}

html[dir="ltr"] .country-select-trigger,
html[dir="ltr"] #country-search-input,
html[dir="ltr"] .country-option-row,
html[lang="en"] .country-select-trigger,
html[lang="en"] #country-search-input,
html[lang="en"] .country-option-row,
html[lang="fr"] .country-select-trigger,
html[lang="fr"] #country-search-input,
html[lang="fr"] .country-option-row {
    text-align: start;
    direction: ltr;
}

.auth-whatsapp-block {
    margin-bottom: 1.05rem;
}

#auth-whatsapp-container {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(12, 18, 16, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(16, 185, 129, 0.08), 0 0 18px rgba(16, 185, 129, 0.06);
}

.auth-whatsapp-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.35rem;
    text-align: start;
}

html[dir="rtl"] .auth-whatsapp-row,
html[lang="ar"] .auth-whatsapp-row {
    direction: rtl;
}

html[dir="ltr"] .auth-whatsapp-row,
html[lang="en"] .auth-whatsapp-row,
html[lang="fr"] .auth-whatsapp-row {
    direction: ltr;
}

.auth-dial-code-select {
    flex: 0 0 auto;
    min-width: 5.5rem;
    max-width: 6.5rem;
    padding: 0.72rem 0.65rem;
    padding-inline-end: 1.75rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    background: rgba(20, 20, 20, 0.85);
    color: #ecfdf5;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2310b981' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    background-size: 12px 8px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

[dir="rtl"] .auth-dial-code-select {
    background-position: left 0.55rem center;
    padding-inline-start: 1.75rem;
    padding-inline-end: 0.65rem;
}

.auth-dial-code-select:hover {
    border-color: rgba(16, 185, 129, 0.55);
    background-color: rgba(24, 24, 24, 0.92);
}

.auth-dial-code-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45), 0 0 4px rgba(16, 185, 129, 0.25);
}

.auth-phone-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.72rem 0.95rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    background: rgba(20, 20, 20, 0.85);
    color: #ecfdf5;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.auth-phone-input::placeholder {
    color: rgba(236, 253, 245, 0.4);
}

.auth-phone-input:hover {
    border-color: rgba(16, 185, 129, 0.55);
    background-color: rgba(24, 24, 24, 0.92);
}

.auth-phone-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45), 0 0 4px rgba(16, 185, 129, 0.25);
}

.auth-whatsapp-caption {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(110, 231, 183, 0.72);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.18);
    text-align: start;
    overflow-wrap: anywhere;
}

html[dir="rtl"] .auth-whatsapp-caption,
html[lang="ar"] .auth-whatsapp-caption {
    direction: rtl;
}

html[dir="ltr"] .auth-whatsapp-caption,
html[lang="en"] .auth-whatsapp-caption,
html[lang="fr"] .auth-whatsapp-caption {
    direction: ltr;
}

#auth-whatsapp-container label {
    text-align: start;
    display: block;
}

.admin-customer-whatsapp-cell {
    white-space: nowrap;
}

.admin-whatsapp-na {
    color: rgba(148, 163, 184, 0.75);
    font-size: 0.8125rem;
}

.admin-whatsapp-link {
    display: inline-flex;
    text-decoration: none;
    color: inherit;
}

.admin-whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.15s ease;
}

.admin-whatsapp-icon {
    flex-shrink: 0;
    color: #22c55e;
}

.admin-whatsapp-link:hover .admin-whatsapp-badge,
.admin-whatsapp-link:focus-visible .admin-whatsapp-badge {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.admin-chat-meta-whatsapp .admin-whatsapp-badge {
    font-size: 0.75rem;
}

.admin-device-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-device-badge-desktop {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.admin-device-badge-mobile {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.admin-customer-dob-cell {
    white-space: nowrap;
    font-weight: 600;
    color: var(--color-text);
}

.admin-customer-gender-cell {
    white-space: nowrap;
}

.admin-gender-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.admin-gender-badge-male {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.admin-gender-badge-female {
    background: rgba(236, 72, 153, 0.12);
    color: #be185d;
}

.admin-gender-badge-unknown {
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
}

.admin-chat-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin-top: 0.65rem;
    padding: 0.55rem 0.75rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.admin-chat-meta-item strong {
    color: #047857;
    font-weight: 700;
}

html[dir="rtl"] .admin-customers-table th,
html[dir="rtl"] .admin-customers-table td {
    text-align: start;
}

.admin-customer-actions-cell {
    white-space: normal;
    min-width: 12rem;
}

.admin-customer-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.admin-customer-name-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.admin-frozen-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
    white-space: nowrap;
}

.admin-customer-row-frozen {
    background: rgba(59, 130, 246, 0.04);
}

.admin-customer-row-frozen td {
    opacity: 0.92;
}

.admin-notify-modal-shell {
    background: linear-gradient(160deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.admin-wallet-balance {
    font-weight: 600;
    color: #047857;
}

.admin-wallet-modal-shell h2 {
    margin-bottom: 0.75rem;
}

.admin-wallet-current-row {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.admin-wallet-mode-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-wallet-mode-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

/* --- Wallet Top-Up Modal --- */
.wallet-topup-modal-shell {
    background: linear-gradient(160deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.wallet-topup-modal-desc {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.wallet-topup-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Wallet top-up payment grid — same compact horizontal badges as checkout */
.wallet-topup-gateway-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-height: min(40vh, 320px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.wallet-topup-gateway-list .topup-gateway-option {
    flex: 0 1 auto;
    max-width: 100%;
}

.wallet-topup-gateway-list .topup-gateway-option .pay-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: auto;
    flex-shrink: 0;
    line-height: 0;
}

.wallet-topup-gateway-list .topup-gateway-option .pay-logo svg,
.wallet-topup-gateway-list .topup-gateway-option .pay-logo .payment-logo,
.wallet-topup-gateway-list .topup-gateway-option .pay-logo .gw-logo-img {
    max-height: 24px;
    max-width: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.wallet-topup-gw-panel {
    margin-top: 0.5rem;
}

.wallet-topup-submit-btn {
    margin-top: 0;
}

#wallet-topup-modal .modal-footer-actions {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
}

.policy-modal-title {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    color: var(--color-primary);
}

.policy-modal-text-content {
    text-align: justify;
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--color-text-light);
    padding-inline-end: 0.5rem;
}

@media (max-height: 700px) {
    .pay-option {
        min-height: 40px;
        padding: 6px 12px;
    }

    .pay-option .pay-logo {
        height: 20px;
    }

    .pay-option .pay-logo svg,
    .pay-option .pay-logo .payment-logo,
    .pay-option .pay-logo .gw-logo-img {
        max-height: 20px;
    }

    .wallet-topup-gateway-list .topup-gateway-option {
        min-height: 40px;
        padding: 6px 12px;
    }

    .wallet-topup-gateway-list .topup-gateway-option .pay-logo {
        height: 20px;
    }

    .wallet-topup-gateway-list .topup-gateway-option .pay-logo svg,
    .wallet-topup-gateway-list .topup-gateway-option .pay-logo .payment-logo,
    .wallet-topup-gateway-list .topup-gateway-option .pay-logo .gw-logo-img {
        max-height: 20px;
    }

    .modal-content {
        max-height: min(90vh, calc(100vh - 40px));
        padding: 1.25rem;
    }

    .wallet-topup-gateway-list {
        max-height: min(32vh, 240px);
    }
}

.wallet-topup-no-gateway {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    padding: 0.75rem;
    text-align: center;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
}

/* --- Admin Wallet Deposits Table --- */
.admin-deposits-table-wrap {
    overflow-x: auto;
}

.admin-deposits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.admin-deposits-table th,
.admin-deposits-table td {
    padding: 0.85rem 1rem;
    text-align: start;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.admin-deposits-table th {
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(16, 185, 129, 0.06);
}

.admin-deposits-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.admin-deposit-amount {
    font-weight: 800;
    color: #047857;
}

@media (max-width: 600px) {
    .wallet-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .wallet-topup-btn {
        width: 100%;
        align-self: stretch;
    }

    .wallet-status-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
    }

    .wallet-status-amount {
        font-size: 1.45rem;
    }

    .wallet-topup-gateway-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-customers-table th,
    .admin-customers-table td,
    .admin-deposits-table th,
    .admin-deposits-table td {
        padding: 0.7rem 0.55rem;
        font-size: 0.875rem;
    }

    .admin-customer-action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-customer-action-group .btn-sm {
        width: 100%;
        font-size: 0.8125rem;
    }

    .notification-card {
        padding: 0.85rem;
        font-size: 0.875rem;
    }

    .notification-card-title {
        font-size: 0.875rem;
    }

    .customer-dashboard-top-bar {
        margin-bottom: 0.5rem;
    }

    .loyalty-header-row {
        flex-direction: column;
    }

    .admin-loyalty-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-loyalty-leaderboard-header,
    .admin-loyalty-leaderboard-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

/* --- Loyalty Points & Wallet Integration --- */

.loyalty-badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #047857;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.06));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
    line-height: 1.4;
    white-space: nowrap;
}

html[dir="rtl"] .loyalty-badge {
    text-align: right;
}

html[dir="ltr"] .loyalty-badge {
    text-align: left;
}

.loyalty-header-row {
    display: flex;
    margin-bottom: 1.25rem;
}

.loyalty-glass-card {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 244, 0.88));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.loyalty-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.loyalty-card-icon {
    font-size: 1.75rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.35));
}

.loyalty-card-titles h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.loyalty-card-titles p {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.loyalty-card-balance {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(16, 185, 129, 0.06);
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.loyalty-card-balance > span:first-child {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.loyalty-card-points-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.loyalty-points-counter {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-success);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.loyalty-card-points-row span:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.loyalty-redeem-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-md);
    cursor: not-allowed;
    opacity: 0.55;
    transition: var(--transition-smooth);
}

.loyalty-redeem-btn:disabled {
    pointer-events: none;
}

.loyalty-redeem-btn.ready {
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
    animation: loyalty-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px #10b981;
}

.loyalty-redeem-btn.ready:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

@keyframes loyalty-pulse {
    0%, 100% { box-shadow: 0 0 12px #10b981; }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.65); }
}

.loyalty-celebration-modal {
    max-width: 420px;
    text-align: center;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(209, 250, 229, 0.95));
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
}

.loyalty-celebration-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
}

.loyalty-celebration-modal h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #047857;
    margin-bottom: 0.65rem;
}

.loyalty-celebration-desc {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* --- Admin Loyalty Control Center (Cyberpunk Emerald) --- */

.admin-loyalty-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.admin-loyalty-section::before {
    content: "";
    position: absolute;
    inset: -0.5rem -0.25rem auto;
    height: 120px;
    background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.admin-loyalty-section > * {
    position: relative;
    z-index: 1;
}

.admin-loyalty-header h2 {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-loyalty-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.6fr);
    gap: 1.25rem;
    margin-top: 0.25rem;
}

.admin-loyalty-config,
.admin-loyalty-leaderboard,
.admin-loyalty-notifications-section {
    padding: 1.35rem 1.5rem;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.06) 0%, rgba(4, 120, 87, 0.02) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.admin-loyalty-config:hover,
.admin-loyalty-leaderboard:hover,
.admin-loyalty-notifications-section:hover {
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-loyalty-config h3,
.admin-loyalty-leaderboard h3,
.admin-loyalty-notifications-section h3 {
    font-size: 1.02rem;
    font-weight: 800;
    color: #047857;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.admin-loyalty-section-desc {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.admin-loyalty-config-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.admin-loyalty-config-fields .form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.35rem;
    display: block;
}

.admin-loyalty-config-fields input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, 0.15);
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-loyalty-config-fields input:hover {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.04);
}

.admin-loyalty-config-fields input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 10px #10b981;
    background: rgba(16, 185, 129, 0.06);
}

.admin-loyalty-save-btn {
    margin-top: 0.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35), 0 4px 12px rgba(4, 120, 87, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.admin-loyalty-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.55), 0 6px 16px rgba(4, 120, 87, 0.35);
    filter: brightness(1.08);
}

.admin-loyalty-save-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.admin-loyalty-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 320px;
    overflow-y: auto;
}

.admin-loyalty-leaderboard-header,
.admin-loyalty-leaderboard-row {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
}

.admin-loyalty-leaderboard-header {
    font-weight: 700;
    color: var(--color-text-light);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.admin-loyalty-leaderboard-row {
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.admin-loyalty-leaderboard-row:hover {
    background: rgba(16, 185, 129, 0.07);
    border-color: rgba(16, 185, 129, 0.2);
}

.admin-loyalty-leaderboard-customer {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.admin-loyalty-leaderboard-customer strong {
    font-size: 0.85rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-loyalty-leaderboard-email {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-loyalty-leaderboard-points {
    font-weight: 800;
    color: var(--color-success);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

html[dir="rtl"] .admin-loyalty-leaderboard-points {
    text-align: center;
}

.admin-loyalty-leaderboard-remaining {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-light);
}

html[dir="rtl"] .admin-loyalty-leaderboard-remaining {
    text-align: start;
}

html[dir="ltr"] .admin-loyalty-leaderboard-remaining {
    text-align: end;
}

.admin-loyalty-notifications-stream {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-inline-end: 0.25rem;
    scroll-behavior: smooth;
}

.admin-loyalty-notifications-stream::-webkit-scrollbar {
    width: 5px;
}

.admin-loyalty-notifications-stream::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.35);
    border-radius: 4px;
}

.admin-loyalty-notification {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: admin-loyalty-slide-in 0.35s ease-out;
}

.admin-loyalty-notification:hover {
    transform: translateX(2px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

html[dir="rtl"] .admin-loyalty-notification:hover {
    transform: translateX(-2px);
}

@keyframes admin-loyalty-slide-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-loyalty-notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 8px #10b981;
    flex-shrink: 0;
    margin-top: 0.35rem;
    animation: loyalty-pulse 2s ease-in-out infinite;
}

.admin-loyalty-notification-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #047857;
    line-height: 1.45;
}

.admin-loyalty-notification-time {
    display: block;
    font-size: 0.68rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.admin-loyalty-empty {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 1.5rem 0.5rem;
}

@media (max-width: 1024px) {
    .admin-loyalty-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-loyalty-config-fields {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .admin-loyalty-config-fields {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-loyalty-config-fields .form-group:last-child {
        grid-column: 1 / -1;
    }
}

/* --- Sensory Alert: neon emerald pulse (admin + customer) --- */
.admin-flash-pulse,
.customer-flash-pulse {
    will-change: transform, box-shadow;
    animation: admin-flash-pulse 1.1s ease-in-out infinite;
}

@keyframes admin-flash-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(16, 185, 129, 0.55),
            0 0 12px 2px rgba(16, 185, 129, 0.35),
            inset 0 0 0 1px rgba(52, 211, 153, 0.25);
        transform: scale(1);
        border-color: rgba(16, 185, 129, 0.45);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(16, 185, 129, 0.2),
            0 0 22px 8px rgba(16, 185, 129, 0.65),
            0 0 36px 12px rgba(52, 211, 153, 0.35),
            inset 0 0 0 1px rgba(110, 231, 183, 0.55);
        transform: scale(1.02);
        border-color: rgba(52, 211, 153, 0.85);
    }
}

@keyframes customer-flash-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(16, 185, 129, 0.5),
            0 0 14px 3px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 0 3px rgba(16, 185, 129, 0.18),
            0 0 24px 10px rgba(16, 185, 129, 0.6),
            0 0 40px 14px rgba(52, 211, 153, 0.3);
        transform: scale(1.03);
    }
}

.customer-flash-pulse {
    animation-name: customer-flash-pulse;
}

.admin-order-row.admin-flash-pulse {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    outline: 2px solid rgba(16, 185, 129, 0.55);
    outline-offset: -2px;
}

.admin-order-row.admin-flash-pulse td {
    background: rgba(16, 185, 129, 0.06);
}

#admin-nav-orders.admin-flash-pulse {
    border-radius: 10px;
}

#customer-notif-bell.customer-flash-pulse {
    border-radius: 50%;
}

.customer-menu-item.customer-flash-pulse,
.customer-mobile-tab.customer-flash-pulse {
    border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .admin-flash-pulse,
    .customer-flash-pulse {
        animation: none;
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.65);
    }

}

/* --- Responsive admin tables → card layout on mobile --- */
@media (max-width: 768px) {
    .responsive-data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .responsive-data-table,
    .responsive-data-table tbody,
    .responsive-data-table tr,
    .responsive-data-table td {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .responsive-data-table {
        min-width: 0;
        border-collapse: separate;
    }

    .responsive-data-table tbody tr {
        margin-bottom: 0.85rem;
        border: 1px solid rgba(16, 185, 129, 0.22);
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 12px 28px -22px rgba(4, 120, 87, 0.45);
        padding: 0.25rem 0;
        overflow: hidden;
    }

    .responsive-data-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 14px 32px -20px rgba(4, 120, 87, 0.5);
    }

    .responsive-data-table tbody td {
        border-bottom: 1px solid rgba(16, 185, 129, 0.12);
        padding: 0.7rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        text-align: start;
        font-size: 0.9rem;
        word-break: break-word;
        min-width: 0;
    }

    .responsive-data-table tbody td:last-child {
        border-bottom: none;
    }

    .responsive-data-table tbody td[colspan] {
        display: block;
        text-align: center;
        justify-content: center;
    }

    .responsive-data-table tbody td[colspan]::before {
        content: none;
    }

    .responsive-data-table tbody td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--color-primary);
        text-align: start;
        flex-shrink: 0;
        max-width: 100%;
        font-size: 0.78rem;
        letter-spacing: 0.01em;
    }

    .responsive-data-table .admin-customer-action-group,
    .responsive-data-table .admin-deposits-actions,
    .responsive-data-table .admin-order-actions,
    .responsive-data-table .actions-cell {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .responsive-data-table .admin-customer-action-group .btn-sm,
    .responsive-data-table .admin-deposits-actions .btn-sm,
    .responsive-data-table .admin-order-actions .btn,
    .responsive-data-table .admin-order-actions .btn-sm,
    .responsive-data-table .actions-cell .btn,
    .responsive-data-table tbody td[data-label] .btn-sm,
    .responsive-data-table tbody td[data-label] .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .admin-customer-actions-cell {
        min-width: 0;
    }

    .admin-freeze-appeal-message-cell {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        max-width: none;
    }

    .admin-orders-table tbody td:nth-child(4) {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        max-width: none;
    }

    .admin-order-row {
        cursor: default;
    }
}

/* Dedicated /admin page shell */
body.admin-page {
    min-height: 100vh;
    font-family: var(--font-body);
}

body.admin-page .main-content.admin-page-main {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

body.admin-page #view-admin.content-view {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
    box-sizing: border-box;
}

.admin-page-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-page-header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
}

html[dir="ltr"] .admin-page-header-inner {
    direction: ltr;
}

/* Override storefront .logo-area { order: 1 } — logo first in DOM sits on the right in RTL */
.admin-page-header-inner .logo-area {
    order: 0;
    flex-shrink: 0;
}

.admin-page-header-inner .lang-selector-container {
    order: 0;
    margin-inline: auto;
}

.admin-page-header-inner .admin-page-back-link {
    order: 0;
    flex-shrink: 0;
}

.admin-page-back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.admin-page-back-link:hover {
    text-decoration: underline;
    color: var(--color-primary-hover);
}

.admin-page-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-inline-start: 0.35rem;
}

@media (max-width: 768px) {
    body.admin-page #view-admin.content-view {
        padding: 0 0.75rem 1.5rem;
    }

    .admin-page-header-inner {
        padding: 0.65rem 1rem;
        flex-wrap: nowrap;
    }

    .admin-page-header-inner .logo-area {
        flex: 1 1 auto;
        min-width: 0;
    }

    .admin-page-header-inner .admin-page-back-link {
        font-size: 0.82rem;
    }

    .admin-page-header-inner .lang-selector-container {
        margin-inline: 0.5rem;
    }
}

/* --- Trustpilot Integration --- */

.trustpilot-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(209, 250, 229, 0.75));
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.12);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.trustpilot-banner:hover {
    transform: translateY(-1px);
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.18);
}

.trustpilot-stars {
    display: inline-flex;
    gap: 0.1rem;
}

.trustpilot-star {
    color: #00b67a;
    font-size: 1.05rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 182, 122, 0.25);
}

.trustpilot-excellent {
    font-size: 0.92rem;
    font-weight: 800;
    color: #047857;
    letter-spacing: 0.01em;
}

.trustpilot-logo {
    display: inline-flex;
    align-items: center;
    color: #191919;
}

.trustpilot-logo-svg {
    height: 1.35rem;
    width: auto;
}

/* Customer Reviews Section */
.customer-reviews {
    margin-bottom: 2.5rem;
}

.reviews-section-header {
    margin-bottom: 1.25rem;
}

.reviews-section-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.reviews-section-header p {
    font-size: 0.88rem;
    color: var(--color-text-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.review-card {
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.88));
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.14);
}

.review-card-stars {
    color: #00b67a;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    line-height: 1;
}

.review-card-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--color-text);
    flex: 1;
}

.review-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    font-size: 0.78rem;
}

.review-card-author {
    font-weight: 700;
    color: #047857;
}

.review-card-date {
    color: var(--color-text-light);
    white-space: nowrap;
}

/* Trustpilot Review Modal */
.trustpilot-review-modal {
    max-width: 420px;
    text-align: center;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(209, 250, 229, 0.95));
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
}

.trustpilot-review-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.35));
}

.trustpilot-review-modal h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #047857;
    margin-bottom: 0.65rem;
}

.trustpilot-review-modal-text {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.trustpilot-review-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .trustpilot-banner {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .trustpilot-logo-svg {
        height: 1.1rem;
    }

    .trustpilot-excellent {
        font-size: 0.85rem;
    }
}

