/* Lui Wedding Gift — Commercial Redesign (Swiss Editorial & High-Conversion)
   Adhering to COMMERCIAL_DESIGN_RULES.md:
   - High Negative Space (Clean, purposeful margins)
   - Ultra-bold geometric sans-serif typography
   - Deep Obsidian Slate (#0F172A) + High-Contrast Electric Cobalt (#1D4ED8)
   - Crisp vector-like UI elements & razor-sharp card surfaces
*/

[hidden] { display: none !important; }

.view {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

.scroll-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px calc(var(--nav-h) + env(safe-area-inset-bottom) + 32px);
  overscroll-behavior-y: contain;
}

/* ==========================================================================
   Header (Swiss Minimalist Dock)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 14px) 18px 12px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.hdr-left {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.hdr-hi {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue-600);
  text-transform: uppercase;
}

.hdr-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header antrean yang presisi & seimbang */
.queue-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
}
.queue-header .hdr-left {
  text-align: center;
  align-items: center;
}
.queue-header .hdr-name {
  font-size: 1.05rem;
}
.hdr-sub-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  color: var(--blue-600);
  border: 1px solid var(--blue-300);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.hdr-sub-badge.pending {
  background: var(--pink-100);
  color: var(--pink-600);
  border-color: var(--pink-300);
}
.hdr-sub-badge.ready {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.avatar-btn, .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: #FFFFFF;
  color: var(--slate-800);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.avatar-btn:active, .icon-btn:active {
  transform: scale(0.95);
  background: var(--bg-2);
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* ==========================================================================
   Login View (Split Layout & Negative Space)
   ========================================================================== */
.login-view {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 44px 32px 36px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 0 0 4px 4px;
}

.login-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--slate-900);
  color: #FFFFFF;
  font-size: 1.65rem;
  box-shadow: 0 10px 20px -4px rgba(15, 23, 42, 0.25);
}

.login-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.login-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

