/*
 * ============================================================
 *  KopiKenangan POS — Profile, VIP & Bottom Navigation CSS
 *  Halaman: profile.php, vip.php
 *  Bottom Nav: Muncul khusus di mobile (≤ 640px)
 * ============================================================
 */

/* ─────────────────────────────────────────────────────────
 *  Bottom Navigation Bar (Mobile App Style with Floating Dome)
 * ───────────────────────────────────────────────────────── */
.bottom-nav {
  display: none; /* Disembunyikan di desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #ffffff;
  border-top: 1px solid #ededed;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.06);
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  height: 64px;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #71717a;
  min-width: 0;
  height: 100%;
  padding-bottom: 2px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s ease;
}

.bottom-nav__item--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bottom-nav__item--disabled:active {
  transform: scale(0.96);
}

[data-theme="dark"] .bottom-nav__item--disabled {
  opacity: 0.28;
}

.bottom-nav__icon-wrap {
  position: relative;
  width: 48px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__circle-bubble {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fde8e8;
  border: 3.5px solid #ffffff;
  top: -14px;
  opacity: 0;
  transform: scale(0.4) translateY(12px);
  transition: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 1;
}

.bottom-nav__icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  line-height: 1;
  transition: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav__label {
  position: relative;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
  color: #71717a;
  margin-top: 2px;
  transition: all 0.25s ease;
}

/* Active State Animation */
.bottom-nav__item.active .bottom-nav__circle-bubble {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.bottom-nav__item.active .bottom-nav__icon {
  transform: translateY(-9px);
  color: #841622;
}

.bottom-nav__item.active .bottom-nav__label {
  color: #841622;
  font-weight: 700;
}

/* Hover/Touch active micro-interaction */
.bottom-nav__item:active .bottom-nav__icon {
  transform: translateY(-7px) scale(0.92);
}

/* Dark Mode — Warm Coffee & Maroon Theme */
[data-theme="dark"] .bottom-nav {
  background: #1a1412;
  border-top-color: #332722;
}

[data-theme="dark"] .bottom-nav__circle-bubble {
  background: #381519;
  border-color: #1a1412;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .bottom-nav__item.active .bottom-nav__icon {
  color: #f38ba8;
}

[data-theme="dark"] .bottom-nav__item.active .bottom-nav__label {
  color: #f38ba8;
}

[data-theme="dark"] .bottom-nav__icon,
[data-theme="dark"] .bottom-nav__label {
  color: #a39188;
}

@media (max-width: 640px) {
  .bottom-nav {
    display: flex;
  }
}

/* ─────────────────────────────────────────────────────────
 *  Profile App Wrapper (Full Width Mobile)
 * ───────────────────────────────────────────────────────── */
.profile-app {
  background: #ffffff;
  min-height: 100vh;
}

[data-theme="dark"] .profile-app {
  background: #161311;
  color: #f4eee9;
}

/* ─────────────────────────────────────────────────────────
 *  Profile Header
 * ───────────────────────────────────────────────────────── */
.profile-header {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0;
}

[data-theme="dark"] .profile-header {
  background: #241d1a;
  border-bottom-color: #3d322d;
}

/* Full Width Profile Info Rows */
.profile-info-full {
  background: #ffffff;
  width: 100%;
}

[data-theme="dark"] .profile-info-full {
  background: #241d1a;
}

.profile-info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .profile-info-row {
  border-bottom-color: #332822;
}

.profile-info-label {
  font-size: 0.72rem;
  color: #8c7a7b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

[data-theme="dark"] .profile-info-label {
  color: #baa89e;
}

.profile-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0;
}

[data-theme="dark"] .profile-info-value {
  color: #f4eee9;
}

.profile-info-value--empty {
  color: #94a3b8;
  font-weight: 500;
}

[data-theme="dark"] .profile-info-value--empty {
  color: #7d6e67;
}

[data-theme="dark"] .theme-segmented-ctrl,
[data-theme="dark"] .lang-segmented-ctrl {
  background: #1a1412 !important;
}

.btn-edit-profile-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--color-primary, #841622);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(132, 22, 34, 0.25);
  transition:
    transform 0.1s,
    opacity 0.2s;
  box-sizing: border-box;
}

.btn-edit-profile-action:active {
  transform: scale(0.98);
}

.btn-logout-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  color: #841622;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px;
  border-radius: 12px;
  text-decoration: none;
  border: 1.5px solid #841622;
  transition:
    transform 0.1s,
    background 0.2s,
    color 0.2s;
  box-sizing: border-box;
}

