/* Vazin Panel UI Polish & Ecosystem Visual Harmony */
:root {
  --vz-primary: #0b57d0;
  --vz-primary-hover: #1d4ed8;
  --vz-dark-bg: #0f172a;
  --vz-card-border: rgba(148, 163, 184, 0.22);
  --vz-radius: 12px;
}

body {
  font-family: Vazirmatn, Tahoma, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

code, pre, .mono, [class*="terminal"], [class*="ip"], [class*="domain"], .ltr {
  font-family: ui-monospace, SFMono-Regular, Consolas, Monaco, "Courier New", monospace;
}

/* Smooth Cards & Panels */
.card, .panel, .widget, .stat-card, .box, .profile-card, .surface, .bo-quota, .bo-stat {
  border-radius: var(--vz-radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover, .stat-card:hover, .bo-stat:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

/* Buttons & Primary Actions */
button.primary, .btn.primary, .btn-primary, .primary-button, [type="submit"].btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #1d4ed8;
  border-radius: 9px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
  transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

button.primary:hover, .btn.primary:hover, .btn-primary:hover, .primary-button:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 5px 14px rgba(29, 78, 216, 0.3);
}

/* Inputs & Selects */
input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="url"], input[type="number"], select, textarea {
  border-radius: 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

/* Tables Polish */
table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.04);
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.42);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.68);
}

/* === Vazin Panel Modern Login & Ecosystem Links === */
.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.14), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(20, 184, 166, 0.10), transparent 42%),
    var(--bg);
}

.vz-login-top {
  width: min(980px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.vz-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
}

.vz-login-brand-pill {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.login-body .language-bar {
  position: static;
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.login-body .language-bar a {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.login-body .language-bar a:hover {
  color: var(--text);
  background: var(--surface2);
}

.login-body .language-bar a[aria-current="page"] {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.login-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px !important;
  padding: 34px 32px 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
  margin: auto 0;
}

.vz-login-head {
  text-align: center;
  margin-bottom: 20px;
}

.vz-login-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.vz-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.vz-badge-pill.tls {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 35%, var(--line));
  background: color-mix(in srgb, var(--success) 10%, transparent);
}

.vz-sso-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 11px 16px !important;
  font-size: 14px;
  font-weight: 700 !important;
  border-radius: 11px !important;
  margin-top: 14px;
  text-decoration: none;
}

.vz-sso-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
  font-size: 12px;
}

.login-card .stack label.field {
  font-weight: 600;
  color: var(--text);
}

.login-card .stack input {
  padding: 10px 12px;
  font-size: 13.5px;
}

.login-card .stack button[type="submit"] {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-size: 14px;
  margin-top: 6px;
}

.vz-eco-box {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.vz-eco-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  margin: 0 0 10px;
}

.vz-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.vz-eco-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 6px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.vz-eco-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.vz-login-foot {
  width: min(980px, 100%);
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 18px;
}

@media (max-width: 480px) {
  .vz-login-top {
    flex-direction: column;
  }
  .login-card {
    padding: 24px 20px;
  }
  .vz-eco-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Vazin Panel Modern Workspace & Account UI === */
.workspace-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.08), transparent 36%),
    radial-gradient(circle at 88% 85%, rgba(20, 184, 166, 0.06), transparent 38%),
    var(--identity-bg, var(--bg));
}

.workspace-header.vz-ws-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 3.5vw, 48px);
  background: color-mix(in srgb, var(--identity-card, var(--surface)) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--identity-border, var(--line));
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.vz-brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.vz-brand-meta strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--identity-text, var(--text));
}

.vz-brand-meta small {
  font-size: 11px;
  font-weight: 600;
  color: var(--identity-muted, var(--muted));
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.vz-ws-header .workspace-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vz-ws-header .workspace-nav a {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--identity-muted, var(--muted));
  transition: all 0.15s ease;
}

.vz-ws-header .workspace-nav a:hover {
  color: var(--identity-text, var(--text));
  background: color-mix(in srgb, var(--identity-primary, var(--brand)) 8%, transparent);
}

.vz-ws-header .workspace-nav a[aria-current="page"] {
  color: var(--identity-primary, var(--brand));
  background: color-mix(in srgb, var(--identity-primary, var(--brand)) 13%, transparent);
  font-weight: 700;
}

.vz-ws-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vz-lang-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: var(--identity-bg, var(--bg));
  border: 1px solid var(--identity-border, var(--line));
}

.vz-lang-inline a {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--identity-muted, var(--muted));
  text-decoration: none;
  transition: all 0.14s ease;
}

