@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   TURBO PLAY - Official Theme (Turbo Gold #FFB300 & Electric Cyan #00E5FF)
   Modern, Sleek, 100% Responsive & Harmonized with APK Interface
   ========================================================================== */

:root {
  /* Dark Cyber Backgrounds */
  --bg-main: #070A0F;
  --bg-surface: #0B0F17;
  --bg-sidebar: #080C14;
  --bg-card: rgba(11, 15, 24, 0.92);
  --bg-card-hover: rgba(16, 22, 35, 0.98);
  --bg-glass: rgba(11, 15, 24, 0.85);
  --bg-glass-modal: rgba(9, 13, 20, 0.98);

  /* Brand Accents - Extracted from TURBO PLAY APK */
  --turbo-gold: #FFB300;
  --turbo-gold-light: #FFC107;
  --turbo-gold-dark: #FF8C00;
  --turbo-gold-glow: rgba(255, 179, 0, 0.45);

  --turbo-cyan: #00E5FF;
  --turbo-cyan-light: #38EFFF;
  --turbo-cyan-dark: #00B0FF;
  --turbo-cyan-glow: rgba(0, 229, 255, 0.45);

  --turbo-danger: #EF4444;
  --turbo-success: #00E676;
  --turbo-warning: #FFB300;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #FFB300 0%, #FF8C00 45%, #00E5FF 100%);
  --grad-gold: linear-gradient(135deg, #FFB300 0%, #FF8C00 100%);
  --grad-cyan: linear-gradient(135deg, #00E5FF 0%, #0088FF 100%);
  --grad-cyan-btn: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
  --grad-card: linear-gradient(180deg, rgba(16, 22, 35, 0.7) 0%, rgba(9, 13, 20, 0.95) 100%);
  --grad-sidebar: linear-gradient(180deg, #0B0F17 0%, #05070B 100%);
  --grad-header: linear-gradient(90deg, #FFFFFF 0%, #FFB300 55%, #00E5FF 100%);

  /* Borders & Shadows */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
  --border-gold: 1px solid rgba(255, 179, 0, 0.35);
  --border-cyan: 1px solid rgba(0, 229, 255, 0.3);
  --border-brand: 1px solid rgba(255, 179, 0, 0.5);

  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 229, 255, 0.08);
  --shadow-card-hover: 0 22px 50px -5px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 229, 255, 0.2);
  --shadow-gold-glow: 0 0 25px rgba(255, 179, 0, 0.5);
  --shadow-cyan-glow: 0 0 25px rgba(0, 229, 255, 0.5);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-body);
  background-color: var(--bg-main) !important;
  color: #E2E8F0;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(0, 229, 255, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 90% 85%, rgba(255, 179, 0, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #F8FAFC;
}

/* Custom Scrollbar Global */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--turbo-cyan);
}

/* App Wrapper */
#wrapper {
  display: flex;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== SIDEBAR ==================== */
#sidebar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  height: 100vh;
  background: var(--grad-sidebar);
  border-right: 1px solid rgba(255, 179, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1030;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  overflow-x: hidden;
}

.turbo-brand-box {
  padding: 22px 18px 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.turbo-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.turbo-brand-logo img {
  max-height: 48px;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 179, 0, 0.35));
  transition: transform 0.3s ease;
}

.turbo-brand-logo:hover img {
  transform: scale(1.04);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--grad-header);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--turbo-cyan);
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.35);
  color: var(--turbo-gold);
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.sidebar-category-header {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  padding: 14px 16px 6px 16px;
}

.turbo-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  margin: 3px 12px;
  border-radius: var(--radius-md);
  color: #94A3B8;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.22s ease;
  position: relative;
  border: 1px solid transparent;
}

.turbo-nav-item i {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  color: #64748B;
  transition: all 0.22s ease;
}

.turbo-nav-item:hover {
  color: #FFFFFF;
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateX(4px);
}

.turbo-nav-item:hover i {
  color: var(--turbo-cyan);
}

.turbo-nav-item.active {
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(255, 179, 0, 0.18) 0%, rgba(0, 229, 255, 0.12) 100%);
  border-color: rgba(255, 179, 0, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), inset 0 0 12px rgba(255, 179, 0, 0.15);
}

.turbo-nav-item.active i {
  color: var(--turbo-gold);
  filter: drop-shadow(0 0 8px rgba(255, 179, 0, 0.6));
}

.turbo-nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--turbo-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 0 10px var(--turbo-gold);
}

.sidebar-footer-box {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  font-size: 0.75rem;
  color: #64748B;
  background: rgba(0, 0, 0, 0.2);
}

/* ==================== CONTENT & TOPBAR ==================== */
#page-content-wrapper {
  margin-left: 240px;
  width: calc(100% - 240px);
  min-width: 0;
  max-width: calc(100% - 240px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#wrapper.toggled #sidebar-wrapper {
  transform: translateX(-240px);
}

