/* CSS Variables for theming */
:root {

  /* Core text colors */
  --text-heading: #1f2937;      /* dark slate */
  --text-body: #374151;         /* gray-700 */
  --text-muted: #6b7280;        /* gray-500 */
  --text-label: #4b5563;        /* gray-600 */

  /* Light mode colors */
  --background: #fbfaf8;
  --foreground: 215 28% 17%;
  --card: 0 0% 100%;
  --card-foreground: 215 28% 17%;
  --popover: 0 0% 100%;
  --popover-foreground: 215 28% 17%;
  --primary: 47 62% 54%;
  --primary-foreground: 0 0% 7%;
  --secondary: 48 33% 94%;
  --secondary-foreground: 215 28% 17%;
  --muted: 48 33% 96%;
  --muted-qb: 220 9% 26;
  --muted-foreground: 215 16% 45%;
  --accent: 48 33% 94%;
  --accent-foreground: 215 28% 17%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 210 17% 90%;
  --input: 210 17% 90%;
  --ring: 47 62% 54%;
  --radius: 0.5rem;
  --primary-form:#fc700d;
  --primary-600:#1d4ed8;
  --bg:#000000;
  --muted-form:#6b7280;
  --muted-form-dark: #9ca3af;
  --border-form:#e5e7eb;
  --border-form-dark: #334155;
  --success:#16a34a;

  /* Gold theme colors */
  --gold: #D4AF37;
  --gold-light: #f59e0b;
  --gold-dark: #b68a2e;

  /* Container and layout */
  --container-max: 1200px;
  --sidebar-width: 256px;
  --sidebar-collapsed: 64px;

  --transaction-bg: #f7fafc;
  --transaction-card: #ffffff;
  --transaction-muted: #64748b;
  --transaction-text: #0f1724;
  --transaction-accent: #2563eb;
  --transaction-border: #e6eef5;
  --transaction-success: #16a34a;
  --transaction-danger: #ef4444;
  --transaction-warning: #f59e0b;
  --transaction-glass: rgba(15,23,36,0.04);
  --transaction-soft: #f1f5f9;
  --transaction-hover-bg: #f59e0b;
  --transaction-text-color: #000000;
  --select-bg: #ffffff;
  --faq-card-light: #ffffff;
  --faq-card-dark: #1e293b;
  --faq-muted-light: #64748b;
  --faq-muted-dark: #94a3b8;
  --faq-accent: #f59e0b;
  --faq-transition: all 0.3s ease;
  --terms-card: #fff;
  --terms-border: #e2e8f0;
  --terms-text: #1e293b;
  --terms-muted: #64748b;
  --terms-accent: #f59e0b;
  --terms-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  ---livechat-primary: #f59e0b;
  ---livechat-primary-hover: #d97706;
  ---livechat-accent-light: #fef3c7;
  ---livechat-card: #ffffff;
  ---livechat-text: #111827;
  ---livechat-muted: #6b7280;
  ---livechat-border: #e5e7eb;

  --wd-bg: #f9fafb;
  --wd-text: #111827;
  --wd-order: #d1d5db;
  --wd-label: #374151;
  --wd-placeholder: #9ca3af;
  --wd-accent: #2563eb;
  --wd-nav-bg: #fafafa;
  --wd-nav-text: #9ca3af;
  --wd-nav-active-text: #2563eb;
  --wd-nav-hover-bg: #f3f4f6;
  --wd-tab-border: #e5e7eb;
  --wd-item-hover: #f9fafb;
  --wd-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);

  --wt-bg-box: #131c2c;
  --wt-bg-header: #222b3a;
  --wt-border: rgba(255, 255, 255, 0.05);
  --wt-text-light: #ffffff;
  --wt-text-muted: #9ba5b4;
  --wt-success: #22c55e;
  --wt-btn-bg: #08142b;
  --wt-btn-border: #1e293b;
  --wt-btn-hover: #0c203f;
  --wt-btn-yellow: #fc700d;
  --wt-btn-green: #157220;
  --gold-400: #f3b21a;
  --gold-600: #f3b21a;

}

/* Dark mode */
.dark {
  /*--background: #020a26;*/
  --background: #000000;
  --foreground: 0 0% 92%;
  --card: 220 11% 8%;
  --card-foreground: 0 0% 92%;
  --popover: 220 11% 8%;
  --popover-foreground: 0 0% 92%;
  --primary: 47 62% 54%;
  --primary-foreground: 0 0% 7%;
  --secondary: 220 9% 26%;
  --secondary-foreground: 0 0% 92%;
  --muted: 220 9% 26%;
  --muted-qb: 220 9% 26%;
  --muted-foreground: 220 9% 70%;
  --accent: 220 9% 26%;
  --accent-foreground: 0 0% 92%;
  --destructive: 0 62% 30%;
  --destructive-foreground: 0 0% 92%;
  --border: 220 9% 26%;
  --input: 220 9% 26%;
  --ring: 47 62% 54%;
  --transaction-bg: radial-gradient(circle at 20% 30%, #0d1528 0%, #070d1a 100%);
  --transaction-card: #0f172a;
  --transaction-muted: #9ca3af;
  --transaction-text: #f1f5f9;
  --transaction-accent: #60a5fa;
  --transaction-border: rgba(255,255,255,0.08);
  --transaction-success: #22c55e;
  --transaction-danger: #f87171;
  --transaction-warning: #facc15;
  --transaction-glass: rgba(255,255,255,0.03);
  --transaction-soft: rgba(255,255,255,0.05);
  --transaction-hover-bg: rgba(255, 255, 255, 0.08);
  --transaction-text-color: #ffffff;
  --select-bg: #0f1724;
  --terms-card: #101827;
  --terms-border: #1e293b;
  --terms-text: #e2e8f0;
  --terms-muted: #94a3b8;
  --terms-accent: #fbbf24;
  --terms-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  ---livechat-card: #1e293b;
  ---livechat-text: #f3f4f6;
  ---livechat-muted: #9ca3af;
  ---livechat-border: #334155;
  ---livechat-accent-light: #78350f;
  --wd-bg: #0f172a;
  --wd-text: #e2e8f0;
  --wd-order: #334155;
  --wd-label: #cbd5e1;
  --wd-placeholder: #94a3b8;
  --wd-accent: #3b82f6;
  --wd-nav-bg: #1e293b;
  --wd-nav-text: #94a3b8;
  --wd-nav-active-text: #60a5fa;
  --wd-nav-hover-bg: #334155;
  --wd-tab-border: #334155;
  --wd-item-hover: #1e293b;
  --wd-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

*{
  box-sizing:border-box
}
body{
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:#111827;
  margin:0;
}
.form-h1{
  font-size:22px;
  margin:0 0 18px;
  font-weight:700
}

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

html,
body {
  height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--background);
  color: hsl(var(--foreground));
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ===============================
   BODY TEXT
   =============================== */
p,
td,
th {
  color: var(--text-body);
}

/* ===============================
   LABELS & FORM TEXT
   =============================== */

label {
  color: var(--text-label);
  font-size: 0.875rem;
  font-weight: 500;
}

input,
select,
textarea {
  color: var(--text-body);
}

/* Placeholder */
::placeholder {
  color: var(--text-muted);
}


/* ===============================
   TABLE DEFAULTS
   =============================== */
table {
  color: var(--text-body);
}
thead th {
  color: var(--text-heading);
  font-weight: 600;
}

tbody td {
  color: var(--text-body);
}

label,
.form-label {
  color: #000000;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.4;
}

.black-text{
  color: #000000;
}

.white-text{
  color: #ffffff;
}

.dark label,
.dark .form-label {

}

/* Layout */
.dashboard-layout {
  display: flex;
  height: 100vh;
  background-color: var(--background);
}

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--background);
  border-right: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  position: relative;
  z-index: 500;
}

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

/* Hide sidebar on mobile */
@media (max-width: 768px) {
  .content-area,
  .main-content,
  .page-wrapper {
    margin-left: 8px !important;
    padding-left: 0 !important;
    width: 100% !important;
  }

  /* Remove sidebar spacing */
  .navbar-left.sidebar-toggle2 {
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: auto !important;
    flex: 0 0 auto;
  }

  .navbar {
    left: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 576px) {

  .content-area,
  .main-content,
  .page-wrapper {
    margin-left: 8px !important;
    padding-left: 0 !important;
    width: 100% !important;
  }

  /* Remove sidebar spacing */
  .navbar-left.sidebar-toggle2 {
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: auto !important;
    flex: 0 0 auto;
  }

  .navbar {
    left: 0 !important;
    width: 100% !important;
  }
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.navbar {
  background-color: var(--background);
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.4rem 0.5rem;
  position: relative;
  z-index: 200;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-area {
  padding: 1rem;
  background-color: var(--background);
  /*height: 100vh;*/
  height: auto;
  overflow-y: auto;
}

/* Main content scrollbar (slim) */
.content-area {
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: rgba(156, 163, 175, 0.45) transparent;
}

.content-area::-webkit-scrollbar {
  width: 6px;
}

.content-area::-webkit-scrollbar-track {
  background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.45);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.content-area:hover::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.65);
}

.dark .content-area::-webkit-scrollbar-thumb {
  background-color: #4b5563;
}

.dark .content-area:hover::-webkit-scrollbar-thumb {
  background-color: #6b7280;
}

/* ================= LOGO SWITCH SYSTEM ================= */

.sidebar-header {
  position: relative;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Stack both logos */
.sidebar-header img {
  position: absolute;
  inset: 0;
  margin: auto;
}

/* DEFAULT (expanded) */
.logo-full {
  display: block;
  max-height: 4rem;
  width: auto;
}

.logo-icon {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
}

/* DESKTOP COLLAPSED */
.sidebar.collapsed .logo-full {
  display: none;
}

.sidebar.collapsed .logo-icon {
  display: block;
}

/* MOBILE EXPANDED */
.sidebar.mobile-expanded .logo-full {
  display: block;
}

.sidebar.mobile-expanded .logo-icon {
  display: none;
}

/* Hide on Desktop Collapsed */
.sidebar.collapsed .elite-section,
.sidebar.collapsed .victory-section {
  display: none !important;
  opacity: 0;
}

/* ===== MOBILE BEHAVIOR ===== */
@media (max-width: 768px) {
  /* Default Mobile (Collapsed View) */
  .sidebar .elite-section,
  .sidebar .victory-section {
    display: none !important;
    opacity: 0;
  }

  /* When Expanded on Mobile → Show */
  .sidebar.expanded .elite-section,
  .sidebar.expanded .victory-section {
    display: block !important;
    opacity: 1;
    width: 200px;
  }
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem;
  overflow-y: auto;
  margin-top: 5px;
}

/* Sidebar scrollbar (slim) */
.sidebar-nav {
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: rgba(156, 163, 175, 0.45) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.45);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.sidebar-nav:hover::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.65);
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.0rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  text-align: left;
  position: relative;
  border: 1px solid #9a9a9a !important;
  opacity: 1 !important;
}

/* Hide account button by default (only show when logged in) */
.nav-item[data-action="account-dropdown"] {
  display: none;
}


/* Ensure nav items are clickable */
.nav-item {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.submenu-item {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Force active state to persist during all interactions */
.nav-item.active:hover,
.nav-item.active:focus,
.nav-item.active:active,
.nav-item.active:visited {
  color: #ffffff !important;
  background: linear-gradient(
          to right,
          #8e8e8e,
          #6f6f6f,
          #4f4f4f
  ) !important;
  border: 1px solid #9a9a9a !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

/* Prevent active state from being removed by JavaScript */
.nav-item.active {
  color: #ffffff !important;
  background: linear-gradient(
          to right,
          #8e8e8e,
          #6f6f6f,
          #4f4f4f
  ) !important;
  border: 1px solid #9a9a9a !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

/* Ensure only one item can be active at a time */
.nav-item:not(.active) {
  color: hsl(var(--foreground));
  background-color: transparent;
  border: none;
  font-weight: normal;
  opacity: 0.7;
}

.submenu-item:not(.active) {
  color: hsl(var(--foreground));
  background-color: transparent;
  border: none;
  font-weight: normal;
  opacity: 0.7;
}

/* Dark mode for non-active items */
.dark .nav-item:not(.active) {
  color: #ffffff !important;
  font-weight: bold;
}

.dark .submenu-item:not(.active) {
  color: #ffffff !important;
  font-weight: bold;
}

.nav-item.collapsed {
  padding: 0.5rem;
  justify-content: center;
}

.nav-icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-right: 0.75rem;
  color: #cbd5e1;
  /* muted gray like the photo */
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  /* thinner lines */
}

.nav-item.collapsed .nav-icon {
  margin-right: 0;
}

/* Highlight on hover/active */
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon,
.submenu-item:hover .nav-icon,
.submenu-item.active .nav-icon {
  color: #ffffff;
}

/* Collapsed rail icon spacing */
.sidebar.collapsed .nav-icon {
  margin-right: 0;
}

.nav-text {
  flex: 1;
}

.nav-item.collapsed .nav-text {
  display: none;
}

/* When sidebar is collapsed, show only icons and center them */
.sidebar.collapsed .nav-item,
.sidebar.collapsed .submenu-item {
  padding: 0.5rem;
  justify-content: center;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-chevron {
  display: none;
}

.sidebar.collapsed .submenu {
  display: none !important;
  /* hide submenus in collapsed rail */
}

.nav-chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.nav-item.collapsed .nav-chevron {
  display: none;
}

.submenu {
  margin-top: 0.25rem;
  margin-left: 2.25rem;
  display: none;
}

.submenu.open {
  display: block;
}

.submenu.collapsed {
  margin-left: 0.5rem;
}

.submenu-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.submenu-item:hover {
  color: var(--gold);
  background-color: rgba(212, 175, 55, 0.06);
}

.submenu-item.collapsed {
  padding: 0.5rem;
  justify-content: center;
}

.submenu-item.collapsed .nav-text {
  display: none;
}

/* Navbar styles */
.navbar,
.navbar-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow: visible !important;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;               /* 🔥 remove 100% stretch */
  justify-content: flex-end; /* 🔥 keep items together */
}

/* Search bar */
.search-container {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
}

.search-input {
  width: 60%;
  height: 2.25rem;
  padding-left: 2rem;
  padding-right: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  background-color: hsl(var(--input));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* User menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.25rem;
  background-color: hsl(var(--secondary));
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-menu:hover {
  background-color: hsl(var(--accent));
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  position: relative;
}

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

.user-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #10b981;
  border: 2px solid var(--background);
}

.user-info {
  text-align: left;
}

.user-name {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

.user-status-text {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.2;
}

.user-chevron {
  width: 0.875rem;
  height: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.user-menu:hover .user-chevron {
  color: hsl(var(--foreground));
}

/* Banner carousel */
.banner-carousel {
  width: 100%;
  position: relative;
  border-radius: 0.375rem;
  overflow: hidden;
  margin-bottom: 1rem;
  height: 420px; /* ✅ DEFAULT HEIGHT */
}

/* Container */
.carousel-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Track */
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s ease-in-out;
  will-change: transform;
}

/* Slide */
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

/* Image */
.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* change to cover if you want full bleed */
  display: block;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  z-index: 10;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.25rem;
  border-radius: 9999px;
  background-color: hsl(var(--muted));
}

.carousel-dot.active {
  background-color: hsl(var(--primary));
}

/* Mobile */
@media (max-width: 640px) {
  .banner-carousel {
    height: 140px;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .banner-carousel {
    height: 180px;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .banner-carousel {
    height: 420px;
  }
}

/* Large desktop / casino banner size */
@media (min-width: 1440px) {
  .banner-carousel {
    height: auto;
  }
}

/* Announcement banner */
.announcement-banner {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.03));
  padding: 0.625rem 0.875rem;
  overflow: hidden;
}

.dark .announcement-banner {
  background-color: hsl(var(--muted) / 0.6);
}

.announcement-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #fbbf24;
  flex-shrink: 0;
  margin-right: 0.25rem;
  display: inline-block;
  filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.35));
}

.announcement-text {
  flex: 1;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  /* prevent cutting while scrolling */
  line-height: 1.25;
}

/* Marquee animation */
.marquee {
  position: relative;
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  will-change: transform;
  padding-right: 100%;
  /* ensure seamless loop so it doesn't cut */
}

.marquee-item {
  flex: 0 0 auto;
}

.animate-marquee-continuous {
  animation: marquee-cont 28s linear infinite;
}