.vz-lang-inline a:hover {
  color: var(--identity-text, var(--text));
}

.vz-lang-inline a[aria-current="page"] {
  background: var(--identity-primary, var(--brand));
  color: #fff;
}

.vz-ws-header .profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--identity-bg, var(--bg));
  border: 1px solid var(--identity-border, var(--line));
}

.vz-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.vz-ws-header .link-button {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--danger, #d83949);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.vz-ws-header .link-button:hover {
  background: color-mix(in srgb, var(--danger, #d83949) 12%, transparent);
}

.vz-eco-subbar {
  background: var(--identity-card, var(--surface));
  border-bottom: 1px solid var(--identity-border, var(--line));
  padding: 7px clamp(16px, 3.5vw, 48px);
}

.vz-eco-subbar-inner {
  width: min(1050px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vz-eco-subbar-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--identity-muted, var(--muted));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vz-eco-subbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vz-eco-subbar-links a {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--identity-text, var(--text));
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--identity-bg, var(--bg));
  border: 1px solid var(--identity-border, var(--line));
  transition: all 0.14s ease;
}

.vz-eco-subbar-links a:hover {
  border-color: var(--identity-primary, var(--brand));
  color: var(--identity-primary, var(--brand));
}

.identity-shell {
  flex: 1;
  width: min(1050px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.vz-heading-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 28px;
  margin-bottom: 24px;
  background: var(--identity-card, var(--surface));
  border: 1px solid var(--identity-border, var(--line));
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(20, 33, 61, 0.06);
}

.vz-heading-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.vz-heading-main h1 {
  margin: 0 0 4px;
  font-size: 23px;
}

.vz-heading-main p {
  margin: 0;
  color: var(--identity-muted, var(--muted));
  font-size: 13.5px;
}

.vz-heading-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.metric-grid article.profile-card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--identity-primary, var(--brand));
}

.metric-grid article.profile-card strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--identity-text, var(--text));
}

.localized-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  padding: 22px;
}

.localized-nav-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--identity-bg, var(--bg));
  border: 1px solid var(--identity-border, var(--line));
  color: var(--identity-text, var(--text));
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.15s ease;
}

.localized-nav-grid a::after {
  content: "↗";
  font-size: 12px;
  color: var(--identity-muted, var(--muted));
}

.localized-nav-grid a:hover {
  border-color: var(--identity-primary, var(--brand));
  color: var(--identity-primary, var(--brand));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.vz-id-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--identity-border, var(--line));
}

.vz-id-header h2 {
  margin: 0;
  font-size: 17px;
}

.identity-status dl div {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--identity-bg, var(--bg));
  border: 1px solid var(--identity-border, var(--line));
  align-items: center;
}

.identity-status dt {
  font-weight: 600;
  font-size: 13px;
}

.identity-status dd {
  font-weight: 700;
  font-size: 13.5px;
}

.vz-pref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.preference-form label small {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: color-mix(in srgb, var(--identity-primary, var(--brand)) 12%, transparent);
  color: var(--identity-primary, var(--brand));
  margin-inline-start: 6px;
}

.vz-ws-footer {
  text-align: center;
  padding: 18px 16px;
  font-size: 12px;
  color: var(--identity-muted, var(--muted));
  border-top: 1px solid var(--identity-border, var(--line));
  background: var(--identity-card, var(--surface));
}

@media (max-width: 760px) {
  .vz-pref-grid {
    grid-template-columns: 1fr;
  }
  .vz-heading-card {
    padding: 18px;
  }
}

/* === Vazin Panel Professional Workspace: Dark Mode, Theme Switcher & Ecosystem Tools === */
html[data-theme="dark"] {
  color-scheme: dark;
  --v-ui-bg: #0b1322;
  --v-ui-surface: #132036;
  --v-ui-text: #edf4ff;
  --v-ui-muted: #9aabc4;
  --v-ui-border: #263852;
  --v-ui-primary: #5b9dff;
  --sidebar: #08101d;
  --sidebar-muted: #8ea2be;
  --mint: #34d399;
  --soft-mint: rgba(16, 185, 129, 0.14);
  --soft-blue: rgba(59, 130, 246, 0.15);
  --soft-amber: rgba(245, 158, 11, 0.15);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;
    --v-ui-bg: #0b1322;
    --v-ui-surface: #132036;
    --v-ui-text: #edf4ff;
    --v-ui-muted: #9aabc4;
    --v-ui-border: #263852;
    --v-ui-primary: #5b9dff;
    --sidebar: #08101d;
    --sidebar-muted: #8ea2be;
    --mint: #34d399;
    --soft-mint: rgba(16, 185, 129, 0.14);
    --soft-blue: rgba(59, 130, 246, 0.15);
    --soft-amber: rgba(245, 158, 11, 0.15);
  }
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .surface,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .search,
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] dialog {
  background: var(--v-ui-surface) !important;
  color: var(--v-ui-text) !important;
  border-color: var(--v-ui-border) !important;
}

