/* Sol og Strand Guest Portal - Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #27a799;
  --primary-dark: #1e8a7e;
  --primary-light: #e8f5f3;
  --accent: #f2cb68;
  --accent-dark: #e0b94e;
  --accent-light: #fdf6e3;
  --destructive: #e53e3e;
  --destructive-light: #fff5f5;
  --bg: #f8f9fb;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --sidebar-width: 260px;
  --sidebar-collapsed: 64px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px 40px;
  max-width: 1200px;
  transition: margin-left 0.3s ease;
}

@media (max-width: 1024px) {
  .main-content { margin-left: 0; padding: 24px 20px; }
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.3s ease;
}

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

.sidebar-header img {
  height: 32px;
  width: auto;
}

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-user .name { font-weight: 600; font-size: 14px; }
.sidebar-user .welcome { font-size: 12px; color: var(--text-muted); }
.sidebar-user .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-section-label {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px;
}

.sidebar-nav ul { list-style: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 450;
  transition: all 0.15s ease;
  margin-bottom: 1px;
}

.nav-link:hover { background: var(--bg); }

.nav-link.active {
  background: var(--primary);
  color: white;
  font-weight: 500;
}

.nav-link.highlighted {
  background: var(--bg);
  font-weight: 500;
}

.nav-link.highlighted.active {
  background: var(--primary);
  color: white;
}

.nav-link svg, .nav-link i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-link .chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.15s;
}

.nav-link:hover .chevron { opacity: 0.4; }
.nav-link.active .chevron { opacity: 0.6; }

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

/* Mobile sidebar toggle */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  z-index: 40;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.mobile-header img { height: 28px; }

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-xs);
  color: var(--text);
}

.hamburger:hover { background: var(--bg); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 45;
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .mobile-header { display: flex; }
  .main-content { margin-left: 0; padding-top: 72px; }
}

/* ===== PAGE HEADERS ===== */
.page-header {
  margin-bottom: 32px;
}

