/* Hunian Kita — view component styles (complements portal.css) */

.hk-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hk-icon svg { width: 100%; height: 100%; }

/* ---- Dashboard: needs-attention ---- */
.ic-pulse { width: 34px; height: 34px; border-radius: 10px; background: var(--neg-soft); color: var(--neg);
  display: grid; place-items: center; position: relative; }
.ic-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 10px; box-shadow: 0 0 0 0 var(--neg-soft);
  animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220,74,61,.30); } 70% { box-shadow: 0 0 0 10px rgba(220,74,61,0); } 100% { box-shadow: 0 0 0 0 rgba(220,74,61,0); } }

.attn-list { display: flex; flex-direction: column; gap: 8px; }
.attn-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; width: 100%;
  text-align: left; border: 1px solid var(--border-2); background: var(--surface-2); transition: border .14s, transform .14s, background .14s; }
.attn-row:hover { border-color: var(--accent); transform: translateX(2px); background: var(--surface); }
.attn-row .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.attn-row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.attn-row .tt { font-size: 13.5px; font-weight: 700; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attn-row .mm { font-size: 12px; font-weight: 600; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.glance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.glance { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--accent); }
.glance .gv { font-size: 19px; font-weight: 800; color: var(--t1); letter-spacing: -0.02em; line-height: 1; }
.glance .gl { font-size: 11.5px; font-weight: 600; color: var(--t3); margin-top: 3px; }
.weather-strip { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--t2); }
.weather-strip b { color: var(--t1); font-weight: 700; }

.feed { display: flex; flex-direction: column; gap: 4px; }
.feed-row { display: flex; align-items: center; gap: 11px; padding: 9px 4px; }
.feed-row .tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.feed-row .tt { font-size: 13px; font-weight: 700; color: var(--t1); }
.feed-row .mm { font-size: 11.5px; font-weight: 600; color: var(--t3); }

/* ---- mini stats ---- */
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.ms { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px var(--pad-card);
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 4px; }
.ms .msv { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.ms .msl { font-size: 12.5px; font-weight: 600; color: var(--t3); }

/* ---- table category icon ---- */
.ci { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.cat-select { background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 99px; padding: 8px 14px;
  font-size: 12.5px; font-weight: 700; color: var(--t2); outline: none; }

/* ---- complaint drawer ---- */
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-2); }
.kv { display: flex; flex-direction: column; gap: 3px; }
.kv .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--t3); }
.kv .v { font-size: 13.5px; font-weight: 700; color: var(--t1); display: flex; align-items: center; gap: 5px; }
.desc { font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--t2); margin: 16px 0; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.block-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--t3); margin: 22px 0 10px; }
.assign-box { padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-2); }
.rating-box { padding: 16px; border-radius: 14px; background: var(--warn-soft); margin-top: 18px; }

/* ---- finance ---- */
.paid-empty { display: flex; align-items: center; gap: 14px; padding: 26px; background: var(--surface-2); border-radius: 14px; border: 1px solid var(--border-2); }
.paid-empty b { font-size: 14.5px; font-weight: 800; color: var(--t1); }

/* ---- announcements ---- */
.ann-list { display: flex; flex-direction: column; gap: var(--gap); }
.ann { position: relative; }
.ann.pinned { border-color: var(--accent); }
.ann-top { display: flex; gap: 14px; }
.ann-foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-2); flex-wrap: wrap; }
.reach { display: flex; align-items: center; gap: 10px; }
.chs { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.ch-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--t3);
  background: var(--surface-3); border-radius: 99px; padding: 5px 11px; }

/* ---- facilities ---- */
.bk-list { display: flex; flex-direction: column; gap: 10px; }
.bk { display: flex; align-items: center; gap: 13px; padding: 13px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-2); }
.bk-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.bk-mid { flex: 1; min-width: 0; }
.bk-t { font-size: 14px; font-weight: 700; color: var(--t1); }
.bk-act { display: flex; gap: 8px; flex: none; }
.fac-list { display: flex; flex-direction: column; gap: 4px; }
.fac { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border-2); }
.fac:last-child { border-bottom: none; }
.fac-dot { width: 10px; height: 10px; border-radius: 4px; flex: none; }
.fac-n { font-size: 13.5px; font-weight: 700; color: var(--t1); }
.fac-r { font-size: 13px; font-weight: 800; color: var(--t1); }

