/* ===========================
   Jeju Tangerine Diary
   Korean Minimal + Girly Style
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Quicksand:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --orange: #FF9D4D;
  --orange-light: #FFD4A8;
  --orange-pale: #FFF0E6;
  --pink: #FFB5C5;
  --pink-light: #FFE4EC;
  --cream: #FFF9FB;
  --peach: #FFECD2;
  --text-dark: #4A4040;
  --text-mid: #8A7E7E;
  --text-light: #C4B8B8;
  --border: #FEE8D6;
  --card-bg: #FFFFFF;
  --shadow-soft: 0 2px 20px rgba(255, 157, 77, 0.08);
  --shadow-card: 0 4px 24px rgba(255, 157, 77, 0.06);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', 'Noto Sans TC', -apple-system, sans-serif;
  background-color: var(--cream);
  background-image: radial-gradient(#FFEDD5 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  color: var(--text-dark);
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  padding-bottom: 100px;
  overflow-x: hidden;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 0; height: 0; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-fade-in { animation: fadeIn 0.4s ease-out both; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out both; }
.animate-slide-up { animation: slideUp 0.4s ease-out both; }
.animate-scale-in { animation: scaleIn 0.3s ease-out both; }
.animate-bounce-in { animation: bounceIn 0.5s ease-out both; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-wiggle { animation: wiggle 2s ease-in-out infinite; }

/* Staggered children animation */
.stagger-children > * {
  animation: fadeIn 0.4s ease-out both;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }

/* --- Header --- */
.app-header {
  padding: 40px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.app-header h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.5px;
}

.header-deco {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 4px;
}

/* --- Main Container --- */
.main-container {
  padding: 0 20px;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.card + .card {
  margin-top: 14px;
}

.card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin-right: 28px;
}

/* --- Form Elements --- */
.form-field {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--orange-pale);
  padding: 10px 4px;
  font-size: 0.85rem;
  background: transparent;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-field::placeholder {
  color: var(--text-light);
  font-size: 0.82rem;
}

.form-field:focus {
  border-bottom-color: var(--orange);
}

.form-textarea {
  width: 100%;
  border: 1.5px solid var(--orange-pale);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.82rem;
  background: rgba(255,240,230,0.15);
  color: var(--text-dark);
  resize: vertical;
  min-height: 80px;
  transition: var(--transition);
}

.form-textarea::placeholder {
  color: var(--text-light);
}

.form-textarea:focus {
  border-color: var(--orange);
  background: white;
}

/* --- Checklist --- */
.checklist-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  gap: 12px;
  border-bottom: 1px solid rgba(254, 232, 214, 0.4);
  transition: var(--transition);
}

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

.checklist-item input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--orange-light);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.checklist-item input[type="checkbox"]:checked {
  background: var(--orange);
  border-color: var(--orange);
}

.checklist-item input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.checklist-item .item-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-mid);
  transition: var(--transition);
}

.checklist-item .item-text.checked {
  text-decoration: line-through;
  color: var(--text-light);
}

.checklist-item .delete-btn {
  opacity: 0;
  color: var(--pink);
  font-size: 0.8rem;
  transition: var(--transition);
  padding: 4px 8px;
}

.checklist-item:hover .delete-btn { opacity: 1; }

.add-item-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}

.add-item-input {
  flex: 1;
  border: 1.5px dashed var(--orange-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  background: rgba(255,240,230,0.2);
  transition: var(--transition);
}

.add-item-input:focus {
  border-style: solid;
  border-color: var(--orange);
  background: white;
}

.add-item-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(255, 157, 77, 0.3);
}

.add-item-btn:active {
  transform: scale(0.92);
}

/* --- Day Tabs --- */
.day-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.day-tab {
  flex-shrink: 0;
  width: 54px;
  height: 62px;
  border-radius: var(--radius-md);
  background: white;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: var(--transition);
  cursor: pointer;
}

.day-tab .day-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 600;
}

.day-tab .day-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-mid);
}

.day-tab.active {
  border-color: var(--orange);
  background: var(--orange-pale);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 157, 77, 0.15);
}

.day-tab.active .day-label { color: var(--orange); }
.day-tab.active .day-num { color: var(--orange); }

.day-tab:active { transform: scale(0.95); }

/* --- Itinerary Stop Card --- */
.stop-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  transition: var(--transition);
}

.stop-card + .stop-card { margin-top: 12px; }

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

.stop-card .time-input {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  border: none;
  background: transparent;
  width: 80px;
}

