:root {
  --bg: #05070d;
  --bg-2: #090d17;
  --panel: rgba(14, 20, 34, .76);
  --panel-solid: #0d1422;
  --panel-soft: rgba(255,255,255,.045);
  --text: #f7f9ff;
  --muted: #98a4bc;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --blue: #5c7cff;
  --blue-2: #7a5cff;
  --cyan: #37d9ff;
  --green: #42d392;
  --orange: #ffb84d;
  --red: #ff657a;
  --gold: #f7cf7a;
  --shadow: 0 28px 90px rgba(0,0,0,.38);
  --shadow-soft: 0 18px 48px rgba(0,0,0,.24);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(92,124,255,.24), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(122,92,255,.18), transparent 30%),
    linear-gradient(180deg, #05070d 0%, #070b13 48%, #05070d 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 999;
}

[dir="rtl"] { direction: rtl; }
[dir="rtl"] .hero-copy,
[dir="rtl"] .section-heading,
[dir="rtl"] .card,
[dir="rtl"] .app-main { text-align: right; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea { color: var(--text); }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.stack { display: grid; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-2) 60%, var(--cyan));
  box-shadow: 0 12px 32px rgba(92,124,255,.42), inset 0 1px 0 rgba(255,255,255,.5);
  position: relative; overflow: hidden;
}
.brand-mark::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.8); border-radius: 7px; transform: rotate(45deg); }
.brand-name { font-size: 19px; }