/* ---- tweaks accent swatches ---- */
.tw-accents { display: flex; gap: 10px; padding: 4px 2px 8px; }
.tw-acc { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.15); border: 2px solid transparent; transition: transform .14s; }
.tw-acc:hover { transform: scale(1.08); }
.tw-acc.on { border-color: var(--t1); }

/* ---- settings ---- */
.set-shell { display: grid; grid-template-columns: 220px 1fr; gap: var(--gap); }
.set-nav { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; align-self: start; }
.set-navitem { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px; font-size: 13.5px;
  font-weight: 600; color: var(--t2); transition: background .14s, color .14s; text-align: left; }
.set-navitem:hover { background: var(--surface-3); color: var(--t1); }
.set-navitem.active { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(2,160,193,.25); }
.set-body { min-width: 0; }
.set-avatar { display: flex; align-items: center; gap: 16px; }
.set-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-2); }
.set-row:last-child { border-bottom: none; }
.set-row-tx { flex: 1; min-width: 0; }
.srt { font-size: 14px; font-weight: 700; color: var(--t1); }
.srd { font-size: 12.5px; color: var(--t3); font-weight: 500; margin-top: 2px; }

.switch { width: 46px; height: 27px; border-radius: 99px; background: var(--border); position: relative; transition: background .2s; flex: none; }
.switch.on { background: var(--accent); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.22,1,.36,1); }
.switch.on .knob { transform: translateX(19px); }

.plan-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px;
  border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--border-2); }
.plan-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price { text-align: right; }
.plan-price .pv { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price .pv small { font-size: 13px; font-weight: 600; color: var(--t3); }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 13px 0; }

@media (max-width: 1080px) {
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .glance-grid { grid-template-columns: 1fr; }
  .set-shell { grid-template-columns: 1fr; }
  .set-nav { flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   Packages (paket) — guard-post parcel handling
   ============================================================ */
.courier-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800;
  padding: 4px 10px; border-radius: 99px; color: #fff; white-space: nowrap; }
.shelf-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  color: var(--t2); background: var(--surface-3); border: 1px solid var(--border-2); padding: 3px 9px; border-radius: 8px; }

/* resident package cards */
.pkg-list { display: flex; flex-direction: column; gap: 12px; }
.pkg-card { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-card); align-items: center; }
.pkg-card .pic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; }
.pkg-card .pic svg { width: 24px; height: 24px; }
.pkg-card .mid { flex: 1; min-width: 0; }
.pkg-card .mid .t { font-size: 14.5px; font-weight: 800; color: var(--t1); letter-spacing: -0.01em; }
.pkg-card .mid .m { font-size: 12.5px; font-weight: 600; color: var(--t3); margin-top: 3px; }
.pkg-code { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 15px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }

/* hero callout used on resident home + package banner */
.callout { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(120deg, var(--accent-soft), transparent); border: 1px solid var(--border-2); }
.callout .cic { width: 44px; height: 44px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.callout .ct { font-size: 14.5px; font-weight: 800; color: var(--t1); }
.callout .cm { font-size: 12.5px; font-weight: 600; color: var(--t3); margin-top: 2px; }

/* ============================================================
   Administrator — portfolio of estates
   ============================================================ */
.estate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.estate-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: var(--pad-card); display: flex; flex-direction: column; gap: 14px; transition: transform .18s, box-shadow .18s, border-color .18s; cursor: pointer; }
.estate-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); border-color: var(--accent); }
.estate-card .eh { display: flex; align-items: center; gap: 12px; }
.estate-card .ebadge { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; flex: none; }
.estate-card .en { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.estate-card .ec { font-size: 12px; font-weight: 600; color: var(--t3); margin-top: 1px; }
.estate-card .erow { display: flex; gap: 10px; }
.estate-card .estat { flex: 1; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 13px; padding: 11px 12px; }
.estate-card .estat .v { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--t1); line-height: 1; }
.estate-card .estat .l { font-size: 11px; font-weight: 600; color: var(--t3); margin-top: 4px; }
.estate-card .ef { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border-2); }