.stop-tag {
  font-size: 0.6rem;
  background: var(--orange-pale);
  color: var(--orange);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stop-card .place-input {
  width: 100%;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  margin-bottom: 6px;
}

.stop-card .note-input {
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-mid);
  border: none;
  background: transparent;
  resize: none;
  min-height: 36px;
}

/* Stop Photo Grid (Enlarged & Deleteable) */
.stop-photo-grid {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.stop-photo-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.stop-photo {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  border: 1.5px solid var(--orange-light);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stop-photo:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(255, 157, 77, 0.2);
}

.stop-photo-delete-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF5A5A;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1.5px solid white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}

.stop-photo-delete-btn:hover {
  transform: scale(1.15);
}

.stop-photo-add {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  border: 1.5px dashed var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-light);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  background: white;
}

.stop-photo-add:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-pale);
}

.stop-card-edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 50%;
}

.stop-card-edit-btn:hover {
  color: var(--orange);
  background: var(--orange-pale);
}

.drag-handle {
  color: #D6C5C5;
  cursor: grab;
  font-size: 1.1rem;
  padding: 2px 4px 2px 0;
  user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.drag-handle:hover, .drag-handle:active {
  color: var(--orange);
}

.stop-move-btn {
  background: var(--orange-pale);
  border: 1px solid var(--orange-light);
  color: var(--orange);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}

.stop-move-btn:hover:not(:disabled) {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.stop-move-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.stop-place-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.stop-notes-text {
  font-size: 0.78rem;
  color: var(--text-mid);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
}

/* Travel connector between stops (Red Box) */
.travel-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  color: var(--orange);
  font-size: 0.78rem;
  gap: 8px;
  position: relative;
  z-index: 5;
}

.travel-connector::before,
.travel-connector::after {
  content: '';
  width: 2px;
  height: 14px;
  background: var(--orange-light);
  border-radius: 2px;
}

.travel-connector-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF5EE;
  border: 1.5px dashed var(--orange-light);
  border-radius: 16px;
  padding: 4px 14px;
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(255, 157, 77, 0.08);
}

.travel-connector-input {
  width: 44px;
  border: 1px solid var(--orange-light);
  border-radius: 8px;
  background: white;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  outline: none;
  padding: 2px 4px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.travel-connector-input:focus {
  border-color: var(--orange);
  background: #FFF9F5;
}

/* Drag & Drop Visual Effects */
.stop-card[draggable="true"] {
  cursor: grab;
}

.stop-card.dragging {
  opacity: 0.4;
  transform: scale(0.98);
  border: 2px dashed var(--orange);
}

.stop-card.drag-over {
  border-top: 3px solid var(--orange) !important;
  background: var(--orange-pale) !important;
}

/* Add stop button */
.add-stop-btn {
  width: 100%;
  padding: 18px;
  border: 1.5px dashed var(--orange-light);
  border-radius: var(--radius-lg);
  color: var(--orange-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
  transition: var(--transition);
  background: transparent;
}

.add-stop-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 157, 77, 0.04);
}

/* --- Expense Section --- */
.expense-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.expense-total-label {
  font-size: 0.6rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.expense-total-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
}

.expense-total-converted {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

.expense-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.expense-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
  transition: var(--transition);
  position: relative;
}

.expense-item-photo {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.expense-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expense-item-info {
  flex: 1;
  min-width: 0;
}

.expense-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expense-item-meta {
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.expense-item-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  text-align: right;
  flex-shrink: 0;
}

.expense-item-delete {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--pink);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.expense-item:hover .expense-item-delete { opacity: 1; }

.expense-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #FFBE76);
  color: white;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(255, 157, 77, 0.25);
  border: none;
}

.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--orange);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
}

.btn-secondary:active { transform: scale(0.97); }

/* --- Calculator --- */
.converter-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.converter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.converter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.converter-row:first-of-type {
  background: rgba(245, 245, 245, 0.5);
}

.converter-row:last-of-type {
  background: rgba(255, 157, 77, 0.06);
  border: 1px solid var(--orange-pale);
}

.converter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
}

.converter-input {
  text-align: right;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  font-weight: 600;
  width: 100%;
  padding-left: 16px;
}

.converter-input::placeholder {
  color: var(--text-light);
}

/* Calculator Keypad */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.calc-btn {
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  background: white;
  border: 1px solid var(--border);
  transition: var(--transition);
  color: var(--text-dark);
}

.calc-btn:active {
  background: var(--orange-pale);
  transform: scale(0.95);
}

.calc-op {
  color: var(--orange);
  font-weight: 700;
}

