/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
  --font-thai: 'Kanit', sans-serif;
  --font-eng: 'Outfit', sans-serif;

  /* Colors - Bright Medical Style */
  --bg-gradient: linear-gradient(135deg, #04b0ffd0 0%, #a8d9fa 100%);
  --panel-bg: rgba(3, 243, 183, 0.753);
  --panel-bg-solid: #2e9efa;
  --panel-border: rgba(2, 132, 199, 0.12);
  --panel-border-glow: rgba(2, 132, 199, 0.25);

  --primary: #0284c7;
  /* Medical Sky Blue */
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.3);
  --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);

  --accent-teal: #0d9488;
  /* Clinical Teal */
  --accent-teal-glow: rgba(13, 148, 136, 0.2);

  --text-main: #0f172a;
  /* Dark Slate for readability */
  --text-muted: #64748b;
  /* Slate Muted */
  --text-dark: #ffffff;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.2);

  /* Layout Constants */
  --header-height: 64px;
  --nav-height: 72px;
  --max-width: 480px;
  /* Mobile frame size on desktop */
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elastic: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-thai);
  background-color: #f1f5f9;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   APP FRAME CONTAINER (Simulates Mobile on Desktop)
   ========================================================================== */
.app-container {
  width: 100%;
  max-width: var(--max-width);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-gradient);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

