@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --acc-primary: #1a5f4a;
  --acc-primary-light: #2d8a6e;
  --acc-primary-dark: #0f3d30;
  --acc-secondary: #d4a853;
  --acc-secondary-light: #e8c47a;
  --acc-accent: #c45c3e;
  --acc-bg: #eef3f0;
  --acc-bg-pattern: radial-gradient(circle at 20% 20%, rgba(45, 138, 110, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 168, 83, 0.05) 0%, transparent 50%);
  --acc-surface: #ffffff;
  --acc-surface-hover: #f8fbf9;
  --acc-text: #152019;
  --acc-text-muted: #5c6f64;
  --acc-border: #dde8e2;
  --acc-border-light: #ecf2ee;
  --acc-success: #22a06b;
  --acc-warning: #e6a817;
  --acc-danger: #dc3545;
  --acc-info: #0d6efd;
  --acc-shadow-sm: 0 1px 3px rgba(15, 61, 48, 0.06);
  --acc-shadow: 0 4px 24px rgba(15, 61, 48, 0.08);
  --acc-shadow-lg: 0 12px 40px rgba(15, 61, 48, 0.12);
  --acc-radius: 16px;
  --acc-radius-sm: 10px;
  --acc-radius-xs: 6px;
  --acc-font: 'Kanit', sans-serif;
  --acc-sidebar-width: 272px;
  --acc-topbar-height: 64px;
  --acc-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--acc-font);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body,
button, input, select, textarea,
.btn, .form-control, .form-select,
.modal-content, .dropdown-menu, .badge, .alert {
  font-family: var(--acc-font);
}

/* Enforce Kanit across the whole system (Bootstrap, SweetAlert2, etc.) */
*:not(i):not([class^="bi-"]):not([class*=" bi-"]):not(.material-icons),
.swal2-container,
.swal2-popup,
.swal2-popup * {
  font-family: var(--acc-font);
}

/* Keep icon fonts intact */
.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
  font-family: 'bootstrap-icons' !important;
}

body {
  background: var(--acc-bg);
  background-image: var(--acc-bg-pattern);
  background-attachment: fixed;
  color: var(--acc-text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overscroll-behavior: none;
}

/* ── Layout shell ── */
.acc-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 24, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  transition: opacity var(--acc-transition);
}

.acc-sidebar-overlay.show {
  display: block;
  opacity: 1;
}

.acc-sidebar {
  width: var(--acc-sidebar-width);
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--acc-primary-dark) 0%, #0a2820 100%);
  color: #fff;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: transform var(--acc-transition);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.acc-sidebar-brand {
  padding: 1.35rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.acc-sidebar-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--acc-secondary), var(--acc-secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--acc-primary-dark);
  flex-shrink: 0;
}

.acc-sidebar-brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.acc-sidebar-brand-text span {
  color: var(--acc-secondary-light);
}

.acc-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.acc-nav-section {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.75rem 0.75rem 0.35rem;
  margin-top: 0.25rem;
}

.acc-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: var(--acc-radius-sm);
  font-size: 0.925rem;
  font-weight: 400;
  transition: background var(--acc-transition), color var(--acc-transition), transform 0.15s;
}

.acc-nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1.05rem;
  opacity: 0.85;
}

.acc-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.acc-nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 500;
  box-shadow: inset 3px 0 0 var(--acc-secondary);
}

.acc-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.acc-lang-switch {
  margin-bottom: 0.85rem;
}

.acc-lang-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.4rem;
}

.acc-lang-btns {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: var(--acc-radius-xs);
}

.acc-lang-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--acc-transition), color var(--acc-transition);
  font-family: var(--acc-font);
}

.acc-lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.acc-lang-btn.active {
  background: rgba(212, 168, 83, 0.25);
  color: var(--acc-secondary-light);
}

.acc-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.acc-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 168, 83, 0.5);
  flex-shrink: 0;
}