#wrapper.toggled #page-content-wrapper {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  box-sizing: border-box !important;
}

.navbar-turbo {
  background: rgba(11, 15, 23, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-turbo-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--turbo-gold);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-turbo-toggle:hover {
  background: rgba(255, 179, 0, 0.15);
  border-color: var(--turbo-gold);
  color: #FFFFFF;
}

.navbar-turbo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #F8FAFC;
}

.pulse-dot-green {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--turbo-success);
  display: inline-block;
  box-shadow: 0 0 10px var(--turbo-success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.nav-pill-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: #F1F5F9;
}

.nav-pill-user i {
  color: var(--turbo-gold);
}

.nav-btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.nav-btn-logout:hover {
  background: var(--turbo-danger);
  color: #FFFFFF;
  border-color: var(--turbo-danger);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* ==================== CARDS & CONTAINERS ==================== */
.turbo-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.turbo-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.turbo-card-header {
  padding: 16px 22px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.turbo-card-header h2, .turbo-card-header h3, .turbo-card-header h4, .turbo-card-header h5 {
  margin: 0;
  font-size: 1.15rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.turbo-card-header i {
  color: var(--turbo-gold);
}

.turbo-card-body {
  padding: 22px;
}

/* Stat Cards (Clients & System) */
.client-stat-card {
  background: #0B0F17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.client-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.client-stat-info h3 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.client-stat-info p {
  margin: 0;
  font-size: 0.74rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ==================== BUTTONS ==================== */
/* Cyan Add Buttons (Primary Action) */
.btn-add-dns,
.btn-turbo-add {
  background: var(--grad-cyan-btn) !important;
  border: none !important;
  color: #FFFFFF !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 0 18px rgba(0, 198, 255, 0.45) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.btn-add-dns:hover,
.btn-turbo-add:hover {
  background: linear-gradient(135deg, #00E5FF 0%, #0088FF 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.75) !important;
  color: #FFFFFF !important;
}

.btn-test-all {
  background: rgba(11, 15, 23, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #F1F5F9;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
}

.btn-test-all:hover {
  border-color: #00E5FF;
  color: #00E5FF;
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
}

.btn-turbo-primary {
  background: var(--grad-gold);
  color: #000000 !important;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.35);
  cursor: pointer;
  text-decoration: none !important;
}

.btn-turbo-primary:hover {
  background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
  box-shadow: var(--shadow-gold-glow);
  transform: translateY(-2px);
  color: #000000 !important;
}

.btn-turbo-outline {
  background: transparent;
  color: var(--turbo-gold) !important;
  border: 1px solid var(--turbo-gold);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.btn-turbo-outline:hover {
  background: rgba(255, 179, 0, 0.15);
  color: #FFFFFF !important;
  border-color: var(--turbo-gold);
  box-shadow: 0 0 14px rgba(255, 179, 0, 0.3);
}

.btn-turbo-danger {
  background: var(--turbo-danger);
  color: #FFFFFF !important;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.btn-turbo-danger:hover {
  background: #DC2626;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

/* ==================== ACTION ICONS (REFERENCE STYLE) ==================== */
.dns-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

.btn-action-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  font-size: 0.78rem !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  position: relative !important;
}

/* Button 1: Solid Cyan Sync / Renew / Test */
.btn-action-icon.sync,
.btn-action-icon.test {
  background: #00E5FF !important;
  border: 1px solid #00E5FF !important;
  color: #06090E !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45) !important;
}
.btn-action-icon.sync:hover,
.btn-action-icon.test:hover {
  background: #33EBFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.8) !important;
  color: #000000 !important;
}

/* Button 2: Dark with Gold Border (Edit) */
.btn-action-icon.edit {
  background: #0C1017 !important;
  border: 1.5px solid #FFB300 !important;
  color: #FFB300 !important;
}
.btn-action-icon.edit:hover {
  background: #FFB300 !important;
  color: #06090E !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 14px rgba(255, 179, 0, 0.55) !important;
}

/* Button 3: Dark with Red Border (Delete) */
.btn-action-icon.delete {
  background: #0C1017 !important;
  border: 1.5px solid #EF4444 !important;
  color: #EF4444 !important;
}
.btn-action-icon.delete:hover {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.55) !important;
}

/* ==================== FORMS & INPUTS ==================== */
.form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #CBD5E1;
  margin-bottom: 6px;
}

.form-control, .form-control:focus {
  background-color: rgba(9, 13, 20, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
  border-radius: var(--radius-md) !important;
  padding: 10px 14px !important;
  font-size: 0.92rem !important;
  transition: all 0.25s ease !important;
  box-shadow: none !important;
}

.form-control:focus {
  border-color: var(--turbo-cyan) !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25) !important;
}

.form-control::placeholder {
  color: #64748B !important;
}

/* ==================== HEADER AREAS & BANNERS ==================== */
.dns-cron-banner {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(10, 14, 23, 0.95) 50%, rgba(255, 179, 0, 0.06) 100%);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.05);
}

.dns-cron-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dns-cron-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00E5FF;
  font-size: 1.1rem;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.dns-cron-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 2px;
}

.dns-cron-sub {
  font-size: 0.8rem;
  color: #94A3B8;
}

.dns-cron-sub strong {
  color: #00E5FF;
}

.dns-cron-pill {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: #00E676;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

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

.dns-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dns-header-title i {
  font-size: 1.6rem;
  color: #00E5FF;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.dns-header-title h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.dns-header-title p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #94A3B8;
}

/* ==================== TABLES & RESPONSIVENESS ==================== */
.table-dns-wrapper {
  background: #090D14;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  box-sizing: border-box !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.4) #070A0F;
}

.table-dns-wrapper::-webkit-scrollbar {
  height: 6px;
}
.table-dns-wrapper::-webkit-scrollbar-track {
  background: #070A0F;
  border-radius: 8px;
}
.table-dns-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.35);
  border-radius: 8px;
}
.table-dns-wrapper::-webkit-scrollbar-thumb:hover {
  background: #00E5FF;
}

.table-responsive {
  width: 100% !important;
  margin: 0 !important;
  overflow-x: visible !important;
  box-sizing: border-box !important;
}

.table-dns,
.table-turbo {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 0 !important;
  color: #E2E8F0 !important;
  border-collapse: separate !important;
  border-spacing: 0 4px !important;
  table-layout: auto !important;
}

.table-dns thead th,
.table-turbo thead th {
  border: none !important;
  color: #FFB300 !important;
  font-family: var(--font-heading);
  font-size: 0.74rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-weight: 800 !important;
  padding: 7px 6px !important;
  background: transparent !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  padding-right: 18px !important;
  background-position: right 3px center !important;
  background-size: 9px !important;
}

.table-dns tbody tr,
.table-turbo tbody tr {
  background: rgba(13, 18, 28, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.table-dns tbody tr:hover,
.table-turbo tbody tr:hover {
  background: rgba(18, 26, 42, 0.98) !important;
  border-color: rgba(0, 229, 255, 0.35) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.table-dns tbody td,
.table-turbo tbody td {
  padding: 6px 6px !important;
  vertical-align: middle !important;
  border: none !important;
  font-size: 0.82rem !important;
}

.table-dns tbody td:first-child,
.table-turbo tbody td:first-child {
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
}

.table-dns tbody td:last-child,
.table-turbo tbody td:last-child {
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

/* Specific Table Pills & Elements */
.dns-id-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 6px;
  color: #00E5FF;
  font-weight: 700;
  font-size: 0.76rem;
}

.dns-name-label {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 0.88rem;
}

.dns-url-box {
  display: inline-block;
  background: #06090E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.8rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.btn-dns-copy {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00E5FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.78rem;
  vertical-align: middle;
}

.btn-dns-copy:hover {
  background: #00E5FF;
  color: #080B11;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.mac-pill {
  background: #06090E;
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00E5FF;
  padding: 3px 6px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.74rem;
  display: inline-block;
  letter-spacing: 0.3px;
}

/* Badges: Days, Type, Status, Server */
.badge-client-days {
  padding: 2px 7px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.badge-client-days.active {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid #00E676;
  color: #00E676;
}

.badge-client-days.expiring {
  background: rgba(255, 179, 0, 0.18);
  border: 1px solid #FFB300;
  color: #FFB300;
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.35);
  animation: pulse-warn 1.8s infinite;
}

.badge-client-days.expired {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #EF4444;
  color: #EF4444;
}

@keyframes pulse-warn {
  0% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(255, 179, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0); }
}

.badge-client-type {
  padding: 2px 7px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.badge-client-type.normal {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid #00E5FF;
  color: #00E5FF;
}

.badge-client-type.normal:hover {
  background: rgba(0, 229, 255, 0.25);
  color: #FFFFFF;
}

.badge-client-type.teste {
  background: rgba(255, 179, 0, 0.15);
  border: 1px solid #FFB300;
  color: #FFC107;
}

.badge-client-type.teste:hover {
  background: rgba(255, 179, 0, 0.3);
  color: #FFFFFF;
}

.badge-mode {
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-mode.auto {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #00E676;
}

.badge-mode.manual {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #C084FC;
}

.badge-test-alert {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.badge-test-alert.on {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid #00E676;
  color: #00E676;
}

.badge-test-alert.off {
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid #64748B;
  color: #94A3B8;
}

.badge-status-pill {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-status-pill.active {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid #00E676;
  color: #00E676;
}

.badge-status-pill.blocked {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #EF4444;
}

/* Badge Server ON/OFF Status */
.badge-dns-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: monospace;
}

.badge-dns-status.on {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid #00E676;
  color: #00E676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.25);
}

.badge-dns-status.off {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #EF4444;
  color: #EF4444;
}

/* Badge App ON/OFF Toggle Button */
.badge-dns-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: monospace;
}

.badge-dns-toggle.on {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid #00E676;
  color: #00E676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.25);
}

.badge-dns-toggle.on:hover {
  background: rgba(0, 230, 118, 0.3);
}

.badge-dns-toggle.off {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #EF4444;
}

.badge-dns-toggle.off:hover {
  background: rgba(239, 68, 68, 0.3);
}

.dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00E676;
  display: inline-block;
  box-shadow: 0 0 6px #00E676;
}

.dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #EF4444;
  display: inline-block;
  box-shadow: 0 0 6px #EF4444;
}

/* ==================== DATATABLES CUSTOM STYLING ==================== */
.dataTables_wrapper {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.dataTables_wrapper .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-items: center !important;
}

.dataTables_wrapper .dataTables_length {
  padding: 6px 0 14px 0 !important;
  color: #94A3B8 !important;
  font-size: 0.88rem !important;
}

.dataTables_wrapper .dataTables_length label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  color: #94A3B8 !important;
  font-weight: 500 !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_length select.custom-select {
  background: #0B0F17 !important;
  background-color: #0B0F17 !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  color: #00E5FF !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  margin: 0 4px !important;
  font-weight: 700 !important;
  min-width: 75px !important;
  width: auto !important;
  height: 36px !important;
  outline: none !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dataTables_filter {
  padding: 6px 0 14px 0 !important;
  color: #94A3B8 !important;
  text-align: right !important;
}

.dataTables_wrapper .dataTables_filter label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  color: #94A3B8 !important;
  font-weight: 500 !important;
}

.dataTables_wrapper .dataTables_filter input {
  background: #0B0F17 !important;
  border: 1px solid rgba(255, 179, 0, 0.3) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  margin-left: 6px !important;
  min-width: 160px !important;
  height: 36px !important;
  transition: all 0.25s ease !important;
  outline: none !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #00E5FF !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35) !important;
}

.dataTables_wrapper .dataTables_info {
  padding: 14px 0 !important;
  color: #64748B !important;
  font-size: 0.82rem !important;
}

.dataTables_wrapper .dataTables_paginate {
  padding: 14px 0 !important;
  text-align: right !important;
}

.dataTables_wrapper .dataTables_paginate .pagination {
  margin: 0 !important;
  justify-content: flex-end;
}

.dataTables_wrapper .page-item .page-link {
  background: #0B0F17 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94A3B8 !important;
  padding: 6px 12px !important;
  margin: 0 2px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease;
  font-size: 0.84rem;
}

.dataTables_wrapper .page-item.active .page-link {
  background: linear-gradient(135deg, #FFB300 0%, #FF8C00 100%) !important;
  border-color: #FFB300 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.4) !important;
}

.dataTables_wrapper .page-item:hover:not(.active) .page-link {
  background: rgba(0, 229, 255, 0.15) !important;
  border-color: #00E5FF !important;
  color: #00E5FF !important;
}

/* Modals */
.modal-content {
  background-color: var(--bg-glass-modal) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 229, 255, 0.15) !important;
  backdrop-filter: blur(20px);
  color: #E2E8F0;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 18px 24px !important;
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 16px 24px !important;
}

/* ==================== RESPONSIVE ADAPTATIONS (MOBILE & TABLET) ==================== */
@media (max-width: 991.98px) {
  #sidebar-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: -240px !important;
    transform: none !important;
    width: 240px !important;
    height: 100vh !important;
    z-index: 1050 !important;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.8) !important;
  }

  #page-content-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #wrapper.toggled #sidebar-wrapper {
    left: 0 !important;
    transform: none !important;
  }

  #wrapper.toggled #page-content-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1040;
  }

  #wrapper.toggled .sidebar-backdrop {
    display: block;
  }

  .navbar-turbo {
    padding: 10px 16px;
  }

  .dns-header-area {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 14px;
  }

  .btn-add-dns,
  .btn-turbo-add,
  .btn-test-all {
    width: 100%;
    justify-content: center;
  }

  .dns-cron-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dataTables_wrapper .dataTables_filter {
    text-align: left !important;
    margin-top: 10px;
  }
}

@media (max-width: 575.98px) {
  .client-stat-card {
    padding: 12px;
  }
  .client-stat-info h3 {
    font-size: 1.3rem !important;
  }
  .table-dns-wrapper {
    padding: 12px;
  }
}