html[data-theme="dark"] .guide,
html[data-theme="dark"] .steps,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .detail-grid div,
html[data-theme="dark"] .file-content,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .site-monogram,
html[data-theme="dark"] .account-link {
  background: #1a2b46 !important;
  color: var(--v-ui-text) !important;
  border-color: var(--v-ui-border) !important;
}

html[data-theme="dark"] .site-row {
  border-top-color: var(--v-ui-border) !important;
}

html[data-theme="dark"] .tool-card:hover {
  background: #1c2f4d !important;
  border-color: var(--v-ui-primary) !important;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .topbar,
  html[data-theme="auto"] .surface,
  html[data-theme="auto"] .metric,
  html[data-theme="auto"] .tool-card,
  html[data-theme="auto"] .search,
  html[data-theme="auto"] .secondary-button,
  html[data-theme="auto"] input,
  html[data-theme="auto"] select,
  html[data-theme="auto"] dialog {
    background: var(--v-ui-surface) !important;
    color: var(--v-ui-text) !important;
    border-color: var(--v-ui-border) !important;
  }
  html[data-theme="auto"] .guide,
  html[data-theme="auto"] .steps,
  html[data-theme="auto"] .notice,
  html[data-theme="auto"] .detail-grid div,
  html[data-theme="auto"] .file-content,
  html[data-theme="auto"] .icon-button,
  html[data-theme="auto"] .site-monogram,
  html[data-theme="auto"] .account-link {
    background: #1a2b46 !important;
    color: var(--v-ui-text) !important;
    border-color: var(--v-ui-border) !important;
  }
  html[data-theme="auto"] .site-row {
    border-top-color: var(--v-ui-border) !important;
  }
}

