/* ============================================================
   TravelCMS Pro — Customer Account CSS
   account.css
   ============================================================ */

/* Prevent horizontal page overflow globally on account pages */
html, body { max-width: 100%; overflow-x: hidden; }

/* ── Auth Page (Login / Register) ──────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.auth-hero {
  background: linear-gradient(150deg, #0d3d5e 0%, #1a6b9a 55%, #0d6b4e 100%);
  padding: 44px 52px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  position: sticky; top: 0; height: auto; overflow: hidden;
}
.auth-hero-logo {
  display: flex; align-items: center; gap: 10px;
}
.auth-hero-logo-icon {
  width: 42px; height: 42px; background: rgba(255,255,255,.15);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 20px;
}
.auth-hero-logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 18px; font-weight: 800; color: #fff;
}
.auth-hero-logo-text span { color: rgba(255,255,255,.55); }
.auth-hero-main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth-hero-heading {
  font-family: 'Sora', sans-serif;
  font-size: 34px; font-weight: 800; color: #fff;
  line-height: 1.2; margin-bottom: 14px;
}
.auth-hero-sub {
  font-size: 15px; color: rgba(255,255,255,.72); line-height: 1.7; margin-bottom: 32px;
}
.auth-feature-list { display: flex; flex-direction: column; gap: 12px; }
.auth-feature {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.1); border-radius: 10px; padding: 12px 16px;
}
.auth-feature-icon {
  font-size: 20px; width: 36px; height: 36px;
  background: rgba(255,255,255,.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-feature-text { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.9); }
.auth-hero-footer { font-size: 12px; color: rgba(255,255,255,.45); }

.auth-form-panel {
  overflow-y: auto; padding: 44px 52px;
  display: flex; align-items: center; justify-content: center;
}
.auth-form-card { width: 100%; max-width: 420px; }
.auth-form-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 24px; font-weight: 800; color: var(--dark);
  margin-bottom: 6px;
}
.auth-form-card-sub { font-size: 13.5px; color: var(--text-muted); margin-bottom: 28px; }

/* Auth tabs */
.auth-tabs {
  display: flex; background: #f0f4f8;
  border-radius: 10px; padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; text-align: center; padding: 9px;
  border-radius: 7px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border: none;
  background: transparent; transition: all .18s;
}
.auth-tab.active {
  background: #fff; color: var(--dark);
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
}

/* Social buttons */
.social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s; text-decoration: none;
}
.social-btn.google {
  background: #fff; border: 1.5px solid #e0e0e0; color: #3c4043;
}
.social-btn.google:hover { background: #f8f8f8; border-color: #ccc; }
.social-btn.facebook {
  background: #1877f2; border: 1.5px solid #1877f2; color: #fff;
}
.social-btn.facebook:hover { background: #166fe5; }
.social-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; flex-shrink: 0;
}
.social-btn.google .social-icon { background: transparent; }
.social-btn.facebook .social-icon { background: rgba(255,255,255,.2); }

.or-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  margin: 16px 0;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: #e4ecf2;
}

.auth-form-footer {
  font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 20px;
}
.auth-form-footer a { color: var(--brand); font-weight: 600; text-decoration: none; }

/* ── Account Background ─────────────────────────────────────── */
.acct-page-bg { background: #f0f4f7; min-height: 100vh; }

/* ── Account Layout ─────────────────────────────────────────── */
.acct-wrap {
  max-width: 1240px; margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 26px; align-items: start;
  min-width: 0;
}
.acct-wrap > * { min-width: 0; }

/* ── Account Sidebar ────────────────────────────────────────── */
.acct-sidebar { display: flex; flex-direction: column; gap: 16px; }

.acct-profile-card {
  background: #fff; border: 1.5px solid #e4ecf2;
  border-radius: 16px; padding: 24px 20px;
  text-align: center;
}
.acct-avatar-wrap { position: relative; display: inline-block; margin-bottom: 12px; }
.acct-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #1a8a6b);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 800; color: #fff;
  margin: 0 auto;
}
.acct-avatar-online {
  position: absolute; bottom: 3px; right: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #1a8a5a; border: 2px solid #fff;
}
.acct-profile-name {
  font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: var(--dark);
}
.acct-profile-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.acct-profile-since { font-size: 11px; color: #b0c0d0; margin-top: 4px; }
.acct-wallet-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #eaf7f0; color: #1a7a5a; border: 1px solid #b6e8d2;
  border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 700;
  margin-top: 12px;
}
.acct-verified-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #e8f0fe; color: #1a4db5;
  border-radius: 20px; padding: 4px 10px; font-size: 11px; font-weight: 700;
  margin-top: 6px;
}