.btn-logout-profile:hover {
  background: #fdf2f2;
}

.btn-logout-profile:active {
  transform: scale(0.98);
  background: #fde8e8;
}

[data-theme="dark"] .btn-logout-profile {
  color: #f38ba8;
  border-color: #f38ba8;
}

[data-theme="dark"] .btn-logout-profile:hover {
  background: rgba(243, 139, 168, 0.1);
}

.profile-header__inner {
  padding: 1.25rem 1.25rem 0.25rem;
}

.profile-user-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 1rem;
}

.profile-avatar__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fdf2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #841622;
  border: 2px solid #fecaca;
  flex-shrink: 0;
}

[data-theme="dark"] .profile-avatar__circle {
  background: rgba(132, 22, 34, 0.3);
  border-color: rgba(132, 22, 34, 0.5);
  color: #f87171;
}

.profile-user-info {
  flex: 1;
}

.profile-user-greeting {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.2;
}

.profile-user-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

[data-theme="dark"] .profile-user-name {
  color: #f1f5f9;
}

.profile-login-btn {
  font-size: 0.875rem;
  color: #841622;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-stats-row {
  display: flex;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding: 0.875rem 0;
}

[data-theme="dark"] .profile-stats-row {
  border-top-color: #2d2d3d;
}

.profile-stat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

.profile-stat-icon--gold {
  background: #fef3c7;
  color: #d97706;
}

.profile-stat-label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.2;
}

.profile-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #d97706;
  margin: 0;
  line-height: 1.2;
}

.profile-stat-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: #94a3b8;
  margin-left: 2px;
}

.profile-stat-divider {
  width: 1px;
  height: 36px;
  background: #e2e8f0;
  margin: 0 1rem;
  flex-shrink: 0;
}

[data-theme="dark"] .profile-stat-divider {
  background: #374151;
}

/* ─────────────────────────────────────────────────────────
 *  Promo Banner
 * ───────────────────────────────────────────────────────── */
.profile-promo-banner {
  background: #ffffff;
  margin-bottom: 10px;
  padding: 1rem 1.25rem;
}

[data-theme="dark"] .profile-promo-banner {
  background: #1e1e2e;
}

.profile-promo-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.875rem;
}

.profile-promo-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #16a34a;
  margin: 0 0 4px;
}

.profile-promo-desc {
  font-size: 0.775rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.profile-promo-img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.profile-promo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #16a34a;
  color: #ffffff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.profile-wa-btn:hover {
  background: #15803d;
}

/* ─────────────────────────────────────────────────────────
 *  Daily Check-In
 * ───────────────────────────────────────────────────────── */
.profile-checkin {
  background: #ffffff;
  margin-bottom: 10px;
  padding: 1rem 1.25rem;
}

[data-theme="dark"] .profile-checkin {
  background: #1e1e2e;
}

.profile-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.875rem;
}

.profile-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  flex: 1;
}

[data-theme="dark"] .profile-section-title {
  color: #f1f5f9;
}

.profile-checkin-exp {
  font-size: 0.7rem;
  color: #94a3b8;
  flex: 1;
}

.profile-section-detail {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.profile-checkin-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.profile-checkin-track::-webkit-scrollbar {
  display: none;
}

.profile-checkin-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  flex-shrink: 0;
}

.profile-checkin-day.active {
  border-color: #d97706;
  background: #fffbeb;
}

[data-theme="dark"] .profile-checkin-day {
  border-color: #374151;
}

[data-theme="dark"] .profile-checkin-day.active {
  background: rgba(217, 119, 6, 0.1);
}

.profile-checkin-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
}

.profile-checkin-day.active .profile-checkin-icon {
  background: #d97706;
  color: #ffffff;
}

.profile-checkin-icon.voucher {
  background: #f1f5f9;
  color: #64748b;
}

.profile-checkin-pts {
  font-size: 0.65rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
}

[data-theme="dark"] .profile-checkin-pts {
  color: #9ca3af;
}

.profile-checkin-label {
  font-size: 0.6rem;
  color: #94a3b8;
  text-align: center;
}