.btn {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 14px 34px rgba(92,124,255,.32), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { box-shadow: 0 20px 44px rgba(92,124,255,.4); }
.btn-secondary { background: rgba(255,255,255,.055); border-color: var(--line); color: #eef3ff; backdrop-filter: blur(14px); }
.btn-secondary:hover { border-color: var(--line-strong); background: rgba(255,255,255,.085); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-success { background: linear-gradient(135deg, #22b573, #42d392); color: #04140d; box-shadow: 0 12px 30px rgba(66,211,146,.2); }
.btn-danger { background: rgba(255,101,122,.12); color: #ff93a3; border-color: rgba(255,101,122,.24); }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.045);
  color: #cbd5ea; font-size: 13px; font-weight: 750;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(66,211,146,.8); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(5,7,13,.88), rgba(5,7,13,.56));
  backdrop-filter: blur(20px);
}
.site-header .inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 28px; color: #aeb9cf; font-size: 14px; font-weight: 750; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover, .site-nav a.active { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; gap: 6px; padding: 5px; background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 12px; }
.language-switch a { min-width: 34px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 850; color: var(--muted); }
.language-switch a.active { color: #fff; background: rgba(255,255,255,.1); }
.mobile-menu { display: none; }

.hero { padding: 88px 0 56px; position: relative; }
.hero::before { content: ""; position: absolute; left: 50%; top: 8%; width: 680px; height: 680px; transform: translateX(-50%); background: radial-gradient(circle, rgba(83,107,255,.16), transparent 64%); filter: blur(10px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; position: relative; }
.hero-copy h1 {
  margin: 18px 0 20px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.065em;
  max-width: 780px;
}
.gradient-text { background: linear-gradient(95deg, #fff 5%, #b9c6ff 45%, #70e8ff 95%); -webkit-background-clip: text; color: transparent; }
.hero-copy p { margin: 0; max-width: 640px; color: #aab6cc; font-size: clamp(17px, 1.65vw, 21px); line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-proof { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.proof-item { display: flex; align-items: center; gap: 10px; color: #c8d1e3; font-size: 14px; }
.proof-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(66,211,146,.12); color: var(--green); border: 1px solid rgba(66,211,146,.25); }

.dashboard-showcase { position: relative; perspective: 1200px; }
.dashboard-shell {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(16,23,39,.95), rgba(8,12,21,.96));
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px;
  box-shadow: 0 45px 110px rgba(0,0,0,.52), 0 0 0 1px rgba(92,124,255,.07), inset 0 1px 0 rgba(255,255,255,.12);
  transform: rotateY(-5deg) rotateX(2deg);
}
.dashboard-shell::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.065), transparent 25%, transparent 72%, rgba(92,124,255,.07)); pointer-events: none; }
.window-bar { height: 44px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #38445b; }
.window-dots i:nth-child(1) { background: #ff6b7c; }
.window-dots i:nth-child(2) { background: #ffc45b; }
.window-dots i:nth-child(3) { background: #4bdb9a; }
.window-label { font-size: 11px; color: #75829a; font-weight: 700; }
.demo-layout { display: grid; grid-template-columns: 126px 1fr; min-height: 470px; }
.demo-sidebar { border-right: 1px solid var(--line); padding: 18px 12px; background: rgba(0,0,0,.14); }
.demo-logo { height: 24px; border-radius: 7px; background: linear-gradient(135deg, rgba(92,124,255,.72), rgba(55,217,255,.62)); margin-bottom: 22px; }
.demo-nav-line { height: 9px; border-radius: 999px; background: rgba(255,255,255,.06); margin: 12px 4px; }
.demo-nav-line.active { background: linear-gradient(90deg, rgba(92,124,255,.7), rgba(122,92,255,.25)); }
.demo-main { padding: 18px; }
.demo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.demo-title { width: 128px; height: 17px; border-radius: 7px; background: rgba(255,255,255,.15); }
.demo-avatar { width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, #202b44, #34476d); }
.demo-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.demo-kpi { min-height: 82px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.035); padding: 12px; }
.demo-kpi small { display: block; width: 45%; height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); }
.demo-kpi strong { display: block; margin-top: 14px; font-size: 21px; letter-spacing: -.04em; }
.demo-kpi:nth-child(1) strong { color: #c9d2ff; }
.demo-kpi:nth-child(2) strong { color: #85e8ff; }
.demo-kpi:nth-child(3) strong { color: #72e0aa; }
.demo-kpi:nth-child(4) strong { color: #ffd184; }
.demo-chart { height: 190px; margin-top: 12px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); padding: 14px; position: relative; overflow: hidden; }
.demo-chart-grid { position: absolute; inset: 14px; background: repeating-linear-gradient(to bottom, transparent 0 37px, rgba(255,255,255,.045) 38px); }
.demo-chart svg { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); overflow: visible; }
.demo-chart path.line { fill: none; stroke: url(#chartGradient); stroke-width: 3.4; stroke-linecap: round; filter: drop-shadow(0 6px 12px rgba(92,124,255,.38)); stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawLine 2.2s ease forwards .35s; }
.demo-chart path.area { fill: url(#areaGradient); opacity: .42; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.demo-bottom { display: grid; grid-template-columns: 1.35fr .65fr; gap: 12px; margin-top: 12px; }
.demo-list, .demo-score { min-height: 95px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); padding: 12px; }
.demo-row { height: 10px; border-radius: 99px; background: rgba(255,255,255,.065); margin: 8px 0; }
.demo-score { display: grid; place-items: center; }
.demo-score-ring { width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--green) 0 78%, rgba(255,255,255,.08) 78%); position: relative; display: grid; place-items: center; }
.demo-score-ring::after { content: "78"; position: absolute; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #111827; font-weight: 900; font-size: 13px; }
.floating-card { position: absolute; right: -28px; bottom: -28px; width: 210px; padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.15); background: rgba(15,21,35,.88); backdrop-filter: blur(18px); box-shadow: var(--shadow); animation: float 4.5s ease-in-out infinite; }
.floating-card small { color: var(--muted); }
.floating-card strong { display: block; margin-top: 8px; font-size: 25px; color: var(--green); letter-spacing: -.04em; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.logo-strip { padding: 18px 0 48px; }
.logo-strip-inner { display: flex; align-items: center; justify-content: center; gap: 42px; flex-wrap: wrap; color: #68748a; font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 92px 0; position: relative; }
.section-heading { max-width: 730px; margin-bottom: 38px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading .eyebrow { color: #8ea3ff; font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-heading h2 { margin: 12px 0 16px; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -.055em; }
.section-heading p { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 0; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  padding: 24px;
}
.card:hover { border-color: rgba(255,255,255,.14); }
.feature-card { min-height: 260px; position: relative; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -90px; bottom: -90px; background: radial-gradient(circle, rgba(92,124,255,.18), transparent 70%); }
.feature-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(92,124,255,.2), rgba(55,217,255,.09)); border: 1px solid rgba(125,150,255,.23); color: #aab9ff; margin-bottom: 32px; }
.feature-card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.03em; }
.feature-card p { color: var(--muted); line-height: 1.65; margin: 0; }

.metric-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.metric-band .inner { display: grid; grid-template-columns: repeat(4,1fr); }
.metric-band .item { padding: 34px 24px; text-align: center; border-right: 1px solid var(--line); }
.metric-band .item:last-child { border-right: 0; }
.metric-band strong { display: block; font-size: 34px; letter-spacing: -.05em; }
.metric-band span { color: var(--muted); font-size: 14px; }

.product-preview { display: grid; grid-template-columns: .82fr 1.18fr; gap: 26px; align-items: stretch; }
.product-steps { display: grid; gap: 12px; }
.product-step { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.product-step b { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.step-number { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: rgba(92,124,255,.14); color: #aebaff; font-size: 12px; }
.product-step p { color: var(--muted); line-height: 1.55; margin: 0; }
.product-panel { min-height: 450px; position: relative; overflow: hidden; }
.product-panel::before { content: ""; position: absolute; inset: -40% -10% auto; height: 320px; background: radial-gradient(circle, rgba(92,124,255,.18), transparent 66%); }

.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; min-height: 480px; }
.price-card.featured { border-color: rgba(118,138,255,.5); box-shadow: 0 24px 80px rgba(65,80,180,.22); transform: translateY(-10px); }
.price-badge { position: absolute; top: 16px; right: 16px; padding: 6px 10px; border-radius: 99px; background: rgba(92,124,255,.15); border: 1px solid rgba(92,124,255,.3); color: #bcc6ff; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.price-name { color: #c7d0e6; font-size: 14px; font-weight: 850; }
.price { margin: 18px 0 6px; font-size: 46px; letter-spacing: -.06em; font-weight: 900; }
.price small { font-size: 15px; color: var(--muted); font-weight: 700; }
.price-desc { color: var(--muted); min-height: 50px; line-height: 1.55; }
.price-list { display: grid; gap: 13px; margin: 24px 0 30px; padding: 0; list-style: none; }
.price-list li { display: flex; align-items: center; gap: 10px; color: #d7deed; }
.price-list li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(66,211,146,.12); color: var(--green); font-size: 12px; }
.price-card .btn { margin-top: auto; }

.cta-panel { padding: 54px; border-radius: 32px; text-align: center; position: relative; overflow: hidden; border: 1px solid rgba(126,145,255,.28); background: radial-gradient(circle at 50% 0, rgba(92,124,255,.2), transparent 42%), linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); box-shadow: var(--shadow); }
.cta-panel h2 { margin: 0 0 14px; font-size: clamp(34px,4.5vw,58px); letter-spacing: -.055em; }
.cta-panel p { color: var(--muted); font-size: 18px; margin: 0 auto 26px; max-width: 700px; line-height: 1.65; }

.site-footer { border-top: 1px solid var(--line); padding: 42px 0; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; font-size: 14px; }
.footer-links a:hover { color: #fff; }

/* Language gateway */
.gateway { min-height: 100vh; display: grid; place-items: center; padding: 40px 0; position: relative; overflow: hidden; }
.gateway::before { content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(92,124,255,.22), transparent 66%); top: -370px; left: 50%; transform: translateX(-50%); }
.gateway-card { width: min(760px, calc(100% - 38px)); border: 1px solid rgba(255,255,255,.14); border-radius: 34px; background: rgba(10,14,24,.78); box-shadow: 0 50px 140px rgba(0,0,0,.58); backdrop-filter: blur(22px); padding: 52px; text-align: center; position: relative; }
.gateway-card .brand { justify-content: center; margin-bottom: 30px; }
.gateway-card h1 { margin: 0 0 12px; font-size: clamp(42px,7vw,72px); letter-spacing: -.065em; }
.gateway-card > p { color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0 auto 32px; max-width: 570px; }
.language-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.language-card { padding: 22px 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.035); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.language-card:hover { transform: translateY(-5px); border-color: rgba(123,143,255,.42); background: rgba(92,124,255,.08); }
.language-card strong { display: block; font-size: 18px; }
.language-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

/* Login */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-visual { padding: 46px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.auth-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(92,124,255,.2), transparent 36%), radial-gradient(circle at 80% 80%, rgba(55,217,255,.1), transparent 30%); }
.auth-visual > * { position: relative; z-index: 1; }
.auth-message { max-width: 610px; }
.auth-message h1 { margin: 0 0 18px; font-size: clamp(42px,5vw,70px); line-height: 1.02; letter-spacing: -.06em; }
.auth-message p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.auth-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.auth-stat { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.auth-stat strong { display: block; font-size: 22px; }
.auth-stat span { color: var(--muted); font-size: 12px; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px; background: rgba(0,0,0,.08); }
.auth-card { width: min(430px,100%); }
.auth-card h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.auth-card > p { color: var(--muted); margin: 10px 0 28px; line-height: 1.55; }
.form { display: grid; gap: 16px; }
.form-group { display: grid; gap: 8px; }
.form-group label { color: #c8d1e4; font-size: 13px; font-weight: 800; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  padding: 0 15px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.textarea { min-height: 120px; padding-top: 13px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(92,124,255,.65); box-shadow: 0 0 0 4px rgba(92,124,255,.12); background: rgba(255,255,255,.06); }
.select option { background: #0e1524; color: #fff; }
.demo-logins { margin-top: 20px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.demo-logins small { display: block; color: var(--muted); margin-bottom: 10px; }
.demo-login-row { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-error { min-height: 20px; color: #ff8294; font-size: 13px; font-weight: 700; }

/* App layout */
.app-body { background: #070a11; }
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 258px 1fr; }
.app-sidebar {
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,16,27,.98), rgba(7,10,17,.98));
  padding: 20px 15px;
  display: flex; flex-direction: column;
  z-index: 30;
}
.app-sidebar .brand { padding: 4px 8px 24px; }
.sidebar-label { color: #59657a; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; padding: 16px 12px 8px; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-link {
  min-height: 45px; display: flex; align-items: center; gap: 12px;
  padding: 0 13px; border-radius: 13px;
  color: #8f9bb1; font-size: 14px; font-weight: 760;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.sidebar-link:hover { color: #e9eeff; background: rgba(255,255,255,.045); transform: translateX(2px); }
[dir="rtl"] .sidebar-link:hover { transform: translateX(-2px); }
.sidebar-link.active { color: #fff; background: linear-gradient(90deg, rgba(92,124,255,.2), rgba(92,124,255,.075)); border: 1px solid rgba(100,125,255,.18); }
.sidebar-icon { width: 22px; height: 22px; display: grid; place-items: center; color: currentColor; }
.sidebar-icon svg { width: 19px; height: 19px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.user-card { padding: 13px; border-radius: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.03); display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #2c3858, #516594); font-weight: 900; font-size: 13px; }
.user-meta { min-width: 0; }
.user-meta strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta span { color: var(--muted); font-size: 11px; }

.app-content { min-width: 0; }
.app-topbar { min-height: 74px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: rgba(7,10,17,.74); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.breadcrumbs strong { color: #e8edfb; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: #b8c2d7; font-size: 12px; font-weight: 750; }
.app-main { padding: 30px 30px 60px; max-width: 1540px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; font-size: clamp(30px,3vw,42px); letter-spacing: -.05em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.kpi-card { min-height: 148px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); position: relative; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -54px; bottom: -64px; background: radial-gradient(circle, rgba(92,124,255,.18), transparent 70%); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 750; }
.kpi-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(92,124,255,.1); color: #aebaff; }
.kpi-value { display: block; margin-top: 22px; font-size: 30px; letter-spacing: -.05em; }
.kpi-change { margin-top: 6px; color: var(--green); font-size: 12px; font-weight: 750; }

.panel { border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.018)); box-shadow: 0 18px 60px rgba(0,0,0,.16); }
.panel-header { min-height: 68px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.panel-body { padding: 20px; }
.chart-panel { min-height: 380px; }
.chart-wrap { height: 270px; position: relative; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-wrap .gridline { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.chart-wrap .chart-line { fill: none; stroke: url(#appChartGradient); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 13px rgba(92,124,255,.28)); }
.chart-wrap .chart-area { fill: url(#appAreaGradient); opacity: .36; }
.chart-labels { display: flex; justify-content: space-between; color: #667287; font-size: 11px; margin-top: 4px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th { color: #667389; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
[dir="rtl"] .table th { text-align: right; }
.table td { padding: 15px 14px; border-bottom: 1px solid rgba(255,255,255,.055); color: #d6deed; font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255,255,255,.018); }
.client-cell { display: flex; align-items: center; gap: 10px; }
.client-logo { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(92,124,255,.3), rgba(55,217,255,.16)); color: #dce3ff; font-weight: 900; }
.client-cell strong { display: block; }
.client-cell span { color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 850; border: 1px solid var(--line); }
.badge-success { color: #77e4ae; background: rgba(66,211,146,.09); border-color: rgba(66,211,146,.2); }
.badge-warning { color: #ffd285; background: rgba(255,184,77,.09); border-color: rgba(255,184,77,.2); }
.badge-danger { color: #ff91a1; background: rgba(255,101,122,.09); border-color: rgba(255,101,122,.2); }
.badge-neutral { color: #aeb9d0; background: rgba(255,255,255,.035); }

.activity-list { display: grid; gap: 3px; }
.activity-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(92,124,255,.09); color: #a9b6ff; }
.activity-copy strong { display: block; font-size: 13px; }
.activity-copy span, .activity-time { color: var(--muted); font-size: 12px; }

.ai-card { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(92,124,255,.12), rgba(122,92,255,.07) 46%, rgba(55,217,255,.05)); }
.ai-card::after { content: "AI"; position: absolute; right: 14px; bottom: -20px; font-size: 96px; font-weight: 950; color: rgba(255,255,255,.025); letter-spacing: -.08em; }
.ai-card p { color: #c1cade; line-height: 1.7; margin: 0; position: relative; z-index: 1; }

.client-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.client-card { display: grid; gap: 18px; }
.client-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.client-card h3 { margin: 0; font-size: 18px; }
.client-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.client-card-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mini-metric { padding: 12px; border-radius: 13px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.055); }
.mini-metric span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.mini-metric strong { display: block; margin-top: 5px; font-size: 16px; }

.creative-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.creative-card { overflow: hidden; padding: 0; }
.creative-preview { aspect-ratio: 1.45; background: radial-gradient(circle at 70% 30%, rgba(55,217,255,.18), transparent 30%), linear-gradient(135deg, #171f35, #0c1322 60%, #19122e); position: relative; display: grid; place-items: center; color: #cbd5ff; }
.creative-preview img { width: 100%; height: 100%; object-fit: cover; }
.creative-preview::before { content: "Meta Ad"; padding: 8px 12px; border-radius: 99px; background: rgba(5,7,13,.55); border: 1px solid rgba(255,255,255,.14); font-size: 12px; font-weight: 850; backdrop-filter: blur(10px); }
.creative-preview:has(img)::before { display: none; }
.creative-content { padding: 17px; }
.creative-content h3 { margin: 0 0 7px; font-size: 15px; }
.creative-content p { color: var(--muted); margin: 0; font-size: 12px; line-height: 1.5; }

.meta-connect { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.connection-card { min-height: 100%; }
.connection-status { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.025); margin-bottom: 18px; }
.connection-light { width: 12px; height: 12px; border-radius: 50%; background: #596579; box-shadow: 0 0 0 5px rgba(255,255,255,.03); }
.connection-light.connected { background: var(--green); box-shadow: 0 0 0 5px rgba(66,211,146,.08), 0 0 20px rgba(66,211,146,.5); }
.sync-log { display: grid; gap: 9px; margin-top: 16px; }
.sync-log-item { display: flex; justify-content: space-between; gap: 12px; color: #b8c2d7; font-size: 13px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.sync-log-item:last-child { border-bottom: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.help-text { color: var(--muted); font-size: 12px; line-height: 1.55; }

.result-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.result-box { padding: 17px; border-radius: 15px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.result-box span { display: block; color: var(--muted); font-size: 12px; }
.result-box strong { display: block; margin-top: 7px; font-size: 24px; letter-spacing: -.04em; }

.empty-state { padding: 50px 24px; text-align: center; }
.empty-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 15px; background: rgba(92,124,255,.1); color: #aab8ff; }
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { color: var(--muted); margin: 0 auto 20px; max-width: 440px; line-height: 1.6; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 300; min-width: 250px; max-width: 420px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.15); background: rgba(13,19,32,.94); box-shadow: 0 22px 70px rgba(0,0,0,.45); color: #eef3ff; transform: translateY(22px); opacity: 0; pointer-events: none; transition: .24s ease; backdrop-filter: blur(18px); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(66,211,146,.3); }
.toast.error { border-color: rgba(255,101,122,.3); }

.mobile-app-header { display: none; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dashboard-showcase { width: min(760px,100%); margin: 0 auto; }
  .product-preview { grid-template-columns: 1fr; }
  .grid-4, .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .client-card-grid, .creative-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 560px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-actions .btn { display: none; }
  .mobile-menu { display: inline-flex; }
  .app-layout { display: block; }
  .app-sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 30px 0 80px rgba(0,0,0,.5); }
  [dir="rtl"] .app-sidebar { left: auto; right: 0; transform: translateX(105%); }
  .app-sidebar.open { transform: translateX(0); }
  .mobile-app-header { display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 0 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 25; background: rgba(7,10,17,.9); backdrop-filter: blur(18px); }
  .app-topbar { display: none; }
  .app-main { padding: 22px 18px 50px; }
  .meta-connect { grid-template-columns: 1fr; }
  .metric-band .inner { grid-template-columns: repeat(2,1fr); }
  .metric-band .item:nth-child(2) { border-right: 0; }
  .metric-band .item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .site-header .inner { min-height: 68px; }
  .brand-name { font-size: 17px; }
  .language-switch { display: none; }
  .hero { padding-top: 58px; }
  .hero-copy h1 { font-size: 47px; }
  .hero-actions .btn { width: 100%; }
  .dashboard-shell { transform: none; border-radius: 21px; }
  .demo-layout { grid-template-columns: 80px 1fr; min-height: 390px; }
  .demo-sidebar { padding: 12px 8px; }
  .demo-main { padding: 11px; }
  .demo-kpis { grid-template-columns: repeat(2,1fr); }
  .demo-kpi { min-height: 66px; padding: 9px; }
  .demo-kpi strong { margin-top: 8px; font-size: 17px; }
  .demo-chart { height: 135px; }
  .floating-card { display: none; }
  .grid-2, .grid-3, .grid-4, .kpi-grid, .client-card-grid, .creative-grid, .form-grid, .result-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .section { padding: 68px 0; }
  .section-heading h2 { font-size: 39px; }
  .cta-panel { padding: 38px 20px; }
  .gateway-card { padding: 34px 20px; }
  .language-cards { grid-template-columns: 1fr; }
  .auth-visual { padding: 28px 20px; min-height: 500px; }
  .auth-stat-row { grid-template-columns: 1fr; }
  .auth-form-wrap { padding: 36px 20px; }
  .page-heading { display: grid; }
  .page-actions .btn { flex: 1; }
  .metric-band .inner { grid-template-columns: 1fr; }
  .metric-band .item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .metric-band .item:last-child { border-bottom: 0; }
  .demo-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-nav.mobile-open {
    display: grid;
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10,14,24,.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
  }
  .site-nav.mobile-open a { padding: 12px; border-radius: 12px; }
  .site-nav.mobile-open a.active { background: rgba(92,124,255,.12); }
}


/* Accessibility */
.a11y-widget { position: fixed; left: 22px; bottom: 22px; z-index: 950; font-size: 16px; }
[dir="rtl"] .a11y-widget { left: auto; right: 22px; }
.a11y-toggle { width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.2); border-radius: 17px; background: linear-gradient(145deg,#6f86ff,#4d64dc); color: white; display: grid; place-items: center; cursor: pointer; box-shadow: 0 15px 45px rgba(50,75,190,.42); transition: transform .2s ease, box-shadow .2s ease; }
.a11y-toggle:hover { transform: translateY(-3px); box-shadow: 0 20px 55px rgba(50,75,190,.55); }
.a11y-toggle svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a11y-panel { position: absolute; left: 0; bottom: 64px; width: min(330px, calc(100vw - 30px)); padding: 17px; border-radius: 20px; background: rgba(10,14,24,.97); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 25px 80px rgba(0,0,0,.58); backdrop-filter: blur(22px); }
[dir="rtl"] .a11y-panel { left: auto; right: 0; }
.a11y-panel[hidden] { display: none; }
.a11y-panel-head, .a11y-font-row, .a11y-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.a11y-panel-head { margin-bottom: 14px; }
.a11y-panel-head strong { font-size: 17px; }
.a11y-close { width: 31px; height: 31px; border: 0; border-radius: 10px; background: rgba(255,255,255,.07); color: white; font-size: 21px; cursor: pointer; }
.a11y-font-row { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.a11y-font-row span, .a11y-option span { color: #dbe3f5; font-size: 13px; }
.a11y-font-row div { display: flex; gap: 6px; }
.a11y-font-row button { min-width: 38px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: white; cursor: pointer; }
.a11y-font-row button.active { background: #657cff; border-color: #8fa0ff; }
.a11y-option { padding: 11px 2px; cursor: pointer; }
.a11y-option input { width: 19px; height: 19px; accent-color: #6f86ff; }
.a11y-reset { width: 100%; min-height: 40px; margin-top: 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); color: white; cursor: pointer; }
html.a11y-font-large { font-size: 112.5%; }
html.a11y-font-xlarge { font-size: 125%; }
html.a11y-high-contrast { --bg:#000; --panel:#000; --panel-2:#050505; --text:#fff; --muted:#fff; --line:rgba(255,255,255,.58); }
html.a11y-high-contrast body { background:#000 !important; color:#fff !important; }
html.a11y-high-contrast .panel, html.a11y-high-contrast .site-header, html.a11y-high-contrast .app-sidebar, html.a11y-high-contrast .app-topbar { border-color:#fff !important; }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-highlight-links a { outline: 3px solid #ffd84d !important; outline-offset: 3px; text-decoration: underline !important; }
html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
:focus-visible { outline: 3px solid #8fa0ff; outline-offset: 3px; }
.auth-access-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: center; }

/* Delete client confirmation */
.confirm-backdrop { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; background: rgba(1,3,8,.76); backdrop-filter: blur(13px); animation: confirmFade .18s ease both; }
.confirm-modal { width: min(440px, 100%); padding: 29px; border-radius: 24px; background: linear-gradient(160deg, rgba(21,28,46,.98), rgba(9,13,23,.98)); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 30px 100px rgba(0,0,0,.65); text-align: center; animation: confirmPop .22s ease both; }
.confirm-danger-icon { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,101,122,.12); border: 1px solid rgba(255,101,122,.28); color: #ff758a; font-size: 28px; font-weight: 900; }
.confirm-modal h2 { margin: 0 0 9px; }
.confirm-modal p { margin: 0; color: var(--muted); line-height: 1.6; }
.confirm-client-name { display: block; margin: 17px 0 21px; padding: 12px; border-radius: 13px; background: rgba(255,255,255,.04); }
.owner-password-field { margin-top: 16px; text-align: start; }
.owner-password-field + .owner-password-field { margin-top: 10px; margin-bottom: 20px; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@keyframes confirmFade { from { opacity:0; } to { opacity:1; } }
@keyframes confirmPop { from { opacity:0; transform:translateY(14px) scale(.97); } to { opacity:1; transform:none; } }

/* Premium 404 */
.error-page { min-height: 100vh; overflow: hidden; display: grid; place-items: center; position: relative; padding: 30px; background: radial-gradient(circle at 50% 30%, rgba(85,108,255,.2), transparent 33%), #05070d; }
.error-page::before, .error-page::after { content:""; position:absolute; width:420px; height:420px; border-radius:50%; filter:blur(80px); opacity:.22; animation:errorFloat 8s ease-in-out infinite; }
.error-page::before { background:#5c7cff; left:-180px; top:-130px; }
.error-page::after { background:#37d9ff; right:-190px; bottom:-160px; animation-delay:-4s; }
.error-card { width:min(760px,100%); text-align:center; position:relative; z-index:2; }
.error-code { display:flex; justify-content:center; align-items:center; gap:10px; font-size:clamp(110px,23vw,230px); font-weight:950; letter-spacing:-.11em; line-height:.82; color:#eef3ff; text-shadow:0 20px 70px rgba(92,124,255,.25); }
.error-code span { display:inline-block; animation:errorDigit 4.4s ease-in-out infinite; }
.error-code span:nth-child(2) { color:#7187ff; animation-delay:-1.4s; }
.error-code span:nth-child(3) { animation-delay:-2.8s; }
.error-orbit { width:80px; height:80px; margin:18px auto 22px; position:relative; border:1px solid rgba(255,255,255,.16); border-radius:50%; animation:errorSpin 7s linear infinite; }
.error-orbit::before { content:""; width:15px; height:15px; border-radius:50%; position:absolute; top:-7px; left:32px; background:#37d9ff; box-shadow:0 0 28px #37d9ff; }
.error-orbit::after { content:""; position:absolute; inset:16px; border:1px dashed rgba(255,255,255,.18); border-radius:50%; }
.error-card h1 { margin:0; font-size:clamp(30px,5vw,52px); letter-spacing:-.04em; }
.error-card p { max-width:570px; margin:14px auto 25px; color:var(--muted); font-size:16px; line-height:1.7; }
.error-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:11px; }
.error-mini { margin-top:30px; color:#6f7c93; font-size:12px; }
@keyframes errorDigit { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-12px) rotate(1.5deg)} }
@keyframes errorFloat { 0%,100%{transform:translate(0,0)} 50%{transform:translate(35px,25px)} }
@keyframes errorSpin { to{transform:rotate(360deg)} }

@media (max-width:680px) {
  .a11y-widget { left:14px; bottom:14px; }
  [dir="rtl"] .a11y-widget { left:auto; right:14px; }
  .a11y-toggle { width:48px; height:48px; }
  .confirm-actions { grid-template-columns:1fr; }
}


/* Gemini AI assistant */
.ai-assistant-layout { display:grid; grid-template-columns:320px minmax(0,1fr); gap:18px; min-height:680px; }
.ai-assistant-info { overflow:hidden; position:relative; background:linear-gradient(160deg,rgba(92,124,255,.13),rgba(9,13,23,.96) 58%); }
.ai-assistant-info::after { content:""; position:absolute; width:250px; height:250px; border-radius:50%; top:-130px; right:-100px; background:rgba(55,217,255,.12); filter:blur(25px); }
.ai-assistant-info .panel-body { position:relative; z-index:1; display:flex; flex-direction:column; align-items:flex-start; min-height:100%; }
.ai-assistant-info h2 { margin:20px 0 8px; font-size:27px; letter-spacing:-.04em; }
.ai-assistant-info p { margin:0 0 24px; color:var(--muted); line-height:1.7; }
.ai-orb { width:92px; height:92px; position:relative; display:grid; place-items:center; margin-bottom:20px; border-radius:30px; background:radial-gradient(circle at 35% 28%,#b6c3ff,#6178ff 42%,#21358c 75%); box-shadow:0 20px 55px rgba(76,98,230,.4), inset 0 0 30px rgba(255,255,255,.15); animation:aiOrbFloat 4.5s ease-in-out infinite; }
.ai-orb::before,.ai-orb::after { content:""; position:absolute; border-radius:50%; border:1px solid rgba(255,255,255,.3); }
.ai-orb::before { width:118px; height:45px; transform:rotate(-17deg); }
.ai-orb::after { width:46px; height:118px; transform:rotate(34deg); }
.ai-orb span { width:13px; height:13px; border-radius:50%; background:#fff; box-shadow:0 0 24px #fff; }
.ai-info-note { width:100%; padding:15px 0; border-top:1px solid rgba(255,255,255,.08); }
.ai-info-note strong,.ai-info-note span { display:block; }
.ai-info-note strong { font-size:12px; color:#dce4f8; margin-bottom:5px; }
.ai-info-note span { color:var(--muted); font-size:12px; line-height:1.55; }
.ai-chat-panel { min-width:0; display:grid; grid-template-rows:minmax(380px,1fr) auto auto; overflow:hidden; }
.ai-chat-messages { min-height:420px; max-height:590px; padding:24px; overflow:auto; display:flex; flex-direction:column; gap:16px; scroll-behavior:smooth; }
.ai-message { display:flex; gap:11px; align-items:flex-start; max-width:86%; }
.ai-message.user { align-self:flex-end; flex-direction:row-reverse; }
.ai-message-avatar { width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center; border-radius:11px; background:linear-gradient(135deg,#6f86ff,#384eb8); color:#fff; font-size:10px; font-weight:900; box-shadow:0 10px 25px rgba(55,75,180,.25); }
.ai-message.user .ai-message-avatar { background:rgba(255,255,255,.08); color:#c8d1e5; box-shadow:none; }
.ai-message-bubble { padding:13px 15px; border:1px solid rgba(255,255,255,.09); border-radius:6px 17px 17px 17px; background:rgba(255,255,255,.035); color:#dbe4f5; line-height:1.68; font-size:14px; overflow-wrap:anywhere; }
.ai-message.user .ai-message-bubble { border-radius:17px 6px 17px 17px; background:linear-gradient(135deg,rgba(92,124,255,.28),rgba(77,97,210,.2)); border-color:rgba(123,145,255,.25); color:#f4f7ff; }
.ai-message-bubble code { padding:2px 6px; border-radius:6px; background:rgba(0,0,0,.28); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.92em; }
.ai-quick-prompts { display:flex; gap:8px; overflow-x:auto; padding:13px 18px; border-top:1px solid var(--line); scrollbar-width:thin; }
.ai-quick-prompts button { flex:0 0 auto; min-height:34px; padding:0 12px; border:1px solid rgba(255,255,255,.1); border-radius:999px; background:rgba(255,255,255,.035); color:#bfc9dd; cursor:pointer; font-size:12px; transition:.18s ease; }
.ai-quick-prompts button:hover { background:rgba(92,124,255,.12); color:#fff; border-color:rgba(92,124,255,.35); transform:translateY(-1px); }
.ai-composer { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:end; padding:15px 18px 18px; border-top:1px solid var(--line); background:rgba(5,8,14,.46); }
.ai-composer textarea { width:100%; min-height:48px; max-height:150px; resize:none; padding:13px 15px; border:1px solid rgba(255,255,255,.11); border-radius:15px; background:rgba(255,255,255,.04); color:#eef3ff; font:inherit; line-height:1.5; outline:none; }
.ai-composer textarea:focus { border-color:rgba(111,134,255,.58); box-shadow:0 0 0 4px rgba(92,124,255,.1); }
.ai-composer .btn { min-height:48px; }
.ai-thinking .ai-message-bubble { display:flex; gap:5px; align-items:center; min-height:45px; }
.ai-thinking .ai-message-bubble span { width:7px; height:7px; border-radius:50%; background:#8ea0ff; animation:aiDot 1.15s ease-in-out infinite; }
.ai-thinking .ai-message-bubble span:nth-child(2){animation-delay:.15s}.ai-thinking .ai-message-bubble span:nth-child(3){animation-delay:.3s}
@keyframes aiDot { 0%,100%{opacity:.35;transform:translateY(0)} 50%{opacity:1;transform:translateY(-4px)} }
@keyframes aiOrbFloat { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-8px) rotate(2deg)} }
@media (max-width:1000px){.ai-assistant-layout{grid-template-columns:1fr}.ai-assistant-info .panel-body{min-height:auto}.ai-chat-messages{max-height:520px}}
@media (max-width:680px){.ai-assistant-layout{min-height:0}.ai-chat-messages{min-height:390px;padding:16px}.ai-message{max-width:96%}.ai-composer{grid-template-columns:1fr}.ai-composer .btn{width:100%}.ai-assistant-info{display:none}}


/* Currency search */
.currency-picker{position:relative}.currency-results{position:absolute;z-index:45;top:calc(100% - 18px);left:0;right:0;max-height:330px;overflow:auto;padding:8px;background:#0b101b;border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.5)}.currency-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;background:transparent;color:var(--text);padding:11px 12px;border-radius:10px;text-align:left;cursor:pointer}.currency-option:hover,.currency-option:focus{background:rgba(92,124,255,.14);outline:none}.currency-option strong{display:inline-block;min-width:42px;color:#8da1ff}.currency-option em{font-style:normal;color:var(--muted);font-size:18px}.currency-empty{padding:18px;color:var(--muted)}
/* Password management */
.password-list{display:grid;gap:10px}.password-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,280px) auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.02)}.password-row>div{display:grid;gap:4px}.password-row span{font-size:12px;color:var(--muted)}
/* Owner panel and support */
.tenant-client-names{font-size:11px;color:var(--muted);max-width:220px;margin-top:4px;white-space:normal}.ticket-list{display:grid;gap:10px;max-height:470px;overflow:auto}.ticket-item{display:grid;grid-template-columns:1fr auto;gap:14px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025)}.ticket-item p{margin:5px 0 0;color:var(--muted);line-height:1.55;white-space:pre-wrap}.ticket-item>span{font-size:11px;color:var(--muted);white-space:nowrap}.support-textarea{min-height:210px}
@media(max-width:760px){.password-row{grid-template-columns:1fr}.currency-results{position:fixed;left:14px;right:14px;top:20%;max-height:60vh}.ticket-item{grid-template-columns:1fr}.ticket-item>span{white-space:normal}}


/* ===== SaaS registration, plans and owner billing V4 ===== */
.signup-page main{min-height:calc(100vh - 82px);padding:70px 0 100px;background:radial-gradient(circle at 15% 10%,rgba(92,124,255,.18),transparent 34%),radial-gradient(circle at 85% 20%,rgba(55,217,255,.10),transparent 30%)}
.signup-container{width:min(1120px,calc(100% - 32px));margin:0 auto}
.signup-stepper{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:680px;margin:0 auto 32px;position:relative}
.signup-step{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;font-weight:700}
.signup-step span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#111724;border:1px solid var(--border);color:#7f8aa1}
.signup-step.active span,.signup-step.done span{background:linear-gradient(135deg,var(--primary),#37d9ff);color:#fff;border-color:transparent;box-shadow:0 8px 24px rgba(92,124,255,.28)}
.signup-step.active b,.signup-step.done b{color:var(--text)}
.signup-heading{text-align:center;max-width:700px;margin:0 auto 34px}.signup-heading h1{font-size:clamp(36px,5vw,58px);margin:12px 0 14px;letter-spacing:-.045em}.signup-heading p{color:var(--muted);font-size:17px;line-height:1.7;margin:0}
.signup-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.signup-main{min-width:0}.signup-panel{overflow:hidden}.signup-panel .panel-body{padding:30px}.signup-submit{min-height:52px;width:100%;justify-content:center;font-size:15px}
.signup-check{display:flex;align-items:flex-start;gap:10px;color:var(--muted);font-size:13px;line-height:1.5}.signup-check input{margin-top:3px;accent-color:var(--primary)}.signup-login-note{text-align:center;color:var(--muted);margin:20px 0 0}.signup-login-note a{color:#9db0ff;font-weight:700}.form-error{min-height:22px;color:#ff7b86;font-size:13px;margin-bottom:8px}
.signup-plan-card{position:sticky;top:100px;border:1px solid var(--border);border-radius:24px;padding:24px;background:linear-gradient(180deg,rgba(19,25,39,.96),rgba(9,13,23,.96));box-shadow:0 22px 60px rgba(0,0,0,.26)}.signup-plan-card.pro{border-color:rgba(92,124,255,.55);box-shadow:0 22px 70px rgba(50,75,190,.18)}.signup-plan-card p{color:var(--muted);line-height:1.65}.signup-plan-price{font-size:28px;font-weight:850;margin:24px 0 10px}.signup-plan-price small{font-size:12px;color:var(--muted);font-weight:600}.signup-popular{font-size:11px;color:#8cecff;text-transform:uppercase;letter-spacing:.12em;font-weight:800}
.verify-body,.checkout-body{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px}.demo-code-box{width:100%;padding:20px;border-radius:18px;background:rgba(92,124,255,.08);border:1px dashed rgba(115,143,255,.48);display:grid;gap:8px}.demo-code-box span,.demo-code-box small{color:var(--muted)}.demo-code-box strong{font-size:36px;letter-spacing:.22em}.verify-form{width:min(420px,100%);display:grid;gap:12px}.verify-code{text-align:center;font-size:28px;letter-spacing:.3em;height:62px}.checkout-summary{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px}.checkout-summary>div{padding:18px;border:1px solid var(--border);border-radius:16px;display:grid;gap:8px}.checkout-summary span{color:var(--muted);font-size:12px}.checkout-summary strong{font-size:20px}.payment-placeholder{width:100%;padding:22px;border-radius:18px;background:#0b101b;border:1px solid var(--border)}.payment-logos{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:16px}.payment-logos span{padding:8px 12px;border-radius:10px;background:#fff;color:#0a0d13;font-weight:850;font-size:12px}.payment-placeholder p{color:var(--muted);line-height:1.6}.payment-placeholder small{color:#7d89a0}.center{text-align:center}
.welcome-card{width:min(620px,calc(100% - 32px));margin:50px auto;padding:42px;text-align:center;border:1px solid var(--border);border-radius:30px;background:linear-gradient(180deg,rgba(20,27,43,.98),rgba(7,10,18,.98));box-shadow:0 35px 100px rgba(0,0,0,.35)}.welcome-check{width:76px;height:76px;margin:0 auto 22px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#3ee5a5,#37d9ff);color:#04110d;font-size:38px;font-weight:900;box-shadow:0 18px 50px rgba(62,229,165,.28)}.welcome-card h1{font-size:42px;margin:18px 0 10px}.welcome-card>p{color:var(--muted);line-height:1.7}.welcome-credentials{display:grid;gap:8px;padding:20px;margin:24px 0;border:1px solid var(--border);border-radius:18px;background:#0a0f1a}.welcome-credentials span,.welcome-credentials small{color:var(--muted)}.welcome-credentials strong{font-size:24px}.server-notice{padding:14px 16px;margin-bottom:18px;border-radius:14px;background:rgba(255,194,92,.08);border:1px solid rgba(255,194,92,.2);color:#eacb91;font-size:13px;line-height:1.55}
.plan-comparison{margin-top:26px}.plan-comparison .table td:first-child{font-weight:700}.plan-check{color:#52e5ad;font-weight:900}.plan-dash{color:#566078}.pricing-note{margin-top:22px;padding:16px 18px;border:1px solid rgba(92,124,255,.25);border-radius:16px;background:rgba(92,124,255,.07);color:var(--muted);text-align:center}
.plan-usage-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid var(--border);border-radius:16px;background:#0a0f19;margin-bottom:16px}.plan-usage-card strong{display:block}.plan-usage-card span{color:var(--muted);font-size:12px}.plan-progress{height:6px;border-radius:99px;background:#1c2433;overflow:hidden;margin-top:8px;width:180px}.plan-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--primary),#37d9ff);border-radius:inherit}.plan-lock{padding:34px;text-align:center}.plan-lock-icon{width:62px;height:62px;margin:0 auto 16px;border-radius:18px;display:grid;place-items:center;background:rgba(92,124,255,.12);font-size:28px}.plan-lock p{color:var(--muted);max-width:500px;margin:10px auto 22px}.plan-chip{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;background:rgba(92,124,255,.13);color:#aebcff;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;margin-left:6px}
.owner-quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.owner-quick-card{padding:22px;border:1px solid var(--border);border-radius:20px;background:linear-gradient(180deg,#121827,#0b101a);display:flex;flex-direction:column;gap:12px}.owner-quick-card h3{margin:0}.owner-quick-card p{color:var(--muted);margin:0;line-height:1.55;min-height:48px}.notification-list{display:grid;gap:10px}.notification-item{display:flex;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:#0a0f18}.notification-item strong{display:block;margin-bottom:5px}.notification-item p{margin:0;color:var(--muted);font-size:13px}.notification-item time{white-space:nowrap;color:#68758d;font-size:11px}.platform-banner{padding:16px 18px;border-radius:16px;background:rgba(55,217,255,.07);border:1px solid rgba(55,217,255,.18);color:#9ccbd5;line-height:1.55;margin-bottom:18px}
@media(max-width:900px){.signup-layout{grid-template-columns:1fr}.signup-plan-card{position:static;order:-1}.owner-quick-grid{grid-template-columns:1fr}.checkout-summary{grid-template-columns:1fr}}
@media(max-width:620px){.signup-page main{padding-top:40px}.signup-step b{display:none}.signup-stepper{max-width:240px}.signup-panel .panel-body{padding:20px}.welcome-card{padding:28px 20px}.welcome-card h1{font-size:34px}.demo-code-box strong{font-size:30px}}