.acc-user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.acc-user-name {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-user-role {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.acc-btn-logout {
  width: 100%;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--acc-radius-xs);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  cursor: pointer;
  transition: background var(--acc-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.acc-btn-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.acc-main {
  margin-left: var(--acc-sidebar-width);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 2rem;
  max-width: 1400px;
}

.acc-topbar {
  background: var(--acc-surface);
  padding: 0.85rem 1.25rem;
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow-sm);
  border: 1px solid var(--acc-border-light);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0.75rem;
  z-index: 1030;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.acc-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.acc-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--acc-bg);
  border-radius: var(--acc-radius-xs);
  color: var(--acc-primary);
  font-size: 1.35rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--acc-transition);
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.acc-menu-btn:hover {
  background: var(--acc-border);
}

.acc-back-btn {
  display: flex;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--acc-bg);
  border-radius: var(--acc-radius-xs);
  color: var(--acc-primary);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--acc-transition), color var(--acc-transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.acc-back-btn:hover {
  background: var(--acc-border);
  color: var(--acc-primary-dark);
}

.acc-back-btn:active {
  transform: scale(0.96);
}

.acc-page-title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-topbar-date {
  font-size: 0.8rem;
  color: var(--acc-text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Page sections ── */
.acc-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.acc-page-header h5,
.acc-page-header h2 {
  margin: 0;
  font-weight: 600;
}

.acc-page-header p {
  margin: 0.25rem 0 0;
  color: var(--acc-text-muted);
  font-size: 0.875rem;
}

/* ── Cards ── */
.acc-card {
  background: var(--acc-surface);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow-sm);
  border: 1px solid var(--acc-border-light);
  transition: box-shadow var(--acc-transition), transform var(--acc-transition);
  overflow: hidden;
}

.acc-card:has(.acc-filter-bar),
.acc-card:has(.acc-select) {
  overflow: visible;
}

.acc-card:has(.acc-select.is-open) {
  position: relative;
  z-index: 50;
}

.acc-card:hover {
  box-shadow: var(--acc-shadow);
}

.acc-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--acc-border-light);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--acc-surface-hover);
}

.acc-card-body {
  padding: 1.25rem;
}

.acc-card-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--acc-border-light);
  background: var(--acc-surface-hover);
}

/* ── Stat cards ── */
.acc-stat-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.acc-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--acc-primary), var(--acc-primary-light));
  opacity: 0;
  transition: opacity var(--acc-transition);
}

.acc-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--acc-shadow);
}

.acc-stat-card:hover::before {
  opacity: 1;
}

.acc-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(26, 95, 74, 0.1), rgba(45, 138, 110, 0.15));
  color: var(--acc-primary);
}

.acc-stat-icon.gold {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(232, 196, 122, 0.2));
  color: #9a7224;
}

.acc-stat-icon.accent {
  background: linear-gradient(135deg, rgba(196, 92, 62, 0.12), rgba(196, 92, 62, 0.18));
  color: var(--acc-accent);
}

.acc-stat-value {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--acc-text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.acc-stat-label {
  color: var(--acc-text-muted);
  font-size: 0.825rem;
  font-weight: 400;
}

/* ── Place cards ── */
.acc-place-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.acc-place-card-header {
  height: 6px;
  background: linear-gradient(90deg, var(--acc-primary), var(--acc-primary-light));
}

.acc-place-card-header.national-park {
  background: linear-gradient(90deg, var(--acc-accent), #e07a5f);
}

.acc-place-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.acc-place-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.acc-place-card-meta {
  font-size: 0.8rem;
  color: var(--acc-text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.acc-place-card-desc {
  font-size: 0.875rem;
  color: var(--acc-text-muted);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.acc-place-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ── Filter bar ── */
.acc-filter-bar {
  padding: 1rem 1.25rem;
}

.acc-filter-bar .form-control,
.acc-filter-bar .form-select {
  border-radius: var(--acc-radius-xs);
  border-color: var(--acc-border);
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  transition: border-color var(--acc-transition), box-shadow var(--acc-transition);
}

.acc-filter-bar .form-control:focus,
.acc-filter-bar .form-select:focus {
  border-color: var(--acc-primary-light);
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.12);
}

/* ── Custom select (themed dropdown) ── */
.acc-select {
  position: relative;
  width: 100%;
}

.acc-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.acc-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.625rem;
  padding: 0.55rem 0.85rem;
  background: var(--acc-surface);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius-xs);
  color: var(--acc-text);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--acc-transition), box-shadow var(--acc-transition);
}

.acc-select-trigger:hover {
  border-color: var(--acc-primary-light);
  background: var(--acc-surface-hover);
}

.acc-select-trigger:focus,
.acc-select.is-open .acc-select-trigger {
  outline: none;
  border-color: var(--acc-primary-light);
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.12);
}

