/* =====================================================
   Pure Dark Theme - Mamomi Store Style
   Black Background Throughout
   ===================================================== */

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-input: #1a1a1a;
    --border-color: #222222;
    --border-light: #333333;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
}

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

/* Force black background everywhere */
html {
    background: #000000 !important;
}

body {
    font-family: 'Inter', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000 !important;
    color: #ffffff !important;
    min-height: 100vh;
}

/* Header - Glassmorphism Transparent */
.header {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    padding: 12px 16px;
    height: 60px;
}

.logo {
    color: #fff !important;
}

.logo i {
    color: var(--accent);
}

/* Credit Badge - Dark Gray */
.credit-badge {
    background: #111 !important;
    border: 1px solid #222 !important;
    color: #fff !important;
}

.credit-badge i {
    color: var(--accent);
}

.credit-currency {
    color: #666;
}

/* Mobile Toggle */
.mobile-toggle {
    color: #fff !important;
    background: transparent !important;
}

/* Mobile Menu */
.mobile-menu {
    background: #111 !important;
    border: 1px solid #222 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8) !important;
}

.mobile-menu-header {
    border-bottom: 1px solid #222 !important;
}

.mobile-menu-title {
    color: #fff !important;
}

.mobile-menu-close {
    color: #666;
    background: transparent !important;
}

.mobile-menu-close:hover {
    color: #fff;
}

.mobile-menu-item {
    color: #a0a0a0 !important;
}

.mobile-menu-item:hover {
    background: #1a1a1a !important;
    color: #fff !important;
}

.mobile-menu-item i {
    color: #666;
}

.mobile-menu-item:hover i {
    color: var(--accent);
}

.mobile-menu-divider {
    background: #222 !important;
}

.mobile-menu-overlay {
    background: rgba(0,0,0,0.9) !important;
}

/* Hero Section - Pure Black */
.hero {
    background: #000000 !important;
    color: #fff !important;
}

.hero h1 {
    color: #fff !important;
}

.hero p {
    color: #a0a0a0 !important;
}

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

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

.hero .btn-outline:hover {
    background: #1a1a1a !important;
}

