
/* DORSENİ SAT — MOBILE-FIRST MODERN PATCH v2 */
*,*::before,*::after{box-sizing:border-box}
:root{
  --bg:#0b0f14; --bg-elev:#0f1620; --glass:rgba(255,255,255,.06); --stroke:rgba(255,255,255,.08);
  --fg:#e9eef5; --muted:#a9b4c0; --accent:#4aa3ff; --accent-2:#22d3ee;
  --ok:#22c55e; --warn:#f59e0b; --err:#ef4444;
  --radius:16px; --radius-sm:12px;
  --shadow:0 8px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
}
@media (prefers-color-scheme: light){
  :root{ --bg:#f6f8fc; --bg-elev:#ffffff; --glass:rgba(0,0,0,.04); --stroke:rgba(0,0,0,.08); --fg:#0b1220; --muted:#475569; }
}
html{height:100%;scroll-behavior:smooth}
body{
  margin:0;background:radial-gradient(1200px 800px at 10% -10%,#123,transparent),
  radial-gradient(1200px 800px at 110% -20%,#041b2a,transparent), var(--bg);
  color:var(--fg); font:clamp(15px, 1.9vw, 16px)/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  padding-bottom:calc(86px + env(safe-area-inset-bottom)); /* room for bottom bar */
}
a{color:inherit;text-decoration:none}
img,video{max-width:100%;height:auto;display:block;border-radius:var(--radius-sm)}

/* Topbar */
.topbar{
  position:sticky;top:0;z-index:1000;
  display:flex;gap:12px;align-items:center;justify-content:space-between;
  padding:12px 16px env(safe-area-inset-top) 16px;
  padding-top:calc(12px + env(safe-area-inset-top));
  backdrop-filter:saturate(140%) blur(10px);
  background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.2)) , var(--glass);
  border-bottom:1px solid var(--stroke);
}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.4px}
.logo img{width:24px;height:24px}
.searchbar{flex:1;display:flex;gap:8px;align-items:center;margin:0 8px}
.searchbar input{
  width:100%;padding:11px 14px;border-radius:999px;border:1px solid var(--stroke);
  background:rgba(255,255,255,.06); color:var(--fg); outline:none;
  min-width:140px;
}
.pill{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.06);
  border:1px solid var(--stroke);color:var(--fg);box-shadow:var(--shadow)}

/* Page wrapper */
.page{padding:12px 12px 16px;max-width:1024px;margin:0 auto}

/* Tabs */
.tabs{display:flex;gap:10px;margin:10px 4px 12px;flex-wrap:wrap}
.tab{flex:0 0 auto;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.04);
  border:1px solid var(--stroke)}
.tab.active{background:linear-gradient(180deg,rgba(74,163,255,.25),rgba(34,211,238,.20));
  border-color:rgba(74,163,255,.55)}

/* Cards */
.card{
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.03));
  border:1px solid var(--stroke); border-radius:var(--radius);
  padding:14px; margin:12px auto; box-shadow:var(--shadow);
}
.card h2,.card h3{margin:4px 0 8px}

/* Buttons & inputs */
.btn{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(180deg,var(--accent),#377ee0);
  color:#001022;padding:12px 16px;border-radius:14px;font-weight:700;border:0;box-shadow:var(--shadow);cursor:pointer;touch-action:manipulation}
.btn:active{transform:translateY(1px)}
.input,select,textarea{
  width:100%;padding:14px;border-radius:14px;border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);color:var(--fg);outline:none
}
input[type="date"]{min-height:48px}
.file{padding:14px;border:1px dashed var(--stroke);border-radius:14px;background:rgba(255,255,255,.04);color:var(--muted)}

/* Listing meta badges */
.listing-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:8px}
.badge{background:rgba(255,255,255,.06);border:1px solid var(--stroke);border-radius:999px;padding:6px 10px}

/* Messages panel */
.messages-panel{position:fixed;top:60px;left:0;right:0;max-width:980px;margin:0 auto;padding:8px;z-index:1500}
.msg-list{background:var(--bg-elev);border:1px solid var(--stroke);border-radius:var(--radius);padding:12px;box-shadow:var(--shadow)}
.msg-item{border-top:1px solid var(--stroke);padding:10px 0}.msg-item:first-child{border-top:none}
.msg-head{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}

/* Bottom bar with safe area */
.bottombar{
  position:fixed;left:0;right:0;bottom:0;height:86px;z-index:1600;
  display:flex;justify-content:space-around;align-items:center;
  padding-bottom:calc(env(safe-area-inset-bottom) + 8px);
  backdrop-filter:saturate(140%) blur(10px);
  background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.25)) , var(--glass);
  border-top:1px solid var(--stroke);
}
.nav-item{display:flex;flex-direction:column;align-items:center;font-size:12px;gap:4px}
.publish-btn{
  pointer-events:auto; cursor:pointer; width:74px;height:74px;border-radius:22px;border:0;
  background:linear-gradient(180deg,var(--accent-2),var(--accent)); color:#001022;
  font-weight:800; display:flex;justify-content:center;align-items:center;flex-direction:column;gap:2px;
  transform:translateY(-18px); box-shadow:0 10px 26px rgba(74,163,255,.45);
}

/* Action sheet + backdrop */
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:2000}
.sheet[hidden]{display:none}
.sheet::before{
  content:""; position:fixed; inset:0; background:rgba(0,0,0,.35); backdrop-filter:blur(2px);
}
.sheet-content{
  position:relative; margin:0 auto; max-width:720px; background:var(--bg-elev);
  border:1px solid var(--stroke); border-radius:20px 20px 0 0; padding:18px 16px 24px;
  box-shadow:0 -10px 30px rgba(0,0,0,.35);
}
.sheet-close{float:right;background:transparent;border:none;color:var(--muted);font-size:22px;cursor:pointer}
.sheet-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:8px}
.sheet-card{background:var(--glass);border:1px solid var(--stroke);border-radius:14px;padding:16px;display:block;transition:transform .15s ease}
.sheet-card:hover{transform:translateY(-2px)}
.sheet-card-emoji{font-size:26px;margin-bottom:6px}
.sheet-card-title{font-weight:800}
.sheet-card-desc{font-size:12px;color:var(--muted)}

/* Profile & grids */
.profile-grid{display:grid;gap:12px;margin:12px auto;max-width:980px}
.profile-header{display:flex;gap:12px;align-items:center}
.avatar{width:84px;height:84px;border-radius:50%;object-fit:cover;border:2px solid var(--stroke);background:var(--glass)}

/* Tables */
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid var(--stroke);padding:12px;text-align:left;font-size:14px}

/* Notices */
.notice{padding:14px;border:1px solid var(--stroke);background:var(--bg-elev);border-radius:14px;margin:0 4px 12px}
.notice.success{border-color:rgba(34,197,94,.4);box-shadow:inset 0 0 0 1px rgba(34,197,94,.25)}
.notice.error{border-color:rgba(239,68,68,.45);box-shadow:inset 0 0 0 1px rgba(239,68,68,.25)}

/* Utilities */
.grid{display:grid;gap:12px}.grid-cols-2{grid-template-columns:1fr 1fr}
.inline{display:flex;gap:8px;align-items:center}

/* Responsive tweaks */
@media (max-width:620px){
  .sheet-columns{grid-template-columns:1fr}
  .grid-cols-2{grid-template-columns:1fr}
  .page{padding-left:10px;padding-right:10px}
}