.acc-select-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acc-select-chevron {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--acc-text-muted);
  transition: transform var(--acc-transition);
}

.acc-select.is-open .acc-select-chevron {
  transform: rotate(180deg);
  color: var(--acc-primary);
}

.acc-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1060;
  max-height: min(16rem, 50vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--acc-surface);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius-sm);
  box-shadow: var(--acc-shadow-lg);
  padding: 0.35rem;
  animation: accSelectIn 0.18s ease-out;
}

.acc-select-menu.is-floating {
  position: fixed;
  top: auto;
  left: auto;
  right: auto;
  animation: accSelectIn 0.15s ease-out;
}

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

.acc-select-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: var(--acc-radius-xs);
  background: transparent;
  color: var(--acc-text);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background var(--acc-transition), color var(--acc-transition);
}

.acc-select-option:hover,
.acc-select-option:focus {
  outline: none;
  background: rgba(26, 95, 74, 0.08);
  color: var(--acc-primary-dark);
}

.acc-select-option.is-selected {
  background: rgba(26, 95, 74, 0.12);
  color: var(--acc-primary-dark);
  font-weight: 500;
}

.acc-select-option.is-selected::before {
  content: '\F26E';
  font-family: 'bootstrap-icons';
  font-size: 0.85rem;
  color: var(--acc-primary);
  flex-shrink: 0;
}

.acc-select-sm .acc-select-trigger {
  min-height: 2.125rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
}

.acc-select-sm .acc-select-option {
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
}

.acc-filter-bar .acc-select-trigger,
.acc-card-body .acc-select-trigger {
  border-color: var(--acc-border);
}

.acc-card-body .acc-select {
  min-width: 140px;
}

@media (max-width: 767.98px) {
  .acc-select-menu {
    max-height: min(14rem, 45vh);
  }

  .acc-select-option {
    min-height: 2.75rem;
  }
}

/* ── Buttons ── */
.btn-acc-primary {
  background: linear-gradient(135deg, var(--acc-primary), var(--acc-primary-light));
  border: none;
  color: #fff;
  font-weight: 500;
  border-radius: var(--acc-radius-xs);
  padding: 0.5rem 1.1rem;
  transition: transform 0.15s, box-shadow var(--acc-transition), filter var(--acc-transition);
  box-shadow: 0 2px 8px rgba(26, 95, 74, 0.25);
}

.btn-acc-primary:hover,
.btn-acc-primary:focus {
  background: linear-gradient(135deg, var(--acc-primary-dark), var(--acc-primary));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 95, 74, 0.3);
}

.btn-acc-primary:active {
  transform: translateY(0);
}

.btn-acc-secondary {
  background: var(--acc-secondary);
  border-color: var(--acc-secondary);
  color: var(--acc-text);
  font-weight: 500;
  border-radius: var(--acc-radius-xs);
}

.btn-acc-outline {
  border: 1.5px solid var(--acc-border);
  background: var(--acc-surface);
  color: var(--acc-text);
  border-radius: var(--acc-radius-xs);
  font-weight: 500;
  transition: all var(--acc-transition);
}

.btn-acc-outline:hover {
  border-color: var(--acc-primary);
  color: var(--acc-primary);
  background: rgba(26, 95, 74, 0.04);
}

/* ── Forms ── */
.form-control, .form-select {
  border-radius: var(--acc-radius-xs);
  border-color: var(--acc-border);
  padding: 0.55rem 0.85rem;
  transition: border-color var(--acc-transition), box-shadow var(--acc-transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--acc-primary-light);
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.12);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--acc-text);
  margin-bottom: 0.35rem;
}

/* ── Passport ── */
.acc-passport-cover {
  background: linear-gradient(135deg, var(--acc-primary-dark) 0%, var(--acc-primary) 50%, var(--acc-primary-light) 100%);
  color: #fff;
  border-radius: var(--acc-radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--acc-shadow-lg);
}

.acc-passport-cover::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 320px;
  height: 320px;
  background: rgba(212, 168, 83, 0.12);
  border-radius: 50%;
}

.acc-passport-cover::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.acc-passport-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}

