:root {
  /* Light theme colors */
  --primary-color: #2563eb;
  --secondary-color: #4f46e5;
  --accent-color: #f97316;
  --background: #f9fafb;
  --foreground: #1f2937;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --red: #ef4444;
  --green: #10b981;
  --blue-light: #dbeafe;
  --purple-light: #ede9fe;
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 70px;
  --header-height: 70px;
  --transition-speed: 0.3s;
}

[data-theme="dark"] {
  /* Dark theme colors */
  --primary-color: #3b82f6;
  --secondary-color: #6366f1;
  --accent-color: #f97316;
  --background: #111827;
  --foreground: #f9fafb;
  --card-bg: #1f2937;
  --border-color: #374151;
  --text-color: #f9fafb;
  --text-light: #9ca3af;
  --red: #f87171;
  --green: #34d399;
  --blue-light: #1e3a8a;
  --purple-light: #4c1d95;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Mulish", sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text-color);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--card-bg);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  transition: width var(--transition-speed);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: var(--header-height);
  border-bottom: 1px solid var(--border-color);
}

.logo-icon {
  color: var(--primary-color);
  font-size: 24px;
  margin-right: 12px;
}

.logo-text {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 24px;
  white-space: nowrap;
  transition: opacity var(--transition-speed);
}

.sidebar.collapsed .logo-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  color: var(--text-color);
  white-space: nowrap;
}

.sidebar-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .sidebar-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-item.active {
  color: var(--primary-color);
  background-color: var(--blue-light);
  font-weight: 500;
}

.sidebar-item i {
  margin-right: 12px;
  font-size: 18px;
  width: 20px;
  text-align: center;
  color: var(--text-light);
}

.sidebar-item.active i {
  color: var(--primary-color);
}

.sidebar.collapsed .sidebar-item i {
  margin-right: 0;
}

.sidebar-text {
  transition: opacity var(--transition-speed);
}

.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .new-badge {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* Sidebar Section and Submenu Styles */
.sidebar-section {
  position: relative;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  color: var(--text-color);
  white-space: nowrap;
}

.sidebar-section-header:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .sidebar-section-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-section-header i {
  margin-right: 12px;
  font-size: 18px;
  width: 20px;
  text-align: center;
  color: var(--text-light);
}

.sidebar-section-toggle {
  margin-left: auto !important;
  margin-right: 0 !important;
  font-size: 12px !important;
  transition: transform 0.3s ease;
}

.sidebar-section.active .sidebar-section-toggle {
  transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-section-toggle {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-section.active .sidebar-submenu {
  max-height: 500px;
}

.sidebar-submenu .sidebar-item {
  padding-left: 40px;
}

.sidebar-submenu .sidebar-item i {
  font-size: 14px;
}

/* Tooltip for collapsed sidebar with submenu */
.sidebar.collapsed .sidebar-section-header:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  margin-left: 10px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.sidebar.collapsed .sidebar-section-header:hover::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent var(--border-color) transparent transparent;
  z-index: 1000;
  margin-left: -2px;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 10px 0;
}

.new-badge {
  background-color: var(--primary-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: auto;
  transition: opacity var(--transition-speed);
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  width: 24px;
  height: 24px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101;
  transform: translate(50%, -50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed);
}

/* Main Content Styles */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-speed);
  padding-top: var(--header-height);
}

.main-content.expanded {
  margin-left: var(--sidebar-collapsed-width);
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  width: 100%;
  transition: none;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header-left {
  display: flex;
  align-items: center;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-speed);
}

.main-content.expanded + .header .header-left {
  margin-left: var(--sidebar-collapsed-width);
}

.back-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: 18px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.try-button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  position: relative;
}

.language-selector {
  position: relative;
  cursor: pointer;
}

.selected-language {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.flag-icon {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
}

.notification-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--red);
  color: white;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.points,
.balance {
  text-align: center;
  background-color: var(--background);
  padding: 8px 15px;
  border-radius: 20px;
}

.points-label,
.balance-label {
  font-size: 12px;
  color: var(--text-light);
}

.points-value,
.balance-value {
  font-weight: 600;
  color: var(--text-color);
}

.points-value {
  color: var(--accent-color);
}