@media (max-width: 480px) {
  body {
    display: block;
    /* Disable flex centering on mobile screens */
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .app-container {
    height: 100dvh;
    /* Use Dynamic Viewport Height on mobile */
    max-height: 100dvh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Add a elegant phone bezel border on desktop screens */
@media (min-width: 481px) {
  body {
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
  }

  .app-container {
    height: 92vh;
    max-height: 850px;
    border-radius: 40px;
    border: 8px solid #2d3748;
    overflow: hidden;
  }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.app-header {
  height: var(--header-height);
  background: rgba(0, 255, 200, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 20px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  color: var(--primary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.brand-text h1 {
  font-family: var(--font-eng);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  line-height: 1;
  color: #fff;
}

.sub-brand {
  font-family: var(--font-eng);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--primary);
  font-weight: 700;
}

.profile-peek-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.profile-peek-btn:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.profile-peek-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   APP NAVIGATION (BOTTOM BAR)
   ========================================================================== */
.app-nav {
  height: var(--nav-height);
  background: rgba(0, 255, 200, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--panel-border);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 10px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  /* Support safe-area insets at the bottom of the device */
  box-sizing: content-box;
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-thai);
  cursor: pointer;
  gap: 5px;
  transition: var(--transition-smooth);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  transition: var(--transition-smooth);
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 500;
}

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

.nav-item.active svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* ==========================================================================
   MAIN CONTENT & PAGES VIEWS
   ========================================================================== */
.app-content {
  flex: 1;
  margin-top: var(--header-height);
  margin-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  position: relative;
  /* Hide scrollbar */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.app-content::-webkit-scrollbar {
  display: none;
  /* Safari/Chrome */
}

.app-view {
  display: none;
  flex-direction: column;
  padding: 20px;
  min-height: 100%;
}

.app-view.active {
  display: flex;
}

/* VIEW TRANSITIONS */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-view.active {
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* View Headers (Internal Page Titles) */
.view-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}

.back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
  border-color: var(--primary-glow);
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

.view-title h2 {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
}

.step-indicator {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.view-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   COMPONENTS: BUTTONS
   ========================================================================== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-thai);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-dark);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--primary-hover);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-primary:disabled {
  background: #374151;
  color: #6b7280;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

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

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 8px 20px var(--danger-glow);
  transform: translateY(-2px);
}

.btn-glowing {
  box-shadow: 0 4px 15px var(--primary-glow);
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-family: var(--font-thai);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   VIEW: HOME STYLING
   ========================================================================== */
.hero-banner {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 200px;
  margin-bottom: 20px;
  border: 1px solid var(--panel-border);
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(9, 14, 26, 0.9) 25%, rgba(9, 14, 26, 0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.hero-overlay .badge {
  align-self: flex-start;
  background: var(--primary);
  color: var(--text-dark);
  font-family: var(--font-eng);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.hero-overlay h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 4px;
}

.hero-overlay p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.stat-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-icon {
  color: var(--primary);
  margin-bottom: 6px;
}

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

.stat-info h4 {
  font-size: 0.85rem;
  color: #fff;
  font-family: var(--font-eng);
  margin-bottom: 2px;
}

.stat-info p {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.cta-section {
  margin-bottom: 24px;
}

.section-container {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* Stylist previews scroll */
.stylist-preview-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.stylist-preview-scroll::-webkit-scrollbar {
  display: none;
}

.stylist-preview-card {
  flex: 0 0 110px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
}

.stylist-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-glow);
}

.stylist-preview-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--panel-border);
  margin-bottom: 8px;
}

.stylist-preview-card.active-selection {
  border-color: var(--primary);
}

.stylist-preview-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.stylist-preview-role {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  color: var(--primary);
  font-family: var(--font-eng);
}

.rating-row svg {
  width: 10px;
  height: 10px;
  fill: var(--primary);
}

/* Service preview list */
.service-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.service-preview-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.service-preview-card:hover {
  border-color: var(--panel-border-glow);
  transform: translateX(4px);
}

.service-preview-left h4 {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 4px;
}

.service-preview-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.service-preview-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-preview-meta svg {
  width: 12px;
  height: 12px;
}

.service-preview-price {
  font-family: var(--font-eng);
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  margin: 20px auto;
}

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

/* ==========================================================================
   VIEW: SERVICE SELECTION
   ========================================================================== */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-thai);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-muted);
}

.category-tab.active {
  background: var(--primary-gradient);
  color: var(--text-dark);
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--panel-border-glow);
  transform: translateY(-2px);
}

.service-card.selected {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.service-info {
  flex: 1;
  padding-right: 12px;
}

.service-info h3 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

.service-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-meta-tags {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.service-meta-tags span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-meta-tags svg {
  width: 12px;
  height: 12px;
}

.service-action {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.service-price {
  font-family: var(--font-eng);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-select-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.service-card.selected .btn-select-indicator {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--text-dark);
}

.btn-select-indicator svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card.selected .btn-select-indicator svg {
  opacity: 1;
}

/* ==========================================================================
   VIEW: STYLIST SELECTION
   ========================================================================== */
.stylist-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stylist-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.stylist-card:hover {
  border-color: var(--panel-border-glow);
  transform: translateY(-2px);
}

.stylist-card.selected {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stylist-avatar-container {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--panel-border);
  flex-shrink: 0;
}

.stylist-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stylist-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.stylist-avatar-placeholder svg {
  width: 28px;
  height: 28px;
}

.stylist-card.selected .stylist-avatar-container {
  border-color: var(--primary);
}

.stylist-details {
  flex: 1;
}

.stylist-details h3 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.stylist-specialty {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stylist-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-badge {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-eng);
}

.select-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.stylist-card.selected .select-indicator {
  border-color: var(--primary);
  background: var(--primary);
}

.stylist-card.selected .select-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--text-dark);
  border-radius: 50%;
}

.no-preference-card {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.01);
}

/* ==========================================================================
   VIEW: DATE & TIME PICKER
   ========================================================================== */
.datetime-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 80px;
  /* Spacer for sticky button */
}

.section-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-selector-container {
  width: 100%;
}

/* Horizontal calendar slider */
.calendar-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
}

.calendar-date-card {
  flex: 0 0 65px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.calendar-date-card:hover {
  border-color: var(--panel-border-glow);
  transform: translateY(-2px);
}

.calendar-date-card.selected {
  background: var(--primary-gradient);
  border-color: var(--primary);
  color: var(--text-dark);
  box-shadow: 0 8px 16px var(--primary-glow);
}

.calendar-date-card.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}

.calendar-date-card.disabled .date-num {
  text-decoration: line-through;
  color: var(--text-muted);
}


.date-day-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.calendar-date-card.selected .date-day-name {
  color: rgba(11, 15, 25, 0.7);
  font-weight: 700;
}