.acc-passport-icon {
  font-size: clamp(3rem, 8vw, 5rem);
  opacity: 0.25;
}

/* ── Stamps ── */
.acc-stamp-card {
  border: 2px dashed var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all var(--acc-transition);
  height: 100%;
  background: var(--acc-surface);
}

.acc-stamp-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--acc-shadow-sm);
}

.acc-stamp-card.collected {
  border-color: var(--acc-secondary);
  border-style: solid;
  background: linear-gradient(180deg, #fffdf8, #fff);
  box-shadow: var(--acc-shadow-sm);
}

.acc-stamp-card.locked {
  opacity: 0.55;
  filter: grayscale(0.6);
}

.acc-stamp-location {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acc-stamp-province {
  font-size: 0.75rem;
  line-height: 1.3;
}

.acc-stamp-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--acc-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.35rem;
  color: var(--acc-primary);
}

.acc-stamp-card.collected .acc-stamp-icon {
  background: linear-gradient(135deg, var(--acc-secondary-light), var(--acc-secondary));
  color: var(--acc-primary-dark);
}

/* ── Progress ── */
.progress-acc {
  height: 10px;
  border-radius: 100px;
  background: var(--acc-border-light);
  overflow: hidden;
}

.progress-acc .progress-bar {
  background: linear-gradient(90deg, var(--acc-primary), var(--acc-primary-light));
  border-radius: 100px;
  transition: width 0.6s ease;
}

/* ── Activity feed ── */
.acc-activity-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--acc-border-light);
  transition: background var(--acc-transition);
}

.acc-activity-item:last-child {
  border-bottom: none;
}

.acc-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(26, 95, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-primary);
  flex-shrink: 0;
}

.acc-activity-title {
  font-weight: 500;
  font-size: 0.9rem;
}

.acc-activity-time {
  font-size: 0.78rem;
  color: var(--acc-text-muted);
}

/* ── Journal ── */
.acc-journals-page .acc-main {
  padding-bottom: calc(var(--acc-bottom-nav-h, 72px) + 1rem);
}

.acc-journal-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(var(--acc-bottom-nav-h, 72px) + 1rem);
  z-index: 1040;
  width: 3.25rem;
  height: 3.25rem;
  border: none;
  border-radius: 50%;
  background: var(--acc-primary);
  color: #fff;
  box-shadow: var(--acc-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: transform var(--acc-transition), box-shadow var(--acc-transition);
}

.acc-journal-fab:hover {
  transform: translateY(-2px);
  box-shadow: var(--acc-shadow-lg);
}

.acc-journal-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--acc-transition), box-shadow var(--acc-transition);
  display: flex;
  flex-direction: column;
}

.acc-journal-card:hover,
.acc-journal-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--acc-shadow);
  outline: none;
}

.acc-journal-card-cover {
  height: 148px;
  background: linear-gradient(135deg, rgba(26, 95, 74, 0.12), rgba(45, 138, 110, 0.18));
  overflow: hidden;
}

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

.acc-journal-card-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-primary);
  font-size: 2.25rem;
  opacity: 0.45;
}

.acc-journal-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.acc-journal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.acc-journal-card-date {
  font-size: 0.78rem;
  color: var(--acc-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.acc-journal-card-actions {
  display: flex;
  gap: 0.25rem;
}

.btn-acc-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--acc-border);
  background: var(--acc-surface);
  color: var(--acc-text-muted);
}

.btn-acc-icon:hover {
  border-color: var(--acc-primary-light);
  color: var(--acc-primary);
  background: rgba(26, 95, 74, 0.06);
}

.btn-acc-icon-danger:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.06);
}

.acc-journal-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acc-journal-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  color: var(--acc-text-muted);
}

.acc-journal-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.acc-journal-card-place {
  color: var(--acc-primary);
}

.acc-journal-card-excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--acc-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acc-journal-card-more {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--acc-primary);
}

.acc-journal-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.65;
}

/* ── Journal create / edit modal ── */
.acc-journal-form-modal {
  width: min(92vw, 32rem);
  max-width: none;
  margin: 0.75rem auto;
}