.calc-zero {
  grid-column: span 2;
}

.calc-equals {
  background: linear-gradient(135deg, var(--orange), #FFBE76) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(255, 157, 77, 0.3);
}

.calc-equals:active {
  background: linear-gradient(135deg, #F08C3A, var(--orange)) !important;
}

.calc-ac {
  color: var(--pink);
  font-weight: 700;
}

/* Calculator expression display */
.calc-expression {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 0 4px;
  min-height: 20px;
  margin-bottom: 4px;
  font-family: 'Quicksand', monospace;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(74, 64, 64, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 28px 24px 40px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: center;
}

.modal-field {
  margin-bottom: 16px;
}

.modal-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.modal-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  transition: var(--transition);
  background: white;
}

.modal-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 157, 77, 0.1);
}

.modal-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  background: white;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C4B8B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-select:focus {
  border-color: var(--orange);
}

.modal-photo-upload {
  width: 100%;
  height: 100px;
  border: 1.5px dashed var(--orange-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.modal-photo-upload:hover {
  border-color: var(--orange);
  background: var(--orange-pale);
}

.modal-photo-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}

.modal-photo-upload .photo-icon {
  font-size: 1.5rem;
}

.modal-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.modal-btn-cancel {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.modal-btn-save {
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--orange), #FFBE76);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(255, 157, 77, 0.25);
}

.modal-btn-save:active { transform: scale(0.97); }

/* --- Bottom Navigation --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--orange-pale);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 76px;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  position: relative;
  transition: var(--transition);
  color: var(--text-light);
}

.nav-btn .nav-icon {
  font-size: 1.25rem;
  transition: var(--transition);
}

.nav-btn .nav-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-btn.active {
  color: var(--orange);
}

.nav-btn.active .nav-icon {
  transform: translateY(-2px);
}

.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}

.nav-btn:active {
  transform: scale(0.92);
}

/* --- Page content visibility --- */
.page-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.page-content.active {
  display: block;
}

/* --- Decorative elements --- */
.deco-tangerine {
  position: fixed;
  font-size: 2rem;
  opacity: 0.08;
  z-index: -1;
  animation: float 4s ease-in-out infinite;
}

.deco-cat {
  position: fixed;
  font-size: 1.5rem;
  opacity: 0.06;
  z-index: -1;
  animation: wiggle 3s ease-in-out infinite;
}

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

.empty-state .empty-text {
  font-size: 0.82rem;
  line-height: 1.6;
}

/* --- Toast notification --- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--text-dark);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 200;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

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

/* --- Category badges --- */
.category-badge {
  font-size: 0.6rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cat-food { background: #FFF0E6; color: #F08C3A; }
.cat-transport { background: #E8F4FD; color: #5B9BD5; }
.cat-shopping { background: #FFE4EC; color: #E76F8A; }
.cat-stay { background: #E8F5E9; color: #66BB6A; }
.cat-play { background: #F3E5F5; color: #AB47BC; }
.cat-other { background: #F5F5F5; color: #9E9E9E; }

/* --- Utility --- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* --- Notes section in pre-trip --- */
.notes-card .form-textarea {
  min-height: 120px;
}

/* --- Rate setting in calculator --- */
.rate-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--orange-pale);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-mid);
}

.rate-setting input {
  width: 60px;
  text-align: center;
  border: none;
  border-bottom: 1.5px solid var(--orange-light);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  padding: 2px;
}

.rate-setting input:focus {
  border-bottom-color: var(--orange);
}

/* --- Responsive --- */
@media (min-width: 480px) {
  .main-container {
    padding: 0 28px;
  }
}

/* --- Select for itinerary category --- */
.tag-select {
  font-size: 0.6rem;
  background: var(--orange-pale);
  color: var(--orange);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  border: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* =======================================
   FIREBASE AUTH & TRIP SELECT STYLES
   ======================================= */

/* --- Login Page --- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-logo {
  font-size: 4rem;
  margin-bottom: 8px;
  animation: float 3s ease-in-out infinite;
}

.login-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 3px;
  margin-bottom: 36px;
}

.google-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: white;
  border: 1.5px solid #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.google-btn:hover {
  border-color: #D0D0D0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.google-btn:active {
  transform: scale(0.98);
}

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

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 0.72rem;
  color: var(--text-light);
}

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

.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-form .modal-input {
  text-align: center;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--orange), #FFBE76);
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(255, 157, 77, 0.25);
}

.auth-submit-btn:active {
  transform: scale(0.97);
}

.auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-toggle-btn {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}

.auth-toggle-btn:hover {
  opacity: 0.7;
}

.auth-error {
  font-size: 0.75rem;
  color: #E76F8A;
  background: #FFE4EC;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}

/* --- Trip Select Page --- */
.trip-select-page {
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trip-select-container {
  width: 100%;
  max-width: 420px;
}

.trip-select-header {
  text-align: center;
  margin-bottom: 32px;
}

.trip-select-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.trip-select-header p {
  font-size: 0.75rem;
  color: var(--text-light);
}

.trip-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.trip-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.trip-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(255, 157, 77, 0.1);
}

.trip-card:active {
  transform: scale(0.98);
}

.trip-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.trip-card-info {
  flex: 1;
  min-width: 0;
}

.trip-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-card-meta {
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 2px;
}

.trip-card-arrow {
  color: var(--orange-light);
  font-size: 1rem;
}

.trip-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trip-action-group {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.trip-action-group h3 {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.trip-action-row {
  display: flex;
  gap: 10px;
}

.trip-action-row .modal-input {
  flex: 1;
}

.trip-action-btn {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--orange), #FFBE76);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(255, 157, 77, 0.2);
}

.trip-action-btn:active {
  transform: scale(0.95);
}

.trip-action-btn.secondary {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--orange);
  box-shadow: none;
}

/* Trip ID display */
.trip-id-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--orange-pale);
  border-radius: var(--radius-sm);
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-mid);
}

.trip-id-display code {
  font-family: 'Quicksand', monospace;
  font-weight: 700;
  color: var(--orange);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.trip-id-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 6px;
  transition: var(--transition);
}

.trip-id-copy-btn:active {
  transform: scale(0.9);
}

/* --- Header User Section --- */
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.header-user:active {
  opacity: 0.7;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--orange-light);
  object-fit: cover;
  background: var(--orange-pale);
}

.user-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--orange-light);
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 700;
}

