/* ==========================================================================
   Application shell (spec §4)
   --------------------------------------------------------------------------
   Sidebar on the inline-start edge — the left in English, the right in Arabic.
   Using logical properties means one rule covers both directions.
   ========================================================================== */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-block-size: 100vh;
}

.app[data-sidebar='collapsed'] {
  grid-template-columns: var(--sidebar-collapsed) 1fr;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.sidebar {
  position: sticky;
  inset-block-start: 0;
  block-size: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(5, 9, 20, 0.96);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: inline-size var(--duration-base) var(--ease-out);
  backdrop-filter: blur(20px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-4);
  block-size: 80px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-logo-img {
  max-width: 170px;
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.45));
  transition: transform var(--duration-fast) var(--ease-out);
}

.brand-logo-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.65));
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3);
}

.nav-section-label {
  padding: var(--space-4) var(--space-3) var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: 10px;
  color: #6b7fa3;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.nav-item + .nav-item {
  margin-block-start: 2px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.nav-item[aria-current='page'] {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(37, 99, 235, 0.15));
  color: #38bdf8;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.18);
}

.nav-item svg {
  flex-shrink: 0;
}

.nav-badge {
  margin-inline-start: auto;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: var(--danger);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.sidebar-footer {
  padding: var(--space-3);
  border-block-start: 1px solid var(--border);
  flex-shrink: 0;
}

/* Collapsed state hides labels but keeps icons and their hit area. */
.app[data-sidebar='collapsed'] .brand-name,
.app[data-sidebar='collapsed'] .nav-item span,
.app[data-sidebar='collapsed'] .nav-section-label {
  display: none;
}

.app[data-sidebar='collapsed'] .nav-item {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Main column
   -------------------------------------------------------------------------- */

.main {
  display: flex;
  flex-direction: column;
  min-inline-size: 0; /* Lets grid children shrink instead of overflowing. */
}

.header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  block-size: var(--header-height);
  padding: 0 var(--space-6);
  background: rgba(5, 9, 20, 0.85);
  backdrop-filter: blur(20px);
  border-block-end: 1px solid rgba(255, 255, 255, 0.06);
}

.header-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.avatar {
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.35);
  cursor: pointer;
}