.page-header .greeting {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.card:hover { box-shadow: var(--shadow-md); }
.card-no-hover:hover { box-shadow: none; }

.card-body { padding: 20px; }
.card-body-lg { padding: 24px; }

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-card .icon {
  width: 20px;
  height: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.stat-card .value {
  font-size: 28px;
  font-weight: 700;
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 17px;
  font-weight: 600;
}

.section-header a {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-header a:hover { text-decoration: underline; }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }

.btn-accent {
  background: var(--accent);
  color: var(--text);
}
.btn-accent:hover { background: var(--accent-dark); }

.btn-danger {
  background: var(--destructive);
  color: white;
}
.btn-danger:hover { background: #c53030; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== HOUSE CARDS ===== */
.house-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.house-card .image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.house-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.house-card:hover .image-wrap img { transform: scale(1.05); }

.house-card .favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.house-card .favorite-btn.active {
  background: white;
  color: #e53e3e;
  box-shadow: 0 1px 4px rgba(229,62,62,0.25);
}

.house-card .favorite-btn:hover {
  color: #e53e3e;
}

.house-card .badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
}

.house-card .badge-overlay span {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}

.house-card .features-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.house-card .features-overlay span {
  background: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

.house-card .content { padding: 14px 16px; }

.house-card .title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.house-card .title-row h3 {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.house-card .rating {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
}

.house-card .rating svg { color: var(--accent); fill: var(--accent); width: 15px; height: 15px; }

.house-card .location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.house-card .location svg { width: 14px; height: 14px; }

.house-card .house-id { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.house-card .dates { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }

.house-card .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.house-card .amenities {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.house-card .amenities span { display: flex; align-items: center; gap: 4px; }
.house-card .amenities svg { width: 16px; height: 16px; }

.house-card .price { text-align: right; }
.house-card .price .amount { font-weight: 600; font-size: 15px; }
.house-card .price .unit { font-size: 12px; color: var(--text-muted); }

.house-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.house-card .actions .btn { flex: 1; justify-content: center; }

/* ===== ACTION CARDS ===== */
.action-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}

.action-card:hover { border-color: rgba(39,167,153,0.2); box-shadow: var(--shadow-sm); }

.action-card.locked { background: var(--bg); opacity: 0.6; }

.action-card .icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-card .icon-wrap {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-card.locked .icon-wrap { color: var(--text-muted); }

.action-card .icon-title h4 { font-size: 13.5px; font-weight: 600; }

.action-card .icon-title .badge-sm {
  font-size: 11px;
  background: var(--bg);
  color: var(--text-muted);
  padding: 1px 8px;
  border-radius: 100px;
  font-weight: 500;
  margin-left: 6px;
}

.action-card .desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.action-card .action-btns { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }

/* ===== UPCOMING STAY ===== */
.stay-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stay-card .top {
  display: flex;
}

.stay-card .stay-image {
  width: 300px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

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

.stay-card .days-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26,26,46,0.8);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.stay-card .stay-info { flex: 1; padding: 20px 24px; }

.stay-card .stay-info h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }

.stay-card .stay-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.stay-card .stay-meta svg { width: 15px; height: 15px; }

.stay-card .stay-meta .house-tag {
  font-size: 12px;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.stay-card .bureau {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}

.stay-card .bureau svg { color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.stay-card .bureau .bureau-name { font-size: 13px; font-weight: 500; }
.stay-card .bureau .bureau-phone { font-size: 12px; color: var(--text-muted); }
.stay-card .bureau a { color: var(--text-muted); text-decoration: none; }
.stay-card .bureau a:hover { color: var(--primary); }

.stay-card .dates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stay-card .date-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.stay-card .date-box .label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.stay-card .date-box .date { font-size: 14px; font-weight: 600; }
.stay-card .date-box .time { font-size: 13px; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.stay-card .date-box .time svg { width: 14px; height: 14px; }

.stay-card .side-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  min-width: 200px;
}

.stay-card .payment-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  width: 100%;
}

.stay-card .payment-status.paid {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(39,167,153,0.2);
}

.stay-card .payment-status.unpaid {
  background: var(--destructive-light);
  color: var(--destructive);
  border: 1px solid rgba(229,62,62,0.2);
}

.stay-card .payment-status svg { width: 16px; height: 16px; }

.stay-card .expand-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}

.stay-card .expand-btn:hover { background: var(--bg); color: var(--text); }

.stay-card .details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 24px;
}

@media (max-width: 768px) {
  .stay-card .top { flex-direction: column; }
  .stay-card .stay-image { width: 100%; aspect-ratio: 16/9; }
  .stay-card .details-grid { grid-template-columns: repeat(2, 1fr); }
  .stay-card .side-actions { align-items: stretch; min-width: auto; }
}

@media (max-width: 480px) {
  .stay-card .details-grid { grid-template-columns: 1fr; }
}

/* ===== RECOMMENDATION CARDS ===== */
.rec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
  cursor: pointer;
}

.rec-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.rec-card .rec-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rec-card .rec-icon svg { width: 20px; height: 20px; }

.rec-card .rec-content { flex: 1; }
.rec-card .rec-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.rec-card .rec-content p { font-size: 12px; color: var(--text-muted); }

.rec-card .rec-count {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== BENEFIT CARDS ===== */
.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all 0.2s;
}

.benefit-card:hover { border-color: rgba(39,167,153,0.2); box-shadow: var(--shadow-sm); }

.benefit-card .benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.benefit-card .benefit-icon svg { width: 18px; height: 18px; }

.benefit-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.benefit-card p { font-size: 12.5px; color: var(--text-muted); }

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.15s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(39,167,153,0.1);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle-slider {
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 100px;
  transition: background 0.2s;
  position: relative;
}

.toggle-slider::after {
  content: '';
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle input:checked + .toggle-slider::after {
  transform: translateX(18px);
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 8px 18px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-muted);
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== MESSAGE LIST ===== */
.message-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.message-item:hover { background: var(--bg); }
.message-item.unread { background: var(--primary-light); }

.message-item .msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.message-item .msg-content { flex: 1; min-width: 0; }
.message-item .msg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.message-item .msg-sender { font-size: 14px; font-weight: 600; }
.message-item .msg-time { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.message-item .msg-subject { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.message-item .msg-preview { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-item .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; align-self: center; }

/* ===== REVIEW CARDS ===== */
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.review-card .review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-card .stars { display: flex; gap: 2px; }
.review-card .stars svg { width: 16px; height: 16px; color: var(--accent); fill: var(--accent); }
.review-card .stars svg.empty { fill: none; color: var(--border); }

.review-card .review-date { font-size: 12px; color: var(--text-muted); }
.review-card .review-house { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.review-card .review-location { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.review-card .review-text { font-size: 13.5px; line-height: 1.6; color: var(--text); }

/* ===== FILTER PILLS ===== */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-pill {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  font-weight: 450;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
}

.filter-pill:hover { border-color: var(--primary); }

.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== TIER BADGES ===== */
.tier-basic { background: #f1f5f9; color: #64748b; }
.tier-silver { background: #f1f5f9; color: #94a3b8; }
.tier-gold { background: #fef3c7; color: #d97706; }
.tier-platinum { background: #ede9fe; color: #7c3aed; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5f3 0%, #f8f9fb 50%, #fdf6e3 100%);
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo img { height: 40px; }
.login-logo p { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.login-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }
.login-footer a:hover { text-decoration: underline; }

/* ===== PARTNER CARDS ===== */
.partner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}

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

.partner-card .partner-image {
  height: 140px;
  overflow: hidden;
  position: relative;
}

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

.partner-card .discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.partner-card .partner-content { padding: 14px 16px; }
.partner-card .partner-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.partner-card .partner-category { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.partner-card .partner-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.partner-card .partner-valid { font-size: 11px; color: var(--text-light); margin-top: 8px; }

/* ===== ARRIVAL FOLDER ===== */
.info-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.info-section .info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.info-section .info-header:hover { background: var(--bg); }

.info-section .info-header .info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-section .info-header .info-icon svg { width: 18px; height: 18px; }

.info-section .info-header h3 { font-size: 15px; font-weight: 600; flex: 1; }

.info-section .info-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child { border-bottom: none; }
.info-row .info-label { font-size: 13px; color: var(--text-muted); }
.info-row .info-value { font-size: 14px; font-weight: 500; }
.info-row .info-value.code { font-family: 'Courier New', monospace; font-size: 18px; letter-spacing: 2px; color: var(--primary); font-weight: 700; }

/* ===== MISC ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent { background: var(--accent-light); color: var(--accent-dark); }
.badge-muted { background: var(--bg); color: var(--text-muted); }

.divider { height: 1px; background: var(--border); margin: 24px 0; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* Service pricing row */
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.service-row:last-child { border-bottom: none; }

.service-info { display: flex; align-items: center; gap: 14px; flex: 1; }
.service-info .service-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-info .service-icon svg { width: 20px; height: 20px; }
.service-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.service-info p { font-size: 12px; color: var(--text-muted); }

.service-price {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-price .price-amount { font-size: 16px; font-weight: 600; white-space: nowrap; }

/* ===== CONTACT CARDS ===== */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

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

.contact-card .contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.contact-card .contact-icon svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.contact-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.contact-card .contact-detail {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.contact-card .contact-detail:hover { text-decoration: underline; }

/* Emergency card */
.emergency-card {
  background: var(--destructive-light);
  border: 1px solid rgba(229,62,62,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.emergency-card .emergency-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--destructive);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emergency-card .emergency-icon svg { width: 22px; height: 22px; }
.emergency-card h4 { font-size: 15px; font-weight: 600; color: var(--destructive); margin-bottom: 2px; }
.emergency-card p { font-size: 13px; color: var(--text-muted); }
.emergency-card a { font-size: 18px; font-weight: 700; color: var(--destructive); text-decoration: none; margin-left: auto; white-space: nowrap; }
.emergency-card a:hover { text-decoration: underline; }

/* ===== DASHBOARD HERO ===== */
.dashboard-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff9ee 60%, var(--accent-light) 100%);
  border: 1px solid rgba(39,167,153,0.15);
  border-radius: var(--radius);
  padding: 28px 32px 20px;
  margin-bottom: 28px;
}

.dashboard-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.dashboard-hero .greeting {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.dashboard-hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.dashboard-hero .subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.dashboard-hero-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.tier-badge-large {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
}

.tier-badge-large svg { color: var(--accent-dark); width: 20px; height: 20px; }

.tier-badge-large .tier-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1;
}

.tier-badge-large .tier-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.2;
}

.days-to-holiday {
  text-align: center;
  background: white;
  border: 1px solid rgba(39,167,153,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
}

.days-to-holiday .days-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.days-to-holiday .days-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tier-progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tier-progress-bar-wrap .tier-progress-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Stat card color variants */
.stat-card-teal .icon { color: var(--primary); }
.stat-card-teal .value { color: var(--primary); }
.stat-card-gold .icon { color: var(--accent-dark); }
.stat-card-gold .value { color: var(--accent-dark); }
.stat-card-primary .icon { color: var(--primary); }
.stat-card-primary .value { color: var(--primary); }
.stat-card-muted .icon { color: var(--text-muted); }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: var(--primary);
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* ===== TIER TABLE ===== */
.tier-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.tier-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
}

.tier-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.tier-table tr:hover td { background: var(--bg); }

.tier-table .check { color: var(--primary); font-weight: 600; }
.tier-table .dash { color: var(--text-light); }