.header-user-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mid);
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- User menu dropdown --- */
.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 6px;
  min-width: 160px;
  z-index: 60;
  animation: fadeIn 0.2s ease-out;
}

.user-menu.hidden {
  display: none;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.user-menu-item:hover {
  background: var(--orange-pale);
  color: var(--orange);
}

.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

/* --- Expense User Avatar --- */
.expense-user-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--orange-light);
  object-fit: cover;
  margin-right: 4px;
  vertical-align: middle;
}

.expense-user-name {
  font-size: 0.6rem;
  color: var(--text-light);
  font-weight: 500;
}

/* --- Loading Spinner --- */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 249, 251, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  gap: 16px;
}

.loading-overlay.hidden {
  display: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--orange-pale);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 0.82rem;
  color: var(--text-light);
  animation: pulse-soft 1.5s ease-in-out infinite;
}

/* --- App Container (hide during login) --- */
.app-container {
  display: none;
}

.app-container.active {
  display: block;
}

/* --- Responsive fix for login --- */
@media (max-height: 600px) {
  .login-page {
    padding-top: 40px;
    align-items: flex-start;
  }
  .login-logo {
    font-size: 2.5rem;
  }
}

/* --- Base Info Enhanced UI --- */
.base-info-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.base-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.base-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.base-info-textarea {
  min-height: 76px;
  line-height: 1.5;
  font-size: 0.82rem;
  border-radius: var(--radius-md);
  background: rgba(255, 240, 230, 0.25);
  border: 1.5px solid var(--border);
  padding: 10px 12px;
  transition: var(--transition);
}

.base-info-textarea:focus {
  border-color: var(--orange);
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 157, 77, 0.12);
}

/* --- Flight Section UI --- */
.flight-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flight-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.flight-badge.outbound {
  background: var(--orange-pale);
  color: var(--orange);
}

.flight-badge.inbound {
  background: #E8F4FD;
  color: #5B9BD5;
}

.flight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.flight-input {
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 240, 230, 0.2);
}

/* --- Accommodations Multi-Stay UI --- */
.accommodations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc-card {
  background: rgba(255, 249, 251, 0.8);
  border: 1px dashed var(--orange-light);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  transition: var(--transition);
}

.acc-card:hover {
  border-style: solid;
  border-color: var(--orange);
  background: #FFFFFF;
}

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

.acc-days-input {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  border: none;
  background: var(--orange-pale);
  padding: 4px 10px;
  border-radius: 12px;
  width: 140px;
}

.acc-delete-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--pink);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.acc-delete-btn:hover {
  background: var(--pink);
  color: white;
}