.acct-nav { background: #fff; border: 1.5px solid #e4ecf2; border-radius: 14px; overflow: hidden; }
.acct-nav-section { padding: 10px 14px 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: #b0c0d0; }
.acct-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: 13.5px; font-weight: 500;
  color: var(--dark); text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .15s; position: relative;
}
.acct-nav-item:hover { background: #f8fafc; color: var(--brand); }
.acct-nav-item.active {
  background: #f0f7ff; color: var(--brand);
  border-left-color: var(--brand); font-weight: 700;
}
.acct-nav-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.acct-nav-badge {
  margin-left: auto; background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 7px;
  border-radius: 20px; min-width: 18px; text-align: center;
}
.acct-nav-divider { height: 1px; background: #f0f4f8; margin: 6px 0; }
.acct-nav-item.signout { color: #c82828; }
.acct-nav-item.signout:hover { background: #fdecea; }

/* ── Account Sections ───────────────────────────────────────── */
.acct-section {
  background: #fff; border: 1.5px solid #e4ecf2;
  border-radius: 16px; margin-bottom: 22px; overflow: hidden;
}
.acct-section-header {
  padding: 16px 22px; border-bottom: 1.5px solid #f0f4f8;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.acct-section-title {
  font-family: 'Sora', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--dark);
}
.acct-section-body { padding: 20px 22px; }

/* ── Dashboard Stats ────────────────────────────────────────── */
.acct-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
.acct-stat-card {
  background: #fff; border: 1.5px solid #e4ecf2; border-radius: 14px;
  padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  transition: box-shadow .2s;
}
.acct-stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.acct-stat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.acct-stat-val {
  font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 800; color: var(--dark);
}
.acct-stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Welcome banner */
.acct-welcome {
  background: linear-gradient(135deg, #0d3d5e 0%, #1a6b9a 60%, #0d6b4e 100%);
  border-radius: 16px; padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 24px;
}
.acct-welcome-text h2 {
  font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: #fff;
  margin-bottom: 6px;
}
.acct-welcome-text p { font-size: 13.5px; color: rgba(255,255,255,.72); }
.acct-welcome-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.acct-welcome-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .15s; border: none; cursor: pointer;
}
.acct-welcome-btn.primary { background: rgba(255,255,255,.2); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.acct-welcome-btn.primary:hover { background: rgba(255,255,255,.3); }
.acct-welcome-btn.white { background: #fff; color: var(--brand); }

/* ── Booking Cards (Customer facing) ──────────────────────── */
.acct-bk-tabs {
  display: flex; gap: 4px; background: #f0f4f8;
  border-radius: 10px; padding: 4px; margin-bottom: 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; white-space: nowrap;
}
.acct-bk-tabs::-webkit-scrollbar { display: none; }
.acct-bk-tab {
  flex-shrink: 0; text-align: center; padding: 8px 12px;
  border-radius: 7px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border: none;
  background: transparent; transition: all .18s;
}
.acct-bk-tab.active, .acct-bk-tab:hover {
  background: #fff; color: var(--dark); box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.acct-bk-card {
  border: 1.5px solid #e4ecf2; border-radius: 14px;
  overflow: hidden; margin-bottom: 14px; transition: box-shadow .2s;
  background: #fff;
}
.acct-bk-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.acct-bk-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; background: #f8fafc;
  border-bottom: 1.5px solid #e4ecf2;
  flex-wrap: wrap;
}
.acct-bk-module-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.acct-bk-id {
  font-family: 'Sora', sans-serif; font-size: 12px;
  font-weight: 700; color: var(--brand);
}
.acct-bk-date { font-size: 11.5px; color: var(--text-muted); }
.acct-bk-card-body {
  padding: 16px 18px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.acct-bk-product { flex: 1; min-width: 180px; }
.acct-bk-name {
  font-family: 'Sora', sans-serif; font-size: 14.5px;
  font-weight: 700; color: var(--dark); margin-bottom: 4px;
}
.acct-bk-meta { font-size: 12.5px; color: var(--text-muted); }
.acct-bk-amount {
  font-family: 'Sora', sans-serif; font-size: 18px;
  font-weight: 800; color: var(--dark); flex-shrink: 0;
}
.acct-bk-amount small { font-size: 11px; font-weight: 500; color: var(--text-muted); display: block; }
.acct-bk-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* ── Wishlist ────────────────────────────────────────────────── */
.wish-tabs {
  display: flex; gap: 4px; background: #f0f4f8;
  border-radius: 10px; padding: 4px; margin-bottom: 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; white-space: nowrap;
}
.wish-tabs::-webkit-scrollbar { display: none; }
.wish-tab {
  flex-shrink: 0; padding: 8px 14px; border-radius: 7px; font-size: 13px;
  font-weight: 600; color: var(--text-muted); cursor: pointer;
  border: none; background: transparent; transition: all .18s;
}
.wish-tab.active, .wish-tab:hover {
  background: #fff; color: var(--dark); box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.wish-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.wish-card {
  border: 1.5px solid #e4ecf2; border-radius: 14px;
  overflow: hidden; background: #fff; transition: box-shadow .2s;
}
.wish-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); }
.wish-card-thumb {
  height: 150px; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.wish-card-remove {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #c82828; transition: all .15s;
}
.wish-card-remove:hover { background: #fdecea; }
.wish-card-body { padding: 14px; }
.wish-card-name {
  font-family: 'Sora', sans-serif; font-size: 13.5px;
  font-weight: 700; color: var(--dark); margin-bottom: 4px;
}
.wish-card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.wish-card-price {
  font-family: 'Sora', sans-serif; font-size: 16px;
  font-weight: 800; color: var(--brand);
}
.wish-card-price small { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.wish-card-footer {
  display: flex; gap: 8px; align-items: center;
  justify-content: space-between; margin-top: 12px;
}

/* ── Reviews ─────────────────────────────────────────────────── */
.review-stars { display: flex; gap: 2px; align-items: center; }
.star { font-size: 14px; }
.star.filled { color: #f5b800; }
.star.empty  { color: #d4dde6; }
.review-card {
  border: 1.5px solid #e4ecf2; border-radius: 14px;
  padding: 18px; margin-bottom: 14px; background: #fff;
}
.review-card-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.review-product-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0;
}
.review-product-name { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; }
.review-product-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.review-date { margin-left: auto; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.review-body { font-size: 13.5px; color: #4a5668; line-height: 1.7; margin-bottom: 12px; }
.review-card-thumb {
  width: 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0; color: #fff;
}
.review-card-info { flex: 1; min-width: 0; }
.review-card-product { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.review-card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.review-card-body { padding-top: 4px; }
.review-text { font-size: 13.5px; color: #4a5668; line-height: 1.7; margin: 0 0 12px; }
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.review-photo {
  width: 72px; height: 58px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; flex-shrink: 0;
}
.review-admin-reply {
  background: #f8fafc; border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0; padding: 12px 16px; margin-top: 14px;
  font-size: 12.5px; color: var(--text-muted);
}
.review-admin-reply-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.review-admin-reply strong { color: var(--brand); display: block; margin-bottom: 2px; font-size: 12px; }

.pending-review-card {
  border: 1.5px dashed #d0dce8; border-radius: 14px;
  padding: 16px 18px; margin-bottom: 12px; background: #fafbfd;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.pending-review-info { flex: 1; min-width: 160px; }
.pending-review-name { font-size: 13.5px; font-weight: 700; color: var(--dark); }
.pending-review-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Review write form */
.review-write-form {
  background: #f8fafc; border: 1.5px solid #e4ecf2;
  border-radius: 12px; padding: 18px; margin-top: 12px; display: none;
}
.review-write-form.open { display: block; }
.star-picker { display: flex; gap: 6px; margin-bottom: 12px; cursor: pointer; }
.star-picker .star { font-size: 28px; transition: transform .1s; }
.star-picker .star:hover, .star-picker .star.picked { color: #f5b800; transform: scale(1.15); }

/* ── Referral ────────────────────────────────────────────────── */
.ref-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px;
}
.ref-stat-card {
  background: #fff; border: 1.5px solid #e4ecf2; border-radius: 12px;
  padding: 16px 18px; text-align: center;
}
.ref-stat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  margin: 0 auto 8px;
}
.ref-stat-val {
  font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; color: var(--brand);
}
.ref-stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.ref-link-box {
  background: #f8fafc; border: 1.5px solid #e4ecf2;
  border-radius: 12px; padding: 16px 18px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  flex-wrap: wrap;
}
.ref-link-url {
  flex: 1; min-width: 0;
  font-family: monospace; font-size: 13px; color: var(--brand);
  background: transparent; border: none; outline: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ref-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ref-tier-card {
  border: 1.5px solid #e4ecf2; border-radius: 12px;
  padding: 18px; text-align: center; background: #fff;
}
.ref-tier-card.current {
  border-color: var(--brand); background: linear-gradient(135deg, #f0f7ff, #e8f8f0);
}
.ref-tier-icon { font-size: 32px; margin-bottom: 8px; }
.ref-tier-name {
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 800; color: var(--dark);
}
.ref-tier-pct {
  font-size: 22px; font-weight: 800; color: var(--brand); margin: 6px 0 2px;
}
.ref-tier-desc { font-size: 12px; color: var(--text-muted); }

.how-step {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid #f0f4f8;
}
.how-step:last-child { border-bottom: none; }
.how-step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 800;
  flex-shrink: 0;
}
.how-step-title { font-size: 13.5px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.how-step-desc  { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

.ref-history-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.ref-history-table th {
  padding: 9px 14px; text-align: left; font-size: 10.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); background: #f8fafc;
  border-bottom: 1.5px solid #e4ecf2;
}
.ref-history-table td {
  padding: 12px 14px; font-size: 13px; border-bottom: 1px solid #f0f4f8; color: var(--dark);
}
.ref-history-table tr:last-child td { border-bottom: none; }

/* ── Wallet ──────────────────────────────────────────────────── */
.wallet-hero {
  background: linear-gradient(135deg, #0d3d5e, #1a8a6b);
  border-radius: 16px; padding: 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 22px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.wallet-bal-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.wallet-bal-val {
  font-family: 'Sora', sans-serif; font-size: 46px; font-weight: 900; color: #fff; line-height: 1;
}
.wallet-bal-sub { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 6px; }
.wallet-hero-right { display: flex; gap: 10px; flex-wrap: wrap; }

.wallet-credit-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px;
}
.wallet-credit-card {
  background: #fff; border: 1.5px solid #e4ecf2; border-radius: 12px;
  padding: 16px 18px;
}
.wallet-credit-icon { font-size: 24px; margin-bottom: 8px; }
.wallet-credit-val {
  font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; color: var(--dark);
}
.wallet-credit-lbl { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.wallet-tx-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.wallet-tx-table th {
  padding: 9px 14px; text-align: left; font-size: 10.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); background: #f8fafc;
  border-bottom: 1.5px solid #e4ecf2;
}
.wallet-tx-table td {
  padding: 12px 14px; font-size: 13px; border-bottom: 1px solid #f0f4f8; color: var(--dark);
}
.wallet-tx-table tr:last-child td { border-bottom: none; }
.wallet-tx-credit { color: #1a8a5a; font-weight: 700; }
.wallet-tx-debit  { color: #c82828; font-weight: 700; }

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

/* ── Referral layout ─────────────────────────────────────────── */
.ref-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;
}

/* ── Reviews ─────────────────────────────────────────────────── */
.review-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px;
}
.review-cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px;
}

/* ── Profile form ────────────────────────────────────────────── */
.profile-photo-wrap {
  display: flex; align-items: center; gap: 18px; margin-bottom: 24px;
  padding-bottom: 24px; border-bottom: 1.5px solid #f0f4f8;
}
.profile-photo-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #1a8a6b);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 800; color: #fff;
  flex-shrink: 0; position: relative;
}
.profile-photo-edit {
  position: absolute; bottom: 0; right: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 2px solid #fff;
}
.profile-photo-info { flex: 1; }
.profile-photo-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--dark); }
.profile-photo-info span { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; display: block; }

.form-row-2a { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row-3a { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.pref-tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-tag {
  padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1.5px solid #e4ecf2; background: #f8fafc; cursor: pointer;
  transition: all .15s; color: var(--text-muted);
}
.pref-tag.selected {
  background: #e8f4ff; border-color: var(--brand); color: var(--brand);
}

.social-link-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid #f0f4f8;
}
.social-link-row:last-child { border-bottom: none; }
.social-link-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.social-link-name { font-weight: 600; font-size: 13.5px; color: var(--dark); }
.social-link-status { font-size: 12px; color: var(--text-muted); }
.social-link-connected { color: #1a8a5a; font-size: 12px; font-weight: 700; }

/* ── Booking detail customer ─────────────────────────────────── */
.cust-bk-detail-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 22px; align-items: start;
}

/* ── Activity feed ───────────────────────────────────────────── */
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #f0f4f8; align-items: flex-start;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.activity-text { flex: 1; }
.activity-title { font-size: 13.5px; font-weight: 600; color: var(--dark); }
.activity-meta  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.activity-amount { font-family: 'Sora', sans-serif; font-size: 13.5px; font-weight: 700; flex-shrink: 0; }

/* ── Modals (shared with admin detail) ───────────────────────── */
.doc-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,20,30,.62);
  z-index: 1200; display: none; align-items: flex-start;
  justify-content: center; overflow-y: auto; padding: 32px 16px 60px;
}
.doc-modal-overlay.open { display: flex; }
.doc-modal-box {
  background: #fff; border-radius: 18px;
  width: 100%; max-width: 720px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  position: relative; animation: docModalIn .22s ease;
}
@keyframes docModalIn {
  from { opacity: 0; transform: translateY(-18px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.doc-modal-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1.5px solid #f0f4f8;
}
.doc-modal-topbar-title {
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark);
}
.doc-modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: #f0f4f8; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-muted);
}
.doc-modal-close:hover { background: #e4ecf2; }
.doc-modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 22px; border-top: 1.5px solid #f0f4f8;
  background: #fafbfd; border-radius: 0 0 18px 18px;
}

/* ── Responsive ──────────────────────────────────────────────── */

/* Tablet landscape  ≤1100px */
@media (max-width: 1100px) {
  .acct-stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .ref-stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .review-stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .wish-grid            { grid-template-columns: repeat(2, 1fr); }
  .wallet-credit-grid   { grid-template-columns: repeat(2, 1fr); }
  .cust-bk-detail-layout { grid-template-columns: 1fr; }
}

/* Tablet portrait  ≤860px */
@media (max-width: 860px) {
  /* Auth */
  .auth-page       { grid-template-columns: 1fr; }
  .auth-hero       { display: none; }
  .auth-form-panel { padding: 32px 24px; }

  /* Layout */
  .acct-wrap    { grid-template-columns: 1fr; }
  .acct-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Grids */
  .wallet-credit-grid { grid-template-columns: repeat(2, 1fr); }
  .wallet-earn-grid   { grid-template-columns: 1fr 1fr; }
  .ref-tier-grid      { grid-template-columns: 1fr 1fr; }
  .ref-detail-grid    { grid-template-columns: 1fr; }
  .review-cat-grid    { grid-template-columns: 1fr 1fr; }

  /* Forms */
  .form-row-2a, .form-row-3a { grid-template-columns: 1fr; }

  /* Booking cards */
  .acct-bk-card-body  { flex-wrap: wrap; gap: 12px; }
  .acct-bk-amount     { min-width: 0; }
}

/* Mobile  ≤600px */
@media (max-width: 600px) {
  /* Layout */
  .acct-sidebar   { grid-template-columns: 1fr; }
  .acct-wrap      { padding: 0; }

  /* Grids */
  .acct-stats-grid    { grid-template-columns: 1fr 1fr; }
  .ref-stats-grid     { grid-template-columns: 1fr 1fr; }
  .review-stats-grid  { grid-template-columns: 1fr 1fr; }
  .wish-grid          { grid-template-columns: 1fr 1fr; }
  .wallet-credit-grid { grid-template-columns: 1fr 1fr; }
  .wallet-earn-grid   { grid-template-columns: 1fr; }
  .review-cat-grid    { grid-template-columns: 1fr; }
  .ref-detail-grid    { grid-template-columns: 1fr; }
  .ref-tier-grid      { grid-template-columns: 1fr; }

  /* Hero / banners */
  .wallet-hero      { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
  .acct-welcome     { flex-direction: column; text-align: center; }
  .acct-welcome-actions { flex-direction: column; width: 100%; }
  .acct-welcome-btn { text-align: center; }

  /* Booking cards */
  .acct-bk-card-body  { flex-direction: column; align-items: flex-start; }
  .acct-bk-actions    { flex-wrap: wrap; }

  /* Section header */
  .acct-section-header { flex-wrap: wrap; gap: 8px; }
  .acct-section-body   { padding: 16px; }

  /* Wishlist cards */
  .wish-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Referral link box */
  .ref-link-box { flex-direction: column; align-items: stretch; }
  .ref-link-url { white-space: normal; word-break: break-all; }

  /* Review card header */
  .review-card-header { flex-wrap: wrap; }

  /* Pending review card */
  .pending-review-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pending-review-info { flex-direction: row; display: flex; gap: 12px; align-items: flex-start; }

  /* Profile photo */
  .profile-photo-wrap { flex-direction: column; text-align: center; align-items: center; }

  /* Promo input row */
  .wallet-promo-row { flex-direction: column; }
}