/* audit feed */
.audit-list { display: flex; flex-direction: column; gap: 2px; }
.audit-row { display: flex; align-items: center; gap: 13px; padding: 13px 6px; border-bottom: 1px solid var(--border-2); }
.audit-row:last-child { border-bottom: none; }
.audit-row .ax { flex: 1; min-width: 0; }
.audit-row .at { font-size: 13.5px; font-weight: 700; color: var(--t1); }
.audit-row .am { font-size: 12px; font-weight: 600; color: var(--t3); margin-top: 1px; }

/* ============================================================
   Resident app (Penghuni)
   ============================================================ */
.res-greet { display: flex; align-items: center; gap: 14px; margin-bottom: var(--gap); }
.res-greet .hi { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.res-greet .sub { font-size: 13px; font-weight: 600; color: var(--t3); margin-top: 2px; }

.bill-card { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-radius: var(--radius);
  padding: 22px; box-shadow: 0 14px 34px rgba(2,160,193,.30); position: relative; overflow: hidden; }
.bill-card .bglow { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.16); filter: blur(40px); top: -90px; right: -60px; }
.bill-card > * { position: relative; z-index: 1; }
.bill-card .bl { font-size: 12.5px; font-weight: 700; opacity: .9; }
.bill-card .bv { font-size: 34px; font-weight: 800; letter-spacing: -0.025em; margin: 6px 0 2px; }
.bill-card .bm { font-size: 12.5px; font-weight: 600; opacity: .88; }
.bill-card .bbtn { margin-top: 16px; width: 100%; background: #fff; color: var(--accent); font-weight: 800; font-size: 14.5px;
  border-radius: 13px; padding: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s; }
.bill-card .bbtn:hover { transform: translateY(-1px); }
.bill-card .bbtn svg { width: 17px; height: 17px; }
.bill-card.paid { background: linear-gradient(135deg, #11936A, #0E7C86); box-shadow: 0 14px 34px rgba(17,147,106,.28); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 8px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: transform .15s, border-color .15s; }
.quick:hover { transform: translateY(-2px); border-color: var(--accent); }
.quick .qic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.quick .ql { font-size: 12px; font-weight: 700; color: var(--t1); text-align: center; }

.res-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--border-2); width: 100%; text-align: left; }
.res-row:last-child { border-bottom: none; }
.res-row .ric { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.res-row .rx { flex: 1; min-width: 0; }
.res-row .rt { font-size: 13.5px; font-weight: 700; color: var(--t1); }
.res-row .rm { font-size: 12px; font-weight: 600; color: var(--t3); margin-top: 1px; }

.hist-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--border-2); }
.hist-row:last-child { border-bottom: none; }

@media (max-width: 620px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick { padding: 12px 4px; }
  .quick .qic { width: 40px; height: 40px; }
  .quick .ql { font-size: 10.5px; }
  .estate-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Iuran warga — jimpitan & urunan / patungan
   ============================================================ */
.bar.tall { height: 12px; }

.urunan-list { display: flex; flex-direction: column; gap: var(--gap); }
.urunan { display: flex; flex-direction: column; gap: 13px; }
.urunan .uh { display: flex; align-items: center; gap: 12px; }
.urunan .uic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; }
.urunan .uic svg { width: 22px; height: 22px; }
.urunan .ut { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.urunan .um { font-size: 12px; font-weight: 600; color: var(--t3); margin-top: 2px; }
.urunan .urow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.urunan .uamt { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--t1); }
.urunan .uamt small { font-size: 12.5px; font-weight: 600; color: var(--t3); }
.urunan .upct { font-size: 14px; font-weight: 800; color: var(--accent); }
.urunan .uf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border-2); }
.urunan .umeta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--t3); }