.acc-journal-form-modal .modal-content {
  max-height: min(92vh, 640px);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.acc-journal-form-modal .acc-journal-form,
.acc-journal-form-modal form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.acc-journal-form-modal .modal-header {
  flex-shrink: 0;
  padding: 0.9rem 1.15rem;
  position: sticky;
  top: 0;
  z-index: 3;
}

.acc-journal-form-modal .modal-body {
  flex: 1 0 auto;
  overflow: visible;
  padding: 0.85rem 1.15rem 1rem;
}

.acc-journal-form-modal .modal-body .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}

.acc-journal-form-modal .modal-body .mb-3 {
  margin-bottom: 0.75rem !important;
}

.acc-journal-form-modal .modal-footer {
  flex-shrink: 0;
  padding: 0.75rem 1.15rem;
  display: flex;
  justify-content: stretch;
  gap: 0.5rem;
  position: sticky;
  bottom: 0;
  z-index: 3;
}

.acc-journal-form-modal .modal-footer .btn {
  flex: 1 1 0;
  min-width: 0;
}

.acc-journal-form-modal .acc-journal-textarea {
  min-height: 96px;
  max-height: 160px;
  line-height: 1.55;
}

.acc-journal-date-field {
  position: relative;
}

.acc-journal-date-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--acc-text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 2;
}

.acc-journal-date-field .acc-date-picker-trigger {
  padding-left: 2.35rem;
}

.acc-journal-date-field .acc-date-picker-popup {
  z-index: 10;
}

.acc-journal-form-modal .acc-journal-photo-slots {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.acc-journal-photo-slot--existing {
  cursor: default;
}

.acc-journal-photo-slot--existing::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  pointer-events: none;
}

@media (max-width: 575.98px) {
  .acc-journal-form-modal {
    width: calc(100vw - 1rem);
    margin: 0.5rem auto;
  }

  .acc-journal-form-modal .modal-content {
    max-height: calc(100dvh - 1rem);
  }

  .acc-journal-form-modal .acc-journal-photo-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .acc-journal-form-modal .acc-journal-textarea {
    min-height: 88px;
    max-height: 140px;
  }
}

.acc-journal-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  border: 1.5px dashed var(--acc-border);
  border-radius: var(--acc-radius);
  background: rgba(26, 95, 74, 0.03);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--acc-transition), background var(--acc-transition);
}

.acc-journal-upload:hover {
  border-color: var(--acc-primary-light);
  background: rgba(26, 95, 74, 0.06);
}

.acc-journal-upload i {
  font-size: 1.5rem;
  color: var(--acc-primary);
}

.acc-journal-upload small {
  color: var(--acc-text-muted);
  font-size: 0.78rem;
}

.acc-journal-photo-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.acc-journal-photo-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--acc-radius-xs);
  overflow: hidden;
}

.acc-journal-photo-slot.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 1.5px dashed var(--acc-border);
  background: rgba(26, 95, 74, 0.03);
  color: var(--acc-primary);
  cursor: pointer;
  transition: border-color var(--acc-transition), background var(--acc-transition);
}

.acc-journal-photo-slot.empty:hover {
  border-color: var(--acc-primary-light);
  background: rgba(26, 95, 74, 0.06);
}

.acc-journal-photo-slot.empty i {
  font-size: 1.25rem;
}

.acc-journal-photo-slot.empty span {
  color: var(--acc-text-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.acc-journal-photo-slot.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acc-journal-photo-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
}

.acc-journal-upload-preview,
.acc-journal-existing-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.acc-journal-view-gallery-wrap {
  margin-top: 0.25rem;
}

.acc-journal-slider {
  position: relative;
  border-radius: var(--acc-radius);
  overflow: hidden;
  background: #0f1f19;
  border: 1px solid rgba(26, 95, 74, 0.15);
}

.acc-journal-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.acc-journal-slider-track::-webkit-scrollbar {
  display: none;
}

.acc-journal-slider-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1f19;
}

.acc-journal-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.acc-journal-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--acc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--acc-shadow-sm);
  transition: opacity var(--acc-transition), transform var(--acc-transition);
}

.acc-journal-slider-nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.04);
}

.acc-journal-slider-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.acc-journal-slider-nav.prev {
  left: 0.65rem;
}

.acc-journal-slider-nav.next {
  right: 0.65rem;
}

.acc-journal-slider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem 0.7rem;
  background: rgba(255, 255, 255, 0.96);
}

