@import url('https://quotationtm.ir/api/public/css/style.css');

/* ==========================================================================
   GymYar — design tokens (blue admin theme, identity close to GymGo)
   ========================================================================== */
:root {
  --accent: #2F6FED;
  --accent-2: #1857D6;
  --accent-soft: #E8F0FE;
  --red: #FF4A3D;
  --red-soft: #FFE7E5;
  --green: #10B981;
  --green-soft: #E3F9F1;
  --yellow: #F5A623;
  --yellow-soft: #FFF4E0;
  --purple: #8B5CF6;
  --purple-soft: #F1EBFE;
  --cyan: #0EA5E9;
  --cyan-soft: #E3F5FC;
  --dark: #171F2E;
  --text: #1C2333;
  --muted: #8A93A6;
  --card: #FFFFFF;
  --bg: #F3F6FC;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 4px 15px rgba(21, 44, 94, .07);
  --shadow-lift: 0 10px 28px rgba(47, 111, 237, .22);
  --gradient-hero: linear-gradient(120deg, #2453C4 0%, #2F6FED 50%, #4F9CFF 100%);
  --header-h: 64px;
  --bottomnav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottomnav-h) + 14px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}

@media(min-width:900px) {
  body {
    padding-bottom: 24px;
  }

  .container {
    max-width: 1180px;
    padding: 0 32px;
  }
}

/* ---------- utility ---------- */
.flex {
  display: flex;
}

.between {
  justify-content: space-between;
  align-items: center;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrap {
  flex-wrap: wrap;
}

.col {
  flex-direction: column;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.muted {
  color: var(--muted);
}

.mt-0 {
  margin-top: 0;
}

.grow {
  flex: 1;
}

.hide-desktop {
  display: block;
}

.show-desktop {
  display: none;
}

@media(min-width:900px) {
  .hide-desktop {
    display: none;
  }

  .show-desktop {
    display: block;
  }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 246, 252, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(21, 44, 94, .06);
}

.topbar-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.3px;
}

.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-6deg);
}

.logo .word b {
  color: var(--accent-2);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--dark);
  flex: none;
}

.icon-btn .dot {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--card);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}

/* ---------- drawer menu ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 35, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 60;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 78%;
  max-width: 320px;
  background: var(--card);
  z-index: 61;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22, .9, .3, 1);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  box-shadow: -10px 0 30px rgba(10, 18, 35, .18);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 20px;
  border-bottom: 1px solid #ECF1FA;
  margin-bottom: 14px;
}

.drawer-profile img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.drawer nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.drawer nav a.active,
.drawer nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.drawer nav .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: var(--bottomnav-h);
  background: var(--card);
  border-top: 1px solid rgba(21, 44, 94, .07);
  display: flex;
  align-items: center;
  box-shadow: 0 -6px 20px rgba(21, 44, 94, .06);
}

@media(min-width:900px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
}

.bottom-nav a svg {
  width: 22px;
  height: 22px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  transition: .2s;
}

.bottom-nav a.active {
  color: var(--accent-2);
}

.bottom-nav a.active svg {
  stroke: var(--accent-2);
}

.bottom-nav a.active .ico-wrap {
  background: var(--accent-soft);
}

.ico-wrap {
  width: 38px;
  height: 26px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- desktop side nav ---------- */
.app-shell {
  display: block;
}

@media(min-width:900px) {
  .app-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
  }

  .side-nav {
    position: sticky;
    top: 24px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 14px;
    margin-top: 24px;
  }

  .side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
    font-size: 14.5px;
  }

  .side-nav a.active {
    background: var(--accent-soft);
    color: var(--accent-2);
  }

  .side-nav .ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
  }

  .main-col {
    margin-top: 24px;
    min-width: 0;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:active {
  transform: scale(.97);
}

.btn-primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #E1E7F3;
  color: var(--text);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.btn-red-soft {
  background: var(--red-soft);
  color: var(--red);
}

.btn-green-soft {
  background: var(--green-soft);
  color: var(--green);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--shadow-lift);
}

