/**
 * SaadCrypto Shop - Main Stylesheet
 * Extends theme.css with shop & admin components
 */

:root {
    --primary: #55fbad;
    --bg: #060606;
    --card: #0e0f12;
    --muted: #9ea3b0;
    --border: rgba(85, 251, 173, 0.3);
    --glow: 0 0 20px rgba(85, 251, 173, 0.45), 0 0 50px rgba(85, 251, 173, 0.25);
    --sidebar-bg: rgba(14, 15, 18, 0.95);
    --text: #f5f6fa;
    --text-muted: #9ea3b0;
    --danger: #ff6b6b;
    --warning: #ffc107;
    --success: #55fbad;
}

[data-theme="light"] {
    --primary: #00a86b;
    --bg: #ffffff;
    --card: #f8f9fa;
    --muted: #6c757d;
    --border: rgba(0, 168, 107, 0.2);
    --glow: 0 0 10px rgba(0, 168, 107, 0.2);
    --sidebar-bg: rgba(248, 249, 250, 0.98);
    --text: #212529;
    --text-muted: #6c757d;
    --danger: #dc3545;
    --success: #28a745;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(85, 251, 173, 0.15), transparent 25%),
                radial-gradient(circle at 80% 0%, rgba(85, 251, 173, 0.12), transparent 30%), var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
    background: radial-gradient(circle at 20% 20%, rgba(0, 168, 107, 0.08), transparent 25%),
                radial-gradient(circle at 80% 0%, rgba(0, 168, 107, 0.06), transparent 30%), var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: -30% -20%;
    background: radial-gradient(circle at 30% 30%, rgba(85, 251, 173, 0.12), transparent 45%),
                radial-gradient(circle at 70% 10%, rgba(85, 251, 173, 0.08), transparent 40%);
    filter: blur(40px);
    z-index: -1;
    animation: drift 16s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(20px, 30px, 0) scale(1.05); }
}

@keyframes pulse {
    0%, 100% { box-shadow: var(--glow); transform: translateY(0); }
    50% { box-shadow: 0 0 30px rgba(85, 251, 173, 0.65); transform: translateY(-2px); }
}

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

a { color: inherit; text-decoration: none; }

/* Header / Navbar */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(6, 6, 6, 0.85);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] header.site-header {
    background: rgba(255, 255, 255, 0.9);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(85, 251, 173, 0.4));
}

.menu {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 500;
}

.menu a:not(.nav-auth-btn):not(.cart-link) {
    position: relative;
    padding: 6px 0;
    color: var(--text);
    transition: color 0.2s ease;
}

.menu a:not(.nav-auth-btn):not(.cart-link):hover,
.menu a:not(.nav-auth-btn):not(.cart-link).active { color: var(--primary); }

.menu a:not(.nav-auth-btn):not(.cart-link)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.menu a:not(.nav-auth-btn):not(.cart-link):hover::after,
.menu a:not(.nav-auth-btn):not(.cart-link).active::after { width: 100%; }

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(85, 251, 173, 0.1);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

main { padding: 40px 0 80px; }

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-header p { color: var(--muted); }

/* Cards & Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--glow);
    transition: transform 0.25s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.product-image {
    height: 180px;
    background: radial-gradient(circle at 30% 30%, rgba(85, 251, 173, 0.15), transparent 60%), var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-image .placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.product-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    flex: 1;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-price .compare {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

/* Buttons — professional fintech / gaming UI */
.btn {
    --btn-shadow: 0 4px 14px rgba(85, 251, 173, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    background: linear-gradient(135deg, #6dffc4 0%, var(--primary) 48%, #3de89a 100%);
    color: #031208;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: var(--btn-shadow);
    transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
                box-shadow 0.22s ease,
                filter 0.22s ease,
                background 0.22s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 52%);
    pointer-events: none;
    border-radius: inherit;
}

.btn .btn-icon {
    flex-shrink: 0;
    opacity: 0.92;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(85, 251, 173, 0.42);
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(85, 251, 173, 0.25);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--btn-shadow), 0 0 0 3px rgba(85, 251, 173, 0.35);
}