.acc-journal-slider-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.acc-journal-slider-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(26, 95, 74, 0.25);
  transition: width var(--acc-transition), background var(--acc-transition);
}

.acc-journal-slider-dot.active {
  width: 1.1rem;
  background: var(--acc-primary);
}

.acc-journal-slider-count {
  font-size: 0.78rem;
  color: var(--acc-text-muted);
  white-space: nowrap;
}

.acc-journal-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--acc-text-muted);
}

.acc-journal-view-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.acc-journal-view-content {
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 0.95rem;
  color: var(--acc-text);
}

.journal-card {
  transition: transform var(--acc-transition), box-shadow var(--acc-transition);
}

.journal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--acc-shadow);
}

.journal-card img {
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--acc-radius-xs);
}

.journal-card-thumb {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--acc-radius-xs);
}

.acc-journal-upload-thumb,
.acc-journal-existing-photo {
  width: 84px;
  height: 64px;
  border-radius: var(--acc-radius-xs);
  overflow: hidden;
  flex-shrink: 0;
}

.acc-journal-upload-thumb img,
.acc-journal-existing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Map (shared) ── */
.acc-map-marker {
  background: transparent;
  border: none;
}

.acc-map-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.acc-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.acc-map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--acc-text-muted);
}

.acc-map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* ── Profile ── */
.acc-profile-avatar-wrap {
  position: relative;
  display: inline-block;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
}

.acc-profile-avatar-wrap:focus-visible {
  outline: 2px solid var(--acc-primary-light);
  outline-offset: 4px;
}

.acc-profile-avatar-wrap img {
  border: 4px solid var(--acc-border-light);
  box-shadow: var(--acc-shadow);
  display: block;
}

.acc-profile-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(15, 31, 25, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  opacity: 0;
  transition: opacity var(--acc-transition);
}

.acc-profile-avatar-wrap:hover .acc-profile-avatar-overlay,
.acc-profile-avatar-wrap:focus-visible .acc-profile-avatar-overlay {
  opacity: 1;
}

.acc-profile-avatar-badge {
  position: absolute;
  right: 0.15rem;
  bottom: 0.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--acc-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.acc-profile-avatar-wrap.is-uploading {
  cursor: wait;
  pointer-events: none;
}

.acc-profile-avatar-wrap.is-uploading .acc-profile-avatar-overlay {
  opacity: 1;
  background: rgba(15, 31, 25, 0.55);
}

.acc-profile-avatar-wrap.is-uploading .acc-profile-avatar-overlay i {
  display: none;
}

.acc-profile-avatar-wrap.is-uploading .acc-profile-avatar-overlay::after {
  content: '';
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: accSpin 0.7s linear infinite;
}

@media (hover: hover) {
  .acc-profile-avatar-badge {
    display: none;
  }
}

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

.acc-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(26, 95, 74, 0.08);
  color: var(--acc-primary);
}

/* ── Tables (admin) ── */
.acc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.acc-table {
  width: 100%;
  margin: 0;
  font-size: 0.875rem;
}

.acc-table thead th {
  background: var(--acc-surface-hover);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--acc-text-muted);
  border-bottom: 2px solid var(--acc-border);
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.acc-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--acc-border-light);
}

.acc-table tbody tr:hover {
  background: var(--acc-surface-hover);
}

.acc-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Modals ── */
.modal-backdrop.show {
  opacity: 0.35;
  backdrop-filter: blur(2px);
}

.modal-content {
  border: 1px solid var(--acc-border-light);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow-lg);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--acc-border-light);
  padding: 1.15rem 1.25rem;
  background: var(--acc-surface-hover);
}

.modal-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--acc-text);
  letter-spacing: -0.01em;
}

.modal-header .btn-close {
  opacity: 0.55;
  box-shadow: none;
}

.modal-header .btn-close:hover {
  opacity: 0.85;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  border-top: 1px solid var(--acc-border-light);
  padding: 0.85rem 1.25rem;
  background: var(--acc-surface-hover);
  gap: 0.5rem;
}

.modal-footer .btn {
  min-width: 5.5rem;
}

/* ── SweetAlert2 (ACC theme) ── */
.acc-swal-container {
  font-family: var(--acc-font);
}