/* Theme Switcher Pill in Professional & Classic Topbar */
.vz-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface2, var(--v-ui-bg, #f1f5f9));
  border: 1px solid var(--line, var(--v-ui-border, #dce3ec));
}

.vz-theme-btn {
  border: 0;
  background: transparent;
  color: var(--muted, var(--v-ui-muted, #64748b));
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.vz-theme-btn:hover {
  color: var(--text, var(--v-ui-text, #0f172a));
}

.vz-theme-btn.active {
  background: var(--brand, var(--v-ui-primary, #2563eb));
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

@media (max-width: 900px) {
  .vz-theme-btn span {
    display: none;
  }
  .vz-theme-btn {
    padding: 4px 7px;
  }
}

/* Ecosystem Section & Cards in Professional Workspace */
.vz-pro-eco-section {
  margin-top: 28px;
}

.vz-pro-eco-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vz-pro-eco-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  background: var(--v-ui-surface);
  border: 1px solid var(--v-ui-border);
  text-decoration: none;
  color: var(--v-ui-text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.vz-pro-eco-card:hover {
  transform: translateY(-2px);
  border-color: var(--v-ui-primary);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.vz-pro-eco-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vz-pro-eco-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--soft-blue);
  color: var(--v-ui-primary);
}

.vz-pro-eco-tag {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--v-ui-bg);
  border: 1px solid var(--v-ui-border);
  color: var(--v-ui-muted);
}

.vz-pro-eco-card b {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  margin-bottom: 4px;
}

.vz-pro-eco-card small {
  display: block;
  font-size: 11.5px;
  color: var(--v-ui-muted);
  line-height: 1.65;
}

.sidebar .vz-side-eco {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.sidebar .vz-side-eco a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: 38px;
  border-radius: 8px;
  font-size: 12px;
  color: #c7d3e4;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar .vz-side-eco a:hover {
  background: #253c58;
  color: #fff;
}

@media (max-width: 1100px) {
  .vz-pro-eco-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vz-pro-eco-grid {
    grid-template-columns: 1fr;
  }
  . sidebar .vz-side-eco {
    display: none;
  }
}

/* === VAZIN CLASSIC DASHBOARD UPGRADE v1.5 === */
.vz-classic-eco-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.vz-classic-domain-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.vz-classic-domain-input {
  width: 220px;
  padding: 6px 10px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  border: 1px solid var(--line, rgba(148, 163, 184, 0.35)) !important;
  background: var(--surface, #ffffff);
  color: var(--text, #0f172a);
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Consolas, Monaco, monospace !important;
}

/* Dark Mode Overrides for Classic Dashboard */
html[data-theme="dark"] body {
  background-color: #0b1120 !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .panel-sidebar {
  background-color: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .bo-tile,
html[data-theme="dark"] .bo-stat,
html[data-theme="dark"] .bo-quota,
html[data-theme="dark"] .ops-fold,
html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] dialog {
  background-color: #162238 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .bo-tile:hover {
  background-color: #1c2d49 !important;
  border-color: #3b82f6 !important;
}

html[data-theme="dark"] .bo-search input,
html[data-theme="dark"] .vz-classic-domain-input,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

/* === VAZIN MONETIZATION & CHECKOUT SUITE v1.6 === */
.vz-checkout-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.vz-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.vz-checkout-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.vz-checkout-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.vz-checkout-btn.emerald {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.24);
}

.vz-checkout-btn.ghost {
  background: var(--v-ui-surface, var(--surface, #fff));
  color: var(--v-ui-text, var(--text, #0f172a)) !important;
  border-color: var(--v-ui-border, var(--line, #cbd5e1));
}

.vz-plans-showcase {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vz-plan-card {
  background: var(--v-ui-surface, var(--surface, #fff));
  border: 1px solid var(--v-ui-border, var(--line, #dce3ec));
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.vz-plan-card.popular {
  border: 2px solid #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.10);
}

.vz-plan-badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.vz-plan-price {
  font-size: 28px;
  font-weight: 850;
  color: var(--v-ui-primary, #2563eb);
  margin: 6px 0;
}

.vz-plan-price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--v-ui-muted, #64748b);
}

.vz-plan-features {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: grid;
  gap: 7px;
  font-size: 12.5px;
  color: var(--v-ui-text, var(--text, #1e293b));
}

.vz-invoice-toast {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 900px) {
  .vz-plans-showcase {
    grid-template-columns: 1fr;
  }
}

/* === VAZIN DESIGN SYSTEM v2.0 (Phase 1: Unified Typography, Tabular Nums, Linear/Vercel Surfaces & Form Polish) === */
:root {
  --vz-font-sans: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --vz-font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, Monaco, monospace;
  --vz-radius-lg: 14px;
  --vz-radius-md: 10px;
  --vz-radius-sm: 8px;
}

/* Tabular Numbers & LTR Isolation for Technical Tokens */
.metric strong,
.metric-grid strong,
.bo-stat strong,
.bo-quota strong,
.vz-plan-price,
.quote-row b,
.quote-total strong,
table td,
table th,
code,
pre,
kbd,
.mono,
[dir="ltr"] {
  font-variant-numeric: tabular-nums;
}

code, pre, kbd, .mono {
  font-family: var(--vz-font-mono);
}

/* Crisp Table Styling across Classic, Server & Professional Views */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

table th {
  font-weight: 700;
  font-size: 12px;
  color: var(--v-ui-muted, var(--muted, #64748b));
  background: var(--v-ui-bg, var(--surface2, #f8fafc));
  padding: 11px 14px;
  border-bottom: 1px solid var(--v-ui-border, var(--line, #e2e8f0));
  text-align: start;
}

table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--v-ui-border, var(--line, rgba(148, 163, 184, 0.18)));
  vertical-align: middle;
  transition: background-color 0.12s ease;
}

table tbody tr:hover td {
  background-color: color-mix(in srgb, var(--vz-primary, #2563eb) 4%, transparent);
}

/* Refined Badges & Status Pills */
.badge, .pill, .status-pill, .https-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.4;
}

/* Enhanced Site Rows & Tool Cards in Professional & Classic Dashboards */
.site-row {
  padding: 14px 16px !important;
  border-radius: 10px;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.site-row:hover {
  background-color: color-mix(in srgb, var(--v-ui-primary, #2563eb) 5%, transparent);
}

.bo-tile, .tool-card {
  border-radius: 12px !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, border-color 0.15s ease !important;
}

.bo-tile:hover, .tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* Keyboard Shortcut Badge Polish (Ctrl+K / /) */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 6px;
  border: 1px solid var(--v-ui-border, var(--line, #cbd5e1));
  background: var(--v-ui-bg, var(--surface2, #f1f5f9));
  color: var(--v-ui-muted, var(--muted, #64748b));
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.06);
}

/* Modal / Dialog Backdrop & Smooth Surface */
dialog {
  border-radius: 16px !important;
  border: 1px solid var(--v-ui-border, var(--line, #cbd5e1)) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24) !important;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
