:root {
  --brand-blue: #00bdf5;
  --brand-indigo: #6268ff;
  --brand-violet: #9565ff;
  --brand-rose: #ff426f;
  --brand-gradient: linear-gradient(135deg, #00bdf5 0%, #6268ff 48%, #ff426f 100%);
  --brand-gradient-cool: linear-gradient(135deg, #00c6f7, #6c63ff 72%);
  --bg: #f1f5fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --sidebar: #07111f;
  --sidebar-soft: #101e32;
  --text: #12203b;
  --muted: #6f809d;
  --line: #e0e8f3;
  --success: #19c58c;
  --warning: #f3aa37;
  --danger: #f0526c;
  --info: #36a1f0;
  --shadow-sm: 0 7px 24px rgba(35, 54, 93, .07);
  --shadow-lg: 0 24px 70px rgba(31, 48, 86, .16);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --sidebar-width: 286px;
}

html[data-theme="dark"],
html:not([data-theme]) {
  --bg: #050a13;
  --surface: #0c1524;
  --surface-soft: #101c2e;
  --text: #f1f6ff;
  --muted: #899bb9;
  --line: #1d2b42;
  --sidebar: #050b15;
  --sidebar-soft: #0d192a;
  --shadow-sm: 0 10px 34px rgba(0, 0, 0, .28);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 79% -8%, rgba(98,104,255,.14), transparent 31%),
    radial-gradient(circle at 46% 115%, rgba(0,189,245,.08), transparent 32%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--sidebar-width);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 21px 16px 18px;
  color: #e9f0ff;
  overflow-y: auto;
  background:
    radial-gradient(circle at 3% -4%, rgba(0,189,245,.17), transparent 29%),
    radial-gradient(circle at 108% 78%, rgba(149,101,255,.14), transparent 33%),
    linear-gradient(165deg, #071221 0%, #050b15 48%, #080b1a 100%);
  border-inline-end: 1px solid rgba(124,148,190,.13);
  box-shadow: 22px 0 60px rgba(0,0,0,.15);
  transition: width .3s cubic-bezier(.2,.75,.25,1), transform .28s ease, padding .3s ease;
}
.sidebar::before { content: "</>"; position: absolute; inset-inline-end: -20px; top: 43%; color: rgba(112,151,205,.028); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 92px; font-weight: 850; letter-spacing: -18px; transform: rotate(-8deg); pointer-events: none; }
.sidebar::after { content: ""; position: absolute; width: 210px; height: 210px; inset-inline-start: -150px; bottom: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(0,189,245,.07), transparent 69%); pointer-events: none; }
.sidebar > * { position: relative; z-index: 1; }
.sidebar-brand-row { position: relative; display: flex; align-items: center; gap: 7px; }
.sidebar-brand-row .brand { min-width: 0; flex: 1; }
.sidebar-toggle { position: relative; z-index: 5; width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: #7f91ad; border: 1px solid rgba(117,145,190,.18); border-radius: 9px; background: #0c1728; box-shadow: 0 8px 22px rgba(0,0,0,.28); cursor: pointer; transition: color .2s ease, transform .3s ease, background .2s ease; }
.sidebar-toggle:hover { color: #5edaff; background: #111f34; }
.sidebar-toggle svg { width: 13px; height: 13px; }
[dir="rtl"] .sidebar-toggle svg { transform: rotate(180deg); }
.brand { display: flex; align-items: center; gap: 13px; padding: 3px 8px 19px; }
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(119,156,211,.18);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 10px 32px rgba(0,189,245,.09);
}
.brand-mark::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(0,189,245,.5), transparent 45%, rgba(255,66,111,.32)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(18,169,238,.22));
}
.brand-copy, .brand-title, .brand-subtitle, .workspace-copy, .workspace-copy strong, .workspace-copy small { display: block; }
.brand-title { font-size: 21px; font-weight: 800; letter-spacing: -.45px; }
.brand-title span { color: #39cbff; }
.brand-subtitle { color: #6f83a3; font-size: 9px; letter-spacing: 1.75px; text-transform: uppercase; margin-top: 3px; }
.workspace-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 61px;
  margin: 0 3px 13px;
  padding: 10px 11px;
  border: 1px solid rgba(116,143,187,.14);
  border-radius: 15px;
  background: linear-gradient(120deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.workspace-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; color: #61d7ff; border-radius: 11px; background: linear-gradient(135deg, rgba(0,189,245,.18), rgba(98,104,255,.2)); }
.workspace-icon svg { width: 17px; height: 17px; }
.workspace-copy { min-width: 0; flex: 1; }
.workspace-copy strong { overflow: hidden; color: #edf5ff; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.workspace-copy small { overflow: hidden; margin-top: 3px; color: #7184a4; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-chevron { color: #566b8b; }
.workspace-chevron svg { width: 14px; height: 14px; }
.nav-label { color: #50627e; font-size: 9px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; padding: 13px 13px 8px; }
.nav-list { display: grid; gap: 4px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 11px;
  color: #8191ac;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  transition: .2s ease;
}
.nav-link:hover { color: #f5f8ff; border-color: rgba(127,151,193,.1); background: rgba(255,255,255,.04); transform: translateX(2px); }
[dir="rtl"] .nav-link:hover { transform: translateX(-2px); }
.nav-link.active { color: #fff; border-color: rgba(65,193,255,.16); background: linear-gradient(110deg, rgba(0,189,245,.15), rgba(98,104,255,.12)); box-shadow: inset 0 1px rgba(255,255,255,.045), 0 10px 26px rgba(0,0,0,.12); }
.nav-link.active::before {
  content: "";
  position: absolute;
  inset-block: 11px;
  inset-inline-start: -17px;
  width: 3px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(#44d8ff, #706fff);
  box-shadow: 0 0 20px rgba(0,189,245,.9);
}
[dir="rtl"] .nav-link.active::before { border-radius: 6px 0 0 6px; }
.nav-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: rgba(255,255,255,.025); transition: .2s ease; }
.nav-icon svg { width: 17px; height: 17px; }
.nav-link.active .nav-icon { color: #63dbff; background: linear-gradient(135deg, rgba(0,189,245,.16), rgba(98,104,255,.16)); }
.nav-tooltip { display: none; }
.sidebar-spacer { flex: 1; min-height: 24px; }
.sidebar-usage { margin: 0 3px 13px; padding: 12px; border: 1px solid rgba(113,142,187,.13); border-radius: 13px; background: rgba(255,255,255,.025); }
.usage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #788ba8; font-size: 8px; }
.usage-head strong { color: #62dcff; font-size: 9px; }
.usage-bar { height: 5px; overflow: hidden; margin: 8px 0 7px; border-radius: 10px; background: rgba(255,255,255,.06); }
.usage-bar span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00bdf5, #6d68ff); box-shadow: 0 0 13px rgba(0,189,245,.3); }
.sidebar-usage small { display: block; color: #5e718e; font-size: 7px; }
.system-status { display: flex; align-items: center; gap: 8px; margin: 0 10px 11px; color: #7184a2; font-size: 9px; font-weight: 650; }
.status-pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #28d99a; box-shadow: 0 0 0 4px rgba(40,217,154,.08), 0 0 13px rgba(40,217,154,.5); }
.status-pulse::after { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(40,217,154,.34); border-radius: inherit; animation: status-ring 2.2s ease-out infinite; }
@keyframes status-ring { 0% { opacity: .8; transform: scale(.5); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
.security-card {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(102,130,177,.13);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(0,189,245,.07), rgba(98,104,255,.045));
}
.security-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -38px;
  bottom: -42px;
  border-radius: 50%;
  background: rgba(18,169,238,.13);
}
.security-head { display: flex; align-items: center; gap: 9px; color: #eaf3ff; font-size: 11px; font-weight: 750; }
.security-head svg { color: #4bd09d; }
.security-card p { margin: 7px 0 0; color: #7185a4; font-size: 9px; line-height: 1.65; }

.main-area { min-height: 100vh; margin-inline-start: var(--sidebar-width); transition: margin-inline-start .3s cubic-bezier(.2,.75,.25,1); }

body.sidebar-collapsed .sidebar { width: 88px; padding-inline: 12px; overflow: visible; }
body.sidebar-collapsed .main-area { margin-inline-start: 88px; }
body.sidebar-collapsed .sidebar-brand-row { justify-content: center; }
body.sidebar-collapsed .sidebar-brand-row .brand { flex: 0 0 auto; padding-inline: 0; }
body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .workspace-copy,
body.sidebar-collapsed .workspace-chevron,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-text,
body.sidebar-collapsed .sidebar-usage,
body.sidebar-collapsed .system-status > span:last-child,
body.sidebar-collapsed .security-head > span,
body.sidebar-collapsed .security-card p { display: none; }
body.sidebar-collapsed .brand-mark { width: 46px; height: 46px; }
body.sidebar-collapsed .sidebar-toggle { position: absolute; inset-inline-end: -22px; top: 13px; transform: rotate(180deg); }
[dir="rtl"] body.sidebar-collapsed .sidebar-toggle { transform: rotate(-180deg); }
body.sidebar-collapsed .workspace-switcher { min-height: 52px; justify-content: center; padding: 8px; }
body.sidebar-collapsed .nav-list { gap: 6px; }
body.sidebar-collapsed .nav-link { justify-content: center; padding: 0; }
body.sidebar-collapsed .nav-link.active::before { inset-inline-start: -12px; }
body.sidebar-collapsed .nav-icon { width: 38px; height: 38px; }
body.sidebar-collapsed .nav-link:hover .nav-tooltip { position: absolute; inset-inline-start: 59px; top: 50%; display: block; min-width: max-content; padding: 8px 10px; color: #eaf3ff; border: 1px solid rgba(117,146,193,.17); border-radius: 9px; background: #0e1a2c; box-shadow: 0 12px 28px rgba(0,0,0,.35); font-size: 9px; font-weight: 700; transform: translateY(-50%); }
body.sidebar-collapsed .system-status { justify-content: center; margin-inline: 0; }
body.sidebar-collapsed .security-card { width: 48px; min-height: 48px; display: grid; place-items: center; margin-inline: auto; padding: 0; }
body.sidebar-collapsed .security-head { justify-content: center; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.mobile-menu { display: none !important; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.breadcrumb-current { color: var(--text); font-weight: 700; }
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: .2s ease;
}
.icon-btn:hover { color: var(--brand-blue); border-color: rgba(18,169,238,.4); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.notification-dot { position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; background: var(--brand-rose); border: 2px solid var(--surface); border-radius: 50%; }
.language-btn { width: auto; min-width: 48px; padding: 0 11px; font-size: 12px; font-weight: 800; }
.user-menu { display: flex; align-items: center; gap: 11px; padding-inline-start: 4px; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--brand-gradient); border-radius: 13px; font-size: 13px; font-weight: 800; box-shadow: 0 8px 18px rgba(83,104,232,.22); }
.user-name { font-size: 13px; font-weight: 700; }
.user-email { margin-top: 2px; color: var(--muted); font-size: 11px; }

/* Premium application header */
.topbar {
  height: 84px;
  display: grid;
  grid-template-columns: auto minmax(250px, 430px) auto;
  padding: 0 27px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-bottom-color: color-mix(in srgb, var(--line) 86%, transparent);
  box-shadow: 0 12px 36px rgba(0,0,0,.07);
}
.topbar::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent 5%, rgba(0,189,245,.24), rgba(98,104,255,.22), transparent 95%); pointer-events: none; }
.page-context { display: flex; align-items: center; gap: 11px; }
.page-context-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: #55d5ff; border: 1px solid rgba(0,189,245,.15); border-radius: 12px; background: linear-gradient(145deg, rgba(0,189,245,.12), rgba(98,104,255,.09)); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.page-context-icon svg { width: 18px; height: 18px; }
.page-context-copy, .page-context-copy small { display: block; }
.page-context-copy .breadcrumb { font-size: 11px; }
.page-context-copy .breadcrumb svg { width: 12px; height: 12px; }
.page-context-copy small { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 650; }
.secure-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px color-mix(in srgb, var(--success) 70%, transparent); }
.header-search { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 9px; justify-self: center; padding: 0 11px 0 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--surface-soft) 88%, transparent); box-shadow: inset 0 1px rgba(255,255,255,.025); transition: .2s ease; }
[dir="rtl"] .header-search { padding: 0 13px 0 11px; }
.header-search:focus-within { color: var(--brand-blue); border-color: color-mix(in srgb, var(--brand-blue) 38%, var(--line)); box-shadow: 0 0 0 3px rgba(0,189,245,.07); }
.header-search > svg { width: 16px; height: 16px; flex: 0 0 auto; }
.header-search input { min-width: 0; flex: 1; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 10px; }
.header-search input::placeholder { color: var(--muted); opacity: .78; }
.header-search kbd { min-width: 36px; padding: 4px 6px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-family: inherit; font-size: 8px; text-align: center; box-shadow: 0 2px 0 var(--line); }
.topbar-actions { justify-self: end; }
.header-tools { display: flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-soft) 80%, transparent); }
.header-tools .icon-btn { width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; }
.header-tools .language-btn { width: auto; min-width: 39px; padding-inline: 8px; }
.user-menu { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; color: var(--text); border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 90%, transparent), color-mix(in srgb, var(--surface) 90%, transparent)); cursor: pointer; transition: .2s ease; }
[dir="rtl"] .user-menu { padding: 4px 4px 4px 8px; }
.user-menu:hover { border-color: color-mix(in srgb, var(--brand-indigo) 28%, var(--line)); background: var(--surface-soft); }
.avatar-wrap { position: relative; }
.avatar-status { position: absolute; width: 9px; height: 9px; inset-inline-end: -1px; bottom: -1px; border: 2px solid var(--surface); border-radius: 50%; background: var(--success); }
.user-details { text-align: start; }
.user-name, .user-email { display: block; }
.user-name { font-size: 11px; }
.user-email { font-size: 8px; }
.user-chevron { color: var(--muted); }
.user-chevron svg { width: 13px; height: 13px; transform: rotate(90deg); }

.content { width: 100%; max-width: none; margin: 0; padding: 32px 34px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--brand-indigo); font-size: 11px; font-weight: 800; letter-spacing: 1.15px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--brand-gradient); border-radius: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.8px; }
.page-subtitle { max-width: 670px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.btn {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(83,104,232,.35); box-shadow: var(--shadow-sm); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { color: #fff; border: 0; background: linear-gradient(115deg, var(--brand-blue), var(--brand-indigo)); box-shadow: 0 10px 22px rgba(67,102,224,.22); }
.btn-primary:hover { box-shadow: 0 14px 28px rgba(67,102,224,.30); }
.btn-dark { color: #fff; border-color: #111c30; background: #111c30; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 24%, var(--line)); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.btn-block { width: 100%; }
.btn-lg { min-height: 50px; border-radius: 14px; }

.card { background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 97%, var(--brand-indigo)), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 20px; }
.stat-card { position: relative; overflow: hidden; padding: 20px; }
.stat-card::after { content: ""; position: absolute; width: 84px; height: 84px; right: -28px; bottom: -32px; border-radius: 50%; background: rgba(83,104,232,.06); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.stat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.blue { color: #1e91e5; background: rgba(18,169,238,.10); }
.stat-icon.violet { color: #6d5fe6; background: rgba(112,71,157,.10); }
.stat-icon.green { color: #13a876; background: rgba(19,168,118,.10); }
.stat-icon.rose { color: #e54868; background: rgba(243,50,80,.09); }
.stat-trend { display: inline-flex; align-items: center; gap: 3px; color: var(--success); font-size: 10px; font-weight: 800; }
.stat-trend.neutral { color: var(--muted); }
.stat-value { margin-bottom: 5px; font-size: 25px; line-height: 1; font-weight: 800; letter-spacing: -.5px; }
.stat-label { color: var(--muted); font-size: 12px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 20px; margin-bottom: 20px; }
.panel { padding: 22px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-title { margin-bottom: 4px; font-size: 15px; }
.panel-subtitle { margin: 0; color: var(--muted); font-size: 11px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-indigo); font-size: 12px; font-weight: 750; }
.text-link svg { width: 14px; height: 14px; }
.chart-wrap { display: grid; grid-template-columns: 34px 1fr; gap: 10px; height: 232px; }
.chart-axis { height: 202px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: 10px; padding-bottom: 2px; }
.chart-body { position: relative; height: 232px; }
.chart-gridlines { position: absolute; inset: 0 0 30px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-gridlines span { border-top: 1px dashed var(--line); }
.bars { position: absolute; inset: 8px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: clamp(8px, 2vw, 24px); }
.bar-col { height: 224px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 9px; }
.bar-pair { width: 100%; height: 185px; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.bar { width: min(15px, 42%); min-height: 5px; border-radius: 6px 6px 2px 2px; transition: .25s ease; }
.bar:hover { filter: brightness(1.08); transform: scaleY(1.025); transform-origin: bottom; }
.bar.decoder { background: linear-gradient(180deg, var(--brand-blue), var(--brand-indigo)); }
.bar.encoder { background: linear-gradient(180deg, #f45c78, var(--brand-rose)); opacity: .76; }
.bar-day { color: var(--muted); font-size: 10px; }
.legend { display: flex; align-items: center; gap: 16px; margin-top: 4px; padding-inline-start: 44px; color: var(--muted); font-size: 10px; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.decoder { background: var(--brand-indigo); }
.legend-dot.encoder { background: var(--brand-rose); }

.quick-order { position: relative; overflow: hidden; color: #fff; border: 0; background: linear-gradient(145deg, #13223c, #172a49); box-shadow: var(--shadow-lg); }
.quick-order::before { content: ""; position: absolute; width: 210px; height: 210px; top: -110px; right: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(18,169,238,.28), transparent 67%); }
.quick-order::after { content: ""; position: absolute; width: 160px; height: 160px; left: -100px; bottom: -105px; border-radius: 50%; background: rgba(243,50,80,.12); }
.quick-order > * { position: relative; z-index: 1; }
.quick-logo { width: 42px; height: 42px; object-fit: contain; margin-bottom: 16px; }
.quick-order h2 { margin-bottom: 8px; font-size: 18px; }
.quick-order p { color: #96a6c0; font-size: 12px; line-height: 1.7; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.price-item span { display: block; color: #8191ad; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.price-item strong { display: block; margin-top: 4px; font-size: 17px; }
.quick-order .btn { border: 0; }

.table-card { overflow: hidden; }
.table-card .panel-head { padding: 21px 22px 0; }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { padding: 15px 22px; text-align: start; border-top: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.data-table th { color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 800; letter-spacing: .55px; text-transform: uppercase; }
.data-table td { font-weight: 600; }
.order-id { color: var(--brand-indigo); font-weight: 800; }
.service-cell { display: flex; align-items: center; gap: 10px; }
.service-mini { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; }
.service-mini svg { width: 15px; height: 15px; }
.service-mini.decoder { color: var(--brand-blue); background: rgba(18,169,238,.10); }
.service-mini.encoder { color: var(--brand-rose); background: rgba(243,50,80,.09); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.completed, .status.paid { color: var(--success); background: rgba(19,168,118,.10); }
.status.processing { color: var(--info); background: rgba(41,127,229,.10); }
.status.pending { color: var(--warning); background: rgba(233,155,36,.11); }
.status.failed { color: var(--danger); background: rgba(229,72,95,.10); }

.stepper { max-width: 780px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto 30px; }
.step { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 700; }
.step:not(:last-child)::after { content: ""; position: absolute; width: calc(100% - 72px); height: 1px; inset-inline-start: calc(50% + 34px); background: var(--line); }
.step-number { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 10px; font-weight: 800; }
.step.active { color: var(--brand-indigo); }
.step.active .step-number, .step.done .step-number { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo)); box-shadow: 0 7px 16px rgba(83,104,232,.2); }
.step.done { color: var(--text); }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 1050px; margin: 0 auto; }
.service-card { position: relative; overflow: hidden; padding: 30px; transition: .25s ease; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(83,104,232,.25); box-shadow: var(--shadow-lg); }
.service-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -100px; top: -100px; border-radius: 50%; }
.service-card.decoder::after { background: rgba(18,169,238,.09); }
.service-card.encoder::after { background: rgba(243,50,80,.07); }
.service-badge { position: absolute; top: 24px; inset-inline-end: 24px; padding: 6px 10px; color: var(--brand-indigo); background: rgba(83,104,232,.09); border-radius: 20px; font-size: 9px; font-weight: 850; letter-spacing: .75px; text-transform: uppercase; }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 17px; }
.service-icon svg { width: 27px; height: 27px; }
.decoder .service-icon { color: var(--brand-blue); background: linear-gradient(145deg, rgba(18,169,238,.14), rgba(83,104,232,.09)); }
.encoder .service-icon { color: var(--brand-rose); background: linear-gradient(145deg, rgba(243,50,80,.11), rgba(112,71,157,.09)); }
.service-card h2 { margin-bottom: 9px; font-size: 20px; }
.service-card > p { min-height: 48px; margin-bottom: 23px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.feature-list { display: grid; gap: 11px; margin: 0 0 26px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.feature-list svg { width: 15px; height: 15px; color: var(--success); flex: 0 0 auto; }
.service-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.service-price small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .7px; }
.service-price strong { display: block; margin-top: 3px; font-size: 24px; }
.service-price strong span { color: var(--muted); font-size: 10px; font-weight: 600; }

.upload-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr); gap: 22px; }
.upload-card { padding: 24px; }
.service-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.service-option { position: relative; }
.service-option input { position: absolute; opacity: 0; pointer-events: none; }
.service-option label { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: .2s ease; }
.service-option input:checked + label { border-color: var(--brand-indigo); background: rgba(83,104,232,.06); box-shadow: 0 0 0 3px rgba(83,104,232,.09); }
.radio-dot { width: 17px; height: 17px; border: 1px solid var(--line); border-radius: 50%; box-shadow: inset 0 0 0 4px var(--surface); background: var(--surface); }
.service-option input:checked + label .radio-dot { border-color: var(--brand-indigo); background: var(--brand-indigo); }
.option-copy strong { display: block; font-size: 12px; }
.option-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.dropzone { position: relative; min-height: 248px; display: grid; place-items: center; padding: 28px; text-align: center; border: 1.5px dashed color-mix(in srgb, var(--brand-indigo) 42%, var(--line)); border-radius: 18px; background: linear-gradient(145deg, rgba(18,169,238,.035), rgba(83,104,232,.045)); transition: .2s ease; }
.dropzone.dragover { border-color: var(--brand-blue); background: rgba(18,169,238,.08); transform: scale(.997); }
.dropzone-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; color: var(--brand-indigo); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.dropzone-icon svg { width: 25px; height: 25px; }
.dropzone h3 { margin-bottom: 7px; font-size: 15px; }
.dropzone p { margin-bottom: 17px; color: var(--muted); font-size: 11px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-rules { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 15px; color: var(--muted); font-size: 9px; }
.upload-rules span { display: flex; align-items: center; gap: 5px; }
.upload-rules svg { width: 12px; height: 12px; color: var(--success); }
.file-list { display: grid; gap: 9px; margin-top: 17px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.file-type { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: var(--brand-indigo); border-radius: 10px; background: rgba(83,104,232,.10); }
.file-type svg { width: 17px; height: 17px; }
.file-info { min-width: 0; flex: 1; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 750; }
.file-meta { margin-top: 3px; color: var(--muted); font-size: 9px; }
.remove-file { width: 31px; height: 31px; border: 0; border-radius: 9px; color: var(--danger); background: rgba(229,72,95,.08); cursor: pointer; }
.remove-file svg { width: 14px; height: 14px; margin: auto; }
.empty-files { display: none; padding: 14px; color: var(--muted); text-align: center; font-size: 11px; border: 1px dashed var(--line); border-radius: 12px; }
.upload-note { display: flex; gap: 10px; margin-top: 18px; padding: 13px; color: var(--muted); background: rgba(41,127,229,.07); border: 1px solid rgba(41,127,229,.13); border-radius: 13px; font-size: 10px; line-height: 1.65; }
.upload-note svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--info); }

.summary-card { position: sticky; top: 100px; padding: 24px; }
.summary-card h2 { margin-bottom: 20px; font-size: 16px; }
.summary-service { display: flex; align-items: center; gap: 12px; padding: 13px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; }
.summary-service .service-mini { flex: 0 0 auto; }
.summary-service strong { display: block; font-size: 12px; }
.summary-service small { color: var(--muted); font-size: 9px; }
.summary-lines { display: grid; gap: 13px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.summary-line { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.summary-line strong { color: var(--text); }
.summary-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 0; }
.summary-total span { font-size: 12px; font-weight: 750; }
.summary-total strong { font-size: 25px; letter-spacing: -.5px; }
.summary-total small { color: var(--muted); font-size: 9px; font-weight: 500; }
.privacy-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 13px; color: var(--muted); font-size: 9px; }
.privacy-line svg { width: 12px; height: 12px; color: var(--success); }

.invoice-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .72fr); gap: 22px; }
.invoice-card { overflow: hidden; }
.invoice-banner { position: relative; overflow: hidden; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 27px; color: #fff; background: linear-gradient(135deg, #13223c, #1d3153); }
.invoice-banner::after { content: ""; position: absolute; width: 200px; height: 200px; right: -90px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(18,169,238,.32), transparent 70%); }
.invoice-banner > * { position: relative; z-index: 1; }
.invoice-banner-label { color: #8296b6; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
.invoice-number { margin-top: 5px; font-size: 20px; font-weight: 800; }
.invoice-dates { display: grid; grid-template-columns: repeat(2, auto); gap: 30px; }
.invoice-date span { display: block; color: #8296b6; font-size: 9px; text-transform: uppercase; }
.invoice-date strong { display: block; margin-top: 5px; font-size: 11px; }
.invoice-body { padding: 26px; }
.invoice-parties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 26px; }
.party-label { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .7px; }
.party-name { margin-top: 7px; font-size: 13px; font-weight: 800; }
.party-info { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.invoice-table { width: 100%; border-collapse: collapse; }
.invoice-table th, .invoice-table td { padding: 13px 12px; text-align: start; border-bottom: 1px solid var(--line); font-size: 11px; }
.invoice-table th { color: var(--muted); background: var(--surface-soft); font-size: 9px; text-transform: uppercase; }
.invoice-table td:last-child, .invoice-table th:last-child { text-align: end; }
.invoice-totals { width: min(100%, 310px); margin: 20px 0 0 auto; }
[dir="rtl"] .invoice-totals { margin: 20px auto 0 0; }
.invoice-total-line { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; color: var(--muted); font-size: 11px; }
.invoice-total-line.grand { margin-top: 8px; padding-top: 13px; color: var(--text); border-top: 1px solid var(--line); font-size: 15px; font-weight: 800; }
.payment-card { padding: 24px; }
.payment-card h2 { margin-bottom: 6px; font-size: 16px; }
.payment-card > p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.payment-methods { display: grid; gap: 10px; margin: 19px 0; }
.payment-method { position: relative; }
.payment-method input { position: absolute; opacity: 0; pointer-events: none; }
.payment-method label { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; transition: .2s ease; }
.payment-method input:checked + label { border-color: var(--brand-indigo); background: rgba(83,104,232,.06); box-shadow: 0 0 0 3px rgba(83,104,232,.08); }
.payment-logo { width: 36px; height: 36px; display: grid; place-items: center; color: var(--brand-indigo); background: var(--surface-soft); border-radius: 10px; }
.payment-logo svg { width: 18px; height: 18px; }
.payment-copy { flex: 1; }
.payment-copy strong { display: block; font-size: 11px; }
.payment-copy small { color: var(--muted); font-size: 9px; }
.method-check { width: 16px; height: 16px; display: grid; place-items: center; color: transparent; border: 1px solid var(--line); border-radius: 50%; }
.method-check svg { width: 10px; height: 10px; }
.payment-method input:checked + label .method-check { color: #fff; border-color: var(--brand-indigo); background: var(--brand-indigo); }
.payment-total { display: flex; align-items: center; justify-content: space-between; margin: 19px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.payment-total span { color: var(--muted); font-size: 11px; }
.payment-total strong { font-size: 24px; }
.secure-payment { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 13px; color: var(--muted); font-size: 9px; }
.secure-payment svg { width: 12px; height: 12px; color: var(--success); }
.paid-state { padding: 25px 12px; text-align: center; }
.paid-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 13px; color: #fff; background: var(--success); border-radius: 50%; box-shadow: 0 12px 30px rgba(19,168,118,.22); }
.paid-icon svg { width: 26px; height: 26px; }
.paid-state h3 { margin-bottom: 7px; }
.paid-state p { color: var(--muted); font-size: 10px; }

.orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; width: 16px; height: 16px; top: 50%; inset-inline-start: 13px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.form-control { min-height: 40px; padding: 0 13px; color: var(--text); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; outline: 0; font-size: 11px; transition: .2s ease; }
.form-control:focus { border-color: var(--brand-indigo); box-shadow: 0 0 0 3px rgba(83,104,232,.1); }
.search-wrap .form-control { width: 230px; padding-inline-start: 38px; }
select.form-control { min-width: 135px; cursor: pointer; }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-state svg { width: 36px; height: 36px; margin: 0 auto 13px; color: var(--muted); }
.empty-state h3 { margin-bottom: 6px; font-size: 14px; }
.empty-state p { color: var(--muted); font-size: 11px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.pagination-info { color: var(--muted); font-size: 10px; }
.pagination-buttons { display: flex; gap: 6px; }
.page-btn { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; font-size: 10px; cursor: pointer; }
.page-btn.active { color: #fff; border-color: var(--brand-indigo); background: var(--brand-indigo); }
.page-btn svg { width: 13px; height: 13px; }

.toast-container { position: fixed; z-index: 100; inset-inline-end: 24px; bottom: 24px; display: grid; gap: 10px; }
.toast { min-width: 290px; display: flex; align-items: flex-start; gap: 11px; padding: 14px; color: #fff; background: #17233b; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; box-shadow: var(--shadow-lg); animation: toast-in .25s ease; }
.toast svg { width: 17px; height: 17px; color: #4bd09d; flex: 0 0 auto; }
.toast strong { display: block; font-size: 11px; }
.toast span { display: block; margin-top: 3px; color: #9ba9bf; font-size: 9px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 35; background: rgba(5,12,24,.55); backdrop-filter: blur(2px); }

/* Premium service selection */
.order-select-content, .upload-page-content { padding-top: 25px; }
.order-select-hero {
  position: relative;
  isolation: isolate;
  min-height: 198px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .55fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 31px 36px;
  color: #f3f7ff;
  border: 1px solid rgba(114,146,198,.17);
  border-radius: 23px;
  background: linear-gradient(118deg, #0a1729, #12233d 58%, #211d4a);
  box-shadow: 0 23px 65px rgba(0,0,0,.23), inset 0 1px rgba(255,255,255,.045);
}
.order-select-hero::before { content: ""; position: absolute; width: 360px; height: 360px; inset-inline-end: -130px; top: -210px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(98,104,255,.31), transparent 68%); }
.order-select-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, #00bdf5, #6968ff, #ff426f, transparent); opacity: .7; }
.order-hero-grid { position: absolute; inset: 0; z-index: -2; opacity: .3; background-image: linear-gradient(rgba(114,148,199,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(114,148,199,.07) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 78%); mask-image: linear-gradient(90deg, #000, transparent 78%); }
[dir="rtl"] .order-hero-grid { transform: scaleX(-1); }
.order-hero-copy { max-width: 720px; }
.order-hero-copy .eyebrow { color: #62dbff; }
.order-hero-copy h1 { margin-bottom: 10px; font-size: clamp(28px, 3.2vw, 39px); }
.order-hero-copy p { max-width: 650px; margin: 0; color: #90a3c0; font-size: 11px; line-height: 1.8; }
.pricing-assurance { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid rgba(115,145,193,.17); border-radius: 16px; background: rgba(5,13,27,.42); backdrop-filter: blur(10px); }
.assurance-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; color: #38dea2; border-radius: 12px; background: rgba(40,217,154,.1); box-shadow: inset 0 0 0 1px rgba(40,217,154,.11); }
.assurance-icon svg { width: 20px; height: 20px; }
.pricing-assurance > span:last-child, .pricing-assurance strong, .pricing-assurance small { display: block; }
.pricing-assurance strong { font-size: 11px; }
.pricing-assurance small { margin-top: 5px; color: #8295b3; font-size: 8px; line-height: 1.55; }
.premium-stepper { max-width: 850px; margin: 20px auto 22px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-sm); }
.premium-stepper .step { min-height: 42px; }
.premium-stepper .step-number { width: 31px; height: 31px; }
.premium-stepper .step-number svg { width: 14px; height: 14px; }
.premium-stepper .step:not(:last-child)::after { width: calc(100% - 84px); inset-inline-start: calc(50% + 42px); background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--brand-indigo) 30%, var(--line)), var(--line)); }
.service-grid-v2 { max-width: 1180px; gap: 17px; }
.service-card-v2 { min-width: 0; padding: 27px; border-radius: 22px; }
.service-card-v2::after { width: 250px; height: 250px; right: -150px; top: -160px; opacity: .7; }
[dir="rtl"] .service-card-v2::after { right: auto; left: -150px; }
.service-card-v2:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--brand-indigo) 30%, var(--line)); }
.service-card-v2 .service-accent { position: absolute; inset-inline: 28px; top: -1px; height: 2px; border-radius: 0 0 8px 8px; }
.service-card-v2.decoder .service-accent { background: linear-gradient(90deg, transparent, #20c9f8, #676bff, transparent); }
.service-card-v2.encoder .service-accent { background: linear-gradient(90deg, transparent, #a963ed, #ff557c, transparent); }
.service-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.service-card-v2 .service-icon { margin: 0; }
.service-card-labels { display: flex; align-items: center; gap: 8px; }
.service-card-v2 .service-number { color: color-mix(in srgb, var(--muted) 70%, transparent); font-size: 11px; font-weight: 850; letter-spacing: 1.5px; }
.service-card-v2 .service-badge { position: static; display: inline-flex; padding: 6px 9px; color: #6bddff; background: rgba(0,189,245,.08); border: 1px solid rgba(0,189,245,.13); }
.service-transform { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; margin-bottom: 22px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(120deg, color-mix(in srgb, var(--surface-soft) 92%, transparent), color-mix(in srgb, var(--brand-indigo) 4%, var(--surface-soft))); }
.transform-block { min-width: 0; padding: 9px 10px; border-radius: 10px; }
.transform-block span, .transform-block strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transform-block span { margin-bottom: 4px; color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: 1px; }
.transform-block strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.transform-input { color: #60d9ff; background: rgba(0,189,245,.075); }
.transform-output { color: #bd7fff; background: rgba(149,101,255,.075); }
.transform-arrow { width: 27px; height: 27px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.transform-arrow svg { width: 13px; height: 13px; }
[dir="rtl"] .transform-arrow svg { transform: rotate(180deg); }
.service-card-v2 h2 { margin-bottom: 8px; font-size: 21px; }
.service-card-v2 > .service-description { min-height: 44px; margin-bottom: 18px; color: var(--muted); font-size: 10px; line-height: 1.75; }
.service-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.service-meta-grid > div { padding: 11px; border-inline-start: 2px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 70%, transparent); border-radius: 0 10px 10px 0; }
[dir="rtl"] .service-meta-grid > div { border-radius: 10px 0 0 10px; }
.decoder .service-meta-grid > div:first-child { border-color: rgba(0,189,245,.48); }
.encoder .service-meta-grid > div:first-child { border-color: rgba(255,66,111,.42); }
.service-meta-grid span, .service-meta-grid strong { display: block; }
.service-meta-grid span { color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .6px; }
.service-meta-grid strong { margin-top: 5px; font-size: 9px; }
.premium-features { gap: 8px; padding: 15px 0; margin-bottom: 19px; }
.premium-features li { font-size: 10px; }
.premium-features .feature-check { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; color: var(--success); border-radius: 7px; background: color-mix(in srgb, var(--success) 9%, transparent); }
.premium-features .feature-check svg { width: 11px; height: 11px; }
.premium-service-footer { padding-top: 2px; }
.premium-service-footer .btn { min-width: 165px; }
.btn-encoder { color: #fff; border: 0; background: linear-gradient(115deg, #965dd8, #f04b75); box-shadow: 0 10px 24px rgba(213,70,125,.18); }
.btn-encoder:hover { box-shadow: 0 14px 30px rgba(213,70,125,.27); }
.order-trust-strip { max-width: 1180px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 17px auto 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 91%, transparent); box-shadow: var(--shadow-sm); }
.trust-shield { width: 39px; height: 39px; display: grid; place-items: center; color: var(--success); border-radius: 11px; background: color-mix(in srgb, var(--success) 9%, transparent); }
.trust-shield svg { width: 18px; height: 18px; }
.order-trust-strip > span:nth-child(2), .order-trust-strip strong, .order-trust-strip small { display: block; }
.order-trust-strip strong { font-size: 10px; }
.order-trust-strip small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.trust-nodes { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 8px; font-weight: 750; }
.trust-nodes span { display: flex; align-items: center; gap: 5px; }
.trust-nodes i { width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 7px color-mix(in srgb, var(--success) 60%, transparent); }

/* Premium upload */
.upload-page-hero { min-height: 177px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .75fr); align-items: center; gap: 25px; margin-bottom: 19px; padding: 28px 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(120deg, color-mix(in srgb, var(--surface) 96%, var(--brand-blue)), color-mix(in srgb, var(--surface) 96%, var(--brand-violet))); box-shadow: var(--shadow-sm); }
.upload-hero-copy h1 { margin-bottom: 9px; font-size: clamp(27px, 3vw, 36px); }
.upload-hero-copy p { max-width: 640px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.75; }
.transfer-security { padding: 14px; border: 1px solid color-mix(in srgb, var(--brand-blue) 14%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--surface-soft) 84%, transparent); }
.transfer-security-head { display: flex; align-items: center; gap: 11px; }
.transfer-lock { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: #45d8ff; border-radius: 11px; background: linear-gradient(135deg, rgba(0,189,245,.11), rgba(98,104,255,.1)); }
.transfer-lock svg { width: 18px; height: 18px; }
.transfer-security-head > span:last-child, .transfer-security strong, .transfer-security small { display: block; }
.transfer-security strong { font-size: 10px; }
.transfer-security small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.transfer-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.transfer-tags span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 7px; font-weight: 700; }
.transfer-tags i { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.upload-stepper { margin-bottom: 19px; }
.upload-layout-v2 { grid-template-columns: minmax(0, 1.48fr) minmax(320px, .7fr); gap: 19px; }
.upload-card-v2 { padding: 22px; overflow: hidden; }
.upload-card-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.upload-card-head > div { display: flex; align-items: center; gap: 10px; }
.upload-head-icon { width: 39px; height: 39px; display: grid; place-items: center; color: #55d8ff; border-radius: 11px; background: linear-gradient(135deg, rgba(0,189,245,.11), rgba(98,104,255,.09)); }
.upload-head-icon svg { width: 18px; height: 18px; }
.upload-card-head h2 { margin: 0; font-size: 13px; }
.upload-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.encrypted-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; color: var(--success); background: color-mix(in srgb, var(--success) 8%, transparent); border-radius: 20px; font-size: 8px; font-weight: 800; }
.encrypted-badge > span:first-child { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.selected-upload-service { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; border: 1px solid color-mix(in srgb, var(--brand-blue) 17%, var(--line)); border-radius: 15px; background: linear-gradient(120deg, rgba(0,189,245,.055), rgba(98,104,255,.045)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.selected-service-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; }
.selected-service-icon svg { width: 20px; height: 20px; }
.selected-service-icon.decoder { color: #55d9ff; background: rgba(0,189,245,.1); }
.selected-service-icon.encoder { color: #ff6d91; background: rgba(255,66,111,.09); }
.selected-service-copy { min-width: 0; }
.selected-service-copy small, .selected-service-copy strong, .selected-service-copy > span { display: block; }
.selected-service-copy small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .65px; text-transform: uppercase; }
.selected-service-copy strong { margin-top: 4px; font-size: 11px; }
.selected-service-copy > span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.selected-service-price { padding-inline: 14px; border-inline-start: 1px solid var(--line); text-align: end; }
.selected-service-price strong, .selected-service-price small { display: block; }
.selected-service-price strong { font-size: 15px; }
.selected-service-price small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.change-service-link { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; color: var(--brand-blue); border-radius: 9px; background: rgba(0,189,245,.07); font-size: 8px; font-weight: 800; }
.change-service-link svg { width: 11px; height: 11px; }
[dir="rtl"] .change-service-link svg { transform: rotate(180deg); }
.service-switch-v2 { gap: 9px; margin-bottom: 16px; }
.service-switch-v2 .service-option label { min-height: 67px; gap: 9px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--surface-soft) 78%, transparent); }
.service-switch-v2 .service-option input:checked + label { border-color: color-mix(in srgb, var(--brand-blue) 55%, var(--brand-indigo)); background: linear-gradient(120deg, rgba(0,189,245,.07), rgba(98,104,255,.06)); box-shadow: 0 0 0 3px rgba(0,189,245,.06); }
.option-service-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
.option-service-icon svg { width: 17px; height: 17px; }
.option-service-icon.decoder { color: #4fd8ff; background: rgba(0,189,245,.09); }
.option-service-icon.encoder { color: #ff6c8e; background: rgba(255,66,111,.08); }
.service-switch-v2 .option-copy { min-width: 0; flex: 1; }
.service-switch-v2 .option-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.option-price { color: var(--text); font-size: 11px; font-weight: 850; text-align: end; }
.option-price small { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; font-weight: 600; }
.service-switch-v2 .radio-dot { flex: 0 0 auto; }
.upload-zone-v2 { isolation: isolate; min-height: 310px; overflow: hidden; padding: 31px 24px; border-color: color-mix(in srgb, var(--brand-blue) 34%, var(--line)); border-radius: 19px; background: linear-gradient(145deg, rgba(0,189,245,.035), rgba(98,104,255,.045)); }
.upload-zone-v2.dragover { border-color: #38cdf8; background: linear-gradient(145deg, rgba(0,189,245,.09), rgba(98,104,255,.08)); box-shadow: inset 0 0 35px rgba(0,189,245,.06); }
.dropzone-grid { position: absolute; inset: 0; z-index: -2; opacity: .38; background-image: linear-gradient(rgba(99,135,185,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(99,135,185,.07) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(circle, #000, transparent 73%); mask-image: radial-gradient(circle, #000, transparent 73%); }
.dropzone-glow { position: absolute; width: 280px; height: 280px; left: 50%; top: 50%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(0,189,245,.08), transparent 68%); transform: translate(-50%,-50%); }
.upload-zone-content { position: relative; z-index: 1; }
.premium-drop-icon { position: relative; width: 68px; height: 68px; margin-bottom: 17px; color: #5bdcff; border: 1px solid rgba(0,189,245,.16); border-radius: 20px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 95%, var(--brand-blue)), var(--surface)); box-shadow: 0 15px 36px rgba(0,0,0,.18), 0 0 35px rgba(0,189,245,.08); }
.premium-drop-icon svg { position: relative; z-index: 2; width: 27px; height: 27px; }
.drop-orbit { position: absolute; inset: -9px; border: 1px dashed rgba(98,104,255,.24); border-radius: 25px; animation: drop-spin 14s linear infinite; }
@keyframes drop-spin { to { transform: rotate(360deg); } }
.upload-zone-v2 h3 { font-size: 16px; }
.upload-zone-v2 p { font-size: 10px; }
.upload-zone-v2 .upload-rules { margin-top: 17px; }
.file-list-v2 .file-item { border-color: color-mix(in srgb, var(--brand-indigo) 11%, var(--line)); background: linear-gradient(120deg, var(--surface-soft), color-mix(in srgb, var(--surface-soft) 96%, var(--brand-blue))); }
.summary-card-v2 { top: 104px; padding: 0; overflow: hidden; }
.summary-v2-head { position: relative; overflow: hidden; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 19px; color: #f2f7ff; background: linear-gradient(125deg, #111f37, #22234e); }
.summary-v2-head::after { content: ""; position: absolute; width: 150px; height: 150px; inset-inline-end: -70px; top: -90px; border-radius: 50%; background: rgba(0,189,245,.13); }
.summary-v2-head > div { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.summary-head-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #5bdcff; border-radius: 11px; background: rgba(0,189,245,.11); }
.summary-head-icon svg { width: 18px; height: 18px; }
.summary-v2-head small { display: block; color: #758aaa; font-size: 7px; letter-spacing: .7px; }
.summary-v2-head h2 { margin: 4px 0 0; font-size: 14px; }
.summary-live { position: relative; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 5px 7px; color: #4de0a7; border: 1px solid rgba(77,224,167,.13); border-radius: 20px; background: rgba(77,224,167,.07); font-size: 7px; font-weight: 850; }
.summary-live i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.summary-v2-body { padding: 19px; }
.summary-section-label { margin-bottom: 8px; color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.summary-card-v2 .summary-service { padding: 11px; }
.summary-card-v2 .summary-service > span:nth-child(2) { min-width: 0; flex: 1; }
.summary-check { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--success); }
.summary-check svg { width: 11px; height: 11px; }
.pipeline-label { margin-top: 18px; }
.mini-pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; margin: 0 -3px 18px; }
.pipeline-step { min-width: 0; display: grid; justify-items: center; gap: 6px; text-align: center; }
.pipeline-step > span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.pipeline-step.active > span { color: #59d9ff; border-color: rgba(0,189,245,.18); background: rgba(0,189,245,.08); }
.pipeline-step svg { width: 13px; height: 13px; }
.pipeline-step small { max-width: 72px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.pipeline-line { width: 18px; margin-top: 14px; border-top: 1px dashed var(--line); }
.summary-card-v2 .summary-lines { padding: 15px 0; }
.summary-card-v2 .summary-total { padding: 17px 0; }
.summary-submit { background: var(--brand-gradient-cool); }

/* Premium invoice and checkout */
.invoice-page-content { padding-top: 25px; }
.invoice-page-hero { position: relative; isolation: isolate; min-height: 205px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr); align-items: center; gap: 30px; overflow: hidden; padding: 31px 38px; color: #f4f8ff; border: 1px solid rgba(111,143,197,.18); border-radius: 23px; background: linear-gradient(116deg, #09172a, #122440 55%, #241f50); box-shadow: 0 25px 70px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.045); }
.invoice-page-hero::before { content: "{ $ }"; position: absolute; inset-inline-start: 43%; top: 15px; z-index: -1; color: rgba(121,155,209,.035); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 120px; font-weight: 850; transform: rotate(-7deg); }
.invoice-page-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, #00bdf5, #6c68ff, #ff426f, transparent); opacity: .72; }
.invoice-hero-glow { position: absolute; width: 360px; height: 360px; inset-inline-end: -125px; top: -205px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(98,104,255,.32), transparent 68%); }
.invoice-hero-copy { max-width: 700px; }
.invoice-pending-badge { width: max-content; display: flex; align-items: center; gap: 7px; margin-bottom: 16px; padding: 6px 9px; color: #f8bd5c; border: 1px solid rgba(248,189,92,.14); border-radius: 20px; background: rgba(248,189,92,.07); font-size: 8px; font-weight: 800; }
.invoice-pending-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.invoice-hero-copy .eyebrow { color: #60d9ff; }
.invoice-hero-copy h1 { margin-bottom: 9px; font-size: clamp(29px, 3.3vw, 40px); }
.invoice-hero-copy p { max-width: 630px; margin: 0; color: #90a3c0; font-size: 10px; line-height: 1.75; }
.invoice-hero-amount { justify-self: end; min-width: 250px; padding: 18px 20px; border: 1px solid rgba(116,149,199,.18); border-radius: 17px; background: rgba(5,13,29,.45); backdrop-filter: blur(12px); box-shadow: 0 17px 38px rgba(0,0,0,.18); }
.invoice-hero-amount > span, .invoice-hero-amount > strong, .invoice-hero-amount > small { display: block; }
.invoice-hero-amount > span { color: #8094b4; font-size: 8px; font-weight: 800; letter-spacing: .65px; text-transform: uppercase; }
.invoice-hero-amount > strong { margin-top: 6px; font-size: 29px; letter-spacing: -.7px; }
.invoice-hero-amount > small { margin-top: 3px; color: #7186a6; font-size: 8px; }
.hero-payment-security { display: flex; align-items: center; gap: 6px; margin-top: 13px; padding-top: 11px; color: #46dba2; border-top: 1px solid rgba(124,150,193,.14); font-size: 8px; font-weight: 750; }
.hero-payment-security svg { width: 13px; height: 13px; }
.invoice-stepper { margin-bottom: 19px; }
.invoice-layout-v2 { grid-template-columns: minmax(0, 1.48fr) minmax(320px, .68fr); gap: 19px; align-items: start; }
.invoice-document-v2 { overflow: hidden; border-radius: 21px; }
.invoice-document-head { position: relative; overflow: hidden; min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 21px 24px; color: #f2f7ff; background: linear-gradient(120deg, #101e35, #20234b); }
.invoice-document-head::after { content: ""; position: absolute; width: 220px; height: 220px; inset-inline-end: -100px; top: -145px; border-radius: 50%; background: rgba(0,189,245,.12); }
.invoice-brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.invoice-logo { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(119,151,201,.18); border-radius: 14px; background: rgba(255,255,255,.045); }
.invoice-logo img { width: 39px; height: 39px; object-fit: contain; }
.invoice-brand strong, .invoice-brand small { display: block; }
.invoice-brand strong { font-size: 15px; }
.invoice-brand small { margin-top: 4px; color: #7186a7; font-size: 7px; letter-spacing: 1.15px; }
.invoice-doc-id { position: relative; z-index: 1; text-align: end; }
.invoice-doc-id > span, .invoice-doc-id > strong { display: block; }
.invoice-doc-id > span { color: #778cab; font-size: 7px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.invoice-doc-id > strong { margin: 5px 0 7px; font-size: 14px; }
.invoice-doc-id .status { padding: 4px 7px; font-size: 7px; }
.invoice-meta-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 78%, transparent); }
.invoice-meta-strip > div { padding: 13px 17px; border-inline-end: 1px solid var(--line); }
.invoice-meta-strip > div:last-child { border-inline-end: 0; }
.invoice-meta-strip span, .invoice-meta-strip strong { display: block; }
.invoice-meta-strip span { color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .5px; }
.invoice-meta-strip strong { margin-top: 5px; font-size: 9px; }
.invoice-body-v2 { padding: 23px; }
.invoice-parties-v2 { gap: 12px; margin-bottom: 23px; }
.party-card { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-soft) 72%, transparent); }
.party-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; color: #55d8ff; border-radius: 10px; background: rgba(0,189,245,.08); }
.party-icon.violet { color: #aa79ff; background: rgba(149,101,255,.08); }
.party-icon svg { width: 16px; height: 16px; }
.party-card .party-name { font-size: 11px; }
.party-card .party-info { font-size: 8px; }
.invoice-section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.invoice-section-head h2 { margin: 0; font-size: 12px; }
.invoice-section-head > span { display: inline-flex; align-items: center; gap: 5px; color: var(--success); font-size: 7px; font-weight: 800; }
.invoice-section-head > span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.invoice-table-wrap { border: 1px solid var(--line); border-radius: 13px; }
.invoice-table-v2 { min-width: 560px; }
.invoice-table-v2 th { border-bottom: 1px solid var(--line); }
.invoice-table-v2 th, .invoice-table-v2 td { padding: 14px; }
.invoice-service-cell { display: flex; align-items: center; gap: 9px; }
.invoice-service-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
.invoice-service-icon svg { width: 16px; height: 16px; }
.invoice-service-icon.decoder { color: #52d7ff; background: rgba(0,189,245,.09); }
.invoice-service-icon.encoder { color: #ff6c90; background: rgba(255,66,111,.08); }
.invoice-service-cell strong, .invoice-service-cell small { display: block; }
.invoice-service-cell strong { font-size: 10px; }
.invoice-service-cell small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.invoice-bottom-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, .8fr); align-items: end; gap: 25px; margin-top: 20px; }
.invoice-protection { display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--muted); border: 1px solid color-mix(in srgb, var(--success) 12%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--success) 5%, transparent); }
.invoice-protection > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: var(--success); border-radius: 10px; background: color-mix(in srgb, var(--success) 9%, transparent); }
.invoice-protection svg { width: 16px; height: 16px; }
.invoice-protection strong, .invoice-protection small { display: block; }
.invoice-protection strong { color: var(--text); font-size: 9px; }
.invoice-protection small { margin-top: 3px; font-size: 7px; line-height: 1.5; }
.invoice-totals-v2 { width: 100%; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
[dir="rtl"] .invoice-totals-v2 { margin: 0; }
.invoice-totals-v2 .invoice-total-line.grand { margin-top: 7px; }
.payment-card-v2 { position: sticky; top: 104px; padding: 22px; border-radius: 21px; }
.payment-v2-head { display: flex; align-items: flex-start; gap: 11px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.payment-lock { width: 41px; height: 41px; display: grid; place-items: center; flex: 0 0 auto; color: #55d9ff; border-radius: 12px; background: linear-gradient(135deg, rgba(0,189,245,.11), rgba(98,104,255,.1)); }
.payment-lock svg { width: 19px; height: 19px; }
.payment-v2-head h2 { margin: 2px 0 4px; font-size: 14px; }
.payment-v2-head p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.payment-methods-v2 { margin-block: 16px; }
.payment-methods-v2 .payment-method label { min-height: 65px; padding: 11px; background: color-mix(in srgb, var(--surface-soft) 75%, transparent); }
.payment-methods-v2 .payment-method input:checked + label { border-color: color-mix(in srgb, var(--brand-blue) 46%, var(--brand-indigo)); background: linear-gradient(120deg, rgba(0,189,245,.065), rgba(98,104,255,.055)); box-shadow: 0 0 0 3px rgba(0,189,245,.055); }
.crypto-logo { color: #55d9ff; background: rgba(0,189,245,.08); }
.card-logo { color: #aa79ff; background: rgba(149,101,255,.08); }
.payment-benefits { display: grid; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.payment-benefits > div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 8px; }
.payment-benefits > div > span:first-child { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; color: var(--success); border-radius: 6px; background: color-mix(in srgb, var(--success) 8%, transparent); }
.payment-benefits svg { width: 10px; height: 10px; }
.payment-total-v2 { margin: 17px 0; padding: 14px 0; }
.payment-total-v2 strong { font-size: 26px; }
.payment-submit-v2 { background: var(--brand-gradient-cool); box-shadow: 0 13px 28px rgba(61,102,233,.24); }
.secure-payment-v2 { margin-top: 11px; }

/* Support ticket workspace */
.support-page-content { padding-top: 25px; }
.support-hero { position: relative; isolation: isolate; min-height: 215px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .7fr); align-items: center; gap: 30px; overflow: hidden; margin-bottom: 19px; padding: 32px 37px; color: #f3f8ff; border: 1px solid rgba(111,143,195,.18); border-radius: 23px; background: linear-gradient(116deg, #09172a, #112641 57%, #211f4c); box-shadow: 0 25px 70px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.045); }
.support-hero::before { content: "?"; position: absolute; inset-inline-end: 31%; top: -63px; z-index: -1; color: rgba(124,157,207,.035); font-size: 240px; font-weight: 900; transform: rotate(9deg); }
.support-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, #00bdf5, #6c68ff, #ff426f, transparent); opacity: .7; }
.support-hero-glow { position: absolute; width: 370px; height: 370px; inset-inline-end: -130px; top: -210px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(98,104,255,.31), transparent 68%); }
.support-hero-copy { max-width: 680px; }
.support-hero-copy .eyebrow { color: #60d9ff; }
.support-hero-copy h1 { margin-bottom: 9px; font-size: clamp(29px, 3.3vw, 40px); }
.support-hero-copy p { max-width: 620px; margin-bottom: 19px; color: #90a3c0; font-size: 10px; line-height: 1.75; }
.support-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; border: 1px solid rgba(118,148,195,.17); border-radius: 17px; background: rgba(5,13,28,.42); backdrop-filter: blur(12px); }
.support-metrics > div { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px; border-inline-end: 1px solid rgba(119,148,193,.12); }
.support-metrics > div:last-child { border-inline-end: 0; }
.support-metric-icon { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
.support-metric-icon svg { width: 15px; height: 15px; }
.support-metric-icon.blue { color: #55d9ff; background: rgba(0,189,245,.1); }
.support-metric-icon.green { color: #43dda3; background: rgba(40,217,154,.1); }
.support-metric-icon.violet { color: #ac7bff; background: rgba(149,101,255,.1); }
.support-metrics strong, .support-metrics small { display: block; }
.support-metrics strong { overflow: hidden; color: #f3f7ff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.support-metrics small { margin-top: 3px; color: #7185a4; font-size: 7px; line-height: 1.35; }
.support-workspace { display: grid; grid-template-columns: minmax(315px, .62fr) minmax(0, 1.38fr); gap: 19px; align-items: start; }
.ticket-list-panel, .ticket-thread-panel { overflow: hidden; border-radius: 20px; }
.ticket-list-head { padding: 15px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 66%, transparent); }
.ticket-search { min-height: 41px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.ticket-search:focus-within { border-color: color-mix(in srgb, var(--brand-blue) 38%, var(--line)); box-shadow: 0 0 0 3px rgba(0,189,245,.06); }
.ticket-search svg { width: 15px; height: 15px; color: var(--muted); }
.ticket-search input { min-width: 0; flex: 1; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 9px; }
.ticket-filters { display: flex; gap: 5px; margin-top: 10px; }
.ticket-filters button { min-height: 29px; padding: 0 9px; color: var(--muted); border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 8px; font-weight: 750; cursor: pointer; }
.ticket-filters button.active { color: #fff; border-color: rgba(0,189,245,.14); background: linear-gradient(120deg, rgba(0,189,245,.14), rgba(98,104,255,.12)); }
.ticket-list { display: grid; }
.ticket-item { position: relative; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 14px 15px; color: var(--text); text-align: start; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; transition: background .2s ease, box-shadow .2s ease; }
.ticket-item:last-child { border-bottom: 0; }
.ticket-item:hover { background: color-mix(in srgb, var(--brand-indigo) 4%, var(--surface-soft)); }
.ticket-item.active { background: linear-gradient(110deg, rgba(0,189,245,.065), rgba(98,104,255,.045)); box-shadow: inset 3px 0 #32caf6; }
[dir="rtl"] .ticket-item.active { box-shadow: inset -3px 0 #32caf6; }
.ticket-category-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; }
.ticket-category-icon svg { width: 16px; height: 16px; }
.ticket-category-icon.technical { color: #56d9ff; background: rgba(0,189,245,.09); }
.ticket-category-icon.upload { color: #a97bff; background: rgba(149,101,255,.09); }
.ticket-category-icon.billing { color: #ff7192; background: rgba(255,66,111,.08); }
.ticket-category-icon.compatibility { color: #45dda4; background: rgba(40,217,154,.08); }
.ticket-item-copy { min-width: 0; }
.ticket-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ticket-item-top strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-item-top time { color: var(--muted); font-size: 7px; }
.ticket-item-meta { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--muted); font-size: 7px; }
.ticket-item-meta i { opacity: .5; }
.ticket-preview { display: -webkit-box; overflow: hidden; margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.ticket-item-status { grid-column: 2; width: max-content; margin-top: 3px; padding: 4px 6px; border-radius: 20px; font-size: 7px; font-weight: 800; }
.ticket-item-status.open { color: var(--info); background: rgba(41,127,229,.09); }
.ticket-item-status.answered { color: var(--success); background: rgba(40,217,154,.09); }
.ticket-item-status.closed { color: var(--muted); background: var(--surface-soft); }
.ticket-thread-panel { min-width: 0; }
.thread-head { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, color-mix(in srgb, var(--surface-soft) 75%, transparent), color-mix(in srgb, var(--brand-indigo) 4%, var(--surface))); }
.thread-title { min-width: 0; display: flex; align-items: center; gap: 11px; }
.thread-status-icon { width: 41px; height: 41px; display: grid; place-items: center; flex: 0 0 auto; color: #55d9ff; border-radius: 12px; background: rgba(0,189,245,.09); }
.thread-status-icon svg { width: 18px; height: 18px; }
.thread-id { display: block; color: var(--brand-blue); font-size: 7px; font-weight: 800; letter-spacing: .5px; }
.thread-title h2 { overflow: hidden; margin: 4px 0 0; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.thread-info-bar { display: grid; grid-template-columns: 1.25fr .8fr .8fr .8fr; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 62%, transparent); }
.thread-info-bar > div { padding: 11px 14px; border-inline-end: 1px solid var(--line); }
.thread-info-bar > div:last-child { border-inline-end: 0; }
.thread-info-bar span, .thread-info-bar strong { display: block; }
.thread-info-bar span { color: var(--muted); font-size: 7px; }
.thread-info-bar strong { overflow: hidden; margin-top: 4px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.thread-security { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 17px 0; padding: 8px 10px; color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 11%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--success) 4%, transparent); font-size: 7px; }
.thread-security svg { width: 12px; height: 12px; }
.thread-messages { display: grid; gap: 18px; padding: 21px; }
.message-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 9px; }
.message-row > div { max-width: min(86%, 670px); }
.user-message > div { justify-self: end; }
.user-message { grid-template-columns: minmax(0, 1fr) auto; }
.user-message .message-avatar { grid-column: 2; }
.user-message > div { grid-column: 1; grid-row: 1; }
.message-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; font-size: 8px; font-weight: 850; }
.message-avatar.user { color: #fff; background: var(--brand-gradient); }
.message-avatar.agent { border: 1px solid var(--line); background: var(--surface-soft); }
.message-avatar.agent img { width: 25px; height: 25px; object-fit: contain; }
.message-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.message-meta strong { font-size: 8px; }
.message-meta time { color: var(--muted); font-size: 7px; }
.message-bubble { padding: 11px 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px 13px 13px 13px; background: var(--surface-soft); font-size: 9px; line-height: 1.65; }
.user-message .message-bubble { color: #dbe7fa; border-color: rgba(98,104,255,.15); border-radius: 13px 5px 13px 13px; background: linear-gradient(125deg, rgba(0,189,245,.09), rgba(98,104,255,.1)); }
[dir="rtl"] .message-bubble { border-radius: 13px 5px 13px 13px; }
[dir="rtl"] .user-message .message-bubble { border-radius: 5px 13px 13px 13px; }
.message-bubble p { margin: 0; }
.message-attachment { display: flex; align-items: center; gap: 6px; margin-top: 9px; padding: 7px; color: var(--text); border: 1px solid rgba(117,145,190,.13); border-radius: 8px; background: rgba(255,255,255,.025); font-size: 7px; }
.message-attachment svg { width: 12px; height: 12px; color: var(--brand-blue); }
.message-attachment small { margin-inline-start: auto; color: var(--muted); }
.reply-composer { margin: 0 17px 17px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.reply-composer textarea { width: 100%; resize: vertical; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 9px; line-height: 1.6; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.attach-action { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 750; cursor: pointer; }
.attach-action:hover { color: var(--brand-blue); }
.attach-action input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.attach-action svg { width: 14px; height: 14px; }
.ticket-dialog { width: min(92vw, 610px); padding: 0; color: var(--text); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.ticket-dialog::backdrop { background: rgba(3,8,17,.7); backdrop-filter: blur(5px); }
.dialog-head { display: flex; align-items: flex-start; gap: 11px; padding: 19px; color: #f2f7ff; background: linear-gradient(120deg, #111f37, #22234e); }
.dialog-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: #58d9ff; border-radius: 11px; background: rgba(0,189,245,.1); }
.dialog-icon svg { width: 18px; height: 18px; }
.dialog-head > span:nth-child(2) { min-width: 0; flex: 1; }
.dialog-head h2 { margin: 2px 0 5px; font-size: 14px; }
.dialog-head p { margin: 0; color: #8799b6; font-size: 8px; line-height: 1.5; }
.dialog-close { width: 29px; height: 29px; color: #8fa1bd; border: 1px solid rgba(121,148,190,.16); border-radius: 9px; background: rgba(255,255,255,.035); cursor: pointer; }
.dialog-body { display: grid; gap: 14px; padding: 19px; }
.form-label { display: grid; gap: 7px; color: var(--muted); font-size: 8px; font-weight: 750; }
.form-label .form-control { width: 100%; }
textarea.form-control { padding-block: 10px; resize: vertical; }
.dialog-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 19px; border-top: 1px solid var(--line); background: var(--surface-soft); }

/* Motion system */
@keyframes page-rise { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes header-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nav-enter { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes action-shine { 0% { transform: translateX(-150%) skewX(-20deg); } 65%,100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes gentle-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.topbar { animation: header-drop .48s ease both; }
.content > * { animation: page-rise .52s cubic-bezier(.2,.75,.25,1) both; }
.content > *:nth-child(2) { animation-delay: .06s; }
.content > *:nth-child(3) { animation-delay: .11s; }
.content > *:nth-child(4) { animation-delay: .16s; }
.content > *:nth-child(5) { animation-delay: .21s; }
.sidebar .nav-link { animation: nav-enter .38s ease both; }
.sidebar .nav-link:nth-child(2) { animation-delay: .035s; }
.sidebar .nav-link:nth-child(3) { animation-delay: .07s; }
.sidebar .nav-link:nth-child(4) { animation-delay: .105s; }
.sidebar .nav-link:nth-child(5) { animation-delay: .14s; }
.sidebar .nav-link:nth-child(6) { animation-delay: .175s; }
.sidebar .nav-link:nth-child(7) { animation-delay: .21s; }
.btn-primary, .btn-encoder, .payment-submit-v2 { position: relative; overflow: hidden; }
.btn-primary::after, .btn-encoder::after, .payment-submit-v2::after { content: ""; position: absolute; width: 32%; height: 180%; left: -60%; top: -40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent); transform: translateX(-150%) skewX(-20deg); pointer-events: none; }
.btn-primary:hover::after, .btn-encoder:hover::after, .payment-submit-v2:hover::after { animation: action-shine .9s ease; }
.hero-chip-top { animation: gentle-float 4.2s ease-in-out infinite; }
.hero-chip-bottom { animation: gentle-float 4.7s ease-in-out .5s infinite; }
.premium-drop-icon { animation: gentle-float 3.8s ease-in-out infinite; }

/* Dashboard v2 */
.dashboard-content { padding-top: 25px; }
.dashboard-hero {
  position: relative;
  isolation: isolate;
  min-height: 318px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  margin-bottom: 19px;
  padding: 37px 46px;
  color: #f4f8ff;
  border: 1px solid rgba(119,148,203,.17);
  border-radius: 26px;
  background:
    linear-gradient(112deg, rgba(8,20,38,.97), rgba(13,27,49,.94) 54%, rgba(24,25,63,.93)),
    #0a1425;
  box-shadow: 0 28px 80px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.05);
}
.dashboard-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; z-index: 4; background: linear-gradient(90deg, transparent, rgba(0,189,245,.7), rgba(98,104,255,.8), rgba(255,66,111,.55), transparent); }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .34; background-image: linear-gradient(rgba(118,150,201,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(118,150,201,.08) 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%); mask-image: linear-gradient(90deg, #000, transparent 72%); }
[dir="rtl"] .hero-grid { transform: scaleX(-1); }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.hero-glow-one { width: 390px; height: 390px; inset-inline-end: -80px; top: -175px; background: radial-gradient(circle, rgba(98,104,255,.31), transparent 67%); }
.hero-glow-two { width: 270px; height: 270px; inset-inline-start: 23%; bottom: -210px; background: radial-gradient(circle, rgba(0,189,245,.2), transparent 70%); }
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.hero-badge { width: max-content; display: flex; align-items: center; gap: 8px; margin-bottom: 23px; padding: 7px 11px; color: #9fb0cb; border: 1px solid rgba(124,152,196,.17); border-radius: 30px; background: rgba(255,255,255,.035); font-size: 9px; font-weight: 750; letter-spacing: .35px; }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #28d99a; box-shadow: 0 0 13px rgba(40,217,154,.7); }
.hero-eyebrow { margin-bottom: 10px; color: #68dbff; }
.dashboard-hero h1 { max-width: 620px; margin-bottom: 12px; font-size: clamp(30px, 3.6vw, 45px); line-height: 1.12; letter-spacing: -1.35px; }
.dashboard-hero p { max-width: 610px; margin-bottom: 23px; color: #8fa2c0; font-size: 12px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--brand-gradient-cool); box-shadow: 0 14px 34px rgba(66,101,243,.26); }
.btn-hero-secondary { color: #c4d0e3; border-color: rgba(128,155,198,.2); background: rgba(255,255,255,.045); box-shadow: none; }
.btn-hero-secondary:hover { color: #fff; border-color: rgba(78,204,255,.32); background: rgba(255,255,255,.075); box-shadow: none; }
.hero-visual { position: relative; min-height: 250px; display: grid; place-items: center; }
.hero-core { position: relative; z-index: 2; width: 118px; height: 118px; display: grid; place-items: center; border: 1px solid rgba(97,203,255,.34); border-radius: 35px; background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035)); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 24px 64px rgba(0,0,0,.34), 0 0 50px rgba(0,189,245,.08); transform: rotate(8deg); }
.hero-core::after { content: ""; position: absolute; inset: -9px; border: 1px solid rgba(98,104,255,.15); border-radius: 42px; }
.hero-core img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 14px 25px rgba(0,189,245,.23)); transform: rotate(-8deg); }
.hero-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(113,148,203,.14); }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.orbit-one { width: 218px; height: 218px; animation: orbit-spin 16s linear infinite; }
.orbit-one::before { width: 9px; height: 9px; left: 24px; top: 31px; background: #45d7ff; box-shadow: 0 0 18px rgba(69,215,255,.7); }
.orbit-one::after { width: 6px; height: 6px; right: 12px; bottom: 62px; background: #7776ff; box-shadow: 0 0 16px rgba(119,118,255,.75); }
.orbit-two { width: 286px; height: 286px; border-style: dashed; opacity: .62; animation: orbit-spin 26s linear infinite reverse; }
.orbit-two::before { width: 7px; height: 7px; right: 43px; top: 35px; background: #ff5d83; box-shadow: 0 0 16px rgba(255,93,131,.7); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.hero-chip { position: absolute; z-index: 3; min-width: 147px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid rgba(119,148,195,.17); border-radius: 13px; background: rgba(7,16,31,.74); backdrop-filter: blur(12px); box-shadow: 0 16px 36px rgba(0,0,0,.26); }
.hero-chip-top { top: 26px; inset-inline-end: 0; }
.hero-chip-bottom { bottom: 19px; inset-inline-start: 0; }
.hero-chip > span:last-child, .hero-chip strong, .hero-chip small { display: block; }
.hero-chip strong { color: #edf5ff; font-size: 11px; }
.hero-chip small { margin-top: 2px; color: #7589a8; font-size: 8px; }
.chip-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; }
.chip-icon svg { width: 15px; height: 15px; }
.chip-icon.green { color: #35dfa2; background: rgba(40,217,154,.11); }
.chip-icon.blue { color: #50d5ff; background: rgba(0,189,245,.11); }

.dashboard-stats { gap: 14px; margin-bottom: 19px; }
.premium-stat { min-height: 154px; padding: 18px; border-color: color-mix(in srgb, var(--line) 86%, transparent); transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease; }
.premium-stat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand-indigo) 30%, var(--line)); box-shadow: var(--shadow-lg); }
.premium-stat::before { content: ""; position: absolute; inset-inline: 20px; top: -1px; height: 2px; border-radius: 0 0 4px 4px; opacity: .8; }
.premium-stat.stat-blue::before { background: linear-gradient(90deg, transparent, #26c8fb, transparent); }
.premium-stat.stat-violet::before { background: linear-gradient(90deg, transparent, #8078ff, transparent); }
.premium-stat.stat-green::before { background: linear-gradient(90deg, transparent, #24ce94, transparent); }
.premium-stat.stat-rose::before { background: linear-gradient(90deg, transparent, #ff5c82, transparent); }
.premium-stat .stat-top { margin-bottom: 12px; }
.stat-data { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sparkline { width: 82px; height: 34px; overflow: visible; }
.sparkline .spark-stroke { fill: none; stroke-width: 2; stroke-linecap: round; }
.sparkline .spark-area { opacity: .14; }
.blue-line .spark-stroke { stroke: #29c8f7; } .blue-line .spark-area { fill: #29c8f7; }
.violet-line .spark-stroke { stroke: #8078ff; } .violet-line .spark-area { fill: #8078ff; }
.rose-line .spark-stroke { stroke: #ff5c82; } .rose-line .spark-area { fill: #ff5c82; }
.mini-ring { width: 42px; height: 42px; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(#22cd93 0 98.7%, var(--line) 98.7%); }
.mini-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.mini-ring span { position: relative; z-index: 1; color: var(--muted); font-size: 8px; font-weight: 800; }

.dashboard-grid-v2 { grid-template-columns: minmax(0, 1.55fr) minmax(320px, .72fr); gap: 19px; }
.activity-panel { position: relative; overflow: hidden; min-height: 398px; padding: 23px; }
.activity-panel::after { content: ""; position: absolute; width: 260px; height: 260px; left: -150px; bottom: -190px; border-radius: 50%; background: rgba(0,189,245,.045); pointer-events: none; }
.panel-title-row { display: flex; align-items: center; gap: 9px; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); border-radius: 20px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.live-badge > span:first-child { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.period-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.period-switch button { min-width: 55px; height: 28px; padding: 0 8px; color: var(--muted); border: 0; border-radius: 7px; background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.period-switch button.active { color: #fff; background: linear-gradient(135deg, #313e64, #3a3b78); box-shadow: 0 5px 12px rgba(0,0,0,.15); }
.activity-panel .chart-wrap { height: 260px; }
.activity-panel .chart-axis { height: 228px; }
.activity-panel .chart-body { height: 260px; }
.activity-panel .chart-gridlines { bottom: 30px; }
.activity-panel .bars { inset-block-start: 8px; }
.activity-panel .bar-col { height: 252px; }
.activity-panel .bar-pair { height: 212px; gap: 6px; }
.activity-panel .bar { width: min(17px, 42%); }
.activity-panel .bar.decoder { box-shadow: 0 6px 16px rgba(0,189,245,.16); background: linear-gradient(180deg, #32d0ff, #5f68ff); }
.activity-panel .bar.encoder { box-shadow: 0 6px 16px rgba(255,66,111,.12); background: linear-gradient(180deg, #ff6b8e, #b658c7); }

.dashboard-side-stack { display: grid; grid-template-rows: 1fr auto; gap: 14px; }
.active-process { padding: 22px; }
.active-process .panel-head { margin-bottom: 17px; }
.process-order { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.process-order > span:nth-child(2), .process-order strong, .process-order small { display: block; }
.process-order > span:nth-child(2) { min-width: 0; flex: 1; }
.process-order strong { font-size: 11px; }
.process-order small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.process-count { width: 25px; height: 25px; display: grid; place-items: center; color: #6ddfff; border: 1px solid rgba(0,189,245,.16); border-radius: 8px; background: rgba(0,189,245,.08); font-size: 9px; font-weight: 800; }
.process-meter-head { display: flex; align-items: center; justify-content: space-between; margin: 19px 0 8px; color: var(--muted); font-size: 9px; }
.process-meter-head strong { color: #62d9ff; font-size: 10px; }
.process-meter { height: 7px; overflow: hidden; border-radius: 10px; background: var(--surface-soft); }
.process-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00bdf5, #6d67ff); box-shadow: 0 0 18px rgba(0,189,245,.32); }
.process-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.process-meta div { padding: 10px; border-inline-start: 2px solid var(--line); }
.process-meta span, .process-meta strong { display: block; }
.process-meta span { color: var(--muted); font-size: 8px; }
.process-meta strong { margin-top: 4px; font-size: 9px; }
.quick-action-card { position: relative; overflow: hidden; min-height: 83px; display: flex; align-items: center; gap: 12px; padding: 14px 15px; color: #fff; border: 1px solid rgba(116,141,195,.18); border-radius: var(--radius); background: linear-gradient(120deg, #172543, #24244f); box-shadow: var(--shadow-sm); }
.quick-action-card::after { content: ""; position: absolute; width: 120px; height: 120px; inset-inline-end: -56px; top: -63px; border-radius: 50%; background: rgba(0,189,245,.11); }
.quick-action-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; color: #60dbff; border-radius: 12px; background: rgba(0,189,245,.1); }
.quick-action-icon svg { width: 20px; height: 20px; }
.quick-action-copy { min-width: 0; flex: 1; position: relative; z-index: 1; }
.quick-action-copy span, .quick-action-copy strong { display: block; }
.quick-action-copy span { overflow: hidden; color: #93a5c1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.quick-action-copy strong { margin-top: 4px; font-size: 13px; }
.quick-action-copy small { color: #7185a5; font-size: 8px; }
.quick-action-card > a { position: relative; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: linear-gradient(135deg, #00bdf5, #6868ff); box-shadow: 0 8px 18px rgba(67,103,240,.24); }
.quick-action-card > a svg { width: 15px; height: 15px; }
.premium-table { border-color: color-mix(in srgb, var(--line) 90%, transparent); }
.premium-table .data-table tbody tr { transition: background .18s ease; }
.premium-table .data-table tbody tr:hover { background: color-mix(in srgb, var(--brand-indigo) 4%, transparent); }

/* Readability, full-canvas layout and richer upload motion */
.service-grid-v2, .order-trust-strip { width: 100%; max-width: none; }
.page-subtitle, .order-hero-copy p, .upload-hero-copy p, .invoice-hero-copy p, .support-hero-copy p { font-size: 14px; line-height: 1.75; }
.eyebrow { font-size: 12px; }
.panel-subtitle, .stat-label { font-size: 13px; }
.btn { min-height: 46px; font-size: 14px; }
.btn-lg { min-height: 52px; }
.form-control { min-height: 46px; font-size: 13px; }
.data-table th { font-size: 11px; }
.data-table td { font-size: 13px; }
.status { font-size: 11px; }
.page-context-copy .breadcrumb { font-size: 13px; }
.page-context-copy small, .header-search input { font-size: 11px; }
.user-name { font-size: 13px; }
.user-email { font-size: 11px; }
.workspace-copy strong { font-size: 12px; }
.workspace-copy small, .nav-label, .system-status, .security-card p { font-size: 10px; }
.usage-head, .sidebar-usage small { font-size: 10px; }
.usage-head strong { font-size: 11px; }
.nav-tooltip { font-size: 11px; }
.stat-trend, .chart-axis, .bar-day, .legend { font-size: 11px; }
.step { font-size: 13px; }
.service-card-v2 > .service-description { font-size: 13px; line-height: 1.7; }
.transform-block span { font-size: 10px; }
.transform-block strong { font-size: 12px; }
.service-meta-grid span { font-size: 10px; }
.service-meta-grid strong { font-size: 12px; }
.premium-features li, .order-trust-strip strong { font-size: 12px; }
.order-trust-strip small, .trust-nodes, .pricing-assurance small { font-size: 11px; }
.pricing-assurance strong { font-size: 13px; }
.service-badge, .service-price small, .service-price strong span { font-size: 11px; }
.transfer-security strong { font-size: 13px; }
.transfer-security small, .upload-card-head p { font-size: 11px; }
.transfer-tags span, .encrypted-badge { font-size: 10px; }
.selected-service-copy small, .selected-service-price small { font-size: 10px; }
.selected-service-copy strong { font-size: 13px; }
.selected-service-copy > span, .change-service-link { font-size: 11px; }
.upload-zone-v2 h3 { font-size: 19px; }
.upload-zone-v2 p, .upload-rules { font-size: 12px; }
.file-name { font-size: 13px; }
.file-meta, .privacy-line, .summary-service small { font-size: 11px; }
.empty-files, .summary-line { font-size: 13px; }
.upload-note { font-size: 12px; }
.summary-v2-head small, .summary-live, .summary-section-label, .pipeline-step small { font-size: 10px; }
.invoice-pending-badge, .invoice-hero-amount > span, .invoice-hero-amount > small, .hero-payment-security { font-size: 11px; }
.invoice-brand small, .invoice-doc-id > span, .invoice-doc-id .status { font-size: 10px; }
.invoice-meta-strip span { font-size: 10px; }
.invoice-meta-strip strong { font-size: 12px; }
.party-label { font-size: 10px; }
.party-card .party-name { font-size: 13px; }
.party-card .party-info { font-size: 11px; }
.invoice-section-head h2 { font-size: 14px; }
.invoice-section-head > span { font-size: 10px; }
.invoice-table th { font-size: 11px; }
.invoice-table td { font-size: 13px; }
.invoice-service-cell strong { font-size: 12px; }
.invoice-service-cell small { font-size: 10px; }
.invoice-protection strong { font-size: 12px; }
.invoice-protection small, .payment-v2-head p, .payment-benefits > div { font-size: 11px; }
.payment-copy strong { font-size: 13px; }
.payment-copy small { font-size: 11px; }
.support-metrics small { font-size: 10px; }
.ticket-search input { font-size: 12px; }
.ticket-filters button { min-height: 35px; font-size: 11px; }
.ticket-item-top strong { font-size: 13px; }
.ticket-item-top time, .ticket-item-meta, .ticket-item-status { font-size: 10px; }
.ticket-preview { font-size: 11px; }
.thread-id, .thread-info-bar span, .thread-security { font-size: 10px; }
.thread-info-bar strong { font-size: 11px; }
.message-avatar { font-size: 10px; }
.message-meta strong, .message-meta time { font-size: 10px; }
.message-bubble { font-size: 12px; }
.message-attachment, .attach-action, .dialog-head p, .form-label { font-size: 11px; }
.reply-composer textarea { font-size: 13px; }
.hero-badge, .live-badge, .period-switch button, .process-meter-head { font-size: 11px; }
.hero-chip strong, .process-order strong, .process-meter-head strong, .process-meta strong { font-size: 12px; }
.hero-chip small, .process-order small, .process-meta span, .quick-action-copy span, .quick-action-copy small { font-size: 10px; }

@keyframes upload-scan { 0% { top: -8%; opacity: 0; } 12% { opacity: .9; } 82% { opacity: .65; } 100% { top: 106%; opacity: 0; } }
@keyframes upload-glow { 0%,100% { opacity: .48; transform: translate(-50%,-50%) scale(.88); } 50% { opacity: .95; transform: translate(-50%,-50%) scale(1.13); } }
@keyframes upload-grid-drift { to { background-position: 26px 26px; } }
@keyframes upload-code-float { 0%,100% { opacity: .46; transform: translateY(0) rotate(-4deg); } 50% { opacity: .85; transform: translateY(-9px) rotate(2deg); } }
@keyframes upload-ring-pulse { 0% { opacity: .65; transform: scale(.78); } 75%,100% { opacity: 0; transform: scale(1.38); } }
@keyframes file-reveal { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.upload-zone-v2::before { content: ""; position: absolute; z-index: 0; width: 84%; height: 2px; left: 8%; top: -8%; background: linear-gradient(90deg, transparent, rgba(0,189,245,.85), rgba(98,104,255,.75), transparent); box-shadow: 0 0 17px rgba(0,189,245,.55); animation: upload-scan 4.8s ease-in-out infinite; pointer-events: none; }
.upload-zone-v2::after { content: ".PHP   </>   .ZIP"; position: absolute; inset-inline-end: 7%; bottom: 11%; z-index: 0; color: rgba(102,205,246,.3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; animation: upload-code-float 4.2s ease-in-out infinite; pointer-events: none; }
.dropzone-grid { animation: upload-grid-drift 5s linear infinite; }
.dropzone-glow { animation: upload-glow 3.2s ease-in-out infinite; }
.premium-drop-icon::before, .premium-drop-icon::after { content: ""; position: absolute; inset: -8px; z-index: -1; border: 1px solid rgba(0,189,245,.25); border-radius: 26px; animation: upload-ring-pulse 2.8s ease-out infinite; }
.premium-drop-icon::after { animation-delay: 1.35s; }
.upload-zone-v2.dragover .premium-drop-icon { color: #fff; background: linear-gradient(145deg, rgba(0,189,245,.25), rgba(98,104,255,.22)); transform: translateY(-4px) scale(1.06); }
.upload-zone-v2.dragover::before { animation-duration: 1.35s; }
.file-list-v2 .file-item { animation: file-reveal .34s cubic-bezier(.2,.75,.25,1) both; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: auto auto; }
  .header-search { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick-order { min-height: 300px; }
  .dashboard-hero { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .75fr); padding-inline: 34px; }
  .dashboard-grid-v2 { grid-template-columns: 1fr; }
  .dashboard-side-stack { grid-template-columns: 1.2fr .8fr; grid-template-rows: auto; }
  .upload-page-hero { grid-template-columns: minmax(0, 1fr) minmax(310px, .65fr); }
  .invoice-layout-v2 { grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr); }
  .support-hero { grid-template-columns: minmax(0, 1fr) minmax(370px, .62fr); }
}

@media (max-width: 980px) {
  :root { --sidebar-width: 258px; }
  .sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  body.sidebar-collapsed .sidebar { width: var(--sidebar-width); padding: 21px 16px 18px; overflow-y: auto; }
  body.sidebar-collapsed .main-area { margin-inline-start: 0; }
  [dir="rtl"] .sidebar { transform: translateX(105%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .main-area { margin-inline-start: 0; }
  .mobile-menu { display: inline-flex !important; }
  .upload-layout, .invoice-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .order-select-hero { grid-template-columns: minmax(0, 1fr) minmax(270px, .52fr); }
  .upload-page-hero { grid-template-columns: 1fr; }
  .transfer-security { max-width: 640px; }
  .invoice-layout-v2 { grid-template-columns: 1fr; }
  .payment-card-v2 { position: static; }
  .dashboard-hero { grid-template-columns: minmax(0, 1fr) minmax(245px, .62fr); }
  .hero-chip { min-width: 132px; }
  .support-hero { grid-template-columns: 1fr; }
  .support-metrics { max-width: 680px; }
}

@media (max-width: 860px) {
  .support-workspace { grid-template-columns: 1fr; }
  .ticket-list-panel { max-height: none; }
}

@media (max-width: 720px) {
  .topbar { height: 68px; grid-template-columns: minmax(0, 1fr) auto; padding: 0 17px; }
  .content { padding: 25px 17px 38px; }
  .breadcrumb { display: none; }
  .page-context-copy { display: none; }
  .page-context-icon { width: 36px; height: 36px; }
  .header-tools { gap: 3px; padding: 2px; }
  .header-tools .icon-btn { width: 32px; height: 32px; }
  .header-tools .language-btn { min-width: 36px; }
  .user-menu { min-height: 40px; padding: 2px; border: 0; background: transparent; }
  .user-chevron { display: none; }
  .avatar { width: 36px; height: 36px; }
  .user-details { display: none; }
  .topbar-actions { gap: 7px; }
  .icon-btn { width: 37px; height: 37px; }
  .notification-btn { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .page-heading .btn { width: 100%; }
  .stats-grid, .service-grid { grid-template-columns: 1fr; }
  .service-card > p { min-height: auto; }
  .step span:last-child { display: none; }
  .step:not(:last-child)::after { width: calc(100% - 40px); inset-inline-start: calc(50% + 20px); }
  .upload-card, .summary-card, .payment-card { padding: 18px; }
  .summary-card-v2 { padding: 0; }
  .service-switch { grid-template-columns: 1fr; }
  .invoice-banner, .invoice-parties { grid-template-columns: 1fr; }
  .invoice-banner { flex-direction: column; }
  .invoice-dates { width: 100%; justify-content: space-between; }
  .invoice-body { padding: 18px; }
  .orders-toolbar { align-items: stretch; flex-direction: column; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .search-wrap { grid-column: 1 / -1; }
  .search-wrap .form-control, select.form-control { width: 100%; }
  .orders-toolbar .btn { width: 100%; }
  .chart-wrap { grid-template-columns: 28px 1fr; gap: 5px; }
  .bars { gap: 6px; }
  .legend { padding-inline-start: 33px; }
  .order-select-content, .upload-page-content { padding-top: 17px; }
  .order-select-hero { min-height: 0; grid-template-columns: 1fr; padding: 26px 23px; }
  .pricing-assurance { max-width: 520px; }
  .premium-stepper { margin-block: 15px; }
  .service-card-v2 { padding: 22px; }
  .order-trust-strip { grid-template-columns: auto minmax(0, 1fr); }
  .trust-nodes { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid var(--line); }
  .upload-page-hero { padding: 23px; }
  .upload-card-v2 { padding: 18px; }
  .upload-zone-v2 { min-height: 290px; }
  .invoice-page-content { padding-top: 17px; }
  .invoice-page-hero { grid-template-columns: 1fr; padding: 26px 23px; }
  .invoice-hero-amount { width: 100%; justify-self: stretch; }
  .invoice-meta-strip { grid-template-columns: repeat(2, 1fr); }
  .invoice-meta-strip > div:nth-child(2) { border-inline-end: 0; }
  .invoice-meta-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .invoice-bottom-row { grid-template-columns: 1fr; }
  .support-page-content { padding-top: 17px; }
  .support-hero { padding: 26px 23px; }
  .support-metrics { width: 100%; }
  .thread-info-bar { grid-template-columns: repeat(2, 1fr); }
  .thread-info-bar > div:nth-child(2) { border-inline-end: 0; }
  .thread-info-bar > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .message-row > div { max-width: 92%; }
  .dashboard-content { padding-top: 17px; }
  .dashboard-hero { min-height: 390px; grid-template-columns: 1fr; padding: 28px 23px; }
  .dashboard-hero h1 { font-size: clamp(29px, 9vw, 38px); }
  .dashboard-hero p { max-width: 92%; }
  .hero-copy { z-index: 3; }
  .hero-visual { position: absolute; width: 260px; height: 260px; min-height: 0; inset-inline-end: -105px; top: 52px; opacity: .22; }
  .hero-chip { display: none; }
  .hero-core { width: 100px; height: 100px; }
  .hero-core img { width: 72px; height: 72px; }
  .orbit-one { width: 185px; height: 185px; }
  .orbit-two { width: 245px; height: 245px; }
  .dashboard-side-stack { grid-template-columns: 1fr; }
  .activity-panel { min-height: 380px; padding: 18px; }
  .activity-panel .panel-head { align-items: flex-start; flex-direction: column; }
  .period-switch { align-self: flex-end; }
}

@media (max-width: 430px) {
  .topbar-left { gap: 6px; }
  .page-context { gap: 6px; }
  .page-context-icon { display: none; }
  .header-tools .notification-btn { display: none; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 17px; }
  .service-card { padding: 22px; }
  .service-badge { top: 19px; inset-inline-end: 19px; }
  .service-footer { align-items: stretch; flex-direction: column; }
  .service-footer .btn { width: 100%; }
  .dropzone { min-height: 230px; padding: 21px 14px; }
  .invoice-table th:nth-child(2), .invoice-table td:nth-child(2) { display: none; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .toast-container { inset-inline: 14px; bottom: 14px; }
  .toast { min-width: 0; width: 100%; }
  .service-transform { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .service-meta-grid { grid-template-columns: 1fr; }
  .premium-service-footer { align-items: stretch; flex-direction: column; }
  .premium-service-footer .btn { width: 100%; }
  .pricing-assurance { padding: 13px; }
  .trust-nodes { gap: 8px; flex-wrap: wrap; }
  .upload-page-hero { padding: 20px; }
  .transfer-tags { display: grid; grid-template-columns: 1fr; }
  .upload-card-head { align-items: flex-start; }
  .encrypted-badge { display: none; }
  .service-switch-v2 .service-option label { flex-wrap: wrap; }
  .service-switch-v2 .option-price { margin-inline-start: auto; }
  .upload-zone-v2 { min-height: 275px; padding-inline: 13px; }
  .summary-v2-body { padding: 16px; }
  .selected-upload-service { grid-template-columns: auto minmax(0, 1fr) auto; }
  .selected-service-price { padding-inline: 9px; }
  .change-service-link { grid-column: 1 / -1; justify-content: center; }
  .invoice-page-hero { padding: 22px 20px; }
  .invoice-document-head { align-items: flex-start; flex-direction: column; }
  .invoice-doc-id { width: 100%; display: flex; align-items: center; gap: 8px; justify-content: space-between; text-align: start; }
  .invoice-doc-id > strong { margin: 0; }
  .invoice-doc-id > span { display: none; }
  .invoice-body-v2 { padding: 17px; }
  .invoice-meta-strip > div { padding: 11px; }
  .invoice-table-v2 { min-width: 470px; }
  .support-hero { padding: 22px 20px; }
  .support-metrics { grid-template-columns: 1fr; }
  .support-metrics > div { border-inline-end: 0; border-bottom: 1px solid rgba(119,148,193,.12); }
  .support-metrics > div:last-child { border-bottom: 0; }
  .thread-head { align-items: flex-start; }
  .thread-title h2 { white-space: normal; }
  .thread-messages { padding: 17px 13px; }
  .message-row > div { max-width: 96%; }
  .composer-actions { align-items: stretch; flex-direction: column; }
  .composer-actions .btn { width: 100%; }
  .dialog-form-grid { grid-template-columns: 1fr; }
  .dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .dialog-actions .btn { width: 100%; }
  .dashboard-hero { min-height: 430px; }
  .hero-badge { margin-bottom: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stat-data { align-items: center; }
  .sparkline { width: 98px; }
  .process-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
