:root{
  --bg:#f6f8fc;
  --panel:#ffffff;
  --panel2:#f1f5ff;
  --text:#0f172a;
  --muted:#475569;
  --line:#dbe3f0;
  --accent:#2563eb;
  --accent2:#f59e0b;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --radius: 16px;
  --max: 1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(245,158,11,.08), transparent 55%),
    var(--bg);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 20px;}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(246,248,252,.85);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:12px 0;
}

/* Header stacked */
.nav.nav-stacked{ flex-direction: column; align-items: stretch; }
.nav-row{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap: nowrap !important; }

.brand{display:flex; align-items:center; gap:10px; flex:0 0 auto;}
.logo{
  width:42px; height:42px; border-radius:14px;
  background: linear-gradient(135deg, rgba(37,99,235,.90), rgba(34,197,94,.70));
  display:grid; place-items:center; font-weight:900; color:#fff;
  box-shadow: var(--shadow);
}
.brand h1{font-size:16px; line-height:1.1; margin:0;}
.brand small{display:block; color:var(--muted); font-weight:700;}

.navlinks{display:flex; gap:10px; align-items:center; justify-content:flex-end;}
.navlinks a{
  padding:8px 10px; border-radius:12px; color:var(--muted); font-weight:800;
  border:1px solid transparent;
}
.navlinks a.active,.navlinks a:hover{
  background: var(--panel2);
  color: var(--text);
  border-color: var(--line);
}

/* ===== FORCE: Menu 1 rresht (pa wrap) + scroll horizontal ===== */
.navlinks.navlinks-row{
  flex: 1 1 auto;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  gap: 8px !important;
  justify-content: flex-end;
  scrollbar-width: thin;
}
.navlinks.navlinks-row a{ flex: 0 0 auto; }

.nav-cta{ margin-top: 10px; display:flex; justify-content:flex-end; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px; border-radius:14px;
  border:1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-weight:900;
  box-shadow: var(--shadow);
}
.btn.primary{ background: var(--accent); border-color: var(--accent); color:#fff; }
.btn.warning{ background: var(--accent2); border-color: var(--accent2); color:#111827; }
.btn.small{ padding:10px 12px; border-radius:12px; box-shadow:none; }

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--line);
  background: var(--panel2);
  color: var(--muted);
  font-weight:800;
}

.hero{
  margin:18px 0 18px;
  border-radius: 22px;
  overflow:hidden;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(241,245,255,.95), rgba(255,255,255,.95));
  box-shadow: var(--shadow);
  position:relative;
}
.hero .content{ padding:20px; }
.hero p{margin:0; color:var(--muted); font-size:16px; max-width:70ch;}

.grid{display:grid; gap:14px;}
.grid.cols-3{grid-template-columns: repeat(3, minmax(0,1fr));}
.grid.cols-2{grid-template-columns: repeat(2, minmax(0,1fr));}
@media (max-width: 980px){
  .grid.cols-3{grid-template-columns:1fr;}
  .grid.cols-2{grid-template-columns:1fr;}
}

.card{
  border:1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.card h3{margin:0 0 10px;}
.card p{margin:0; color: var(--muted); line-height:1.55;}

.section{margin:18px 0;}
.section h2{margin:0 0 10px; font-size:26px;}
.section .sub{color:var(--muted); margin:0 0 14px; line-height:1.55;}

.notice{border-left:4px solid var(--accent2); background: rgba(245,158,11,.10);}
.footer{margin:28px 0 18px; color: var(--muted); font-size:13px;}

.table{
  width:100%; border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid var(--line);
}
.table th,.table td{
  padding:14px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:14px;
  vertical-align: top;
  line-height:1.45;
  color: var(--text);
}
.table th{color:var(--muted); font-weight:900; background: var(--panel2);}
.table td{background: var(--panel);}

select,input,textarea{
  width:100%; padding:12px 12px; border-radius: 14px;
  border:1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  outline:none;
}
label{color:var(--muted); font-weight:900; font-size:13px;}
hr{border:0; border-top:1px solid var(--line); margin:14px 0;}

@media (max-width: 820px){
  .nav-cta{ justify-content: stretch; }
  .nav-cta .btn{ width:100%; }
}

/* Rrjedha: butoni "Lexo më shumë" gjithmonë majtas-poshtë në çdo card */
.grid.cols-2 .card{
  display: flex;
  flex-direction: column;
}
.grid.cols-2 .card > div{
  margin-top: auto;
}
.grid.cols-2 .card .btn.small{
  align-self: flex-start;
}