@keyframes marquee-cont {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee:hover .animate-marquee-continuous {
  animation-play-state: paused;
}

/* Category navigation */
.category-nav {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.category-container {
  max-width: 80rem;
  margin: 0 auto;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.category-buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: pan-x;
  cursor: grab;
}

.category-buttons::-webkit-scrollbar {
  display: none;
}

.category-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.75rem;
  padding: 0.500rem 1rem;
  font-size: 0.75rem;
  border: 1px solid hsl(var(--border));
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  min-width: 6rem;
  background: none;
  color: #000000;
  flex-shrink: 0;
  scroll-snap-align: start;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dark .category-btn {
  color: #ffffff;
}

.category-btn:hover {
  background-color: hsl(var(--muted) / 0.6);
  border-color: rgba(212, 175, 55, 0.4);
}

.category-btn.active {
  border: transparent;
  color: white;
  background: linear-gradient(to right,#5ad5f4, #3c7088, #5ad5f4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.category-icon {
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.375rem;
}

.category-btn.active .category-icon {
  color: rgba(255, 255, 255, 0.9);
}

.category-btn:not(.active) .category-icon {
  color: hsl(var(--muted-foreground));
}

/* Game sections */
.game-sections {
  display: block; /* all visible by default */
  transition: all 0.5s ease; /* smooth opacity + height transition */
  overflow: hidden;
  opacity: 1;
}
.game-section {
  margin-top: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(17, 24, 39, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

/* Smaller See All button */
.section-btn.see-all {
  font-size: 0.8125rem;
  padding: 0.4rem 0.8rem;
}

/* Light mode color for See All / See Less */
.section-btn.see-all {
  background: linear-gradient(to right, #ffbd3a, #ffbd3a, #ffbd3a) !important;
  color: #ffffff;
  border: 1px solid hsl(var(--border));
  font-weight: 400;
}

.section-btn.see-all:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--border));
}

/* Dark mode keeps compact dark style */
.dark .section-btn.see-all {
  background-color: rgba(17, 24, 39, 0.35);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.dark .section-btn.see-all:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.section-btn .section-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.section-btn:hover {
  background-color: rgba(247, 245, 240, 0.573);
}

.section-btn.primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: transparent;
}

.section-btn.primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.section-btn.ghost {
  border: none;
  background: none;
  padding: 0.5rem;
}

.section-btn.ghost:hover {
  background-color: hsl(var(--accent));
}

.section-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Compact arrows beside See All */
.section-arrow {
  width: 2.8rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: #ffffff;
  /* light mode: white background */
  color: #000000;
  /* black chevrons */
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  font-size: 0.95rem;
}

.section-arrow .arrow-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.section-arrow:hover {
  background: #f59e0b;
  border-color: hsl(var(--border));
}

/* Dark mode arrows retain compact dark style */
.dark .section-arrow {
  border: none;
  background-color: rgba(17, 24, 39, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.dark .section-arrow:hover {
  background: #f59e0b;
}

/* Game grid */
.game-grid {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.game-grid.expanded {
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}

.game-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-image {
  position: relative;
  width: 100%;
  height: 7rem;
  background-color: hsl(var(--muted));
  object-fit: cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.05);
}

/* Dark overlay on hover - only when hovering the image */
.game-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card:hover .game-image::after {
  opacity: 1;
}

/* Play Now button overlay - positioned over the image on hover */
.game-image::before {
  content: 'PLAY NOW';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  border-radius: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  font-size: 0.7rem;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  pointer-events: none;
  white-space: nowrap;
}

.game-card:hover .game-image::before {
  opacity: 1;
  visibility: visible;
}

.game-card:hover .game-image::before:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.game-grid.expanded .game-image {
  height: 5rem;
}

/* Responsive styles for main page game cards */
@media (max-width: 768px) {
  .game-image::before {
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .game-image::before {
    padding: 0.25rem 0.5rem;
    font-size: 0.55rem;
  }
}

/* Game scroll */
.game-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.game-scroll2 {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.game-scroll::-webkit-scrollbar {
  display: none;
}
.game-scroll2::-webkit-scrollbar {
  display: none;
}

/* FIXED SIZE ITEM */
.game-scroll-item {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  /* 🔒 FIX SIZE */
  flex: 0 0 auto;
  width: 140px;
  height: auto;
  /* ✅ BORDER RADIUS */
  border-radius: 12px;
  scroll-snap-align: start;
}
.game-scroll-item2 {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  /* 🔒 FIX SIZE */
  flex: 0 0 auto;
  width: 140px;
  height: auto;
  /* ✅ BORDER RADIUS */
  border-radius: 12px;
  scroll-snap-align: start;
}

.game-scroll-item:hover {
  transform: translateY(-2px);
}
.game-scroll-item2:hover {
  transform: translateY(-2px);
}

/* IMAGE CONTAINER */
.game-scroll-image-container {
  position: relative;
  width: 100%;
  height: 100%;

  /* ✅ MATCH RADIUS */
  border-radius: 12px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}
.game-scroll-image-container2 {
  position: relative;
  width: 100%;
  height: 100%;

  /* ✅ MATCH RADIUS */
  border-radius: 12px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMAGE */
.game-scroll-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ✅ PREVENT EDGE BLEED */
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease;
}
.game-scroll-image2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ✅ PREVENT EDGE BLEED */
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease;
}

.game-scroll-item:hover .game-scroll-image {
  transform: scale(1.05);
}
.game-scroll-item2:hover .game-scroll-image2 {
  transform: scale(1.05);
}

/* DARK OVERLAY */
.game-scroll-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.game-scroll-image-container2::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-scroll-item:hover .game-scroll-image-container::after {
  opacity: 1;
}
.game-scroll-item2:hover .game-scroll-image-container2::after {
  opacity: 1;
}

/* PLAY NOW BUTTON */
.game-scroll-image-container::before {
  content: 'PLAY NOW';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border-radius: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
  pointer-events: none;
  white-space: nowrap;
}
.game-scroll-image-container2::before {
  content: 'Select Provider';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #7ba300 0%, #87a900 100%);
  color: #fff;
  border-radius: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
  pointer-events: none;
  white-space: nowrap;
}

.game-scroll-item:hover .game-scroll-image-container::before {
  opacity: 1;
  visibility: visible;
}
.game-scroll-item2:hover .game-scroll-image-container2::before {
  opacity: 1;
  visibility: visible;
}

/* OVERLAY FIX */
.game-scroll-image-container::after,
.game-scroll-image-container::before {
  border-radius: 12px;
}
.game-scroll-image-container::after,
.game-scroll-image-container2::before {
  border-radius: 12px;
}

/* OPTIONAL RESPONSIVE SIZES */
@media (max-width: 768px) {
  .game-scroll-item {
    width: 120px;
    height: 165px;
  }
  .game-scroll-item2 {
    width: 120px;
    height: 165px;
  }
}

@media (max-width: 480px) {
  .game-scroll-item {
    width: 105px;
    height: auto;
  }
  .game-scroll-item2 {
    width: 105px;
    height: auto;
  }
}


/* Game row wrapper with arrows */
.game-row-wrapper {
  position: relative;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.scroll-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(251, 191, 36, 0.5);
}

.scroll-arrow.left {
  left: -0.5rem;
}

.scroll-arrow.right {
  right: -0.5rem;
}

/* Expanded mode switches to grid */
.game-scroll.expanded {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}
.game-scroll2.expanded {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.game-scroll.expanded .game-scroll-image {
  height: 8rem;
}
.game-scroll2.expanded .game-scroll-image2 {
  height: 8rem;
}

.game-scroll.expanded .game-scroll-item {
  min-width: 0;
}
.game-scroll2.expanded .game-scroll-item2 {
  min-width: 0;
}

.game-scroll-item {
  flex-shrink: 0;
  min-width: 8rem;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}
.game-scroll-item2 {
  flex-shrink: 0;
  min-width: 8rem;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.game-scroll-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.game-scroll-item2:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-scroll-image {
  width: 100%;
  height: 8rem;
  /*background-color: hsl(var(--muted));*/
  background-color: #ffffff;
  object-fit: cover;
}
.game-scroll-image2 {
  width: 100%;
  height: 8rem;
  /*background-color: hsl(var(--muted));*/
  background-color: #ffffff;
  object-fit: cover;
}

/* Footer */
.footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  background-color: hsl(var(--muted));
}

.dark .footer {
  background-color: var(--background);
}

.footer-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.footer-partner {
  height: 2.5rem;
  object-fit: contain;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.footer-logo {
  height: 2.5rem;
  object-fit: contain;
}

.footer-divider {
  height: 1px;
  width: 100%;
  background-color: rgba(59, 130, 246, 0.2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  padding: 1rem 0;
}

.dark .footer-link {
  color: hsl(var(--muted-foreground));
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #eab308;
}

.dark .footer-copyright {
  padding-bottom: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-weight: bold;
}

/* Cards */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.card-content {
  padding: 1rem;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.card-icon {
  font-size: 1.125rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .card-actions {
    width: auto;
    justify-content: flex-end;
  }
}

/* Buttons */
.btn {
  appearance: none;
  border: 2px solid hsl(var(--border));
  background-color: var(--background);
  color: inherit;
  font: inherit;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 7.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn:active {
  transform: translateY(1px);
}

.btn:hover {
  background-color: hsl(var(--accent));
}

.btn.primary {
  background-color: #3c7088;
  color: hsl(var(--primary-foreground));
  border-color: transparent;
}

.btn.primary:hover {
  background-color: #031c32;
}

.btn.outline {
  border: 1px solid hsl(var(--border));
  background-color: transparent;
}

.btn.outline:hover {
  background-color: hsl(var(--accent));
}

.btn.ghost {
  border: none;
  background: none;
}

.btn.ghost:hover {
  background-color: hsl(var(--accent));
}

.btn.sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  min-width: auto;
}

.btn.icon {
  padding: 0.5rem;
  min-width: auto;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forms */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.form-error {
  font-size: 0.75rem;
  color: hsl(var(--destructive));
}

/* Mobile sidebar backdrop */
.sidebar-backdrop {
  display: none;
}

@media (max-width: 768px) {
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
  }

  .sidebar-backdrop.show {
    display: block;
  }
}

/* Mobile Responsive - Collapsible Sidebar */
@media (max-width: 768px) {

  /* Collapsed icon-only sidebar by default */
  .sidebar {
    display: block !important;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 260px;
    background-color: #111827;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1200;
  }

  /* Expanded sidebar on mobile */
  .sidebar.mobile-expanded {
    width: var(--sidebar-width) !important;
    transform: translateX(0) !important;
  }

  /* Show sidebar toggle button on mobile - same position as desktop */
  .sidebar-toggle {
    display: flex !important;
    position: absolute;
    right: -1rem;
    top: 2.5rem;
    z-index: 2000;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    height: 1.7rem;
    width: 1.7rem;
  }

  /* Rotate toggle button when sidebar is expanded on mobile */
  .sidebar.mobile-expanded .sidebar-toggle,
  .sidebar-toggle.mobile-expanded {
    transform: rotate(180deg);
  }

  /* Sidebar header - compact logo */
  .sidebar-header {
    padding: 0.5rem 0.25rem;
  }

  /* Sidebar navigation - compact */
  .sidebar-nav {
    padding: 0.25rem;
  }

  /* Hide submenus by default, except All Games */
  .submenu {
    display: none !important;
  }

  /* Center icons in nav items */
  .nav-item,
  .submenu-item {
    margin-bottom: 0.125rem;
  }

  .nav-icon {
    /*margin-right: 0 !important;*/
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  /* When sidebar is expanded on mobile - show text */
  .sidebar.mobile-expanded .nav-text {
    display: inline !important;
  }

  .sidebar.mobile-expanded .nav-chevron {
    display: block !important;
  }

  .sidebar.mobile-expanded .submenu.open {
    display: block !important;
  }

  .sidebar.mobile-expanded .nav-item,
  .sidebar.mobile-expanded .submenu-item {
    justify-content: space-between !important;
    padding: 0.5rem 0.75rem !important;
  }

  .sidebar.mobile-expanded .nav-icon {
    margin-right: 0.75rem !important;
  }

  .sidebar.mobile-expanded .sidebar-header {
    padding: 0.5rem;
  }

  /* Main content adjusted for narrow sidebar */
  .main-content {
    margin-left: 3.5rem;
    width: calc(100% - 3.5rem);
    transition: margin-left 0.3s ease, width 0.3s ease;
  }

  /* When sidebar is expanded, shift content like desktop */
  .sidebar.mobile-expanded~.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
  }

  /* Nav items exactly like desktop */
  .sidebar.mobile-expanded .nav-item,
  .sidebar.mobile-expanded .submenu-item {
    justify-content: space-between !important;
    padding: 1rem 0.75rem !important;
  }

  /* Icons spacing restored */
  .sidebar.mobile-expanded .nav-icon {
    margin-right: 0.75rem !important;
    width: 1.125rem;
    height: 1.125rem;
  }

  /* Text always visible */
  .sidebar.mobile-expanded .nav-text {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Chevrons restored */
  .sidebar.mobile-expanded .nav-chevron {
    display: block !important;
  }

  /* Submenus behave same as desktop */
  .sidebar.mobile-expanded .submenu {
    margin-left: 2.25rem;
  }

  /* Compact navbar */
  .navbar {
    padding: 0.5rem 0.75rem;
  }

  .navbar-content {
    gap: 0.75rem;
  }

  .navbar-left {
    width: auto;
    gap: 0.5rem;
    margin-right: 0.5rem !important;
  }

  /* Show theme toggle, hide language selector */
  .language-selector {
    display: none !important;
  }

  .theme-toggle {
    gap: 0.25rem;
    margin-right: 0.5rem !important;
  }

  .theme-icon {
    width: 0.875rem !important;
    height: 0.875rem !important;
  }

  .switch {
    width: 2.25rem !important;
    height: 1.125rem !important;
  }

  .switch-slider:before {
    height: 0.875rem !important;
    width: 0.875rem !important;
    left: 0.125rem;
    bottom: 0.125rem;
  }

  input:checked+.switch-slider:before {
    transform: translateX(1.125rem) !important;
  }

  .navbar-right {
    width: auto;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    display: flex !important;
  }

  .quick-actions {
    gap: 2px !important;
    margin-left: auto !important;
    padding-left: 0.5rem !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .search-container {
    flex: 1;
    max-width: none;
  }

  .search-input {
    width: 100%;
    height: 2rem;
    font-size: 0.8rem;
  }

  .search-icon {
    width: 0.875rem !important;
    height: 0.875rem !important;
  }

  /* Show quick actions on mobile */
  .quick-actions {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .quick-action-btn {
    padding: 0.5rem !important;
    font-size: 0.75rem !important;
  }

  .quick-action-btn span {
    display: none !important;
  }


  /* Compact auth button */
  .auth-btn {
    margin-left: 5px;
    width: 70px;
    padding: 0.5rem 0.875rem !important;
    font-size: 0.8rem !important;
  }

  /* Compact user dropdown */
  /*
  .user-dropdown-btn {
    padding: 0.375rem 0.625rem;
  }*/

  .user-avatar-circle {
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
    min-height: 1.75rem !important;
    max-width: 1.75rem !important;
    max-height: 1.75rem !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  /* Content area */
  .content-area {
    padding: 0.75rem;
  }

  .announcement-banner {
    padding: 0.5rem 0.75rem;
    margin: 0.75rem 0;
  }

  .announcement-icon {
    width: 1rem !important;
    height: 1rem !important;
  }

  .announcement-text {
    font-size: 0.75rem;
  }

  .category-nav {
    margin: 0.75rem 0;
  }

  .category-container {
    padding: 0.5rem;
    margin: 0;
    max-width: 100%;
  }

  .category-buttons {
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    cursor: grab;
  }

  .category-buttons::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    min-width: 5.5rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .category-icon {
    width: 0.75rem !important;
    height: 0.75rem !important;
    flex-shrink: 0;
  }

  .section-title {
    font-size: 0.7rem;
  }

  .section-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  .section-arrow {
    width: 2rem;
    height: 1.75rem;
  }

  .arrow-icon {
    width: 0.75rem !important;
    height: 0.75rem !important;
  }

  .game-scroll-item {
    min-width: 6rem;
  }
  .game-scroll-item2 {
    min-width: 6rem;
  }

  .game-scroll-image {
    height: 6rem !important;
  }
  .game-scroll-image2 {
    height: 6rem !important;
  }

  .game-scroll.expanded .game-scroll-image {
    height: 6rem !important;
  }
  .game-scroll2.expanded .game-scroll-image2 {
    height: 6rem !important;
  }

  .game-scroll-image-container::before {
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
  }
  .game-scroll-image-container2::before {
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  }

  .game-grid.expanded {
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  }

  .game-scroll.expanded {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
    gap: 0.75rem;
  }
  .game-scroll2.expanded {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
    gap: 0.75rem;
  }

  .game-scroll-image-container::before {
    padding: 0.25rem 0.5rem;
    font-size: 0.55rem;
  }
  .game-scroll-image-container2::before {
    padding: 0.25rem 0.5rem;
    font-size: 0.55rem;
  }

  .footer-partners {
    gap: 1rem;
    padding: 1rem 0;
  }

  .footer-partner {
    height: 1.25rem;
  }

  .footer-logo {
    height: 2rem;
  }
}

/* Very Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .sidebar {
    width: 3rem !important;
  }

  .nav-item,
  .submenu-item {
    padding: 0.5rem 0.125rem !important;
  }

  .nav-icon {
    width: 1.125rem !important;
    height: 1.125rem !important;
  }

  .main-content {
    margin-left: 3rem;
    width: calc(100% - 3rem);
  }

  .navbar {
    padding: 0.375rem 0.5rem;
  }

  .theme-icon {
    width: 0.75rem !important;
    height: 0.75rem !important;
  }

  .search-input {
    height: 1.875rem;
    font-size: 0.75rem;
  }

  .auth-btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.70rem !important;
  }

  .content-area {
    padding: 0.5rem;
  }

  .category-nav {
    margin: 0.5rem 0;
  }

  .category-container {
    padding: 0.25rem;
  }

  .category-buttons {
    gap: 0.375rem;
    padding: 0.375rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    cursor: grab;
  }

  .category-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
    min-width: 4.5rem;
    border-radius: 0.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .category-icon {
    width: 0.7rem !important;
    height: 0.7rem !important;
  }
}

@media (min-width: 640px) {
  .category-buttons {
    justify-content: center;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  }

  .game-grid.expanded {
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  }
}

@media (min-width: 768px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  }

  .game-grid.expanded {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  }
}

@media (min-width: 1024px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  }

  .game-grid.expanded {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  }
}

@media (min-width: 1280px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  }

  .game-grid.expanded {
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  }
}

/* Category Navigation Responsive - Apply Mobile Style to Small Screens */

/* Small Laptop - 780px to 899px (Mobile Style) */
@media (min-width: 780px) and (max-width: 899px) {
  .category-nav {
    margin: 0.75rem 0;
  }

  .category-container {
    padding: 0.5rem;
    margin: 0;
    max-width: 100%;
  }

  .category-buttons {
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    cursor: grab;
  }

  .category-buttons::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    min-width: 5.5rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .category-icon {
    width: 0.75rem !important;
    height: 0.75rem !important;
    flex-shrink: 0;
  }
}

/* Laptop - 900px to 1023px (Mobile Style) */
@media (min-width: 900px) and (max-width: 1023px) {
  .category-nav {
    margin: 0.75rem 0;
  }

  .category-container {
    padding: 0.5rem;
    margin: 0;
    max-width: 100%;
  }

  .category-buttons {
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    cursor: grab;
  }

  .category-buttons::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    min-width: 5.5rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .category-icon {
    width: 0.75rem !important;
    height: 0.75rem !important;
    flex-shrink: 0;
  }
}

/* Large Laptop - 1024px to 1199px (Mobile Style) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .category-nav {
    margin: 0.75rem 0;
  }

  .category-container {
    padding: 0.5rem;
    margin: 0;
    max-width: 100%;
  }

  .category-buttons {
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    cursor: grab;
  }

  .category-buttons::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    min-width: 5.5rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .category-icon {
    width: 0.75rem !important;
    height: 0.75rem !important;
    flex-shrink: 0;
  }
}

/* Desktop - 1200px to 1399px (Mobile Style) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .category-nav {
    margin: 0.75rem 0;
  }

  .category-container {
    padding: 0.5rem;
    margin: 0;
    max-width: 100%;
  }

  .category-buttons {
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    cursor: grab;
  }

  .category-buttons::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    min-width: 5.5rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .category-icon {
    width: 0.75rem !important;
    height: 0.75rem !important;
    flex-shrink: 0;
  }
}

/* Large Desktop - 1400px to 1599px (Mobile Style) */
@media (min-width: 1400px) and (max-width: 1599px) {
  .category-nav {
    margin: 0.75rem 0;
  }

  .category-container {
    padding: 0.5rem;
    margin: 0;
    max-width: 100%;
  }

  .category-buttons {
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    cursor: grab;
  }

  .category-buttons::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    min-width: 5.5rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .category-icon {
    width: 0.75rem !important;
    height: 0.75rem !important;
    flex-shrink: 0;
  }
}

/* Ultra Widescreen - 1600px to 1740px (Mobile Style) */
@media (min-width: 1600px) and (max-width: 1740px) {
  .category-nav {
    margin: 0.75rem 0;
  }

  .category-container {
    padding: 0.5rem;
    margin: 0;
    max-width: 100%;
  }

  .category-buttons {
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    cursor: grab;
  }

  .category-buttons::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    min-width: 5.5rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .category-icon {
    width: 0.75rem !important;
    height: 0.75rem !important;
    flex-shrink: 0;
  }
}

/* Ultra Ultra Widescreen - 1740px and above (Mobile Style) */
@media (min-width: 1741px) {
  .category-nav {
    margin: 0.75rem 0;
  }

  .category-container {
    padding: 0.5rem;
    margin: 0;
    max-width: 100%;
  }

  .category-buttons {
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    cursor: grab;
  }

  .category-buttons::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    min-width: 5.5rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .category-icon {
    width: 0.75rem !important;
    height: 0.75rem !important;
    flex-shrink: 0;
  }
}

/* Utility classes */
.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

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

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-primary {
  color: hsl(var(--primary));
}

.text-destructive {
  color: hsl(var(--destructive));
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.p-4 {
  padding: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-col {
  flex-direction: column;
}

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

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.border {
  border: 1px solid hsl(var(--border));
}

.shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styling */
.scrollbar-styled {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--muted-foreground)) transparent;
}

.scrollbar-styled::-webkit-scrollbar {
  width: 8px;
}

.scrollbar-styled::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-styled::-webkit-scrollbar-thumb {
  background-color: hsl(var(--muted-foreground));
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Welcome Modal Styles - Migrated from React */
.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.75rem;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.96) translateY(12px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes modalSlideOut {
  from {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  to {
    transform: scale(0.96) translateY(12px);
    opacity: 0;
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-wrapper {
  position: relative;
  width: calc(100% - 0.5rem);
  max-width: 60rem;
  margin: 5rem auto;
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-container {
  position: relative;
  width: 100%;
}

.modal-gradient-border {
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(90deg, #D4AF37 0%, #3b82f6 50%, #D4AF37 100%);
}

.modal-content {
  border-radius: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 80vh;
  overflow-y: auto;
}

/* Header Styles */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  height: 1.75rem;
  width: auto;
}

.header-text {
  display: none;
}

.welcome-text {
  font-size: 0.75rem;
  line-height: 1.2;
  color: hsl(var(--muted-foreground));
}

.tagline-text {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.modal-close-btn {
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: hsl(var(--muted) / 0.2);
  color: hsl(var(--foreground));
}

.close-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Main Content */
.modal-main {
  padding: 0.25rem 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
}

.left-panel {
  order: 2;
}

.right-panel {
  order: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #ffbd3a 0%, #fc700d 100%);
  color: white;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex: 1;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffbd3a 0%, #fc700d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  color: #D4AF37;
  border: 1px solid #D4AF37;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.15);
}

.btn-outline:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(212, 175, 55, 0.1);
}

/* Footer */
.modal-footer {
  padding: 0 1rem 0.75rem;
}

.disclaimer-text {
  font-size: 0.6875rem;
  line-height: 1.2;
  color: hsl(var(--muted-foreground));
}

/* Responsive Design */
@media (min-width: 640px) {
  .header-text {
    display: block;
  }

  .modal-main {
    padding: 0.5rem 1rem;
  }

  .winners-list {
    max-height: 12rem;
  }

  .action-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .action-buttons {
    flex: none;
  }
  .btn-dark,
  .btn-primary,
  .btn-outline {
    flex: none;
    width: auto;
  }
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .left-panel {
    order: 1;
  }

  .right-panel {
    order: 2;
  }
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

/* Modal Theme Content */
.modal-theme-content {
  transition: all 0.3s ease;
}

.modal-theme-content.light-theme {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.modal-theme-content.dark-theme {
  background: hsl(var(--card));
}

/* Light theme specific styles */
.modal-theme-content.light-theme .modal-content {
  background: transparent;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.modal-theme-content.light-theme .modal-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.modal-theme-content.light-theme .modal-body {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Dark theme specific styles */
.modal-theme-content.dark-theme .modal-content {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-theme-content.dark-theme .modal-header {
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
}

.modal-theme-content.dark-theme .modal-body {
  background: hsl(var(--card));
}

/* User Dropdown Menu (after login) */
.user-dropdown {
  position: relative;
  display: block; /* Temporarily visible for testing */
  /* shown when logged in */
}

.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  /*border: none;*/
  border-color: darkgray;
  background: hsl(var(--muted) / 0.15);
  color: hsl(var(--foreground));
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.user-dropdown-btn:hover {
  background: hsl(var(--muted) / 0.25);
}

.user-dropdown-btn:active {
  transform: scale(0.97);
}

.user-dropdown-btn:focus {
  outline: 2px solid hsl(var(--primary) / 0.4);
  outline-offset: 2px;
}

.user-dropdown-btn img.avatar_new {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid hsl(var(--primary));
  object-fit: cover;
}

.avatar_new {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #facc15;
  object-fit: cover;
}

.user-info_new {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.dark .username_new {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.status_new {
  font-size: 0.8rem;
  color: #4ade80;
}

.user-chevron-down {
  width: 16px;
  height: 16px;
  stroke: hsl(var(--foreground));
  transition: transform 0.3s ease;
}
.user-dropdown.active .user-chevron-down {
  transform: rotate(180deg);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .user-dropdown-btn {
    padding: 0.3rem 0.5rem;
    gap: 0.4rem;
  }
  .user-dropdown-btn img.avatar_new {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
  }
  .user-info_new {
    display: none; /* hide username and status on mobile */
  }
  .user-dropdown-menu {
    right: 0.2rem;
    top: calc(100% + 0.3rem);
    min-width: 150px;
    font-size: 0.85rem;
    z-index: 5000;
  }
  .dropdown-menu-item {
    padding: 0.45rem 0.7rem;
  }
  .dropdown-menu-item:hover {
    padding-left: 0.85rem;
  }
}

@media (max-width: 480px) {
  .user-dropdown-btn img.avatar_new {
    width: 28px;
    height: 28px;
  }
  .user-chevron-down {
    width: 14px;
    height: 14px;
  }
  .user-dropdown-menu {
    min-width: 140px;
  }
}

.user-avatar-circle {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  max-width: 2rem;
  max-height: 2rem;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #111827;
  font-size: 0.875rem;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}

.user-info-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.user-name-inline {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.user-status-inline {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.user-chevron-down {
  font-size: 1rem;
  width: 1rem;
  height: 1rem;
  color: hsl(var(--foreground));
  transition: transform 0.2s ease;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: hsl(var(--popover));
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
  min-width: 12rem;
  z-index: 50;
  display: none;
}

.user-dropdown-menu.show {
  display: block;
}

#userDropdownBtn {
  touch-action: manipulation;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-menu-item:hover {
  background-color: hsl(var(--muted));
}

.dropdown-icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
}


.avatar-cartoon {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cartoon-face {
  width: 45px;
  height: 45px;
  background: #fdbcb4;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cartoon-hair {
  position: absolute;
  top: -6px;
  left: -4px;
  width: 53px;
  height: 26px;
  background: #8b4513;
  border-radius: 50% 50% 40% 40%;
  z-index: 1;
}

.cartoon-eyes {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 6px;
  margin-top: -4px;
}

.eye {
  width: 6px;
  height: 6px;
  background: #2c3e50;
  border-radius: 50%;
  position: relative;
}

.eye::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 50%;
}

.cartoon-nose {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: #e8a87c;
  border-radius: 50%;
  z-index: 2;
}

.cartoon-mouth {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 4px;
  background: #e74c3c;
  border-radius: 0 0 9px 9px;
  z-index: 2;
}

.cartoon-cheeks {
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  z-index: 2;
}

.cheek {
  position: absolute;
  width: 6px;
  height: 4px;
  background: #ffb3ba;
  border-radius: 50%;
}

.cheek.left {
  left: 4px;
}

.cheek.right {
  right: 4px;
}

.avatar-edit-overlay {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-edit-overlay:hover {
  background: #2563eb;
  transform: scale(1.1);
}

.edit-icon {
  width: 10px;
  height: 10px;
  color: #ffffff;
}

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

.avatar-text {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-details {
  position: relative;
  z-index: 1;
  flex: 1;
}

.username {
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.dark .username {
  color: #ffffff;
}

.user-id {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0 0 1rem 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dark .user-id {
  color: #9ca3af;
}

.balance-section {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.balance-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.balance-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.balance-refresh-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.balance-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(180deg);
}

.balance-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.balance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.balance-item .balance-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.balance-item .balance-amount {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.balance-divider {
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 0.75rem;
}

.balance-actions {
  display: flex;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.balance-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.withdraw-btn {
  background: #f59e0b;
  color: #ffffff;
}

.withdraw-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.deposit-btn {
  background: #ffffff;
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.deposit-btn:hover {
  background: #fef3c7;
  transform: translateY(-1px);
}

.modal-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.75rem;
  overflow-y: auto;
}

.modal-content {
  width: calc(100% - 0.1rem);
  max-width: 90rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.modal-close {
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: hsl(var(--muted) / 0.2);
  color: hsl(var(--foreground));
}

.modal-body {
  padding: 1.5rem;
  background: hsl(var(--card));
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 50;
  min-width: 10rem;
  padding: 0.25rem;
}

/* Language dropdown visibility */
.language-selector .language-dropdown {
  display: none;
}

.language-selector .language-dropdown.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}

.dropdown-item:hover {
  background-color: hsl(var(--muted));
}

.dropdown-separator {
  height: 1px;
  background-color: hsl(var(--border));
  margin: 0.25rem 0;
}

/* Switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(var(--muted));
  transition: 0.2s;
  border-radius: 1.5rem;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 1.25rem;
  width: 1.25rem;
  left: 0.125rem;
  bottom: 0.125rem;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.switch input:checked+.switch-slider {
  background-color: hsl(var(--primary));
}

.switch input:checked+.switch-slider:before {
  transform: translateX(1.25rem);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.badge.default {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge.success {
  background-color: #10b981;
  color: white;
}

.badge.warning {
  background-color: #fef3c7;
  color: black;
}

.badge.destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

/* Avatar styles */
.avatar {
  position: relative;
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
}

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

.avatar-fallback {
  width: 100%;
  height: 100%;
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, hsl(var(--muted)) 25%, hsl(var(--muted) / 0.5) 50%, hsl(var(--muted)) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Focus styles */
.focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Print styles */
@media print {

  .sidebar,
  .navbar,
  .modal-overlay,
  .dropdown-content {
    display: none !important;
  }

  .main-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.modal-container {
  background: hsl(var(--card));
  border-radius: 1rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid hsl(var(--border) / 0.2);
}

.modal-content {
  padding: 0.5rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.1);
  background: hsl(var(--card));
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-close {
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.modal-close:hover {
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
}

.modal-body {
  color: hsl(var(--foreground));
}

/* Tab styles */
.tabs-container {
  width: 100%;
}

.tabs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: hsl(var(--muted));
  padding: 0.25rem;
  border-radius: 0.5rem;
}

.tab-trigger {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s;
}

.tab-trigger.active {
  background: var(--background);
  color: hsl(var(--foreground));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tab-content {
  display: none;
}

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

/* Form styles */
.form-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.25rem; /* space for error text */
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.form-input {
  width: 100%;
  height: 40px;
  padding:10px 12px;
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  background:linear-gradient(180deg, #0f172a, #1b2642);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  transition:box-shadow .15s ease, border-color .15s ease;
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
  background: var(--background);
}

.form-input::placeholder {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

/* Hero Banner Styles */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 1rem;
  margin: 1rem;
  padding: 2rem;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  max-width: 50%;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-fishing {
  color: #fbbf24;
  display: block;
  position: relative;
}

.hero-rule {
  color: #fbbf24;
  display: block;
  margin-top: 0.5rem;
}

.hero-hook {
  position: absolute;
  top: 0;
  right: -2rem;
  font-size: 4rem;
  color: #fbbf24;
  transform: rotate(15deg);
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-character {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.pirate-shark {
  position: relative;
  width: 200px;
  height: 200px;
}

.shark-body {
  width: 120px;
  height: 80px;
  background: #3b82f6;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.shark-crown {
  width: 40px;
  height: 30px;
  background: #fbbf24;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shark-crown::after {
  content: '☠';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: #1f2937;
}

.shark-cannon {
  width: 60px;
  height: 20px;
  background: #6b7280;
  position: absolute;
  bottom: 30%;
  right: -20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.floating-cards {
  position: absolute;
  top: 10%;
  left: -30px;
}

.card {
  width: 30px;
  height: 40px;
  background: white;
  border: 2px solid #1f2937;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: #dc2626;
  margin-bottom: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

.card:nth-child(2) {
  animation-delay: 1s;
}

.floating-chips {
  position: absolute;
  top: 60%;
  right: -40px;
}

.chip {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 3px solid #fbbf24;
  margin-bottom: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: float 2.5s ease-in-out infinite;
}

.chip.red {
  background: #dc2626;
}

.chip:nth-child(2) {
  animation-delay: 1.5s;
}

.floating-dice {
  position: absolute;
  bottom: 20%;
  left: -20px;
}

.dice {
  width: 25px;
  height: 25px;
  background: white;
  border: 2px solid #1f2937;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: #1f2937;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: float 2s ease-in-out infinite;
}

.bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bubble {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  animation: bubble-float 4s ease-in-out infinite;
}

.bubble:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  top: 60%;
  left: 70%;
  animation-delay: 1.5s;
}

.bubble:nth-child(3) {
  top: 80%;
  left: 30%;
  animation-delay: 3s;
}

.banner-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.indicator {
  width: 8px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #fbbf24;
  width: 20px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes bubble-float {
  0% {
    transform: translateY(0px) scale(0);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Navbar Styles */
.navbar {
  background: var(--background);
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.5rem 0.75rem 0.5rem 0.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  gap: 1rem;
}

.navbar-left {
  display: flex;
  gap: 0.75rem;
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 640px;
  margin: 0 2rem;
}

.navbar-right {
  display: flex;
  align-items: center;
}

/* Right group sizing */
.navbar-right .search-container {
  width: min(42vw, 400px);
  max-width: 400px;
  margin-right: 0.75rem;
}

/* Force navbar to a single row */
.navbar-content {
  flex-wrap: nowrap;
}

.navbar-left,
.navbar-right {
  width: auto;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  align-items: center;
  gap: 6px; /* tighter & predictable */
}

.quick-action-btn {
  background: linear-gradient(
          135deg,
          #9c741f 0%,     /* crown highlight */
          #c99a2e 18%,
          #e3b94d 35%,    /* royal gold */
          #c99a2e 55%,    /* deep gold */
          #9c741f 75%,    /* antique gold */
          #6f4f12 100%    /* shadow gold */
  );
  border: 1px solid #ffd976;
  color: #ffffff;

  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;

  font-size: 0.875rem;
  font-weight: 700;

  transition: all 0.2s ease;
}


.quick-action-btn:hover {
  background: linear-gradient(
          135deg,
          #7a5616 0%,
          #ffe48f 20%,
          #f1c74f 40%,
          #d6a12d 60%,
          #a1761f 80%,
          #7a5616 100%
  );
}

.quick-action-icon {
  width: 1rem;
  height: 1rem;
}

/* =========================
   Auth Buttons Wrapper
========================= */
.auth-buttons {
  display: flex;
  gap: 12px;
}

/* =========================
   Base Auth Button
========================= */
.auth-btn {
  display: inline-flex;              /* icon + text inline */
  align-items: center;               /* vertical center */
  justify-content: center;
  gap: 0.5rem;

  height: 40px;
  min-width: 120px;

  padding: 0 0.75rem;
  border-radius: 0.4rem;

  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  transition: all 0.2s ease;

  color: #ffffff !important;
  background: linear-gradient(
          135deg,
          #e6e6e6 0%,
          #b5b5b5 20%,
          #7a7a7a 45%,
          #3f3f3f 70%,
          #1f1f1f 100%
  ) !important;
  border: 1px solid #cfcfcf !important;
}

/* Icon inside button */
.auth-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* =========================
   Hover (FIXED selector)
========================= */
.auth-btn:hover {
  filter: brightness(1.05);
}

/* =========================
   Primary Variant
========================= */
.auth-btn.primary {
  font-weight: 600;
}

.auth-btn.primary:hover {
  background: linear-gradient(
          to right,
          #ffbd3a,
          #fc700d,
          #fc700d
  );
}

/* ✅ Responsive design */
@media (max-width: 768px) {
  .auth-buttons {
    min-width: auto;
    display: flex !important;
    gap: 2px;
  }

  .auth-btn {
    width: 100%;                   /* make button full width */
    max-width: 320px;              /* limit width for nice proportion */
    font-size: 0.95rem;            /* slightly smaller text */
  }

  .auth-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Responsive modal adjustments */
@media (max-width: 640px) {
  .modal-container {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }

  .modal-content {
    padding: 1rem;
  }

  .tabs-list {
    grid-template-columns: 1fr 1fr;
  }

  .payment-method-btn {
    font-size: 0.75rem;
    padding: 0.375rem;
  }

  .amount-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }

}

/* Search Icon Button for Mobile */
.search-icon-btn {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
  margin-right: 0.5rem;
}

/* Show search icon on mobile */
@media (max-width: 768px) {
  .search-icon-btn {
    display: flex !important;
  }

  .search-icon-btn .search-icon {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
  }
}

.search-icon-btn:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--foreground));
}

.search-icon-btn .search-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Search icon button as quick action */
.quick-actions .search-icon-btn {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
  margin: 0;
  align-items: center;
  justify-content: center;
}

/* Show search icon on mobile */
@media (max-width: 768px) {
  .quick-actions .search-icon-btn {
    display: flex !important;
  }
}

/* Enhanced mobile search icon styling */
@media (max-width: 768px) {
  .quick-actions .search-icon-btn {
    display: flex !important;
    background: none !important;
    border: none !important;
    padding: 0.5rem !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    color: hsl(var(--muted-foreground)) !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    margin-left: 0.75rem !important;
    margin-right: 0.25rem !important;
    align-items: center !important;
    justify-content: center !important;
    order: 1 !important;
  }

  .quick-actions .search-icon-btn:hover {
    background-color: hsl(var(--accent)) !important;
    color: hsl(var(--foreground)) !important;
  }

  .quick-actions .search-icon-btn .search-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }

}

.quick-actions .search-icon-btn:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--foreground));
}

.quick-actions .search-icon-btn .search-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Search Modal Styles */
#searchModal .modal-container {
  max-width: 500px;
  width: 90vw;
}

.search-modal-content {
  padding: 1rem 0;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-input-container .search-input {
  flex: 1;
  height: 2.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background-color: var(--background);
  color: hsl(var(--foreground));
  font-size: 1rem;
}

.search-input-container .search-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.search-submit-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit-btn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-1px);
}

.search-submit-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.search-suggestions {
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: hsl(var(--muted) / 0.3);
}

.search-suggestion-item {
  padding: 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.search-suggestion-item:hover {
  background-color: hsl(var(--accent));
}

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

.search-suggestion-title {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.search-suggestion-category {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Mobile Responsive Search Modal */
@media (max-width: 768px) {
  #searchModal .modal-container {
    max-width: 95vw !important;
    width: 95vw !important;
    margin: 1rem auto !important;
    max-height: 85vh !important;
    min-height: 60vh !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border: none;
    background: none;
  }

  #searchModal .modal-content {
    padding: 0.75rem !important;
  }

  #searchModal .modal-header {
    padding: 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }

  #searchModal .modal-title {
    font-size: 1.125rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  #searchModal .modal-title .search-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  #searchModal .modal-close {
    padding: 0.5rem !important;
    width: 2rem !important;
    height: 2rem !important;
  }

  .search-modal-content {
    padding: 0.5rem 0 !important;
  }

  .search-input-container {
    flex-direction: row !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  .search-input-container .search-input {
    flex: 1 !important;
    height: 3rem !important;
    padding: 0.875rem 1rem !important;
    font-size: 1rem !important;
    border-radius: 0.5rem !important;
  }

  .search-submit-btn {
    width: auto !important;
    min-width: 3rem !important;
    padding: 0.875rem !important;
    font-size: 1rem !important;
    border-radius: 0.5rem !important;
    height: 3rem !important;
  }

  .search-submit-btn svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  .search-suggestions {
    max-height: 400px !important;
    min-height: 200px !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem !important;
  }

  .search-suggestion-item {
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .search-suggestion-title {
    font-size: 1rem !important;
    margin-bottom: 0.375rem !important;
  }

  .search-suggestion-category {
    font-size: 0.875rem !important;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
  #searchModal .modal-container {
    max-width: 98vw !important;
    width: 98vw !important;
    margin: 0.5rem auto !important;
    max-height: 90vh !important;
    min-height: 90vh !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  #searchModal .modal-content {
    padding: 0.5rem !important;
    height: 60vh !important;
  }

  #searchModal .modal-header {
    padding: 0.5rem !important;
    margin-bottom: 0.25rem !important;
  }

  #searchModal .modal-title {
    font-size: 1rem !important;
  }

  .search-input-container .search-input {
    height: 2.75rem !important;
    padding: 0.75rem !important;
    font-size: 0.875rem !important;
  }

  .search-submit-btn {
    height: 2.75rem !important;
    padding: 0.75rem !important;
    font-size: 0.875rem !important;
  }

  .search-suggestions {
    max-height: 500px !important;
    min-height: 350px !important;
    padding: 0.5rem !important;
  }

  .search-suggestion-item {
    padding: 0.75rem !important;
  }

  .search-suggestion-title {
    font-size: 0.875rem !important;
  }

  .search-suggestion-category {
    font-size: 0.75rem !important;
  }
}

/* Mobile responsive search */
@media (max-width: 768px) {
  .search-container {
    display: none !important;
  }

  .quick-actions .search-icon-btn {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .quick-actions .search-icon-btn {
    display: none !important;
  }
  .search-container {
    display: flex !important;
  }
}

/* Navbar Responsive Breakpoints - 1740px down to 780px */

/* Ultra Widescreen - 1600px to 1740px */
@media (min-width: 1600px) and (max-width: 1740px) {
  .navbar {
    padding: 0.75rem 1.5rem;
  }

  .navbar-content {
    gap: 1.5rem;
  }

  .navbar-left {
    gap: 1.25rem;
  }

  .navbar-right {
    gap: 1.25rem;
  }

  .search-container {
    width: min(45vw, 600px);
    max-width: 600px;
  }

  .search-input {
    height: 2.75rem;
    font-size: 1rem;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
  }

  .quick-actions {
    gap: 6px;
  }

  .quick-action-btn {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .language-selector {
    padding: 0.75rem 1rem;
  }

  .theme-toggle {
    padding: 0.75rem;
  }
}

/* Large Desktop - 1400px to 1599px */
@media (min-width: 1400px) and (max-width: 1599px) {
  .navbar {
    padding: 0.625rem 1.25rem;
  }

  .navbar-content {
    gap: 1.25rem;
  }

  .navbar-left {
    gap: 1rem;
  }

  .navbar-right {
    gap: 1rem;
  }

  .search-container {
    width: min(42vw, 550px);
    max-width: 550px;
  }

  .search-input {
    height: 2.5rem;
    font-size: 0.95rem;
    padding: 0.625rem 0.875rem 0.625rem 2.25rem;
  }

  .quick-actions {
    gap: 6px;
  }

  .quick-action-btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }

  .language-selector {
    padding: 0.625rem 0.875rem;
  }

  .theme-toggle {
    padding: 0.625rem;
  }
}

/* Desktop - 1200px to 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar-content {
    gap: 1rem;
  }

  .navbar-left {
    gap: 0.875rem;
  }

  .navbar-right {
    gap: 0.875rem;
  }

  .search-container {
    width: min(35vw, 420px);
    max-width: 420px;
  }

  .search-input {
    height: 2.25rem;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
  }

  .quick-actions {
    gap: 6px;
  }

  .quick-action-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .language-selector {
    padding: 0.5rem 0.75rem;
  }

  .theme-toggle {
    padding: 0.5rem;
  }
}

/* Large Laptop - 1024px to 1199px */
@media (min-width: 1024px) and (max-width: 1199px) {
  .navbar {
    padding: 0.5rem 0.875rem;
  }

  .navbar-content {
    gap: 0.875rem;
  }

  .navbar-left {
    gap: 0.75rem;
  }

  .navbar-right {
    gap: 0.75rem;
  }

  .search-container {
    display: none !important;
  }

  .search-input {
    height: 2rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.625rem 0.5rem 1.75rem;
  }

  .quick-actions {
    gap: 0.75rem;
  }

  .quick-action-btn {
    padding: 0.5rem 0.625rem;
    font-size: 0.8rem;
  }

  .language-selector {
    padding: 0.5rem 0.625rem;
  }

  .theme-toggle {
    padding: 0.5rem;
  }
}

/* Laptop - 900px to 1023px */
@media (min-width: 900px) and (max-width: 1023px) {
  .navbar {
    padding: 0.5rem 0.75rem;
  }

  .navbar-content {
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .navbar-left {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .navbar-right {
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
  }

  .search-container {
    display: none !important;
  }

  .search-input {
    height: 1.75rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.375rem 0.25rem 1.25rem;
    width: 100%;
  }

  .quick-actions {
    gap: 0.375rem;
    flex-shrink: 0;
  }

  .quick-action-btn {
    padding: 0.25rem 0.375rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .language-selector {
    padding: 0.25rem 0.375rem;
    flex-shrink: 0;
  }

  .theme-toggle {
    padding: 0.25rem;
    flex-shrink: 0;
  }

  /* Ensure auth buttons are visible */
  .auth-buttons {
    flex-shrink: 0;
    min-width: auto;
  }

  .auth-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }
}

/* Critical Range - 900px to 950px (where Sign In gets cut off) */
@media (min-width: 900px) and (max-width: 950px) {
  .navbar {
    padding: 0.375rem 0.5rem;
  }

  .navbar-content {
    gap: 0.375rem;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .navbar-left {
    gap: 0.375rem;
    flex-shrink: 0;
  }

  .navbar-right {
    gap: 0.375rem;
    flex-shrink: 0;
    min-width: 0;
  }

  .search-container {
    display: none;
  }

  .search-input {
    height: 1.625rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    width: 100%;
  }

  .quick-actions {
    gap: 0.25rem;
    flex-shrink: 0;
  }

  .quick-action-btn {
    padding: 0.25rem 0.25rem;
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .language-selector {
    padding: 0.25rem 0.25rem;
    flex-shrink: 0;
  }

  .theme-toggle {
    padding: 0.25rem;
    flex-shrink: 0;
  }

  /* Critical: Ensure auth buttons are always visible */
  .auth-buttons {
    flex-shrink: 0;
    min-width: auto;
    display: flex !important;
  }

  .auth-btn {
    padding: 0.25rem 0.375rem;
    font-size: 0.65rem;
    white-space: nowrap;
    min-width: auto;
  }

  /* Hide language selector to save space */
  .language-selector {
    display: none;
  }
}

/* Small Laptop - 780px to 899px */
@media (min-width: 780px) and (max-width: 899px) {
  .navbar {
    padding: 0.5rem 0.625rem;
  }

  .navbar-content {
    gap: 0.625rem;
    flex-wrap: nowrap;
  }

  .navbar-left {
    gap: 0.5rem;
    width: 5%;
    margin-bottom: 0.5rem;
  }

  .navbar-right {
    gap: 0.5rem;
    width: 90%;
    justify-content: space-between;
  }

  .search-container {
    display: none !important;
  }

  .search-input {
    height: 1.75rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.375rem 0.25rem 1.25rem;
  }

  .quick-actions {
    gap: 0.5rem;
    margin-left: auto;
  }

  .quick-action-btn {
    padding: 0.25rem 0.375rem;
    font-size: 0.7rem;
  }

  .language-selector {
    padding: 0.25rem 0.375rem;
  }

  .theme-toggle {
    padding: 0.25rem;
  }

  /* Hide language selector on smaller screens */
  .language-selector {
    display: none;
  }
}

/* Mobile 420px and below */
@media (max-width: 420px) {

  .navbar {
    display: flex;
    width: 100%;
  }

  .navbar-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    flex-wrap: nowrap;       /* 🔒 prevents wrapping */
  }

  /* LEFT SIDE (hamburger only) */
  .navbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    width: 50%;
  }

  /* RIGHT SIDE (wallet, icons, profile) */
  .navbar-right {
    width: 50%;
    margin-left: auto;       /* 🔥 push to right */
    display: flex;
    align-items: center;
    gap: 0.4rem;             /* tighter for mobile */
    flex-shrink: 0;
  }

  .auth-buttons {
    min-width: auto;
    display: flex !important;
    gap: 2px;
  }

  .quick-actions {
    gap: 2px;
    margin: 0;
  }

  /* Compact Login */
  .auth-btn {
    padding: 6px 10px;
    font-size: 0.65rem;
    min-width: 52px;
    height: 34px;
  }

  /* Avatar dropdown fix */
  .user-dropdown {
    right: 0 !important;       /* stay inside screen */
    left: auto !important;
    transform: none !important;
    width: 160px;              /* adjust if needed */
  }
  .user-dropdown {
    max-width: 80vw;
  }
}

/* Mobile 375px and below */
@media (max-width: 375px) {

  .navbar-left {
    width: 5%;
  }
  .navbar-right {
    width: 95%;
  }

  .auth-buttons {
    min-width: auto;
    display: flex !important;
    gap: 2px;
  }

  .quick-actions {
    gap: 2px;
    margin: 0;
  }

  /* Compact Login */
  .auth-btn {
    padding: 6px 10px;
    font-size: 0.65rem;
    min-width: 52px;
    height: 34px;
  }

  /* Avatar dropdown fix */
  .user-dropdown {
    right: 0 !important;       /* stay inside screen */
    left: auto !important;
    transform: none !important;
    width: 160px;              /* adjust if needed */
  }
  .user-dropdown {
    max-width: 80vw;
  }
}

@media (max-width: 360px) {

  .navbar-left {
    width: 13%;
  }
  .navbar-right {
    width: 87%;
  }

  /* Hide button text */
  .quick-action-btn span {
    display: none;
  }

  /* Icon-only quick buttons */
  .quick-action-btn {
    padding: 6px;
    width: 36px;
    height: 36px;
    justify-content: center;
  }

  /* Compact Login */
  .auth-btn {
    padding: 6px 10px;
    font-size: 0.65rem;
    min-width: 52px;
    height: 34px;
  }

  .section-btn {
    font-size: 0.20rem;
    padding: 0.35rem 0.4rem;
  }

}

/* Custom Notification System */
.custom-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 350px;
  min-width: 280px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.custom-notification.success {
  border-color: #22c55e;
  background: #1f2937;
  border-left: 4px solid #22c55e;
}

.custom-notification.error {
  border-color: #ef4444;
  background: #1f2937;
  border-left: 4px solid #ef4444;
}

.custom-notification.warning {
  border-color: #fbbf24;
  background: #1f2937;
  border-left: 4px solid #fbbf24;
}

.custom-notification.info {
  border-color: #3b82f6;
  background: #1f2937;
  border-left: 4px solid #3b82f6;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
}

.notification-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: #f9fafb;
  margin: 0 0 3px 0;
  line-height: 1.3;
}

.notification-message {
  font-size: 12px;
  color: #d1d5db;
  margin: 0;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: -1px;
}

.notification-close:hover {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive notifications */
@media (max-width: 768px) {
  .custom-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
  }

  .notification-content {
    padding: 10px;
    gap: 8px;
  }

  .notification-title {
    font-size: 13px;
  }

  .notification-message {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .custom-notification {
    top: 5px;
    right: 5px;
    left: 5px;
  }

  .notification-content {
    padding: 8px;
    gap: 6px;
  }

  .notification-icon {
    font-size: 16px;
  }

  .notification-title {
    font-size: 12px;
  }

  .notification-message {
    font-size: 10px;
  }
}

/* Global Loading Overlay */
.global-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.global-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: hsl(var(--card));
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid hsl(var(--border));
}

.global-loading-spinner {
  position: relative;
  width: 3rem;
  height: 3rem;
}

.spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid #fbbf24;
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
  animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
  animation-delay: -0.3s;
  border-top-color: #f59e0b;
}

.spinner-ring:nth-child(3) {
  animation-delay: -0.15s;
  border-top-color: #d97706;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.global-loading-text {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: center;
}

/* Mobile responsive for global loading */
@media (max-width: 768px) {
  .global-loading-container {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 0.75rem;
  }

  .global-loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
  }

  .global-loading-text {
    font-size: 0.875rem;
  }
}

/* ============================================================================
   GAME CARDS STYLES
   ============================================================================ */

/* Page header styles for game pages */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 0.25rem;   /* controls distance from top */
  padding-bottom: 0.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground, 210 15% 90%));
  line-height: 1.3;
  position: relative;
  margin: 0 0 0.25rem;
  padding-left: 14px;
}

/* Accent bar */
.page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  border-radius: 4px;
  background: var(--gold-400, #f5c542);
}

/* 🔥 CENTERED VERSION */
.page-title.centered {
  padding-left: 0;
  padding-right: 14px;
  text-align: center;
  display: inline-block;
}

.page-title.centered::before {
  left: auto;
  right: 100%;
  margin-right: 10px; /* space between bar and text */
}

/* 📱 Mobile */
@media (max-width: 480px) {
  .page-title {
    font-size: 1.2rem;
  }

  .page-title.centered::before {
    height: 65%;
    width: 3px;
    margin-right: 8px;
  }
}

/* 📱 Tablet */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.35rem;
    padding-left: 13px;
  }
}

/* 🖥️ Large screens */
@media (min-width: 1200px) {
  .page-title {
    font-size: 1.6rem;
  }
}

/* Games container for individual game pages */
.games-container {
  padding: 1rem 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

/* Enhanced game card styles for hover effects */
.games-grid .game-card {
  background: transparent;
  border-radius: 0.75rem;
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.games-grid .game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px hsl(var(--primary) / 0.15);
}

.games-grid .game-image {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
}

.games-grid .game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.games-grid .game-image:hover img {
  transform: scale(1.08);
}

/* Dark overlay on hover - only when hovering the image */
.games-grid .game-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.games-grid .game-image:hover::after {
  opacity: 1;
}

/* Play Now button overlay - positioned over the image on hover */
.games-grid .game-image::before {
  content: 'PLAY NOW';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #1c95d1 0%, #1e53ce 100%);
  color: white;
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(30, 83, 206, 0.37);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  pointer-events: none;
  white-space: nowrap;
}

.games-grid .game-image:hover::before {
  opacity: 1;
  visibility: visible;
}

.games-grid .game-image:hover::before:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 4px 15px rgba(30, 83, 206, 0.37);
  background: linear-gradient(135deg, #1c95d1 0%, #1e53ce 100%);
}

/* Hide game info section - show only image */
.games-grid .game-info {
  display: none;
}

/* Make the game image take full card space */
.games-grid .game-image {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
  border-radius: 0.75rem;
}

/* ============================================================================
   COMPREHENSIVE RESPONSIVE DESIGN FOR GAMES GRID
   ============================================================================ */

/* Extra large screens (4K, large monitors) */
@media (min-width: 1920px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
  }

  .games-grid .game-image {
    height: 100px;
  }

  .games-grid .game-image::before {
    content: 'PLAY NOW';
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
  }
}

/* Large screens (desktops, large laptops) */
@media (min-width: 1400px) and (max-width: 1919px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .games-grid .game-image {
    height: 150px;
  }

  .games-grid .game-image::before {
    content: 'PLAY NOW';
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
  }
}

/* Standard laptops and desktops */
@media (min-width: 1200px) and (max-width: 1399px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.75rem;
  }

  .games-grid .game-image {
    height: 120px;
  }

  .games-grid .game-image::before {
    content: 'PLAY NOW';
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    opacity: 0;
    visibility: hidden;
  }
}

/* Small laptops and large tablets */
@media (min-width: 992px) and (max-width: 1199px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .games-grid .game-image {
    height: 170px;
  }

  .games-grid .game-image::before {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    opacity: 0;
    visibility: hidden;
  }
}

/* Tablets (iPad, Android tablets) */
@media (min-width: 768px) and (max-width: 991px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem;
  }

  .games-grid .game-image {
    height: 150px;
  }

  .games-grid .game-image::before {
    content: 'PLAY NOW';
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
    opacity: 0;
    visibility: hidden;
  }
}

/* Small tablets and large phones */
@media (min-width: 576px) and (max-width: 767px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
  }

  .games-grid .game-image {
    height: 100px;
  }

  .games-grid .game-image::before {
    padding: 0.4rem 0.8rem;
    font-size: 0.6rem;
    opacity: 0;
    visibility: hidden;
  }
}

/* Mobile phones (landscape) */
@media (min-width: 480px) and (max-width: 575px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .games-grid .game-image {
    height: 80px;
  }

  .games-grid .game-image::before {
    content: 'PLAY NOW';
    padding: 0.3rem 0.6rem;
    font-size: 0.55rem;
    opacity: 0;
    visibility: hidden;
  }
}

/* Mobile phones (portrait) */
@media (max-width: 479px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-right: 10px;
  }

  .games-grid .game-image {
    height: 100px;
  }

  .games-grid .game-image::before {
    content: 'PLAY NOW';
    padding: 0.3rem 0.6rem;
    font-size: 0.55rem;
    opacity: 0;
    visibility: hidden;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .games-grid .game-image {
    height: 80px;
  }

  .games-grid .game-image::before {
    content: 'PLAY NOW';
    padding: 0.25rem 0.5rem;
    font-size: 0.5rem;
    opacity: 0;
    visibility: hidden;
  }
}


.game-card {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary) / 0.3);
}


.game-icon {
  font-size: 3rem;
  display: block;
}

.game-info {
  padding: 1rem;
}

.game-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.game-provider {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

/* Regular play button in game info section */
.game-info .play-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.8) 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-info .play-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px hsl(var(--primary) / 0.3);
}


/* Dark Mode Support for Game Cards */
.dark .game-card {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.dark .game-name {
  color: hsl(var(--foreground));
}

.dark .game-provider {
  color: hsl(var(--muted-foreground));
}

/* ============================================================================
   HOME PAGE GAME SECTIONS STYLES
   ============================================================================ */

.game-section {
  margin-bottom: 1.5rem;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground, 210 15% 90%)); /* fallback */
  margin: 0;
  position: relative;
  padding-left: 14px;
  line-height: 1.3;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  border-radius: 4px;
  background: var(--gold-400, #f5c542); /* fallback */
}

.see-all-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.8) 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.see-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px hsl(var(--primary) / 0.3);
}

.see-all-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.see-all-btn:hover .see-all-icon {
  transform: translateX(2px);
}

.show-more-container {
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

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

/* Game Sections Responsive Design */
@media (max-width: 768px) {
  .game-section {
    margin-bottom: 20px;
  }

  .section-header {
    /*flex-direction: column;*/
    align-items: flex-start;
    gap: 1rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .see-all-btn {
    align-self: flex-end;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .section-header {
    gap: 0.75rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .see-all-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }

  .see-all-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 360px) {
  .section-title {
    font-size: 1.0rem;
    padding-left: 10px;
    line-height: 1.25;
  }

  .section-title::before {
    width: 3px;
    height: 60%;
    border-radius: 3px;
  }
}

@media (max-width: 320px) {
  .section-title {
    font-size: 1.05rem;
    padding-left: 8px;
  }

  .section-title::before {
    width: 3px;
    height: 55%;
  }
}

/* Responsive checkmarks for mobile */
@media (max-width: 768px) {
  .section-content li::before {
    top: 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .section-content li::before {
    top: 0.4rem;
    font-size: 0.8rem;
  }
}

.text-danger{
  color: #dc1111;
  font-size: 13px;
  margin-top: 3px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
  flex-wrap: wrap;
  list-style: none;  /* Remove bullets */
  padding: 0;
}

.pagination li {
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #111;
  transition: all 0.2s ease;
  min-width: 40px;
}

.pagination li a {
  color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 15px;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Hover effect on li */
.pagination li:hover {
  background: linear-gradient(
          135deg,
          #e6e6e6 0%,
          #b5b5b5 20%,
          #7a7a7a 45%,
          #3f3f3f 70%,
          #1f1f1f 100%
  ) !important;
  border: 1px solid #cfcfcf !important;
  transform: scale(1.05);
}

.pagination li:hover a {
  color: #fff;
}

/* 🔹 Active state on li */
.pagination li.active {
  background: linear-gradient(
          135deg,
          #e6e6e6 0%,
          #b5b5b5 20%,
          #7a7a7a 45%,
          #3f3f3f 70%,
          #1f1f1f 100%
  ) !important;
  border: 1px solid #cfcfcf !important;
  box-shadow: 0 0 8px #7a7a7a;
}

.pagination li.active a {
  color: #fff;
  font-weight: 600;
}

/* Disabled state */
.pagination li.disabled {
  opacity: 0.6;
  pointer-events: none;
  background-color: #181818;
  border-color: #333;
}

.pagination li.disabled a {
  color: #555;
}

/* Responsive */
@media (max-width: 600px) {
  .pagination li a {
    padding: 8px 10px;
    font-size: 14px;
    min-width: 36px;
  }
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
  text-align: left;
}

/* Color Variants */
.alert.success {
  background-color: #d1fae5;
  color: #065f46;
  border-left: 5px solid #10b981;
}

.alert.warning {
  background-color: #fef3c7;
  color: #92400e;
  border-left: 5px solid #f59e0b;
}

.alert.error {
  background-color: #fee2e2;
  color: #991b1b;
  border-left: 5px solid #ef4444;
}

.alert.info {
  background-color: #dbeafe;
  color: #1e40af;
  border-left: 5px solid #3b82f6;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close button */
.alert .close-btn {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-weight: bold;
}

.alert .close-btn:hover {
  opacity: 1;
}

.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mb-0 {
  margin-bottom: 5px;
}
.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}

/* ------------------------ FAQ Pages --------------------------- */
.faq-container {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}
/* Search bar */
.faq-search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--faq-card-light);
  padding: 10px;
  border-radius: 10px;
  margin: 20px 0 30px;
  transition: var(--faq-transition);
  border: 1px solid #cbd5e1;
}

.dark .faq-search-box {
  background: var(--faq-card-dark);
  border-color: #334155;
}

.faq-search-box input {
  width: 100%;
  max-width: 500px;
  padding: 10px 15px;
  border: 1px solid #cbd5e1;
  outline: none;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 16px;
  transition: var(--faq-transition);
}

.dark .faq-search-box input {
  border-color: #475569;
}

.faq-search-box input:focus {
  border-color: var(--faq-accent);
}

.faq-search-box button {
  background: var(--faq-accent);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  margin-left: 10px;
  cursor: pointer;
  transition: var(--faq-transition);
}

.faq-search-box button:hover {
  opacity: 0.9;
}

/* Category cards */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.faq-category {
  flex: 1 1 200px;
  background: var(--faq-card-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--faq-transition);
  border: 1px solid transparent;
}

.faq-category i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  color: var(--faq-accent);
}

.faq-category:hover,
.faq-category.active {
  border-color: var(--faq-accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dark .faq-category {
  background: var(--faq-card-dark);
}

/* Accordion */
.faq-section {
  background: var(--faq-card-light);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--faq-transition);
}

.dark .faq-section {
  background: var(--faq-card-dark);
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  transition: var(--faq-transition);
}

.faq-question {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  transition: var(--faq-transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question i {
  font-size: 20px;
  transition: transform 0.3s ease;
  color: var(--faq-accent);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-question:hover {
  background: rgba(245, 158, 11, 0.1);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding: 10px 20px 20px;
}

/* No results message */
.faq-no-results {
  text-align: center;
  color: var(--faq-muted-light);
  display: none;
  padding: 30px 10px;
}

.dark .faq-no-results {
  color: var(--faq-muted-dark);
}

@media (max-width: 600px) {
  .faq-category {
    flex: 1 1 100%;
  }
}

/* ------------------------ Terms of Service Pages --------------------------- */

/* ---------- Buttons ---------- */
.terms-action-btn {
  background: var(--terms-card);
  border: 1px solid var(--terms-border);
  color: var(--terms-text);
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--terms-shadow);
  font-size: 14px;
  transition: background .3s ease;
}
.terms-action-btn:hover {
  background: var(--terms-border);
}

.terms-wrap {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 20px;
}
.terms-top-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  gap: 10px;
}
.terms-page-header {
  margin-bottom: 20px;
}
/* ---------- Layout ---------- */
.terms-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}
@media(max-width: 900px){
  .terms-layout{
    grid-template-columns:1fr;
  }
}
/* ---------- Sidebar Tabs ---------- */
.terms-toc .panel {
  background: var(--terms-card);
  border: 1px solid var(--terms-border);
  padding: 14px;
  border-radius: 12px;
  box-shadow: var(--terms-shadow);
  position: sticky;
  top: 20px;
}

.terms-toc h4 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.terms-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-toc-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--terms-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 14px;
  border: none;
  outline: none;
  font-weight: 500;
}

/* Hover effect — subtle gold tint */
.terms-toc-list button:hover {
  /*background: linear-gradient(90deg, #fff8dc, rgba(255, 215, 0, 0.15));*/
  background: linear-gradient(90deg, #FFD700, #e7b85b);
  color: var(--terms-text);
  transform: translateX(3px);
  font-weight: 600;
}

/* Icon hover effect */
.terms-toc-list button:hover .terms-icon {
  background: #FFD700;
  color: #fff;
  transition: all 0.25s ease;
}

/* Active state — solid gold gradient + bold text */
.terms-toc-list button.active {
  background: linear-gradient(90deg, #FFD700, #F6B21A);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(246, 178, 26, 0.3);
  transform: translateX(4px);
}

/* Active icon */
.terms-toc-list button.active .terms-icon {
  background: #fff;
  color: #F6B21A;
}

/* Base icon style */
.terms-toc-list .terms-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 14px;
  transition: all 0.25s ease;
}
.terms-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--terms-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Content ---------- */
.terms-content-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.terms-card {
  background: var(--terms-card);
  border: 1px solid var(--terms-border);
  border-radius: 12px;
  box-shadow: var(--terms-shadow);
  padding: 24px;
  transition: opacity .4s ease, transform .4s ease;
}
.terms-card.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.terms-card.active {
  opacity: 1;
  transform: none;
  position: relative;
  z-index: 1;
}
.terms-h {
  font-size: 20px;
  margin-bottom: 10px;
}
.terms-p {
  margin-bottom: 12px;
  color: var(--terms-muted);
  font-size: 15px;
}
.terms-ul {
  margin-left: 20px;
  color: var(--terms-muted);
  font-size: 15px;
}
.terms-action-bar {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

/* ------------------------ Live Chat Pages --------------------------- */
.livechat-container {
  max-width: 1100px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.livechat-header {
  text-align: center;
  margin-bottom: 30px;
}
.livechat-header .livechat-icon {
  font-size: 48px;
  color: var(---livechat-primary);
  background: var(---livechat-accent-light);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 12px;
}
.livechat-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}
.livechat-header p {
  color: var(---livechat-muted);
  font-size: 1rem;
  margin-top: 5px;
}

/* ---------- Grid Layout ---------- */
.livechat-grid {
  display: grid;
  gap: 20px;
}
.livechat-grid-2 {
  grid-template-columns: 2fr 1fr;
}

/* ---------- Cards ---------- */
.livechat-card {
  background: var(---livechat-card);
  border: 1px solid var(---livechat-border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: background 0.3s, border 0.3s;
}

/* ---------- Left Section ---------- */
.livechat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #10b981;
  flex-wrap: wrap;
}

.livechat-status span {
  font-size: 0.9rem;
  color: var(---livechat-muted);
}

/* ---------------------------
   ✅ Responsive Enhancements
---------------------------- */
@media (max-width: 576px) {
  .livechat-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .livechat-status span {
    font-size: 0.85rem;
  }
}
.livechat-support-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.livechat-method {
  border: 1px solid var(---livechat-border);
  border-radius: 12px;
  padding: 16px;
  transition: 0.25s;
}
.livechat-method:hover {
  border-color: var(---livechat-primary);
  transform: translateY(-2px);
}
.livechat-method h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}
.livechat-method p {
  color: var(---livechat-muted);
  font-size: 0.9rem;
}

/* ---------- Right Sidebar ---------- */
.livechat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.livechat-support-hours strong,
.livechat-contact-info strong {
  display: block;
  margin-bottom: 6px;
}
.livechat-support-hours small {
  color: var(---livechat-muted);
  font-size: 0.85rem;
}
.livechat-contact-info {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(---livechat-muted);
}
.livechat-start-chat {
  background: linear-gradient(to right, #fef3c7, #fde68a);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: #1f2937;
}
.livechat-start-chat h3 {
  margin: 0 0 5px;
}
.livechat-start-chat button {
  background: var(---livechat-primary);
  border: none;
  color: #fff;
  padding: 10px 22px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
}
.livechat-start-chat button:hover {
  background: var(---livechat-primary-hover);
}

/* ---------- Common Issues ---------- */
.livechat-common-issues {
  margin-top: 28px;
}
.livechat-common-issues h3 {
  margin-top: 0;
}
.livechat-issues-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.livechat-issue-item {
  border: 1px solid var(---livechat-border);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(---livechat-card);
  transition: 0.25s;
  cursor: pointer;
}
.livechat-issue-item:hover {
  background: var(---livechat-accent-light);
  border-color: var(---livechat-primary);
}

/* ================================
   ✅ Responsive Enhancements
================================ */
@media (max-width: 992px) {
  .livechat-grid-2 {
    grid-template-columns: 1fr;
  }
  .livechat-sidebar {
    order: 2;
  }
  .livechat-card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .livechat-header h1 {
    font-size: 1.6rem;
  }
  .livechat-header p {
    font-size: 0.95rem;
  }
  .livechat-support-methods {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .livechat-start-chat {
    padding: 18px;
    border-radius: 12px;
  }
}

@media (max-width: 576px) {
  .livechat-header .livechat-icon {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }
  .livechat-header h1 {
    font-size: 1.4rem;
  }
  .livechat-support-methods {
    grid-template-columns: 1fr;
  }
  .livechat-start-chat button {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
  }
  .livechat-card {
    padding: 16px;
    border-radius: 12px;
  }
}

.form-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-transform: capitalize;
}

.form-status.active {
  background-color: #16a34a; /* green */
}

.form-status.pending {
  background-color: #facc15; /* yellow */
  color: #000;
}

.form-status.failed {
  background-color: #dc2626; /* red */
}

.text-success {
  color: #16a34a; /* green */
}

/* ======================================= Dropdown Form ============================= */

/* ====== Form group ====== */
.wd-form-group {
  position: relative;
  margin: 0 auto;
}

.wd-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--wd-label);
}

.dropdown-arrow {
  position: absolute;
  top: 50px;
  right: 0.8rem;
  transform: translateY(-50%);
  font-size: 15px;
  color: #130101;
  pointer-events: none;
}
/*--------------------------Clear Input Icon --------------------*/
.form-group {
  position: relative;
}
.clear-icon {
  display: none;
  position: absolute;
  right: 1.2rem;
  top: 55px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #888;
  cursor: pointer;
}
.clear-icon:hover {
  color: #333;
}
/* Show icon only if input has text and input is focused or hovered */
.form-group.show-icon:hover .clear-icon,
.form-group.show-icon:focus-within .clear-icon {
  display: block;
}

.form-required{
  color: #e11717;
}

/*--------------------------Clear Select Icon --------------------*/
.clear-icon-select {
  display: none;
  position: absolute;
  right: 2.2rem;
  top: 50px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #888;
  cursor: pointer;
}
.clear-icon-select:hover {
  color: #333;
}
@media (max-width: 480px) {
  .clear-icon-select {
    top: 42px;
  }
}
/* Show icon only if input has text and input is focused or hovered */
.wd-form-group.show-icon:hover .clear-icon-select,
.wd-form-group.show-icon:focus-within .clear-icon-select {
  display: block;
}
/* Show icon only if input has text and input is focused or hovered */
.form-group.show-icon:hover .clear-icon-select,
.form-group.show-icon:focus-within .clear-icon-select {
  display: block;
}

/* ====== Dropdown ====== */
#location-picker {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--wd-order);
  border-radius: 12px;
  box-shadow: var(--wd-shadow);
  z-index: 10;
  display: none;
  transition: all 0.3s ease;
}

/* ====== Nav tabs ====== */
.wd-nav {
  background: var(--wd-nav-bg);
  border-bottom: 1px solid var(--wd-tab-border);
  padding: 6px 8px;
  display: flex;
  gap: 6px;
  border-radius: 12px 12px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none; /* ✅ remove bullet points */
  margin: 0;        /* ✅ remove default margin */
}

.wd-nav::-webkit-scrollbar {
  display: none;
}

.wd-nav-item {
  flex: 0 0 auto;
}

.wd-nav-link {
  border: none;
  background: transparent;
  color: var(--wd-nav-text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.wd-nav-link:hover {
  background: var(--wd-nav-hover-bg);
  color: var(--wd-text);
}

.wd-nav-link.active {
  color: var(--wd-nav-active-text);
  background: #fff;
  border-bottom: 2px solid var(--wd-accent);
}

.wd-nav-link.disabled-tab {
  color: #cbd5e1 !important;
  cursor: not-allowed;
}

/* ====== Tab content ====== */
.wd-tab-additional {
  max-height: 220px;
  overflow-y: auto;
  padding: 12px 16px;
}

.wd-tab-additional::-webkit-scrollbar {
  width: 6px;
}
.wd-tab-additional::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

/* ====== Tab content items ====== */
.wd-tab-content-item {
  padding: 10px 4px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  font-size: 15px;
  color: var(--wd-text);
  transition: background 0.2s ease;
}

.wd-tab-content-item:hover {
  background: var(--wd-item-hover);
}

.wd-tab-content-item.selected {
  color: var(--wd-accent);
  font-weight: 600;
}

.dark #location-picker {
  background: #1e293b;
  border-color: var(--wd-order);
}

.dark .wd-nav-link.active {
  background: #0f172a;
  border-color: var(--wd-accent);
}

.dark .wd-tab-content-item {
  border-bottom: 1px solid #334155;
}

/* ====== Responsive ====== */
@media (max-width: 600px) {
  .wd-nav-link { font-size: 14px; padding: 8px 10px; }
  .wd-tab-content-item { font-size: 14px; }
}

/*------------------------------Table Withdraw Account ----------------------------------*/
/* ====== WRAPPER ====== */
.wt-withdraw-card {
  background: var(--wt-bg-box);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--wt-border);
  max-width: 1000px;
  margin: auto;
}

.wt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.wt-header h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wt-header h2::before {
  content: "🔔";
  font-size: 18px;
}

.wt-header p {
  font-size: 14px;
  color: var(--wt-text-muted);
  margin: 6px 0 0 0;
  width: 100%;
}

.wt-btn-add {
  background: var(--wt-btn-yellow);
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.wt-btn-add:hover { background: #fbbf24; }

.wt-btn-export {
  background: var(--wt-btn-green);
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  margin-right: -400px;
}
.wt-btn-export:hover { background: #157220; }

@media (max-width: 600px) {
  .wt-btn-export {
    margin-right: 0;
    margin-top: 10px;
  }
  .wt-btn-add {
    margin-top: 10px;
  }
}

.status {
  color: var(--wt-success);
  font-weight: 600;
}

.wt-btn-update {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wt-btn-bg);
  color: #fff;
  border: 1px solid var(--wt-btn-border);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.wt-btn-update:hover {
  background: var(--wt-btn-hover);
}

/* ====== MOBILE VIEW (CARD STYLE) ====== */
@media (max-width: 768px) {
  .wt-btn-update {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }
}

.vendor-slider {
  width: 100%;
  overflow: hidden;
  padding: 15px 0;
  margin-bottom: 2rem;
}

.vendor-track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: scrollVendors 25s linear infinite;
}

/* Vendor Card */
.vendor {
  background: linear-gradient(145deg, #ffffff, #ffffff);
  border-radius: 18px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Gold border effect */
  border: 2px solid rgba(255, 220, 90, 0.4);
  box-shadow:
          0 0 10px rgba(255, 200, 70, 0.25),
          inset 0 0 10px rgba(255, 200, 70, 0.08);
  transition: 0.3s;
}

.vendor img {
  height: 55px;
  object-fit: contain;
  transition: 0.3s;
}

/* Hover Animation */
.vendor:hover {
  transform: scale(1.12);
  border-color: rgba(255, 215, 100, 0.9);
  box-shadow:
          0 0 20px rgba(255, 218, 125, 0.65),
          inset 0 0 14px rgba(255, 218, 125, 0.25);
}

.vendor:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 6px rgba(255, 215, 105, 0.9));
}

/* Loop Animation */
@keyframes scrollVendors {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .vendor-track { gap: 18px; }
  .vendor {
    padding: 8px 16px;
    border-radius: 14px;
  }
  .vendor img { height: 40px; }
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(192, 192, 192, 0.22);
}

.balance__amount {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: #f6e7a9;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.balance__refresh {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(192, 192, 192, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, border 160ms ease;
}

.balance__refresh:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.balance__refresh svg {
  width: 16px;
  height: 16px;
}

.balance__refresh.is-spinning svg {
  animation: spin .6s linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Navbar responsive styles */
@media (max-width: 768px) {
  .balance-pill {
    padding: 6px 8px;
  }

  .balance__amount {
    font-size: 13px;
  }

  .balance__refresh {
    width: 24px;
    height: 24px;
  }

  .balance__refresh svg {
    width: 14px;
    height: 14px;
  }
}


@media (max-width: 600px) {
  .balance-pill {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .balance-pill {
    padding: 6px 6px;
    flex: 0 0 auto;
    margin-left: 5px;
    margin-right: 5px;
  }

  .balance__amount {
    font-size: 12px;
  }

  .balance__refresh {
    width: 22px;
    height: 22px;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(192, 192, 192, 0.18);
  cursor: pointer;
  transition: transform 120ms ease, background 180ms ease, border 180ms ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(0);
}

.icon-btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px rgba(192, 192, 192, 0.35);
}

.icon-bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: #c0c0c0;
}

.icon-bars::before,
.icon-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #c0c0c0;
}

.icon-bars::before {
  top: -6px;
}

.icon-bars::after {
  top: 6px;
}

/* Auth Modals */
.modal {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-top {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Dim modal 1 behind modal 2 */
.modal-dimmed .modal-content {
  opacity: 0.4;
  transition: opacity 0.2s;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  width: min(92vw, 420px);
  max-width: calc(100vw - 16px);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin: 0;
}

@media (max-width: 480px) {
  .modal__dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.modal__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--gold-400, #f6e7a9), var(--gold-600, #e2b857));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-radius: 50%;
  color: #a6a7ab;
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
  text-align: center;
  font-weight: 300;
  font-family: Arial, sans-serif;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(234, 181, 74, 0.4);
  color: #fff;
  transform: scale(1.05);
}

.modal__close:active {
  transform: scale(0.95);
}

.form .field {
  margin-bottom: 12px;
}

.form label {
  display: block;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  font-weight: 500;
}

.form input[type="email"],
.form input[type="password"],
.form input[type="text"],
.form input[type="tel"],
.form input[type="date"],
.form input[type="file"],
.form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  color: #e5e7eb;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form input[type="file"] {
  padding: 8px;
  cursor: pointer;
}

.form input[type="file"]::file-selector-button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(234, 181, 74, 0.3);
  background: rgba(234, 181, 74, 0.1);
  color: #f6e7a9;
  cursor: pointer;
  margin-right: 10px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.form input[type="file"]::file-selector-button:hover {
  background: rgba(234, 181, 74, 0.2);
  border-color: rgba(234, 181, 74, 0.5);
}

.form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e5e7eb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form select option {
  background: #000;
  color: #e5e7eb;
}

.form input:focus,
.form select:focus {
  border-color: var(#e2b857, #e2b857);
  box-shadow: 0 0 0 3px rgba(226, 184, 87, 0.25);
}

.form .actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn--primary {
  color: #ffffff !important;
  background: linear-gradient(
          135deg,
          #e6e6e6 0%,
          #b5b5b5 20%,
          #7a7a7a 45%,
          #3f3f3f 70%,
          #1f1f1f 100%
  ) !important;
  border: 1px solid #cfcfcf !important;
}

.btn--primary:hover {
  box-shadow: 0 10px 30px rgba(192, 192, 192, 0.25);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .btn--primary {
    width: 100%;          /* Full width on mobile */
    padding: 5px 5px;   /* Bigger tap area */
    font-size: 15px;      /* Better readability */
    border-radius: 8px;
  }
}

#loginForm,#registerForm .text-danger {
  color: #dc1111 !important;
  font-size: 13px;
  display: block;
}

input.invalid-form,
select.invalid-form,
textarea.invalid-form {
  border-color: #ef4444 !important;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(234, 181, 74, 0.1);
}

.actions-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(234, 181, 74, 0.1);
  justify-content:space-between;
  align-items:center;
}
.actions-tagline {
  text-align: right;
  color: white;
  font-size: 14px;
}

/* ============================= */
/* USER DROPDOWN FIX (MOBILE)    */
/* ============================= */

#userDropdown {
  position: relative;
  z-index: 99999; /* 🔥 anchor */
}

#userDropdownMenu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 99999 !important;
}

/* MOBILE */
@media (max-width: 768px) {
  #userDropdownMenu {
    left: -150px;
    right: 0;
    min-width: 220px;
    width: calc(100vw - 24px);
    max-width: 220px;
  }
}

.gold-link {
  color: #ffb600;              /* Gold */
  text-decoration: none;
}

.gold-link:hover {
  color: #fc700d;              /* Slightly darker gold */
}

.gold-link:active {
  color: #c98f00;
}

.gold-link:focus {
  outline: 2px solid #ffb600;
  outline-offset: 2px;
}

/* ============================== Personal Center and Agent Center ================================*/
.pc-content,
.pc-modal {
  overflow-x: hidden;
}

/* ===============================
   SKELETON LOADER
================================ */
.skeleton {
  padding: 16px;
}

.skeleton > div {
  background: linear-gradient(
          90deg,
          #eee 25%,
          #f5f5f5 37%,
          #eee 63%
  );
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 8px;
  margin-bottom: 12px;
}

.sk-header { height: 24px; width: 40%; }
.sk-row { height: 14px; width: 100%; }
.sk-row.short { width: 60%; }
.sk-card { height: 80px; }
.sk-tabs { height: 36px; width: 100%; }
.sk-form { height: 140px; }
.sk-button { height: 42px; width: 50%; }

@keyframes skeleton-loading {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* =========================
   GLOBAL FORM RESPONSIVENESS
========================= */
input[type="radio"],
input[type="checkbox"] {
  touch-action: manipulation;
}

/* Custom radio wrappers */
.agent-account-radio,
.charts-radio,
.withdraw-method {
  min-height: 44px;
  padding: 8px 12px;
}

.form-radio-row,
.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

/* ===============================
   RADIO FILTER FIX (PC + MOBILE)
================================ */

/* RADIO GROUP */
.radio-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* RADIO ITEM */
.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

/* HIDE NATIVE RADIO */
.radio-item input {
  display: none;
}

/* CUSTOM RADIO CIRCLE */
.radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #999;
  position: relative;
  flex-shrink: 0;
}

/* CHECKED STATE */
.radio-item input:checked + .radio-dot {
  border-color: #ff2d2d;
}

.radio-item input:checked + .radio-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #ff2d2d;
  border-radius: 50%;
}

/* TEXT */
.radio-text {
  font-size: 14px;
}

.date-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-filter input[type="date"] {
  min-height: 36px; /* better mobile tap */
}

/* ===============================
   DESKTOP BEHAVIOR
================================ */
@media (min-width: 769px) {
  .pc-filters {
    flex-wrap: nowrap; /* 🔑 keeps everything horizontal */
  }
}

/* ===============================
   MOBILE BEHAVIOR
================================ */
@media (max-width: 768px) {

  /* keep filters stacked */
  .pc-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  /* 🔥 RADIO GROUP HORIZONTAL */
  .radio-filter {
    display: flex;
    flex-direction: row;        /* ← FORCE HORIZONTAL */
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }

  .radio-item {
    flex: 1;                    /* equal width */
    justify-content: center;
    min-height: 48px;
    gap: 6px;
  }

  .radio-dot {
    width: 22px;
    height: 22px;
  }

  .radio-text {
    font-size: 15px;
    white-space: nowrap;
  }

  /* 🔥 DATE GROUP HORIZONTAL */
  .date-filter {
    display: flex;
    flex-direction: row;        /* ← FORCE HORIZONTAL */
    justify-content: space-between;
    align-items: center;
    gap: 3px;
  }

  .pc-filters input,
  .pc-filters select,
  .btn-search {
    width: 100%;
  }
}

/* ===============================
   SMALL MOBILE (≤ 480px)
================================ */
@media (max-width: 480px) {

  /* ===============================
     FILTER CONTAINER
  =============================== */
  .pc-filters {
    gap: 10px;
    padding: 6px 0;
  }

  /* ===============================
     RADIO GROUP
  =============================== */
  .radio-filter {
    display: flex;
    gap: 8px;
  }

  .radio-item {
    flex: 1;
    min-height: 42px;
    gap: 6px;
    padding: 6px 4px;
  }

  .radio-dot {
    width: 18px;
    height: 18px;
  }

  .radio-text {
    font-size: 14px;
  }

  /* ===============================
     DATE RANGE
  =============================== */
  .date-filter {
    display: flex;
    gap: 8px;
  }

  .date-filter input {
    width: 100%;
    min-width: 0;
    font-size: 14px;
    height: 40px;
    padding: 8px;
  }

  /* ===============================
     INPUTS / SELECT
  =============================== */
  .pc-filters input,
  .pc-filters select {
    font-size: 14px;
    height: 40px;
    padding: 8px 10px;
  }

  /* ===============================
     SEARCH BUTTON
  =============================== */
  .btn-search {
    height: 44px;
    font-size: 15px;
    border-radius: 22px;
  }

  /* ===============================
     TABLE
  =============================== */
  .pc-table thead th,
  .pc-table td {
    font-size: 14px;
    padding: 8px 6px;
  }

  /* ===============================
     FOOTER / PAGINATION
  =============================== */
  .pc-footer {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    text-align: center;
  }

  .pc-pagination {
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .pc-page {
    padding: 6px 10px;
    font-size: 13px;
  }

  .page-jump {
    font-size: 13px;
  }

  .page-jump input {
    width: 60px;
    height: 34px;
    font-size: 13px;
  }

  .pc-decimal-toggle {
    font-size: 13px;
  }
}

/* ===============================
   EXTRA SMALL MOBILE (≤ 320px)
================================ */
@media (max-width: 320px) {

  /* ===============================
     FILTER CONTAINER
  =============================== */
  .pc-filters {
    gap: 6px;
    padding: 4px 0;
  }

  /* ===============================
     RADIO GROUP (Today / Yesterday / 7 Days)
  =============================== */
  .radio-filter {
    display: flex;
    gap: 3px;
  }

  .radio-item {
    flex: 1;
    padding: 4px 0;
    gap: 4px;
    min-height: 36px;
  }

  .radio-dot {
    width: 16px;
    height: 16px;
  }

  .radio-text {
    font-size: 12px;
  }

  /* ===============================
     DATE RANGE
  =============================== */
  .date-filter {
    display: flex;
    gap: 3px;
    width: 96%;
  }

  .date-filter input {
    width: 100%;
    min-width: 0;          /* 🔑 prevent overflow */
    font-size: 12px;
    padding: 4px;
    height: 30px;

  }

  /* ===============================
     INPUTS / SELECT / BUTTON
  =============================== */
  .pc-filters input,
  .pc-filters select {
    font-size: 12px;
    height: 36px;
    padding: 6px 8px;
  }

  .btn-search {
    height: 40px;
    font-size: 14px;
    border-radius: 20px;
  }

  /* ===============================
     TABLE
  =============================== */
  .pc-table thead th,
  .pc-table td {
    font-size: 12px;
    padding: 6px 4px;
  }

  /* ===============================
     FOOTER / PAGINATION
  =============================== */
  .pc-footer {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    text-align: center;
  }

  .pc-pagination {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pc-page {
    padding: 4px 8px;
    font-size: 12px;
  }

  .page-jump {
    font-size: 12px;
  }

  .page-jump input {
    width: 50px;
    height: 32px;
    font-size: 12px;
  }

  .pc-decimal-toggle {
    font-size: 12px;
  }
}

.pc-open-btn {
  margin:40px;
  padding:12px 28px;
  background:#ff2d2d;
  color:#fff;
  border:none;
  border-radius:30px;
}

/* ================== OVERLAY ================== */
.pc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* ================== MODAL ================== */
.pc-modal {
  width: 85%;
  height: 88vh;              /* ✅ FIX: use viewport height */
  background: #fcfafe;
  border-radius: 14px;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* ================== CLOSE ================== */
.pc-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
}
@media (max-width: 768px) {
  .pc-close {
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
}
@media (max-width: 480px) {
  .pc-close {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}
@media (max-width: 320px) {
  .pc-close {
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

/* ================== SIDEBAR ================== */
.pc-sidebar {
  width: 240px;
  background: #1e2534;
  color: #fff;
  padding: 0;
}

.pc-sidebar h2 {
  margin: 20px 20px 40px;
  line-height: 1.2;
}

.pc-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pc-sidebar li {
  padding: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;

  /* 🔧 FIX */
  justify-content: flex-start;
  gap: 12px; /* adjust spacing between text & svg */
}

.pc-sidebar li.active,
.pc-sidebar li:hover {
  background: rgba(255,255,255,.12);
  margin: 0;
}

.pc-sidebar svg{
  width:20px;
  height:20px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  flex-shrink: 0; /* prevents icon from shrinking */
  color: #ffffff;
}

.badge {
  background: red;
  color: #fff;
  font-size: 12px;
  border-radius: 12px;
  padding: 2px 7px;
}

/* ================== CONTENT ================== */
.pc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.pc-header {
  padding: 0 20px 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid #eee;
  /* keeps header visible if table scrolls */
  position: relative;
  z-index: 2;
  margin-bottom: -10px;
}
.pc-content {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;              /* ✅ IMPORTANT */
}

/* ===============================
   PC CONTENT TITLE (MOBILE ONLY)
================================ */
/* hide by default (desktop) */
.pc-content-title {
  display: none; /* toggle via JS or media query */
  font-size: 18px;
  font-weight: 600;
  margin: 0 1px 12px 0;
  color: #222;
  letter-spacing: 0.3px;
  line-height: 1.3;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 6px;
}

/* show on mobile */
@media (max-width: 768px) {
  .pc-content-title {
    display: block;
    font-size: 16px;
    margin: 0 12px 8px 12px;
    border-left-width: 3px;
  }
}

/* ================== TABS ================== */
.pc-tabs {
  display: flex;
  gap: 25px;
  border-bottom: 2px solid #ddd;
}

.pc-tabs button {
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 15px;
  cursor: pointer;
}

.pc-tabs button.active {
  color: #ff2d2d;
  border-bottom: 3px solid #ff2d2d;
}

/* ================== FILTERS ================== */
.pc-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.pc-filters label {
  font-size: 14px;
}

.pc-filters input[type="date"] {
  padding: 6px;
}

.pc-filters select {
  width: inherit;
  padding: 10px;
  border: 1px solid #ddd;
}
.pc-filters input {
  width: inherit;
  padding: 10px;
  border: 1px solid #ddd;
}

/* =========================
   FILTERS & FORMS MOBILE
========================= */
@media (max-width: 768px) {
  .pc-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pc-filters label {
    width: 100%;
  }

  .pc-filters input,
  .pc-filters select,
  .btn-search {
    width: 100%;
  }
}

.btn-search {
  background: #ff2d2d;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
}

/* ================== FOOTER ================== */
.pc-footer {
  flex-shrink: 0;
  background: #f5f5f5;
  padding: 10px 16px;
  position: sticky;
  bottom: 0;
  border-top: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 5;
  flex-wrap: wrap;
}

/* ================== PAGINATION BAR ================== */
.pc-pagination-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* PAGINATION */
.pc-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* PAGE BUTTON */
.pc-page {
  padding: 4px 10px;
  border-radius: 6px;
  background: #ddd;
  cursor: pointer;
  user-select: none;
}

.pc-page.active {
  background: #999;
  color: #fff;
}

/* PAGE JUMP */
.page-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.page-jump input {
  width: 60px;
  height: 32px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.page-jump button {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  border: none;
  background: #ddd;
  cursor: pointer;
}

/* HIDE EMPTY PAGINATION */
#pagingControls:empty {
  display: none;
}

/* DECIMAL */
.pc-decimal-toggle {
  font-size: 14px;
  white-space: nowrap;
}

/* ================== MOBILE ================== */
@media (max-width: 600px) {
  .pc-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pc-pagination-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .pc-pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-jump {
    justify-content: center;
  }

  .pc-decimal-toggle {
    text-align: center;
  }
}

.pc-loading{
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.7);
  display:none;
  align-items:center;
  justify-content:center;
}

.pc-spinner{
  width:40px;
  height:40px;
  border:4px solid #ddd;
  border-top:4px solid #ff2d2d;
  border-radius:50%;
  animation:spin .9s linear infinite;
}
@keyframes spin{
  to{
    transform:rotate(360deg)
  }
}

/* ================== MOBILE ================== */
@media(max-width: 768px){
  .pc-sidebar { display: none; }
  .pc-modal { width: 100%; height: 100%; border-radius: 0; }
}

/* --------------------------------------- My Account Card --------------------------------*/
/* =========================================================
   LAYOUT
========================================================= */
.account-main {
  flex: 1;
  padding: 12px 24px;
  display: flex;
  gap: 20px;
}

/* =========================================================
   CARD
========================================================= */
.account-card {
  width: 360px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0,0,0,.08);
}

/* =========================================================
   HEADER
========================================================= */
.account-card-header {
  position: relative;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg,#f7efe7,#fff7ef);
}

.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.account-user-info h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

.account-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg,#a1a1a1,#7f7f7f);
  color: #fff;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 16px;
}

.account-joined {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
}

.account-joined svg {
  width: 14px;
  height: 14px;
  stroke: #aaa;
  fill: none;
  stroke-width: 2;
}

.account-header-watermark {
  position: absolute;
  right: 14px;
  top: 8px;
  width: 70px;
  height: 70px;
  opacity: .12;
  background: radial-gradient(circle,#d6b18a 30%,transparent 31%);
}

/* =========================================================
   BODY
========================================================= */
.account-card-body {
  padding: 18px;
  position: relative;
}

.account-username {
  font-size: 13px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-info-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d1d1d1;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* BALANCE */
.account-balance {
  font-size: 34px;
  font-weight: 700;
  margin: 8px 0 18px;
  color: #222;
  letter-spacing: .4px;
}

.account-balance small {
  font-size: 16px;
  color: #555;
}

/* ACTION ICONS */
.account-action-icons {
  position: absolute;
  right: 18px;
  top: 18px;
  display: flex;
  gap: 12px;
  font-size: 18px;
  color: #aaa;
}

/* =========================================================
   STATUS ROWS
========================================================= */
.account-status-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fafafa;
  margin-bottom: 12px;
}

.account-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-width: 2;
}

.account-icon.blue svg { stroke: #198ce0; }
.account-icon.orange svg { stroke: #e79930; }
.account-icon.red svg { stroke: #e75353; }

.account-icon.blue { background: #e7f2fb; }
.account-icon.orange { background: #f7efe2; }
.account-icon.red { background: #fdecec; }

.account-status-row p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

.account-status-row span {
  font-size: 12px;
  color: #999;
}

/* =========================================================
   DIVIDER & LOGIN INFO
========================================================= */
.account-divider {
  height: 1px;
  background: linear-gradient(to right,transparent,#eee,transparent);
  margin: 18px 0;
}

.account-login-info p {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.account-login-info span {
  display: block;
  margin-top: 4px;
  color: #aaa;
  word-break: break-all;
}

/* =========================================================
   📱 TABLET — 768px
========================================================= */
@media (max-width: 768px) {
  .account-main {
    padding: 10px 16px;
  }

  .account-card {
    width: 100%;
    max-width: 420px;
  }

  .account-balance {
    font-size: 30px;
  }
}

/* =========================================================
   📱 MOBILE — 480px
========================================================= */
@media (max-width: 480px) {
  .account-main {
    flex-direction: column;
    padding: 8px 12px;
    gap: 14px;
  }

  .account-card {
    width: 100%;
    border-radius: 18px;
  }

  .account-card-header {
    padding: 14px;
  }

  .account-avatar {
    width: 48px;
    height: 48px;
  }

  .account-user-info h3 {
    font-size: 16px;
  }

  .account-card-body {
    padding: 14px;
  }

  .account-balance {
    font-size: 28px;
  }

  .account-action-icons {
    position: static;
    justify-content: flex-end;
    margin-top: 8px;
  }

  .account-status-row {
    padding: 10px;
  }
}

/* =========================================================
   📱 SMALL MOBILE — 320px
========================================================= */
@media (max-width: 320px) {
  .account-main {
    padding: 6px 10px;
  }

  .account-card {
    border-radius: 16px;
  }

  .account-avatar {
    width: 42px;
    height: 42px;
  }

  .account-user-info h3 {
    font-size: 15px;
  }

  .account-balance {
    font-size: 24px;
  }

  .account-status-row {
    gap: 8px;
  }

  .account-icon {
    width: 34px;
    height: 34px;
  }

  .account-login-info p {
    font-size: 11px;
  }
}

/* SECURITY */
.security-card {
  width: 360px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg,#3e3c7c,#4f90e3);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

/* TOP SECTION */
.security-top {
  position: relative;
  height: 440px;
  color: #fff;
  text-align: center;
  padding-top: 60px;
}

/* GLOW RINGS */
.security-glow-ring {
  position: absolute;
  inset: 0;
  background:
          radial-gradient(circle at center,
          rgba(255,255,255,.35) 0%,
          rgba(255,255,255,.15) 35%,
          rgba(255,255,255,.08) 50%,
          rgba(255,255,255,0) 65%);
  opacity: .7;
}

/* CENTER CIRCLE */
.security-center-circle {
  position: relative;
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: 50%;
  margin: 0 auto;
  color: #2f6fd8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow:
          0 0 0 20px rgba(255,255,255,.06),
          0 0 0 40px rgba(255,255,255,.04);
}

.security-center-circle h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 500;
}

.security-center-circle p {
  margin-top: 6px;
  font-size: 18px;
}

/* SCORE TEXT */
.security-score-text {
  margin-top: 24px;
}

.security-score-text p {
  margin: 6px 0;
  font-size: 16px;
}

.security-score-text .security-score {
  font-size: 18px;
}

/* BOTTOM */
.security-bottom {
  background: linear-gradient(180deg,#a7dcf8,#eaf7ff);
  padding: 22px 20px 26px;
  text-align: center;
}

.security-bottom h4 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
  color: #666;
}

/* ICONS */
.security-recommend-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.security-recommend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #666;
}

.security-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.security-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.security-icon.blue {
  background: linear-gradient(135deg,#3aa0ff,#2979ff);
}

.security-icon.yellow {
  background: linear-gradient(135deg,#ffc400,#ff9800);
}

@media (max-width: 768px) {

  .security-card {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
  }

  .security-top {
    height: 400px;
    padding-top: 50px;
  }

  .security-center-circle {
    width: 200px;
    height: 200px;
    box-shadow:
            0 0 0 16px rgba(255,255,255,.06),
            0 0 0 32px rgba(255,255,255,.04);
  }

  .security-center-circle h1 {
    font-size: 56px;
  }

  .security-center-circle p {
    font-size: 16px;
  }

  .security-score-text p {
    font-size: 15px;
  }

  .security-score-text .security-score {
    font-size: 17px;
  }

  .security-recommend-icons {
    gap: 32px;
  }
}
@media (max-width: 480px) {

  .security-card {
    width: 100%;
    border-radius: 16px;
  }

  .security-top {
    height: 340px;
    padding-top: 40px;
  }

  .security-center-circle {
    width: 170px;
    height: 170px;
    box-shadow:
            0 0 0 12px rgba(255,255,255,.06),
            0 0 0 26px rgba(255,255,255,.04);
  }

  .security-center-circle h1 {
    font-size: 44px;
  }

  .security-center-circle p {
    font-size: 14px;
  }

  .security-score-text {
    margin-top: 18px;
  }

  .security-score-text p {
    font-size: 14px;
  }

  .security-score-text .security-score {
    font-size: 16px;
  }

  .security-bottom {
    padding: 18px 14px 22px;
  }

  .security-bottom h4 {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .security-recommend-icons {
    gap: 24px;
  }

  .security-icon {
    width: 48px;
    height: 48px;
  }

  .security-icon svg {
    width: 22px;
    height: 22px;
  }

  .security-recommend-item {
    font-size: 13px;
    gap: 8px;
  }
}
@media (max-width: 320px) {

  .security-card {
    border-radius: 14px;
  }

  .security-top {
    height: 300px;
    padding-top: 32px;
  }

  .security-center-circle {
    width: 140px;
    height: 140px;
    box-shadow:
            0 0 0 10px rgba(255,255,255,.06),
            0 0 0 20px rgba(255,255,255,.04);
  }

  .security-center-circle h1 {
    font-size: 36px;
  }

  .security-center-circle p {
    font-size: 13px;
  }

  .security-score-text {
    margin-top: 14px;
  }

  .security-score-text p {
    font-size: 13px;
  }

  .security-score-text .security-score {
    font-size: 15px;
  }

  .security-bottom h4 {
    font-size: 15px;
  }

  .security-recommend-icons {
    gap: 18px;
  }

  .security-icon {
    width: 42px;
    height: 42px;
  }

  .security-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* CHECKLIST */
.checklist {
  width: 360px;
  max-height: 640px;        /* required so overflow can happen */
  overflow-y: hidden;      /* hidden by default */
  overflow-x: hidden;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 9, 9, 0.8) transparent;
}
@media (max-width: 768px) {
  .checklist {
    width: 100%;
    max-width: 100%;
    margin-left: -20px;
  }
}
/* Show scrollbar when mouse is over */
.checklist:hover {
  overflow-y: auto;
}
/* ========================= */
/* WebKit Scrollbar Styling */
/* ========================= */
.checklist::-webkit-scrollbar {
  width: 6px;
}

.checklist::-webkit-scrollbar-track {
  background: transparent;
}

.checklist::-webkit-scrollbar-thumb {
  background: linear-gradient(
          180deg,
          #5d5353,
          #030302
  );
  border-radius: 999px;
}

/* Hover effect on scrollbar */
.checklist::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
          180deg,
          #5d5353,
          #030302
  );
}

.security-panel {
  position: relative;
  width: 360px;
  background: none;
  border-radius: 20px;
  padding: 7px 26px 10px 26px;
}

.panel-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  font-size: 18px;
  cursor: pointer;
}

.sec-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.sec-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.sec-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

/* ICON COLORS */
.sec-icon.blue { background: linear-gradient(135deg,#3aa0ff,#2979ff); }
.sec-icon.pink { background: linear-gradient(135deg,#ff4ecd,#ff2f92); }
.sec-icon.yellow { background: linear-gradient(135deg,#ffc400,#ff9800); }
.sec-icon.green { background: linear-gradient(135deg,#0bcbd0,#06bdc8); }
.sec-icon.gold { background: linear-gradient(135deg,#d6c38b,#b59b5c); }
.sec-icon.gray { background: #cfcfcf; }
.sec-icon.logout { background: linear-gradient(135deg,#ff8a65,#ff5252); }

.sec-text h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-text p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #9a9a9a;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .sec-item {
    gap: 14px;
    margin-bottom: 22px;
  }

  .sec-icon {
    width: 50px;
    height: 50px;
  }

  .sec-icon svg {
    width: 24px;
    height: 24px;
  }

  .sec-text h4 {
    font-size: 15px;
  }

  .sec-text p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .sec-item {
    gap: 12px;
    margin-bottom: 18px;
  }

  .sec-icon {
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 12px rgba(0,0,0,.12);
  }

  .sec-icon svg {
    width: 22px;
    height: 22px;
  }

  .sec-text h4 {
    font-size: 14px;
  }

  .sec-text p {
    font-size: 12px;
    line-height: 1.35;
  }
}

@media (max-width: 320px) {
  .sec-item {
    gap: 8px;
    margin-bottom: 14px;
  }

  .sec-icon {
    width: 38px;
    height: 38px;
    box-shadow: 0 4px 8px rgba(0,0,0,.12);
  }

  .sec-icon svg {
    width: 20px;
    height: 20px;
  }

  .sec-text h4 {
    font-size: 13px;
  }

  .sec-text p {
    font-size: 11px;
  }
}

/* STATUS */
.sec-status {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.sec-status.success { background: #22c55e; }
.sec-status.danger { background: #ef4444; }

/* LOGOUT */
.sec-item.logout h4 {
  color: #ff6b6b;
}

.drawer-hidden {
  display: none;
}

/* Drawer base */
.drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  height: 100vh;
  background: #fff;
  border-radius: 20px 0 0 20px;
  box-shadow: -20px 0 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  transition: right .35s ease;
  z-index: 999;
}

.drawer.open {
  right: 0;
}
/* Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 998;
}

.drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* HEADER */
.drawer-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid #eee;
}

.drawer-indicator {
  width: 4px;
  height: 18px;
  background: #22c55e;
  border-radius: 4px;
}

.drawer-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
  flex: 1;
}

.drawer-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #e5e5e5;
  color: #333;
  font-size: 16px;
  cursor: pointer;
}

/* BODY */
.drawer-body {
  padding: 26px 24px;
  flex: 1;
  overflow-y: auto;
}

/* PROFILE */
.drawer-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

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

.drawer-username {
  font-size: 16px;
  color: #666;
}

/* FORM */
.drawer-form .form-row {
  margin-bottom: 20px;
}

.drawer-form label {
  display: block;
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
}

.drawer-form input,select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: #f3f3f3;
  font-size: 14px;
  color: #555;
}

.drawer-form input:disabled {
  color: #aaa;
}

/* FOOTER */
.drawer-footer {
  padding: 18px 24px 26px;
}

.drawer-submit {
  width: 100%;
  padding: 14px;
  border-radius: 28px;
  border: none;
  background: #ff3b3b;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 480px) {
  .drawer {
    width: 100%;
    right: -100%;
    border-radius: 0;
  }
}

/* ========================== Deposit Page ========================== */
.deposit-wrapper {
  display: flex;
  height: 80vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

/* ================= SIDEBAR ================= */
.payment-sidebar {
  width: 260px;
  background: #f7f7f7;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ================= PAYMENT ITEM ================= */
.payment-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  transition: all 0.2s ease;
}

.payment-item img {
  width: 70px;
  height: auto;
}

/* Active state */
.payment-item.active {
  border-color: #ff3b3b;
}

/* Checkmark */
.payment-item.active::after {
  content: "✓";
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: #ff3b3b;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= CONTENT ================= */
.deposit-content {
  flex: 1;
  padding: 0 30px 24px 30px;
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */
.deposit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb; /* light gray divider */
  margin-bottom: 20px;
}

.deposit-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #000000;
}

@media (max-width: 768px) {
  .deposit-title {
    display: none !important;
  }
}

.green-bar {
  width: 4px;
  height: 18px;
  background: #22c55e;
  border-radius: 4px;
}

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

.outline-btn {
  padding: 8px 14px;
  border-radius: 18px;
  border: 2px solid #c7d2fe;
  background: #fff;
  color: #3b82f6;
  cursor: pointer;
}

/* ================= PROVIDER ================= */
.provider-box {
  color: #000000;
  margin: 0 0 20px 0;
  padding: 14px;
  border: 2px solid #ffb4b4;
  border-radius: 10px;
  width: fit-content;
}

/* ================= AMOUNTS ================= */
.amount-section label {
  display: block;
  margin-bottom: 12px;
}

.amount-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.amount-buttons button {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #ffb4b4;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.amount-buttons button.active {
  background: #ff3b3b;
  color: #fff;
  border-color: #ff3b3b;
}

.amount-section input {
  width: 260px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f1f1f1;
  margin-bottom: 14px;
}

/* ================= INFO ================= */
.deposit-info .limit {
  color: red;
}

.deposit-info .warning {
  color: red;
  font-weight: 600;
}

/* ================= FOOTER ================= */
.deposit-footer {
  margin-top: auto;
}

.deposit-btn {
  background: #ff3b3b;
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .deposit-wrapper {
    border-radius: 0;
  }
}

/* ========================== Withdraw Page ===========================*/
.withdraw-modal-wrapper {
  background: #fff;
  overflow: hidden;
  margin: -15px auto auto -10px;
}

/* HEADER */
.withdraw-header {
  display: flex;
  align-items: center;
  padding: 5px 0 5px 0;
  border-bottom: 1px solid #eee;
  gap: 20px;
}

.withdraw-tabs {
  display: flex;
  gap: 30px;
  padding: 10px;
}

.withdraw-tab {
  font-size: 16px;
  color: #777;
  padding-bottom: 8px;
  cursor: pointer;
}

.withdraw-tab.active {
  color: red;
  border-bottom: 2px solid red;
}

.withdraw-guide-btn {
  margin-left: auto;
  border: 2px solid #cfd8ff;
  background: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  color: #4c6fff;
  cursor: pointer;
  margin-right: 30px;
}

/* TAB CONTENT */
.withdraw-tab-content {
  display: none;
}

.withdraw-tab-content.active {
  display: block;
}

/* BODY GRID */
.withdraw-body {
  display: grid;
  grid-template-columns: 1fr 1fr 360px;
  gap: 24px;
}

/* LEFT */
.withdraw-left {
  padding: 24px;
  min-width: 450px;
}

.method-tabs {
  display: flex;
  gap: 16px;
  align-items: center;
}

.withdraw-method {
  padding: 12px 18px;
  border-radius: 12px;
  background: #f3f3f3;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
}

.withdraw-method.active {
  border: 2px solid red;
  background: #fff;
}

.withdraw-method.edit {
  background: #33d940;
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  justify-content: center;
}
.withdraw-wallet-content {
  display: none;
}
.withdraw-wallet-content.active {
  display: block;
}

/* WALLET */
.withdraw-wallet-card {
  margin-top: 24px;
  width: 420px;
  max-width: 100%;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg,#7c6cff,#00d2d3);
  color: #fff;
}

.withdraw-main-wallet-logo {
  font-size: 22px;
  font-weight: 700;
}

.withdraw-main-wallet-number {
  margin-top: 20px;
  font-size: 20px;
}

.withdraw-main-wallet-date {
  margin-top: 10px;
  font-size: 14px;
}

.withdraw-balance {
  font-size: 18px;
  color: #666;
  margin: 20px 0;
}

.withdraw-balance b {
  color: #00a3ff;
}

/* CENTER */
.withdraw-center {
  max-width: 300px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.withdraw-info-box {
  background: #fff1e6;
  border-radius: 16px;
  padding: 20px;
  width: 420px;
  max-width: 100%;
}

.withdraw-info-title {
  background: #ffe1c4;
  padding: 6px 12px;
  border-radius: 12px;
  color: #ff6a00;
  font-weight: 600;
  margin-bottom: 10px;
}

.withdraw-green { color: #1bbf3a; }
.withdraw-pink { color: #c937c7; }
.withdraw-blue { color: #007aff; }
.withdraw-red { color: red; }
.withdraw-orange { color: #ff9800; }

.withdraw-turnover {
  width: 420px;
  max-width: 100%;
}

.withdraw-warning {
  color: #ff3b3b;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {

  .withdraw-body {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .withdraw-left {
    min-width: auto;
    padding: 20px;
  }

  .withdraw-center {
    max-width: 100%;
    padding: 20px 0;
  }

  .withdraw-info-box,
  .withdraw-turnover {
    width: 100%;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  /* Wrapper */
  .withdraw-modal-wrapper {
    margin: 0;
    border-radius: 0;
  }

  /* Header */
  .withdraw-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }

  .withdraw-tabs {
    width: 100%;
    overflow-x: auto;
    gap: 20px;
    padding: 6px 0;
    scrollbar-width: none;
  }

  .withdraw-tabs::-webkit-scrollbar {
    display: none;
  }

  .withdraw-tab {
    white-space: nowrap;
    font-size: 14px;
  }

  .withdraw-guide-btn {
    margin-left: 0;
    margin-right: 0;
    align-self: flex-end;
  }

  /* Body layout */
  .withdraw-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Left */
  .withdraw-left {
    padding: 16px;
  }

  .method-tabs {
    overflow-x: auto;
    gap: 12px;
    scrollbar-width: none;
  }

  .method-tabs::-webkit-scrollbar {
    display: none;
  }

  .withdraw-method {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 14px;
  }

  /* Wallet card */
  .withdraw-wallet-card {
    width: 100%;
    padding: 20px;
    border-radius: 14px;
  }

  .withdraw-main-wallet-number {
    font-size: 18px;
  }

  /* Center */
  .withdraw-center {
    max-width: 100%;
    padding: 0 16px 16px;
  }

  .withdraw-info-box,
  .withdraw-turnover {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
  }

  /* Text spacing */
  .withdraw-balance {
    font-size: 16px;
    margin: 16px 0;
  }
}

/* ================= SMALL PHONES ================= */
@media (max-width: 480px) {

  .withdraw-tab {
    font-size: 13px;
  }

  .withdraw-method {
    font-size: 13px;
  }

  .withdraw-main-wallet-logo {
    font-size: 18px;
  }
}


/* ================== PC TABLE ================== */
/* responsive container handles scrolling */
.table-responsive,
.table-scroll {
  flex: 1;
  min-height: 0;          /* 🔑 CRITICAL */
  width: 100%;
  overflow-y: auto;       /* ✅ vertical scroll HERE */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #f3f3f3;
}

/* ================== TABLE ================== */
.pc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.pc-table thead th {
  padding: 15px 10px 10px;
  background: #fafafa;
  border: 1px solid #eee;
  text-align: center;
  position: sticky;       /* OPTIONAL but nice */
  top: 0;
  z-index: 1;
}

.pc-table td {
  padding: 10px;
  background: #f3f3f3;
  border: 1px solid #eee;
  text-align: center;
}

/* ================== EMPTY STATE ================== */

.pc-table .no-data-cell {
  text-align: center;
  color: #999;
  font-size: 16px;
}

/* REMOVE the huge padding */
.pc-table .no-data-cell > div {
  padding: 60px 0;        /* 👈 not 190px */
}

/* ===============================
   TABLET TABLE HEADER FIX
================================ */
@media (max-width: 1024px) {
  .pc-table .no-data-cell {
    font-size: 15px;
  }

  .pc-table .no-data-cell > div {
    padding: 40px 0;
  }
}

/* ===============================
   MOBILE TABLE HEADER FIX
================================ */
@media (max-width: 768px) {

  /* RE-SHOW TABLE HEADER */
  .pc-table thead {
    display: table-header-group !important;
  }

  /* STICKY HEADER */
  .pc-table thead th {
    position: sticky;
    top: 0;
    background: #fafafa;
    z-index: 2;
    font-size: 13px;
    white-space: nowrap;
  }

  /* ENSURE TABLE CAN SCROLL */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pc-table {
    min-width: 720px;
  }
  .pc-table .no-data-cell {
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
  }

  .pc-table .no-data-cell > div {
    margin-left: 100px;
    padding: 24px 12px;
  }
}

/* small mobile */
@media (max-width: 480px) {
  .pc-table .no-data-cell {
    text-align: left;
    font-size: 13px;
  }

  .pc-table .no-data-cell > div {
    margin-left: 100px;
    padding: 24px;
  }
}

/* RIGHT */
.withdraw-right {
  background: #fafafa;
  padding: 24px;
  border-left: 1px solid #eee;
}

.withdraw-empty-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: #aaa;
  margin: 20px 0;
}

.withdraw-more-btn {
  width: 100%;
  padding: 12px;
  border-radius: 20px;
  border: none;
  background: #eee;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .withdraw-body {
    grid-template-columns: 1fr;
  }

  .withdraw-right {
    border-left: none;
    border-top: 1px solid #eee;
  }
}

/* ACCOUNT MANAGEMENT */
.withdraw-account-body {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  padding: 40px;
}

.withdraw-account-method-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.withdraw-account-method {
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  color: #999;
}

.withdraw-account-method.active {
  border-color: red;
  color: red;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {
  .withdraw-account-method-tabs {
    flex-wrap: wrap;
    gap: 12px;
  }

  .withdraw-account-method {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .withdraw-account-method-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .withdraw-account-method-tabs::-webkit-scrollbar {
    display: none;
  }

  .withdraw-account-method {
    white-space: nowrap;
    padding: 12px 12px;
    font-size: 14px;
    border-radius: 12px;
  }
}

/* ================= SMALL PHONES ================= */
@media (max-width: 480px) {
  .withdraw-account-method {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* FORM */
.withdraw-account-form {
  max-width: 480px;
}

.withdraw-form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  margin-bottom: 22px;
}

.withdraw-form-row label {
  color: #666;
}

.withdraw-form-row input,
.withdraw-form-row select {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #f9f9f9;
}

.withdraw-wallet-type-box {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
}

.withdraw-wallet-type-box label {
  display: block;
  margin-bottom: 12px;
  color: #666;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {
  .withdraw-account-form {
    max-width: 100%;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .withdraw-account-form {
    max-width: 90%;
  }

  .withdraw-form-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }

  .withdraw-form-row label {
    font-size: 14px;
  }

  .withdraw-form-row input,
  .withdraw-form-row select {
    padding: 12px;
    font-size: 14px;
    border-radius: 12px;
  }

  .withdraw-wallet-type-box {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 18px;
  }

  .withdraw-wallet-type-box label {
    font-size: 14px;
    margin-bottom: 10px;
  }
}

/* ================= SMALL PHONES ================= */
@media (max-width: 480px) {
  .withdraw-form-row input,
  .withdraw-form-row select {
    padding: 10px;
    font-size: 13px;
  }
}

.withdraw-wallet-type {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  margin-bottom: 12px;
  font-size: 16px;
  cursor: pointer;
}

.withdraw-wallet-type.active {
  border-color: red;
  background: #fff5f5;
  color: red;
}

.withdraw-password-row {
  position: relative;
}

.withdraw-password-row .withdraw-eye {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
}

/* SUBMIT */
.withdraw-submit-btn {
  margin-top: 30px;
  padding: 16px;
  border-radius: 30px;
  border: none;
  background: #ddd;
  color: #fff;
  width: 200px;
  font-size: 18px;
}

/* RIGHT */
.withdraw-account-right {
  border-left: 1px solid #f0f0f0;
  padding-left: 40px;
}

.withdraw-registered-title {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.withdraw-red-bar {
  width: 4px;
  height: 20px;
  background: red;
}

.withdraw-registered-card {
  background: #fff1dc;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.withdraw-wallet-logo {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: bold;
}

.withdraw-wallet-info {
  flex: 1;
}

.withdraw-wallet-name {
  font-weight: 600;
}

.withdraw-wallet-number {
  color: #666;
}

.withdraw-wallet-date {
  color: #999;
  font-size: 14px;
}

/* MOBILE 768px */
@media (max-width: 768px) {
  .withdraw-form-row,
  .agent-account-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .withdraw-form-row label,
  .agent-account-row label {
    width: 100%;
  }
}


/* MOBILE 1024px */
@media (max-width: 1024px) {
  .withdraw-account-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .withdraw-account-right {
    border-left: none;
    padding-left: 0;
    margin-top: 40px;
  }

  .withdraw-form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
/* ACCOUNT SUB TAB CONTENT */
.withdraw-account-method-content {
  display: none;
}

.withdraw-account-method-content.active {
  display: block;
}

/* ========================== Voucher Page ===========================*/
.rewards-content {
  flex: 1;
  padding: 0 30px;
  position: relative;
}

/* TOP BAR */
.rewards-top-bar {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.rewards-tabs {
  display: flex;
  gap: 20px;
}

.rewards-tabs .active {
  font-weight: 600;
}

.rewards-tabs i {
  background: red;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
}

.rewards-active {
  color: #000000;
}

.rewards-pill {
  background: #f1ebff;
  color: #6a4cff;
  padding: 6px 14px;
  border-radius: 20px;
}
.rewards-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
}

/* BALANCE CARD */
.rewards-balance-card {
  background: linear-gradient(135deg,#2a2aff,#8c2bff);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  height: 280px;
}

.rewards-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rewards-user img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.rewards-refresh {
  margin-left: auto;
}

.rewards-balance {
  text-align: center;
  margin-top: 40px;
}

.rewards-balance h1 {
  font-size: 48px;
  margin: 0;
}

/* VOUCHERS */
.voucher-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.voucher-row {
  display: grid;
  grid-template-columns: 40px 1fr 420px;
  align-items: center;
  background: radial-gradient(circle at left,#fff9b8,#fff);
  padding: 30px;
  border-radius: 18px;
}

.index {
  font-size: 40px;
  color: #999;
}

.voucher-info h3 {
  margin: 0;
}

.voucher-info p {
  color: #888;
}

/* VOUCHER CARD */
.voucher-card {
  display: flex;
  background: linear-gradient(135deg,#ff8c1a,#ffd200);
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
}

.voucher-left {
  padding: 20px;
  flex: 1;
}

.voucher-left span {
  font-size: 14px;
}

.voucher-right {
  background: #fff;
  color: #333;
  padding: 20px;
  width: 140px;
  text-align: center;
  position: relative;
}

.voucher-right h1 {
  margin: 0;
  font-size: 36px;
}

.voucher-right time {
  display: block;
  font-size: 12px;
  color: #999;
}

.voucher-right button {
  margin-top: 10px;
  background: #27c800;
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {

  .rewards-content {
    padding: 0 20px;
  }

  .rewards-layout {
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }

  .voucher-row {
    grid-template-columns: 30px 1fr 360px;
    padding: 24px;
  }

  .voucher-card {
    border-radius: 14px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  /* Content */
  .rewards-content {
    padding: 0 16px;
  }

  /* Top bar */
  .rewards-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rewards-tabs {
    overflow-x: auto;
    gap: 16px;
    width: 100%;
    scrollbar-width: none;
  }

  .rewards-tabs::-webkit-scrollbar {
    display: none;
  }

  .rewards-pill {
    align-self: flex-end;
  }

  /* Layout */
  .rewards-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Balance card */
  .rewards-balance-card {
    height: auto;
  }

  .rewards-balance {
    margin-top: 24px;
  }

  .rewards-balance h1 {
    font-size: 36px;
  }

  /* Voucher list */
  .voucher-list {
    gap: 24px;
  }

  .voucher-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .index {
    font-size: 28px;
  }

  /* Voucher card */
  .voucher-card {
    flex-direction: column;
    border-radius: 14px;
  }

  .voucher-right {
    width: 100%;
    padding: 16px;
  }

  .voucher-right h1 {
    font-size: 28px;
  }

  .voucher-right button {
    width: 100%;
    padding: 10px;
  }
}

/* ================= SMALL PHONES ================= */
@media (max-width: 480px) {

  .rewards-balance h1 {
    font-size: 32px;
  }

  .voucher-left span {
    font-size: 13px;
  }

  .voucher-info p {
    font-size: 13px;
  }

  .voucher-right h1 {
    font-size: 24px;
  }
}


/* ========================== Agent - Announcement Page ===========================*/
.announcement-modal-wrapper {
  background: #fff;
  overflow: hidden;
  margin: -15px auto auto -10px;
}

/* HEADER */
.announcement-header {
  display: flex;
  align-items: center;
  padding: 5px 0 5px 0;
  border-bottom: 1px solid #eee;
  gap: 20px;
}

.announcement-tabs {
  display: flex;
  gap: 30px;
  padding: 10px;
}

.announcement-tab {
  font-size: 16px;
  color: #777;
  padding-bottom: 8px;
  cursor: pointer;
}

.announcement-tab.active {
  color: red;
  border-bottom: 2px solid red;
}

.announcement-tab-content {
  display: none;
}

.announcement-tab-content.active {
  display: block;
}

/* BODY GRID */
.announcement-body {
  gap: 24px;
}

/* ========================== Agent - Overview Page ===========================*/
.overview-modal-wrapper {
  width: auto;
  background: #fff;
  overflow: hidden;
  margin: -15px auto auto -10px;
}

/* HEADER */
.overview-header {
  display: flex;
  align-items: center;
  padding: 5px 0 5px 0;
  border-bottom: 1px solid #eee;
  gap: 20px;
}

.overview-tabs {
  display: flex;
  gap: 30px;
  padding: 10px;
}

.overview-tab {
  font-size: 16px;
  color: #777;
  padding-bottom: 8px;
  cursor: pointer;
}

.overview-tab.active {
  color: red;
  border-bottom: 2px solid red;
}

.overview-tab-content {
  display: none;
}

.overview-tab-content.active {
  display: block;
}

/* BODY GRID */
.overview-body {
  padding: 5px;
}

/* TABLE */
.overview-table-wrap {
  padding: 10px 20px 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Firefox */
  scrollbar-width: auto;
  scrollbar-color: #9ca3af #e5e7eb;
}
.overview-table-wrap::-webkit-scrollbar {
  height: 14px;               /* 🔥 thickness */
}

.overview-table-wrap::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 12px;
}
.overview-table-wrap::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 12px;
  border: 3px solid #e5e7eb;  /* makes thumb look even thicker */
}
@media (max-width: 768px) {
  .overview-table-wrap::-webkit-scrollbar {
    height: 18px;
  }
}
/* Scroll hint */
@media (max-width: 768px) {
  .overview-table-wrap::before {
    content: "← Scroll to View more Details →";
    position: sticky;
    right: -5px;
    top: 3px;
    float: right;
    font-size: 12px;
    color: #999;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 12px;
    pointer-events: none;
  }
}

.agent-overview {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;              /* prevents squishing */
}
.agent-overview thead th {
  background: #f3f3f3;
  padding: 6px 10px;
  color: #666;
  font-weight: 500;
  border: 1px solid #eee;
  white-space: nowrap;
}

.agent-overview thead th[colspan="2"] {
  text-align: left;
  padding-left: 20px;
}

.agent-overview tbody td {
  background-color: #ffffff;
  padding: 6px 10px;
  border: 1px solid #f0f0f0;
  text-align: center;
  color: #666;
  white-space: nowrap;
}

.agent-overview tbody td:nth-child(2) {
  text-align: left;
  padding-left: 20px;
}

/* Hover whole row */
.agent-overview tbody tr:hover td {
  background: #eef2ff;
}
.agent-overview tbody td {
  transition: background-color 0.15s ease, color 0.15s ease;
}
.agent-overview tbody tr:hover .overview-group {
  background: #f1f5f9;
}

/* GROUP COLUMN */
.overview-group {
  background: #fafafa;
  font-weight: 600;
  color: #444;
  width: 110px;
  vertical-align: middle;
}

.overview-group div {
  margin-top: 6px;
  font-size: 14px;
}
/* P&L Highlight Row */
.overview-pl td {
  background: #f9fafb;
  font-weight: 600;
}
.overview-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;

  background: #ff3b3b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-info:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(255,59,59,0.15);
}
.overview-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;

  background: #ff3b3b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-info:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(255,59,59,0.15);
}

/* Tooltip bubble (BOTTOM) */
.overview-info::after {
  content: attr(data-tip);
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);

  background: #222;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Tooltip arrow (points UP) */
.overview-info::before {
  content: "";
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);

  border: 6px solid transparent;
  border-bottom-color: #222;

  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show tooltip */
.overview-info:hover::after,
.overview-info:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ICONS */
.overview-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.overview-icon.overview-user { background: #8ab8f7; }
.overview-icon.overview-bonus { background: #f2b46d; }
.overview-icon.overview-betting { background: #f08bb4; }
.overview-icon.overview-deposit { background: #8f9bff; }
.overview-icon.overview-withdraw { background: #f48b7a; }

/* COLORS */
.overview-blue { color: #3d6cff; }
.overview-red { color: #ff3b30; }
.overview-green { color: #19b400; }

/* INFO DOT */
.overview-info {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #777;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  margin-right: 6px;
}

/* P&L ROW */
.overview-pl td {
  background: #f3f3f3;
  font-weight: 600;
}

/* ===== CHARTS TAB ===== */
.charts-tab {
  padding: 30px 20px;
}

/* CONTROLS */
.charts-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.left-controls {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* RADIO */
.charts-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: #666;
  cursor: pointer;
}

/* Hide default radio */
.charts-radio input {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  position: relative;
  cursor: pointer;
}

/* Checked state */
.charts-radio input:checked {
  border-color: #ff3b30;
}

.charts-radio input:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #ff3b30;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* INFO ICON */
.charts-info-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffc400;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
}

/* Tooltip bubble */
.charts-info-icon::after {
  content: attr(data-tip);
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);

  background: #222;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Arrow */
.charts-info-icon::before {
  content: "";
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #222;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show */
.charts-info-icon:hover::after,
.charts-info-icon:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* MONTH PICKER */
.charts-month-picker {
  background: #f3f3f3;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 18px;
  color: #555;
  border: none;
  cursor: pointer;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {

  .charts-radio {
    font-size: 16px;
  }

  .charts-month-picker {
    font-size: 16px;
    padding: 8px 14px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .charts-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 16px;
  }

  /* Left controls */
  .left-controls {
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .left-controls::-webkit-scrollbar {
    display: none;
  }

  .charts-radio {
    white-space: nowrap;
    font-size: 14px;
  }

  .charts-radio .charts-dot {
    width: 18px;
    height: 18px;
  }

  .charts-radio.active .charts-dot::after {
    width: 8px;
    height: 8px;
  }

  .charts-info-icon {
    min-width: 20px;
    min-height: 20px;
    font-size: 12px;
  }

  /* Right controls */
  .charts-right-controls {
    display: flex;
    justify-content: flex-end;
  }

  .charts-month-picker {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
  }
}

/* ================= SMALL PHONES ================= */
@media (max-width: 480px) {

  .charts-radio {
    font-size: 13px;
  }

  .charts-month-picker {
    font-size: 13px;
    padding: 6px 10px;
  }
}


/* CHART */
.chart-wrapper {
  height: 420px;
}

/* ========================== Agent - Account Page ===========================*/
.agent-account-modal-wrapper {
  width: auto;
  background: #fff;
  overflow: hidden;
  margin: -15px auto auto -10px;
}

/* HEADER */
.agent-account-header {
  display: flex;
  align-items: center;
  padding: 5px 0 5px 0;
  border-bottom: 1px solid #eee;
  gap: 20px;
}

.agent-account-tabs {
  display: flex;
  gap: 30px;
  padding: 10px;
}

.agent-account-tab {
  font-size: 16px;
  color: #777;
  padding-bottom: 8px;
  cursor: pointer;
}

.agent-account-tab.active {
  color: red;
  border-bottom: 2px solid red;
}

.agent-account-tab-content {
  display: none;
}

.agent-account-tab-content.active {
  display: block;
}

/* BODY GRID */
.agent-account-body {
  padding: 5px;
}

/* FORM */
.agent-account-form {
  margin-top: 40px;
  margin-left: 20px;
  max-width: 520px;
}

.agent-account-row {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.agent-account-row label {
  width: 160px;
  color: #666;
  font-size: 16px;
}

/* INPUT */
.agent-account-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  background: #f3f3f3;
  font-size: 15px;
}

/* RADIOS */
.agent-account-radios {
  display: flex;
  gap: 30px;
}
@media (max-width: 768px) {
  .agent-account-radios {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.agent-account-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 16px;
}

.agent-account-radio span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ddd;
  position: relative;
}

.agent-account-radio.active span {
  border-color: red;
}

.agent-account-radio.active span::after {
  content: "";
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.agent-account-confirm-btn {
  background: #ff3b30;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  float: right;
}
@media (max-width: 768px) {

  .agent-account-modal-wrapper {
    margin: 0 auto;
    padding: 8px;
  }

  /* HEADER */
  .agent-account-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 6px;
  }

  .agent-account-tabs {
    gap: 20px;
    padding: 8px 6px;
  }

  .agent-account-tab {
    font-size: 15px;
  }

  /* BODY */
  .agent-account-body {
    padding: 8px;
  }

  /* FORM */
  .agent-account-form {
    max-width: 100%;
    margin-top: 30px;
    margin-left: 0;
  }

  .agent-account-row label {
    width: 140px;
    font-size: 15px;
  }

  .agent-account-input {
    font-size: 14px;
    padding: 10px 12px;
  }

  .agent-account-confirm-btn {
    padding: 12px 24px;
    font-size: 15px;
  }
}
@media (max-width: 480px) {

  .agent-account-modal-wrapper {
    margin: 0;
    padding: 6px;
  }

  /* HEADER */
  .agent-account-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .agent-account-tabs {
    width: 100%;
    gap: 16px;
    padding: 6px 0;
    justify-content: space-between;
  }

  .agent-account-tab {
    font-size: 14px;
    padding-bottom: 6px;
  }

  /* FORM */
  .agent-account-form {
    margin-top: 24px;
    margin-left: 0;
  }

  .agent-account-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 18px;
  }

  .agent-account-row label {
    width: 100%;
    font-size: 14px;
  }

  .agent-account-input {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  /* RADIOS */
  .agent-account-radios {
    gap: 12px;
  }

  .agent-account-radio {
    font-size: 14px;
    gap: 8px;
  }

  .agent-account-radio span {
    width: 20px;
    height: 20px;
  }

  /* BUTTON */
  .agent-account-confirm-btn {
    width: 100%;
    float: none;
    margin-top: 16px;
    padding: 12px;
    font-size: 15px;
    border-radius: 24px;
  }
}
@media (max-width: 320px) {

  .agent-account-tabs {
    gap: 12px;
  }

  .agent-account-tab {
    font-size: 13px;
  }

  .agent-account-row label {
    font-size: 13px;
  }

  .agent-account-input {
    font-size: 13px;
    padding: 8px 10px;
  }

  .agent-account-radio {
    font-size: 13px;
  }

  .agent-account-radio span {
    width: 18px;
    height: 18px;
  }

  .agent-account-radio.active span::after {
    width: 8px;
    height: 8px;
  }

  .agent-account-confirm-btn {
    font-size: 14px;
    padding: 10px;
  }
}

/* ========================== Agent - Daily Salary Page ===========================*/
/* FILTER */
.salary-filter {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
}

.salary-select {
  padding: 0 14px;
  border-radius: 8px;
  min-width: 160px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* GRID */
.salary-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
}

/* TABLE */
.salary-table {
  background: #fff;
  border-radius: 12px;
}

.salary-table-header {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  background: #fffbdc;
  border-radius: 12px 12px 0 0;
}

.salary-table-header div {
  padding: 14px;
  font-weight: 600;
  text-align: center;
}

.salary-table-row {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  background: #f3f3f3;
}

.salary-table-row div {
  padding: 14px;
}

.salary-center {
  text-align: center;
}

/* RULES */
.salary-rules {
  background: #fffbdc;
  border-radius: 16px;
  padding: 20px;
}

.salary-rules h3 {
  color: red;
  margin-top: 0;
}

.salary-rules ol {
  padding-left: 20px;
  color: #666;
}

.salary-rules li {
  margin-bottom: 16px;
  line-height: 1.6;
}
@media (max-width: 768px) {

  /* FILTER */
  .salary-filter {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
  }

  .salary-select {
    min-width: 140px;
    padding: 0 12px;
  }

  /* GRID */
  .salary-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* TABLE */
  .salary-table-header,
  .salary-table-row {
    grid-template-columns: 1fr 160px 160px;
  }

  .salary-table-header div,
  .salary-table-row div {
    padding: 12px;
    font-size: 14px;
  }

  /* RULES */
  .salary-rules {
    padding: 18px;
  }

  .salary-rules h3 {
    font-size: 17px;
  }
}
@media (max-width: 480px) {

  /* FILTER */
  .salary-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
  }

  .salary-select {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    height: 40px;
  }

  /* GRID */
  .salary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* TABLE → CARD STYLE */
  .salary-table-header {
    display: none;
  }

  .salary-table-row {
    grid-template-columns: 1fr;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 10px;
    gap: 6px;
  }

  .salary-table-row div {
    padding: 6px 0;
    font-size: 13px;
  }

  .salary-center {
    text-align: left;
    font-weight: 500;
  }

  /* RULES */
  .salary-rules {
    padding: 14px;
  }

  .salary-rules h3 {
    font-size: 16px;
  }

  .salary-rules li {
    font-size: 13px;
    margin-bottom: 12px;
  }
}
@media (max-width: 320px) {

  /* FILTER */
  .salary-filter {
    font-size: 12px;
  }

  .salary-select {
    height: 36px;
    font-size: 12px;
  }

  /* TABLE */
  .salary-table-row {
    padding: 8px;
  }

  .salary-table-row div {
    font-size: 12px;
  }

  /* RULES */
  .salary-rules {
    padding: 12px;
    border-radius: 14px;
  }

  .salary-rules h3 {
    font-size: 15px;
  }

  .salary-rules li {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* ================ Mobile Navigation for Personal Center & Agent Center ============*/
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #1e2534;
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 10000;
  border-top: 1px solid rgba(255,255,255,.08);
}

.mobile-bottom-nav .mb-nav-item {
  background: none;
  border: none;
  color: #aaa;
  font-size: 22px;
}

.mobile-bottom-nav .mb-nav-item.active {
  color: #ff2d2d;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

.mobile-more-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 20px;
  z-index: 9999;
  transition: .3s;
}

.mobile-more-sheet button {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: #f3f3f3;
  margin-bottom: 12px;
}

.mobile-more-sheet.show {
  bottom: 0;
}

@media (max-width: 768px) {
  .pc-modal {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .pc-sidebar {
    display: none;
  }

  .pc-content {
    padding-bottom: 80px;
    overflow-y: auto;
  }
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table-scroll table {
  min-width: 720px;
}

/* ------------------DRAWER → FULL SCREEN MOBILE---------------- */
@media (max-width: 480px) {
  .drawer {
    width: 100%;
    right: -100%;
    border-radius: 0;
  }

  .drawer-body {
    padding-bottom: 80px;
  }
}

.payment-title {
  color: #000000;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {
  .payment-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .payment-item {
    flex: 1 1 calc(33.33% - 12px);
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .payment-item img {
    width: 60px;
  }
}
/* ------------------DEPOSIT PAGE MOBILE UX---------------- */
@media (max-width: 768px) {
  .deposit-wrapper {
    flex-direction: column;
  }

  .payment-sidebar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px;
    gap: 10px;
    margin-bottom: 15px;
    scrollbar-width: thin;      /* Firefox */
    scrollbar-color: #ccc transparent;
  }
  .payment-sidebar::-webkit-scrollbar {
    height: 6px; /* Chrome / Safari */
  }

  .payment-item {
    min-width: 140px;
    flex-direction: column;
    justify-content: center;
    padding: 12px;
    text-align: center;
  }

  .payment-item img {
    width: 50px;
  }

  .payment-item.active::after {
    right: 8px;
    bottom: 8px;
  }
}

@media (max-width: 360px) {
  .payment-title {
    display: none;
  }
}
/* ------------------REWARDS / AGENT GRIDS---------------- */
@media (max-width: 768px) {
  .salary-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- SVG Color Adapt ---------- */
svg[stroke], svg path[stroke] {
  stroke: currentColor !important;
}

/*----------------------- Mobile More ---------------------*/

.mobile-more-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 12px 16px 20px;
  z-index: 9999;
  transition: bottom .3s ease;
}

.mobile-more-sheet.show {
  bottom: 0;
}

/* drag handle */
.sheet-handle {
  width: 42px;
  height: 5px;
  background: #ddd;
  border-radius: 10px;
  margin: 6px auto 14px;
}

/* items */
.mobile-more-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: #f3f3f3;
  margin-bottom: 10px;
  font-size: 16px;
  cursor: pointer;
}

/* icon */
.mobile-more-item .icon {
  font-size: 20px;
}

/* ACTIVE STATE */
.mobile-more-item.active {
  background: #ff2d2d;
  color: #fff;
}

.mobile-more-item.active .icon {
  filter: brightness(1.2);
}
.mobile-more-sheet {
  transition: transform 0.25s ease;
}

.mobile-more-sheet.dragging {
  transition: none;
}

.mobile-more-item svg,
.mobile-more-item svg * {
  stroke: currentColor;
  fill: none;
}