/* pay options (monthly vs annual) */
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; cursor: pointer; background: var(--surface);
  transition: border .15s, box-shadow .15s; position: relative; text-align: left; }
.pay-opt:hover { border-color: var(--accent); }
.pay-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pay-opt .po-l { font-size: 12px; font-weight: 700; color: var(--t3); }
.pay-opt .po-v { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; color: var(--t1); }
.pay-opt .po-save { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 800; color: var(--pos); background: var(--pos-soft); padding: 3px 9px; border-radius: 99px; }
.pay-opt .po-chk { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; }
.pay-opt.on .po-chk { background: var(--accent); border-color: var(--accent); }
.pay-opt .po-chk svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.pay-opt.on .po-chk svg { opacity: 1; }

/* small fund-use rows */
.use-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-2); font-size: 13px; font-weight: 600; color: var(--t2); }
.use-row:last-child { border-bottom: none; }
.use-row .uv { margin-left: auto; font-weight: 800; color: var(--t1); font-variant-numeric: tabular-nums; }

/* ============================================================
   Surat & izin (letters / permits)
   ============================================================ */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.type-card { display: flex; gap: 12px; padding: 15px; border-radius: 15px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-card); text-align: left; transition: transform .15s, border-color .15s; cursor: pointer; align-items: flex-start; }
.type-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.type-card .ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.type-card .tn { font-size: 13.5px; font-weight: 800; color: var(--t1); line-height: 1.2; }
.type-card .td { font-size: 11.5px; font-weight: 600; color: var(--t3); margin-top: 4px; line-height: 1.4; }
.type-card .tsla { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; color: var(--accent); margin-top: 7px; }

/* ============================================================
   CCTV komplek
   ============================================================ */
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: var(--gap); }
.cam { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); background: var(--surface); }
.cam .feed { aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background: radial-gradient(130% 90% at 50% 0%, #243042 0%, #121826 60%, #0a0e16 100%); display: grid; place-items: center; }
.cam .feed::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
.cam .feed::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.45) 100%); }
.cam .bgico { color: rgba(255,255,255,.10); }
.cam .ov { position: absolute; inset: 0; padding: 10px 11px; display: flex; flex-direction: column; justify-content: space-between; z-index: 1; }
.cam .ov .top { display: flex; align-items: center; }
.cam .rec { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; color: #fff;
  background: rgba(220,74,61,.92); padding: 2px 7px; border-radius: 5px; letter-spacing: .06em; }
.cam .rec .d { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: recblink 1.4s infinite; }
@keyframes recblink { 50% { opacity: .25; } }
.cam .ts { margin-left: auto; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.9); font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.cam .nm { font-size: 12.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.cam.offline .feed { background: #14171d; }
.cam .offl { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #6b7384; }
.cam .offl .ol { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; }
.cam .bar2 { display: flex; align-items: center; gap: 9px; padding: 11px 13px; }
.cam .bar2 .cn { font-size: 13px; font-weight: 800; color: var(--t1); line-height: 1.1; }
.cam .bar2 .ca { font-size: 11.5px; font-weight: 600; color: var(--t3); margin-top: 1px; }
.cam .live-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ============================================================
   Sewa space iklan (banner / spanduk)
   ============================================================ */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gap); }
.ad-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: var(--pad-card); display: flex; flex-direction: column; gap: 13px; }
.ad-card .ah { display: flex; align-items: flex-start; gap: 12px; }
.ad-card .api { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.ad-card .al { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.ad-card .am { font-size: 11.5px; font-weight: 600; color: var(--t3); margin-top: 2px; }
.ad-card .aprice { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.ad-card .aprice small { font-size: 12.5px; font-weight: 600; color: var(--t3); }
.ad-card .af { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border-2); }

@media (max-width: 620px) {
  .type-grid { grid-template-columns: 1fr; }
  .cam-grid { grid-template-columns: 1fr; }
  .ad-grid { grid-template-columns: 1fr; }
}