.balance-value {
  color: var(--primary-color);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dropdown Menus */
.dropdown {
  position: fixed;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  border: 1px solid var(--border-color);
  min-width: 200px;
  animation: fadeIn 0.2s ease-in-out;
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#themeDropdown,
#languageDropdown,
#notificationDropdown,
#userDropdown {
  top: auto;
  right: auto;
  left: auto;
  transform: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-item i,
.dropdown-item img {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  text-align: center;
}

/* Notification Dropdown */
.dropdown-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.dropdown-actions {
  display: flex;
  gap: 10px;
}

.refresh-btn,
.mark-all-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 14px;
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.notification-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .notification-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.notification-item.unread {
  background-color: rgba(59, 130, 246, 0.05);
}

.notification-item .notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--primary-color);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.notification-time {
  font-size: 12px;
  color: var(--text-light);
}

.dropdown-footer {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
}

.view-all-btn,
.read-all-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 14px;
}

/* User Dropdown */
.dropdown-user-info {
  display: flex;
  align-items: center;
  padding: 15px;
}

.dropdown-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
}

.dropdown-username {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 16px;
}

.dropdown-email {
  font-size: 14px;
  color: var(--text-light);
}

.dropdown-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 10px;
}

.dropdown-menu {
  padding: 8px 0;
  border-top: 1px solid var(--border-color);
}

/* Page Content */
.page-content {
  padding: 20px;
  flex: 1;
  display: none;
  width: 100%;
}

@media (max-width: 767px) {
  .page-content {
    padding: 0;
  }
}

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