.date-num {
  font-family: var(--font-eng);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.calendar-date-card.selected .date-num {
  color: var(--text-dark);
}

.time-period-group {
  margin-bottom: 16px;
}

.period-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-slot {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: #fff;
  padding: 10px 0;
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-family: var(--font-eng);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.time-slot:hover:not(.disabled):not(.selected) {
  border-color: var(--primary-glow);
  background: rgba(255, 255, 255, 0.03);
}

.time-slot.selected {
  background: var(--primary-gradient);
  border-color: var(--primary);
  color: var(--text-dark);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.time-slot.disabled {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.15);
  cursor: not-allowed;
  text-decoration: line-through;
}

.sticky-footer-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  background: linear-gradient(0deg, rgba(9, 14, 26, 1) 75%, rgba(9, 14, 26, 0) 100%);
  z-index: 90;
}

/* ==========================================================================
   VIEW: CONFIRMATION & DETAILS FORM
   ========================================================================== */
.details-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 90px;
}

.summary-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
}

.summary-card h3 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 600;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.summary-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.summary-value {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
  text-align: right;
}

.highlight-value {
  color: var(--primary);
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 6px 0;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.required {
  color: var(--danger);
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

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

.input-wrapper input,
.form-group textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-thai);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.input-wrapper input {
  padding-left: 42px;
}

.input-wrapper input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
}

.form-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

/* Force light clinical theme colors on all input/select elements, overriding inline styles */
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="password"],
select,
textarea {
  background-color: #f8fafc !important;
  color: var(--text-main) !important;
  border: 1px solid var(--panel-border) !important;
}

select option {
  background-color: #ffffff !important;
  color: var(--text-main) !important;
}

/* Light theme support for custom inline style containers */
div[style*="background: rgba(9, 14, 26"] {
  background-color: #f8fafc !important;
}


/* ==========================================================================
   VIEW: BOOKING SUCCESS (TICKET STUB)
   ========================================================================== */
.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 30px;
}

.success-animation {
  width: 70px;
  height: 70px;
  position: relative;
  margin-bottom: 16px;
}

.success-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(16, 185, 129, 0.2);
  border-top-color: var(--success);
  animation: spin 1.5s linear infinite;
}

.checkmark-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--success);
}

.checkmark-icon svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

.success-title {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 85%;
  margin-bottom: 24px;
}

/* Elegant glass cutout ticket stub */
.booking-ticket {
  background: var(--panel-bg-solid);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  width: 100%;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.ticket-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-brand {
  font-family: var(--font-eng);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.ticket-id {
  font-family: var(--font-eng);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ticket-body {
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ticket-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticket-value {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
}

.ticket-body .highlight-value {
  font-size: 1.1rem;
}

/* Cutout punch hole separator */
.ticket-divider {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.ticket-divider::before {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  height: 1px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.punch-hole {
  width: 20px;
  height: 20px;
  background-color: #030712;
  /* Matches app outer bg */
  border-radius: 50%;
  position: absolute;
  border: 1px solid var(--panel-border);
}

@media (min-width: 481px) {
  .punch-hole {
    background-color: #090e1a;
    /* Matches mobile frame inner bg */
  }
}

.punch-hole.left {
  left: -10px;
  border-right: none;
}

.punch-hole.right {
  right: -10px;
  border-left: none;
}

.ticket-footer {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.01);
}

.qr-code-placeholder {
  width: 100px;
  height: 100px;
  background: #fff;
  padding: 8px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.qr-svg {
  width: 100%;
  height: 100%;
  color: #111827;
}

.ticket-instruction {
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 80%;
  line-height: 1.4;
}

.success-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   VIEW: HISTORY (MY BOOKINGS)
   ========================================================================== */
.history-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  padding: 4px;
  border-radius: 25px;
  margin-bottom: 20px;
}

.history-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-thai);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.history-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.1);
}

.empty-state-icon svg {
  width: 48px;
  height: 48px;
}

.empty-state p {
  font-size: 0.85rem;
}

.booking-item-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: var(--transition-smooth);
}

.booking-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.booking-item-service {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.booking-item-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.booking-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-upcoming {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-teal);
}

.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.booking-item-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.booking-item-stylist {
  color: var(--text-muted);
}

.booking-item-price {
  font-family: var(--font-eng);
  color: var(--primary);
  font-weight: 600;
}

.booking-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-item-cancel {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-family: var(--font-thai);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-item-cancel:hover {
  background: var(--danger);
  color: #fff;
}

/* ==========================================================================
   VIEW: PROFILE / LIFF DEBUGGING
   ========================================================================== */
.profile-header-card {
  background: var(--panel-bg-solid);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

.profile-banner-bg {
  height: 80px;
  background: linear-gradient(135deg, var(--primary-glow) 0%, rgba(9, 14, 26, 0.3) 100%);
}

.profile-card-content {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -40px;
}

.profile-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--panel-bg-solid);
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  background: var(--panel-bg-solid);
  margin-bottom: 12px;
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-content h2 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
}

.profile-card-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
}

