/* ===================================
CLOUDWIFIZONE - COMPLETE STYLESHEET (BURGUNDY THEME)
=================================== */

/* ===================================
1. CSS VARIABLES - BURGUNDY THEME
=================================== */
/* Light Mode (Default) */
:root {
  /* Burgundy Theme Colors */
  --primary: #800020;
  --primary-dark: #5a0017;
  --primary-light: #b3596e;
  --secondary: #fff5f5;
  --accent: #993366;
  
  /* Text & Background */
  --text-dark: #2C3E50;
  --text-light: #6C757D;
  --white: #FFFFFF;
  --light-bg: #faf0f0;
  
  /* Borders & States */
  --border: #e8d4d4;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Shadows */
  --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 */
html.dark,
body.dark,
.dark {
  /* Burgundy Theme Colors */
  --primary: #800020;
  --primary-dark: #5a0017;
  --primary-light: #b3596e;
  --secondary: #2a1a1a;
  --accent: #993366;
  
  /* Text & Background */
  --text-dark: #f7fafc;
  --text-light: #a0aec0;
  --white: #1a0a0a;
  --light-bg: #2a1a1a;
  
  /* Borders & States */
  --border: #4a3a3a;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Shadows */
  --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);
}

/* Force Light Mode Overrides */
html:not(.dark) {
  --text-dark: #2C3E50 !important;
  --text-light: #6C757D !important;
  --white: #FFFFFF !important;
  --light-bg: #faf0f0 !important;
  --border: #e8d4d4 !important;
  --secondary: #fff5f5 !important;
}

html:not(.dark) body {
  background-color: #FFFFFF !important;
  color: #2C3E50 !important;
}

/* Force Dark Mode Overrides */
html.dark,
html.dark body {
  --text-dark: #f7fafc !important;
  --text-light: #a0aec0 !important;
  --white: #1a0a0a !important;
  --light-bg: #2a1a1a !important;
  --border: #4a3a3a !important;
  --secondary: #2a1a1a !important;
}

html.dark body {
  background-color: #1a0a0a !important;
  color: #f7fafc !important;
}

/* ===================================
2. BASE STYLES & RESET
=================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  transition: all 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 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;
}

/* ===================================
3. TYPOGRAPHY & 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);
  }
}

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

@keyframes pulse {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(128, 0, 32, 0.7); }
  70% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(128, 0, 32, 0); }
  100% { opacity: 1; }
}

@keyframes highlight {
  0% { background-color: rgba(128, 0, 32, 0.15); box-shadow: 0 0 15px rgba(128, 0, 32, 0.3); }
  100% { background-color: transparent; box-shadow: none; }
}

/* ===================================
4. BUTTONS & FORMS - BURGUNDY THEME
=================================== */
/* Buttons */
.btn,
.nav-button,
.action-btn,
.form-submit,
.search-btn,
.buy-btn,
.payment-btn,
.support-form .btn-submit {
  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;
  font-size: 1rem;
}

.btn-primary,
.form-submit,
.search-btn,
.buy-btn,
.payment-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #FFFFFF !important;
}

.btn-primary:hover,
.form-submit:hover,
.search-btn:hover,
.buy-btn:hover,
.payment-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-button {
  background: var(--white);
  color: var(--text-light);
  border: 2px solid transparent;
}

.nav-button:hover:not(.primary) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(128, 0, 32, 0.05);
}

.nav-button.primary {
  background: var(--primary);
  color: #FFFFFF !important;
}

.nav-button.primary:hover {
  background: var(--primary-dark);
}

.action-btn {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.action-btn.edit { background: #800020; color: #FFFFFF !important; }
.action-btn.edit:hover { background: #5a0017; }
.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; }
.action-btn.disconnect { background: var(--error); color: #FFFFFF !important; }
.action-btn.disconnect:hover { background: #e53e3e; transform: scale(1.05); }
.action-btn.connected { background: var(--success); color: #FFFFFF !important; }
.action-btn.connected:hover { background: var(--error); transform: scale(1.05); }

/* Forms */
.form-input,
.form-select,
.form-textarea,
.support-form .form-input,
.support-form .form-select,
.support-form .form-textarea,
textarea[name="message"],
textarea[name="msg"],
.message-input {
  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;
}

.form-textarea,
.support-form .form-textarea,
textarea[name="message"],
textarea[name="msg"],
.message-input {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.support-form .form-input:focus,
.support-form .form-select:focus,
.support-form .form-textarea:focus,
textarea[name="message"]:focus,
textarea[name="msg"]:focus,
.message-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder,
.support-form .form-input::placeholder,
.support-form .form-textarea::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

.form-label,
.support-form .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.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;
}

.form-input.error,
.form-textarea.error,
.form-select.error,
.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);
}

.form-input.success,
.form-textarea.success,
.form-select.success,
.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);
}

/* ===================================
5. HEADER & NAVIGATION - BURGUNDY THEME
=================================== */
.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;
}