/* Banner Styles */
.banner {
  width: 100%;
  height: 120px;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dashboard Styles */
.dashboard {
  display: flex;
  gap: 20px;
}

.dashboard-left {
  flex: 1;
}

.dashboard-right {
  width: 320px;
  flex-shrink: 0;
}

/* Services Section Styles */
.services-section {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.services-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.tab {
  background: none;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
}

.tab.active {
  color: var(--primary-color);
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.service-types {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.service-type {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  background-color: var(--blue-light);
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--primary-color);
}

.service-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.service-icon.blue {
  background-color: var(--primary-color);
}

.services-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.services-table th {
  text-align: left;
  padding: 10px;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
}

.services-table td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--border-color);
}

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status.active {
  background-color: var(--blue-light);
  color: var(--primary-color);
}

.view-all {
  text-align: left;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.view-all-link i {
  margin-left: 5px;
}

/* Create Services Section */
.create-services-section {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.create-services-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.service-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--card-bg);
}

.service-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.service-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.service-card-icon.blue {
  background-color: var(--primary-color);
}

.service-card-content {
  flex: 1;
}

.service-card-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.service-card-content p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

/* Account Info Styles */
.account-info {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.account-info h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.account-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.account-button,
.deposit-button {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.account-button {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.deposit-button {
  background-color: var(--primary-color);
  border: none;
  color: white;
}

.account-details {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.account-detail {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}

.detail-value {
  font-weight: 600;
}

.detail-value.blue {
  color: var(--primary-color);
}

/* Support Section */
.support-section {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.support-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.support-links {
  display: flex;
  flex-direction: column;
}

.support-link {
  text-decoration: none;
  color: var(--text-color);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.support-link:last-child {
  border-bottom: none;
}

.support-link-title {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 3px;
}

.support-link-desc {
  font-size: 12px;
  color: var(--text-light);
}

/* 2FA Verification Section */
.verification-section {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
}

.verification-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.verification-section h2 i {
  margin-right: 10px;
  color: var(--primary-color);
}

.verification-section p {
  margin-bottom: 15px;
  line-height: 1.5;
  color: var(--text-light);
}

.verification-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.verification-button i {
  margin-right: 8px;
}

/* Chat Button */
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  z-index: 100;
}

.chat-button i {
  font-size: 20px;
}

/* Loading Styles */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  width: 100%;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--blue-light);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.loading-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-color);
}

/* Error Page Styles */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  width: 100%;
  text-align: center;
}

.error-icon {
  font-size: 80px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.error-code {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.error-message {
  font-size: 16px;
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: 30px;
}

.error-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.error-button i {
  margin-right: 8px;
}

/* Đảm bảo page container hiển thị đúng */
#pageContainer {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Account Page Styles */
.account-container {
  display: flex;
  gap: 20px;
}

.account-sidebar {
  width: 250px;
  flex-shrink: 0;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.account-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.profile-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.online-indicator {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background-color: var(--green);
  border-radius: 50%;
  border: 2px solid var(--card-bg);
}

.profile-info {
  text-align: center;
}

.profile-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.profile-info p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.profile-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

.account-menu {
  display: flex;
  flex-direction: column;
}

.account-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 5px;
}

.account-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .account-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.account-menu-item.active {
  background-color: var(--blue-light);
  color: var(--primary-color);
  font-weight: 500;
}

.account-menu-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.account-content {
  flex: 1;
}

.account-section {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.account-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.status-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.status-info h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.status-verified {
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
}

.membership-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.membership-level {
  padding: 20px;
  background-color: var(--blue-light);
  border-radius: 8px;
  color: var(--primary-color);
}

.membership-level h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.progress-container {
  height: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
}

.membership-points {
  display: flex;
  gap: 15px;
}

.points-card {
  flex: 1;
  padding: 15px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
}

.points-card h4 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.points-card .points-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.points-card p {
  font-size: 12px;
  color: var(--text-light);
}

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

.exchange-points-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.points-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.points-tab {
  background: none;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
}

.points-tab.active {
  color: var(--primary-color);
}

.points-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

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

.points-table th {
  text-align: left;
  padding: 10px;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
}

.points-table td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--border-color);
}

/* Billing Page Styles */
.billing-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  padding-bottom: 1px;
}

.billing-tab {
  background: none;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  white-space: nowrap;
}

.billing-tab.active {
  color: var(--primary-color);
}

.billing-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.billing-content {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.billing-info {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.billing-info p {
  color: var(--text-light);
  line-height: 1.5;
}

.amount-section {
  margin-bottom: 20px;
}

.amount-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.amount-option {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
}

.amount-option:hover {
  border-color: var(--primary-color);
}

.voucher-section {
  margin-bottom: 20px;
}

.voucher-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.voucher-input {
  display: flex;
  gap: 10px;
}

.voucher-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.apply-voucher {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.payment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.confirm-payment {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  min-width: 150px;
}

/* Styles for page content and header */
.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 600;
}

/* Domain Page Styles */
.domain-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.search-filter-container {
  display: flex;
  gap: 15px;
  align-items: center;
  flex: 1;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

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

.filter-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-color);
}

.filter-button i {
  font-size: 12px;
  color: var(--text-light);
}

.add-domain-button,
.add-domain-button-alt {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-list-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 30px;
  min-height: 300px;
}

.empty-domain-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 40px 0;
}

.empty-domain-icon {
  font-size: 60px;
  color: var(--text-light);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-domain-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.empty-domain-state p {
  color: var(--text-light);
  max-width: 400px;
  margin-bottom: 20px;
}

.domain-docs-section {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.domain-docs-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.domain-docs-links {
  display: flex;
  flex-direction: column;
}

.domain-doc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
}

.domain-doc-link:last-child {
  border-bottom: none;
}

.view-more {
  text-align: right;
  margin-top: 10px;
}

.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-light);
}

.modal-body {
  padding: 20px;
}

.domain-search-section {
  margin-bottom: 30px;
}

.domain-search-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.domain-search-box {
  display: flex;
  gap: 10px;
}

.domain-search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.domain-search-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

.domain-pricing-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.domain-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.domain-price-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: all 0.2s ease;
}