.acc-swal-popup {
  border-radius: var(--acc-radius) !important;
  padding: 1.5rem 1.35rem 1.25rem !important;
  box-shadow: var(--acc-shadow-lg) !important;
  border: 1px solid var(--acc-border-light);
  width: min(92vw, 24rem) !important;
}

.acc-swal-popup.swal2-icon-success,
.acc-swal-popup.swal2-icon-error,
.acc-swal-popup.swal2-icon-warning,
.acc-swal-popup.swal2-icon-question {
  width: min(92vw, 26rem) !important;
}

.acc-swal-title {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: var(--acc-text) !important;
  letter-spacing: -0.01em;
  padding: 0 !important;
}

.acc-swal-text {
  font-size: 0.925rem !important;
  color: var(--acc-text-muted) !important;
  line-height: 1.55 !important;
}

.acc-swal-actions {
  gap: 0.5rem !important;
  margin-top: 1.25rem !important;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.acc-swal-btn {
  min-width: 6.5rem;
  margin: 0 !important;
  padding: 0.5rem 1.1rem !important;
  font-weight: 500;
}

.acc-swal-actions .btn-danger {
  background: var(--acc-danger);
  border-color: var(--acc-danger);
  color: #fff;
}

.acc-swal-actions .btn-danger:hover {
  background: #c82333;
  border-color: #bd2130;
  color: #fff;
}

.acc-swal-input {
  margin: 0.75rem 0 0 !important;
  width: 100% !important;
  border-radius: var(--acc-radius-xs) !important;
  border-color: var(--acc-border) !important;
  font-family: var(--acc-font) !important;
}

.acc-swal-input:focus {
  border-color: var(--acc-primary-light) !important;
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.12) !important;
}

.acc-swal-validation {
  font-size: 0.8rem;
  color: var(--acc-danger);
}

.swal2-icon {
  margin: 0.25rem auto 0.85rem !important;
  transform: scale(0.9);
}

.swal2-icon.swal2-success {
  border-color: var(--acc-success) !important;
  color: var(--acc-success) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: var(--acc-success) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(34, 160, 107, 0.3) !important;
}

.swal2-icon.swal2-error {
  border-color: var(--acc-danger) !important;
  color: var(--acc-danger) !important;
}

.swal2-icon.swal2-warning {
  border-color: var(--acc-warning) !important;
  color: var(--acc-warning) !important;
}

.swal2-icon.swal2-question {
  border-color: var(--acc-primary) !important;
  color: var(--acc-primary) !important;
}

.swal2-timer-progress-bar {
  background: var(--acc-primary-light) !important;
}

.swal2-backdrop-show {
  backdrop-filter: blur(3px);
}

@media (max-width: 575.98px) {
  .acc-swal-popup {
    padding: 1.25rem 1.1rem 1.1rem !important;
  }

  .acc-swal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .acc-swal-btn {
    width: 100%;
    min-width: 0;
  }

  .modal-dialog {
    margin: 0.75rem;
  }
}

/* ── Empty & loading states ── */
.acc-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--acc-text-muted);
}

.acc-empty-state i {
  font-size: 2.5rem;
  color: var(--acc-border);
  margin-bottom: 1rem;
  display: block;
}

.acc-empty-state h6 {
  font-weight: 600;
  color: var(--acc-text);
  margin-bottom: 0.35rem;
}

.acc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem;
  color: var(--acc-text-muted);
}

/* ── Badges ── */
.badge-acc {
  font-weight: 500;
  font-size: 0.72rem;
  padding: 0.3em 0.65em;
  border-radius: 100px;
}

.badge-np {
  background: rgba(196, 92, 62, 0.12);
  color: var(--acc-accent);
}

/* ── Check-in ── */
.acc-checkin-card {
  max-width: 480px;
  margin: 0 auto;
}

.acc-info-box {
  background: rgba(13, 110, 253, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.15);
  border-radius: var(--acc-radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #0a58ca;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.acc-location-status {
  padding: 0.75rem 1rem;
  background: var(--acc-surface-hover);
  border-radius: var(--acc-radius-xs);
  font-size: 0.875rem;
}

.acc-checkin-switch .form-check-input {
  cursor: pointer;
}

.acc-checkin-switch .form-check-label {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.acc-checkin-backdated {
  padding: 0.85rem 1rem;
  background: var(--acc-surface-hover);
  border: 1px solid var(--acc-border-light);
  border-radius: var(--acc-radius-sm);
}

.acc-checkin-datetime-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0.75rem;
  align-items: end;
}

.acc-checkin-date-field {
  position: relative;
}

.acc-checkin-date-icon,
.acc-checkin-time-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--acc-text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 2;
}