/* Navigation Menu */
.nav-menu {
  position: relative;
  display: flex;
  list-style: none;
  gap: 0.2rem;
  align-items: center;
  flex-wrap: nowrap;
}

.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;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Login Button */
.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 */
.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);
}

/* ===================================
6. DROPDOWN MENUS - BURGUNDY THEME
=================================== */
/* Desktop Dropdowns */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.15s ease;
  padding: 0.5rem 0;
  margin-top: 0;
}

.dark .dropdown-content {
  background: #2a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Invisible Bridge - Prevents hover gaps */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
  z-index: 999;
  pointer-events: auto;
}

.dropdown-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  border-radius: 0;
  position: relative;
}

.dark .dropdown-link {
  color: #e2e8f0;
}

.dropdown-link:hover {
  background: linear-gradient(135deg, #800020, #5a0017);
  color: #FFFFFF !important;
  transform: translateX(2px);
}

.dropdown-link i {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.dropdown-link:hover i {
  transform: scale(1.1);
}

/* User Dropdown */
.user-dropdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(128, 0, 32, 0.1), rgba(153, 51, 102, 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(128, 0, 32, 0.2), rgba(153, 51, 102, 0.2));
}

.user-dropdown i {
  color: #5a0017;
  font-size: 1.1rem;
}

.user-name {
  color: #FFFFFF !important;
  font-weight: 500;
}

/* Dropdown Arrows */
.has-dropdown::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.dropdown:hover .has-dropdown::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* Right-Aligned Dropdowns */
.navbar-right .dropdown .dropdown-content {
  right: 0;
  left: auto;
}

/* Dark Mode Dropdowns */
html.dark .dropdown-content {
  background-color: #1e0e0e !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, #800020 0%, #5a0017 100%);
  color: white !important;
}

/* ===================================
7. MOBILE MENU - BURGUNDY THEME
=================================== */
.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 Navigation Links */
.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 Login Button */
.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 */
.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;
}

/* ===================================
8. MOBILE DROPDOWN STYLES - BURGUNDY THEME
=================================== */
.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: #5a0017;
  transform: translateX(5px);
}

.mobile-dropdown .mobile-nav-link i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

/* Dark Mode Mobile Dropdowns */
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;
}

/* ===================================
9. MAIN LAYOUT & CONTAINERS - BURGUNDY THEME
=================================== */
.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;
}

/* Sidebar */
.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;
}

/* Footer */
.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);
}

/* Alternative Footer */
#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 */
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;
}

/* ===================================
10. CONTACT BUTTONS
=================================== */
.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;
}

.contact-btn.compact {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  line-height: 50px;
  font-size: 20px;
  display: block;
}

.contact-btn.whatsapp { background-color: #25D366; }
.contact-btn.telegram { background-color: #0088cc; }

.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* ===================================
11. TABLES & DATA DISPLAY - BURGUNDY THEME
=================================== */
/* Generic Table Styles */
.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;
}

.responsive-table td {
  color: var(--text-dark);
  font-size: 0.875rem;
}

.responsive-table tr {
  transition: background-color 0.2s ease;
}

.responsive-table tr:hover {
  background: var(--light-bg);
}

/* Table Containers */
.admin-table,
.support-table,
.voucher-table,
.billing-table,
.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-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;
}

.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;
}

/* User/Device Info */
.user-info,
.voucher-info,
.billing-info,
.ticket-info,
.device-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar,
.voucher-avatar,
.billing-avatar,
.ticket-avatar,
.device-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #800020 0%, #5a0017 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.875rem;
}

.device-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.75rem;
}

.user-details h4,
.voucher-details h4,
.billing-details h4,
.ticket-details h4 {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

.user-details p,
.voucher-details p,
.billing-details p,
.ticket-details p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-light);
  transition: color 0.3s ease;
}

/* Status Indicators */
.status-indicator,
.status-active,
.status-disabled,
.status-expired,
.status-new,
.status-used,
.status-inactive,
.status-paid,
.status-unpaid,
.status-done,
.status-online,
.status-offline,
.status-connected,
.status-disconnected,
.status-progress,
.status-replied,
.status-closed {
  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; }
