/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

:root {
    --primary-color: #1877f2;
    --secondary-color: #42b72a;
    --danger-color: #f02849;
    --warning-color: #ff9800;
    --success-color: #42b72a;
    --dark-color: #1c1e21;
    --light-color: #f0f2f5;
    --border-color: #dddfe2;
    --text-color: #050505;
    --text-muted: #65676b;
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 28px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    white-space: nowrap;
}

.main-nav a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.admin-link {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f) !important;
    color: #fff !important;
    font-weight: bold;
}

.admin-link:hover {
    background: linear-gradient(135deg, #ee5a6f, #ff6b6b) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Balance Widget */
.balance-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.balance-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.balance-widget i {
    font-size: 14px;
    color: #ffd700;
}

.balance-widget span {
    font-size: 13px;
    font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--light-color);
    transform: rotate(20deg);
}

.theme-toggle i {
    font-size: 16px;
    color: var(--text-color);
}

.dropdown {
    position: relative;
}

.dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 5px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Dropdown open on click only */
.dropdown.open .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
}

/* Dropdown chevron animation - ALL DEVICES */
.dropdown-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 10px;
    margin-left: 2px;
}

.dropdown.open .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.auth-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-header h2 {
    font-size: 20px;
    color: var(--text-color);
    margin-top: 10px;
}