.content {
  flex: 1;
  padding: var(--space-8) var(--space-6);
  max-inline-size: var(--content-max);
  inline-size: 100%;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Notification panel
   -------------------------------------------------------------------------- */

.notification-panel {
  position: absolute;
  inset-block-start: calc(100% + var(--space-2));
  inset-inline-end: 0;
  z-index: var(--z-dropdown);
  inline-size: min(380px, calc(100vw - var(--space-8)));
  max-block-size: 70vh;
  overflow-y: auto;
  background: rgba(8, 14, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.notification-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-block-end: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--text-sm);
}

.notification-item.is-unread {
  background: rgba(2, 132, 199, 0.08);
  border-inline-start: 2px solid rgba(56, 189, 248, 0.5);
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(0, 0, 0, 0.5);
  animation: fade-in var(--duration-fast) var(--ease-out);
}

.menu-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   Auth pages (login / register)
   -------------------------------------------------------------------------- */

.auth-page {
  display: grid;
  place-items: center;
  min-block-size: 100vh;
  padding: var(--space-6);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* A soft abstract glow rather than a stock photograph (spec §6, §1.31). */
.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  inline-size: 460px;
  block-size: 460px;
  border-radius: var(--radius-full);
  filter: blur(140px);
  opacity: 0.35;
  pointer-events: none;
}

.auth-page::before {
  background: var(--brand-500);
  inset-block-start: -140px;
  inset-inline-start: -120px;
}

.auth-page::after {
  background: var(--accent-500);
  inset-block-end: -160px;
  inset-inline-end: -140px;
  opacity: 0.22;
}

.auth-card {
  position: relative;
  inline-size: 100%;
  max-inline-size: 440px;
  padding: var(--space-10);
  background: rgba(10, 17, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.auth-header {
  text-align: center;
  margin-block-end: var(--space-8);
}

.auth-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-block-start: var(--space-4);
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-block-start: var(--space-2);
}

.auth-footer {
  margin-block-start: var(--space-6);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--border);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.link {
  color: #38bdf8;
  font-weight: var(--weight-medium);
  transition: color 0.2s ease;
}

.link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Alert
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */

.error-code {
  font-size: clamp(3.5rem, 12vw, 5rem);
  font-weight: var(--weight-bold);
  line-height: 1;
  margin-block: var(--space-6) var(--space-2);
  /* Decorative only — the heading beneath carries the actual message. */
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Alert
   -------------------------------------------------------------------------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: 12px;
  font-size: var(--text-sm);
  border: 1px solid transparent;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.alert-info {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.alert svg {
  flex-shrink: 0;
  margin-block-start: 2px;
}

/* ---- Dashboard Custom Specifications (§7) ------------------------------- */

.dash-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Hero Section */
.dash-hero {
  position: relative;
  background: linear-gradient(135deg, #091328 0%, #0d1a37 55%, #071022 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dash-hero-glow {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 320px;
  height: 220px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(13, 26, 55, 0) 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(30px);
}

.dash-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  z-index: 1;
}

.dash-hero-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

.dash-hero-sub {
  margin: 0;
  font-size: var(--text-sm);
  color: #8e9cb4;
  font-weight: 400;
}

.dash-badge-expiring {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  color: #fbbf24;
  font-size: var(--text-xs);
  font-weight: 600;
}

.dash-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.dash-badge-expiring.is-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.dash-badge-expiring.is-active .dash-badge-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.dash-badge-expiring.is-expired {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.dash-badge-expiring.is-expired .dash-badge-dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.dash-hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  z-index: 1;
}

.dash-info-box {
  background: rgba(8, 15, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-around;
  backdrop-filter: blur(8px);
}

.dash-info-col {
  text-align: center;
}

.dash-info-label {
  font-size: var(--text-xs);
  color: #78879f;
  margin-bottom: 6px;
  font-weight: 500;
}

.dash-info-val-primary {
  font-size: var(--text-base);
  font-weight: 700;
  color: #ffffff;
}

.dash-info-val-sub {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #d1d5db;
}

.dash-info-val-muted {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #6b7280;
}

.dash-info-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
}

.dash-alert-box {
  background: rgba(8, 15, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2);
  backdrop-filter: blur(8px);
}

.dash-alert-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  margin-bottom: 2px;
}

.dash-alert-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #e2e8f0;
}

.dash-alert-sub {
  font-size: var(--text-xs);
  color: #64748b;
}

/* Quick Actions Section */
.dash-section-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 var(--space-4);
}

.dash-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.dash-action-card {
  position: relative;
  background: rgba(10, 17, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: var(--space-6) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.dash-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.dash-corner-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  opacity: 0.85;
}

.dash-action-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-1);
}

.dash-action-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: #ffffff;
}