/* ---------- section heading ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 12px;
}

.section-head h2 {
  font-size: 16.5px;
  margin: 0;
  font-weight: 800;
}

.section-head .see-all {
  font-size: 12.5px;
  color: var(--accent-2);
  font-weight: 700;
}

/* ---------- card base ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pad {
  padding: 18px;
}

/* ---------- badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
}

.badge.accent {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.badge.green {
  background: var(--green-soft);
  color: var(--green);
}

.badge.red {
  background: var(--red-soft);
  color: var(--red);
}

.badge.yellow {
  background: var(--yellow-soft);
  color: #9A6A00;
}

.badge.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.badge.cyan {
  background: var(--cyan-soft);
  color: #0B7FAE;
}

.badge.dark {
  background: var(--dark);
  color: #fff;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  color: #fff;
  padding: 22px 20px 26px;
  margin-top: 16px;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(-35deg, rgba(255, 255, 255, .10) 0 10px, transparent 10px 26px);
}

.hero::after {
  background: radial-gradient(120px 120px at 88% 10%, rgba(255, 255, 255, .35), transparent 70%);
}

.hero .eyebrow {
  font-size: 12.5px;
  opacity: .9;
  font-weight: 600;
}

.hero h1 {
  font-size: 22px;
  margin: 6px 0 4px;
  font-weight: 800;
}

.hero p {
  font-size: 13px;
  opacity: .92;
  margin: 0 0 16px;
  max-width: 85%;
}

/* ---------- stat ring ---------- */
.stat-ring {
  position: relative;
  width: 86px;
  height: 86px;
  flex: none;
}

.stat-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stat-ring circle {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}

.stat-ring .bg {
  stroke: var(--bg);
}

.stat-ring .fg {
  stroke: var(--accent);
  transition: stroke-dashoffset 1.1s cubic-bezier(.22, .9, .3, 1);
}

.stat-ring .val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-ring .val b {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.stat-ring .val span {
  font-size: 9.5px;
  color: var(--muted);
}

/* ---------- stat tile (dashboard) ---------- */
.stat-tile {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.stat-tile .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.stat-tile b {
  font-size: 21px;
  font-weight: 800;
  display: block;
}

.stat-tile .lbl {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media(min-width:640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media(min-width:900px) {
  .grid-3-desktop {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4-desktop {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- chart ---------- */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  padding-top: 10px;
}

.chart-bars .bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.chart-bars .bar {
  width: 100%;
  max-width: 22px;
  border-radius: 8px 8px 3px 3px;
  background: var(--accent-soft);
  position: relative;
  height: 4px;
  transition: height 1s cubic-bezier(.22, .9, .3, 1);
}

.chart-bars .bar.today {
  background: var(--gradient-hero);
}

.chart-bars .lbl {
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------- activity list ---------- */
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #EEF2FA;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.activity-item .meta {
  font-size: 12px;
  color: var(--muted);
}

.activity-item .name {
  font-weight: 700;
  font-size: 13.5px;
}

/* ---------- horizontal scroller ---------- */
.hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.hscroll>* {
  scroll-snap-align: start;
}

/* ---------- price row ---------- */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price {
  font-weight: 900;
  font-size: 16px;
}

.price-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

/* ---------- tabs / pills filter ---------- */
.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: none;
  padding: 9px 16px;
  border-radius: 99px;
  background: var(--card);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  box-shadow: var(--shadow);
  border: none;
}

.pill.active {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

/* ---------- segmented tabs (two-way) ---------- */
.tabs {
  display: flex;
  background: var(--card);
  border-radius: 99px;
  padding: 5px;
  box-shadow: var(--shadow);
  gap: 4px;
}

.tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 10px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.tabs button.active {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ---------- search ---------- */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 13.5px;
  color: var(--text);
}

.search-box svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
}

/* ---------- form fields ---------- */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 7px;
}

.field .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 11.5px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid #E1E7F3;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  outline: none;
  background: var(--card);
  transition: border-color .15s;
  color: var(--text);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field .hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media(max-width:420px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

fieldset.field {
  border: none;
  padding: 0;
  margin: 0 0 14px;
}

/* ---------- radio / role chips ---------- */
.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip-opt {
  position: relative;
}

.chip-opt span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--bg);
  border: 1.5px solid transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.chip-opt input:checked+span {
  background: var(--accent-soft);
  color: var(--accent-2);
  border-color: var(--accent);
}

/* ---------- day picker chips ---------- */
.day-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.day-chip {
  position: relative;
}

.day-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.day-chip input:checked+span {
  background: var(--gradient-hero);
  color: #fff;
}

/* ---------- toggle switch ---------- */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex: none;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: #E1E7F3;
  border-radius: 99px;
  transition: .2s;
}

.switch .slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.switch input:checked+.slider {
  background: var(--gradient-hero);
}

.switch input:checked+.slider::before {
  transform: translateX(-20px);
}

/* ---------- stepper (credit +/-) ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #E1E7F3;
  background: var(--card);
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  flex: none;
}

.stepper button.plus {
  color: var(--green);
  border-color: var(--green-soft);
  background: var(--green-soft);
}

.stepper button.minus {
  color: var(--red);
  border-color: var(--red-soft);
  background: var(--red-soft);
}

.stepper input {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  border: 1.5px solid #E1E7F3;
  border-radius: 12px;
  padding: 11px 8px;
  outline: none;
}

/* ---------- avatar-name row (member list) ---------- */
.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #EEF2FA;
}

.member-row:last-child {
  border-bottom: none;
}

.member-row .av {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex: none;
}

.member-row .name {
  font-weight: 700;
  font-size: 13.5px;
}

.member-row .meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.member-row .end {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

/* ---------- wallet balance chip ---------- */
.wallet-amt {
  font-weight: 800;
  font-size: 13px;
}

.wallet-amt.pos {
  color: var(--green);
}

.wallet-amt.neg {
  color: var(--red);
}

/* ---------- transaction row ---------- */
.tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #EEF2FA;
}

.tx-row:last-child {
  border-bottom: none;
}

.tx-row .ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 16px;
}

.tx-row .title {
  font-weight: 700;
  font-size: 13px;
}

.tx-row .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.tx-row .amt {
  font-weight: 800;
  font-size: 13.5px;
  margin-right: auto;
}

.tx-row .amt.pos {
  color: var(--green);
}

.tx-row .amt.neg {
  color: var(--red);
}

/* ---------- info list (key/value) ---------- */
.kv-list {
  display: flex;
  flex-direction: column;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #EEF2FA;
  font-size: 13px;
}

.kv-row:last-child {
  border-bottom: none;
}

.kv-row .k {
  color: var(--muted);
}

.kv-row .v {
  font-weight: 700;
}

/* ---------- progress bar ---------- */
.progressbar {
  height: 7px;
  border-radius: 99px;
  background: var(--bg);
  overflow: hidden;
}

.progressbar span {
  display: block;
  height: 100%;
  background: var(--gradient-hero);
  border-radius: 99px;
}

/* ---------- mini ring (plan usage on attendance rows) ---------- */
.mini-ring {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
}

.mini-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mini-ring circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.mini-ring .bg {
  stroke: var(--bg);
}

.mini-ring .fg {
  stroke: var(--accent);
  transition: stroke-dashoffset 1.1s cubic-bezier(.22, .9, .3, 1);
}

.mini-ring .val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
}

