/* ═══════════════════════════════════════════════════════
   ATPROO EDA AI — Home Redesign (Premium Dashboard Layout)
   Yuklash: eng OXIRIDA
   ═══════════════════════════════════════════════════════ */

/* ── Sidebar bo'lim sarlavhalari ── */
.sb-sec {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--t3, #505878);
  padding: 14px 10px 4px;
}

/* ── HOME TOOLBAR (greeting + qidiruv + bell + premium) ── */
.home-toolbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.home-toolbar .hero-section { margin-bottom: 0; }
.home-toolbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.home-search {
  display: none; /* mobile: yashirin, desktop'da ko'rinadi */
  align-items: center; gap: 8px;
  background: var(--card, rgba(255,255,255,.04));
  border: 1px solid var(--bd, rgba(255,255,255,.07));
  border-radius: 12px; padding: 8px 12px; width: 220px;
  color: var(--t3, #505878);
}
.home-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--t1, #F0F4FF); font-size: 13px;
}
.home-search input::placeholder { color: var(--t3, #505878); }
.home-search kbd {
  font-size: 10px; font-weight: 700; color: var(--t3, #505878);
  background: rgba(255,255,255,.06); border: 1px solid var(--bd, rgba(255,255,255,.08));
  border-radius: 5px; padding: 2px 6px; font-family: inherit;
}

.home-toolbar-bell {
  position: relative; width: 38px; height: 38px; border-radius: 11px;
  background: var(--card, rgba(255,255,255,.04));
  border: 1px solid var(--bd, rgba(255,255,255,.07));
  display: flex; align-items: center; justify-content: center;
  color: var(--t2, #8899BB); cursor: pointer; transition: all .15s; flex-shrink: 0;
}
.home-toolbar-bell:hover { color: var(--t1, #F0F4FF); border-color: var(--bd2, rgba(255,255,255,.12)); }
.home-bell-dot {
  position: absolute; top: 7px; right: 7px; width: 7px; height: 7px;
  background: #ef4444; border-radius: 50%; border: 2px solid var(--bg2, #161B27);
}

.home-premium-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(139,92,246,.12));
  border: 1px solid rgba(245,158,11,.3);
  font-size: 12px; font-weight: 800; color: #f59e0b; cursor: pointer;
  white-space: nowrap; transition: all .18s;
}
.home-premium-pill:hover { transform: translateY(-1px); }

@media (min-width: 900px) {
  .home-search { display: flex; }
}

/* ── HERO BANNER ── */
.hero-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background:
    radial-gradient(ellipse 90% 80% at 25% 15%, rgba(139,92,246,.45), transparent 60%),
    radial-gradient(ellipse 80% 90% at 85% 85%, rgba(79,70,229,.5), transparent 65%),
    linear-gradient(135deg, #1a0b3d 0%, #1e1053 45%, #12163f 100%);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 24px; padding: 28px 30px; margin-bottom: 16px;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.hero-banner:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(139,92,246,.18); }
.hero-banner-glow {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-banner-glow::before, .hero-banner-glow::after {
  content: ''; position: absolute; height: 2px; width: 160%;
  background: linear-gradient(90deg, transparent, rgba(196,181,253,.9), rgba(139,92,246,.4), transparent);
  filter: blur(1px);
}
.hero-banner-glow::before { top: 12%; left: -30%; transform: rotate(-18deg); box-shadow: 0 0 12px 1px rgba(196,181,253,.5); }
.hero-banner-glow::after  { bottom: 8%; left: -30%; transform: rotate(-12deg); width: 130%; opacity: .6; box-shadow: 0 0 10px 1px rgba(139,92,246,.5); }
.hero-banner-left { position: relative; z-index: 1; max-width: 460px; }
.hb-badge {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 1px;
  color: #c4b5fd; background: rgba(139,92,246,.18);
  border: 1px solid rgba(196,181,253,.35); border-radius: 50px;
  padding: 5px 12px; margin-bottom: 14px;
}
.hb-title { font-size: 30px; font-weight: 900; line-height: 1.18; letter-spacing: -.8px; color: #fff; margin-bottom: 12px; }
.hb-title .grad-text {
  background: linear-gradient(135deg, #00e5a0, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hb-desc { font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: 20px; }
.hb-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #00e5a0, #10b981);
  color: #001b12; font-size: 13.5px; font-weight: 800;
  padding: 12px 20px; border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0,229,160,.25);
}

.hero-banner-right {
  position: relative; z-index: 1; width: 180px; height: 180px;
  flex-shrink: 0; display: none; align-items: center; justify-content: center;
}
.hb-orb { position: absolute; border-radius: 50%; filter: blur(30px); }
.hb-orb1 { width: 140px; height: 140px; background: rgba(139,92,246,.4); top: 0; left: 10px; }
.hb-orb2 { width: 110px; height: 110px; background: rgba(79,70,229,.35); bottom: 0; right: 0; }
.hb-emoji {
  position: relative; font-size: 76px; filter: drop-shadow(0 12px 28px rgba(0,0,0,.4));
  animation: hbFloat 4s ease-in-out infinite;
}
.hb-float {
  position: absolute; font-size: 26px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
  animation: hbFloat 3.4s ease-in-out infinite;
}
.hb-float1 { top: 6px; right: 10px; animation-delay: .2s; }
.hb-float2 { bottom: 22px; left: 0; animation-delay: .8s; }
.hb-float3 { bottom: -4px; right: 30px; animation-delay: 1.3s; }
@keyframes hbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (min-width: 720px) {
  .hero-banner-right { display: flex; }
}

/* ── 6-ustunli tezkor amallar ── */
.quick-actions-6 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 20px;
}
@media (min-width: 560px) {
  .quick-actions-6 { grid-template-columns: repeat(6, 1fr); }
}

/* ── 2 USTUNLI ASOSIY GRID ── */
.dash-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 1080px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .dash-rail { position: sticky; top: 12px; }
}
.dash-main, .dash-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* Home ichidagi kartalar dash-main/dash-rail ichida bo'lgani uchun
   pastki margin'larni grid gap boshqaradi — o'ziga xos margin-bottom'larni tozalaymiz */
.dash-main > .chart-card, .dash-main > .meal-planner-card, .dash-main > .meals-card,
.dash-main > .body-card, .dash-main > .body-progress-card,
.dash-rail > .water-card, .dash-rail > .streak-card, .dash-rail > .achievements-card,
.dash-rail > .rings-card, .dash-rail > .premium-banner {
  margin-bottom: 0;
}

.bottom-2col {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 640px) {
  .bottom-2col { grid-template-columns: 1fr 1fr; }
}
.bottom-2col > .ai-rec-card, .bottom-2col > .workout-card { margin-bottom: 0; }

/* ── MASHQ TAVSIYALARI ── */
.workout-card {
  background: linear-gradient(135deg, rgba(245,158,11,.07), rgba(239,68,68,.05));
  border: 1px solid rgba(245,158,11,.18);
  border-radius: 20px; padding: 18px;
}
#workout-tips-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wo-item {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.04); border-radius: 12px; padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.06);
}
.wo-ico { font-size: 20px; flex-shrink: 0; }
.wo-text { flex: 1; }
.wo-name { font-size: 13px; font-weight: 700; }
.wo-sub  { font-size: 11px; color: var(--t3, #505878); margin-top: 1px; }
.wo-time { font-size: 11px; font-weight: 800; color: #f59e0b; flex-shrink: 0; }

/* ── SO'NGGI FAOLIYATLAR ── */
.activity-card {
  background: var(--card, rgba(255,255,255,.04));
  border: 1px solid var(--bd, rgba(255,255,255,.07));
  border-radius: 20px; padding: 18px;
}
#activity-feed-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.act-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 2px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.act-row:last-child { border-bottom: none; }
.act-ico {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.act-info { flex: 1; min-width: 0; }
.act-name { font-size: 12.5px; font-weight: 700; }
.act-sub  { font-size: 10.5px; color: var(--t3, #505878); margin-top: 1px; }
.act-time { font-size: 10.5px; color: var(--t3, #505878); flex-shrink: 0; }

/* ── BUGUNGI MAQSADLAR (right rail) ── */
.goals-rail-card {
  background: var(--card, rgba(255,255,255,.04));
  border: 1px solid var(--bd, rgba(255,255,255,.07));
  border-radius: 20px; padding: 18px;
}
.goal-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.goal-row:first-of-type { margin-top: 14px; }
.goal-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.goal-info { flex: 1; min-width: 0; }
.goal-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; margin-bottom: 5px;
}
.goal-top span:first-child { color: var(--t2, #8899BB); font-weight: 600; }
.goal-top span:last-child  { color: var(--t1, #F0F4FF); font-weight: 700; }
.goal-bar-wrap { height: 5px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.goal-bar-fill { height: 100%; border-radius: 3px; width: 0%; transition: width 1s ease; }

/* ── AI COACH PROMO (right rail) ── */
.ai-coach-promo {
  position: relative; overflow: hidden; cursor: pointer;
  background: linear-gradient(160deg, #0c2a24 0%, #0a1f3a 100%);
  border: 1px solid rgba(0,229,160,.25);
  border-radius: 20px; padding: 20px; text-align: left;
  transition: transform .18s;
}
.ai-coach-promo:hover { transform: translateY(-2px); }
.ai-coach-promo::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,160,.18), transparent 70%);
}
.acp-orb { font-size: 34px; margin-bottom: 10px; }
.acp-title { font-size: 15px; font-weight: 900; color: #fff; margin-bottom: 6px; }
.acp-desc  { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.5; margin-bottom: 14px; }
.acp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; color: var(--g1, #00e5a0);
}