.auth-header p {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.auth-form input,
.auth-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.auth-form input:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links .separator {
    color: var(--text-muted);
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #166fe5;
}

.btn-secondary {
    background-color: var(--text-muted);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a5d61;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #1877f2 0%, #4267B2 100%);
    padding: 60px 0;
    margin-bottom: 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-title i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

.hero-slogan {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 500;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.feature-badge i {
    font-size: 18px;
}

/* Announcement Banner */
.hero-banner-announcement {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #000 !important;
}

.hero-banner-announcement::before {
    display: none;
}

.announcement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.announcement-icon i {
    font-size: 36px;
    color: #d32f2f;
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.announcement-icon h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.announcement-content {
    font-size: 20px;
    line-height: 1.8;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.3);
    padding: 25px 30px;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Dashboard */
.dashboard {
    padding: 30px 0;
}

.user-card {
    background: linear-gradient(135deg, var(--primary-color), #4267B2);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-info h2 {
    margin-bottom: 5px;
}

.user-email {
    opacity: 0.9;
    font-size: 14px;
}

.user-coins {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 50px;
}

.user-coins i {
    font-size: 24px;
}

.coin-amount {
    font-size: 28px;
    font-weight: bold;
}

.coin-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Services Grid */
.services-section {
    margin-bottom: 40px;
}

.services-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #4267B2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.service-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.service-description {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 40px;
}

.service-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Service Page */
.service-page {
    padding: 30px 0;
}

.service-header {
    text-align: center;
    margin-bottom: 40px;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #4267B2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.service-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.service-form-section,
.service-info-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coin-balance {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--dark-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.service-form .form-group {
    margin-bottom: 20px;
}

.service-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.service-form input,
.service-form textarea,
.service-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
}

.service-form small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 13px;
}

.price-info {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.price-item.total {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    padding-top: 10px;
    border-top: 2px solid var(--border-color);
}

.info-box {
    margin-bottom: 20px;
}

.info-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.info-box ul,
.info-box ol {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.info-box.warning {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
}

/* Orders Table */
.orders-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.orders-table {
    background: #fff;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.orders-table table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.orders-table th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--text-color);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-waiting {
    background-color: #e7f3ff;
    color: #0066cc;
}

.status-processing {
    background-color: #cce5ff;
    color: #004085;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 16px;
}

/* History Table (Deposit Page) */
.history-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.history-table table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.history-table th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 10;
}

.history-table tbody tr:hover {
    background-color: var(--light-color);
}

.history-table tbody tr {
    transition: background-color 0.2s ease;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 3px;
    }
    
    .main-nav a {
        padding: 5px 8px;
        font-size: 12px;
        gap: 3px;
    }
    
    .balance-widget {
        padding: 5px 10px;
    }
    
    .balance-widget i {
        font-size: 13px;
    }
    
    .balance-widget span {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        width: 100%;
    }
    
    .main-nav a {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .balance-widget {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .balance-widget i {
        font-size: 12px;
    }
    
    .balance-widget span {
        font-size: 12px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
    }
    
    .theme-toggle i {
        font-size: 14px;
    }
    
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .user-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .orders-table {
        overflow-x: auto;
    }
}

/* ===== MOBILE RESPONSIVE ENHANCEMENTS ===== */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Header Mobile */
    .header-content {
        padding: 10px 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        position: relative;
    }
    
    /* Show Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    .logo a {
        font-size: 18px;
    }
    
    .logo i {
        font-size: 20px;
    }
    
    /* Mobile Navigation */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 15px;
        z-index: 999;
        border-radius: 0 0 12px 12px;
        order: 4;
        width: 100%;
    }
    
    .main-nav.active {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    
    /* Remove border from dropdown menu items */
    .dropdown-menu li {
        border-bottom: none !important;
    }
    
    .main-nav a {
        width: 100%;
        padding: 12px 15px;
        border-radius: 0;
        font-size: 14px;
        justify-content: flex-start;
    }
    
    /* Dropdown Mobile */
    .dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-left: 3px solid var(--primary-color);
        margin: 0;
        margin-left: 15px;
        background: var(--light-color);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.open .dropdown-menu {
        display: block !important;
        padding: 8px 0;
        max-height: 500px;
    }
    
    .dropdown-menu li {
        list-style: none;
        margin: 0;
        padding: 0;
        background: transparent;
    }
    
    .dropdown-menu a {
        display: block !important;
        padding: 12px 20px !important;
        color: #333 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        transition: background-color 0.2s;
        visibility: visible !important;
        opacity: 1 !important;
        white-space: normal !important;
        width: 100% !important;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-menu a i {
        margin-right: 8px !important;
        width: 16px;
        text-align: center;
        display: inline-block !important;
        color: #666 !important;
    }
    
    /* Balance Widget Mobile */
    .balance-widget {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 14px;
        margin-top: 10px;
    }
    
    .balance-widget i {
        font-size: 16px;
    }
    
    .balance-widget span {
        font-size: 14px;
    }
    
    /* Theme Toggle Mobile */
    .theme-toggle {
        width: 40px;
        height: 40px;
        align-self: center;
        margin-top: 10px;
    }
    
    /* Auth Forms Mobile */
    .auth-container {
        padding: 10px;
    }
    
    .auth-box {
        padding: 20px;
        width: 100%;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-header h2 {
        font-size: 18px;
    }
    
    /* Service Page Mobile */
    .service-page {
        padding: 15px;
    }
    
    .service-header {
        padding: 20px 15px;
    }
    
    .service-header h2 {
        font-size: 20px;
    }
    
    .service-header p {
        font-size: 13px;
    }
    
    .service-icon-large {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    /* Deposit Page Mobile */
    .deposit-grid {
        grid-template-columns: 1fr !important;
    }
    
    .deposit-card {
        padding: 20px 15px !important;
        overflow-x: hidden;
    }
    
    .qr-code {
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* History Table Mobile */
    .history-table {
        margin: 0 -15px;
        padding: 0 15px;
        border-radius: 0;
    }
    
    .history-table table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .history-table th,
    .history-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    /* Forms Mobile */
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
    }
    
    .form-group small {
        font-size: 12px;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-form-section,
    .service-info-section {
        width: 100%;
    }
    
    /* Buttons Mobile */
    .btn {
        font-size: 15px;
        padding: 12px 20px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .btn-block {
        width: 100%;
    }
    
    /* Coin Balance Mobile */
    .coin-balance {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    /* Price Info Mobile */
    .price-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-item {
        font-size: 13px;
    }
    
    .price-item.total {
        font-size: 16px;
    }
    
    /* Info Box Mobile */
    .info-box {
        padding: 15px;
    }
    
    .info-box h3 {
        font-size: 15px;
    }
    
    .info-box ul,
    .info-box ol {
        font-size: 13px;
        padding-left: 20px;
    }
    
    /* Tabs Mobile */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
    }
    
    .tab {
        font-size: 14px;
        padding: 10px 16px;
        white-space: nowrap;
        min-height: 44px;
    }
    
    /* Status Badge Mobile */
    .status-badge {
        font-size: 12px;
        padding: 4px 8px;
        display: inline-block;
    }
    
    /* No Data Message */
    .no-data {
        text-align: center;
        padding: 40px 20px;
        font-size: 15px;
    }
    
    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .service-card h3 {
        font-size: 16px;
    }
    
    .service-card p {
        font-size: 12px;
    }
    
    /* Tables Mobile */
    .orders-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    
    .orders-table table {
        min-width: 800px;
        font-size: 13px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 10px 8px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* User Profile Mobile */
    .user-card {
        padding: 20px 15px;
    }
    
    .user-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .user-info h2 {
        font-size: 20px;
    }
    
    .user-info p {
        font-size: 13px;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .info-card h3 {
        font-size: 15px;
    }
    
    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    /* Alerts Mobile */
    .alert {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    /* Hero Banner Mobile */
    .hero-banner {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 28px;
        flex-direction: row;
        gap: 10px;
    }
    
    .hero-title i {
        font-size: 28px;
    }
    
    .hero-slogan {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hero-features {
        gap: 8px;
        margin-top: 20px;
    }
    
    .feature-badge {
        padding: 8px 16px;
        font-size: 13px;
        gap: 6px;
    }
    
    .feature-badge i {
        font-size: 14px;
    }
    
    /* Announcement Banner Mobile */
    .announcement-icon {
        flex-direction: column;
        gap: 10px;
    }
    
    .announcement-icon i {
        font-size: 28px;
    }
    
    .announcement-icon h2 {
        font-size: 20px;
    }
    
    .announcement-content {
        font-size: 16px;
        padding: 20px 15px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 20px 0 15px;
        font-size: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Deposit Page Mobile */
    .qr-code-section {
        padding: 15px;
    }
    
    .qr-code-wrapper {
        max-width: 200px;
    }
    
    .bank-info {
        padding: 15px;
    }
    
    .bank-info-item {
        font-size: 13px;
    }
    
    .copy-btn {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* History Page Mobile */
    .history-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select,
    .filter-group input {
        font-size: 14px;
    }
}

/* Medium Mobile / Large Phones (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Show Mobile Menu Toggle for tablet too */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Header for tablets */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }
    
    /* Mobile Navigation for tablets */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 20px;
        z-index: 999;
        border-radius: 0 0 12px 12px;
    }
    
    .main-nav.active {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a {
        width: 100%;
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-left: 3px solid var(--primary-color);
        margin-left: 20px;
        background: var(--light-color);
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    .balance-widget {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .theme-toggle {
        align-self: center;
        margin-top: 10px;
    }
    
    /* Content Layout */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .auth-container {
        padding: 20px 10px;
    }
    
    .auth-box {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .service-page {
        padding: 15px 10px;
    }
    
    .service-header {
        padding: 15px;
    }
}

/* Touch Device Enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .main-nav a {
        min-height: 40px;
        padding: 8px 12px;
    }
    
    .service-card {
        cursor: pointer;
        touch-action: manipulation;
    }
    
    /* Remove hover effects on touch */
    .main-nav a:hover,
    .service-card:hover,
    .btn:hover {
        transform: none;
    }
    
    /* Better tap highlights */
    * {
        -webkit-tap-highlight-color: rgba(24, 119, 242, 0.1);
    }
}

/* ====================================
   DARK THEME
   ==================================== */
body.dark-theme {
    --bg-color: #18191a;
    --card-bg: #242526;
    --text-color: #e4e6eb;
    --border-color: #3a3b3c;
    --light-color: #3a3b3c;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Hero Banner Dark Mode */
body.dark-theme .hero-banner {
    background: linear-gradient(135deg, #1565c0 0%, #283593 100%);
}

body.dark-theme .feature-badge {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

body.dark-theme .feature-badge:hover {
    background: rgba(255, 255, 255, 0.25);
}

body.dark-theme .hero-banner-announcement {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%) !important;
}

body.dark-theme .announcement-content {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Header Dark Mode */
body.dark-theme .header {
    background: #242526;
    border-bottom-color: #3a3b3c;
}

body.dark-theme .logo a {
    color: var(--text-color);
}

body.dark-theme .main-nav a {
    color: var(--text-color);
}

body.dark-theme .main-nav a:hover {
    background-color: #3a3b3c;
}

body.dark-theme .dropdown-menu {
    background: #242526;
    border-color: #3a3b3c;
}

body.dark-theme .dropdown-menu a {
    color: var(--text-color) !important;
}

body.dark-theme .dropdown-menu a:hover {
    background-color: #3a3b3c !important;
}

body.dark-theme .main-nav {
    background: #242526;
}

body.dark-theme .main-nav ul li {
    border-bottom-color: #3a3b3c;
}

body.dark-theme .balance-widget {
    color: var(--text-color);
}

body.dark-theme .theme-toggle {
    background-color: #3a3b3c;
    border-color: #4e4f50;
}

body.dark-theme .theme-toggle:hover {
    background-color: #4e4f50;
}

body.dark-theme .theme-toggle i {
    color: #feca57;
}

/* Cards Dark Mode */
body.dark-theme .service-card,
body.dark-theme .stat-card,
body.dark-theme .card {
    background: var(--card-bg);
    border-color: #3a3b3c;
}

body.dark-theme .service-card h3,
body.dark-theme .stat-card h3,
body.dark-theme .card h3 {
    color: var(--text-color);
}

body.dark-theme .service-card p,
body.dark-theme .stat-card p {
    color: #b0b3b8;
}

/* Forms Dark Mode */
body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
    background: #3a3b3c;
    border-color: #4e4f50;
    color: var(--text-color);
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus,
body.dark-theme .form-group select:focus {
    border-color: var(--primary-color);
    background: #4e4f50;
}

body.dark-theme .form-group label {
    color: var(--text-color);
}

/* Auth Box Dark Mode */
body.dark-theme .auth-box {
    background: var(--card-bg);
}

body.dark-theme .auth-header h1,
body.dark-theme .auth-header h2 {
    color: var(--text-color);
}

body.dark-theme .auth-header p {
    color: #b0b3b8;
}

/* Table Dark Mode */
body.dark-theme table {
    background: var(--card-bg);
}

body.dark-theme table thead {
    background: #3a3b3c;
}

body.dark-theme table th,
body.dark-theme table td {
    border-color: #3a3b3c;
    color: var(--text-color);
}

body.dark-theme table tbody tr:hover {
    background-color: #3a3b3c;
}

/* Alert Dark Mode */
body.dark-theme .alert {
    background: var(--card-bg);
    border-color: #3a3b3c;
    color: var(--text-color);
}

body.dark-theme .alert-info {
    background: #1c3d5a;
    border-color: #2d5f8d;
}

body.dark-theme .alert-success {
    background: #1c3a2e;
    border-color: #2d5e4a;
}

body.dark-theme .alert-warning {
    background: #4a3c1f;
    border-color: #6b5838;
}

body.dark-theme .alert-danger {
    background: #4a1f1f;
    border-color: #6b3838;
}

/* Footer Dark Mode */
body.dark-theme .footer {
    background: #242526;
    border-top-color: #3a3b3c;
    color: #b0b3b8;
}

body.dark-theme .footer a {
    color: var(--text-color);
}

body.dark-theme .footer a:hover {
    color: var(--primary-color);
}

/* Admin Panel Dark Mode */
body.dark-theme .admin-header {
    background: #242526;
    border-bottom-color: #3a3b3c;
}

body.dark-theme .admin-nav a {
    color: var(--text-color);
}

body.dark-theme .admin-nav a:hover {
    background: #3a3b3c;
}

body.dark-theme .admin-nav a.active {
    background: var(--primary-color);
}

/* Mobile Menu Dark Mode */
@media (max-width: 768px) {
    body.dark-theme .mobile-menu-toggle {
        color: var(--text-color);
        background: transparent;
    }
    
    body.dark-theme .mobile-menu-toggle:hover {
        background: #3a3b3c;
    }
}

/* Buttons Dark Mode - Keep primary color, adjust secondary */
body.dark-theme .btn-secondary {
    background: #3a3b3c;
    color: var(--text-color);
}

body.dark-theme .btn-secondary:hover {
    background: #4e4f50;
}

body.dark-theme .btn-danger:hover {
    background: #c92a2a;
}

/* Scrollbar Dark Mode */
body.dark-theme ::-webkit-scrollbar {
    background: #242526;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: #3a3b3c;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #4e4f50;
}

/* Service Form & Info Sections Dark Mode */
body.dark-theme .service-form-section,
body.dark-theme .service-info-section {
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .service-form-section h2,
body.dark-theme .service-info-section h2 {
    color: var(--text-color);
}

body.dark-theme .service-form-section p,
body.dark-theme .service-info-section p,
body.dark-theme .service-form-section ul li {
    color: #b0b3b8;
}

/* Orders Table Dark Mode */
body.dark-theme .orders-table {
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* History Table Dark Mode */
body.dark-theme .history-table {
    background: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-theme .history-table th {
    background-color: #3a3b3c;
    color: var(--text-color);
}

body.dark-theme .history-table th,
body.dark-theme .history-table td {
    border-color: #3a3b3c;
}

body.dark-theme .history-table tbody tr:hover {
    background-color: #3a3b3c;
}

/* Page Header Dark Mode */
body.dark-theme .page-header {
    color: var(--text-color);
}

body.dark-theme .page-header h1,
body.dark-theme .page-header h2 {
    color: var(--text-color);
}

/* Stats Dashboard Dark Mode */
body.dark-theme .stats-dashboard {
    background: transparent;
}

/* Deposit Container Dark Mode */
body.dark-theme .deposit-container {
    background: transparent;
}

body.dark-theme .deposit-card {
    background: var(--card-bg) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .deposit-card h2 {
    color: var(--text-color);
}

body.dark-theme .deposit-method {
    background: var(--card-bg);
    border-color: #3a3b3c;
}

body.dark-theme .deposit-method h3 {
    color: var(--text-color);
}

body.dark-theme .deposit-method p {
    color: #b0b3b8;
}

body.dark-theme .deposit-method:hover {
    border-color: var(--primary-color);
    background: #2d2e2f;
}

/* Deposit Amount Buttons Dark Mode */
body.dark-theme .amount-btn {
    background: var(--card-bg) !important;
    border-color: #3a3b3c;
    color: var(--text-color);
}

body.dark-theme .amount-btn:hover {
    border-color: var(--primary-color);
    background: #3a3b3c !important;
}

body.dark-theme .amount-btn.active {
    background: var(--primary-color) !important;
    color: white;
}

/* Bank Info Dark Mode */
body.dark-theme .bank-info {
    background: #3a3b3c !important;
}

body.dark-theme .bank-info-item {
    border-bottom-color: #4e4f50;
}

body.dark-theme .bank-info-item strong {
    color: var(--text-color);
}

/* Warning Box Dark Mode */
body.dark-theme .warning-box {
    background: #3d3416 !important;
    border-color: #6b5838;
}

body.dark-theme .warning-box h4,
body.dark-theme .warning-box ul,
body.dark-theme .warning-box li {
    color: #e8d5a3;
}

/* QR Container Dark Mode */
body.dark-theme .qr-container {
    background: transparent;
}

body.dark-theme .qr-code {
    border-color: #3a3b3c;
    background: white;
}

/* History Table Dark Mode */
body.dark-theme .history-table {
    background: var(--card-bg) !important;
}

/* Profile Page Dark Mode */
body.dark-theme .profile-header {
    background: var(--card-bg);
}

body.dark-theme .profile-info h2,
body.dark-theme .profile-info p {
    color: var(--text-color);
}

/* History Page Dark Mode */
body.dark-theme .history-filters {
    background: var(--card-bg);
}

body.dark-theme .empty-state {
    color: #b0b3b8;
}

body.dark-theme .empty-state i {
    color: #3a3b3c;
}

/* Coin Balance Dark Mode */
body.dark-theme .coin-balance {
    background: linear-gradient(135deg, #d97706, #ea580c) !important;
    color: #fff !important;
}

body.dark-theme .coin-balance i {
    color: #fbbf24 !important;
}

body.dark-theme .coin-balance strong {
    color: #fff !important;
}