.dash-action-card-sub {
  font-size: var(--text-xs);
  color: #8e9cb4;
  line-height: 1.5;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-action-btn {
  width: 100%;
  margin-top: var(--space-2);
  padding: 8px var(--space-3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

/* Service Info Section */
.dash-service-card {
  background: rgba(10, 17, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: var(--space-4) 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dash-service-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
}

.dash-service-col + .dash-service-col {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-service-icon {
  color: #64748b;
  margin-bottom: 2px;
}

.dash-service-label {
  font-size: var(--text-xs);
  color: #8e9cb4;
  font-weight: 500;
}

.dash-service-val {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #cbd5e1;
}

.dash-service-val-active {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #10b981;
}

.dash-service-val-danger {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #ef4444;
}

/* ---- Sub-pages Unified Styling & Enhancements --------------------------- */

/* Override base.css .text-mono to add visual distinction for credentials */
.text-mono {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  font-size: var(--text-xs);
}

.credential-box {
  background: rgba(6, 11, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-block-start: var(--space-2);
}

.credential-value {
  font-family: var(--font-mono);
  color: #f1f5f9;
  font-size: var(--text-sm);
  word-break: break-all;
}

.plan-card {
  position: relative;
  background: rgba(10, 17, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.plan-card-popular {
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: 0 0 24px rgba(2, 132, 199, 0.2);
}

.table-styled-container {
  background: rgba(10, 17, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.table-styled {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.table-styled th {
  background: rgba(255, 255, 255, 0.02);
  color: #8e9cb4;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.table-styled td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: var(--text-sm);
}

.table-styled tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.ticket-bubble {
  background: rgba(15, 26, 50, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: var(--space-4) var(--space-5);
  margin-block-start: var(--space-3);
}

.ticket-bubble-staff {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.3);
}

/* ---- 100% Exact Reference Activation Page Styling (§71) ---------------- */

.act-hero {
  position: relative;
  text-align: center;
  padding: var(--space-4) var(--space-4) var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.act-hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.act-hero-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 220px;
  margin: 2px 0;
}

.act-hero-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
}

.act-hero-diamond {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  transform: rotate(45deg);
  box-shadow: 0 0 10px #38bdf8;
}

.act-hero-sub {
  font-size: var(--text-sm);
  color: #8e9cb4;
  margin: 0;
}

.act-card {
  position: relative;
  background: rgba(10, 17, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.act-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.act-action-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

/* Split layout: button column on left, info column on right (RTL) */
.act-card-split {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  justify-content: space-between;
  width: 100%;
}

.act-card-btn-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.act-card-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: right;
  flex-shrink: 0;
}

.act-link-countdown {
  font-size: 1rem;
  font-weight: 700;
  color: #38bdf8;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-align: center;
}

.hidden {
  display: none !important;
}

.act-card-single {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}

.act-card-row-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.act-card-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.act-card-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}

.act-btn-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: flex-start;
}

.act-link-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #38bdf8;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.act-btn-sm {
  align-self: center;
  padding: 10px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.act-btn-sm:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.5);
  transform: translateY(-1px);
}

.act-card-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
}

.act-3d-graphic {
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(2, 132, 199, 0.45));
  margin: 0 auto;
}

.act-text-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.act-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.act-title-text {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
}

.act-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.14);
  border: 1px solid rgba(2, 132, 199, 0.35);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.2);
}

.act-card-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0;
}

.act-btn-primary {
  width: 100%;
  padding: 14px var(--space-6);
  border-radius: 12px;
  background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.act-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
  box-shadow: 0 6px 28px rgba(2, 132, 199, 0.55);
  transform: translateY(-1px);
}

.act-output-card {
  background: rgba(6, 11, 23, 0.85);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.act-output-box {
  background: rgba(2, 6, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.act-input-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
  text-align: left;
}

.act-card-btn-col form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.act-input-wrapper {
  position: relative;
  width: 100%;
}

.act-input-field {
  width: 100%;
  padding: 14px 18px;
  padding-left: 50px;
  background: rgba(6, 11, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.act-input-field:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
  outline: none;
}

.act-lock-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  cursor: default;
}

.act-info-banner {
  background: rgba(2, 132, 199, 0.07);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #38bdf8;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================================================
   Subscription Page Specific Styles (Matching Exact Screenshot Design)
   ========================================================================== */

/* Header & Card Base */
.sub-card {
  background: #080f1e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.sub-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.sub-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.sub-header-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section 1: Info Card Split */
.sub-info-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.sub-info-right-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sub-info-header {
  margin-bottom: 16px;
}

.sub-crown-box {
  position: relative;
  width: 185px;
  height: 115px;
  background: #080f1d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  align-self: center;
}

.sub-crown-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border: 1px solid #eab308;
  color: #eab308;
  background: rgba(234, 179, 8, 0.12);
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 2;
}

.sub-crown-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}

.sub-info-columns {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  flex: 1;
  gap: 20px;
  padding-left: 20px;
  padding-right: 0;
}

.sub-info-col {
  display: flex;
  flex-direction: column;
}

.sub-info-col.col-status {
  align-items: flex-start;
  text-align: right;
  min-width: 100px;
}

.sub-info-col.col-plan {
  align-items: flex-start;
  text-align: right;
  min-width: 110px;
}

.sub-info-col.col-plan .sub-info-subitem {
  align-items: flex-start;
  text-align: right;
  width: 100%;
}

.sub-info-col.col-remaining {
  align-items: center;
  text-align: center;
  min-width: 110px;
}

.sub-info-subitem {
  display: flex;
  flex-direction: column;
}

.sub-info-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 8px;
}

.sub-info-val-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sub-info-val-bold {
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sub-info-val-date {
  font-size: 0.92rem;
  font-weight: 600;
  color: #cbd5e1;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sub-info-val-date svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.sub-info-val-pill {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 5px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-block;
}

/* Section 2: Credentials Grid */
.sub-cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .sub-cred-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sub-info-row {
    flex-direction: column-reverse;
  }
}

@media (max-width: 550px) {
  .sub-cred-grid {
    grid-template-columns: 1fr;
  }
  .sub-info-columns {
    flex-direction: column;
    gap: 16px;
  }
}

.sub-cred-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sub-cred-box:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.sub-cred-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sub-cred-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-cred-icon.globe { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.sub-cred-icon.user { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.sub-cred-icon.lock { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.sub-cred-icon.server { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.sub-cred-label {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
}

.sub-cred-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
  direction: ltr;
  padding: 10px 4px;
  text-align: center;
  width: 100%;
}

.sub-cred-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
}

.sub-cred-copy-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 0;
  width: 100%;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.sub-cred-copy-btn:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.sub-cred-hint {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Section 3: Plans Grid */
.sub-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 6px;
}

@media (max-width: 850px) {
  .sub-plans-grid {
    grid-template-columns: 1fr;
  }
}

.sub-plan-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sub-plan-card.current {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.02);
}

.sub-plan-card.vip {
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.02);
}

.sub-plan-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
}

.sub-plan-badge {
  padding: 2px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.sub-plan-badge.free { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.sub-plan-badge.premium { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.sub-plan-badge.vip { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }

.sub-plan-duration {
  font-size: 1.05rem;
  font-weight: 700;
}

.sub-plan-duration.free { color: #38bdf8; }
.sub-plan-duration.premium { color: #38bdf8; }
.sub-plan-duration.vip { color: #eab308; }

.sub-plan-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
}

.sub-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sub-plan-feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #cbd5e1;
  white-space: nowrap;
}

.sub-plan-feature-item svg {
  color: #22c55e;
  flex-shrink: 0;
}

.sub-plan-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 2px;
}

.sub-plan-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-align: left;
  direction: ltr;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.sub-plan-price.is-ar-text {
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  direction: rtl;
}

.sub-plan-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.sub-plan-btn.current {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22c55e;
  cursor: default;
}

.sub-plan-btn.premium {
  background: #0284c7;
  border: 1px solid #38bdf8;
  color: #ffffff;
}

.sub-plan-btn.premium:hover {
  background: #0369a1;
}

.sub-plan-btn.vip {
  border: 1px solid #eab308;
  background: transparent;
  color: #eab308;
}

.sub-plan-btn.vip:hover {
  background: rgba(234, 179, 8, 0.15);
}

.sub-caption {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 14px;
}

/* Section 4: History Table */
.sub-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 8px;
}

.sub-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  table-layout: fixed;
}

.sub-table .th-date,
.sub-table .td-date {
  width: 22%;
  text-align: right;
}

.sub-table .th-action,
.sub-table .td-action {
  width: 22%;
  text-align: center;
}

.sub-table .th-plan,
.sub-table .td-plan {
  width: 18%;
  text-align: center;
}

.sub-table .th-duration,
.sub-table .td-duration {
  width: 18%;
  text-align: center;
}

.sub-table .th-status,
.sub-table .td-status {
  width: 20%;
  text-align: center;
}

.sub-table th {
  padding: 10px 14px;
  font-size: 0.83rem;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sub-table td {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sub-table .td-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #94a3b8;
  direction: ltr;
  text-align: right;
}

.sub-table tr:last-child td {
  border-bottom: none;
}

.sub-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.sub-status-badge.completed {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.sub-status-badge.pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.sub-table-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.sub-table-all-btn {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sub-table-all-btn:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   Settings Page (Modern, Sleek, Harmonious with Subscription)
   ========================================================================== */

.settings-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* Profile Header Banner */
.settings-profile-banner {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.settings-profile-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 70%);
  pointer-events: none;
}

.settings-profile-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.settings-profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-profile-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-profile-username {
  font-size: 0.88rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  direction: ltr;
  text-align: right;
}

[dir='ltr'] .settings-profile-username {
  text-align: left;
}

.settings-profile-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.settings-chip-label {
  color: #94a3b8;
  font-weight: 600;
}

.settings-chip-val {
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-weight: 700;
  direction: ltr;
}

.settings-chip-copy {
  background: transparent;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.settings-chip-copy:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Settings Form Grid */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.settings-profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: flex-start;
}

.settings-label-spacer {
  visibility: hidden;
  user-select: none;
  pointer-events: none;
}

.settings-field-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-inline-btn {
  height: 44px;
  padding: 0 20px;
  white-space: nowrap;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  line-height: 20px;
}

.settings-label svg {
  color: #38bdf8;
}

.settings-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.settings-input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.settings-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background: rgba(15, 23, 42, 0.85);
}

.settings-field-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.settings-field-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 2px;
}

/* Security Form */
.settings-password-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.settings-security-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  width: 100%;
}

.settings-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.settings-checkbox-wrap:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.6);
}

