/* =====================================================================
   SUBEX theme – "deep water": dark green sidebar shell, glass surfaces,
   green→teal gradients, Plus Jakarta Sans. Loaded after style.css.
   ===================================================================== */
:root {
  --g950: #04190f; --g900: #062a1b; --g800: #0b3a26; --g700: #0f5134; --brand: #118743; --brand2: #14a37a; --teal: #0fa3a3;
  --mint: #e9f7f0; --mint2: #d5efe2; --bg: #f1f6f3; --ink: #0f1f17; --muted: #5d6f66; --line: #dce7e1;
  --radius: 16px; --shadow: 0 1px 2px rgba(6,42,27,.05), 0 12px 32px -12px rgba(6,42,27,.18);
  --grad: linear-gradient(135deg, #118743 0%, #14a37a 55%, #0fa3a3 100%);
  --side: 256px;
}
body { font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--ink); letter-spacing: -0.005em; }
[dir="rtl"] body { font-family: "Plus Jakarta Sans", Tahoma, "Segoe UI", Arial, sans-serif; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 8px; }
h2 { font-weight: 750; letter-spacing: -0.01em; }
a { color: var(--brand); }

/* ---------- app shell ---------- */
.topbar { display: none; }
.shell-side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 20; display: flex; flex-direction: column; gap: 18px; padding: 18px 16px;
  background: radial-gradient(140% 60% at 0% 0%, #12533a 0%, transparent 60%), linear-gradient(180deg, var(--g800) 0%, var(--g900) 55%, var(--g950) 100%); color: #d8ece2; }
[dir="rtl"] .shell-side { inset: 0 0 0 auto; }
.side-logo { display: block; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); text-align: center; }
.side-logo img { height: 58px; display: inline-block; }
.side-app { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #8fc3a9; text-align: center; margin-top: -6px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #cfe6da; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s, transform .15s; }
.side-nav a svg { width: 19px; height: 19px; flex: none; opacity: .9; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.on { background: linear-gradient(135deg, rgba(20,163,122,.95), rgba(15,163,163,.85)); color: #fff; box-shadow: 0 8px 22px -8px rgba(15,163,163,.7); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 13px; }
.side-user .av { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; }
.side-user a { margin-left: auto; color: #9fd0b8; font-size: 12.5px; text-decoration: none; }
[dir="rtl"] .side-user a { margin-left: 0; margin-right: auto; }
.side-badge { font-size: 11px; line-height: 1.4; color: #f6dd8c; background: rgba(246,221,140,.08); border: 1px solid rgba(246,221,140,.25); border-radius: 10px; padding: 8px 10px; }
.shell-side .lang-switch { border-color: rgba(255,255,255,.18); align-self: flex-start; margin: 0; }
.shell-side .lang-switch a { color: #cfe6da; }
.shell-side .lang-switch a.on { background: #fff; color: var(--g800); }
.shell-main { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
[dir="rtl"] .shell-main { margin-left: 0; margin-right: var(--side); }
.shell-main .wrap { width: 100%; max-width: 1240px; padding: 26px 34px 10px; margin: 0 auto; flex: 1; }
.demo-band { background: transparent; border: 0; color: #7a5b00; font-size: 12px; padding: 10px 34px 0; text-align: left; }
[dir="rtl"] .demo-band { text-align: right; }
.demo-band::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e0b100; margin: 0 8px 1px 0; box-shadow: 0 0 0 4px rgba(224,177,0,.15); }
.foot { color: #7d8f86; font-size: 12px; padding: 18px 34px 26px; text-align: left; }
.mhead { display: none; }

/* ---------- components ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
button, .btn { background: var(--grad); border-radius: 12px; padding: 11px 18px; font-weight: 700; box-shadow: 0 8px 20px -10px rgba(17,135,67,.8); transition: transform .15s, box-shadow .2s, filter .2s; }
button:hover, .btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 26px -10px rgba(17,135,67,.85); }
.btn.ghost, .viewer-tabs button, .cv-zoom .btn { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.btn.small { border-radius: 10px; padding: 7px 12px; }
input, select, textarea { border-radius: 11px !important; border: 1px solid #cfdcd5 !important; padding: 11px 12px !important; font: inherit; background: #fbfdfc; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand) !important; box-shadow: 0 0 0 4px rgba(17,135,67,.12); background: #fff; }
.selector { padding: 20px 22px; background: linear-gradient(180deg, #fff 0%, #f7fbf9 100%); }
.muted { color: var(--muted); }
.results th, .list th, .chk-table th { background: var(--mint); color: #3f6b55; font-weight: 700; }
.results tr.best td { background: #f4fbf7; }
.results tbody tr:hover td { background: #f7fbf9; }
.tag { background: var(--grad); border-radius: 999px; padding: 3px 9px; font-weight: 700; }
.tabs a { border-radius: 999px; padding: 8px 15px; font-weight: 600; }
.tabs a.on { background: var(--g800); border-color: var(--g800); }
.stats .stat { position: relative; overflow: hidden; }
.stats .stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--grad); opacity: .12; }
.stats .stat b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-card { border-radius: 20px; }
.pr-card .pr-img { background: radial-gradient(circle at 50% 30%, #ffffff 0%, #e8f4ee 75%); border-radius: 14px; height: 200px; }
.pr-card:hover { border-color: var(--brand2); box-shadow: 0 20px 40px -18px rgba(6,42,27,.35); }
.pr-kind { color: var(--brand2); }
.pd-nav { background: linear-gradient(var(--bg) 70%, rgba(241,246,243,0)); }
.pd-nav a { border-radius: 999px; font-weight: 600; }
.pd-nav a:hover { background: var(--mint); }
.pd-sec h2 { display: flex; align-items: baseline; gap: 10px; }
.pd-sec h2::before { content: ""; width: 6px; height: 22px; border-radius: 4px; background: var(--grad); align-self: center; }
.viewer-wrap { border-radius: 16px; background: radial-gradient(circle at 50% 30%, #ffffff 0%, #e6f2ec 70%, #d9ebe2 100%); }
.viewer-tabs button.on { background: var(--g800); color: #fff; border-color: var(--g800); }
.pd-result.ok { background: linear-gradient(135deg, #ecfbf3, #e6f7f7); border-color: #b7e6cd; border-radius: 12px; }
.cv-cards .card b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-out .big { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 44px; }
.ok-box { border-radius: 12px; } .warn-box { border-radius: 12px; }

/* ---------- login: underwater scene ---------- */
body.login-page { background: var(--g950); }
.login-page .demo-band { position: absolute; top: 0; left: 0; right: 0; z-index: 6; color: #f6dd8c; padding: 12px 24px; text-align: center; }
.login-split { min-height: 100vh; background: radial-gradient(90% 70% at 15% 10%, #1a6b4a 0%, transparent 55%), radial-gradient(70% 60% at 85% 90%, #0b5d5d 0%, transparent 60%), linear-gradient(180deg, #072d1d 0%, #041a10 100%); position: relative; overflow: hidden; }
.login-split::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C240 20 480 120 720 70 S1200 20 1440 70 V140 H0Z' fill='%2314a37a' fill-opacity='.18'/%3E%3Cpath d='M0 95 C260 55 520 135 780 95 S1220 60 1440 95 V140 H0Z' fill='%230fa3a3' fill-opacity='.16'/%3E%3C/svg%3E") bottom/100% 100% no-repeat; pointer-events: none; z-index: 1; animation: waveDrift 9s ease-in-out infinite alternate; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-30px); } }
.login-hero { background: transparent !important; z-index: 2; }
.login-panel { background: transparent !important; z-index: 3; }
.login-panel .login-box { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.6); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.55); }
.login-foot { color: #8fc3a9 !important; }
.login-page .lang-switch { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.login-page .lang-switch a { color: #e3f3ea; }
.login-page .lang-switch a.on { background: #fff; color: var(--g800); }
.login-lang { background: transparent !important; top: 54px !important; }
.hero-logo { background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); }
.hero-pump { opacity: .95 !important; height: 78% !important; right: 4% !important; top: 12% !important; }
.grad { background: linear-gradient(90deg, #5be3a6, #19c2b0 40%, #a7f3d0 80%, #5be3a6) !important; background-size: 200% auto !important; -webkit-background-clip: text !important; background-clip: text !important; }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.bubbles i { position: absolute; bottom: -40px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(190,255,230,.45); background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.55), rgba(255,255,255,.05) 60%); animation: bubbleRise linear infinite; }
@keyframes bubbleRise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translateY(-50vh) translateX(14px); } 100% { transform: translateY(-105vh) translateX(-10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bubbles, .login-split::after { animation: none; display: none; } }

/* ---------- phones: bottom tab bar ---------- */
@media (max-width: 900px) {
  .shell-side { inset: auto 0 0 0; width: auto; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px -10px rgba(0,0,0,.4); }
  [dir="rtl"] .shell-side { inset: auto 0 0 0; }
  .side-logo, .side-app, .side-foot { display: none; }
  .side-nav { flex-direction: row; width: 100%; justify-content: space-around; gap: 0; }
  .side-nav a { flex-direction: column; gap: 3px; padding: 7px 6px; font-size: 10.5px; font-weight: 600; border-radius: 12px; min-width: 58px; }
  .side-nav a svg { width: 21px; height: 21px; }
  .side-nav a.side-out { display: none; }
  .shell-main, [dir="rtl"] .shell-main { margin: 0; padding-bottom: 86px; }
  .shell-main .wrap { padding: 16px 16px 8px; }
  .demo-band { padding: 8px 16px 0; }
  .mhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15; }
  .mhead img { height: 38px; }
  .mhead .lang-switch { margin: 0; }
  .foot { padding: 14px 16px 18px; }
  h1 { font-size: 24px; }
}
.login-hero .hero-body, .login-hero .hero-chart, .login-hero .hero-top { max-width: 440px; position: relative; z-index: 3; }
.hero-pump { height: 70% !important; right: 0 !important; top: 16% !important; z-index: 1; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)) !important; }
.login-hero .hero-chart { background: rgba(4,25,15,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 16px; }
@media (max-width: 1250px) { .hero-pump { opacity: .35 !important; } }
.stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