/* Stats Section - Pure Black */
.stats-section {
    background: #000000 !important;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

.stat-item {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 12px;
}

.stat-item i {
    color: var(--accent) !important;
}

.stat-number {
    color: #fff !important;
}

.stat-label {
    color: #666 !important;
}

/* Users Loader Animation - Small Size */
.users-loader {
    width: 28px;
    height: 14px;
    color: #FFF;
    background: currentColor;
    border-radius: 50% 50% 0 0;
    position: relative;
    display: block;
    margin: 28px auto 10px;
    box-sizing: border-box;
    animation: animloader-users 4s linear infinite;
}
.users-loader::after {
    content: '';  
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    top: -20px;
    box-sizing: border-box;
    animation: animloader1-users 4s linear infinite;
}

@keyframes animloader-users {
    0% { box-shadow: 0 0 0 -2px, 0 0 0 -2px, 0 0 0 -5px, 0 0 0 -5px; }
    20% { box-shadow: 20px -1px 0 -2px, 0 0 0 -2px, 20px -1px 0 -5px, 0 0 0 -5px; }
    40% { box-shadow: 20px -1px 0 -2px, -20px -1px 0 -2px, 20px -1px 0 -5px, -20px -1px 0 -5px; }
    60% { box-shadow: 20px -1px 0 -2px, -20px -1px 0 -2px, 12px -16px 0 -5px, -20px -1px 0 -5px; }
    80%, 95% { box-shadow: 20px -1px 0 -2px, -20px -1px 0 -2px, 12px -16px 0 -5px, -12px -16px 0 -5px; }
    100% { box-shadow: 20px -1px 0 -2px rgba(255,255,255,0), -20px -1px 0 -2px rgba(255,255,255,0), 12px -16px 0 -5px rgba(255,255,255,0), -12px -16px 0 -5px rgba(255,255,255,0); }
}

@keyframes animloader1-users {
    0% { box-shadow: 0 0 0 -2px, 0 0 0 -2px, 0 0 0 -5px, 0 0 0 -5px; }
    20% { box-shadow: 20px 2px 0 -2px, 0 0 0 -2px, 20px 2px 0 -5px, 0 0 0 -5px; }
    40% { box-shadow: 20px 2px 0 -2px, -20px 2px 0 -2px, 20px 2px 0 -5px, -20px 2px 0 -5px; }
    60% { box-shadow: 20px 2px 0 -2px, -20px 2px 0 -2px, 12px -12px 0 -5px, -20px 2px 0 -5px; }
    80%, 95% { box-shadow: 20px 2px 0 -2px, -20px 2px 0 -2px, 12px -12px 0 -5px, -12px -12px 0 -5px; }
    100% { box-shadow: 20px 2px 0 -2px rgba(255,255,255,0), -20px 2px 0 -2px rgba(255,255,255,0), 12px -12px 0 -5px rgba(255,255,255,0), -12px -12px 0 -5px rgba(255,255,255,0); }
}

/* Sections - All Pure Black */
.section {
    background: #000000 !important;
    padding: 60px 0;
}

.section-gray {
    background: #000000 !important;
}

.section-header h2 {
    color: #fff !important;
}

.section-header h2 i {
    color: var(--accent);
}

.view-all {
    color: var(--accent) !important;
}

/* Category Cards */
.category-card {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.category-card:hover {
    border-color: #333;
    transform: translateY(-4px);
}

.category-icon {
    background: #1a1a1a !important;
}

.category-icon i {
    color: var(--accent) !important;
}

.category-card h3 {
    color: #fff !important;
}

.category-card p {
    color: #666 !important;
}

/* Product Cards */
.product-card {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.product-card:hover {
    border-color: #333;
}

.product-badge {
    background: var(--accent) !important;
}

.product-badge.featured {
    background: #22c55e !important;
}

.product-category {
    color: var(--accent) !important;
}

.product-title a {
    color: #fff !important;
}

.product-title a:hover {
    color: var(--accent) !important;
}

.sale-price {
    color: #fff !important;
    font-weight: 600;
}

.original-price {
    color: #666 !important;
    text-decoration: line-through;
}

.btn-add-cart {
    background: #161616;
    color: #fff;
    border: none;
}

.btn-add-cart:hover {
    background: #1f1f1f;
}

/* Product Detail - Pure Black */
.product-detail {
    background: #000 !important;
}

.product-info-detail h1 {
    color: #fff !important;
}

.product-meta {
    color: #666 !important;
}

.product-price-detail .current-price {
    color: #fff !important;
    font-size: 32px;
    font-weight: 700;
}

.product-price-detail .original-price {
    color: #666 !important;
}

.product-features,
.product-description {
    background: #000 !important;
    border: 1px solid #111;
    border-radius: 16px;
}

.product-features h3,
.product-description h3 {
    color: #fff !important;
}

.product-features li {
    color: #a0a0a0 !important;
}

.product-description p {
    color: #a0a0a0 !important;
}

/* Forms */
input, textarea, select, .form-input {
    background: #1a1a1a !important;
    border: 1px solid #222 !important;
    color: #fff !important;
    border-radius: 12px;
}

input:focus, textarea:focus, select:focus, .form-input:focus {
    border-color: var(--accent) !important;
    outline: none;
}

input::placeholder, textarea::placeholder {
    color: #666 !important;
}

.form-label {
    color: #a0a0a0 !important;
}

/* Auth Pages */
.auth-section {
    background: #000000 !important;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-box {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 24px;
}

.auth-header h1 {
    color: #fff !important;
}

.auth-header p {
    color: #666 !important;
}

/* Social Login */
.social-btn {
    background: #1a1a1a !important;
    border: 1px solid #222 !important;
    color: #fff !important;
}

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

.divider {
    color: #666 !important;
}

.divider::before,
.divider::after {
    background: #222 !important;
}

/* Cart Page */
.cart-container {
    background: #000000 !important;
}

.cart-items {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.cart-header {
    border-bottom: 1px solid #222 !important;
}

.cart-item {
    border-bottom: 1px solid #222 !important;
}

.cart-item:last-child {
    border-bottom: none !important;
}

.cart-item-name {
    color: #fff !important;
}

.cart-item-price {
    color: #a0a0a0 !important;
}

.cart-summary {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.cart-summary h3 {
    color: #fff !important;
    border-bottom: 1px solid #222;
}

.summary-row {
    color: #a0a0a0 !important;
}

.summary-row.total {
    color: #fff !important;
    border-top: 1px solid #222 !important;
}

/* Checkout */
.checkout-container {
    background: #000000 !important;
}

.checkout-form {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.checkout-form h2 {
    color: #fff !important;
}

/* Footer - Pure Black */
.footer {
    background: #000000 !important;
    border-top: 1px solid #111;
    color: #666 !important;
}

.footer-section h3,
.footer-section h4 {
    color: #fff !important;
}

.footer-section p {
    color: #666 !important;
}

.footer-section ul li a {
    color: #666 !important;
}

.footer-section ul li a:hover {
    color: #fff !important;
}

.social-links a {
    background: #111 !important;
    border: 1px solid #222;
    color: #666 !important;
}

.social-links a:hover {
    background: var(--accent) !important;
    border-color: var(--accent);
    color: #fff !important;
}

.footer-bottom {
    border-top: 1px solid #111 !important;
    color: #444 !important;
}

/* Tables */
.data-table th {
    background: #111 !important;
    color: #a0a0a0 !important;
    border-bottom: 1px solid #222 !important;
}

.data-table td {
    border-bottom: 1px solid #222 !important;
    color: #fff !important;
}

.data-table tbody tr:hover {
    background: #0a0a0a !important;
}

/* Cards */
.card {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.card-header {
    border-bottom: 1px solid #222 !important;
}

.card-title {
    color: #fff !important;
}

/* Breadcrumb */
.breadcrumb {
    color: #666 !important;
}

.breadcrumb a {
    color: #666 !important;
}

.breadcrumb a:hover {
    color: var(--accent) !important;
}

/* Pagination */
.pagination .btn {
    background: #111 !important;
    border: 1px solid #222 !important;
    color: #666 !important;
}

.pagination .btn:hover {
    border-color: var(--accent) !important;
    color: #fff !important;
}

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

/* Hide Dark Mode Toggle */
.dark-mode-toggle,
#darkModeToggle {
    display: none !important;
}

/* Main Content */
.main-content {
    background: #000000 !important;
    min-height: calc(100vh - 60px);
}

/* Container */
.container {
    background: transparent !important;
}

/* Empty State */
.empty-state {
    color: #666 !important;
}

.empty-state i {
    color: #222 !important;
}

/* Alerts */
.alert {
    border-radius: 12px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
}

/* Badge */
.badge-success {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
}

.badge-error {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

/* Filters Sidebar */
.filters-sidebar {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.filter-section {
    border-bottom: 1px solid #222;
}

.filter-section h3 {
    color: #fff !important;
}

.filter-list a {
    color: #a0a0a0 !important;
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--accent) !important;
    background: #1a1a1a;
}

/* Input Group */
.input-group input {
    background: #1a1a1a !important;
    border: 1px solid #222 !important;
    color: #fff !important;
}

.input-group button {
    background: var(--accent) !important;
    color: #fff !important;
    border: none;
}

/* Page Header */
.page-header h1 {
    color: #fff !important;
}

.page-header p {
    color: #666 !important;
}

/* Cart Layout */
.cart-loading {
    color: #666 !important;
}

/* Quantity Buttons */
.qty-btn {
    background: #1a1a1a !important;
    border: 1px solid #222 !important;
    color: #fff !important;
}

.qty-btn:hover {
    background: #222 !important;
}

/* Remove Button */
.btn-remove {
    color: #ef4444 !important;
    background: transparent !important;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Checkbox */
.checkbox input[type="checkbox"] {
    accent-color: var(--accent);
}

/* Dropdown Menu */
.dropdown-menu {
    background: #111 !important;
    border: 1px solid #222 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8) !important;
}

.dropdown-menu a {
    color: #a0a0a0 !important;
}

.dropdown-menu a:hover {
    background: #1a1a1a !important;
    color: #fff !important;
}

/* User Menu */
.user-menu .dropdown-menu {
    background: #111 !important;
}

/* Main Nav */
.main-nav {
    background: #0a0a0a !important;
}

.nav-menu a {
    color: #a0a0a0 !important;
}

.nav-menu a:hover {
    background: #1a1a1a !important;
    color: #fff !important;
}

/* Dropdown in nav */
.has-dropdown .dropdown {
    background: #111 !important;
    border: 1px solid #222 !important;
}

.has-dropdown .dropdown a {
    color: #a0a0a0 !important;
}

.has-dropdown .dropdown a:hover {
    background: #1a1a1a !important;
    color: #fff !important;
}

/* Topup Page */
.topup-section {
    background: #000000 !important;
}

.topup-card {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.topup-card h3 {
    color: #fff !important;
}

/* QR Code Section */
.qr-section {
    background: #fff !important;
    border-radius: 16px;
    padding: 20px;
}

/* Bank Account Card */
.bank-card {
    background: #1a1a1a !important;
    border: 1px solid #222;
    border-radius: 12px;
}

/* Status Page */
.status-section {
    background: #000000 !important;
}

.status-card {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 24px;
}

/* Success State */
.status-success {
    color: #22c55e !important;
}

/* Pending State */
.status-pending {
    color: #f59e0b !important;
}

/* Failed State */
.status-failed {
    color: #ef4444 !important;
}

/* Transaction History */
.history-section {
    background: #000000 !important;
}

.history-card {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.transaction-item {
    border-bottom: 1px solid #222;
}

.transaction-item:last-child {
    border-bottom: none;
}

/* Profile Page */
.profile-section {
    background: #000000 !important;
}

.profile-card {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.profile-header {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    border-bottom: 1px solid #222;
}

/* Orders Page */
.orders-section {
    background: #000000 !important;
}

.order-card {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.order-header {
    border-bottom: 1px solid #222;
}

/* Order Detail */
.order-detail-section {
    background: #000000 !important;
}

.order-info-card {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

/* Wallet Balance Display */
.wallet-balance-large {
    background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 16px;
}

/* Modal/Popup */
.modal-content {
    background: #111 !important;
    border: 1px solid #222;
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid #222;
}

.modal-footer {
    border-top: 1px solid #222;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Loading Animation */
.fa-spinner {
    color: var(--accent);
}

/* Text colors */
.text-primary { color: #fff !important; }
.text-secondary { color: #a0a0a0 !important; }
.text-muted { color: #666 !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: #22c55e !important; }
.text-warning { color: #f59e0b !important; }
.text-error { color: #ef4444 !important; }

/* Background colors */
.bg-primary { background: #000 !important; }
.bg-secondary { background: #0a0a0a !important; }
.bg-card { background: #111 !important; }
.bg-input { background: #1a1a1a !important; }

/* Border colors */
.border-primary { border-color: #222 !important; }
.border-secondary { border-color: #333 !important; }