/* ─────────────────────────────────────────────────────────
 *  Profile Menu Groups & Items
 * ───────────────────────────────────────────────────────── */
.profile-menu-group {
  background: #ffffff;
  margin-bottom: 10px;
  padding: 1rem 0;
}

[data-theme="dark"] .profile-menu-group {
  background: #1e1e2e;
}

.profile-menu-group__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem;
  padding: 0 1.25rem;
}

[data-theme="dark"] .profile-menu-group__title {
  color: #f1f5f9;
}

.profile-menu-list {
  display: flex;
  flex-direction: column;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s;
  position: relative;
}

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

.profile-menu-item:active {
  background: #f8fafc;
}

[data-theme="dark"] .profile-menu-item {
  color: #d1d5db;
  border-bottom-color: #2d2d3d;
}

[data-theme="dark"] .profile-menu-item:active {
  background: #2d2d3d;
}

.profile-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #475569;
}

[data-theme="dark"] .profile-menu-icon {
  background: #2d2d3d;
  color: #9ca3af;
}

.profile-menu-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-menu-arrow {
  color: #cbd5e1;
  font-size: 1.1rem;
  font-weight: 600;
}

.profile-menu-badge {
  background: #16a34a;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 6px;
}

/* ─────────────────────────────────────────────────────────
 *  VIP Page
 * ───────────────────────────────────────────────────────── */
.vip-app {
  background: #f0f2f5;
}

[data-theme="dark"] .vip-app {
  background: #111827;
}

.vip-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .vip-topbar {
  background: #1e1e2e;
  border-bottom-color: #2d2d3d;
}

.vip-topbar__back {
  font-size: 1.5rem;
  color: #475569;
  text-decoration: none;
  width: 32px;
  line-height: 1;
}

.vip-topbar__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

[data-theme="dark"] .vip-topbar__title {
  color: #f1f5f9;
}

.vip-topbar__help {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

/* VIP Card */
.vip-card-section {
  padding: 1.25rem 1.25rem 0.5rem;
}

.vip-card {
  border-radius: 16px;
  padding: 1.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.vip-card--silver {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 50%, #6b7280 100%);
}

.vip-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.vip-card__level-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.vip-card__level-name {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.vip-card__level-badge {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.vip-card__greeting {
  font-size: 0.875rem;
  opacity: 0.85;
  margin: 0;
}

.vip-card__emblem {
  opacity: 0.6;
}

.vip-card__points {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.vip-card__pts-sep,
.vip-card__pts-max {
  opacity: 0.7;
  font-size: 0.9rem;
  margin: 0 4px;
}

.vip-card__progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  margin-bottom: 8px;
  position: relative;
}

.vip-card__progress-fill {
  height: 100%;
  background: #facc15;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.vip-card__progress-dot {
  width: 12px;
  height: 12px;
  background: #facc15;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: 0;
  border: 2px solid #ffffff;
}

.vip-card__upgrade-hint {
  font-size: 0.75rem;
  opacity: 0.8;
  margin: 0;
}

.vip-card-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.875rem 0 0;
}

.vip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  display: inline-block;
}

.vip-dot.active {
  width: 18px;
  border-radius: 3px;
  background: #841622;
}

/* VIP Tabs */
.vip-tabs {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  margin: 0.875rem 1.25rem;
  padding: 4px;
  gap: 2px;
}

[data-theme="dark"] .vip-tabs {
  background: #1e1e2e;
}

.vip-tab {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border: none;
  background: none;
  border-radius: 9px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}

.vip-tab.active {
  background: #841622;
  color: #ffffff;
}

/* VIP Tab Content */
.vip-tab-content {
  padding: 0 1.25rem;
}

.vip-section-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .vip-section-label {
  color: #f1f5f9;
}

.vip-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}

.vip-empty p:first-child {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.vip-empty__title {
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .vip-empty__title {
  color: #9ca3af;
}

.vip-empty__desc {
  font-size: 0.825rem;
  line-height: 1.6;
}

/* VIP Pack Card */
.vip-pack-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: start;
  border: 1px solid #f1f5f9;
}

[data-theme="dark"] .vip-pack-card {
  background: #1e1e2e;
  border-color: #2d2d3d;
}

.vip-pack-info {
  grid-column: 1;
  grid-row: 1 / 3;
}

.vip-pack-name {
  font-size: 0.925rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px;
}

[data-theme="dark"] .vip-pack-name {
  color: #f1f5f9;
}

.vip-pack-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 8px;
  line-height: 1.5;
}

.vip-pack-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.vip-pack-original {
  font-size: 0.75rem;
  text-decoration: line-through;
  color: #94a3b8;
}

.vip-pack-badge {
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.vip-pack-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #16a34a;
  display: block;
}

.vip-pack-qty {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
  text-align: center;
}

.vip-pack-btn {
  grid-column: 2;
  grid-row: 2;
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.vip-pack-btn:hover {
  background: #b91c1c;
}

/* VIP Benefits */
.vip-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vip-benefit-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #f1f5f9;
}

[data-theme="dark"] .vip-benefit-item {
  background: #1e1e2e;
  border-color: #2d2d3d;
}

.vip-benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.vip-benefit-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px;
}