.plan-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.plan-chip .pname {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.plan-chip .pleft {
  font-size: 10px;
  color: var(--muted);
}

/* ---------- inline search dropdown (e.g. attendance check-in search) ---------- */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  display: none;
}

.search-dropdown.open {
  display: block;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid #EEF2FA;
}

.search-result-row:last-child {
  border-bottom: none;
}

.search-result-row .av {
  width: 36px;
  height: 36px;
  font-size: 12px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: none;
}

.search-result-row .name {
  font-weight: 700;
  font-size: 13px;
}

.search-result-row .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- lookup gate (identify member before an action) ---------- */
.lookup-gate .big-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.lookup-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-top: 10px;
  cursor: pointer;
  transition: .15s;
}

.lookup-result:hover {
  background: var(--accent-soft);
}

/* ---------- financial report: summary cards ---------- */
.fin-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.fin-card .muted {
  font-size: 12px;
}

.fin-card b {
  font-size: 20px;
  font-weight: 800;
  display: block;
  margin-top: 4px;
}

/* ---------- plan card ---------- */
.plan-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.plan-card.selected {
  box-shadow: var(--shadow-lift);
  border: 1.5px solid var(--accent);
}

.plan-card h3 {
  font-size: 14.5px;
  margin: 0 0 4px;
  font-weight: 800;
}

.plan-card .meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.plan-card .price {
  font-size: 17px;
  font-weight: 900;
  color: var(--accent-2);
}

/* ---------- empty state ---------- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.empty-state .ico {
  font-size: 34px;
  margin-bottom: 10px;
}

.empty-state .t {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
}

.empty-state .s {
  font-size: 12px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 18px);
  right: 50%;
  transform: translateX(50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(10, 18, 35, .3);
  opacity: 0;
  pointer-events: none;
  transition: .3s ease;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

/* ---------- fab (bottom-left add button) ---------- */
.fab-wrap {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 18px);
  left: 18px;
  z-index: 45;
}

@media(min-width:900px) {
  .fab-wrap {
    bottom: 24px;
  }
}

/* ---------- page header ---------- */
.page-title {
  font-size: 19px;
  font-weight: 800;
  margin: 18px 0 4px;
}

.page-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 4px;
}

/* ---------- sticky action bar (forms) ---------- */
.action-bar {
  position: sticky;
  bottom: calc(var(--bottomnav-h) + 12px);
  margin-top: 20px;
  display: flex;
  gap: 10px;
  background: var(--card);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

@media(min-width:900px) {
  .action-bar {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
}

/* ---------- misc ---------- */
.divider {
  height: 1px;
  background: #EEF2FA;
  margin: 16px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}