/* =========================================================
   مزار دارو — Main Stylesheet
   ========================================================= */
:root {
  --brand: #0b8f7c;
  --brand-2: #14b8a6;
  --brand-dark: #076657;
  --brand-soft: #e6f6f3;
  --accent: #ff4d6d;
  --gold: #f5b301;
  --ink: #102a2a;
  --muted: #6b7d7c;
  --line: #e4ecea;
  --bg: #f3f7f6;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(16, 42, 42, .18);
  --shadow-sm: 0 4px 14px -6px rgba(16, 42, 42, .15);
  --grad: linear-gradient(135deg, #0b8f7c 0%, #14b8a6 55%, #34d399 100%);
  --sidebar-w: 260px;
}

* { font-family: Vazirmatn, Tahoma, sans-serif; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image: radial-gradient(circle at 100% 0, rgba(20,184,166,.08), transparent 40%),
                    radial-gradient(circle at 0 100%, rgba(52,211,153,.07), transparent 40%);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
}
a { color: var(--brand); }
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--grad) !important; }
.fw-black { font-weight: 900; }
.xsmall { font-size: .75rem; }
.min-w-0 { min-width: 0; }
::selection { background: var(--brand-2); color: #fff; }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; transition: all .2s; }
.btn-brand {
  background: var(--grad); color: #fff; border: 0;
  box-shadow: 0 8px 20px -8px rgba(11,143,124,.6);
}
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(11,143,124,.7); filter: brightness(1.05); }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); border: 0; }
.btn-soft:hover { background: #d3efea; color: var(--brand-dark); }
.btn-icon {
  width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
  background: transparent; border: 0; color: var(--ink); font-size: 1.2rem;
}
.btn-icon:hover { background: var(--brand-soft); color: var(--brand); }
.form-control, .form-select { border-radius: 12px; border-color: var(--line); padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 .25rem rgba(20,184,166,.15); }
.form-label { font-size: .9rem; }

/* ---------- Brand ---------- */
.brand-logo {
  width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 2rem; box-shadow: 0 12px 30px -10px rgba(11,143,124,.7);
  transform: rotate(-8deg);
}
.brand-logo.sm { width: 42px; height: 42px; font-size: 1.3rem; border-radius: 14px; }
.brand-logo.xs { width: 34px; height: 34px; font-size: 1.05rem; border-radius: 11px; }
.side-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin: .5rem .5rem 1.8rem; }
.brand-text {
  font-weight: 900; font-size: 1.4rem; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; width: var(--sidebar-w);
  background: rgba(255,255,255,.85); backdrop-filter: blur(16px);
  border-left: 1px solid var(--line); padding: 1.2rem .9rem; flex-direction: column; z-index: 1030;
  overflow-y: auto;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-link {
  display: flex; align-items: center; gap: .9rem; padding: .72rem 1rem; border-radius: 14px;
  color: var(--ink); text-decoration: none; font-weight: 500; position: relative; transition: all .2s;
}
.side-link i { font-size: 1.3rem; transition: transform .2s; }
.side-link:hover { background: var(--brand-soft); color: var(--brand-dark); }
.side-link:hover i { transform: scale(1.12); }
.side-link.active { background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 8px 18px -8px rgba(11,143,124,.7); }
.side-badge {
  margin-right: auto; background: var(--accent); color: #fff; border-radius: 20px;
  font-size: .72rem; padding: 1px 8px; font-weight: 700; animation: pop .4s;
}
.side-link.active .side-badge { background: #fff; color: var(--accent); }
.side-sep { font-size: .72rem; color: var(--muted); padding: 1rem 1rem .3rem; font-weight: 700; letter-spacing: .5px; }
.side-user { display: flex; align-items: center; gap: .5rem; padding: .7rem; border-radius: 16px; background: var(--bg); margin-top: 1rem; }

/* ---------- Topbar & bottom nav (mobile) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1020; display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 1rem; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 64px; z-index: 1030; display: flex;
  justify-content: space-around; align-items: center; background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.bottom-nav a { color: var(--ink); font-size: 1.45rem; position: relative; padding: .3rem .6rem; }
.bottom-nav a.active { color: var(--brand); }
.bottom-nav .add-btn {
  background: var(--grad); color: #fff !important; width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(11,143,124,.7); margin-top: -18px;
}
.dot-badge {
  position: absolute; top: -2px; left: -2px; background: var(--accent); color: #fff; font-size: .62rem;
  border-radius: 10px; padding: 0 5px; font-weight: 700; min-width: 17px; text-align: center;
}

/* ---------- Main ---------- */
.main-area { padding: 1.5rem 1rem 90px; }
@media (min-width: 992px) {
  .main-area { margin-right: var(--sidebar-w); padding: 2rem 2rem 2rem; }
}
.flash-wrap { max-width: 900px; margin: 0 auto; }
.glass-alert { border: 0; border-radius: 14px; box-shadow: var(--shadow-sm); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.page-head .sub { color: var(--muted); font-size: .9rem; }
.card-x { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }

/* ---------- Avatars ---------- */
.avatar { position: relative; display: inline-block; flex-shrink: 0; border-radius: 50%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-xs { width: 28px; height: 28px; font-size: .8rem; }
.avatar-sm { width: 40px; height: 40px; font-size: 1rem; }
.avatar-md { width: 48px; height: 48px; font-size: 1.2rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }
.avatar-xl { width: 130px; height: 130px; font-size: 3rem; }
.avatar-letter {
  display: inline-grid; place-items: center; color: #fff; font-weight: 800;
  background: var(--grad);
}
.avatar-ring { padding: 3px; border-radius: 50%; background: conic-gradient(from 180deg, #34d399, #14b8a6, #0b8f7c, #f5b301, #34d399); display: inline-block; }
.avatar-ring .avatar { border: 3px solid #fff; }
.online-dot {
  position: absolute; bottom: 1px; left: 1px; width: 28%; height: 28%; min-width: 9px; min-height: 9px; max-width: 20px; max-height: 20px;
  background: #22c55e; border: 2px solid #fff; border-radius: 50%;
}

/* ---------- Feed / Post card ---------- */
.feed { max-width: 560px; margin: 0 auto; }
.feed-layout { display: flex; gap: 2rem; justify-content: center; align-items: flex-start; }
.feed-aside { width: 300px; position: sticky; top: 2rem; }
.post {
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line);
  margin-bottom: 1.6rem; overflow: hidden; animation: fadeUp .5s both;
}
.post-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; }
.post-head .shop { font-weight: 700; color: var(--ink); text-decoration: none; }
.post-head .meta { font-size: .75rem; color: var(--muted); }
.post-media { position: relative; background: #eef3f2; aspect-ratio: 1 / 1; }
.post-media .carousel, .post-media .carousel-inner, .post-media .carousel-item { height: 100%; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media .carousel-indicators [data-bs-target] { width: 7px; height: 7px; border-radius: 50%; border: 0; }
.post-media .no-img { height: 100%; display: grid; place-items: center; font-size: 5rem; color: #b9cfcb; }
.type-tag {
  position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700; color: var(--brand-dark);
}
.heart-burst {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; pointer-events: none;
  font-size: 6rem; color: #fff; opacity: 0; filter: drop-shadow(0 6px 20px rgba(0,0,0,.35));
}
.heart-burst.show { animation: burst .8s ease; }
.post-actions { display: flex; align-items: center; gap: .3rem; padding: .6rem .7rem 0; }
.act-btn { background: none; border: 0; font-size: 1.55rem; color: var(--ink); padding: .2rem .4rem; transition: transform .15s; }
.act-btn:hover { transform: scale(1.12); color: var(--brand); }
.act-btn.liked, .act-btn.liked:hover { color: var(--accent); }
.act-btn.liked i { animation: pop .35s; }
.post-body { padding: .3rem 1rem 1rem; }
.likes-line { font-weight: 700; font-size: .9rem; }
.med-title { font-size: 1.15rem; font-weight: 800; margin: .4rem 0 0; }
.med-generic { color: var(--muted); font-size: .88rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .8rem 0; }
.spec {
  background: var(--bg); border-radius: 12px; padding: .5rem .7rem; font-size: .8rem;
  display: flex; align-items: center; gap: .5rem;
}
.spec i { color: var(--brand); font-size: 1.05rem; }
.spec b { display: block; font-size: .88rem; color: var(--ink); }
.spec small { color: var(--muted); }
.price-tag { font-size: 1.3rem; font-weight: 900; color: var(--brand-dark); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.chip-ok { background: #dcfce7; color: #15803d; }
.chip-warn { background: #fef3c7; color: #b45309; }
.chip-danger { background: #fee2e2; color: #b91c1c; }
.chip-muted { background: #eef2f1; color: var(--muted); }

/* ---------- Rating ---------- */
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.rating-box {
  display: flex; align-items: center; gap: .8rem; background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border-radius: 14px; padding: .6rem .8rem; margin: .6rem 0;
}
.rating-percent { font-size: 1.35rem; font-weight: 900; color: #b45309; line-height: 1; }
.rating-bar { height: 6px; background: #fde68a; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.rating-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #f5b301); border-radius: 6px; transition: width .6s; }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-input button { background: none; border: 0; padding: 0 1px; font-size: 1.35rem; color: #d6d3d1; transition: transform .15s, color .15s; }
.rate-input button.on, .rate-input button:hover, .rate-input button:hover ~ button { color: var(--gold); }
.rate-input button:hover { transform: scale(1.2); }

/* ---------- Grid (profile / search) ---------- */
.med-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 768px) { .med-grid { gap: 14px; } }
.grid-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #e6eeec; display: block; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.grid-item .ov {
  position: absolute; inset: 0; background: rgba(7,102,87,.55); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .3rem; opacity: 0; transition: opacity .25s; font-weight: 700; text-align: center; padding: .5rem;
}
.grid-item:hover .ov { opacity: 1; }
.grid-item:hover img { transform: scale(1.07); }
.grid-item .multi { position: absolute; top: 8px; left: 8px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* ---------- Profile ---------- */
.profile-cover { height: 170px; border-radius: 24px; background: var(--grad); position: relative; overflow: hidden; }
.profile-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2px); background-size: 22px 22px;
}
.profile-card { margin-top: -70px; position: relative; z-index: 2; padding: 0 1.5rem; }
.profile-stats { display: flex; gap: 2rem; }
.profile-stats b { display: block; font-size: 1.25rem; font-weight: 900; }
.profile-stats span { color: var(--muted); font-size: .85rem; }
.info-line { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.info-line i { color: var(--brand); }

/* ---------- Suggestions aside ---------- */
.suggest-item { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; }
.suggest-item .name { font-weight: 700; font-size: .88rem; color: var(--ink); text-decoration: none; }

/* ---------- Upload ---------- */
.dropzone {
  border: 2px dashed #b6d9d2; border-radius: 18px; padding: 2rem 1rem; text-align: center; cursor: pointer;
  background: var(--brand-soft); transition: all .2s; color: var(--brand-dark);
}
.dropzone:hover, .dropzone.drag { background: #d3efea; border-color: var(--brand); }
.dropzone i { font-size: 2.6rem; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .6rem; margin-top: 1rem; }
.preview-grid .pv { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.preview-grid .pv img { width: 100%; height: 100%; object-fit: cover; }
.preview-grid .pv .rm {
  position: absolute; top: 5px; left: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; display: grid; place-items: center;
}
.preview-grid .pv.removed { opacity: .3; }

/* ---------- Order modal ---------- */
.glass-modal { border: 0; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.order-thumb { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--bg); }
.qty-box { display: flex; gap: .5rem; }
.qty-box input { font-weight: 800; font-size: 1.1rem; }
.qty-btn { width: 48px; border: 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); font-size: 1.3rem; flex-shrink: 0; }
.order-total { background: var(--grad); color: #fff; border-radius: 14px; padding: .8rem 1rem; font-weight: 800; font-size: 1.1rem; text-align: center; }

/* ---------- Orders ---------- */
.nav-pills-x { background: #fff; border-radius: 16px; padding: 5px; display: inline-flex; gap: 4px; box-shadow: var(--shadow-sm); }
.nav-pills-x .nav-link { border-radius: 12px; color: var(--muted); font-weight: 600; padding: .5rem 1.1rem; }
.nav-pills-x .nav-link.active { background: var(--grad); color: #fff; }
.order-card { display: flex; gap: 1rem; padding: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: .9rem; transition: transform .2s; }
.order-card:hover { transform: translateY(-2px); }
.order-card img { width: 70px; height: 70px; border-radius: 14px; object-fit: cover; background: var(--bg); }
.badge-status { display: inline-flex; gap: 4px; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700; }
.st-pending { background: #fef3c7; color: #b45309; }
.st-accepted { background: #dbeafe; color: #1d4ed8; }
.st-rejected { background: #fee2e2; color: #b91c1c; }
.st-completed { background: #dcfce7; color: #15803d; }
.st-cancelled { background: #eef2f1; color: var(--muted); }

/* ---------- Chat ---------- */
body.chat-page .main-area { padding-bottom: 0; }
.chat-shell {
  display: flex; height: calc(100vh - 4rem); background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
@media (max-width: 991px) {
  body.chat-page .main-area { padding: 0; }
  .chat-shell { height: calc(100vh - 57px - 64px); border-radius: 0; border: 0; }
}
.chat-list { width: 340px; border-left: 1px solid var(--line); display: flex; flex-direction: column; flex-shrink: 0; }
.chat-list-head { padding: 1.1rem 1rem .6rem; }
.chat-list-head h2 { font-size: 1.25rem; font-weight: 800; }
.chat-search { border-radius: 12px; background: var(--bg); border: 0; }
.conv-scroll { overflow-y: auto; flex: 1; }
.conv {
  display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem; cursor: pointer;
  text-decoration: none; color: var(--ink); transition: background .15s; position: relative;
}
.conv:hover { background: var(--bg); }
.conv.active { background: var(--brand-soft); }
.conv.active::before { content: ""; position: absolute; right: 0; top: 10%; bottom: 10%; width: 4px; border-radius: 4px; background: var(--brand); }
.conv .c-name { font-weight: 700; font-size: .92rem; }
.conv .c-last { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .c-time { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.conv .c-unread { background: var(--brand); color: #fff; border-radius: 20px; font-size: .7rem; padding: 0 7px; font-weight: 700; }
.conv.unread .c-last { color: var(--ink); font-weight: 700; }
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); }
.chat-head .status { font-size: .75rem; color: var(--muted); }
.chat-head .status.on { color: #16a34a; }
.chat-body {
  flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 4px;
  background-color: #eef5f3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%230b8f7c' fill-opacity='0.05'%3E%3Cpath d='M15 10h6v6h-6zM40 35h6v6h-6zM10 40a4 4 0 1 0 8 0 4 4 0 1 0-8 0M38 12a4 4 0 1 0 8 0 4 4 0 1 0-8 0'/%3E%3C/g%3E%3C/svg%3E");
}
.msg { max-width: 72%; padding: .55rem .85rem .35rem; border-radius: 18px; font-size: .92rem; line-height: 1.7; position: relative; word-wrap: break-word; white-space: pre-wrap; animation: msgIn .25s ease; }
.msg .m-time { font-size: .66rem; opacity: .7; display: flex; align-items: center; gap: 3px; justify-content: flex-end; margin-top: 2px; }
.msg.me { align-self: flex-start; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-end; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 2px 6px -3px rgba(0,0,0,.15); }
.msg .read-tick.read { color: #bbf7d0; }
.msg-med {
  display: flex; gap: .5rem; align-items: center; background: rgba(255,255,255,.18); border-radius: 12px;
  padding: .35rem; margin-bottom: .35rem; text-decoration: none; color: inherit; white-space: normal;
}
.msg.them .msg-med { background: var(--bg); }
.msg-med img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
.day-sep { align-self: center; background: rgba(255,255,255,.85); border-radius: 12px; font-size: .72rem; padding: 2px 12px; color: var(--muted); margin: .6rem 0; }
.chat-input { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: #fff; align-items: flex-end; }
.chat-input textarea { resize: none; border-radius: 22px; background: var(--bg); border: 0; padding: .65rem 1rem; max-height: 120px; }
.send-btn { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; padding: 0; font-size: 1.15rem; }
.send-btn i { transform: scaleX(-1); }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 2rem; }
.chat-empty .big { width: 110px; height: 110px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 3rem; margin: 0 auto 1rem; }
.typing-attach { font-size: .78rem; background: var(--brand-soft); color: var(--brand-dark); padding: .4rem .8rem; display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 991px) {
  .chat-list { width: 100%; border: 0; }
  .chat-shell.has-active .chat-list { display: none; }
  .chat-shell:not(.has-active) .chat-main { display: none; }
}

/* ---------- Admin ---------- */
.stat-card { padding: 1.3rem; display: flex; align-items: center; gap: 1rem; position: relative; overflow: hidden; }
.stat-card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; flex-shrink: 0; }
.stat-card b { font-size: 1.7rem; font-weight: 900; display: block; line-height: 1.1; }
.stat-card span { color: var(--muted); font-size: .85rem; }
.stat-card::after { content: ""; position: absolute; left: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: currentColor; opacity: .05; }
.g1 { background: linear-gradient(135deg, #0b8f7c, #34d399); }
.g2 { background: linear-gradient(135deg, #6366f1, #a78bfa); }
.g3 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.g4 { background: linear-gradient(135deg, #ef4444, #fb7185); }
.g5 { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.g6 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.table-x { margin: 0; }
.table-x thead th { background: var(--bg); color: var(--muted); font-weight: 700; font-size: .8rem; border: 0; padding: .9rem; white-space: nowrap; }
.table-x thead th:first-child { border-radius: 0 12px 12px 0; }
.table-x thead th:last-child { border-radius: 12px 0 0 12px; }
.table-x td { white-space: nowrap; }
.table-x td.small.text-muted { white-space: normal; min-width: 160px; }
.table-x td { vertical-align: middle; padding: .8rem .9rem; border-color: var(--line); font-size: .9rem; }
.table-x tbody tr:hover { background: #fafcfc; }
.thumb-sm { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 1rem; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart .bar span { width: 100%; max-width: 38px; background: var(--grad); border-radius: 8px 8px 4px 4px; min-height: 4px; transition: height .8s; }
.bar-chart .bar small { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.bar-chart .bar em { font-style: normal; font-size: .72rem; font-weight: 700; }

/* ---------- Auth ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: #0a3d36; overflow: hidden; }
.auth-bg { position: fixed; inset: 0; background: radial-gradient(circle at 20% 20%, #14b8a6 0, transparent 40%), radial-gradient(circle at 80% 80%, #34d399 0, transparent 40%), linear-gradient(135deg, #064e45, #0b8f7c); z-index: 0; }
.float-pill { position: absolute; color: rgba(255,255,255,.12); font-size: 6rem; animation: floaty 9s ease-in-out infinite; }
.p1 { top: 8%; left: 10%; } .p2 { bottom: 10%; left: 40%; animation-delay: -3s; font-size: 4rem; }
.p3 { top: 15%; right: 45%; animation-delay: -5s; font-size: 3.5rem; } .p4 { bottom: 20%; right: 8%; animation-delay: -1s; }
.auth-wrap { position: relative; z-index: 1; display: flex; gap: 3rem; align-items: center; max-width: 1000px; width: 100%; justify-content: center; }
.auth-side { flex: 1; color: #fff; }
.auth-features { list-style: none; padding: 0; margin-top: 2rem; }
.auth-features li { padding: .55rem 0; font-size: 1.05rem; color: rgba(255,255,255,.9); }
.auth-features i { background: rgba(255,255,255,.15); width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; margin-left: .7rem; }
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 430px; background: rgba(255,255,255,.97);
  border-radius: 28px; padding: 2.5rem 2rem; box-shadow: 0 40px 80px -20px rgba(0,0,0,.45); animation: fadeUp .6s both;
}
.input-icon { position: relative; }
.input-icon > i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.15rem; z-index: 2; }
.input-icon .form-control { padding-right: 46px; padding-left: 46px; }
.pw-toggle { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); z-index: 2; }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty .big { width: 100px; height: 100px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 1rem; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes burst { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.15); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-25px) rotate(12deg); } }
.skeleton { background: linear-gradient(90deg, #eef3f2 25%, #f7faf9 50%, #eef3f2 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.toast { border: 0; border-radius: 14px; box-shadow: var(--shadow); }