.settings-checkbox-wrap input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #0284c7;
  cursor: pointer;
}

.settings-checkbox-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* Appearance & Language Choice Grid */
.settings-pref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.settings-pref-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-pref-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-pref-title svg {
  color: #38bdf8;
}

.settings-options-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
}

.settings-option-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
}

.settings-option-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  color: #f1f5f9;
  background: rgba(56, 189, 248, 0.05);
}

.settings-option-card.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.settings-option-card svg {
  color: inherit;
}

@media (max-width: 768px) {
  .settings-profile-row,
  .settings-password-grid,
  .settings-pref-grid {
    grid-template-columns: 1fr;
  }
  .settings-profile-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .settings-field-btn {
    width: 100%;
  }
  .settings-field-btn .settings-inline-btn {
    width: 100%;
  }
  .settings-security-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }
  .settings-security-bottom-row .settings-inline-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Light theme overrides for entire layout and components
   ========================================================================== */

[data-theme='light'] body,
[data-effective-theme='light'] body {
  background: #f8fafc;
  color: #0f172a;
}

/* Shell & Navigation */
[data-theme='light'] .sidebar,
[data-effective-theme='light'] .sidebar {
  background: #ffffff;
  border-inline-end: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .sidebar-brand,
[data-effective-theme='light'] .sidebar-brand {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .sidebar-footer,
[data-effective-theme='light'] .sidebar-footer {
  border-block-start: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .nav-section-label,
[data-effective-theme='light'] .nav-section-label {
  color: #94a3b8;
}

[data-theme='light'] .nav-item,
[data-effective-theme='light'] .nav-item {
  color: #475569;
}

[data-theme='light'] .nav-item:hover,
[data-effective-theme='light'] .nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
}

[data-theme='light'] .nav-item[aria-current='page'],
[data-effective-theme='light'] .nav-item[aria-current='page'] {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
  box-shadow: none;
}

[data-theme='light'] .header,
[data-effective-theme='light'] .header {
  background: rgba(255, 255, 255, 0.95);
  border-block-end: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .header-title,
[data-effective-theme='light'] .header-title {
  color: #0f172a;
}

[data-theme='light'] .btn-ghost,
[data-effective-theme='light'] .btn-ghost {
  color: #475569;
}

[data-theme='light'] .btn-ghost:hover,
[data-effective-theme='light'] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

[data-theme='light'] .btn-secondary,
[data-effective-theme='light'] .btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme='light'] .btn-secondary:hover,
[data-effective-theme='light'] .btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Generic Cards & Surfaces */
[data-theme='light'] .card,
[data-effective-theme='light'] .card,
[data-theme='light'] .sub-card,
[data-effective-theme='light'] .sub-card,
[data-theme='light'] .settings-profile-banner,
[data-effective-theme='light'] .settings-profile-banner,
[data-theme='light'] .stat-card,
[data-effective-theme='light'] .stat-card,
[data-theme='light'] .plan-card,
[data-effective-theme='light'] .plan-card,
[data-theme='light'] .table-wrap,
[data-effective-theme='light'] .table-wrap,
[data-theme='light'] .table-styled-container,
[data-effective-theme='light'] .table-styled-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme='light'] .card-title,
[data-effective-theme='light'] .card-title,
[data-theme='light'] .sub-card-title,
[data-effective-theme='light'] .sub-card-title,
[data-theme='light'] .stat-value,
[data-effective-theme='light'] .stat-value,
[data-theme='light'] .settings-profile-name,
[data-effective-theme='light'] .settings-profile-name,
[data-theme='light'] .settings-pref-title,
[data-effective-theme='light'] .settings-pref-title {
  color: #0f172a;
}

[data-theme='light'] .stat-label,
[data-effective-theme='light'] .stat-label {
  color: #64748b;
}

/* Inputs & Form Controls */
[data-theme='light'] .input,
[data-effective-theme='light'] .input,
[data-theme='light'] .select,
[data-effective-theme='light'] .select,
[data-theme='light'] .textarea,
[data-effective-theme='light'] .textarea,
[data-theme='light'] .settings-input,
[data-effective-theme='light'] .settings-input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

[data-theme='light'] .input::placeholder,
[data-effective-theme='light'] .input::placeholder,
[data-theme='light'] .textarea::placeholder,
[data-effective-theme='light'] .textarea::placeholder,
[data-theme='light'] .settings-input::placeholder,
[data-effective-theme='light'] .settings-input::placeholder {
  color: #94a3b8;
}

[data-theme='light'] .input:focus,
[data-effective-theme='light'] .input:focus,
[data-theme='light'] .select:focus,
[data-effective-theme='light'] .select:focus,
[data-theme='light'] .textarea:focus,
[data-effective-theme='light'] .textarea:focus,
[data-theme='light'] .settings-input:focus,
[data-effective-theme='light'] .settings-input:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

[data-theme='light'] .label,
[data-effective-theme='light'] .label,
[data-theme='light'] .settings-label,
[data-effective-theme='light'] .settings-label {
  color: #334155;
}

[data-theme='light'] .copy-field,
[data-effective-theme='light'] .copy-field {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .copy-value,
[data-effective-theme='light'] .copy-value {
  color: #0f172a;
}

/* Dashboard Page */
[data-theme='light'] .dash-hero,
[data-effective-theme='light'] .dash-hero {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme='light'] .dash-hero-title,
[data-effective-theme='light'] .dash-hero-title {
  color: #0f172a;
}

[data-theme='light'] .dash-hero-sub,
[data-effective-theme='light'] .dash-hero-sub {
  color: #475569;
}

[data-theme='light'] .dash-info-box,
[data-effective-theme='light'] .dash-info-box,
[data-theme='light'] .dash-alert-box,
[data-effective-theme='light'] .dash-alert-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme='light'] .dash-info-label,
[data-effective-theme='light'] .dash-info-label,
[data-theme='light'] .dash-alert-sub,
[data-effective-theme='light'] .dash-alert-sub {
  color: #64748b;
}

[data-theme='light'] .dash-info-val-primary,
[data-effective-theme='light'] .dash-info-val-primary,
[data-theme='light'] .dash-alert-title,
[data-effective-theme='light'] .dash-alert-title {
  color: #0f172a;
}

[data-theme='light'] .dash-info-val-sub,
[data-effective-theme='light'] .dash-info-val-sub {
  color: #334155;
}

[data-theme='light'] .dash-info-divider,
[data-effective-theme='light'] .dash-info-divider {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .dash-alert-icon-box,
[data-effective-theme='light'] .dash-alert-icon-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #0284c7;
}

[data-theme='light'] .dash-section-title,
[data-effective-theme='light'] .dash-section-title {
  color: #0f172a;
}

[data-theme='light'] .dash-action-card,
[data-effective-theme='light'] .dash-action-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme='light'] .dash-action-card:hover,
[data-effective-theme='light'] .dash-action-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
}