.gsi-wrap {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.login-error {
  margin-top: 16px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.login-foot {
  margin-top: 24px;
  font-size: 0.74rem;
  color: var(--slate-600);
  display: inline-block;
  background: var(--bg-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Total Card (Swiss Architectural Hero)
   ========================================================================== */
.total-card {
  background: var(--grad-hero);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.total-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.total-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #93C5FD;
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 6px;
}

.total-amount {
  font-size: 2.35rem;
  font-weight: 800;
  margin: 10px 0 12px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
  line-height: 1.1;
}

.total-meta {
  font-size: 0.82rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

.total-meta span {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.total-meta b {
  font-weight: 800;
  margin-right: 4px;
}

.total-meta .dot {
  display: none;
}

/* ==========================================================================
   Search Input (Precision Filter)
   ========================================================================== */
.search-wrap {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 48px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-wrap:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-wrap i {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.search-wrap input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  height: 100%;
  font-weight: 500;
  color: var(--slate-900);
}

.search-wrap input::placeholder {
  color: var(--text-dim);
}

.search-clear {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--slate-600);
  background: var(--bg-2);
  transition: all 0.15s ease;
}

.search-clear:hover {
  background: var(--bg-3);
  color: var(--slate-900);
}

/* ==========================================================================
   Queue Banner (Electric Badge Banner)
   ========================================================================== */
.queue-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--blue-100);
  color: var(--blue-600);
  border: 1.5px solid var(--blue-300);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.queue-banner:active {
  transform: scale(0.98);
}

.queue-banner > span {
  flex: 1;
}

.queue-banner b {
  font-weight: 800;
}

/* ==========================================================================
   Gift List & Cards (Swiss Grid Items)
   ========================================================================== */
.gift-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gift-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  animation: cardIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.gift-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--slate-900);
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.05rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.gift-main {
  flex: 1;
  min-width: 0;
}

.gift-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-name mark {
  background: #FEF3C7;
  color: #92400E;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 800;
}

.gift-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.gift-sub mark {
  background: var(--blue-100);
  color: var(--blue-600);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 800;
}

.gift-right {
  text-align: right;
  flex-shrink: 0;
}

.gift-amount {
  font-weight: 800;
  font-size: 1rem;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.gift-badges {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  margin-top: 4px;
}

.badge-gift {
  font-size: 0.65rem;
  background: var(--pink-100);
  color: var(--pink-500);
  border: 1px solid var(--pink-300);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.badge-reci {
  font-size: 0.65rem;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

/* ==========================================================================
   Empty States & Footers
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-dim);
}

.empty-state i {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
  color: var(--slate-600);
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.list-foot {
  text-align: center;
  padding: 22px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Bottom Navigation (High-Contrast Dock)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
}

.nav-item {
  flex: 1;
  height: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--slate-600);
  font-size: 0.68rem;
  font-weight: 700;
  transition: color 0.15s ease;
}

.nav-item i {
  font-size: 1.15rem;
}

.nav-item.active {
  color: var(--blue-600);
}

.nav-fab {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  margin: 0 6px;
  flex-shrink: 0;
  background: var(--grad-primary);
  color: #FFFFFF;
  font-size: 1.35rem;
  box-shadow: 0 10px 24px -4px rgba(236, 72, 153, 0.45);
  border: 2px solid #FFFFFF;
  display: grid;
  place-items: center;
  transform: translateY(-12px);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.nav-fab:hover {
  filter: brightness(1.1);
}

.nav-fab:active {
  transform: translateY(-12px) scale(0.92);
}

/* ==========================================================================
   Bottom Sheet & Modals (Swiss Drawer)
   ========================================================================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet {
  width: 100%;
  max-width: 540px;
  max-height: 92dvh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  padding: 12px 22px calc(env(safe-area-inset-bottom) + 26px);
  animation: sheetUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overscroll-behavior: contain;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}

.sheet-grip {
  width: 44px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: #CBD5E1;
  margin: 6px auto 16px;
}

.sheet-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.sheet-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Form Fields */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.field label .req {
  color: var(--danger);
}

.input, .textarea, .select {
  width: 100%;
  height: var(--tap);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  background: #FFFFFF;
  color: var(--slate-900);
  outline: none;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea {
  height: auto;
  min-height: 72px;
  padding: 12px 14px;
  resize: vertical;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field.uncertain .input {
  border-color: var(--warning);
  background: var(--warning-bg);
}

.field-hint {
  font-size: 0.74rem;
  color: var(--warning);
  margin-top: 4px;
  font-weight: 700;
}

.input-money-wrap {
  position: relative;
}

.input-money-wrap .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-600);
  font-weight: 800;
  font-size: 0.95rem;
}

.input-money {
  padding-left: 42px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-2);
  color: var(--slate-700);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid var(--card-border);
  transition: all 0.15s ease;
}

.chip:active {
  transform: scale(0.95);
}

.chip.on {
  background: var(--slate-900);
  color: #FFFFFF;
  border-color: var(--slate-900);
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.seg-btn {
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--slate-700);
  font-size: 0.84rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}

.seg-btn.on {
  background: var(--slate-900);
  color: #FFFFFF;
  border-color: var(--slate-900);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.switch {
  width: 48px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: #CBD5E1;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.switch.on {
  background: var(--blue-600);
}

.switch::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  top: 3px;
  left: 3px;
  transition: left 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch.on::after {
  left: 23px;
}

/* Primary Action Buttons */
.btn-primary {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--slate-900);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-md);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: #1E293B;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.5;
}

.btn-ghost {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--slate-700);
  font-weight: 700;
  margin-top: 8px;
  transition: background-color 0.15s ease;
}

.btn-ghost:hover {
  background: var(--bg-3);
}

.btn-danger-ghost {
  color: var(--danger);
  background: var(--danger-bg);
}

.btn-danger-ghost:hover {
  background: #FEE2E2;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

/* Action Menu Sheet */
.action-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  text-align: left;
  transition: all 0.15s ease;
}

.action-item:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
}

.action-item .ai-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.action-item .ic-blue {
  background: var(--slate-900);
}

.action-item .ic-pink {
  background: var(--blue-600);
}

.action-item .at-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--slate-900);
}

.action-item .at-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Toast Notification (High Contrast Floating Badge)
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%) translateY(12px);
  z-index: 200;
  background: var(--slate-900);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: calc(100vw - 32px);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.4);
}

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

.toast.err {
  background: var(--danger);
}

.toast.ok {
  background: var(--success);
}

