/* ===================================
   CloudWiFiZone - Main Stylesheet
   =================================== */

/* CSS Variables - Light Mode (Default) */
:root {
    --primary: #0099cc;
    --primary-dark: #33b5e5;
    --primary-light: #B0E0E6;
    --secondary: #F0F8FF;
    --accent: #1E90FF;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --border: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark mode variables - Override with higher specificity */
html.dark,
body.dark,
.dark,
html.dark *,
body.dark * {
    --primary: #0099cc;
    --primary-dark: #33b5e5;
    --primary-light: #B0E0E6;
    --secondary: #2d3748;
    --accent: #1E90FF;
    --text-dark: #f7fafc;
    --text-light: #a0aec0;
    --white: #1a202c;
    --light-bg: #2d3748;
    --border: #4a5568;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Base Styles
   =================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* Force light mode styles when not dark */
html:not(.dark) {
    --text-dark: #2C3E50 !important;
    --text-light: #6C757D !important;
    --white: #FFFFFF !important;
    --light-bg: #F8FAFC !important;
    --border: #E2E8F0 !important;
    --secondary: #F0F8FF !important;
}

html:not(.dark) body {
    background-color: #FFFFFF !important;
    color: #2C3E50 !important;
}

/* Force dark mode styles when dark */
html.dark,
html.dark body {
    --text-dark: #f7fafc !important;
    --text-light: #a0aec0 !important;
    --white: #1a202c !important;
    --light-bg: #2d3748 !important;
    --border: #4a5568 !important;
    --secondary: #2d3748 !important;
}

html.dark body {
    background-color: #1a202c !important;
    color: #f7fafc !important;
}

/* ===================================
   Header Styles
   =================================== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    color: #FFFFFF !important;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.login-btn {
    background-color: #FFFFFF !important;
    color: var(--primary-dark) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF !important;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-toggle i {
    transition: all 0.3s ease;
}

/* ===================================
   Mobile Menu Styles - COMPLETELY FIXED
   =================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF !important;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 200;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    z-index: 150;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0 !important;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.mobile-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF !important;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.mobile-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-close {
    background: none;
    border: none;
    color: #FFFFFF !important;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.mobile-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    color: #FFFFFF !important;
    text-decoration: none;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.mobile-nav-link i {
    width: 1.5rem;
    text-align: center;
}

.mobile-nav-link.has-dropdown {
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    cursor: pointer;
}

.mobile-nav-link.has-dropdown::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.mobile-nav-link.has-dropdown.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.mobile-nav-link.has-dropdown.active::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Mobile dropdown styles - COMPLETELY FIXED */
.mobile-dropdown {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    margin: 0.5rem 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
}

.mobile-dropdown.show {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-dropdown .mobile-nav-link {
    padding: 0.875rem 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    border-radius: 0;
    margin: 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-dropdown .mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    border-left-color: #5D5CDE;
    transform: translateX(5px);
}

.mobile-dropdown .mobile-nav-link i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.mobile-login-btn {
    background-color: #FFFFFF !important;
    color: var(--primary-dark) !important;
    padding: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-login-btn:hover {
    background-color: #f8f9fa !important;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===================================
   Enhanced Dropdown Menu Styles
   =================================== */
.nav-menu {
    position: relative;
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* Dropdown styles for both nav-menu and navbar-right */
.nav-menu .dropdown,
.navbar-right .dropdown {
    position: relative;
    display: inline-block;
}

.nav-menu .dropdown-content,
.navbar-right .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    z-index: 1000;
    padding: 1rem 0;
    border: 1px solid rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Show dropdown on hover - FIXED */
.nav-menu .dropdown:hover .dropdown-content,
.navbar-right .dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInDown 0.3s ease;
}

.dropdown-content .dropdown-link {
    color: #2c3e50;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
    margin: 0;
    position: relative;
    border-left: 3px solid transparent;
}

.dropdown-content .dropdown-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-left-color: #5D5CDE;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(93, 92, 222, 0.3);
}

.dropdown-content .dropdown-link i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.dropdown-content .dropdown-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.nav-link.has-dropdown,
.user-dropdown.has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link.has-dropdown::after,
.user-dropdown.has-dropdown::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.dropdown:hover .nav-link.has-dropdown::after,
.dropdown:hover .user-dropdown.has-dropdown::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* User dropdown styling */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(93, 92, 222, 0.1), rgba(124, 77, 255, 0.1));
    border-radius: 25px;
    font-weight: 500;
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-dropdown:hover {
    background: linear-gradient(135deg, rgba(93, 92, 222, 0.2), rgba(124, 77, 255, 0.2));
    transform: none;
}

.user-dropdown i {
    color: #5D5CDE;
    font-size: 1.1rem;
}

.user-name {
    color: #FFFFFF !important;
    font-weight: 500;
}

/* User dropdown content positioning */
.navbar-right .dropdown-content {
    right: 0;
    left: auto;
    min-width: 200px;
}

/* Dark mode adjustments for dropdowns */
html.dark .dropdown-content {
    background-color: #1e1e1e !important;
    border-color: #404040;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.3);
}

html.dark .dropdown-content .dropdown-link {
    color: #e0e0e0 !important;
}

html.dark .dropdown-content .dropdown-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

html.dark .mobile-dropdown {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.2);
}

html.dark .mobile-dropdown .mobile-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

html.dark .mobile-dropdown .mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

html.dark .mobile-nav-link.has-dropdown {
    background: rgba(255, 255, 255, 0.05);
}

html.dark .mobile-nav-link.has-dropdown.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

html.dark .nav-link:hover {
    background-color: rgba(93, 92, 222, 0.2);
}

/* ===================================
   Admin User Management Styles
   =================================== */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light-bg);
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.admin-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--text-light);
}