[data-theme="dark"] .vip-benefit-title {
  color: #f1f5f9;
}

.vip-benefit-desc {
  font-size: 0.775rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────
 *  Modal: Choose Method (Dine In / Take Away)
 * ───────────────────────────────────────────────────────── */
.method-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.method-modal {
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 480px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.method-modal-overlay.open .method-modal {
  transform: translateY(0);
}

[data-theme="dark"] .method-modal {
  background: #1e1e2e;
}

.method-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.method-modal__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

[data-theme="dark"] .method-modal__title {
  color: #f1f5f9;
}

.method-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.1rem;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .method-modal__close {
  background: #2d2d3d;
  color: #9ca3af;
}

.method-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.method-option {
  border: 2px solid #f1f5f9;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  cursor: pointer;
  text-align: left;
  background: #ffffff;
  transition:
    border-color 0.2s,
    background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.method-option:hover,
.method-option:active {
  border-color: #841622;
  background: #fff5f5;
}

[data-theme="dark"] .method-option {
  background: #2d2d3d;
  border-color: #374151;
}

[data-theme="dark"] .method-option:hover {
  border-color: #841622;
  background: rgba(132, 22, 34, 0.15);
}

.method-option__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  font-size: 1.5rem;
}

.method-option__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 5px;
}

[data-theme="dark"] .method-option__title {
  color: #f1f5f9;
}

.method-option__desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────
 *  Edit Profile Mobile App Styles
 * ───────────────────────────────────────────────────────── */
.edit-profile-app {
  background: #ffffff;
  min-height: 100vh;
  padding-bottom: 120px;
}

[data-theme="dark"] .edit-profile-app {
  background: #12121c;
  color: #f1f5f9;
}

.edit-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 50;
}

[data-theme="dark"] .edit-topbar {
  background: #1e1e2e;
  border-bottom-color: #2d2d3d;
}

.edit-topbar__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  text-align: center;
  flex: 1;
}

[data-theme="dark"] .edit-topbar__title {
  color: #f1f5f9;
}

.edit-topbar__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #1e293b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

[data-theme="dark"] .edit-topbar__close {
  color: #f1f5f9;
}

.edit-profile-body {
  padding: 20px;
}

.form-group-app {
  margin-bottom: 1.25rem;
}

