/* =========================================================
   SOCSEEN UI (SOCSMM-like) — FINAL STYLE.CSS
   - Mobile-first (max-width 520px)
   - Drawer, Topbar, BottomNav (FAB center)
   - Cards, Buttons, Forms, Services, Orders, Filters
   - Modal, BottomSheet, Toast, Snow
   ========================================================= */

/* ============ RESET ============ */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
img{max-width:100%;display:block}

/* ============ THEME ============ */
:root{
  --bg0:#050816;
  --bg1:#070b18;
  --bg2:#0a1023;
  --glass: rgba(12,18,40,.55);
  --glass2: rgba(12,18,40,.78);
  --card: rgba(14,21,46,.70);
  --card2: rgba(14,21,46,.55);
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.14);
  --text:#ecf1ff;
  --muted: rgba(236,241,255,.65);

  --blue1:#2f63ff;
  --blue2:#3db4ff;
  --orange1:#ffb15a;
  --orange2:#ff7a59;

  --ok:#7cffb2;
  --err:#ff6b6b;
  --warn:#ffb15a;

  --shadow: 0 18px 55px rgba(0,0,0,.40);
  --shadow2: 0 10px 30px rgba(0,0,0,.28);

  --r14:14px;
  --r18:18px;
  --r22:22px;
  --r28:28px;

  --pad:14px;

  --navH: 84px;
}

/* Background (SOCSMM vibe) */
body{
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 25% 0%, rgba(47,99,255,.30), transparent 55%),
    radial-gradient(1000px 700px at 85% 10%, rgba(61,180,255,.18), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0) 70%);
  overflow-x:hidden;
}

/* ============ APP SHELL ============ */
.app{
  min-height:100vh;
  max-width:520px;
  margin:0 auto;
  position:relative;
  padding-bottom: calc(var(--navH) + 10px);
  animation: pageIn .22s ease;
}
@keyframes pageIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}

.container{
  padding: var(--pad);
}

/* Helpers */
.mt8{margin-top:8px}
.mt12{margin-top:12px}
.mt16{margin-top:16px}
.mt20{margin-top:20px}
.center{text-align:center}
.hr{height:1px;background:var(--line);margin:14px 0}

/* ============ TOPBAR (SOC) ============ */
.soc-topbar{
  position: sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px var(--pad);
  backdrop-filter: blur(12px);
  background: rgba(7,11,24,.62);
  border-bottom: 1px solid var(--line);
}
.soc-top-right{display:flex;gap:10px;align-items:center}
.soc-ico-btn{
  width:44px;height:44px;
  border-radius:16px;
  display:grid;place-items:center;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.soc-ico-btn:hover{transform:translateY(-1px);border-color:rgba(61,180,255,.32)}
.soc-ico-btn:active{transform:scale(.96)}

/* ============ BRAND HERO (INDEX) ============ */
.soc-brand{
  text-align:center;
  margin-top: 10px;
  margin-bottom: 12px;
}
.soc-brand-name{
  font-size: 44px;
  font-weight: 1000;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 18px 45px rgba(0,0,0,.45);
}
.soc-brand-sub{
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height:1.35;
}

.soc-hero-card{
  margin-top: 12px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px 16px;
}
.soc-hero-title{
  text-align:center;
  font-size: 34px;
  font-weight: 1000;
  letter-spacing:-.2px;
}
.soc-hero-desc{
  margin-top: 10px;
  text-align:center;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}
.soc-hero-btns{
  margin-top: 16px;
  display:flex;
  gap:12px;
}
.soc-btn{
  width:100%;
  padding: 14px 14px;
  border-radius: 18px;
  border: none;
  cursor:pointer;
  font-weight: 950;
  font-size: 18px;
  text-align:center;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.soc-btn:active{transform:scale(.98)}
.soc-btn-primary{
  background: linear-gradient(180deg, var(--orange1), var(--orange2));
  color:#fff;
  box-shadow: 0 18px 40px rgba(255,122,89,.20);
}
.soc-btn-primary:hover{filter:brightness(1.02)}
.soc-btn-blue{
  background: linear-gradient(180deg, var(--blue2), var(--blue1));
  color:#fff;
  box-shadow: 0 18px 40px rgba(61,180,255,.18);
}

.soc-why{
  margin-top: 18px;
}
.soc-why h2{
  font-size: 36px;
  font-weight: 1000;
  letter-spacing:-.4px;
  text-align:center;
  margin: 10px 0 14px;
}
.soc-why-list{display:flex;flex-direction:column;gap:12px}
.soc-why-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding: 16px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
}
.soc-why-ico{font-size:26px}
.soc-why-item b{font-size:18px;font-weight:1000}
.soc-why-sub{margin-top:4px;color:var(--muted);font-weight:700}

.soc-footer-links{
  margin-top: 16px;
  display:flex;
  justify-content:center;
  gap:10px;
  color: rgba(236,241,255,.78);
  font-weight:900;
}
.soc-footer-links a{opacity:.95}
.soc-footer-links span{opacity:.55}
.soc-copy{
  margin-top: 10px;
  text-align:center;
  color: rgba(236,241,255,.65);
  font-weight:800;
  padding-bottom: 10px;
}

/* ============ CARDS / COMMON ============ */
.card{
  border-radius: var(--r22);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow2);
}
.card:hover{border-color:rgba(61,180,255,.22)}
.card-inner{padding: 16px}
.title{font-size:22px;font-weight:1000}
.sub{color:var(--muted);font-weight:700;font-size:13.5px;line-height:1.35}