.status-disabled { background: #fed7d7; color: #742a2a; }
.status-expired { background: #fef5e7; color: #744210; }
.status-new { background: #b3596e; color: #5a0017; }
.status-used { background: #c6f6d5; color: #22543d; }
.status-inactive { background: #e2e8f0; color: #4a5568; }
.status-paid { background: #c6f6d5; color: #22543d; }
.status-unpaid { background: #fed7d7; color: #742a2a; }
.status-done { background: #b3596e; color: #5a0017; }
.status-online { background: var(--success); box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.status-offline { background: var(--error); }
.status-connected { background: #c6f6d5; color: #22543d; }
.status-disconnected { background: #fed7d7; color: #742a2a; }
.status-progress { background: #fef5e7; color: #744210; }
.status-replied { background: #c6f6d5; color: #22543d; }
.status-closed { background: #e2e8f0; color: #4a5568; }

/* Dark Mode Status */
html.dark .status-active { background: rgba(72, 187, 120, 0.2); color: #68d391; }
html.dark .status-disabled { background: rgba(245, 101, 101, 0.2); color: #fc8181; }
html.dark .status-expired { background: rgba(237, 137, 54, 0.2); color: #f6ad55; }
html.dark .status-new { background: rgba(128, 0, 32, 0.2); color: #b3596e; }
html.dark .status-used { background: rgba(72, 187, 120, 0.2); color: #68d391; }
html.dark .status-inactive { background: rgba(160, 174, 192, 0.2); color: #cbd5e0; }
html.dark .status-paid { background: rgba(72, 187, 120, 0.2); color: #68d391; }
html.dark .status-unpaid { background: rgba(245, 101, 101, 0.2); color: #fc8181; }
html.dark .status-done { background: rgba(128, 0, 32, 0.2); color: #b3596e; }
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; }
html.dark .status-progress { background: #744210; color: #fef5e7; }
html.dark .status-replied { background: #22543d; color: #c6f6d5; }
html.dark .status-closed { background: #4a5568; color: #e2e8f0; }

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* No Data Message */
.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;
}

/* ===================================
12. PAGINATION & SORTING - BURGUNDY THEME
=================================== */
.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);
}

.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);
}

/* ===================================
13. PAGINATION CONTAINER (ENHANCED) - BURGUNDY THEME
=================================== */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .pagination-container {
  background: #2a1a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-size-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-size-label {
  font-size: 0.875rem;
  color: #4a5568;
  font-weight: 500;
}

.dark .page-size-label {
  color: #a0aec0;
}

.page-size-select {
  padding: 0.5rem 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.dark .page-size-select {
  background: #1a0a0a;
  border-color: #4a3a3a;
  color: #e2e8f0;
}

.page-size-select:focus {
  outline: none;
  border-color: #800020;
  box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.pagination-stats {
  font-size: 0.875rem;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dark .pagination-stats {
  color: #a0aec0;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dark .pagination-button {
  background: #374151;
  border-color: #4a5568;
  color: #e2e8f0;
}

.pagination-button:hover:not(.disabled):not(.active) {
  border-color: #800020;
  color: #800020;
  transform: translateY(-1px);
}

.pagination-button.active {
  background: #800020;
  border-color: #800020;
  color: white;
  font-weight: 600;
}

.pagination-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: #a0aec0;
  font-weight: 500;
}

.pagination-nav-button {
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-nav-button i {
  font-size: 0.75rem;
}

.page-info-mobile {
  display: none;
  text-align: center;
  font-size: 0.875rem;
  color: #718096;
  width: 100%;
}

.dark .page-info-mobile {
  color: #a0aec0;
}

/* ===================================
14. DASHBOARD STYLES - BURGUNDY THEME
=================================== */
.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 Cards */
.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, #800020 0%, #5a0017 100%); }
.stat-icon.devices { background: linear-gradient(135deg, #660019 0%, #4a0012 100%); }
.stat-icon.vouchers { background: linear-gradient(135deg, #b3596e 0%, #993366 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, #8b0000 0%, #660019 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 */
.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 */
.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;
}

/* ===================================
15. ADMIN USER MANAGEMENT - BURGUNDY THEME
=================================== */
.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;
}

.search-section,
.admin-form {
  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;
}

.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;
}

/* ===================================
16. SUPPORT CENTER - BURGUNDY THEME
=================================== */
.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: #b3596e; color: #5a0017; }
.stat-badge.open { background: #fef5e7; color: #744210; }
.stat-badge.replied { background: #c6f6d5; color: #22543d; }

html.dark .stat-badge.total { background: #5a0017; color: #b3596e; }
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 Details */
.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 Form */
.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;
}

/* Priority Selector */
.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(128, 0, 32, 0.05);
}

.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 */
.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(128, 0, 32, 0.05);
}

.file-upload-area.dragover {
  border-color: var(--primary);
  background: rgba(128, 0, 32, 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 */
.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);
}

/* 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 */
.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;
}

/* CAPTCHA */
.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;
}

/* ===================================
17. VOUCHER MANAGEMENT - BURGUNDY THEME
=================================== */
.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;
}

/* Print Options */
.print-form,
.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-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.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 Navigation */
.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);
}

/* ===================================
18. BILLING MANAGEMENT - BURGUNDY THEME
=================================== */
.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;
}

/* ===================================
19. ONLINE DEVICES - BURGUNDY THEME
=================================== */
.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;
}

.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;
}

/* Data Usage */
.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;
}

/* ===================================
20. AUTHENTICATION STYLES - BURGUNDY THEME
=================================== */
.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 */
.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);
}

/* Alerts */
.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;
}

.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;
}

/* Lockout Timer */
.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;
}

/* Password Toggle */
.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;
}

/* Code Section */
.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 */
.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;
}

/* ===================================
21. SEARCH STYLES - BURGUNDY THEME
=================================== */
.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(128, 0, 32, 0.1);
}

.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 Grid */
.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;
}

.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;
}

/* Search Match */
.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);
}

/* ===================================
22. PRICING STYLES - BURGUNDY THEME
=================================== */
.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 */
.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 */
.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 */
.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 */
.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 */
.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);
}

/* ===================================
23. ORDER STYLES - BURGUNDY THEME
=================================== */
.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 */
.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 */
.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;
}