[data-theme='light'] .dash-action-card-title,
[data-effective-theme='light'] .dash-action-card-title {
  color: #0f172a;
}

[data-theme='light'] .dash-action-card-sub,
[data-effective-theme='light'] .dash-action-card-sub {
  color: #64748b;
}

[data-theme='light'] .dash-action-btn,
[data-effective-theme='light'] .dash-action-btn {
  background: #f1f5f9;
  color: #334155;
}

[data-theme='light'] .dash-service-card,
[data-effective-theme='light'] .dash-service-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme='light'] .dash-service-col + .dash-service-col,
[data-effective-theme='light'] .dash-service-col + .dash-service-col {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme='light'] .dash-service-label,
[data-effective-theme='light'] .dash-service-label {
  color: #64748b;
}

[data-theme='light'] .dash-service-val,
[data-effective-theme='light'] .dash-service-val {
  color: #1e293b;
}

/* Activation Page */
[data-theme='light'] .act-hero-title,
[data-effective-theme='light'] .act-hero-title {
  color: #0f172a;
}

[data-theme='light'] .act-hero-sub,
[data-effective-theme='light'] .act-hero-sub {
  color: #475569;
}

[data-theme='light'] .act-card,
[data-effective-theme='light'] .act-card,
[data-theme='light'] .act-step-card,
[data-effective-theme='light'] .act-step-card,
[data-theme='light'] .act-box,
[data-effective-theme='light'] .act-box,
[data-theme='light'] .act-code-box,
[data-effective-theme='light'] .act-code-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme='light'] .act-title-text,
[data-effective-theme='light'] .act-title-text,
[data-theme='light'] .act-step-title,
[data-effective-theme='light'] .act-step-title,
[data-theme='light'] .act-card-title,
[data-effective-theme='light'] .act-card-title {
  color: #0f172a;
}