[data-theme="light"] .btn:not(.nav-auth-btn):not(.auth-submit-btn) {
    --btn-shadow: 0 4px 14px rgba(0, 168, 107, 0.2);
    background: linear-gradient(135deg, #00c97d 0%, var(--primary) 50%, #008f5a 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary {
    background: rgba(85, 251, 173, 0.06);
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary::before {
    background: linear-gradient(180deg, rgba(85, 251, 173, 0.08) 0%, transparent 55%);
}

.btn-secondary:hover {
    background: rgba(85, 251, 173, 0.14);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(85, 251, 173, 0.18);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    box-shadow: none;
}

.btn-ghost::before { display: none; }

.btn-ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}

.btn-search {
    min-height: 52px;
    padding-left: 22px;
    padding-right: 26px;
    border-radius: 14px;
}

.btn-apply {
    min-width: 180px;
}

.btn-danger {
    background: rgba(255, 107, 107, 0.08);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.35);
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.12);
}

.btn-danger::before {
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.1) 0%, transparent 55%);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.16);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.2);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.82rem;
    border-radius: 11px;
    gap: 6px;
}

.btn-block { width: 100%; }

.btn-pay {
    min-height: 54px;
    font-size: 1rem;
    margin-top: 4px;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 32px;
    padding: 48px 0 32px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(85, 251, 173, 0.1);
    border: 1px solid var(--border);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.2rem);
    line-height: 1.1;
    margin: 16px 0 12px;
}

.hero p { color: var(--muted); max-width: 560px; margin-bottom: 24px; }

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.metric {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.metric strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Forms */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(6, 6, 6, 0.45);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.95);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(85, 251, 173, 0.04);
    box-shadow: 0 0 0 3px rgba(85, 251, 173, 0.14), 0 4px 20px rgba(85, 251, 173, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success {
    background: rgba(85, 251, 173, 0.1);
    border-color: var(--border);
    color: var(--primary);
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--danger);
}

/* Currency switcher */
.currency-switcher {
    display: flex;
    align-items: center;
}

.currency-switcher select {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Footer */
footer.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    background: rgba(6, 6, 6, 0.9);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    color: var(--muted);
}