.domain-price-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.domain-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.domain-type {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.domain-extension {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.domain-price {
  color: var(--primary-color);
  font-weight: 600;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
}

.cancel-button {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.proceed-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .status-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .domain-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .dashboard {
    flex-direction: column;
  }

  .dashboard-right {
    width: 100%;
  }

  .account-container {
    flex-direction: column;
  }

  .account-sidebar {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: var(--sidebar-collapsed-width);
  }

  .sidebar-text,
  .logo-text,
  .new-badge {
    opacity: 0;
    width: 0;
    overflow: hidden;
  }

  .sidebar-item i {
    margin-right: 0;
  }

  .main-content {
    margin-left: var(--sidebar-collapsed-width);
  }

  .header-left {
    margin-left: var(--sidebar-collapsed-width);
  }

  .points,
  .balance {
    display: none;
  }

  .header-right {
    gap: 10px;
  }

  .status-cards {
    grid-template-columns: 1fr;
  }

  .domain-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: none;
  }

  .domain-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Thêm vào cuối file styles.css */

/* Domain Register Page Styles */
.domain-search-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.domain-search-container h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.domain-search-box {
  display: flex;
  gap: 10px;
}

.domain-search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.domain-search-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

.domain-pricing-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.domain-pricing-container h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Domain Submenu Styles - Cập nhật để hiển thị giống ảnh */
/*
.domain-submenu {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.domain-submenu-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s ease;
  position: relative;
}

.domain-submenu-item i {
  margin-right: 10px;
  font-size: 16px;
  color: var(--text-light);
}

.domain-submenu-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .domain-submenu-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.domain-submenu-item.active {
  color: var(--primary-color);
  font-weight: 500;
}

.domain-submenu-item.active i {
  color: var(--primary-color);
}

.domain-submenu-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

@media (max-width: 768px) {
  .domain-submenu {
    flex-direction: column;
    border-radius: 8px;
  }

  .domain-submenu-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

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

  .domain-submenu-item.active::after {
    width: 3px;
    height: 100%;
    top: 0;
    left: 0;
  }
}
*/

/* Thêm vào cuối file styles.css */

/* Domain Submenu Styles - Cập nhật để hiển thị dọc bên trái */
.domain-container {
  display: flex;
  gap: 20px;
}

.domain-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.domain-submenu {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.domain-submenu-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s ease;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

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

.domain-submenu-item i {
  margin-right: 10px;
  font-size: 16px;
  color: var(--text-light);
  width: 20px;
  text-align: center;
}

.domain-submenu-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .domain-submenu-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.domain-submenu-item.active {
  color: var(--primary-color);
  font-weight: 500;
  background-color: var(--blue-light);
}

.domain-submenu-item.active i {
  color: var(--primary-color);
}

.domain-main-content {
  flex: 1;
}

@media (max-width: 768px) {
  .domain-container {
    flex-direction: column;
  }

  .domain-sidebar {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* DNS Page Styles */
.dns-info-container {
  margin-bottom: 20px;
}

.dns-info-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  gap: 20px;
}

.dns-info-icon {
  width: 60px;
  height: 60px;
  background-color: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 24px;
  flex-shrink: 0;
}

.dns-info-content {
  flex: 1;
}

.dns-info-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.dns-info-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

.dns-features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.dns-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dns-features li i {
  color: var(--green);
}

.dns-nameservers {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.dns-nameservers h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.dns-nameservers p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.nameserver-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nameserver-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--background);
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.nameserver-value {
  flex: 1;
  font-family: monospace;
  font-size: 16px;
}

.copy-button {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 5px;
}

.copy-button:hover {
  color: var(--primary-color);
}

.dns-domains-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

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

.dns-domains-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.add-dns-domain-button,
.add-dns-domain-button-alt {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-dns-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}

.empty-dns-icon {
  font-size: 60px;
  color: var(--text-light);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-dns-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.empty-dns-state p {
  color: var(--text-light);
  max-width: 400px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .dns-info-card {
    flex-direction: column;
  }

  .dns-features {
    grid-template-columns: 1fr;
  }
}
/* Cloud Hosting Styles */
.hosting-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.hosting-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
}

.hosting-tab.active {
  color: var(--primary-color);
}

.hosting-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.hosting-tab-content {
  margin-bottom: 30px;
}

.hosting-tab-pane {
  display: none;
}

.hosting-tab-pane.active {
  display: block;
}

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

.add-hosting-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hosting-list-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.hosting-item {
  border-bottom: 1px solid var(--border-color);
}

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

.hosting-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .hosting-item-header {
  background-color: rgba(255, 255, 255, 0.02);
}

.hosting-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hosting-name h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.hosting-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.hosting-badge.active {
  background-color: var(--blue-light);
  color: var(--primary-color);
}

.hosting-action-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hosting-action-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

[data-theme="dark"] .hosting-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.hosting-item-content {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hosting-stats {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.stat-item {
  background-color: var(--background);
  border-radius: 8px;
  padding: 15px;
}

.stat-title {
  font-weight: 500;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

[data-theme="dark"] .progress-bar {
  background-color: rgba(255, 255, 255, 0.1);
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.hosting-info {
  flex: 1;
  min-width: 300px;
}

.info-item {
  display: flex;
  margin-bottom: 12px;
  font-size: 14px;
}

.info-label {
  width: 150px;
  font-weight: 500;
}

.info-value {
  flex: 1;
  color: var(--text-light);
}

.copy-icon {
  cursor: pointer;
  margin-left: 5px;
  color: var(--text-light);
}

.copy-icon:hover {
  color: var(--primary-color);
}

.hosting-item-footer {
  padding: 15px 20px;
  background-color: var(--background);
}

.hosting-actions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hosting-action-button {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
}

.hosting-action-button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Create Hosting Styles */
.create-hosting-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.create-hosting-section {
  margin-bottom: 30px;
}

.section-header {
  margin-bottom: 15px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-options,
.hosting-type-options {
  display: flex;
  gap: 15px;
}

.location-option,
.hosting-type-option {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-option.active,
.hosting-type-option.active {
  border-color: var(--primary-color);
  background-color: var(--blue-light);
}

.location-name {
  font-weight: 500;
  text-align: center;
}

.hosting-type-name {
  font-weight: 500;
  margin-bottom: 5px;
}

.hosting-type-desc {
  font-size: 14px;
  color: var(--text-light);
}

.package-option-header {
  margin-bottom: 15px;
}

.package-option-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.package-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.package-option {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.package-option.active {
  border-color: var(--primary-color);
  background-color: var(--blue-light);
}

.package-name {
  font-weight: 500;
}

.storage-domain-options {
  margin-top: 20px;
}

.option-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.option-label {
  width: 200px;
  font-weight: 500;
}

.option-input {
  flex: 1;
}

.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-bg);
  color: var(--text-color);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.billing-cycle-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.billing-option {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.billing-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.billing-option label {
  display: block;
  cursor: pointer;
  font-weight: 500;
}

.billing-option.active {
  border-color: var(--primary-color);
  background-color: var(--blue-light);
}

.discount {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}

.domain-info {
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
}

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.cart-button {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.summary-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.total-price {
  text-align: right;
}

.price-label {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.price-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.checkout-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hosting Tools Styles */
.hosting-tools-section {
  margin-top: 30px;
}

.tools-section {
  margin-bottom: 30px;
}

.tools-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--blue-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tool-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.tool-info p {
  font-size: 12px;
  color: var(--text-light);
}

/* Support Ticket Styles */
.ticket-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.ticket-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
}

.ticket-tab.active {
  color: var(--primary-color);
}

.ticket-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.ticket-tab-content {
  margin-bottom: 30px;
}

.ticket-tab-pane {
  display: none;
}

.ticket-tab-pane.active {
  display: block;
}

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

.view-options {
  display: flex;
  gap: 5px;
}

.view-option {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.view-option.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.add-ticket-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket-table-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 20px;
}

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

.ticket-table th {
  text-align: left;
  padding: 12px 15px;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .ticket-table th {
  background-color: rgba(255, 255, 255, 0.02);
}

.ticket-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
}

.ticket-table tr:last-child td {
  border-bottom: none;
}

.ticket-id {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

.ticket-title {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.ticket-status.open {
  background-color: var(--blue-light);
  color: var(--primary-color);
}

.ticket-status.answered {
  background-color: #fff3e0;
  color: #ff9800;
}

.ticket-status.closed {
  background-color: #e8f5e9;
  color: #4caf50;
}

.ticket-priority {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.ticket-priority.low {
  background-color: #e8f5e9;
  color: #4caf50;
}

.ticket-priority.medium {
  background-color: #fff3e0;
  color: #ff9800;
}

.ticket-priority.high {
  background-color: #ffebee;
  color: #f44336;
}

.ticket-priority.urgent {
  background-color: #880e4f;
  color: white;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination-info {
  font-size: 14px;
  color: var(--text-light);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-prev,
.pagination-next {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pagination-prev:disabled,
.pagination-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-page {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pagination-page.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Create Ticket Styles */
.create-ticket-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb-item {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-color);
  font-weight: 500;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--text-light);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.ticket-form {
  max-width: 100%;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group label.required::after {
  content: "*";
  color: #f44336;
  margin-left: 4px;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.form-select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-bg);
  color: var(--text-color);
  appearance: none;
}

.select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.rich-text-editor {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--background);
}

.toolbar-group {
  display: flex;
  gap: 2px;
  border-right: 1px solid var(--border-color);
  padding-right: 5px;
  margin-right: 5px;
}

.toolbar-group:last-child {
  border-right: none;
}

.toolbar-button {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background-color: transparent;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.toolbar-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .toolbar-button:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.toolbar-button.dropdown {
  width: auto;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.editor-content {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: none;
  resize: vertical;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-upload-btn {
  background-color: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-upload-info {
  font-size: 14px;
  color: var(--text-light);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn-secondary {
  background-color: var(--background);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .form-row {
    flex-direction: column;
    gap: 20px;
  }

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

  .hosting-stats {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .ticket-table th:nth-child(4),
  .ticket-table td:nth-child(4),
  .ticket-table th:nth-child(5),
  .ticket-table td:nth-child(5) {
    display: none;
  }

  .hosting-item-content {
    flex-direction: column;
  }

  .hosting-actions-list {
    flex-direction: column;
  }

  .hosting-action-button {
    width: 100%;
  }

  .package-options-grid,
  .billing-cycle-options {
    grid-template-columns: 1fr;
  }
}

/* Authentication Pages Styles - Updated */
.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: white;
  position: relative;
  max-width: 600px;
  height: 100vh;
  overflow-y: auto;
}

.auth-form-scroll {
  padding: 40px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.auth-image-panel {
  flex: 1;
  background-color: #0a1e45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 1;
}

/* Đảm bảo không có khoảng cách giữa hai cột */
@media (min-width: 993px) {
  .auth-form-panel {
    width: 50%;
    max-width: 50%;
  }
}

.auth-logo {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
}

.auth-form-container {
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

.auth-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0a1e45;
}

.auth-subtitle {
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.5;
}

.auth-form .form-group {
  margin-bottom: 24px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1f2937;
}

.required-field::after {
  content: "*";
  color: #f44336;
  margin-left: 4px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 16px;
  color: #6b7280;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 16px 12px 45px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.input-with-icon input:focus {
  border-color: #2563eb;
  outline: none;
}

.toggle-password {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.toggle-password:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.toggle-password:focus {
  outline: none;
}

.toggle-password i {
  position: static;
  font-size: 18px;
}

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

.generate-password {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.generate-password i {
  font-size: 12px;
}

.forgot-password {
  text-align: right;
  margin-bottom: 24px;
}

.forgot-password a {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
}

.auth-button {
  width: 100%;
  padding: 14px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.auth-button:hover {
  background-color: #1d4ed8;
}

.auth-button.outline {
  background-color: transparent;
  border: 1px solid #2563eb;
  color: #2563eb;
}

.auth-button.outline:hover {
  background-color: rgba(37, 99, 235, 0.05);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #6b7280;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
}

.auth-divider span {
  padding: 0 16px;
  font-size: 14px;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.social-button {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.social-button:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-button img {
  width: 24px;
  height: 24px;
}

.social-button i {
  font-size: 24px;
}

.auth-footer {
  text-align: center;
  margin: 24px 0;
  color: #6b7280;
}

.auth-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.terms-agreement {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}

.terms-agreement a {
  color: #2563eb;
  text-decoration: none;
}

.auth-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: auto;
  padding-top: 24px;
}

.auth-links a {
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
}

.auth-links a:hover {
  color: #2563eb;
}

/* Carousel Styles */
.auth-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.auth-image {
  width: 100%;
  max-width: 500px;
  margin-bottom: 40px;
  text-align: center;
}

.server-illustration {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.auth-image-content {
  text-align: center;
  max-width: 600px;
}

.auth-image-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.auth-image-content p {
  line-height: 1.6;
  opacity: 0.9;
}

.auth-image-dots {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: white;
  width: 24px;
  border-radius: 5px;
}

/* Language Selector */
.auth-language-selector {
  position: absolute;
  right: 0;
  top: 0;
}

.language-toggle {
  display: flex;
  background-color: #f3f4f6;
  border-radius: 20px;
  padding: 4px;
  position: relative;
  width: 80px;
}

.language-option {
  flex: 1;
  text-align: center;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s;
  color: #6b7280;
}

.language-option.active {
  color: #ffffff;
}

.language-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 36px;
  height: calc(100% - 8px);
  background-color: #2563eb;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.language-option:nth-child(2).active ~ .language-slider {
  transform: translateX(36px);
}

/* Điều chỉnh responsive */
@media (max-width: 992px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-image-panel {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
  }

  .auth-form-panel {
    max-width: 100%;
    height: auto;
    min-height: 50vh;
  }
}

@media (max-width: 576px) {
  .auth-title {
    font-size: 24px;
  }

  .auth-image-content h2 {
    font-size: 22px;
  }

  .auth-form-scroll {
    padding: 20px 15px;
  }

  .social-login {
    flex-wrap: wrap;
  }

  .auth-image-panel {
    min-height: 350px;
  }
}

/* Thêm vào cuối file styles.css */

/* Ẩn cột slide ảnh trên mobile cho các trang đăng nhập, đăng ký và quên mật khẩu */
@media (max-width: 767px) {
  .auth-container .auth-image-panel {
    display: none;
  }

  .auth-container .auth-form-panel {
    max-width: 100%;
    width: 100%;
  }
}
/* Mobile Navigation Bar */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-light);
  text-decoration: none;
  font-size: 10px;
  padding: 8px 0;
}

.mobile-nav-item.active {
  color: var(--primary-color);
}

.mobile-nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.mobile-nav-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 30px;
  background-color: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  color: white;
  font-size: 24px;
  z-index: 1001;
}

/* Mobile Popup Menu */
.mobile-popup {
  display: none;
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.mobile-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-popup-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.mobile-popup-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
}

.mobile-popup-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.mobile-popup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px 10px;
  border-radius: 8px;
  color: var(--text-color);
  text-decoration: none;
}

.mobile-popup-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .mobile-popup-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-popup-item i {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.mobile-popup-item span {
  font-size: 12px;
}

.mobile-popup-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.mobile-popup-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

/* Mobile Notification */
.mobile-notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1002;
  padding: 20px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.mobile-notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.mobile-notification-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.mobile-notification-header h3 i {
  margin-right: 8px;
  color: var(--primary-color);
}

.mobile-notification-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
}

.mobile-notification-content {
  padding: 15px;
  background-color: var(--blue-light);
  border-radius: 8px;
  margin-bottom: 15px;
}

.mobile-notification-title {
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.mobile-notification-text {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.5;
}

.mobile-notification-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mobile-notification-button {
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}

.mobile-notification-button.primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.mobile-notification-button.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  /* Mobile Specific Styles */
  @media (max-width: 768px) {
    /* Ẩn sidebar trên mobile */
    .sidebar {
      display: none;
    }

    /* Điều chỉnh main content để không có margin-left */
    .main-content {
      margin-left: 0 !important;
      padding-top: 60px;
    }

    /* Điều chỉnh header */
    .header {
      height: 60px;
      padding: 0 15px;
    }

    /* Ẩn các phần tử không cần thiết trên mobile */
    .header-right .try-button,
    .header-right .points,
    .header-right .balance {
      display: none;
    }

    /* Hiển thị mobile navigation */
    .mobile-nav {
      display: flex;
    }

    /* Điều chỉnh kích thước và padding cho các phần tử */
    #pageContainer {
      padding: 15px;
    }

    /* Đảm bảo các popup hiển thị đúng */
    .mobile-popup {
      width: 100%;
      max-height: 80vh;
      z-index: 1100;
    }

    /* Đảm bảo mobile notification hiển thị đúng */
    .mobile-notification {
      width: 100%;
      z-index: 1200;
    }

    /* Điều chỉnh kích thước cho các phần tử trong notification */
    .notification-item {
      width: 100%;
    }

    /* Đảm bảo floating action button và chat button hiển thị đúng */
    .floating-action-button,
    .mobile-chat-button {
      position: fixed;
      z-index: 1050;
    }

    /* Đảm bảo body có padding-bottom để tránh bị che bởi mobile nav */
    body {
      padding-bottom: 70px;
    }
  }

  /* Mobile Navigation Bar - Updated */
  .mobile-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #6b7280;
    text-decoration: none;
    font-size: 10px;
    padding: 8px 0;
  }

  .mobile-nav-item.active {
    color: #2563eb;
  }

  .mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
  }

  /* Mobile Popup Menu - Updated */
  .mobile-popup {
    display: none;
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .mobile-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
  }

  .mobile-popup-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
  }

  .mobile-popup-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
  }

  /* Updated popup content layout */
  .mobile-popup-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }

  /* Domain services grid */
  .domain-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .mobile-popup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 10px;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #1f2937;
    text-decoration: none;
    width: calc(50% - 8px);
  }

  .mobile-popup-item i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #2563eb;
  }

  .mobile-popup-item span {
    font-size: 14px;
  }

  /* Vertical layout for product categories */
  .mobile-popup-item-vertical {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    color: #1f2937;
    text-decoration: none;
  }

  .mobile-popup-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
  }

  .mobile-popup-icon i {
    color: #2563eb;
    font-size: 20px;
  }

  .mobile-popup-text {
    font-size: 12px;
    font-weight: 500;
  }

  .mobile-popup-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    width: 100%;
  }

  .mobile-popup-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
  }

  /* Mobile Notification - Updated */
  .mobile-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 1002;
    padding: 15px;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  @keyframes slideDown {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .mobile-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  .mobile-notification-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
  }

  .mobile-notification-header h3 i {
    margin-right: 8px;
    color: #2563eb;
  }

  .mobile-notification-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
  }

  /* Updated notification items */
  .notification-item {
    display: flex;
    padding: 12px;
    background-color: #f0f7ff;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
  }

  .notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 12px;
    flex-shrink: 0;
  }

  .notification-content {
    flex: 1;
  }

  .notification-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .notification-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
  }

  .notification-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .notification-actions {
    margin-top: 10px;
  }

  .update-now-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }

  /* Services section on home page */
  .your-services-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
  }

  .your-services-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
  }

  .services-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 15px;
  }

  .services-tab {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    position: relative;
  }

  .services-tab.active {
    color: #2563eb;
  }

  .services-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
  }

  .services-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
  }

  .service-type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #dbeafe;
    padding: 8px 12px;
    border-radius: 6px;
    color: #2563eb;
    font-size: 14px;
  }

  /* Floating action button */
  .floating-action-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    z-index: 1000;
    font-size: 24px;
  }

  /* Mobile chat button */
  .mobile-chat-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    z-index: 1000;
    font-size: 24px;
  }

  /* Hide desktop chat button */
  .chat-button {
    display: none;
  }

  /* Add padding to body to account for mobile nav */
  body {
    padding-bottom: 60px;
  }

  /* Adjust main content padding */
  .main-content {
    padding-bottom: 20px;
  }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  /* Ẩn sidebar trên mobile */
  .sidebar {
    display: none !important;
  }

  /* Điều chỉnh main content để không có margin-left */
  .main-content {
    margin-left: 0 !important;
    padding-top: 60px;
  }

  /* Điều chỉnh header */
  .header {
    height: 60px;
    padding: 0 15px;
  }

  /* Ẩn các phần tử không cần thiết trên mobile */
  .header-right .try-button,
  .header-right .points,
  .header-right .balance {
    display: none;
  }

  /* Hiển thị mobile navigation */
  .mobile-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    width: 100%;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #6b7280;
    text-decoration: none;
    font-size: 10px;
    padding: 8px 0;
  }

  .mobile-nav-item.active {
    color: #2563eb;
  }

  .mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
  }

  /* Đảm bảo các popup hiển thị đúng */
  .mobile-popup {
    display: none;
    position: fixed;
    bottom: 70px;
    left: 10px;
    right: 10px;
    background-color: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
  }

  /* Đảm bảo body có padding-bottom để tránh bị che bởi mobile nav */
  body {
    padding-bottom: 70px;
  }
}

/* Thêm styles cho mobile popup item vertical */
.mobile-popup-item-vertical {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.mobile-popup-item-vertical .mobile-popup-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.mobile-popup-item-vertical .mobile-popup-icon i {
  color: var(--primary-color);
  font-size: 20px;
}

.mobile-popup-item-vertical .mobile-popup-text {
  font-size: 12px;
  font-weight: 500;
}

/* Đảm bảo domain services grid hiển thị đúng */
.domain-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Cập nhật styles cho mobile popup */
.mobile-popup-content {
  width: 100%;
}

/* Add these styles for authentication notifications */
.auth-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  max-width: 350px;
  animation: slideIn 0.3s ease;
  transition: opacity 0.5s ease;
}

.auth-notification.error {
  background-color: #fee2e2;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
}

.auth-notification.success {
  background-color: #dcfce7;
  border-left: 4px solid #10b981;
  color: #047857;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-content i {
  font-size: 20px;
}

.auth-notification.fade-out {
  opacity: 0;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Loading overlay for authentication check */
.auth-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.auth-loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #dbeafe;
  border-top: 5px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.auth-loading p {
  font-size: 16px;
  color: #2563eb;
  font-weight: 500;
}

/* Button loading state */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