/* ===================================
24. CRYPTO PAYMENT STYLES - BURGUNDY THEME
=================================== */
.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 */
.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 */
.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 */
.payment-instructions {
  background: linear-gradient(135deg, #ffe6e6, #ffd6d6);
  border: 1px solid #800020;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-top: 2rem;
}

html.dark .payment-instructions {
  background: linear-gradient(135deg, #5a0017, #800020);
  border: 1px solid #800020;
}

.instructions-header {
  font-weight: 600;
  color: #5a0017;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

html.dark .instructions-header {
  color: #b3596e;
}

.instructions-text {
  font-size: 0.9rem;
  color: #5a0017;
  line-height: 1.6;
}

html.dark .instructions-text {
  color: #b3596e;
}

/* ===================================
25. IMAGES & MEDIA
=================================== */
.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;
}

/* ===================================
26. RESPONSIVE STYLES
=================================== */
/* Tablet and Mobile */
@media (max-width: 768px) {
  .nav-menu,
  .login-btn,
  .user-dropdown,
  .dropdown {
    display: none !important;
  }
  
  .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 */
  #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;
  }
  
  /* Support mobile */
  .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;
  }
  
  .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;
  }
}

/* Extra Small Mobile */
@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 */
  #footer {
    padding: 30px 15px !important;
  }
  
  #footer a {
    width: 180px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
  }
  
  /* Support extra small */
  .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;
  }
}

/* ===================================
27. PRINT STYLES
=================================== */
@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;
  }
}
/* ===================================
HOTSPOT MANAGEMENT PAGE STYLES - BURGUNDY THEME
=================================== */
.hotspot-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem; /* Added left/right padding */
  background: #fff5f5;
  min-height: 100vh;
  transition: background-color 0.3s ease;
}

/* Dark mode support */
html.dark .hotspot-container {
  background: #1a0a0a;
}