.footer-grid h4 {
    color: var(--text);
    margin-bottom: 12px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-legal-links {
    display: block;
    margin-top: 8px;
}

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

.footer-legal-links a:hover {
    text-decoration: underline;
}

.footer-legal-links span[aria-hidden="true"] {
    margin: 0 8px;
    color: var(--muted);
}

/* Policy pages */
.policy-content {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.policy-content h2 {
    color: var(--primary);
    font-size: 1.15rem;
    margin: 28px 0 12px;
}

.policy-content p,
.policy-content li {
    color: var(--muted);
    margin-bottom: 12px;
}

.policy-content ul,
.policy-content ol {
    margin: 0 0 16px 24px;
}

.policy-content a {
    color: var(--primary);
}

/* Cookie consent bar (bottom, not popup) */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    padding: 16px 20px;
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.is-visible {
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 220px;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--primary);
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

body.cookie-bar-visible {
    padding-bottom: 88px;
}

body.cookie-bar-visible .theme-toggle {
    bottom: 100px;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-detail-image {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-detail-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.product-detail-tagline {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.product-section-label {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--primary);
    font-weight: 600;
}

.product-plan-section,
.product-delivery-section {
    margin-bottom: 24px;
}

.variant-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variant-option {
    display: block;
    cursor: pointer;
}

.variant-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.variant-option-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.variant-option.selected .variant-option-body,
.variant-option:has(input:checked) .variant-option-body {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.variant-option-name {
    font-weight: 600;
}

.variant-option-price {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.variant-option-price .compare {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 400;
}

.product-price-display {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.product-price-display .product-price {
    font-size: 2rem;
}

.product-purchase-form .form-group label {
    font-weight: 500;
}

.product-buy-actions {
    margin-top: 8px;
}

.btn-buy-now {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
}

.product-description-block {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.product-description-text {
    line-height: 1.8;
    color: var(--text-muted);
}

.price-from {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 400;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
}

.quantity-control input {
    width: 60px;
    text-align: center;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}

/* Cart & Checkout */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th, .cart-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.cart-table th { color: var(--primary); font-weight: 600; }

.cart-summary {
    max-width: 380px;
    margin-left: auto;
    margin-top: 24px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.checkout-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.checkout-auth-tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.checkout-auth-tab:hover {
    color: var(--text);
    border-color: var(--primary);
}

.checkout-auth-tab.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(85, 251, 173, 0.08);
}

.checkout-auth-panel {
    display: none;
}

.checkout-auth-panel.active {
    display: block;
}

/* Shop Filters — premium search & filter panel */
.filter-panel {
    background: linear-gradient(165deg, rgba(14, 15, 18, 0.98) 0%, rgba(10, 12, 14, 0.92) 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px 30px;
    margin-bottom: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), var(--glow);
    position: relative;
    overflow: hidden;
}

.filter-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(85, 251, 173, 0.5), transparent);
    pointer-events: none;
}

[data-theme="light"] .filter-panel {
    background: linear-gradient(165deg, #ffffff 0%, #f4f6f8 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.filter-panel-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.filter-panel-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-panel-hint {
    font-size: 0.88rem;
    font-weight: 500;
}

.filter-search-row {
    margin-bottom: 22px;
}

.filter-search-combo {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 6px;
    background: rgba(6, 6, 6, 0.55);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .filter-search-combo {
    background: rgba(248, 249, 250, 0.95);
}

.filter-search-wrap {
    flex: 1;
    min-width: 0;
}

.filter-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.filter-input-icon {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--primary);
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 15px 18px 15px 48px;
    background: transparent;
    border: none;
    border-radius: 14px;
    color: var(--text);
    font-size: 0.96rem;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.filter-search-combo .filter-input {
    padding-left: 48px;
    min-height: 52px;
}

.filter-search-combo .filter-input:focus {
    outline: none;
    background: rgba(85, 251, 173, 0.05);
}

.filter-selects-row .filter-input,
.filter-selects-row .filter-select {
    padding: 14px 40px 14px 46px;
    background: rgba(6, 6, 6, 0.4);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

[data-theme="light"] .filter-selects-row .filter-input,
[data-theme="light"] .filter-selects-row .filter-select {
    background: rgba(255, 255, 255, 0.95);
}

.filter-input::placeholder {
    color: var(--muted);
    opacity: 0.85;
    font-weight: 400;
}

.filter-selects-row .filter-input:focus,
.filter-selects-row .filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(85, 251, 173, 0.12);
    background: rgba(85, 251, 173, 0.04);
}

.filter-select {
    cursor: pointer;
    padding-right: 44px;
}

.filter-select option {
    background: var(--card);
    color: var(--text);
}

.filter-select-arrow {
    position: absolute;
    right: 16px;
    display: flex;
    align-items: center;
    color: var(--primary);
    opacity: 0.85;
    pointer-events: none;
}

.filter-selects-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.filter-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.filter-submit-btn {
    flex-shrink: 0;
    align-self: center;
}

.filter-active-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}

.filter-active-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-active-tag {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(85, 251, 173, 0.12);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.filter-clear-link {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--danger);
    font-weight: 600;
    transition: opacity 0.2s;
}
.filter-clear-link:hover { opacity: 0.8; text-decoration: underline; }

/* Category & platform chips */
.filter-chips-section {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-chips-group {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.filter-chips-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 14px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(6, 6, 6, 0.45);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
    white-space: nowrap;
}

[data-theme="light"] .filter-chip {
    background: rgba(248, 249, 250, 0.9);
}

.filter-chip-icon { font-size: 1rem; line-height: 1; }

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(85, 251, 173, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(85, 251, 173, 0.15);
}

.filter-chip.active {
    border-color: var(--primary);
    color: #040404;
    background: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-1px);
}

.filter-chip.active .filter-chip-icon { filter: none; }

.filter-chip-platform.active {
    color: #040404;
}

@media (max-width: 768px) {
    .filter-panel { padding: 20px 18px; border-radius: 18px; }
    .filter-search-combo {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }
    .filter-submit-btn,
    .btn-search { width: 100%; }
    .filter-selects-row { grid-template-columns: 1fr; }
    .filter-actions-row { flex-direction: column; }
    .filter-actions-row .btn { width: 100%; }
    .filter-chips { gap: 8px; }
    .filter-chip { padding: 8px 14px; font-size: 0.82rem; }
    .filter-clear-link { margin-left: 0; width: 100%; text-align: center; margin-top: 8px; }
}

/* Legacy aliases */
.category-pills, .platform-pills { display: none; }
.category-pill, .platform-pill { display: none; }
.shop-toolbar { display: none; }

/* Admin Layout */
.admin-body {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header { padding: 20px; border-bottom: 1px solid var(--border); }

.admin-badge {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    margin: 12px 0;
    color: var(--warning);
    font-weight: 700;
    font-size: 0.85rem;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--muted);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover, .nav-item.active {
    background: rgba(85, 251, 173, 0.08);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }

.nav-badge {
    margin-left: auto;
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    min-height: 100vh;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #4dd4a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--glow);
}

.stat-label { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.9rem;
}

.data-table th { color: var(--primary); font-weight: 600; }

.data-table tr:hover { background: rgba(85, 251, 173, 0.04); }

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-active { background: rgba(85, 251, 173, 0.1); color: var(--primary); border: 1px solid var(--border); }
.status-pending { background: rgba(255, 193, 7, 0.1); color: var(--warning); border: 1px solid rgba(255, 193, 7, 0.3); }
.status-processing { background: rgba(100, 181, 246, 0.1); color: #64b5f6; border: 1px solid rgba(100, 181, 246, 0.3); }
.status-rejected { background: rgba(255, 107, 107, 0.1); color: var(--danger); border: 1px solid rgba(255, 107, 107, 0.3); }

.action-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title { font-size: 1.2rem; font-weight: 700; color: var(--primary); }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
}

.login-card .logo { justify-content: center; margin-bottom: 24px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state h3 { color: var(--text); margin-bottom: 8px; }

/* Responsive */
@media (max-width: 768px) {
    .menu { display: none; flex-direction: column; align-items: flex-start; width: 100%; padding-top: 12px; }
    .menu.open { display: flex; }
    .menu-toggle { display: inline-flex; }
    .nav { flex-wrap: wrap; }
    header.site-header { position: sticky; }
    .product-detail { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 20px 15px; }
    .mobile-menu-toggle { display: block; }
    .cart-table { display: block; overflow-x: auto; }
    .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

.mobile-menu-toggle {
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
}

.muted { color: var(--muted); }

/* Page Loader (from theme) */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(85, 251, 173, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(85, 251, 173, 0.5);
}
.loader-logo {
    margin-top: 24px;
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(85, 251, 173, 0.4));
    animation: pulse 2s ease-in-out infinite;
}
.loader-text {
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Gaming Shop */
.gaming-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-instant { background: rgba(85, 251, 173, 0.15); color: var(--primary); border: 1px solid var(--border); }
.badge-deal { background: rgba(255, 107, 107, 0.15); color: var(--danger); border: 1px solid rgba(255, 107, 107, 0.3); }
.badge-platform { background: rgba(100, 181, 246, 0.12); color: #64b5f6; border: 1px solid rgba(100, 181, 246, 0.3); }

.platform-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.platform-pill:hover, .platform-pill.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(85, 251, 173, 0.1);
    box-shadow: var(--glow);
}

.deals-banner {
    background: linear-gradient(135deg, rgba(85, 251, 173, 0.12), rgba(255, 107, 107, 0.08));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--glow);
}
.deals-banner h2 { font-size: 1.6rem; margin-bottom: 6px; }

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.product-card .product-image { position: relative; }

.section-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.section-tab {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.section-tab.active, .section-tab:hover {
    background: rgba(85, 251, 173, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.game-icon { font-size: 2.5rem; }

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Auth pages */
.auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 80px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 36px 32px !important;
}

.auth-card h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    text-align: center;
}

.auth-sub {
    text-align: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.g-recaptcha-holder {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.btn-google {
    background: #fff !important;
    color: #3c4043 !important;
    border: 1px solid #dadce0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.btn-google::before { display: none; }

.btn-google:hover {
    background: #f8f9fa !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.btn-icon-img {
    flex-shrink: 0;
}

.menu a.nav-auth-btn,
a.nav-auth-btn,
.menu a.nav-auth-btn:hover,
.menu a.nav-auth-btn:focus,
.menu a.nav-auth-btn:active,
[data-theme="light"] .menu a.nav-auth-btn,
[data-theme="light"] .menu a.nav-auth-btn:hover,
[data-theme="light"] a.nav-auth-btn {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    padding: 9px 18px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
    border-radius: 12px;
    text-decoration: none !important;
    background: linear-gradient(135deg, #6dffc4 0%, var(--primary) 48%, #3de89a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 14px rgba(85, 251, 173, 0.22) !important;
}

.menu a.nav-auth-btn::after {
    display: none !important;
}

.nav-auth-active {
    box-shadow: 0 0 0 2px rgba(85, 251, 173, 0.45), 0 4px 14px rgba(85, 251, 173, 0.22) !important;
}

.auth-submit-btn,
.auth-submit-btn:hover,
.auth-page .auth-submit-btn,
[data-theme="light"] .auth-submit-btn,
[data-theme="light"] .auth-submit-btn:hover {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

.account-orders-table .order-actions {
    text-align: right;
    white-space: nowrap;
}

.btn-pay-order {
    min-width: 96px;
    color: #031208 !important;
}

.cart-custom-fields {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
}

.cart-custom-fields li {
    margin-bottom: 2px;
}

.product-required-fields {
    background: rgba(85, 251, 173, 0.04) !important;
}

/* WhatsApp floating button — raised & visible in light/dark themes */
.whatsapp-float {
    position: fixed;
    bottom: 88px;
    right: 22px;
    z-index: 9999;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.22),
        0 2px 6px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.whatsapp-float-icon {
    fill: #fff;
    flex-shrink: 0;
}

[data-theme="light"] .whatsapp-float {
    border-color: #fff;
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(37, 211, 102, 0.35);
}

[data-theme="dark"] .whatsapp-float {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 4px 22px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 2px 10px rgba(37, 211, 102, 0.35);
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    color: #fff;
    background: #20bd5a;
}

[data-theme="light"] .whatsapp-float:hover {
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(37, 211, 102, 0.45);
}

[data-theme="dark"] .whatsapp-float:hover {
    box-shadow:
        0 6px 26px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 4px 14px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 76px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float-icon {
        width: 24px;
        height: 24px;
    }
}

/* Support page */
.support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.support-channel-card {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
    display: block;
}

a.support-channel-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.support-channel-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.support-channel-cta {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Suspended account */
.suspended-card {
    text-align: center;
    max-width: 480px;
}

.suspended-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.suspended-reason-box {
    text-align: left;
    margin: 20px 0;
}

.suspended-actions {
    margin-top: 8px;
}

/* FunPay coupon */
.coupon-result-card {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.coupon-success-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.coupon-code-display {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: rgba(85, 251, 173, 0.1);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 16px 24px;
    margin: 16px 0;
    font-family: ui-monospace, monospace;
}

.coupon-form small {
    display: block;
    margin-top: 6px;
}

/* Checkout coupon */
.checkout-coupon-box {
    margin: 16px 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.checkout-coupon-form {
    display: flex;
    gap: 8px;
}

.checkout-coupon-form input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.checkout-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.9rem;
    padding: 10px 12px;
    background: rgba(85, 251, 173, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
}

.checkout-coupon-applied code {
    color: var(--primary);
    font-weight: 600;
}

.checkout-coupon-remove {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    padding: 0;
}

.checkout-coupon-remove:hover {
    color: var(--text);
}

.checkout-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.checkout-discount-line {
    color: var(--primary);
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 4px;
}