/* ============ BUTTONS (GENERAL) ============ */
.btn{
  width:100%;
  padding: 14px 14px;
  border-radius: 18px;
  border:none;
  cursor:pointer;
  font-weight: 950;
  font-size: 16px;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active{transform:scale(.98)}
.btn-primary{
  background: linear-gradient(180deg, var(--orange1), var(--orange2));
  color:#fff;
  box-shadow: 0 18px 40px rgba(255,122,89,.18);
}
.btn-blue{
  background: linear-gradient(180deg, var(--blue2), var(--blue1));
  color:#fff;
  box-shadow: 0 18px 40px rgba(61,180,255,.15);
}
.btn-ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: rgba(236,241,255,.92);
  box-shadow:none;
}
.btn-row{display:flex;gap:12px}
.btn-row .btn{width:100%}

/* ============ FORMS ============ */
.field{margin-top:12px}
.label{display:block;margin:0 0 8px 8px;color:rgba(236,241,255,.75);font-weight:900}
.input{
  width:100%;
  padding: 14px 14px;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(10,16,34,.78);
  color:var(--text);
  outline:none;
  transition: box-shadow .12s ease, border-color .12s ease, transform .12s ease;
}
.input:focus{
  border-color: rgba(61,180,255,.40);
  box-shadow: 0 0 0 4px rgba(61,180,255,.12);
}
textarea.input{resize:vertical;min-height:110px}

/* Select arrow */
select.input{
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(236,241,255,.65) 50%),
    linear-gradient(135deg, rgba(236,241,255,.65) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 55%,
    calc(100% - 16px) 55%;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}

/* ============ PILLS / CHIPS ============ */
.pill-row{display:flex;gap:10px;flex-wrap:wrap}
.pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: rgba(236,241,255,.88);
  font-weight:950;
  font-size:12.8px;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.pill:hover{transform:translateY(-1px);border-color:rgba(61,180,255,.30)}
.pill.active{
  background: rgba(61,180,255,.16);
  border-color: rgba(61,180,255,.36);
  color:#fff;
}