/* --- Clean Preview Cards UI (No Input Borders) --- */
.card-edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  z-index: 30 !important;
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-edit-btn:hover {
  color: var(--orange);
  background: var(--orange-pale);
  transform: scale(1.1);
}

.card-edit-btn:active {
  transform: scale(0.95);
}

.info-display-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.empty-info-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  padding: 14px;
  background: rgba(255, 240, 230, 0.2);
  border: 1.5px dashed var(--orange-light);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.empty-info-hint:hover {
  background: rgba(255, 240, 230, 0.4);
}

/* Flat Flight Ticket Preview (No Inner Boxes) */
.preview-ticket {
  background: transparent;
  border: none;
  padding: 4px 0;
}

.preview-ticket + .preview-ticket {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.preview-ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.preview-ticket-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.preview-ticket-badge.outbound {
  background: var(--orange-pale);
  color: var(--orange);
}

.preview-ticket-badge.inbound {
  background: #E8F4FD;
  color: #5B9BD5;
}

.preview-ticket-no {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.preview-ticket-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dark);
  margin-top: 4px;
}

.preview-ticket-detail {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 4px;
}

.preview-notes {
  font-size: 0.78rem;
  color: var(--text-mid);
  background: transparent;
  padding: 4px 0;
  white-space: pre-wrap;
  line-height: 1.5;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
  padding-top: 8px;
}

/* Flat Accommodation Preview (No Inner Boxes) */
.preview-acc-card {
  background: transparent;
  border: none;
  padding: 4px 0;
}

.preview-acc-card + .preview-acc-card {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.preview-acc-days {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-pale);
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 4px;
}

.preview-acc-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.preview-acc-text {
  font-size: 0.78rem;
  color: var(--text-mid);
/* --- Global Custom Styled Dropdowns & Time Pickers --- */
select, .modal-select, .tag-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--orange-pale) !important;
  color: var(--orange) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border: 1.5px solid var(--orange-light) !important;
  border-radius: 18px !important;
  padding: 6px 28px 6px 12px !important;
  cursor: pointer;
  transition: var(--transition);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FF9D4D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  box-shadow: 0 2px 6px rgba(255, 157, 77, 0.08);
}

select:hover, .modal-select:hover, .tag-select:hover {
  border-color: var(--orange) !important;
  box-shadow: 0 4px 10px rgba(255, 157, 77, 0.15);
}

select option {
  background: white !important;
  color: var(--text-dark) !important;
  font-weight: 600;
  padding: 8px 12px;
}

/* Custom Styled Time Trigger Button */
.custom-time-btn {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-pale);
  border: 1.5px solid var(--orange-light);
  border-radius: 18px;
  padding: 5px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(255, 157, 77, 0.08);
}

.custom-time-btn:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* Custom Time Picker Modal Styling */
.time-ampm-group {
  display: flex;
  background: var(--orange-pale);
  border-radius: 20px;
  padding: 4px;
  gap: 4px;
  margin-top: 10px;
}

.time-ampm-btn {
  flex: 1;
  padding: 10px;
  border-radius: 16px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
}

.time-ampm-btn.active {
  background: white;
  color: var(--orange);
  box-shadow: 0 2px 8px rgba(255, 157, 77, 0.18);
}

/* Sleek 24h Stepper Time Selector (Matching User Mockup Exactly) */
.time-stepper-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 16px 0 !important;
  width: 100% !important;
}

.stepper-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: auto !important;
  flex-shrink: 0 !important;
}

.stepper-arrow {
  background: transparent !important;
  border: none !important;
  color: #FFB74D !important; /* Golden yellow triangle */
  font-size: 0.9rem !important;
  cursor: pointer !important;
  padding: 4px 16px !important;
  transition: transform 0.15s, color 0.15s !important;
  line-height: 1 !important;
}

.stepper-arrow:hover {
  color: #FF9D4D !important;
  transform: scale(1.25) !important;
}

.stepper-arrow:active {
  transform: scale(0.9) !important;
}

.stepper-oval-pill {
  width: 90px !important;
  padding: 6px 0 !important;
  border-radius: 22px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #FFD59E !important;
  color: #555555 !important;
  font-family: 'Quicksand', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: 0 2px 8px rgba(255, 180, 100, 0.1) !important;
  user-select: none !important;
}

.time-colon {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #444444 !important;
  margin: 0 2px !important;
}

.time-colon {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
}

.time-selected-preview {
  margin-top: 16px;
  padding: 10px;
  border-radius: 14px;
  background: var(--orange-pale);
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 600;
}

.time-selected-preview span {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  margin-left: 4px;
}

.acc-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
