



:root{
  --bg1: #f5f8ff;
  --bg2: #eaf1ff;
  --card: #ffffff;
  --text: #071022;
  --muted: #6b7280;
  --accent: #4f8ef6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(5,10,25,0.08);
}
[data-theme="dark"]{
  --bg1: #071427;
  --bg2: #061226;
  --card: #4E1010;
  --text: #e6eefb;
  --muted: #9aa6bd;
  --accent: #6ea3ff;
  --shadow: 0 12px 40px rgba(0,0,0,0.6);
}

/* base */
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial; background: linear-gradient(180deg,var(--bg1),var(--bg2) 140%); color:var(--text);}

/* Ensure header space so fixed topbar doesn't cover content */
body { padding-top: 80px; transition: background .2s, color .2s; }

/* TOPBAR fixed */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16,24,40,0.04);
  padding: 14px 16px;
}
[data-theme="dark"] .topbar{
  background: linear-gradient(180deg, rgba(8,12,20,0.95), rgba(8,12,20,0.9));
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.topbar-inner{ max-width:1100px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; }

/* Brand */
.brand{ display:flex; gap:12px; align-items:center; min-width:0; }
.logo{ width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; background: linear-gradient(135deg,var(--accent), #82d1ff); box-shadow:0 8px 24px rgba(79,142,246,0.16); }
.brand-text .app-name{ font-weight:700; font-size:16px; white-space:nowrap; }
.brand-text .app-sub{ font-size:13px; color:var(--muted); }

/* theme toggle */
.theme-toggle{ background:transparent; border:none; font-size:20px; cursor:pointer; padding:8px; border-radius:10px; color:var(--text); }

/* Search area (below header) */
.search-area{ max-width:1100px; margin:10px auto 0; padding:0 16px; }
.search-area input{
  width:100%; padding:15px 15px; border-radius:100px; border:1px solid rgba(16,24,40,0.06); background:var(--card); outline:none; color:inherit;
}

/* MAIN */
.main{ max-width:1100px; margin:18px auto; padding:0 16px 80px; }
.page-title{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.page-title h1{ margin:0; font-size:20px; }
.small{ color:var(--muted); font-size:13px; }

/* SPLASH */
.splash{ display:none; text-align:center; color:var(--muted); padding:36px; border-radius:12px; }

/* CARDS */
.cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:16px; }
.card{ background:var(--card); padding:16px; border-radius:14px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:10px; transition: transform .18s ease; }
.card:hover{ transform:translateY(-6px); }
.card h3{ margin:0; font-size:18px; }
.card p{ margin:0; color:var(--muted); }
.card .meta{ display:flex; gap:8px; align-items:center; margin-top:8px; }
.pill{ padding:6px 10px; border-radius:999px; background: rgba(79,142,246,0.08); color:var(--accent); font-weight:700; font-size:12px; }

/* buttons in card */
.row-right{ margin-left:auto; display:flex; gap:8px; align-items:center; }
.btn{ padding:8px 12px; border-radius:10px; border:1px solid rgba(16,24,40,0.06); background:transparent; cursor:pointer; }
.btn.primary{ background:var(--accent); color:#fff; border:none; }

/* TABBAR bottom */
.tabbar{
  overflow-x: auto;          /* ⭐ suriladi */
  position: fixed;
  left: 10px; right: 10px; bottom: 12px;
  z-index: 1200;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(60, 255, 0, 0.76);
  display:flex; justify-content:space-around; padding:10px; gap:8px;
}
.tabbar { background:transparent; border:none; padding:10px 12px; border-radius:10px; color:var(--text); font-weight:700; cursor:pointer; }
.tabbar .tab.active{ background: linear-gradient(90deg, rgba(79,142,246,0.08), rgba(130,209,255,0.04)); color:var(--accent); }

.tab{
  height: 50px;                 /* hammasi bir xil */
  min-width: 100px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  line-height: 1.2;

  font-size: 14px;
  font-weight: 600;

  padding: 6px 8px;
  border-radius: 14px;

  white-space: normal;          /* matn tushsin */
  word-break: break-word;

  background: rgba(255, 0, 176, 1);
}




/* modal */
.modal-backdrop{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.5); z-index:1300; }
.modal{ background:var(--card); padding:18px; border-radius:12px; width:92%; max-width:720px; box-shadow:var(--shadow); max-height:88vh; overflow:auto; }

/* responsive */
@media (max-width:880px){
  body{ padding-top:140px; }
  .topbar-inner{ flex-direction:row; align-items:center; gap:8px; }
  .brand-text .app-name{ font-size:15px; }
  .search-area{ margin-top:12px; }
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #333;
}

header {
  background: #1e3a8a;
  color: white;
  padding: 15px;
}

header h1 {
  margin: 0;
}

nav a {
  color: white;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  background: white;
}

footer {
  background: #111827;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

footer a {
  color: #93c5fd;
  margin: 0 10px;
  text-decoration: none;
}
body {
  font-family: Arial;
  text-align: center;
  background: #f4f6f8;
}

input, button {
  display: block;
  margin: 10px auto;
  padding: 10px;
}

.btn {
  display: inline-block;
  margin: 10px;
  padding: 10px 15px;
  background: #007bff;
  color: white;
  text-decoration: none;
}
.profile-card {
  max-width: 320px;
  margin: 80px auto;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.avatar-lg {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.profile-card button {
  background: #e53935;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.categories-btn-wrap {
  max-width: 1100px;
  margin: 20px auto 10px;
  padding: 0 16px;
}

.categories-btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, #4f8ef6, #82d1ff);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(79, 142, 246, 0.25);
}

.categories-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.categories-list li {
  background: #f1f5ff;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
}