/* ==========================================================================
   Queue List Cards
   ========================================================================== */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qcard {
  display: flex;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  align-items: center;
}

.qcard-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-2);
  flex-shrink: 0;
  border: 1px solid var(--card-border);
}

.qcard-main {
  flex: 1;
  min-width: 0;
}

.qcard-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qcard-status {
  font-size: 0.78rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.st-processing { color: var(--blue-600); }
.st-ready { color: var(--success); }
.st-failed { color: var(--danger); }

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skel {
  background: linear-gradient(90deg, #F1F5F9, #FFFFFF, #F1F5F9);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* Review Photo */
.review-photo {
  width: 100%;
  max-height: 44dvh;
  object-fit: contain;
  border-radius: 16px;
  background: var(--slate-900);
  margin-bottom: 8px;
  border: 1px solid var(--card-border);
}

.review-progress {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.dup-warn {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.dup-warn b {
  font-weight: 800;
}

/* Account Sheet */
.acct-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.acct-av {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--slate-900);
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-size: 1.4rem;
  font-weight: 800;
}

.acct-av img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.acct-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--slate-900);
}

.acct-email {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.acct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  text-align: left;
  font-weight: 700;
  color: var(--slate-800);
  transition: all 0.15s ease;
}

.acct-item:hover {
  background: var(--bg-2);
}

.acct-item i:first-child {
  color: var(--blue-600);
  width: 20px;
  text-align: center;
}

.acct-item .chev {
  margin-left: auto;
  color: var(--text-dim);
}

/* Photo Gallery Strip */
.photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  overscroll-behavior-x: contain;
}

.photo-strip img {
  height: 110px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.photo-add {
  height: 110px;
  width: 90px;
  border-radius: 12px;
  border: 1.5px dashed var(--slate-600);
  color: var(--slate-800);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--bg-2);
  transition: all 0.15s ease;
}

.photo-add:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

@media (hover: hover) {
  .gift-card:hover, .qcard:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
  }
}

/* ==========================================================================
   Recap / Ringkasan View (Pink & Blue Analytics)
   ========================================================================== */
.recap-hero {
  background: var(--grad-hero);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.recap-hero::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.recap-hero-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--pink-300);
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 6px;
}

.recap-hero-amount {
  font-size: 2.35rem;
  font-weight: 800;
  margin: 10px 0 12px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
  line-height: 1.1;
}

.recap-hero-meta {
  font-size: 0.82rem;
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
}

.recap-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.recap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.recap-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.recap-card.rc-blue {
  border-top: 3.5px solid var(--blue-500);
}

.recap-card.rc-pink {
  border-top: 3.5px solid var(--pink-500);
}

.rc-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.rc-blue .rc-label i { color: var(--blue-500); }
.rc-pink .rc-label i { color: var(--pink-500); }

.rc-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.rc-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 4px;
}

.recap-section {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.recap-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.ratio-bar {
  height: 12px;
  border-radius: 9999px;
  background: var(--bg-2);
  overflow: hidden;
  display: flex;
  margin-bottom: 10px;
}

.bar-blue {
  height: 100%;
  background: var(--blue-500);
  transition: width 0.3s ease;
}

.bar-pink {
  height: 100%;
  background: var(--pink-500);
  transition: width 0.3s ease;
}

.ratio-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-700);
}

.dot-blue {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  margin-right: 4px;
}

.dot-pink {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-500);
  margin-right: 4px;
}

.dist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.dist-item span {
  width: 110px;
  color: var(--slate-700);
  flex-shrink: 0;
}

.dist-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--bg-2);
  border-radius: 9999px;
  overflow: hidden;
}

.dist-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--pink-500));
  border-radius: 9999px;
}

.dist-item b {
  width: 28px;
  text-align: right;
  color: var(--slate-900);
}

.recap-gift-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.recap-gift-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-1);
  border: 1px solid var(--card-border);
}

.recap-gift-item i {
  color: var(--pink-500);
  font-size: 1.1rem;
}

.rgi-desc {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--slate-900);
}

.rgi-from {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Profile Card in Sheet */
.profile-card {
  background: var(--bg-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

/* Desktop Responsiveness */
@media (min-width: 720px) {
  .view .scroll-area {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }
  .app-header {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }
  .bottom-nav {
    max-width: 580px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
  }
}