/* ============ KV GRID (META) ============ */
.kv{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.kv .box{
  border-radius:18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 12px 12px;
}
.kv .box small{
  display:block;
  color: var(--muted);
  font-weight:900;
}
.kv .box b{
  display:block;
  margin-top:6px;
  font-size:16px;
  font-weight:1000;
}

/* ============ STATUS BADGES ============ */
.badge-status{
  padding: 7px 11px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  font-weight:1000;
  font-size:12.5px;
  display:inline-flex;align-items:center;gap:8px;
}
.badge-done{background:rgba(124,255,178,.10);border-color:rgba(124,255,178,.18)}
.badge-run{background:rgba(61,180,255,.10);border-color:rgba(61,180,255,.18)}
.badge-wait{background:rgba(255,177,90,.12);border-color:rgba(255,177,90,.18)}
.badge-cancel{background:rgba(255,107,107,.10);border-color:rgba(255,107,107,.18)}

/* ============ DRAWER ============ */
.drawer-backdrop{
  position:fixed;inset:0;
  z-index:80;
  background: rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition: .18s ease;
}
.drawer-backdrop.open{opacity:1;pointer-events:auto}

.drawer{
  position:fixed;
  top:0;left:-330px;
  width: 310px;
  height:100vh;
  z-index:90;
  background: rgba(10,16,34,.92);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: .22s ease;
  padding: 14px;
  overflow:auto;
}
.drawer.open{left:0}

.drawer-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom: 10px;
}
.drawer-brand{
  font-weight:1000;
  letter-spacing:.6px;
  font-size:18px;
}
.drawer-balance{
  margin: 12px 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(61,180,255,.22), rgba(47,99,255,.20));
  border: 1px solid rgba(61,180,255,.28);
  padding: 12px 14px;
}
.drawer-balance small{
  display:block;
  opacity:.85;
  font-weight:900;
}
.drawer-balance b{
  display:block;
  margin-top:6px;
  font-weight:1000;
  font-size:18px;
}
.drawer-nav{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.d-item{
  padding: 14px 14px;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  font-weight: 950;
  color: rgba(236,241,255,.92);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.d-item:hover{transform:translateY(-1px);border-color:rgba(61,180,255,.25)}
.d-item.active{
  background: linear-gradient(180deg, rgba(61,180,255,.24), rgba(47,99,255,.16));
  border-color: rgba(61,180,255,.35);
}
.d-item.danger{
  background: rgba(255,107,107,.10);
  border-color: rgba(255,107,107,.20);
}

/* ============ BOTTOM NAV (SOCSMM) ============ */
.soc-bottom{
  position: fixed;
  left:0; right:0;
  bottom:0;
  z-index:60;
  height: var(--navH);
  background: rgba(10,16,34,.82);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.soc-bottom-inner{
  max-width:520px;
  margin:0 auto;
  height:100%;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding: 10px 10px 10px;
  position:relative;
  gap: 8px;
}
.soc-item{
  width:20%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color: rgba(236,241,255,.80);
  font-weight: 950;
  font-size: 12px;
  padding-bottom: 6px;
}
.soc-item span{font-size:22px}
.soc-item small{
  font-size: 12px;
  line-height: 1.05;
  text-align:center;
  opacity:.92;
}
.soc-item.active{color:#fff}

.soc-center{
  width: 70px !important;
  transform: translateY(-18px);
  gap: 4px;
}
.soc-center span{
  width: 66px;height:66px;
  border-radius: 999px;
  display:grid;place-items:center;
  background: linear-gradient(180deg, var(--blue2), var(--blue1));
  border: 6px solid rgba(10,16,34,.90);
  box-shadow: 0 18px 55px rgba(47,99,255,.28);
  font-size: 24px;
}
.soc-center small{
  margin-top: 6px;
  font-size: 12px;
}

/* ============ SERVICES LIST UI ============ */
.service-card{
  border-radius: 24px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  padding: 16px 16px;
}
.service-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px
}
.service-title{font-size:18px;font-weight:1000}
.service-cat{color:var(--muted);font-weight:800;font-size:13px;margin-top:4px}
.service-meta{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-meta .box{border-radius:18px;border:1px solid var(--line);background:rgba(0,0,0,.10);padding:12px}
.service-meta .box small{display:block;color:var(--muted);font-weight:900}
.service-meta .box b{display:block;margin-top:6px;font-weight:1000}
.service-actions{margin-top:12px;display:flex;gap:12px}

/* ============ ORDERS FILTER GRID (SOCSMM-like) ============ */
.order-filter-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.of-item{
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  padding: 14px 14px;
  font-weight: 1000;
  color: rgba(236,241,255,.90);
  display:flex;align-items:center;gap:10px;
}
.of-item:hover{border-color:rgba(61,180,255,.25)}
.of-item.active{
  background: rgba(61,180,255,.16);
  border-color: rgba(61,180,255,.36);
}

/* Search bar */
.searchbar{
  display:flex;
  gap:10px;
  margin-top: 12px;
}
.searchbar .input{flex:1}
.searchbar .btn{
  width:auto;
  padding: 14px 16px;
}

/* ============ ORDER CARD ============ */
.order-card{
  border-radius: 24px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  padding: 16px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.order-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.order-id{
  font-weight:1000;
  font-size: 18px;
}
.order-link{
  margin-top: 8px;
  color: rgba(61,180,255,.95);
  font-weight: 900;
  word-break: break-word;
}
.order-date{margin-top:10px;color:var(--muted);font-weight:800;font-size:13px}
.order-status{margin-top:10px}

/* ============ DASH STATS (SOCSMM-like) ============ */
.stat-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat{
  border-radius: 22px;
  padding: 16px 16px;
  color:#fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.14);
  position:relative;
  overflow:hidden;
}
.stat small{display:block;font-weight:900;opacity:.9}
.stat b{display:block;margin-top:8px;font-size:26px;font-weight:1000}
.bg-purple{background:linear-gradient(135deg,#8b5cf6,#6366f1)}
.bg-pink{background:linear-gradient(135deg,#fb7185,#f43f5e)}
.bg-orange{background:linear-gradient(135deg,#fb923c,#f97316)}
.bg-blue{background:linear-gradient(135deg,#3b82f6,#2563eb)}

/* ============ MODAL ============ */
.modal-backdrop{
  position:fixed;inset:0;
  background: rgba(0,0,0,.60);
  z-index:95;
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
}
.modal-backdrop.open{opacity:1;pointer-events:auto}

.modal{
  position:fixed;
  left:50%;
  top:55%;
  transform: translate(-50%,-50%) scale(.98);
  width: min(520px, 92vw);
  z-index:96;
  border-radius: 26px;
  border:1px solid var(--line);
  background: rgba(10,16,34,.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
}
.modal.open{
  opacity:1;
  pointer-events:auto;
  transform: translate(-50%,-50%) scale(1);
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
}
.modal-body{padding:14px}

/* ============ BOTTOM SHEET ============ */
.sheet-backdrop{
  position:fixed;inset:0;
  background: rgba(0,0,0,.55);
  z-index:92;
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
}
.sheet-backdrop.open{opacity:1;pointer-events:auto}

.sheet{
  position:fixed;
  left:0; right:0;
  bottom:-80%;
  z-index:93;
  background: rgba(10,16,34,.96);
  border-top: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -18px 45px rgba(0,0,0,.50);
  transition:.22s ease;
}
.sheet.open{bottom:0}
.sheet-head{padding:14px 14px 10px}
.sheet-handle{
  width: 48px; height:5px;
  border-radius: 999px;
  background: rgba(255,255,255,.20);
  margin: 0 auto 10px;
}
.sheet-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sheet-body{padding: 0 14px 14px}

/* ============ TOAST ============ */
.toast{
  position:fixed;
  left:50%;
  transform: translateX(-50%);
  bottom: calc(var(--navH) + 16px);
  z-index:99;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.18);
  padding: 10px 12px;
  box-shadow: var(--shadow2);
  display:none;
  font-weight: 950;
  color:#081021;
}

/* ============ SNOW ============ */
.snow{
  pointer-events:none;
  position:fixed;
  inset:0;
  z-index:5;
  overflow:hidden;
}
.snow i{
  position:absolute;
  top:-10px;
  width: 6px;height:6px;
  border-radius:50%;
  background: rgba(255,255,255,.75);
  filter: blur(.2px);
  animation: fall linear infinite;
}
@keyframes fall{
  to{ transform: translateY(110vh); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 380px){
  .soc-brand-name{font-size:38px}
  .soc-hero-title{font-size:30px}
  .soc-why h2{font-size:32px}
  .soc-hero-btns{flex-direction:column}
}
@media (prefers-reduced-motion: reduce){
  .snow{display:none}
  *{scroll-behavior:auto !important}
}



/* Drawer */
.drawer{ transform:translateX(-110%); opacity:0; pointer-events:none; }
.drawer.open{ transform:translateX(0); opacity:1; pointer-events:auto; }

.drawer-backdrop{ opacity:0; pointer-events:none; }
.drawer-backdrop.open{ opacity:1; pointer-events:auto; }

/* Modal */
.modal{ opacity:0; pointer-events:none; transform:translate(-50%,-50%) scale(.98); }
.modal.open{ opacity:1; pointer-events:auto; transform:translate(-50%,-50%) scale(1); }

.modal-backdrop{ opacity:0; pointer-events:none; }
.modal-backdrop.open{ opacity:1; pointer-events:auto; }

/* Sheet */
.sheet{ transform:translateY(110%); pointer-events:none; }
.sheet.open{ transform:translateY(0); pointer-events:auto; }

.sheet-backdrop{ opacity:0; pointer-events:none; }
.sheet-backdrop.open{ opacity:1; pointer-events:auto; }

/* =========================
   SOCSMM STYLE BOTTOM NAV
   ========================= */
.bn{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  height: 78px;
  background: #ffffff;
  border-top: 1px solid rgba(16,24,40,.10);
  box-shadow: 0 -18px 55px rgba(0,0,0,.10);
}

.bn-inner{
  max-width: 520px;
  margin: 0 auto;
  height: 78px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding: 10px 12px 10px;
  gap: 8px;
  position: relative;
}

.bn-item{
  width: 20%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 6px;
  text-decoration:none;
  color: rgba(20,25,40,.78);
  font-weight: 900;
  text-align:center;
  user-select:none;
}

.bn-ico{
  font-size: 20px;
  line-height: 1;
  opacity: .95;
}

.bn-txt{
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
  opacity: .92;
}

.bn-item.active{
  color: #0f4fbf;
}

.bn-center{
  width: 20%;
  display:flex;
  justify-content:center;
  align-items:flex-end;
  text-decoration:none;
}

.bn-center-ico{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  margin-bottom: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, #3db4ff, #2f63ff);
  color: #fff;
  font-size: 24px;
  font-weight: 1000;
  box-shadow: 0 18px 45px rgba(47,99,255,.28);
  border: 6px solid #fff;
  transition: transform .12s ease;
}

.bn-center:active .bn-center-ico{
  transform: translateY(1px) scale(.99);
}

/* page content pastidan joy */
.app{
  padding-bottom: 96px; /* bottomnav ustidan content chiqib ketmasin */
}

  
  
  
  
  



