:root {
  --gold: #c19a5b;
  --gold-dark: #b8935a;
  --gold-light: #d4b483;
  --text-dark: #2c2c2c;
  --text-muted: #6b6b6b;
  --green-bg: #c8f0da;
  --green-text: #1f8a4c;
  --red-bg: #f7d4d4;
  --red-text: #c94040;
  --gray-bg: #e9e9ea;
  --border: #e7e0d4;
  --row-border: #eeeeee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Kantumruy Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--text-dark);
}

.app {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
}

.brand {
  text-align: center;
  margin-bottom: 24px;
  cursor: pointer;
}

.brand img,
.brand-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.brand-name,
.brand-tag {
  display: none !important;
}

.dash-title {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #222;
  margin: 0 0 16px 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.nav-item:hover {
  background: #f7f2e8;
}

.nav-item.active {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.sidebar-bottom {
  margin-top: auto;
}

.signout {
  width: 100%;
  background: var(--gold-light);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.version {
  text-align: center;
  color: #b8b0a0;
  font-size: 12px;
  margin-top: 10px;
}

/* Main */
.main {
  height: 100vh;
  overflow-y: auto;
  padding: 28px 32px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* ---- HOME ---- */
.hero {
  background: linear-gradient(120deg, var(--gold-dark), var(--gold));
  border-radius: 16px;
  padding: 32px 40px;
  color: #fff;
}

.hero h1 {
  font-family: "Georgia", serif;
  font-size: 38px;
  margin: 0 0 10px 0;
}

.hero p {
  margin: 0 0 18px 0;
  opacity: 0.92;
  font-size: 15px;
}

.hero-search {
  background: #fff;
  width: 100%;
  border-radius: 24px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.hero-search .msg {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr 1fr;
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

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

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

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  background: #fff;
}

.card h2 {
  color: var(--gold);
  font-family: "Georgia", serif;
  font-size: 22px;
  margin: 0 0 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  background: #33c46f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 14px;
}

.overview-line {
  font-size: 14px;
  margin: 6px 0;
  color: #333;
}

.overview-line a {
  color: #3b7ddb;
  text-decoration: none;
}

.einv-label {
  font-weight: 700;
  font-size: 14px;
  margin: 18px 0 6px 0;
}

.qr-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.qr-box:hover {
  transform: translateY(-3px);
  border-color: var(--gold, #d4b483);
  box-shadow: 0 8px 24px rgba(212, 180, 131, 0.2);
  background: rgba(212, 180, 131, 0.05);
}

.qr-code-wrapper {
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.qr-code-wrapper canvas,
.qr-code-wrapper img,
.qr-code-wrapper svg {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.qr-box-badge {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold, #d4b483);
  background: rgba(212, 180, 131, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}

.qr-box:hover .qr-box-badge {
  background: rgba(212, 180, 131, 0.25);
  color: #ffffff;
}

.stat-label {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 12px 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.stat {
  background: var(--gold);
  color: #fff;
  border-radius: 10px;
  padding: 16px 6px;
  text-align: center;
}

.stat .num {
  font-size: 26px;
  font-weight: 800;
}

.stat .num small {
  font-size: 14px;
  font-weight: 600;
}

.stat .lbl {
  font-size: 12px;
  margin-top: 2px;
}

.stat.green {
  background: var(--green-bg);
  color: var(--green-text);
}

.stat.red {
  background: var(--red-bg);
  color: var(--red-text);
}

.stat.gray {
  background: var(--gray-bg);
  color: #444;
}

.wish-block h3 {
  text-align: center;
  font-size: 15px;
  margin: 14px 0 10px 0;
}

.wish-bar {
  background: var(--gold);
  color: #fff;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
}

/* ---- GUESTLIST ---- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-header h1 {
  font-family: "Georgia", serif;
  font-size: 30px;
  color: #222;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.btn-gold:hover {
  background: var(--gold-dark);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: #333;
}

.btn-outline:hover {
  background: #f7f2e8;
}

/* ---- GUESTLIST PAGE HEADER (Matching Mockup) ---- */
.guestlist-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.gheader-title {
  font-family: "Georgia", serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.1;
}

.gheader-sub {
  font-size: 14px;
  color: #666666;
  margin: 4px 0 0 0;
}

.gheader-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gheader-actions .btn {
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gheader-actions .btn-gold {
  background: var(--gold, #c19a5b);
  color: #ffffff;
  border: none;
}

.gheader-actions .btn-gold:hover {
  background: var(--gold-dark, #b8935a);
}

.gheader-actions .btn-outline {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.gheader-actions .btn-outline:hover {
  border-color: #c19a5b;
}

/* ---- GUESTLIST STAT CARDS (Matching Mockup) ---- */
.gstats-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

/* Row 1: 3 cards */
.gstats-row-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gstat-card-single {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.gstat-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f7f2e8;
  color: #8a6730;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.gstat-big-num {
  font-size: 28px;
  font-weight: 800;
  color: #111111;
  line-height: 1;
  margin-bottom: 6px;
}

.gstat-label {
  font-size: 11px;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Row 2: 2 group cards */
.gstats-row-bottom {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

.gstat-card-group {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.gstat-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.gstat-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.gstat-group-body {
  display: grid;
  align-items: center;
  margin-top: 4px;
}

.gstat-group-body.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.gstat-group-body.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.gstat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.gstat-item + .gstat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #f0f0f0;
}

.gstat-item-num {
  font-size: 22px;
  font-weight: 800;
  color: #111111;
  line-height: 1.2;
}

.gstat-item-num.green {
  color: #2ea755;
}

.gstat-item-num.red {
  color: #dc3545;
}

.gstat-item-num small {
  font-size: 13px;
  font-weight: 700;
}

.gstat-item-label {
  font-size: 11px;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Mobile responsive layout for stats */
@media (max-width: 768px) {
  .gstats-row-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gstats-row-top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  .gstat-card-single {
    padding: 14px 10px;
  }
  .gstat-big-num {
    font-size: 22px;
  }
  .gstat-label {
    font-size: 10px;
  }
}

.filter-box {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.filter-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.filter-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
}

.filter-box-title svg {
  color: #333;
}

.filter-search-container {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.filter-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.filter-search-container input {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.2s ease;
}

.filter-search-container input:focus {
  border-color: var(--gold);
}

.filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  border-color: var(--gold);
}

.chip-btn.active {
  background: rgba(193, 154, 91, 0.12);
  border-color: var(--gold);
  color: var(--gold-dark);
}

.chip-select {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.chip-select:hover,
.chip-select:focus {
  border-color: var(--gold);
}

.chip-select.active {
  background: rgba(193, 154, 91, 0.12);
  border-color: var(--gold);
  color: var(--gold-dark);
}

.show-hide {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

table.guest-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.guest-table thead th {
  text-align: left;
  padding: 12px 10px;
  color: #444;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

table.guest-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--row-border);
  color: #333;
  white-space: nowrap;
  vertical-align: middle;
}

table.guest-table tbody tr:hover {
  background: #faf8f3;
}

.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.pill-einvite {
  background: #2fae66;
}

.pill-pending {
  background: #8a8a8a;
}

.pill-yes {
  background: #33c46f;
}

.tag {
  background: #f2ede0;
  color: #7a6a45;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
  color: #555;
}

.table-footer .right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

select.rows-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
}

/* ---- CHECKLIST PAGE & CRUD ---- */
#page-checklist {
  background-color: #faf8f5;
  padding: 16px 16px 40px 16px;
  min-height: 100vh;
}

#checklist-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Header Row */
.checklist-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.checklist-title-group .checklist-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}

.checklist-title-group .checklist-subtitle {
  font-size: 13.5px;
  color: #777777;
  margin: 4px 0 0 0;
  font-weight: 400;
}

/* "My Events ▾" Dropdown Button */
.btn-my-events {
  background: #ffffff;
  border: 1px solid #e8e2d8;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-my-events:hover {
  background: #fbf9f5;
  border-color: #d8cfc0;
}

/* Add Task Primary Button (Mobile Full Width) */
.btn-add-task-mobile-primary {
  width: 100%;
  background: linear-gradient(135deg, #c49a60 0%, #a98046 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 143, 86, 0.25);
  margin-bottom: 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.plus-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overview Stat Cards Grid (2x2) */
.checklist-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .checklist-overview-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.checklist-stat-card {
  background: #ffffff;
  border: 1px solid #f0ebe1;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  text-align: left;
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-total {
  background: #f7f1e7;
  color: #b0874e;
}

.stat-icon-completed {
  background: #e8f5e9;
  color: #2e7d32;
}

.stat-icon-pending {
  background: #fdebee;
  color: #d32f2f;
}

.stat-icon-progress {
  background: #f7f1e7;
  color: #b0874e;
}

.stat-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.checklist-stat-card .val {
  font-size: 24px;
  font-weight: 800;
  color: #b0874e;
  line-height: 1.1;
}

.checklist-stat-card .val.green {
  color: #2e7d32;
}

.checklist-stat-card .val.red {
  color: #d32f2f;
}

.checklist-stat-card .label {
  font-size: 12px;
  color: #666666;
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checklist-stat-card .progress-container {
  height: 6px;
  background: #eee8e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0 2px 0;
  width: 100%;
}

.checklist-stat-card .progress-bar {
  height: 100%;
  background: #b0874e;
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Search Tasks Card */
.search-tasks-card {
  background: #ffffff;
  border: 1px solid #f0ebe1;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
}

.search-tasks-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.search-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888888;
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  background: #fcfbfa;
  border: 1px solid #e5dfd5;
  border-radius: 10px;
  padding: 10px 36px 10px 38px;
  font-size: 13.5px;
  color: #222222;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrapper input:focus {
  border-color: #b88f56;
  box-shadow: 0 0 0 3px rgba(184, 143, 86, 0.12);
  background: #ffffff;
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #e8e2d8;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-clear-search:hover {
  background: #d8cebe;
}

/* Search Filters Row (Clean single-row, no overlapping) */
.search-filters-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.search-filters-row::-webkit-scrollbar {
  display: none;
}

.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.filter-pill {
  background: #ffffff;
  border: 1px solid #e0d8cc;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #444444;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  flex-shrink: 0;
  text-align: center;
  transition: all 0.2s ease;
}

.filter-pill.active {
  background: #b88f56;
  color: #ffffff;
  border-color: #b88f56;
}

.filter-dropdown-wrapper {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-filter-dropdown {
  background: #ffffff;
  border: 1px solid #e0d8cc;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #444444;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-filter-dropdown.active,
.btn-filter-dropdown:hover {
  background: #fbf9f5;
  border-color: #b88f56;
}

.filter-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 38px;
  background: #ffffff;
  border: 1px solid #e8e2d8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 6px;
  min-width: 140px;
  z-index: 100;
  flex-direction: column;
  gap: 2px;
}

.filter-dropdown-menu.show {
  display: flex;
  animation: taskPopoverFadeIn 0.15s ease-out;
}

.filter-menu-header {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  padding: 6px 10px 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #333333;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.filter-menu-item:hover,
.filter-menu-item.active {
  background: #f7f4ee;
  color: #b88f56;
  font-weight: 600;
}

/* Task List Container */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  background: #ffffff;
  border: 1px solid #f0ebe1;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.task-item.completed {
  background: #faf7f2;
}

.task-item.completed .task-title {
  text-decoration: line-through;
  color: #888888;
}

/* Custom Checkbox */
.custom-chk-wrapper {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin-top: 2px;
}

.chk-custom-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.chk-custom-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #c8bfb0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.2s ease;
}

.chk-custom-input:checked + .chk-custom-box {
  background: #b88f56;
  border-color: #b88f56;
}

/* Task Info Content */
.task-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.task-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.task-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  padding-right: 32px;
}

.task-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.category-badge {
  background: #f4ede2;
  color: #6e5837;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
}

.priority-pill {
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: capitalize;
}

.priority-high {
  background: #fde8e8;
  color: #991b1b;
}

.priority-medium {
  background: #fef3c7;
  color: #92400e;
}

.priority-low {
  background: #dcfce7;
  color: #166534;
}

.task-due {
  font-size: 12px;
  color: #777777;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.task-note {
  font-size: 13px;
  color: #666666;
  line-height: 1.4;
  margin-top: 4px;
}

/* Task Action Menu Wrapper & Popover */
.task-actions-menu-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
}

.task-menu-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f7f4ee;
  border: none;
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.task-menu-btn:hover {
  background: #eee7dc;
}

.task-popover-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 38px;
  background: #ffffff;
  border: 1px solid #e8e2d8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 6px;
  min-width: 120px;
  z-index: 100;
  flex-direction: column;
  gap: 2px;
}

.task-popover-menu.show {
  display: flex;
  animation: taskPopoverFadeIn 0.15s ease-out;
}

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

.popover-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.popover-item:hover {
  background: #f7f4ee;
}

.popover-item.delete {
  color: #dc2626;
}

.popover-item.delete:hover {
  background: #fef2f2;
}

/* Home Widget Checklist Styling */
.widget-checklist-card {
  display: flex;
  flex-direction: column;
}

.widget-progress-text {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.widget-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.widget-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: #faf8f3;
  border: 1px solid var(--border);
  font-size: 13px;
}

.widget-task-item .wtask-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.widget-task-item .wtask-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.widget-task-item.completed .wtask-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.view-all-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  cursor: pointer;
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25 ease;
  backdrop-filter: blur(2px);
}

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

.modal-card {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  padding: 28px 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  transform: translateY(-20px);
  transition: transform 0.25s ease;
  border: 1px solid var(--border);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.modal-header h3 {
  margin: 0;
  font-family: "Georgia", serif;
  color: var(--gold-dark);
  font-size: 22px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.close-btn:hover {
  color: #222;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: none;
}

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

.modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.modal-footer .btn {
  text-align: center;
  justify-content: center;
}

/* ---- WISHES ---- */
.wishes-title {
  font-family: "Georgia", serif;
  font-size: 30px;
  margin: 0 0 18px 0;
}

.filter-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-pill {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

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

.wish-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--gold);
}

.wish-card .wtop {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 8px;
}

.wish-card .wname {
  font-weight: 700;
  font-size: 14px;
}

.wish-card .wdate {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.wish-card .wtext {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Wish Detail Modal (Matching Reference Image) */
.wish-detail-card {
  background: #ffffff;
  border-radius: 14px;
  width: 92%;
  max-width: 450px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  transform: translateY(-20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .wish-detail-card {
  transform: translateY(0);
}

.wish-detail-header {
  background: #f1f4f9;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.wish-detail-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  text-align: center;
  font-family: inherit;
}

.wish-detail-header .close-btn {
  position: absolute;
  right: 16px;
  top: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
}

.wish-detail-header .close-btn:hover {
  color: #0f172a;
}

.wish-detail-body {
  padding: 24px;
  background: #ffffff;
}

.wish-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}

.wish-detail-author {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.45;
  flex: 1;
}

.wish-detail-date {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  font-weight: 500;
}

.wish-detail-text {
  font-size: 15px;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 24px;
  white-space: pre-wrap;
  word-break: break-word;
}

.wish-detail-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.btn-danger-wish {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  transition: all 0.2s ease;
}

.btn-danger-wish:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* line-height: 1.5;
  flex: 1;
} */

.wish-card .wicon {
  align-self: flex-end;
  color: #aaa;
  margin-top: 8px;
}

/* ==========================================
   AUTHENTICATION OVERLAY STYLES
   ========================================== */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 18, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.auth-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
}

.auth-brand-logo {
  width: 180px;
  height: auto;
  margin-bottom: 12px;
}

.auth-title {
  font-family: "Georgia", serif;
  font-size: 22px;
  color: var(--text-dark);
  margin: 0 0 6px 0;
  font-weight: 600;
}

.auth-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.auth-field input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  border-color: var(--gold);
  box-shadow: none;
}

.btn-auth-submit {
  background: var(--gold);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
}

.btn-auth-submit:hover {
  background: var(--gold-dark);
}

.auth-error-msg {
  display: none;
  background: #f7d4d4;
  color: #c94040;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

/* ==========================================
   DEDICATED PURE WHITE LOGIN PAGE STYLES
   ========================================== */
body.login-page {
  background: #ffffff;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin: 0;
}

.login-container {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.login-container .brand-logo {
  width: 150px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px auto;
  display: block;
}

.login-greeting {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.login-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.error-banner {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #c94040;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.error-banner.hidden {
  display: none !important;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  text-align: left;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.input-wrap {
  position: relative;
}

.form-field input {
  width: 100%;
  padding: 13px 44px 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: #fafaf9;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-field input:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: none;
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0a898;
  pointer-events: none;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.btn-toggle-password:hover {
  color: var(--gold);
}

.btn-sign-in {
  width: 100%;
  background: var(--gold);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: none;
  letter-spacing: 0.3px;
}

.btn-sign-in:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-sign-in:active {
  transform: translateY(0);
}

.btn-sign-in:disabled {
  background: #d4b483;
  cursor: not-allowed;
  transform: none;
}

.login-footer-note {
  text-align: center;
  font-size: 12px;
  color: #b0a898;
  margin-top: 28px;
}

/* ==========================================
   REUSABLE CUSTOM DIALOG / ALERT MODULE STYLES
   ========================================== */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 18, 25, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.dialog-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.dialog-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 28px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.25s ease;
}

.dialog-overlay.active .dialog-card {
  transform: scale(1) translateY(0);
}

.dialog-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  background: rgba(193, 154, 91, 0.12);
  color: var(--gold);
}

.dialog-icon-wrapper.danger {
  background: #fef2f2;
  color: #c94040;
}

.dialog-icon-wrapper.warning {
  background: #fffbeb;
  color: #d97706;
}

.dialog-icon-wrapper.success {
  background: #f0fdf4;
  color: #16a34a;
}

.dialog-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.dialog-message {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.dialog-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.dialog-footer button {
  flex: 1;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-danger-confirm {
  background: #c94040;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(201, 64, 64, 0.25);
}

.btn-danger-confirm:hover {
  background: #b23333;
  transform: translateY(-1px);
}

/* ==========================================
   CUSTOMIZE GUEST VIEW PAGE STYLES
   ========================================== */

.customize-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.customize-section-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease;
}

.customize-section-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.section-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--row-border);
}

.section-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f7f2e8;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.section-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.section-card-sub {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

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

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.form-group-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-col label {
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group-col label .req {
  color: var(--red-text);
}

.form-control-input,
.form-control-textarea,
.form-control-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: #faf9f6;
  outline: none;
  transition: all 0.2s ease;
}

.form-control-input:focus,
.form-control-textarea:focus,
.form-control-select:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: none;
}

.helper-text {
  display: none !important;
}

/* Map Preview Box */
.map-preview-box {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f7f5f0;
  position: relative;
  min-height: 250px;
}

.map-preview-header {
  background: #eae4d8;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-preview-iframe {
  width: 100%;
  height: 250px;
  border: none;
  display: block;
}

/* Gallery Images Manager */
.gallery-input-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-remove-url {
  background: var(--red-bg);
  color: var(--red-text);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-remove-url:hover {
  background: #f1b5b5;
}

.btn-add-gallery-row {
  background: rgba(193, 154, 91, 0.1);
  color: var(--gold);
  border: 1px dashed var(--gold);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.btn-add-gallery-row:hover {
  background: var(--gold);
  color: #ffffff;
}

.gallery-preview-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.thumb-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Actions Bar */
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  position: sticky;
  bottom: 24px;
  z-index: 100;
}

.save-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.save-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.save-bar-actions a.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.preview-text-short,
.reset-text-short {
  display: none;
}

.btn-reset-default {
  background: #f0ebe1;
  color: #555;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-default:hover {
  background: #e2dac9;
  color: #222;
}

/* Toast Alert (Save / upload results): white card with a gold accent, red accent for errors */
.customize-toast {
  position: fixed;
  bottom: 104px; /* sits above the sticky save bar */
  right: 24px;
  max-width: min(420px, calc(100vw - 32px));
  background: #ffffff;
  color: var(--text-dark, #2a2118);
  border: 1px solid var(--gold, #c19a5b);
  border-left: 5px solid var(--gold, #c19a5b);
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0s linear 0.4s;
  pointer-events: none;
}

.customize-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.customize-toast .toast-icon { flex-shrink: 0; margin-top: 1px; }
.customize-toast .toast-icon-ok { color: var(--gold-dark, #8a6730); }
.customize-toast .toast-icon-err { display: none; color: #c94040; }
.customize-toast.is-error { border-color: #c94040; border-left-color: #c94040; }
.customize-toast.is-error .toast-icon-ok { display: none; }
.customize-toast.is-error .toast-icon-err { display: block; }

/* Phones: the toast drops from the top so the sticky save bar never covers it */
@media (max-width: 768px) {
  .customize-toast {
    bottom: auto;
    top: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
    transform: translateY(-120px);
  }
}

/* Guest View Map & Gallery Modern Additions */
.guest-map-iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 16px;
  margin-top: 16px;
  box-shadow: none;
}

.guest-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.guest-gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 180, 131, 0.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.guest-gallery-item:hover {
  transform: none;
  box-shadow: none;
}

.guest-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Mobile Layout Selector Cards */
.gallery-layout-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.layout-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.layout-option-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(193, 154, 91, 0.15);
}

.layout-option-card.active {
  border-color: var(--gold);
  background: rgba(193, 154, 91, 0.08);
  box-shadow: 0 0 0 2px rgba(193, 154, 91, 0.25);
}

.layout-option-card .layout-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.layout-option-card .layout-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.layout-option-card .layout-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Drag & Drop File Upload Area */
.upload-dropzone {
  border: 2px dashed var(--gold);
  border-radius: 16px;
  background: rgba(193, 154, 91, 0.04);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  background: rgba(193, 154, 91, 0.1);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  background: #f7f2e8;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.dropzone-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.dropzone-badge {
  display: inline-block;
  margin-top: 10px;
  background: #e6f4ea;
  color: #137333;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Gallery Photo Thumbnails with Delete Overlay */
.gallery-thumb-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #f7f5f0;
}

.gallery-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumb-card:hover img {
  transform: scale(1.05);
}

.thumb-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(201, 64, 64, 0.85);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.thumb-delete-btn:hover {
  background: #c94040;
  transform: scale(1.15);
  opacity: 1;
}

.thumb-size-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* ==========================================
   CUSTOMIZE SPLIT LAYOUT & LIVE MOBILE PREVIEW
   ========================================== */
.customize-split-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1250px) {
  .customize-split-layout {
    grid-template-columns: 1fr;
  }
}

.customize-form-col {
  min-width: 0;
}

/* Part 1 & Part 2 Overlay Image Config Cards */
.overlay-image-config-card {
  background: #fdfbf7;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.25s ease;
}

.overlay-image-config-card:hover {
  border-color: var(--gold);
}

.overlay-config-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.overlay-config-body {
  display: flex;
  gap: 16px;
  align-items: center;
}

.overlay-thumb-box {
  width: 85px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f0ebe1;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.overlay-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-inputs-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overlay-inputs-col label {
  font-size: 12px;
  font-weight: 700;
  color: #444;
}

.input-with-upload {
  display: flex;
  gap: 8px;
}

.input-with-upload input {
  flex: 1;
}

.btn-upload-file-small {
  background: #f7f2e8;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-upload-file-small:hover {
  background: var(--gold);
  color: #ffffff;
}

/* Dashboard only: Remove / Use default buttons next to "Choose File" and the "No photo" thumbnail state */
.input-with-upload.has-action-btn {
  flex-wrap: wrap;
}

.input-with-upload.has-action-btn input[type="text"] {
  min-width: 150px;
}

.btn-remove-file-small {
  background: #ffffff;
  color: #a34a4a;
  border: 1px solid #d9b3b3;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-remove-file-small:hover:not(:disabled) {
  background: #a34a4a;
  border-color: #a34a4a;
  color: #ffffff;
}

.btn-remove-file-small:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.overlay-thumb-box {
  position: relative;
}

.overlay-thumb-box.is-empty img {
  display: none;
}

.overlay-thumb-box.is-empty::after {
  content: "No photo";
  position: absolute;
  inset: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px dashed #cdbf9f;
  border-radius: 6px;
  color: #9a8a66;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Sticky Right Column Preview Wrapper */
.customize-preview-col {
  position: sticky;
  top: 24px;
}

.phone-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-preview-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.preview-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.phone-preview-header-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Realistic Smartphone Device Frame (iPhone 16 Pro Style) */
.phone-device-frame {
  width: 360px;
  height: 720px;
  background: #1c1c1e;
  border-radius: 48px;
  padding: 12px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 0 2px 2px rgba(255, 255, 255, 0.2);
  border: 4px solid #3a3a3c;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island Notch */
.phone-notch {
  width: 95px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.notch-camera {
  width: 9px;
  height: 9px;
  background: #111;
  border-radius: 50%;
  border: 1px solid #222;
}

/* Phone Section View Switcher Tabs */
.phone-view-tabs {
  display: flex;
  background: #2c2c2e;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-top: 32px;
  margin-bottom: 8px;
  z-index: 10;
}

.phone-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #a1a1a6;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.phone-tab-btn.active {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(193, 154, 91, 0.4);
}

/* Phone Screen Container & Iframe */
.phone-screen-container {
  flex: 1;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #110305;
  position: relative;
}

.phone-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.phone-preview-iframe::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Home Indicator Bar */
.phone-home-indicator {
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  margin: 8px auto 2px auto;
}


/* Dashboard only: Part 2 video block (looping video thumbnail, "No video" state, sound checkbox) */
.overlay-thumb-box.video-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-thumb-box.video-thumb.is-empty video {
  display: none;
}

.overlay-thumb-box.video-thumb.is-empty::after {
  content: "No video";
}

.overlay-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
}

/* Dashboard only: Part 2 video conversion progress line and the date-tone select */
.overlay-video-status {
  margin-top: 6px;
  font-weight: 600;
  color: var(--gold-dark, #8a6730);
}

.overlay-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #444;
}

.overlay-select-row .form-control-select {
  width: auto;
  padding: 6px 10px;
  font-size: 12px;
}

/* Dashboard only: gallery layout selector panel (7 cards with small SVG previews) */
.gallery-layout-panel {
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.gallery-layout-title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.gallery-layout-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 14px 0;
}

.layout-option-card .layout-icon {
  color: var(--gold-dark, #8a6730);
  line-height: 0;
}

.layout-option-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Dashboard only: Part 2 media (video or image) thumbnail + sound option that only applies to videos */
.overlay-thumb-box.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-thumb-box.video-thumb.is-empty img {
  display: none;
}

.overlay-check-row.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.overlay-check-note {
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
}


/* ==========================================
   DASHBOARD RESPONSIVE
   Everything below is scoped to the host dashboard (body.admin-dashboard / its own new classes), so the guest page that
   shares this stylesheet is untouched. Above 1100px the layout is unchanged; the only rules that apply there are the two
   overflow guards right below (guest table scrolls inside its own box, long words in wishes wrap).
   Breakpoints: 1100 (small laptops / tablet landscape), 900 (off-canvas menu, page scroll, touch sizes),
                640 (guest table becomes cards), 600 (phones: single columns), 480 (small phones).
   ========================================== */

/* Elements that only exist for the small-screen layout stay hidden on desktop */
.mobile-topbar,
.sidebar-close-btn,
.nav-overlay,
.preview-open-btn,
.preview-close-btn {
  display: none;
}

/* The guest table is wider than the column on laptops: it scrolls inside its own box instead of dragging the whole page sideways */
.admin-dashboard .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Long unbroken text (a pasted link) in a wish must not stretch the grid */
.admin-dashboard .wishes-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dashboard .wish-card .wname,
.admin-dashboard .wish-card .wtext {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Home shows 4 cards across from 1401px, but between 1401px and about 1470px they need a few px more than the column has
   (horizontal scrollbar on the page); a slightly tighter gap and card padding in that window removes it */
@media (min-width: 1401px) and (max-width: 1480px) {
  .admin-dashboard .grid {
    gap: 14px;
  }

  .admin-dashboard .grid > .card {
    padding: 20px;
  }
}

/* ---- <= 1100px: content column gets narrow next to the 320px sidebar ---- */
@media (max-width: 1100px) {
  /* Page header: title + action buttons wrap instead of squeezing */
  .admin-dashboard .page-header {
    flex-wrap: wrap;
    gap: 14px 16px;
  }

  .admin-dashboard .page-header > div:first-child {
    min-width: 0;
    flex: 1 1 260px;
  }

  .admin-dashboard .header-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-dashboard .table-scroll table.guest-table {
    min-width: 860px;
  }

  .admin-dashboard .table-scroll table.guest-table tbody td:nth-child(2) {
    min-width: 150px;
  }

  /* Home cards: two 1fr columns would push the QR card wider than the column, so stack them until there is room again */
  .admin-dashboard .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .wishes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-dashboard .stat-cards {
    gap: 14px;
  }

  .admin-dashboard .stat-card {
    padding: 16px 12px;
  }

  .admin-dashboard .stat-card-inner {
    gap: 8px;
  }
}

/* ---- <= 900px: off-canvas menu, page scroll, touch-friendly sizes ---- */
@media (max-width: 900px) {
  /* Layout: the page scrolls (not .main), sidebar becomes a drawer opened from the top bar */
  .admin-dashboard .app {
    display: block;
    height: auto;
    max-height: none;
    min-height: 100vh;
    overflow: visible;
  }

  .admin-dashboard .main {
    height: auto;
    overflow: visible;
    padding: 20px 20px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  html.scroll-locked,
  html.scroll-locked body.admin-dashboard {
    overflow: hidden;
  }

  .admin-dashboard .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 900;
    height: 60px;
    padding: 8px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
  }

  .admin-dashboard .nav-toggle,
  .nav-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
  }

  .admin-dashboard .nav-toggle:hover,
  .nav-toggle:hover,
  .admin-dashboard .nav-toggle:focus-visible,
  .nav-toggle:focus-visible {
    background: #f7f2e8;
    border-color: var(--gold);
    color: var(--gold-dark);
  }

  .admin-dashboard .mobile-topbar-logo {
    height: 40px;
    width: auto;
    flex: 0 0 auto;
    object-fit: contain;
  }

  .admin-dashboard .mobile-topbar-title {
    min-width: 0;
    flex: 1;
    font-family: "Georgia", serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-dashboard .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1150;
    background: rgba(20, 16, 10, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }

  .admin-dashboard.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .admin-dashboard .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1200;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    visibility: hidden; /* off-screen items must not be reachable with Tab */
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
  }

  .admin-dashboard.nav-open .sidebar,
  body.nav-open .sidebar {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }

  .admin-dashboard .sidebar-close-btn,
  .sidebar-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f7f2e8;
    border: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .admin-dashboard .sidebar-close-btn:hover,
  .sidebar-close-btn:hover {
    background: #ede5d5;
    color: var(--gold-dark);
  }



  .admin-dashboard .brand {
    margin-bottom: 24px;
  }

  .admin-dashboard .brand img,
  .admin-dashboard .brand-logo {
    width: 160px;
  }

  .admin-dashboard .nav-item {
    min-height: 48px;
  }

  .admin-dashboard .signout {
    min-height: 48px;
  }

  /* Home */
  .admin-dashboard .grid {
    gap: 18px;
  }

  .admin-dashboard .hero {
    padding: 28px 28px;
  }

  .admin-dashboard .hero h1 {
    font-size: 32px;
  }

  /* Guestlist */
  .admin-dashboard .filter-row2 {
    flex-wrap: wrap;
  }

  .admin-dashboard .filter-btns {
    flex-wrap: wrap;
  }

  .admin-dashboard .table-footer {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .admin-dashboard .table-footer .right {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .admin-dashboard .checklist-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* Wishes */
  .admin-dashboard .filter-pills {
    flex-wrap: wrap;
  }

  .admin-dashboard .wish-card .wname {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .admin-dashboard .wish-card .wtext,
  .admin-dashboard .task-title,
  .admin-dashboard .task-note,
  .admin-dashboard .helper-text,
  .admin-dashboard .section-card-sub,
  .admin-dashboard .dialog-message {
    overflow-wrap: anywhere;
  }

  /* Customize: form cards */
  .admin-dashboard .customize-container {
    gap: 20px;
  }

  .admin-dashboard .customize-section-card {
    padding: 22px 20px;
  }

  .admin-dashboard .section-card-header > div:last-child {
    min-width: 0;
  }

  .admin-dashboard .overlay-inputs-col {
    min-width: 0;
  }

  .admin-dashboard .gallery-list-head {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .admin-dashboard .gallery-input-row {
    flex-wrap: wrap;
  }

  .admin-dashboard .gallery-input-row input {
    flex: 1 1 200px;
    min-width: 0;
  }

  /* Customize: live phone preview becomes a full-screen sheet opened from the "Live Preview" button */
  .admin-dashboard .preview-open-btn {
    display: flex;
  }

  .admin-dashboard .customize-preview-col {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    background: #fbf9f4;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(24px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .admin-dashboard .customize-preview-col.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }

  .admin-dashboard .phone-preview-wrapper {
    --ps: 1;
    --phone-h: max(480px, min(720px, calc(100vh - 90px)));
    --phone-h: max(480px, min(720px, calc(100dvh - 90px)));
  }

  .admin-dashboard .phone-preview-header-title {
    width: 100%;
    max-width: 360px;
    margin-bottom: 10px;
  }

  .admin-dashboard .preview-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin-left: auto;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 26px;
    line-height: 1;
    color: #555;
    cursor: pointer;
  }

  .admin-dashboard .phone-device-frame {
    height: var(--phone-h);
    transform: scale(var(--ps));
    transform-origin: top center;
    margin-bottom: calc(var(--phone-h) * (var(--ps) - 1));
  }

  /* Bottom save bar: fixed at viewport bottom, safe-area aware */
  .admin-dashboard .save-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)) 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .admin-dashboard .save-bar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    min-width: 0;
    flex: 0 0 auto;
  }

  .admin-dashboard .save-bar-info svg {
    flex: 0 0 auto;
    margin-top: 1px;
  }

  .admin-dashboard .save-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .admin-dashboard .save-bar-actions .btn,
  .admin-dashboard .save-bar-actions .btn-reset-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
  }

  .admin-dashboard .save-bar-actions .btn {
    flex: 1 1 auto;
  }

  .admin-dashboard .save-bar-actions .btn-reset-default {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 10px 10px;
  }

  /* Padding at bottom of forms to ensure content is fully scrollable above fixed save-bar */
  .admin-dashboard #page-details .customize-container,
  .admin-dashboard #page-customize .customize-container,
  .admin-dashboard #page-customize .customize-form-col {
    padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Header actions on mobile: push Save and Preview to the fixed bottom save bar */
  .admin-dashboard #page-details .page-header .header-actions,
  .admin-dashboard #page-customize .page-header .header-actions {
    display: none;
  }

  /* Modals and dialogs fit the viewport and scroll inside */
  .admin-dashboard .modal-overlay {
    padding: 12px;
  }

  .admin-dashboard .modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 22px 20px;
  }

  .admin-dashboard .dialog-overlay {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 16px;
  }

  .admin-dashboard .dialog-card {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 26px 20px 22px;
  }

  /* ---- Touch targets (>= 44px) and 16px form fields (stops iOS zoom-on-focus) ---- */
  .admin-dashboard .btn,
  .admin-dashboard .btn-reset-default,
  .admin-dashboard .btn-upload-file-small,
  .admin-dashboard .btn-remove-file-small,
  .admin-dashboard .btn-add-gallery-row,
  .admin-dashboard .chip-btn,
  .admin-dashboard .chip-select,
  .admin-dashboard .filter-pill,
  .admin-dashboard .btn-icon,
  .admin-dashboard .page-btn,
  .admin-dashboard .btn-danger-confirm,
  .admin-dashboard .btn-danger-wish {
    min-height: 44px;
  }

  .admin-dashboard .btn,
  .admin-dashboard .btn-upload-file-small,
  .admin-dashboard .btn-remove-file-small {
    justify-content: center;
  }

  /* the preview phone is scaled down on narrow screens; compensate so the tabs still measure 44px on screen */
  .admin-dashboard .phone-tab-btn {
    min-height: calc(44px / var(--ps, 1));
  }

  .admin-dashboard .page-btn,
  .admin-dashboard .btn-remove-url {
    min-width: 44px;
    min-height: 44px;
  }

  .admin-dashboard .close-btn,
  .admin-dashboard .thumb-delete-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .admin-dashboard .thumb-delete-btn {
    top: 4px;
    right: 4px;
  }

  .admin-dashboard .view-all-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .admin-dashboard .form-control-input,
  .admin-dashboard .form-control-select,
  .admin-dashboard .form-control-textarea,
  .admin-dashboard .form-group input,
  .admin-dashboard .form-group select,
  .admin-dashboard .form-group textarea,
  .admin-dashboard .filter-row1 input,
  .admin-dashboard select.rows-select,
  .admin-dashboard .overlay-select-row .form-control-select,
  .admin-dashboard .chip-select {
    font-size: 16px;
  }

  .admin-dashboard .form-control-input,
  .admin-dashboard .form-control-select,
  .admin-dashboard .form-group input,
  .admin-dashboard .form-group select,
  .admin-dashboard .filter-row1 input,
  .admin-dashboard select.rows-select,
  .admin-dashboard .overlay-select-row .form-control-select {
    min-height: 44px;
  }

  /* Checkboxes: 44px hit area, drawn as a 24px box */
  .admin-dashboard input.checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' fill='white' stroke='%23c19a5b' stroke-width='2'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
    cursor: pointer;
  }

  .admin-dashboard input.checkbox:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1' y='1' width='22' height='22' rx='6' fill='%23c19a5b'/%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-7.6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .admin-dashboard input.checkbox:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -3px;
  }

  .admin-dashboard .overlay-check-row {
    min-height: 44px;
    gap: 4px;
  }

  .admin-dashboard .task-info {
    padding-top: 10px;
  }

  /* Inline-styled buttons that JS renders inside tables / cards (edit, delete, copy link, EINVITE pill) */
  .admin-dashboard #guest-tbody button,
  .admin-dashboard .wish-card button {
    min-width: 44px;
    min-height: 44px;
  }

  .admin-dashboard #guest-tbody .pill-einvite {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .admin-dashboard .overview-line a {
    display: inline-block;
    padding: 13px 6px;
    margin: -13px -6px;
  }

  html:has(body.admin-dashboard) {
    scroll-padding-bottom: 140px;
  }
}

/* ---- Phones in landscape / very short viewports: the save bar would eat the screen, so it scrolls with the form ---- */
@media (max-width: 900px) and (max-height: 520px) {
  .admin-dashboard .save-bar {
    position: static;
  }

  .admin-dashboard .phone-preview-wrapper {
    --phone-h: 480px;
  }
}

/* ---- Tablets and phones: pick the size of the scaled live-preview phone to fit the width ---- */
@media (max-width: 391px) {
  .admin-dashboard .phone-preview-wrapper {
    --ps: 0.9;
  }
}

@media (max-width: 355px) {
  .admin-dashboard .phone-preview-wrapper {
    --ps: 0.8;
  }
}

/* ---- Toast: tablets keep the bottom-right slot (above the save bar); phones (<= 768px) use the existing top position, moved clear of the notch ---- */
@media (min-width: 769px) and (max-width: 900px) {
  .admin-dashboard .customize-toast {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) {
  .admin-dashboard .customize-toast {
    top: calc(16px + env(safe-area-inset-top, 0px));
  }
}

/* ---- 701px - 900px: two home columns fit again ---- */
@media (min-width: 701px) and (max-width: 900px) {
  .admin-dashboard .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Login page: 16px fields (no iOS zoom-on-focus) and touch-sized controls up to tablet widths ---- */
@media (max-width: 900px) {
  body.login-page .form-field input {
    font-size: 16px;
    min-height: 48px;
  }

  body.login-page .btn-toggle-password {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  body.login-page .btn-sign-in {
    min-height: 48px;
  }
}

/* ---- <= 700px ---- */
@media (max-width: 700px) {
  .admin-dashboard .wishes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* ---- MOBILE GUEST CARDS STYLING (matching mockup) ---- */
.guest-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .table-scroll {
    display: none !important;
  }
  .guest-mobile-cards {
    display: flex !important;
  }

  /* Compact Filter Options Box on Mobile */
  .admin-dashboard .filter-box,
  .filter-box {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    margin-bottom: 14px !important;
  }

  .filter-box-header {
    margin-bottom: 8px !important;
  }

  .filter-box-title {
    font-size: 14px !important;
  }

  .filter-search-container {
    margin-bottom: 8px !important;
  }

  .admin-dashboard .filter-search-container input,
  .filter-search-container input {
    font-size: 13px !important;
    padding: 6px 12px 6px 34px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
  }

  .filter-search-icon {
    width: 14px !important;
    height: 14px !important;
    left: 12px !important;
  }

  .filter-btns {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 6px !important;
    padding-bottom: 2px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-btns::-webkit-scrollbar {
    display: none;
  }

  .admin-dashboard .chip-select,
  .admin-dashboard .chip-btn,
  .chip-select,
  .chip-btn {
    font-size: 12px !important;
    padding: 6px 10px !important;
    min-height: 34px !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    flex: 0 0 auto !important;
  }
}

.guest-mobile-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.gcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gcard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f7f2e8;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gcard-name-box {
  flex: 1;
  margin-left: 12px;
}

.gcard-name {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  line-height: 1.25;
}

.gcard-menu-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.gcard-menu-btn:hover {
  background: #ebebeb;
}

.gcard-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 14px 0;
}

.gcard-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.gcard-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gcard-col-left {
  border-right: 1px solid #f0f0f0;
  padding-right: 14px;
}

.gcard-col-right {
  padding-left: 14px;
}

.gcard-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gcard-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gcard-label-row svg {
  color: #555555;
  flex-shrink: 0;
}

.gcard-val-text {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  padding-left: 2px;
}

.gcard-val-box {
  display: flex;
  align-items: center;
  padding-top: 2px;
}

.mobile-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  padding: 4px 10px;
  line-height: 1.2;
}

.mobile-badge-yes {
  background: #2ea755;
  color: #ffffff;
}

.mobile-badge-pending {
  background: #6c757d;
  color: #ffffff;
}

.mobile-badge-no {
  background: #dc3545;
  color: #ffffff;
}

.mobile-badge-tag {
  background: #f7f2e8;
  color: #8a6730;
  padding: 4px 12px;
}

.mobile-badge-tag-empty {
  color: #888;
  font-weight: 600;
}

.gcard-checkbox-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.gcard-checkbox-btn.is-checked {
  background: #b58a52;
  border-color: #b58a52;
  color: #ffffff;
}

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

.gcard-footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gcard-copy-btn {
  background: #f8f4ec;
  border: 1px solid #e7dcce;
  color: #7c6030;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  transition: background 0.2s ease;
}

.gcard-copy-btn:hover {
  background: #f0e6d6;
}

.gcard-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gcard-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  padding: 0;
  transition: all 0.2s ease;
}

.gcard-action-btn.btn-edit {
  color: #8a6730;
}

.gcard-action-btn.btn-edit:hover {
  background: #f7f2e8;
  border-color: #c19a5b;
}

.gcard-action-btn.btn-delete {
  background: #ffeeee;
  border-color: #ffd6d6;
  color: #e53935;
}

.gcard-action-btn.btn-delete:hover {
  background: #ffdada;
}

/* ---- <= 600px: phones ---- */
@media (max-width: 600px) {
  .admin-dashboard .main {
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  /* Home */
  .admin-dashboard .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
  }

  .admin-dashboard .hero {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .admin-dashboard .hero h1 {
    font-size: 26px;
  }

  .admin-dashboard .card {
    padding: 18px 16px;
  }

  .admin-dashboard .card h2 {
    font-size: 20px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-dashboard .stat-row {
    gap: 8px;
  }

  .admin-dashboard .stat .num {
    font-size: 22px;
  }

  /* Page headers stack; action buttons share the width */
  .admin-dashboard .page-header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 16px;
  }

  .admin-dashboard .page-header > div:first-child {
    flex: 0 0 auto;
  }

  .admin-dashboard .page-header h1,
  .admin-dashboard .wishes-title {
    font-size: 26px;
  }

  .admin-dashboard .header-actions {
    width: 100%;
  }

  .admin-dashboard .header-actions .btn {
    flex: 1 1 auto;
  }

  .admin-dashboard #page-details .page-header .header-actions,
  .admin-dashboard #page-customize .page-header .header-actions {
    display: none;
  }

  /* Stat cards and grids */
  .admin-dashboard .stat-cards {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 16px;
  }

  .admin-dashboard .checklist-overview-grid {
    margin-bottom: 16px;
  }

  .admin-dashboard .checklist-stat-card {
    padding: 14px 10px;
  }

  .admin-dashboard .checklist-stat-card .val {
    font-size: 24px;
  }

  .admin-dashboard .filter-box {
    padding: 14px 14px;
  }

  .admin-dashboard .filter-row1 {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .admin-dashboard .filter-row1 input {
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .admin-dashboard .table-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-dashboard .table-footer .right {
    width: 100%;
    justify-content: space-between;
  }

  /* Checklist tasks: title block on top, actions below */
  .admin-dashboard .task-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px;
  }

  .admin-dashboard .task-left {
    min-width: 0;
    gap: 6px;
  }

  .admin-dashboard .task-info {
    min-width: 0;
  }

  .admin-dashboard .task-actions .btn-icon {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  /* Wishes */
  .admin-dashboard .wishes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Customize */
  .admin-dashboard .customize-section-card {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .admin-dashboard .section-card-header {
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .admin-dashboard .section-card-title {
    font-size: 16px;
  }

  .admin-dashboard .form-grid-2,
  .admin-dashboard .form-grid-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .admin-dashboard .overlay-image-config-card {
    padding: 14px 12px;
  }

  .admin-dashboard .overlay-config-body {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-dashboard .overlay-thumb-box {
    align-self: flex-start;
  }

  .admin-dashboard .input-with-upload.has-action-btn input[type="text"] {
    flex: 1 1 100%;
    min-width: 0;
  }

  .admin-dashboard .btn-upload-file-small,
  .admin-dashboard .btn-remove-file-small {
    flex: 1 1 auto;
  }

  .admin-dashboard .overlay-select-row {
    flex-wrap: wrap;
  }

  .admin-dashboard .map-preview-header {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .admin-dashboard .map-preview-iframe {
    height: 220px;
  }

  .admin-dashboard .gallery-layout-panel {
    padding: 14px 12px;
  }

  .admin-dashboard .gallery-layout-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard .layout-option-card .layout-desc {
    font-size: 11px;
  }

  .admin-dashboard .upload-dropzone {
    padding: 22px 14px;
  }

  .admin-dashboard .gallery-preview-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }

  .admin-dashboard .gallery-input-row .btn {
    flex: 1 1 100%;
  }

  /* Save bar: message on top, buttons share the row */
  .admin-dashboard .save-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .admin-dashboard .save-bar-info {
    flex: 0 0 auto;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }

  .admin-dashboard .save-bar-info svg {
    flex: 0 0 auto;
    margin-top: 1px;
  }

  .admin-dashboard .save-bar-actions {
    width: 100%;
    gap: 8px;
  }

  .admin-dashboard .save-bar-actions .btn-reset-default,
  .admin-dashboard .save-bar-actions .btn {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  .admin-dashboard .save-bar-actions .btn-reset-default {
    flex: 0 0 auto;
  }

  .admin-dashboard .save-bar-actions .btn {
    flex: 1 1 auto;
  }
}

/* ---- <= 440px: small screen save-bar text compactness ---- */
@media (max-width: 440px) {
  .admin-dashboard .save-bar-actions .preview-text-full,
  .admin-dashboard .save-bar-actions .reset-text-full {
    display: none;
  }
  .admin-dashboard .save-bar-actions .preview-text-short,
  .admin-dashboard .save-bar-actions .reset-text-short {
    display: inline;
  }
  .admin-dashboard .save-bar-actions {
    gap: 6px;
  }
  .admin-dashboard .save-bar-actions .btn,
  .admin-dashboard .save-bar-actions .btn-reset-default {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
  }
}

/* ---- <= 480px: small phones ---- */
@media (max-width: 480px) {
  .admin-dashboard .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .admin-dashboard .modal-footer {
    flex-wrap: wrap;
  }

  .admin-dashboard .modal-footer .btn {
    flex: 1 1 140px;
  }

  .admin-dashboard .dialog-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .admin-dashboard .dialog-footer button {
    width: 100%;
    flex: 0 0 auto;
    min-height: 44px;
  }

  /* Login page */
  body.login-page {
    padding: 16px;
  }

  body.login-page .login-container {
    padding: 32px 20px;
    border-radius: 16px;
  }

  body.login-page .login-container .brand-logo {
    width: 120px;
    margin-bottom: 18px;
  }

  body.login-page .login-title {
    font-size: 24px;
  }

  body.login-page .login-sub {
    margin-bottom: 24px;
  }
}