[data-theme='light'] .act-card-desc,
[data-effective-theme='light'] .act-card-desc,
[data-theme='light'] .act-step-desc,
[data-effective-theme='light'] .act-step-desc {
  color: #475569;
}

[data-theme='light'] .act-input-label,
[data-effective-theme='light'] .act-input-label {
  color: #334155;
}

[data-theme='light'] .act-input-field,
[data-effective-theme='light'] .act-input-field {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

[data-theme='light'] .act-input-field::placeholder,
[data-effective-theme='light'] .act-input-field::placeholder {
  color: #94a3b8;
}

[data-theme='light'] .act-input-field:focus,
[data-effective-theme='light'] .act-input-field:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

[data-theme='light'] .act-lock-icon,
[data-effective-theme='light'] .act-lock-icon {
  color: #64748b;
}

[data-theme='light'] .act-icon-box,
[data-effective-theme='light'] .act-icon-box {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284c7;
  box-shadow: none;
}

[data-theme='light'] .act-link-countdown,
[data-effective-theme='light'] .act-link-countdown {
  color: #0284c7;
}

[data-theme='light'] .act-code-display,
[data-effective-theme='light'] .act-code-display {
  background: #f8fafc;
  color: #0284c7;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Settings Specific */
[data-theme='light'] .settings-chip,
[data-effective-theme='light'] .settings-chip {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .settings-chip-val,
[data-effective-theme='light'] .settings-chip-val {
  color: #0f172a;
}

[data-theme='light'] .settings-checkbox-wrap,
[data-effective-theme='light'] .settings-checkbox-wrap {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .settings-checkbox-text,
[data-effective-theme='light'] .settings-checkbox-text {
  color: #334155;
}

[data-theme='light'] .settings-pref-box,
[data-effective-theme='light'] .settings-pref-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .settings-option-card,
[data-effective-theme='light'] .settings-option-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme='light'] .settings-option-card:hover,
[data-effective-theme='light'] .settings-option-card:hover {
  background: rgba(2, 132, 199, 0.06);
  color: #0284c7;
}

[data-theme='light'] .settings-option-card.active,
[data-effective-theme='light'] .settings-option-card.active {
  background: rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
  color: #0284c7;
}

/* Subscription Specific */
[data-theme='light'] .sub-cred-box,
[data-effective-theme='light'] .sub-cred-box,
[data-theme='light'] .sub-plan-card,
[data-effective-theme='light'] .sub-plan-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme='light'] .sub-cred-val,
[data-effective-theme='light'] .sub-cred-val,
[data-theme='light'] .sub-plan-price,
[data-effective-theme='light'] .sub-plan-price,
[data-theme='light'] .sub-plan-price.is-ar-text,
[data-effective-theme='light'] .sub-plan-price.is-ar-text,
[data-theme='light'] .sub-info-val-bold,
[data-effective-theme='light'] .sub-info-val-bold {
  color: #0f172a;
}

/* Tables across all pages */
[data-theme='light'] .sub-table th,
[data-effective-theme='light'] .sub-table th,
[data-theme='light'] .table-styled th,
[data-effective-theme='light'] .table-styled th,
[data-theme='light'] .table th,
[data-effective-theme='light'] .table th {
  background: #f8fafc;
  color: #64748b;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .sub-table td,
[data-effective-theme='light'] .sub-table td,
[data-theme='light'] .table-styled td,
[data-effective-theme='light'] .table-styled td,
[data-theme='light'] .table td,
[data-effective-theme='light'] .table td {
  color: #1e293b;
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

[data-theme='light'] .sub-table-all-btn,
[data-effective-theme='light'] .sub-table-all-btn {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme='light'] .sub-table-all-btn:hover,
[data-effective-theme='light'] .sub-table-all-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Support Channels Layout & Spacing */
.support-channels-card .card-header {
  margin-block-end: 10px;
}

.support-channels-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.support-channels-links-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
}

.support-channel-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.14);
  border: 1px solid rgba(2, 132, 199, 0.4);
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

.support-channel-badge-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.support-hours-badge {
  margin: 0;
  padding-block-start: 2px;
  font-size: 0.84rem;
  color: #8e9cb4;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Modal - Light Theme Specific Overrides */
[data-theme='light'] .modal,
[data-effective-theme='light'] .modal {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}

[data-theme='light'] .modal-backdrop,
[data-effective-theme='light'] .modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
}

[data-theme='light'] .modal-header,
[data-effective-theme='light'] .modal-header {
  border-block-end: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .modal-footer,
[data-effective-theme='light'] .modal-footer {
  border-block-start: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
  border-radius: 0 0 20px 20px;
}

[data-theme='light'] .modal .card-title,
[data-effective-theme='light'] .modal .card-title {
  color: #0f172a;
}

[data-theme='light'] .modal .label,
[data-effective-theme='light'] .modal .label {
  color: #334155;
  font-weight: 600;
}

[data-theme='light'] .modal .input,
[data-effective-theme='light'] .modal .input,
[data-theme='light'] .modal .select,
[data-effective-theme='light'] .modal .select,
[data-theme='light'] .modal .textarea,
[data-effective-theme='light'] .modal .textarea {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #0f172a;
}

[data-theme='light'] .modal .input:focus,
[data-effective-theme='light'] .modal .input:focus,
[data-theme='light'] .modal .select:focus,
[data-effective-theme='light'] .modal .select:focus,
[data-theme='light'] .modal .textarea:focus,
[data-effective-theme='light'] .modal .textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

[data-theme='light'] .modal .btn-secondary,
[data-effective-theme='light'] .modal .btn-secondary {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #334155;
}

[data-theme='light'] .modal .btn-secondary:hover,
[data-effective-theme='light'] .modal .btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme='light'] .modal .btn-ghost,
[data-effective-theme='light'] .modal .btn-ghost {
  color: #64748b;
}

[data-theme='light'] .modal .btn-ghost:hover,
[data-effective-theme='light'] .modal .btn-ghost:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme='light'] .support-channel-badge-btn,
[data-effective-theme='light'] .support-channel-badge-btn {
  background: #f0f9ff;
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

[data-theme='light'] .support-channel-badge-btn:hover,
[data-effective-theme='light'] .support-channel-badge-btn:hover {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

[data-theme='light'] .support-hours-badge,
[data-effective-theme='light'] .support-hours-badge {
  color: #64748b;
}