.acc-checkin-date-field .acc-date-picker-trigger {
  padding-left: 2.35rem;
}

.acc-checkin-time-field {
  position: relative;
}

.acc-checkin-time-field .acc-time-picker-trigger {
  padding-left: 2.35rem;
}

@media (max-width: 575.98px) {
  .acc-checkin-datetime-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

/* ── Utilities ── */
.text-acc-primary { color: var(--acc-primary); }
.text-acc-muted { color: var(--acc-text-muted); }
.text-acc-secondary { color: var(--acc-secondary); }

.acc-gradient-bg {
  background: linear-gradient(135deg, var(--acc-primary-dark) 0%, var(--acc-primary) 50%, var(--acc-primary-light) 100%);
}

.gap-section { margin-bottom: 1.5rem; }

.acc-filter-bar .input-group-text {
  border-color: var(--acc-border);
  background: var(--acc-surface);
  color: var(--acc-text-muted);
  border-radius: var(--acc-radius-xs) 0 0 var(--acc-radius-xs);
}

.acc-filter-bar .input-group .form-control {
  border-radius: 0 var(--acc-radius-xs) var(--acc-radius-xs) 0;
}

.acc-filter-bar .input-group .form-control:focus {
  box-shadow: none;
}

.acc-filter-bar .input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.12);
  border-radius: var(--acc-radius-xs);
}

/* ── Mobile bottom navigation ── */
.acc-bottomnav {
  display: none;
}

@media (max-width: 991.98px) {
  .acc-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--acc-border-light);
    box-shadow: 0 -6px 24px rgba(15, 61, 48, 0.08);
  }

  .acc-bottomnav-item {
    flex: 1 1 0;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--acc-text-muted);
    font-family: var(--acc-font);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 7px 2px 5px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--acc-transition), background var(--acc-transition);
    -webkit-tap-highlight-color: transparent;
  }

  .acc-bottomnav-item i {
    font-size: 1.3rem;
    line-height: 1;
  }

  .acc-bottomnav-item span {
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .acc-bottomnav-item.active {
    color: var(--acc-primary);
  }

  .acc-bottomnav-item.active i {
    transform: translateY(-1px);
  }

  .acc-bottomnav-item:active {
    background: var(--acc-surface-hover);
  }
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .acc-sidebar {
    transform: translateX(-100%);
    pointer-events: none;
    visibility: hidden;
  }

  .acc-sidebar.show {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }

  .acc-sidebar-overlay:not(.show) {
    pointer-events: none;
  }

  .acc-main {
    margin-left: 0;
    padding: 1rem 1rem calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .acc-menu-btn {
    display: flex;
  }

  .acc-topbar {
    top: 0;
    border-radius: var(--acc-radius-sm);
    margin-bottom: 1.25rem;
  }

  .acc-topbar-date span {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .acc-stat-card {
    padding: 1rem;
  }

  .acc-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .acc-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .acc-page-header .btn {
    width: 100%;
  }

  .acc-filter-bar .row > [class*="col"] {
    margin-bottom: 0.25rem;
  }

  .acc-place-card-actions .btn {
    flex: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Accessibility & polish ── */
:focus-visible {
  outline: 2px solid var(--acc-primary-light);
  outline-offset: 2px;
  border-radius: var(--acc-radius-xs);
}

.acc-nav-link:focus-visible,
.acc-bottomnav-item:focus-visible {
  outline-offset: -2px;
}

/* Custom scrollbar (desktop) */
@media (pointer: fine) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--acc-border) transparent;
  }

  *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  *::-webkit-scrollbar-thumb {
    background: var(--acc-border);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
  }

  *::-webkit-scrollbar-thumb:hover {
    background: var(--acc-primary-light);
    background-clip: content-box;
  }

  *::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* Gentle entrance for main content cards */
@media (prefers-reduced-motion: no-preference) {
  .acc-main > .row,
  .acc-main > .acc-card:not(.acc-map-card),
  .acc-main > .acc-page-header {
    animation: accFadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
}

@keyframes accFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