.liff-status-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  padding: 4px 10px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.liff-status-badge.online .status-dot {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.status-text {
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-eng);
  color: var(--text-muted);
}

.liff-status-badge.online .status-text {
  color: #fff;
}

.detail-list-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.detail-item-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
}

.detail-item-icon svg {
  width: 20px;
  height: 20px;
}

.detail-item-text {
  flex: 1;
}

.item-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.detail-item-text h4 {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
}

.monospace-text {
  font-family: monospace;
  font-size: 0.75rem !important;
  word-break: break-all;
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   MODAL / CONFIRMATION DIALOG
   ========================================================================== */
.modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-card {
  position: relative;
  background: var(--panel-bg-solid);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.warning-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.warning-icon svg {
  width: 24px;
  height: 24px;
}

.modal-card h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.modal-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.modal-actions button {
  flex: 1;
  padding: 10px;
  font-size: 0.85rem;
}

/* ==========================================================================
   TOAST SYSTEM
   ========================================================================== */
.toast {
  position: absolute;
  bottom: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(17, 25, 40, 0.95);
  border: 1px solid var(--primary);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 150;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
  max-width: 80%;
  width: max-content;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-text {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ==========================================================================
   SERVICE TOGGLES FOR SHOP MANAGERS
   ========================================================================== */
.switch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.switch-item:hover {
  border-color: var(--panel-border-glow);
}

.switch-label {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
  text-align: left;
}

.switch-label span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.switch-control {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  border: 1px solid var(--panel-border);
}

.slider-toggle:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

input:checked+.slider-toggle:before {
  transform: translateX(20px);
  background-color: var(--text-dark);
}

.btn-edit-service,
.btn-delete-service {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-edit-service:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--primary);
  border-color: var(--primary-glow);
  transform: scale(1.05);
}

.btn-delete-service:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-color: var(--danger-glow);
  transform: scale(1.05);
}

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

/* LINE OA Add Friend Success Banner */
.line-add-friend-banner {
  background: rgba(6, 199, 85, 0.08);
  border: 1px dashed rgba(6, 199, 85, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.line-banner-text h4 {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  margin: 0;
}

.line-banner-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 0;
  line-height: 1.4;
}

.btn-line-oa {
  background-color: #06C755;
  color: #fff;
  font-family: var(--font-thai);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  font-size: 0.88rem;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-line-oa:hover {
  background-color: #05b04b;
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
  transform: translateY(-1px);
}

/* Shop Closed Alert Banner styling */
.shop-closed-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.3s ease;
}

.closed-banner-icon {
  color: var(--danger);
  display: flex;
  align-items: center;
}

.closed-banner-icon svg {
  width: 24px;
  height: 24px;
}

.closed-banner-text h4 {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 600;
  margin: 0;
}

.closed-banner-text p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 3px;
  margin-bottom: 0;
  line-height: 1.4;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FULL-SCREEN SHOP CLOSED OVERLAY
   ========================================================================== */
#shop-closed-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(ellipse at 50% 30%, #0d1525 0%, #060a14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: overlayFadeIn 0.5s ease-out;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
    transform: scale(1.03);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.closed-overlay-inner {
  text-align: center;
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: overlaySlideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes overlaySlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.closed-overlay-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.07);
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.08);
  margin-bottom: 4px;
}

.closed-overlay-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--primary);
}

