@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&family=Noto+Kufi+Arabic:wght@400;500;600;700;800&display=swap');

/* Valcom Spares & Warranty Platform — VDesk Design System (Light Default) */
:root {
  --bg-canvas: #F5F7FA;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F8FAFC;
  --bg-hover: #F1F5F9;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --accent: #9E0B2C;
  --accent-hover: #7F0923;
  --accent-soft: rgba(158, 11, 44, 0.10);

  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.12);
  --amber: #D97706;
  --amber-soft: rgba(217, 119, 6, 0.12);
  --crimson: #DC2626;
  --crimson-soft: rgba(220, 38, 38, 0.12);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 26px rgba(15, 23, 42, 0.10);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

html[lang="ar"],
html[dir="rtl"] {
  --font-sans: 'Noto Kufi Arabic', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea,
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  font-family: var(--font-sans);
}

html[lang="ar"] .landing-h1 {
  line-height: 1.35;
  letter-spacing: 0;
}

html[lang="ar"] .mac-stage {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Optical calibration for Noto Kufi Arabic in menus & header actions */
html[lang="ar"] .landing-nav-inner {
  gap: 12px;
}
html[lang="ar"] .landing-brand-tagline {
  font-size: 10.5px;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="ar"] .landing-links {
  gap: 16px;
  font-size: 12px;
  white-space: nowrap;
}
html[lang="ar"] .landing-links a {
  white-space: nowrap;
  line-height: 1.35;
}
html[lang="ar"] .landing-actions-desktop {
  gap: 6px;
  flex-shrink: 0;
}
html[lang="ar"] .landing-actions-desktop .btn-sm {
  font-size: 11.5px;
  padding: 5px 10px;
  white-space: nowrap;
  line-height: 1.35;
}
html[lang="ar"] .landing-mobile-links a {
  font-size: 12.5px;
  min-height: 38px;
  padding: 0 10px;
}
html[lang="ar"] .landing-mobile-actions .btn {
  font-size: 12.5px;
  min-height: 38px;
}
html[lang="ar"] .landing-actions-mobile .btn-sm {
  font-size: 11px;
  padding: 5px 8px;
}

@media (max-width: 1180px) {
  html[lang="ar"] .landing-brand-tagline {
    display: none;
  }
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #FFFFFF;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono, code, pre {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.tabular { font-variant-numeric: tabular-nums; }

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-logo-lg {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Cards & Grids */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card-body { padding: 18px; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.grid-4 > *, .grid-3 > *, .grid-2 > * { min-width: 0; }

@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 80ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 18px; font-size: 14px; }

/* Inputs & Forms */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control, select.form-control, textarea.form-control {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-emerald { background: var(--emerald-soft); color: #047857; }
.badge-amber { background: var(--amber-soft); color: #B45309; }
.badge-crimson { background: var(--crimson-soft); color: #B91C1C; }
.badge-blue { background: var(--accent-soft); color: #9E0B2C; }
.badge-muted { background: rgba(100, 116, 139, 0.14); color: var(--text-secondary); }

.muted { color: var(--text-muted); }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11.5px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flex-row { display: flex; align-items: center; gap: 8px; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }

/* Landing Layout */
.landing-body {
  background: var(--bg-canvas);
  color: var(--text-primary);
}
.landing-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.landing-nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing-brand {
  min-width: 0;
  flex-shrink: 0;
}
.landing-actions-mobile { display: none; }
.landing-menu-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}
.landing-menu-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}
.landing-mobile-drawer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}
.landing-mobile-drawer-inner {
  padding-top: 12px;
  padding-bottom: 16px;
}
.landing-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.landing-mobile-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.landing-mobile-links a:hover {
  background: var(--bg-elevated);
  color: var(--accent);
}
.landing-mobile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.landing-mobile-actions .btn {
  width: 100%;
  min-height: 42px;
}
.landing-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
}
.landing-links a { color: var(--text-secondary); }
.landing-links a:hover { color: var(--accent); text-decoration: none; }

.landing-hero {
  padding: 58px 0 54px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FA 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.landing-h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.landing-lead {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}
.landing-section {
  padding: 54px 0;
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

@media (max-width: 960px) {
  .landing-container { padding: 0 16px; }
  .landing-nav-inner { height: 60px; gap: 10px; }
  .landing-brand-tagline { display: none; }
  .landing-links,
  .landing-actions-desktop { display: none; }
  .landing-actions-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .landing-actions-mobile .btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .landing-hero { padding: 36px 0 40px; }
  .landing-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .landing-h1 { font-size: 28px; }
}
@media (max-width: 560px) {
  .mac-menubar-item:not(.active) { display: none; }
}

/* ==========================================================================
   Quick Demo Strip & Role Launcher Cards
   ========================================================================== */
.demo-strip {
  padding: 36px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.demo-strip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.demo-role-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.demo-role-form {
  margin: 0;
  display: flex;
}
.demo-role-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  text-align: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}
.demo-role-card:hover {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.demo-role-card.is-primary {
  border-color: rgba(158, 11, 44, 0.32);
  background: rgba(158, 11, 44, 0.04);
}
.demo-role-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.demo-role-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo-role-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.demo-role-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 3px;
}
.demo-role-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.demo-role-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2px;
}
@media (max-width: 1120px) {
  .demo-role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .demo-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .demo-role-grid { grid-template-columns: 1fr; }
}

/* Quick Warranty Verify Bar */
.verify-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}
.verify-form-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.verify-form-row .form-control {
  flex: 1;
  min-width: 0;
  height: 44px;
}
@media (max-width: 860px) {
  .verify-banner { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 520px) {
  .verify-form-row { flex-direction: column; }
}

/* ==========================================================================
   Landing Hero: Animated macOS Spare Parts & Warranty Console
   ========================================================================== */
.mac-stage {
  position: relative;
  text-align: left;
  user-select: none;
}
.mac-bezel {
  background: linear-gradient(165deg, #1E293B 0%, #0F172A 100%);
  border-radius: 16px;
  padding: 10px 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 22px 48px -12px rgba(15, 23, 42, 0.28), 0 4px 12px rgba(15, 23, 42, 0.12);
}
.mac-camera-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10px;
  margin-bottom: 6px;
}
.mac-camera-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334155;
  box-shadow: inset 0 0 2px #020617;
}
.mac-screen {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(158, 11, 44, 0.34), transparent 52%),
    radial-gradient(circle at 82% 24%, rgba(37, 99, 235, 0.35), transparent 55%),
    radial-gradient(circle at 55% 88%, rgba(16, 185, 129, 0.22), transparent 50%),
    linear-gradient(135deg, #0F172A 0%, #1E1B4B 48%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.mac-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  font-size: 11px;
  line-height: 1;
}
.mac-menubar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mac-apple-mark {
  font-weight: 800;
  color: #FFFFFF;
}
.mac-menubar-item {
  color: #CBD5E1;
  font-weight: 500;
}
.mac-menubar-item.active {
  color: #FFFFFF;
  font-weight: 700;
}
.mac-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6EE7B7;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}
.mac-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
}
.mac-desktop {
  position: relative;
  height: 332px;
  padding: 14px;
  overflow: hidden;
}
.mac-folder {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  z-index: 2;
}
.mac-folder.is-active {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(96, 165, 250, 0.65);
  transform: scale(0.97);
}
.mac-folder-icon {
  width: 44px;
  height: 34px;
  background: linear-gradient(180deg, #60A5FA 0%, #2563EB 100%);
  border-radius: 5px;
  position: relative;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.45);
}
.mac-folder-icon::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 18px;
  height: 7px;
  background: #93C5FD;
  border-radius: 3px 3px 0 0;
}
.mac-folder-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #F8FAFC;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  text-align: center;
  line-height: 1.2;
}
.mac-win {
  position: absolute;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 18px 34px -8px rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.mac-win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
}
.mac-lights {
  display: inline-flex;
  gap: 5px;
}
.mac-lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.mac-lights .tl-red { background: #FF5F56; }
.mac-lights .tl-amber { background: #FFBD2E; }
.mac-lights .tl-green { background: #27C93F; }

.mac-finder {
  top: 16px;
  left: 16px;
  width: 256px;
  background: rgba(248, 250, 252, 0.97);
  color: #0F172A;
  z-index: 3;
  opacity: 0;
  transform: scale(0.92) translateY(8px);
}
.mac-finder.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.mac-finder .mac-win-bar {
  background: #E2E8F0;
  color: #334155;
  border-bottom: 1px solid #CBD5E1;
}
.mac-finder-body {
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mac-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #1E293B;
}
.mac-file-row.is-selected {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
  font-weight: 600;
}

.mac-terminal {
  bottom: 52px;
  left: 14px;
  width: 278px;
  background: rgba(15, 23, 42, 0.96);
  color: #E2E8F0;
  z-index: 4;
  opacity: 0.96;
}
.mac-terminal.is-focused {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 20px 38px -8px rgba(2, 6, 23, 0.72), 0 0 0 1px rgba(96, 165, 250, 0.25);
}
.mac-terminal .mac-win-bar {
  background: #1E293B;
  color: #94A3B8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mac-term-body {
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.3px;
  line-height: 1.5;
  min-height: 74px;
}
.mac-term-prompt { color: #38BDF8; }
.mac-term-caret {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: #E2E8F0;
  vertical-align: middle;
  margin-left: 2px;
  animation: macCaretBlink 1s steps(2, start) infinite;
}
.mac-term-out {
  margin-top: 4px;
  color: #34D399;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mac-term-out.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mac-ticket-toast {
  position: absolute;
  right: 12px;
  bottom: 54px;
  width: 204px;
  background: rgba(255, 255, 255, 0.97);
  color: #0F172A;
  border-radius: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 32px -6px rgba(2, 6, 23, 0.55);
  z-index: 5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.mac-ticket-toast.is-resolved {
  border-color: #10B981;
  box-shadow: 0 16px 32px -6px rgba(16, 185, 129, 0.28);
}
.mac-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}
.mac-ticket-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 8px;
}
.mac-resolve-btn {
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: default;
  color: #FFFFFF;
  background: #9E0B2C;
  transition: background-color 0.22s ease, transform 0.15s ease;
}
.mac-resolve-btn.is-clicking { transform: scale(0.96); }
.mac-resolve-btn.is-done { background: #059669; }

.mac-dock {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 6;
}
.mac-dock-app {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
}
.mac-dock-finder { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.mac-dock-term { background: linear-gradient(135deg, #334155, #0F172A); border: 1px solid rgba(255,255,255,0.2); }
.mac-dock-vdesk { background: linear-gradient(135deg, #BE123C, #9E0B2C); }
.mac-dock-ticket { background: linear-gradient(135deg, #10B981, #059669); }

.mac-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  filter: drop-shadow(0 3px 6px rgba(2, 6, 23, 0.55));
}
.mac-cursor-tag {
  margin-top: 13px;
  background: #9E0B2C;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}
.mac-click-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border-radius: 50%;
  border: 2px solid #FBBF24;
  background: rgba(251, 191, 36, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.35);
  z-index: 19;
}
.mac-click-ripple.is-popping {
  animation: macRipplePop 0.55s ease-out forwards;
}
.mac-stand {
  width: 82px;
  height: 20px;
  margin: 0 auto;
  background: linear-gradient(180deg, #94A3B8 0%, #CBD5E1 55%, #64748B 100%);
  clip-path: polygon(12% 0%, 88% 0%, 100% 100%, 0% 100%);
}
.mac-stand-base {
  width: 158px;
  height: 6px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #CBD5E1 0%, #94A3B8 100%);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

@keyframes macCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes macRipplePop {
  0% { opacity: 0.95; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(1.75); }
}

@media (max-width: 640px) {
  .mac-desktop { height: 295px; padding: 10px; }
  .mac-finder { width: 208px; }
  .mac-terminal { width: 224px; bottom: 48px; }
  .mac-ticket-toast { width: 170px; right: 8px; bottom: 48px; }
  .mac-folder { width: 68px; right: 10px; top: 12px; }
}
@media (max-width: 480px) {
  .mac-terminal { display: none; }
  .mac-ticket-toast { width: 172px; bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .mac-cursor, .mac-win, .mac-term-out { transition: none !important; }
  .mac-term-caret { animation: none !important; }
}

/* ==========================================================================
   Auth Split Card (VDesk Sign In Style)
   ========================================================================== */
body.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, #FFE4EA 0%, #F5F7FA 55%);
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.auth-brand-pane {
  background: linear-gradient(155deg, #FFFFFF 0%, #F8FAFC 55%, #FFF1F3 100%);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-subtle);
}
[dir="rtl"] .auth-brand-pane {
  border-right: none;
  border-left: 1px solid var(--border-subtle);
}
.auth-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.auth-brand-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.auth-form-pane {
  padding: 36px;
}
.auth-mobile-links {
  display: none;
}
@media (max-width: 820px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-brand-pane { border-right: none; border-left: none; border-bottom: 1px solid var(--border-subtle); padding: 24px; }
  .auth-form-pane { padding: 24px; }
  .auth-brand-links { display: none; }
  .auth-mobile-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
  }
}