/* Header Section */
.hotspot-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.hotspot-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.hotspot-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Navigation */
.hotspot-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Search and Filter Section */
.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;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.form-group {
  margin-bottom: 0;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover:not(.active) {
  border-color: var(--primary);
  background: rgba(128, 0, 32, 0.05);
  color: var(--primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #FFFFFF !important;
  border-color: var(--primary);
}

/* Filter Summary */
.filter-summary {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tag {
  background: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.filter-tag button {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  padding: 0;
  margin-left: 0.25rem;
  transition: all 0.3s ease;
}

.filter-tag button:hover {
  color: var(--error);
  transform: scale(1.2);
}

/* Config Section */
.config-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;
}

.config-textarea {
  width: 100%;
  min-height: 400px;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  background: var(--light-bg);
  color: var(--text-dark);
  resize: vertical;
  transition: all 0.3s ease;
}

.config-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--success), #28a745);
  color: #FFFFFF !important;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transform: translateX(200%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-notification.show {
  transform: translateX(0);
}

/* Hotspot Table */
.hotspot-table {
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.hotspot-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hotspot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #800020 0%, #5a0017 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.875rem;
}

.hotspot-details h4 {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

.hotspot-details p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.location-refresh {
  background: var(--primary);
  color: #FFFFFF !important;
  border: none;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  width: fit-content;
}

.location-refresh:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hotspot-container {
    padding: 1rem 0.75rem; /* Adjusted padding for mobile */
  }
  
  .hotspot-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hotspot-title {
    font-size: 1.5rem;
  }
  
  .search-form {
    grid-template-columns: 1fr;
  }
  
  .hotspot-nav {
    justify-content: center;
  }
  
  .nav-button {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .filter-buttons {
    flex-direction: column;
  }
  
  .filter-btn {
    width: 100%;
    justify-content: center;
  }
  
  .config-section {
    padding: 1.5rem;
  }
  
  .config-textarea {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .hotspot-container {
    padding: 0.75rem 0.5rem; /* Further reduced for small screens */
  }
  
  .hotspot-title {
    font-size: 1.25rem;
  }
  
  .hotspot-stats {
    justify-content: center;
  }
  
  .stat-badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .config-section {
    padding: 1rem;
  }
  
  .config-textarea {
    min-height: 250px;
    font-size: 0.75rem;
  }
  
  .copy-notification {
    top: 10px;
    right: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* ===================================
SETTINGS PAGE - PADDING FIX - BURGUNDY THEME
=================================== */
.settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem; /* Fixed: Added horizontal padding */
  background: #ffffff;
  min-height: 100vh;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(128, 0, 32, 0.08);
  border: 1px solid #ffe6e6;
}

.dark .settings-container {
  background: #1a0a0a;
  box-shadow: 0 2px 15px rgba(179, 89, 110, 0.25);
  border-color: #5a0017;
}

/* Responsive padding adjustments */
@media (max-width: 768px) {
  .settings-container {
    padding: 1.5rem 1rem; /* Reduced for tablets */
  }
}

@media (max-width: 480px) {
  .settings-container {
    padding: 1rem 0.75rem; /* Further reduced for mobile */
  }
  
  .settings-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .nav-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .settings-section {
    padding: 1.5rem;
  }
  
  .form-group.horizontal {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   AUTHENTICATION LINK STYLES - BURGUNDY THEME
   =================================== */

/* Authentication Form Links */
.form-link,
.auth-link,
.register-link,
.forgot-link,
.send-code-btn {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
}

.form-link:hover,
.auth-link:hover,
.register-link:hover,
.forgot-link:hover,
.send-code-btn:hover {
  color: var(--primary-dark);
  background: rgba(128, 0, 32, 0.1);
  text-decoration: none;
}

.send-code-btn {
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  display: inline-flex;
}

.send-code-btn:hover {
  background-color: var(--primary);
  color: #FFFFFF !important;
  border-color: var(--primary);
}

/* Email Sent Message */
.email-sent {
  color: var(--success);
  font-weight: 500;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Additional link styles for the login page */
.auth-tabs a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.auth-tabs a:hover {
  color: var(--primary);
  background-color: var(--light-bg);
}

.auth-tabs a.active {
  color: #FFFFFF !important;
  background-color: var(--primary);
}

/* Code section styles */
.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);
}

/* Lockout timer */
.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;
}

/* Query link (for send code button) */
.query-link {
  cursor: pointer;
}

/* Center the "Login by email link" */
div[style*="text-align: center"] {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

div[style*="text-align: center"] .form-link {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  background: var(--light-bg);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

div[style*="text-align: center"] .form-link:hover {
  background: var(--primary);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ===================================
   ACTION BUTTONS - ONLINE DEVICES - BURGUNDY THEME
   =================================== */

/* Action button styles */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.action-button:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Connected device action button */
.action-button.connected {
    background: var(--error);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-button.connected:hover {
    background: #e53e3e;
    color: white !important;
    transform: scale(1.05);
}

/* Disconnected/disabled action button */
.action-button.disconnect {
    background: #ffe6e6;
    color: #800020 !important;
    border: 1px solid #ffb3b3;
    cursor: not-allowed;
    opacity: 0.6;
}

.dark .action-button.disconnect {
    background: #331a1a;
    color: #ff9999 !important;
    border-color: #5a0017;
}

/* Online devices specific status badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid transparent;
}

.status-connected {
    background: #c6f6d5;
    color: #22543d;
    border-color: #a0e6b8;
}

.status-disconnected {
    background: #fed7d7;
    color: #742a2a;
    border-color: #f9b4b4;
}

/* Dark mode for status badges */
.dark .status-connected {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
    border-color: #48bb78;
}

.dark .status-disconnected {
    background: rgba(245, 101, 101, 0.2);
    color: #fc8181;
    border-color: #f56565;
}

/* Device avatar */
.device-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #800020 0%, #8b0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(128, 0, 32, 0.3);
}

/* Data usage bar */
.data-usage {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.usage-bar {
    width: 100px;
    height: 4px;
    background: #ffe6e6;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #ffb3b3;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #800020, #8b0000);
    transition: width 0.3s ease;
}

/* Table action column specific */
.responsive-table td:last-child {
    text-align: center;
    min-width: 50px;
}

/* Delete button in header */
.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;
}

/* Auto-refresh toggle */
.refresh-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-right: 8px;
}

.refresh-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.refresh-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffe6e6;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid #ffb3b3;
}

.refresh-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .refresh-slider {
    background-color: var(--primary);
    border-color: var(--primary-dark);
}

input:checked + .refresh-slider:before {
    transform: translateX(20px);
    background-color: #ff9999;
}

.refresh-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
    display: inline-block;
    margin-left: 8px;
    box-shadow: 0 0 4px var(--success);
}

.refresh-indicator.updating {
    background: var(--error);
    animation: pulse 0.5s infinite;
    box-shadow: 0 0 6px var(--error);
}

@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7); }
    70% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(72, 187, 120, 0); }
    100% { opacity: 1; }
}