.closed-overlay-brand {
  font-family: var(--font-eng);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin: 0;
}

.closed-overlay-badge {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.closed-overlay-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.closed-overlay-msg {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--border-radius-md);
  width: 100%;
  box-sizing: border-box;
}

.closed-overlay-divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.closed-overlay-footer {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
}

/* Scheduled Date Chips in Manager Panel */
.closed-date-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #f87171;
  font-family: var(--font-eng);
}

.closed-date-chip.today {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  font-weight: 700;
}

.closed-date-chip-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.closed-date-chip-remove {
  background: none;
  border: none;
  color: rgba(248, 113, 113, 0.6);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.closed-date-chip-remove:hover {
  color: #f87171;
}

#add-closed-date-form {
  display: flex !important;
  flex-wrap: wrap;
}





.closed-overlay-content {
  text-align: center;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 48px 32px 32px 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.closed-overlay-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

.closed-badge {
  font-size: 0.7rem;
  color: var(--primary);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--font-eng);
}

.closed-overlay-icon {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, rgba(212, 175, 55, 0.01) 100%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.05);
}

.closed-overlay-content h2 {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 800;
  margin: 0;
  letter-spacing: 1px;
  font-family: var(--font-eng);
}

.closed-overlay-content h3 {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
  font-family: var(--font-thai);
}

.closed-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-family: var(--font-thai);
  font-weight: 400;
}

.reopen-badge-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.reopen-badge-title {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-thai);
}

.reopen-badge-text {
  font-size: 0.88rem;
  color: #fff;
  font-family: var(--font-thai);
  line-height: 1.4;
}

.closed-overlay-admin-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  cursor: pointer;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  font-family: var(--font-thai);
  letter-spacing: 0.5px;
}

.closed-overlay-admin-btn:hover {
  color: var(--primary);
  background: rgba(212, 175, 55, 0.05);
}

/* Admin Live Queue Styles */
.admin-queue-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-smooth);
}

.admin-queue-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-queue-card.cancelled {
  opacity: 0.45;
  border-color: rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.01);
}

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

.admin-queue-time {
  font-family: var(--font-eng);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-queue-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.admin-queue-status-badge.upcoming {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--primary);
}

.admin-queue-status-badge.cancelled {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.admin-queue-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 0;
}

.admin-queue-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-queue-info-lbl {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.admin-queue-info-val {
  color: #fff;
  font-weight: 500;
}

.admin-queue-actions {
  display: flex;
  gap: 8px;
}

.btn-queue-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transition: var(--transition-smooth);
}

.btn-queue-action.remind {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.15);
  color: var(--primary);
}

.btn-queue-action.remind:hover {
  background: var(--primary-gradient);
  color: var(--text-dark);
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-queue-action.noshow {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.btn-queue-action.noshow:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Blacklist UI Styles */
.blacklist-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
}

.blacklist-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blacklist-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.blacklist-meta {
  font-size: 0.72rem;
  color: #f87171;
  font-family: var(--font-eng);
}

.btn-unblock {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-unblock:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}


/* ==========================================================================
   ADMIN DASHBOARD TABS, QUEUE FILTERS & VISUAL SLOT PICKER
   ========================================================================== */
.admin-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding: 4px;
  background: rgba(9, 14, 26, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-sm);
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-tab-btn.active {
  background: var(--primary);
  color: #0b0f19;
  font-weight: 600;
}

.admin-queue-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  align-items: center;
}

.queue-filter-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.queue-filter-chip.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.queue-date-input {
  margin-left: auto;
  background: rgba(9, 14, 26, 0.85);
  border: 1px solid var(--panel-border);
  color: #fff;
  padding: 5px 8px;
  border-radius: 8px;
  font-family: var(--font-eng);
  font-size: 0.75rem;
}

.blocked-slots-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.blocked-slot-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-light);
  font-family: var(--font-eng);
  font-size: 0.75rem;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.blocked-slot-chip.blocked {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
  color: #fca5a5;
  text-decoration: line-through;
}

.btn-queue-action.complete {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.admin-queue-status-badge.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
