/* TutorInvest - simple, clean, responsive UI (no external deps) */
:root{
  --bg:#ffffff;
  --muted:#64748b;
  --text:#0f172a;
  --card:#ffffff;
  --border:#e2e8f0;
  --soft:#f8fafc;
  --accent:#0f172a;
  --accent2:#334155;
  --danger:#b91c1c;
  --ok:#166534;
  --shadow: 0 10px 30px rgba(2,6,23,.06);
  --radius: 18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}
a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1120px; margin:0 auto; padding:0 16px}
header.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header-row{display:flex; align-items:center; justify-content:space-between; gap:14px; height:64px}
.brand{display:flex; align-items:center; gap:10px}
.logo{
  width:40px; height:40px; border-radius:14px;
  background:linear-gradient(135deg, #0f172a, #334155);
  box-shadow: var(--shadow);
}
.brand .title{font-weight:800; letter-spacing:-.02em}
.brand .tag{font-size:12px; color:var(--muted); margin-top:-2px}
.nav{display:none; gap:18px; align-items:center}
.nav a{font-size:14px; color:var(--accent2)}
.nav a.active{color:var(--text); font-weight:700}
.header-actions{display:flex; align-items:center; gap:10px}
.lang{
  display:none;
  border:1px solid var(--border);
  border-radius:14px;
  padding:4px;
  gap:4px;
}
.lang a{
  font-size:12px; font-weight:800;
  padding:6px 10px;
  border-radius:12px;
  color:var(--accent2);
}
.lang a.active{background:var(--accent); color:#fff}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:14px;
  padding:10px 14px;
  font-weight:800;
  font-size:14px;
  border:1px solid var(--border);
  background:var(--soft);
}
.btn.primary{background:var(--accent); color:#fff; border-color:var(--accent)}
.btn.ghost{background:transparent}
.btn:hover{text-decoration:none; filter:brightness(0.98)}
.hamburger{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:14px;
  border:1px solid var(--border); background:#fff;
}
.mobile-panel{
  display:none;
  border-bottom:1px solid var(--border);
  background:#fff;
}
.mobile-panel.open{display:block}
.mobile-links{display:grid; gap:6px; padding:12px 0 16px}
.mobile-links a{padding:10px 12px; border-radius:14px; font-weight:800; font-size:14px}
.mobile-links a:hover{background:var(--soft); text-decoration:none}
.hero{
  background:linear-gradient(to bottom, #f8fafc, #ffffff);
}
.hero-grid{
  display:grid; gap:22px; padding:44px 0;
}
.pill{
  display:inline-flex; align-items:center;
  border:1px solid var(--border);
  background:#fff;
  padding:6px 10px; border-radius:999px;
  font-size:12px; font-weight:800; color:var(--accent2);
}
h1{font-size:34px; line-height:1.12; letter-spacing:-.03em; margin:12px 0 0}
.lead{font-size:17px; color:var(--accent2); margin:14px 0 0}
.ctas{display:flex; flex-wrap:wrap; gap:10px; margin-top:18px}
.note{margin-top:12px; font-size:12px; color:var(--muted)}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}
.card.pad{padding:18px}
.grid-2{display:grid; gap:12px}
.kv{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border:1px solid var(--border); border-radius:14px}
.kv .k{font-size:12px; color:var(--muted); font-weight:800}
.kv .v{font-size:14px; font-weight:900}
.section{padding:34px 0}
.section.alt{background:var(--soft); border-top:1px solid var(--border); border-bottom:1px solid var(--border)}
h2{font-size:24px; letter-spacing:-.02em; margin:0}
.p{color:var(--accent2); margin:10px 0 0}
.features{display:grid; gap:12px; margin-top:14px}
.feature{padding:16px; border-radius:var(--radius); border:1px solid var(--border); background:#fff}
.feature .t{font-weight:900}
.feature .d{margin-top:6px; color:var(--accent2); font-size:14px}
.steps{display:grid; gap:12px; margin-top:14px}
.step{padding:16px; border-radius:var(--radius); border:1px solid var(--border); background:#fff}
.step .top{display:flex; align-items:center; gap:10px}
.badge{
  width:32px; height:32px; border-radius:12px;
  background:var(--accent); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
}
.step .t{font-weight:900}
footer.site-footer{
  border-top:1px solid var(--border);
  background:#fff;
  padding:26px 0;
}
.footer-row{display:flex; flex-direction:column; gap:12px}
.footer-links{display:flex; gap:14px; flex-wrap:wrap; color:var(--accent2); font-size:13px}
.small{font-size:12px; color:var(--muted)}
/* Forms */
.form{display:grid; gap:12px}
label .lbl{display:block; font-size:12px; font-weight:900; color:var(--accent2); margin-bottom:6px}
input, select, textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  font-size:14px;
  outline:none;
  background:#fff;
}
textarea{min-height:120px; resize:vertical}
.alert{
  border-radius:14px; padding:10px 12px; font-size:14px;
  border:1px solid var(--border); background:var(--soft);
}
.alert.error{border-color:#fecaca; background:#fef2f2; color:var(--danger)}
.alert.ok{border-color:#bbf7d0; background:#f0fdf4; color:var(--ok)}
.table{width:100%; border-collapse:separate; border-spacing:0}
.table th,.table td{padding:12px 12px; border-bottom:1px solid var(--border); text-align:left; font-size:14px}
.table th{font-size:12px; color:var(--muted); font-weight:900; background:var(--soft)}
.table tr:hover td{background:#fbfdff}
.right{text-align:right}
/* Layout helpers */
.page{min-height:calc(100vh - 64px)}
.auth-wrap{max-width:420px; margin:0 auto; padding:44px 0}
/* Responsive */
@media(min-width: 820px){
  .nav{display:flex}
  .lang{display:flex}
  .hamburger{display:none}
  .hero-grid{grid-template-columns: 1.25fr .9fr; align-items:center; padding:58px 0}
  h1{font-size:46px}
  .grid-2{grid-template-columns: 1fr 1fr}
  .features{grid-template-columns: 1fr 1fr}
  .steps{grid-template-columns: 1fr 1fr 1fr 1fr}
  .footer-row{flex-direction:row; align-items:center; justify-content:space-between}
}

/* Responsive tables */
.table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
}
.table-wrap .table{min-width: 760px;}
@media(min-width: 820px){
  .table-wrap .table{min-width: 0;}
}
/* Flag language switcher */
.flagbar{display:flex; gap:6px; align-items:center}
.flagbar a{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  font-size:18px;
}
.flagbar a.active{background:var(--accent); border-color:var(--accent); filter:none}
.flagbar a.active span{filter:brightness(10)}
.flaghint{display:none; font-size:12px; color:var(--muted); font-weight:800}
@media(min-width: 820px){
  .flaghint{display:block}
}


/* Investment cards */
.inv-cards{display:grid;gap:14px}
.inv-card{border:1px solid var(--border);background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:14px}
.inv-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.inv-bank a{font-weight:900;font-size:16px}
.inv-sub{margin-top:2px;color:var(--muted);font-size:12px;font-weight:800}
.inv-kvs{display:grid;gap:10px;margin-top:12px}
.inv-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:14px}
.inv-row .k{font-size:12px;color:var(--muted);font-weight:900}
.inv-row .v{font-size:14px;font-weight:900;text-align:right}
.inv-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;border:1px solid var(--border);font-size:12px;font-weight:900;background:var(--soft);white-space:nowrap}
.inv-badge.soon{background:#fefce8;border-color:#fde68a;color:#854d0e}
.inv-badge.warn{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.inv-badge.done{background:#f1f5f9;border-color:#e2e8f0;color:#334155}
.inv-badge.ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
@media(min-width: 980px){
  .inv-cards{grid-template-columns: repeat(2, minmax(0, 1fr));}
}


/* Portal mobile menu */
.portal-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.portal-burger{display:none;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;border:1px solid var(--border);background:#fff}
.portal-burger span{font-size:18px}
.portal-desk-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.portal-mobile-panel{display:none;border-top:1px solid var(--border);margin-top:10px;padding-top:10px}
.portal-mobile-panel.open{display:block}
.portal-mobile-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.portal-close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;border:1px solid var(--border);background:#fff;font-size:18px}
.portal-mobile-links{display:grid;gap:8px;margin-top:10px}
.portal-mobile-links a{padding:10px 12px;border-radius:14px;font-weight:900}
.portal-mobile-links a:hover{background:var(--soft);text-decoration:none}
.portal-langlinks{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
@media(max-width: 820px){
  .portal-burger{display:inline-flex}
  .portal-desk-actions{display:none !important}
}
@media(min-width: 821px){
  .portal-mobile-panel{display:none !important}
}

.portal-close{display:none !important;}


/* Hide main mobile menu on portal pages to avoid double menus */
body[data-portal-page="1"] [data-mobile-toggle]{display:none !important;}
body[data-portal-page="1"] [data-mobile-panel]{display:none !important;}

.grid2{display:grid;gap:12px}
@media(min-width:760px){.grid2{grid-template-columns:1fr 1fr;}}