/* New device highlight animation */
.new-device-row {
    animation: highlight 3s ease;
    background-color: rgba(128, 0, 32, 0.08);
}

@keyframes highlight {
    0% { background-color: rgba(128, 0, 32, 0.15); box-shadow: 0 0 15px rgba(128, 0, 32, 0.3); }
    100% { background-color: transparent; box-shadow: none; }
}

/* Device info styling */
.device-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.device-info > div {
    flex: 1;
}

/* Online/offline status indicators in title */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.status-online {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.status-offline {
    background: var(--error);
    box-shadow: 0 0 6px var(--error);
}

/* Responsive adjustments for action buttons */
@media (max-width: 768px) {
    .action-button {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .device-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .responsive-table td:last-child {
        text-align: center;
        padding: 0.5rem;
    }
}

/* ===================================
PORTAL MANAGEMENT PAGE STYLES - BURGUNDY THEME
=================================== */

/* Container */
.portal-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: #f8fafc;
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

/* Dark mode support */
html.dark .portal-container {
    background: #1a0a0a;
}

/* Header */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.portal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

html.dark .portal-title {
    color: #f7fafc;
}

.portal-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Navigation */
.portal-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Form Section */
.form-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

html.dark .form-section {
    background: #2a1a1a;
    border-color: #4a3a3a;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

html.dark .section-title {
    color: #f7fafc;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

html.dark .form-label {
    color: #cbd5e0;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #800020;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

html.dark .form-select {
    background: #1a0a0a;
    border-color: #4a3a3a;
    color: #f7fafc;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.checkbox-item {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.checkbox-item:hover {
    border-color: #800020;
    background: #edf2f7;
}

html.dark .checkbox-item {
    background: #2a1a1a;
    border-color: #4a3a3a;
}

.checkbox-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
    margin: 0;
}

html.dark .checkbox-item label {
    color: #cbd5e0;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Buttons */
.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;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #800020, #993366);
    color: #ffffff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a0017, #800020);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-button {
    background: #ffffff;
    color: #6c757d;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-button.primary {
    background: #800020;
    color: #ffffff !important;
}

.nav-button.primary:hover {
    background: #5a0017;
}

.nav-button:hover:not(.primary) {
    border-color: #800020;
    color: #800020;
    background: rgba(128, 0, 32, 0.05);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

html.dark .alert-error {
    background-color: #2d1b1b;
    border: 1px solid #4a2626;
    color: #f87171;
}

html.dark .alert-success {
    background-color: #1b2d1b;
    border: 1px solid #26482d;
    color: #4ade80;
}

/* Portal Table */
.portal-table {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

html.dark .portal-table {
    background: #2a1a1a;
    border-color: #4a3a3a;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

html.dark .table-header {
    background: #2a1a1a;
    border-color: #4a3a3a;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

html.dark .table-title {
    color: #f7fafc;
}

/* Status Badge */
.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: #edf2f7;
    color: #4a5568;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

html.dark .stat-badge {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

/* Table Styles */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

html.dark .responsive-table th,
html.dark .responsive-table td {
    border-color: #4a3a3a;
}

.responsive-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

html.dark .responsive-table th {
    background: #2a1a1a;
    color: #a0aec0;
}

.responsive-table td {
    color: #4a5568;
    font-size: 0.875rem;
}

html.dark .responsive-table td {
    color: #cbd5e0;
}

.responsive-table tr:hover {
    background: #f8fafc;
}

html.dark .responsive-table tr:hover {
    background: #331a1a;
}

/* Gateway Info */
.gateway-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gateway-name {
    font-weight: 600;
    color: #2d3748;
}

html.dark .gateway-name {
    color: #f7fafc;
}

.gateway-id {
    font-size: 0.75rem;
    color: #6c757d;
}

html.dark .gateway-id {
    color: #a0aec0;
}

/* Auth Type Badges */
.auth-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    background: #ffe6e6;
    color: #5a0017;
    border: 1px solid #ffb3b3;
}

html.dark .auth-type-badge {
    background: rgba(128, 0, 32, 0.2);
    color: #b3596e;
    border-color: #800020;
}

/* Action Links */
.action-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-link.primary {
    background: rgba(128, 0, 32, 0.1);
    color: #800020;
    border: 1px solid rgba(128, 0, 32, 0.2);
}

.action-link.primary:hover {
    background: #800020;
    color: #ffffff !important;
}

.action-link.secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.action-link.secondary:hover {
    background: #6c757d;
    color: #ffffff !important;
}

.action-link.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.action-link.warning:hover {
    background: #ffc107;
    color: #212529 !important;
}

.action-link.info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.action-link.info:hover {
    background: #17a2b8;
    color: #ffffff !important;
}

/* Status Indicators */
.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;
}

.status-active {
    background: #c6f6d5;
    color: #22543d;
}

.status-inactive {
    background: #fed7d7;
    color: #742a2a;
}

html.dark .status-active {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
}

html.dark .status-inactive {
    background: rgba(245, 101, 101, 0.2);
    color: #fc8181;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-data-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #800020;
}

.no-data h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.no-data p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

html.dark .no-data {
    color: #a0aec0;
}

html.dark .no-data h3 {
    color: #f7fafc;
}

html.dark .no-data p {
    color: #a0aec0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .portal-container {
        padding: 1rem;
    }
    
    .portal-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .portal-title {
        font-size: 1.5rem;
    }
    
    .portal-nav {
        flex-direction: column;
    }
    
    .nav-button {
        justify-content: center;
        text-align: center;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .responsive-table .hide-mobile {
        display: none;
    }
    
    .action-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .action-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.675rem;
    }
    
    .gateway-info {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .portal-container {
        padding: 0.75rem;
    }
    
    .portal-title {
        font-size: 1.25rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .btn, .nav-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .action-links {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .portal-nav,
    .alert,
    .action-links,
    .status-indicator,
    .stat-badge {
        display: none !important;
    }
    
    .portal-table {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .responsive-table th,
    .responsive-table td {
        border: 1px solid #000 !important;
        color: #000 !important;
    }
}

.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff5f5;
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

.dark .settings-container {
    background: #1a0a0a;
}

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

.settings-title {
    font-size: 2rem;
    font-weight: 700;
    color: #5a0017;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.dark .settings-title {
    color: #f7fafc;
}

.settings-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: white;
    color: #4a5568;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dark .stat-badge {
    background: #2a1a1a;
    color: #e2e8f0;
}

.stat-badge.available {
    background: #c6f6d5;
    color: #22543d;
}

.dark .stat-badge.available {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
}

.stat-badge.unlimited {
    background: #fef5e7;
    color: #744210;
}

.dark .stat-badge.unlimited {
    background: rgba(237, 137, 54, 0.2);
    color: #f6e05e;
}

/* BURGUNDY THEME: Changed blue to burgundy */
.reseller-mode .stat-badge {
    background: #4a5568;
    color: #e2e8f0;
    border: 1px solid #800020; /* Changed from #0099cc to #800020 */
}

.reseller-mode .stat-badge.available {
    background: #2a1a1a;
    color: #68d391;
    border: 1px solid #68d391;
}

.reseller-mode .stat-badge.unlimited {
    background: #2a1a1a;
    color: #f6e05e;
    border: 1px solid #f6e05e;
}

.settings-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: white;
    color: #4a5568;
}

.dark .nav-button {
    background: #2a1a1a;
    color: #e2e8f0;
}

/* BURGUNDY THEME: Changed blue to burgundy */
.nav-button.primary {
    background: #800020; /* Changed from #0099cc to #800020 */
    color: white;
}

/* BURGUNDY THEME: Changed blue to burgundy */
.nav-button:hover:not(.primary) {
    border-color: #800020; /* Changed from #0099cc to #800020 */
    color: #800020; /* Changed from #0099cc to #800020 */
}

/* BURGUNDY THEME: Changed blue to burgundy */
.nav-button.primary:hover {
    background: #5a0017; /* Changed from #0077a3 to #5a0017 */
}

/* Reseller nav button special styling - BURGUNDY THEME */
.reseller-mode .nav-button:not(.primary) {
    background: #331a1a;
    color: #e2e8f0;
    border-color: #800020; /* Changed from #0099cc to #800020 */
}

.settings-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dark .settings-section {
    background: #2a1a1a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #5a0017;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.dark .section-title {
    color: #e2e8f0;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.horizontal {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 1rem;
}

.form-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.dark .form-label {
    color: #e2e8f0;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    color: #374151;
}

.dark .form-input, .dark .form-select {
    background: #1a0a0a;
    border-color: #4a3a3a;
    color: #e2e8f0;
}

/* BURGUNDY THEME: Changed blue to burgundy */
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #800020; /* Changed from #0099cc to #800020 */
}

.form-input[readonly] {
    background: #f7fafc;
    color: #718096;
}

.dark .form-input[readonly] {
    background: #2a1a1a;
    color: #a0aec0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
}

/* BURGUNDY THEME: Changed blue to burgundy */
.btn-primary {
    background: #800020; /* Changed from #0099cc to #800020 */
    color: white;
}

/* BURGUNDY THEME: Changed blue to burgundy */
.btn-primary:hover {
    background: #5a0017; /* Changed from #0077a3 to #5a0017 */
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.dark .btn-secondary {
    background: #4a5568;
    color: #e2e8f0;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.dark .btn-secondary:hover {
    background: #718096;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #68d391;
}

.alert-info {
    background: #bee3f8;
    color: #2a4365;
    border: 1px solid #63b3ed;
}

/* Dark mode alert overrides */
.dark .alert-error {
    background: rgba(245, 101, 101, 0.2);
    color: #fc8181;
    border-color: #f56565;
}

.dark .alert-success {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
    border-color: #48bb78;
}

.dark .alert-info {
    background: rgba(66, 153, 225, 0.2);
    color: #90cdf4;
    border-color: #4299e1;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-card {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
    /* BURGUNDY THEME: Changed blue to burgundy */
    border-left: 4px solid #800020; /* Changed from #0099cc to #800020 */
    transition: background-color 0.3s ease;
}

.dark .info-card {
    background: #1a0a0a;
}

.info-card-title {
    font-weight: 600;
    color: #5a0017;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.dark .info-card-title {
    color: #e2e8f0;
}

/* BURGUNDY THEME: Changed blue to burgundy */
.info-card-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #800020; /* Changed from #0099cc to #800020 */
}

.api-section {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.dark .api-section {
    background: #1a0a0a;
}

.api-code {
    background: #2a1a1a;
    color: #e2e8f0;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    overflow-x: auto;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    white-space: pre-wrap;
    position: relative;
}

.dark .api-code {
    background: #1a0a0a;
    border: 1px solid #4a3a3a;
}

.api-docs {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4a5568;
    transition: color 0.3s ease;
}

.dark .api-docs {
    color: #a0aec0;
}

.api-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* BURGUNDY THEME: Changed blue to burgundy */
.api-nav-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #800020; /* Changed from #0099cc to #800020 */
    background: white;
    color: #800020; /* Changed from #0099cc to #800020 */
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dark .api-nav-btn {
    background: #2a1a1a;
    color: #b3596e; /* Changed from #66bbcc to #b3596e (burgundy) */
    border-color: #b3596e; /* Changed from #66bbcc to #b3596e (burgundy) */
}

/* BURGUNDY THEME: Changed blue to burgundy */
.api-nav-btn.active {
    background: #800020; /* Changed from #0099cc to #800020 */
    color: white;
}

.api-nav-btn:hover:not(.active) {
    background: #f7fafc;
}

.dark .api-nav-btn:hover:not(.active) {
    background: #331a1a;
}

.endpoint-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dark .endpoint-section {
    background: #2a1a1a;
    border-color: #4a3a3a;
}

.endpoint-header {
    background: #f8fafc;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark .endpoint-header {
    background: #331a1a;
    border-color: #4a3a3a;
}

.endpoint-header:hover {
    background: #f1f5f9;
}

.dark .endpoint-header:hover {
    background: #4a3a3a;
}

.endpoint-title {
    font-weight: 600;
    color: #5a0017;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark .endpoint-title {
    color: #e2e8f0;
}

/* BURGUNDY THEME: Changed blue to burgundy */
.endpoint-method {
    background: #800020; /* Changed from #0099cc to #800020 */
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.endpoint-content {
    padding: 1.5rem;
    display: none;
}

.endpoint-content.active {
    display: block;
}

.reseller-section {
    opacity: 0.5;
    pointer-events: none;
}

.reseller-section.enabled {
    opacity: 1;
    pointer-events: all;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* API docs headers in dark mode */
.dark .api-docs h4 {
    color: #e2e8f0 !important;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #4a5568;
    color: #e2e8f0;
    border: none;
    border-radius: 4px;
    font-size: 0.625rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.api-code:hover .copy-btn {
    opacity: 1;
}

@media (max-width: 768px) {
    .settings-container {
        padding: 1rem;
    }
    
    .settings-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .settings-nav {
        justify-content: center;
    }
    
    .nav-button {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .form-group.horizontal {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .api-nav {
        justify-content: center;
    }
    
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
/* ===================================
END OF STYLESHEET - BURGUNDY THEME
=================================== */