.form-label-app {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

[data-theme="dark"] .form-label-app {
  color: #94a3b8;
}

.form-input-app {
  width: 100%;
  padding: 13px 16px;
  background: #f4f4f6;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-input-app:focus {
  background: #ffffff;
  border-color: #841622;
  box-shadow: 0 0 0 3px rgba(132, 22, 34, 0.1);
}

[data-theme="dark"] .form-input-app {
  background: #1e1e2e;
  color: #f1f5f9;
  border-color: #2d2d3d;
}

[data-theme="dark"] .form-input-app:focus {
  background: #181825;
  border-color: #841622;
}

/* Readonly / Disabled state */
.form-input-app[readonly],
.form-input-app[disabled],
.form-input-app--readonly {
  background: #ebecef !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  border-color: transparent !important;
  box-shadow: none !important;
  user-select: none;
}

[data-theme="dark"] .form-input-app[readonly],
[data-theme="dark"] .form-input-app[disabled],
[data-theme="dark"] .form-input-app--readonly {
  background: #161622 !important;
  color: #64748b !important;
}

.phone-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.phone-input-wrap .form-input-app {
  padding-left: 44px;
  padding-right: 80px;
}

.phone-input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.phone-btn-ganti {
  position: absolute;
  right: 10px;
  background: #ffffff;
  border: 1px solid #d97706;
  color: #b45309;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

[data-theme="dark"] .phone-btn-ganti {
  background: #2d2d3d;
  border-color: #f59e0b;
  color: #fbbf24;
}

.btn-ganti-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  margin: 6px 0 1.5rem;
  cursor: pointer;
}

/* Gender Segmented Control */
.gender-segmented {
  display: flex;
  background: #f4f4f6;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

[data-theme="dark"] .gender-segmented {
  background: #1e1e2e;
}

.gender-option {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.gender-option.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

[data-theme="dark"] .gender-option.active {
  background: #2d2d3d;
  color: #ffffff;
}

/* Birthday Banner Box */
.birthday-banner {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 1.25rem 0;
  position: relative;
}

[data-theme="dark"] .birthday-banner {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

.birthday-banner__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.birthday-banner__content {
  flex: 1;
}

.birthday-banner__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 2px;
}

[data-theme="dark"] .birthday-banner__title {
  color: #fbbf24;
}

.birthday-banner__desc {
  font-size: 0.775rem;
  color: #b45309;
  margin: 0;
  line-height: 1.4;
}

[data-theme="dark"] .birthday-banner__desc {
  color: #fcd34d;
}

.birthday-banner__close {
  background: none;
  border: none;
  font-size: 1rem;
  color: #92400e;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Account Link Row */
.account-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .account-link-row {
  border-bottom-color: #2d2d3d;
}

.account-link-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

[data-theme="dark"] .account-link-brand {
  color: #f1f5f9;
}

.account-link-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
}

[data-theme="dark"] .account-link-logo {
  background: #2d2d3d;
  color: #f1f5f9;
}

.btn-hubungkan {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

/* Action Rows */
.action-list-group {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 0;
}

.action-row-item--danger {
  color: #dc2626;
}

.action-row-item--logout {
  color: #dc2626;
}

/* Sticky Bottom Submit */
.edit-profile-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  z-index: 50;
  max-width: 640px;
  margin: 0 auto;
}

[data-theme="dark"] .edit-profile-bottom {
  background: #1e1e2e;
  border-top-color: #2d2d3d;
}

.btn-save-profile {
  width: 100%;
  background: #841622;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(132, 22, 34, 0.3);
  transition:
    background 0.2s,
    transform 0.1s;
}

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

/* ─────────────────────────────────────────────────────────
 *  Profile Toast Notifications
 * ───────────────────────────────────────────────────────── */
.profile-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  animation: slideDownToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.profile-toast--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.profile-toast--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

[data-theme="dark"] .profile-toast--success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .profile-toast--error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

@keyframes slideDownToast {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─────────────────────────────────────────────────────────
 *  Floating Password Modal
 * ───────────────────────────────────────────────────────── */
.pwd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.pwd-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.pwd-modal-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 30px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.pwd-modal-backdrop.open .pwd-modal-card {
  transform: translateY(0);
}

@media (min-width: 641px) {
  .pwd-modal-backdrop {
    align-items: center;
  }
  .pwd-modal-card {
    border-radius: 20px;
    transform: translateY(20px) scale(0.96);
  }
  .pwd-modal-backdrop.open .pwd-modal-card {
    transform: translateY(0) scale(1);
  }
}

[data-theme="dark"] .pwd-modal-card {
  background: #1e1e2e;
  color: #f1f5f9;
}

.pwd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pwd-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0;
}

[data-theme="dark"] .pwd-modal-title {
  color: #f1f5f9;
}

.pwd-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

[data-theme="dark"] .pwd-modal-close {
  background: #2d2d3d;
  color: #94a3b8;
}

.pwd-modal-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}

.pwd-modal-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  display: block;
}

.pwd-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-pwd-cancel {
  flex: 1;
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

[data-theme="dark"] .btn-pwd-cancel {
  background: #2d2d3d;
  color: #cbd5e1;
}

.btn-pwd-submit {
  flex: 2;
  background: #841622;
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(132, 22, 34, 0.25);
  transition:
    opacity 0.2s,
    transform 0.1s;
}

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