.nav-button.primary {
    background: var(--primary);
    color: #FFFFFF !important;
}

.nav-button:hover:not(.primary) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 153, 204, 0.05);
}

.nav-button.primary:hover {
    background: var(--primary-dark);
}

.search-section {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.admin-form {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 1rem;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
    cursor: pointer;
    color: var(--text-dark);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.admin-table {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.responsive-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.responsive-table td {
    color: var(--text-dark);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.responsive-table tr {
    transition: background-color 0.2s ease;
}

.responsive-table tr:hover {
    background: var(--light-bg);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-details h4 {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.user-details p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.status-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.status-active {
    background: #c6f6d5;
    color: #22543d;
}

html.dark .status-active {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
}

.status-disabled {
    background: #fed7d7;
    color: #742a2a;
}

html.dark .status-disabled {
    background: rgba(245, 101, 101, 0.2);
    color: #fc8181;
}

.status-expired {
    background: #fef5e7;
    color: #744210;
}

html.dark .status-expired {
    background: rgba(237, 137, 54, 0.2);
    color: #f6ad55;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: #FFFFFF !important;
}

.action-btn:hover {
    transform: scale(1.05);
}

.action-btn.edit {
    background: #4299e1;
}

.action-btn.edit:hover {
    background: #3182ce;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.no-data-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.sortable-header {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sortable-header:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    background: var(--white);
}

.pagination a:hover {
    background: var(--primary);
    color: #FFFFFF !important;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #FFFFFF !important;
    border-color: var(--primary);
}

/* ===================================
   Support Center Styles
   =================================== */
.support-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light-bg);
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.support-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.support-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge.total {
    background: #bee3f8;
    color: #2a4365;
}

.stat-badge.open {
    background: #fef5e7;
    color: #744210;
}

.stat-badge.replied {
    background: #c6f6d5;
    color: #22543d;
}

html.dark .stat-badge.total {
    background: #2a4365;
    color: #bee3f8;
}

html.dark .stat-badge.open {
    background: #744210;
    color: #fef5e7;
}

html.dark .stat-badge.replied {
    background: #22543d;
    color: #c6f6d5;
}

.support-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.support-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.ticket-detail {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.ticket-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.meta-value {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.ticket-message {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    word-wrap: break-word;
    white-space: pre-wrap;
    transition: all 0.3s ease;
}

.support-table {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.ticket-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.875rem;
}

.ticket-details h4 {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.ticket-details p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.status-progress {
    background: #fef5e7;
    color: #744210;
}

.status-replied {
    background: #c6f6d5;
    color: #22543d;
}

.status-closed {
    background: #e2e8f0;
    color: #4a5568;
}

html.dark .status-progress {
    background: #744210;
    color: #fef5e7;
}

html.dark .status-replied {
    background: #22543d;
    color: #c6f6d5;
}

html.dark .status-closed {
    background: #4a5568;
    color: #e2e8f0;
}

.captcha-section {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.captcha-code {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--primary);
    color: #FFFFFF !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    letter-spacing: 2px;
}

/* Support mobile responsive styles */
@media (max-width: 768px) {
    .support-container {
        padding: 1rem;
    }
    
    .support-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .support-nav {
        justify-content: center;
    }
    
    .ticket-meta {
        grid-template-columns: 1fr;
    }
    
    .ticket-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .captcha-section {
        flex-direction: column;
        text-align: center;
    }
    
    .support-stats {
        justify-content: center;
    }
}

/* ===================================
   Voucher Management Styles (urlist.php)
   =================================== */
.voucher-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light-bg);
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

.voucher-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.voucher-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.voucher-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge.available {
    background: #c6f6d5;
    color: #22543d;
}

html.dark .stat-badge.available {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
}

.stat-badge.unlimited {
    background: #fef5e7;
    color: #744210;
}

html.dark .stat-badge.unlimited {
    background: rgba(237, 137, 54, 0.2);
    color: #f6ad55;
}

.voucher-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.voucher-table {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.voucher-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.voucher-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.875rem;
}

.voucher-details h4 {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.voucher-details p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.status-new {
    background: #bee3f8;
    color: #2a4365;
}

html.dark .status-new {
    background: rgba(66, 153, 225, 0.2);
    color: #90cdf4;
}

.status-used {
    background: #c6f6d5;
    color: #22543d;
}

html.dark .status-used {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
}

.status-inactive {
    background: #e2e8f0;
    color: #4a5568;
}

html.dark .status-inactive {
    background: rgba(160, 174, 192, 0.2);
    color: #cbd5e0;
}

.print-form {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.print-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.print-options {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.print-option {
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    color: inherit;
}

.print-option:hover {
    transform: scale(1.05);
}

.print-option img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.print-option div {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.report-nav {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.report-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.report-links a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    background: var(--light-bg);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.report-links a:hover {
    background: var(--primary);
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* ===================================
   Billing Management Styles (urbilling.php)
   =================================== */
.billing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light-bg);
    min-height: 100vh;
    transition: all 0.3s ease;
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.billing-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.billing-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.billing-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.billing-form {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.billing-table {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.billing-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.billing-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.875rem;
}

.billing-details h4 {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.billing-details p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.status-paid {
    background: #c6f6d5;
    color: #22543d;
}

html.dark .status-paid {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
}

.status-unpaid {
    background: #fed7d7;
    color: #742a2a;
}

html.dark .status-unpaid {
    background: rgba(245, 101, 101, 0.2);
    color: #fc8181;
}

.status-done {
    background: #bee3f8;
    color: #2a4365;
}

html.dark .status-done {
    background: rgba(66, 153, 225, 0.2);
    color: #90cdf4;
}

.action-btn.apply {
    background: #48bb78;
    color: #FFFFFF !important;
}

.action-btn.apply:hover {
    background: #38a169;
}

.action-btn.cancel {
    background: #f56565;
    color: #FFFFFF !important;
}

.action-btn.cancel:hover {
    background: #e53e3e;
}

/* ===================================
   Online Devices Styles (online.php)
   =================================== */
.online-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light-bg);
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

.online-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.online-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.status-online {
    background: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-offline {
    background: var(--error);
}

.online-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-button.delete-button {
    background: var(--error) !important;
    color: #FFFFFF !important;
    border-color: var(--error) !important;
}

.nav-button.delete-button:hover {
    background: #e53e3e !important;
    border-color: #e53e3e !important;
}

.table-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.table-count {
    background: var(--light-bg);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.device-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.device-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.75rem;
}

.status-connected {
    background: #c6f6d5;
    color: #22543d;
}

.status-disconnected {
    background: #fed7d7;
    color: #742a2a;
}

html.dark .status-connected {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
}

html.dark .status-disconnected {
    background: rgba(245, 101, 101, 0.2);
    color: #fc8181;
}

.data-usage {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.usage-bar {
    width: 60px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #38a169);
    transition: width 0.3s ease;
}

.action-button {
    padding: 0.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-button.disconnect {
    background: var(--error);
    color: #FFFFFF !important;
}

.action-button.disconnect:hover {
    background: #e53e3e;
    transform: scale(1.05);
}

.action-button.connected {
    background: var(--success);
    color: #FFFFFF !important;
}

.action-button.connected:hover {
    background: var(--error);
    transform: scale(1.05);
}

/* ===================================
   Dashboard Styles (dash.php)
   =================================== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light-bg);
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.dashboard-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFFFFF !important;
}

.stat-icon.hotspots { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}

.stat-icon.devices { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
}

.stat-icon.vouchers { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
}

.stat-icon.revenue { 
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); 
}

.stat-icon.data { 
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); 
}

.stat-icon.sessions { 
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); 
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.stat-trend {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-trend.up {
    color: var(--success);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.chart-container {
    position: relative;
    height: 300px;
}

.activity-list {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.875rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--text-dark);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.activity-time {
    color: var(--text-light);
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

/* ===================================
   Enhanced Authentication Styles (login.php)
   =================================== */
.lockout-timer {
    background: #ff6b6b;
    color: #FFFFFF !important;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.attempt-counter {
    background: #ffd93d;
    color: #8b5500;
    padding: 0.5rem;
    border-radius: 0.3rem;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ===================================
   Authentication Enhancement Styles
   =================================== */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.password-toggle:hover {
    color: var(--primary);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

html.dark .alert-warning {
    background: #4a4a2a;
    border-color: #6c6c2a;
    color: #ffeb3b;
}

/* ===================================
   Main Content Styles
   =================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-section {
    background-color: var(--white);
    transition: background-color 0.3s ease;
}

.content-section h2 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.content-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.container {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

/* ===================================
   Image and Media Styles
   =================================== */
.bb img, .slider img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.slider {
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* ===================================
   Sidebar Styles
   =================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.aside {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    color: #FFFFFF !important;
    text-align: center;
}

.aside h3 {
    color: #FFFFFF !important;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.aside p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
}

.aside a {
    color: #FFFFFF !important;
    text-decoration: none;
}

.aside a:hover {
    text-decoration: underline;
}

/* ===================================
   Contact Buttons (Enhanced with Footer Styles)
   =================================== */
.contact-buttons {
    position: fixed;
    bottom: 2rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

.contact-buttons.visible,
.contact-buttons.show {
    visibility: visible;
    opacity: 1;
}

.contact-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}

/* Alternative compact contact button styling (from footer) */
.contact-btn.compact {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    line-height: 50px;
    font-size: 20px;
    display: block;
}

.whatsapp {
    background-color: #25D366;
}

.telegram {
    background-color: #0088cc;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   Footer Styles (Enhanced with Footer.php Styles)
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-dark) 100%);
    color: #FFFFFF !important;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    transition: all 0.3s ease;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #FFFFFF !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* Simple footer override for specific footer styling (from footer.php) */
#footer {
    background: var(--white) !important;
    color: var(--text-dark) !important;
    padding: 40px 20px !important;
    margin-top: 40px !important;
    border-top: 1px solid var(--border) !important;
    text-align: center !important;
    transition: all 0.3s ease;
}

#footer p {
    margin: 20px 0;
    line-height: 2;
    transition: all 0.3s ease;
}

#footer a {
    color: var(--primary) !important;
    text-decoration: none;
    margin: 0 10px;
    padding: 8px 15px;
    background: var(--light-bg) !important;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

#footer a:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

#footer p:last-child {
    font-size: 14px;
    color: var(--text-light) !important;
}

/* Dark mode footer adjustments */
html.dark #footer {
    background: var(--white) !important;
    color: var(--text-dark) !important;
    border-top-color: var(--border) !important;
}

html.dark #footer a {
    color: var(--primary) !important;
    background: var(--light-bg) !important;
}

html.dark #footer a:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
}

html.dark #footer p:last-child {
    color: var(--text-light) !important;
}

/* ===================================
   Authentication Styles (Login/Register)
   =================================== */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.auth-header h2 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.auth-tab {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.auth-tab:hover {
    color: var(--primary);
    background-color: var(--light-bg);
}

.auth-tab.active {
    color: #FFFFFF !important;
    background-color: var(--primary);
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

html.dark .alert-error {
    background-color: #2d1b1b;
    border: 1px solid #4a2626;
    color: #f87171;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

html.dark .alert-success {
    background-color: #1b2d1b;
    border: 1px solid #26482d;
    color: #4ade80;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFFFFF !important;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.code-section {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.code-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: var(--white);
    border-radius: 0.25rem;
    border: 2px dashed var(--primary);
}

.send-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.send-code-btn:hover {
    background-color: var(--primary);
    color: #FFFFFF !important;
}

.email-sent {
    color: var(--success);
    font-weight: 500;
    margin-top: 0.5rem;
}

.info-sidebar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF !important;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.info-sidebar h3 {
    color: #FFFFFF !important;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-sidebar p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ===================================
   Search Styles
   =================================== */
.search-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text-dark);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFFFFF !important;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.router-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.router-brand {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.router-brand:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.brand-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-weight: bold;
    font-size: 0.875rem;
}

.search-result {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #856404;
}

html.dark .search-result {
    background: linear-gradient(135deg, #2d2415, #3d3020);
    border: 1px solid #fbbf24;
    color: #fbbf24;
}

.highlight {
    background-color: #ffff00;
    padding: 0.1rem 0.2rem;
    border-radius: 0.25rem;
    font-weight: bold;
}

html.dark .highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #451a03;
}

.router-list {
    line-height: 1.8;
    font-size: 0.9rem;
}

.router-list strong {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===================================
   Pricing Styles
   =================================== */
.pricing-container {
    margin: 2rem 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFFFFF !important;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.pricing-card.premium {
    border-color: var(--accent);
}

.pricing-card.dedicated {
    border-color: #F90307;
}

.card-header {
    padding: 1.5rem;
    text-align: center;
    color: #FFFFFF !important;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-header.free {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.card-header.basic {
    background: linear-gradient(135deg, #2B2B2B, #495057);
}

.card-header.premium {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.card-header.dedicated {
    background: linear-gradient(135deg, #F90307, #dc3545);
}

.card-price {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border);
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.price-period {
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-features {
    padding: 1.5rem;
}

.feature-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-label {
    font-weight: 500;
    color: var(--text-dark);
}

.feature-value {
    font-weight: 600;
    color: var(--primary);
}

.card-action {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--light-bg);
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.buy-btn.free {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.buy-btn.dedicated {
    background: linear-gradient(135deg, #F90307, #dc3545);
}

.features-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.comparison-card {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.comparison-header {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF !important;
    font-weight: 600;
}

.comparison-header.basic {
    background: linear-gradient(135deg, #2B2B2B, #495057);
}

.comparison-header.premium {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.comparison-header.dedicated {
    background: linear-gradient(135deg, #F90307, #dc3545);
}

.feature-list {
    font-size: 0.9rem;
    line-height: 1.8;
}

.feature-list i.fa-check-circle {
    color: var(--success);
    margin-right: 0.5rem;
}

.feature-list i.fa-times-circle {
    color: var(--error);
    margin-right: 0.5rem;
}

.payment-methods {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
}

/* ===================================
   Order Styles
   =================================== */
.order-container {
    max-width: 800px;
    margin: 0 auto;
}

.order-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFFFFF !important;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.package-summary {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.summary-label {
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-value {
    font-weight: 600;
    color: var(--text-dark);
}

.payment-section {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.payment-header {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-note {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    border-left: 4px solid var(--warning);
    margin: 1rem 0;
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.paypal-btn {
    background: linear-gradient(135deg, #0070ba, #003087);
    color: #FFFFFF !important;
}

.btc-btn {
    background: linear-gradient(135deg, #f7931a, #ffb74d);
    color: #FFFFFF !important;
}

.agent-btn {
    background: linear-gradient(135deg, var(--success), #28a745);
    color: #FFFFFF !important;
}

.alternative-payment {
    background-color: var(--light-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--border);
}

.country-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===================================
   Crypto Payment Styles
   =================================== */
.crypto-container {
    max-width: 800px;
    margin: 0 auto;
}

.crypto-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f7931a, #ffb74d);
    color: #FFFFFF !important;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.order-summary {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--border);
}

.crypto-payment {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.payment-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.payment-info {
    flex: 1;
}

.crypto-amount {
    background: linear-gradient(135deg, #f7931a, #ffb74d);
    color: #FFFFFF !important;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-bottom: 1rem;
}

.btc-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.address-section {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
    border: 1px solid var(--border);
}

.address-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-value {
    font-family: monospace;
    font-size: 0.9rem;
    background-color: var(--white);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    word-break: break-all;
    color: var(--text-dark);
}

.qr-section {
    text-align: center;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.qr-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.alternative-methods {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.method-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.method-header {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-instructions {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #2196f3;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
}

html.dark .payment-instructions {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border: 1px solid #3b82f6;
}

.instructions-header {
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

html.dark .instructions-header {
    color: #93c5fd;
}

.instructions-text {
    font-size: 0.9rem;
    color: #1565c0;
    line-height: 1.6;
}

html.dark .instructions-text {
    color: #bfdbfe;
}

/* ===================================
   Mobile Responsive Enhancements
   =================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .login-btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .contact-buttons {
        bottom: 1rem;
        left: 1rem;
        gap: 0.75rem;
    }
    
    .contact-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.75rem;
    }

    .navbar-right {
        gap: 0.5rem;
    }

    .theme-toggle {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }

    .auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .auth-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-tab {
        width: 100%;
        text-align: center;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .payment-btn {
        width: 100%;
    }

    .payment-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .router-grid {
        grid-template-columns: 1fr;
    }

    .features-comparison {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Admin mobile styles */
    .admin-container,
    .voucher-container,
    .billing-container,
    .online-container,
    .dashboard-container {
        padding: 1rem;
    }
    
    .admin-header,
    .voucher-header,
    .billing-header,
    .online-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-title,
    .voucher-title,
    .billing-title,
    .online-title,
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .admin-nav,
    .voucher-nav,
    .billing-nav,
    .online-nav {
        justify-content: center;
    }
    
    .nav-button {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .responsive-table .hide-mobile {
        display: none;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .user-info,
    .voucher-info,
    .billing-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .admin-stats,
    .voucher-stats,
    .billing-stats {
        justify-content: center;
    }
    
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .print-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .device-info {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .device-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    /* Footer mobile responsive styles */
    #footer p {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }
    
    #footer a {
        display: block !important;
        margin: 5px auto !important;
        width: 200px !important;
        text-align: center !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .navbar {
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .mobile-menu-toggle {
        font-size: 1.25rem;
        padding: 0.25rem;
    }

    .main-content {
        padding: 1.5rem 0.5rem;
    }

    .container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-buttons {
        bottom: 0.75rem;
        left: 0.75rem;
        gap: 0.5rem;
    }
    
    .contact-btn {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.1rem;
    }

    .mobile-menu {
        width: 100%;
        left: -100%;
    }

    .mobile-menu.active {
        left: 0 !important;
    }

    /* Admin extra small mobile */
    .admin-container,
    .voucher-container,
    .billing-container,
    .online-container,
    .dashboard-container {
        padding: 0.5rem;
    }
    
    .admin-title,
    .voucher-title,
    .billing-title,
    .online-title,
    .dashboard-title {
        font-size: 1.25rem;
    }
    
    .nav-button {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .admin-form {
        padding: 1rem;
    }
    
    .action-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.625rem;
    }

    /* Footer extra small mobile */
    #footer {
        padding: 30px 15px !important;
    }
    
    #footer a {
        width: 180px !important;
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
}

/* Print styles for all modules */
@media print {
    .voucher-container,
    .billing-container,
    .online-container,
    .dashboard-container {
        padding: 0;
        background: #FFFFFF !important;
        color: #000000 !important;
        box-shadow: none !important;
    }
    
    .voucher-nav, 
    .billing-nav,
    .online-nav,
    .search-section, 
    .print-options, 
    .report-nav, 
    .print-view-button,
    .nav-button,
    .action-btn,
    .action-button,
    .action-buttons {
        display: none !important;
    }
    
    .voucher-table,
    .billing-table,
    .table-container {
        box-shadow: none !important;
        border: 1px solid #000;
    }
    
    .responsive-table th,
    .responsive-table td {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: #FFFFFF !important;
    }
}

/* ===================================
   Animation Utilities
   =================================== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.theme-transition {
    transition: all 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 400px;
        transform: translateY(0);
    }
}

/* ===================================
   Router Search Results Styles
   =================================== */
.search-match {
    border: 2px solid var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1));
}

.search-match .brand-header {
    border-bottom-color: var(--success);
}

.match-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
}

.match-indicator i {
    font-size: 0.75rem;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--light-bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
    margin: 2rem 0;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

html.dark .search-match {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.15));
}

html.dark .no-results {
    background-color: var(--light-bg);
}

/* CRITICAL: Active states for mobile menu */
.mobile-menu.active {
    left: 0 !important;
}

.menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

/* ===================================
   Global Theme Management
   =================================== */
/* Enhanced theme synchronization for all pages */
/* Include the corresponding JavaScript in each page for automatic theme management */

/* FIXED: Navigation Menu Alignment */
.nav-menu {
    position: relative;
    display: flex;
    list-style: none;
    gap: 0.2rem; /* Reduced gap for better alignment */
    align-items: center; /* Ensure vertical alignment */
    flex-wrap: nowrap; /* Prevent wrapping on larger screens */
}

.nav-link {
    color: #FFFFFF !important;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap; /* Prevent text wrapping */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* ===================================
   Enhanced Support Form Styling
   =================================== */
.support-form {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.support-form .form-group {
    margin-bottom: 1.5rem;
}

.support-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.support-form .form-input,
.support-form .form-select,
.support-form .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
    font-family: inherit;
}

.support-form .form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.support-form .form-input:focus,
.support-form .form-select:focus,
.support-form .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.support-form .form-input::placeholder,
.support-form .form-textarea::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

.support-form .btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFFFFF !important;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.support-form .btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.support-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Priority Selection Styling */
.priority-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.priority-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.priority-option:hover {
    border-color: var(--primary);
    background: rgba(0, 153, 204, 0.05);
}

.priority-option input[type="radio"] {
    margin: 0;
}

.priority-option.low {
    border-left: 4px solid #10b981;
}

.priority-option.medium {
    border-left: 4px solid #f59e0b;
}

.priority-option.high {
    border-left: 4px solid #ef4444;
}

.priority-option.urgent {
    border-left: 4px solid #dc2626;
}

/* File Upload Styling */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--light-bg);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(0, 153, 204, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(0, 153, 204, 0.1);
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    color: var(--text-light);
    font-size: 0.875rem;
}

.file-upload-input {
    display: none;
}

/* Uploaded Files List */
.uploaded-files {
    margin-top: 1rem;
}

.uploaded-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: var(--white);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-icon {
    color: var(--primary);
}

.file-name {
    font-weight: 500;
    color: var(--text-dark);
}

.file-size {
    color: var(--text-light);
    font-size: 0.875rem;
}

.file-remove {
    background: var(--error);
    color: #FFFFFF !important;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.file-remove:hover {
    background: #e53e3e;
}

/* Character Counter */
.character-counter {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.character-counter.warning {
    color: var(--warning);
}

.character-counter.error {
    color: var(--error);
}

/* Support Form Validation */
.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-success {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.support-form .form-input.error,
.support-form .form-textarea.error,
.support-form .form-select.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.support-form .form-input.success,
.support-form .form-textarea.success,
.support-form .form-select.success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Message Templates */
.template-selector {
    margin-bottom: 1rem;
}

.template-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.template-btn {
    background: var(--light-bg);
    border: 1px solid var(--border);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-btn:hover {
    background: var(--primary);
    color: #FFFFFF !important;
    border-color: var(--primary);
}

/* Ticket History Styling */
.ticket-history {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.history-item {
    padding: 1rem;
    border-left: 4px solid var(--border);
    margin-bottom: 1rem;
    background: var(--light-bg);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.history-item.user {
    border-left-color: var(--primary);
    margin-left: 2rem;
}

.history-item.admin {
    border-left-color: var(--success);
    margin-right: 2rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-author {
    font-weight: 600;
    color: var(--text-dark);
}

.history-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.history-message {
    color: var(--text-dark);
    line-height: 1.6;
    word-wrap: break-word;
}

/* Enhanced Message Input Specific Styling */
textarea[name="message"],
textarea[name="msg"],
input[name="message"],
input[name="msg"],
.message-input {
    min-height: 150px;
    font-family: inherit;
    line-height: 1.6;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

textarea[name="message"]:focus,
textarea[name="msg"]:focus,
input[name="message"]:focus,
input[name="msg"]:focus,
.message-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

/* General form improvements for support */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    font-size: 16px !important; /* Prevent zoom on mobile */
}

/* Mobile responsive for support forms */
@media (max-width: 768px) {
    .support-form {
        padding: 1.5rem;
    }
    
    .priority-selector {
        grid-template-columns: 1fr;
    }
    
    .template-buttons {
        flex-direction: column;
    }
    
    .template-btn {
        text-align: center;
    }
    
    .file-upload-area {
        padding: 1.5rem;
    }
    
    .uploaded-file {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .history-item.user,
    .history-item.admin {
        margin-left: 0;
        margin-right: 0;
    }
    
    textarea[name="message"],
    textarea[name="msg"],
    .message-input {
        min-height: 120px;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .support-form {
        padding: 1rem;
    }
    
    .support-form .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .file-upload-area {
        padding: 1rem;
    }
    
    textarea[name="message"],
    textarea[name="msg"],
    .message-input {
        min-height: 100px;
    }
}