/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #ECFDF5;
  --secondary: #FF6584;
  --accent: #43C6AC;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --bg: #060F0A;
  --bg-card: #091A10;
  --bg-card2: #0D2418;
  --text: #FFFFFE;
  --text-muted: #A7A9BE;
  --border: #1A3D28;
  --highlight: rgba(16,185,129,0.18);
  --shadow: 0 8px 32px rgba(0,0,0,0.45);
  --radius: 16px;
  --radius-sm: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== HEADER ===== */
.app-header {
  text-align: center;
  padding: 56px 24px 32px;
  background: linear-gradient(135deg, #060F0A 0%, #091A10 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(16,185,129,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.logo-emoji {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(16,185,129,0.5));
}

.app-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}


.title-ai {
  background: linear-gradient(135deg, #fff 0%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}
.app-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ===== MAIN LAYOUT ===== */
.app-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ===== CARD ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

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

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title span.icon {
  font-size: 1.2rem;
}

/* ===== TIMEZONE SELECTORS ===== */
.tz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.tz-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tz-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tz-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--primary);
  color: #fff;
}

.tz-badge.b2 { background: var(--secondary); }
.tz-badge.b3 { background: var(--accent); }
.tz-badge.b4 { background: var(--warning); }

.tz-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A7A9BE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.tz-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

.tz-select option {
  background: #1A1928;
  color: var(--text);
}

.tz-select.selected {
  border-color: var(--primary);
  background-color: rgba(16,185,129,0.07);
}

/* ===== COMBOBOX (searchable city picker) ===== */
.tz-combo {
  position: relative;
  width: 100%;
}

/* Input styled exactly like the old select */
.tz-combo-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
  /* search icon on right */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A7A9BE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
}

.tz-combo-input::placeholder {
  color: var(--text-muted);
}

.tz-combo-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

.tz-combo-input.selected {
  border-color: var(--primary);
  background-color: rgba(16,185,129,0.07);
}

/* Dropdown list */
.tz-combo-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0D1F15;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.tz-combo-list.open {
  display: block;
}

.tz-combo-item {
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tz-combo-item:hover,
.tz-combo-item.active {
  background: rgba(16,185,129,0.15);
  color: #fff;
}

.tz-combo-item mark {
  background: transparent;
  color: #34D399;
  font-weight: 700;
}

.combo-flag {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.combo-name {
  flex: 1;
  font-size: 0.92rem;
}

.combo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.tz-combo-empty {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== SUBMIT BUTTON ===== */
.submit-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 44px;
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  box-shadow: 0 4px 24px rgba(16,185,129,0.35);
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16,185,129,0.5);
}

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

.btn-submit .btn-icon {
  font-size: 1.2rem;
}

/* ===== ERROR MESSAGE ===== */
.error-msg {
  text-align: center;
  color: var(--secondary);
  font-size: 0.92rem;
  margin-top: 12px;
  min-height: 20px;
  font-weight: 500;
}

/* ===== RESULTS SECTION ===== */
#results {
  display: none;
}

#results.visible {
  display: block;
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* ===== COMPARISON TABLE ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}

.comparison-table thead {
  background: rgba(16,185,129,0.12);
}

.comparison-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.comparison-table th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.comparison-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

/* City name with color dot */
.city-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.city-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.city-flag {
  font-size: 1.2rem;
}

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

/* ===== HOUR TIMELINE ===== */
.timeline-wrap {
  width: 100%;
  min-width: 200px;
}

.timeline-bar {
  position: relative;
  height: 22px;
  background: var(--bg-card2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.timeline-segment {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  transition: all 0.3s;
}

.timeline-work {
  background: linear-gradient(90deg, rgba(16,185,129,0.6) 0%, rgba(67,198,172,0.6) 100%);
}

.timeline-overlap {
  background: linear-gradient(90deg, #22C55E 0%, #43C6AC 100%);
  box-shadow: 0 0 8px rgba(34,197,94,0.4);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ===== OVERLAP BADGE ===== */
.overlap-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.overlap-yes {
  background: rgba(34,197,94,0.15);
  color: #22C55E;
  border: 1px solid rgba(34,197,94,0.3);
}

.overlap-no {
  background: rgba(239,68,68,0.12);
  color: #EF4444;
  border: 1px solid rgba(239,68,68,0.25);
}

/* ===== OVERLAP SUMMARY ===== */
.overlap-summary {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.overlap-summary.no-overlap {
  background: rgba(239,68,68,0.07);
  border-color: rgba(239,68,68,0.2);
}

.overlap-icon {
  font-size: 1.5rem;
}

.overlap-text strong {
  color: #22C55E;
  font-size: 1rem;
}

.overlap-summary.no-overlap .overlap-text strong {
  color: #EF4444;
}

.overlap-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== MEETING SUGGESTIONS ===== */
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.suggestion-card {
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.suggestion-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #34D399);
}

.suggestion-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.2);
}

.suggestion-card.best {
  border-color: var(--success);
  background: rgba(34,197,94,0.05);
}

.suggestion-card.best::before {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.suggestion-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.suggestion-card.best .suggestion-num {
  background: var(--success);
}

.best-tag {
  position: absolute;
  top: 14px; right: 14px;
  padding: 3px 8px;
  background: rgba(34,197,94,0.15);
  color: #22C55E;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(34,197,94,0.3);
}

.suggestion-times {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.suggestion-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sug-city {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sug-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sug-time {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.sug-time.workday {
  color: #22C55E;
}

.sug-time.offhours {
  color: var(--warning);
}

/* ===== NO OVERLAP MESSAGE ===== */
.no-overlap-msg {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.no-overlap-msg .icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.no-overlap-msg strong {
  color: var(--text);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 6px;
}

/* ===== LOADING ANIMATION ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.4s ease both;
}

.fade-in-delay-1 { animation-delay: 0.08s; }
.fade-in-delay-2 { animation-delay: 0.16s; }
.fade-in-delay-3 { animation-delay: 0.24s; }

/* ===== FOOTER ===== */
.app-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

.app-footer span {
  color: var(--primary);
}

/* ===== PULSE DOT ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.8s ease infinite;
  margin-right: 4px;
}

/* ===== TOOLTIP ===== */
.tooltip-wrap {
  position: relative;
  display: inline-block;
}

.tooltip-wrap:hover .tooltip-text {
  opacity: 1;
  pointer-events: all;
}

.tooltip-text {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}

/* ===== CURRENT TIME STRIP ===== */
.time-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.time-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 0.85rem;
}

.time-chip-label {
  color: var(--text-muted);
}

.time-chip-value {
  font-weight: 700;
  color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .card {
    padding: 20px 16px;
  }

  .app-header {
    padding: 40px 16px 24px;
  }

  .suggestions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}
/* ============================================================
   GOOGLE CALENDAR INTEGRATION STYLES
   ============================================================ */

/* ── Connect Bar ─────────────────────────────────────────────── */
.gcal-bar {
  background: linear-gradient(90deg, #0D2418 0%, #091A10 100%);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  transition: background 0.3s;
}
.gcal-bar.connected {
  background: linear-gradient(90deg, #052210 0%, #0a2d18 100%);
  border-bottom-color: rgba(16,185,129,0.3);
}
.gcal-bar.error {
  background: linear-gradient(90deg, #2d0a0a 0%, #1a0505 100%);
  border-bottom-color: rgba(239,68,68,0.4);
}
.gcal-bar-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gcal-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.gcal-icon { font-size: 1.1rem; flex-shrink: 0; }
.gcal-bar-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.gcal-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Google Sign-in Button ──────────────────────────────────── */
.btn-gcal-connect {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #fff;
  color: #3c4043;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-gcal-connect:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.btn-gcal-connect:active { transform: translateY(0); }

/* ── Connected state ────────────────────────────────────────── */
.gcal-connected-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gcal-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(16,185,129,0.5);
}
.gcal-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10B981;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gcal-user-name {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}
.btn-gcal-disconnect {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}
.btn-gcal-disconnect:hover {
  border-color: #EF4444;
  color: #EF4444;
}

/* ── Add to Calendar button on suggestion cards ─────────────── */
.suggestion-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.sug-utc {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.btn-add-calendar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10B981;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn-add-calendar:hover {
  background: rgba(16,185,129,0.2);
  border-color: rgba(16,185,129,0.6);
  transform: translateY(-1px);
}
.btn-add-calendar:active { transform: translateY(0); }
.btn-add-calendar.ready {
  border-color: #10B981;
}
.btn-add-calendar.added {
  background: rgba(16,185,129,0.15);
  border-color: #10B981;
  color: #34D399;
  cursor: default;
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: #0D2418;
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  margin: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(20px);
  transition: transform 0.25s;
  overflow: visible;
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
  background: #0D2418;
}
.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.modal-field-row {
  display: flex;
  gap: 12px;
}
.modal-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal-input {
  background: #091A10;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 8px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  color-scheme: dark;
}
/* White calendar icon on date inputs - replace native icon with white SVG */
input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: center;
  background-color: transparent;
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.85;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
.modal-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.modal-textarea {
  resize: vertical;
  min-height: 70px;
}
.modal-time-preview {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
}
.preview-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
  font-weight: 600;
}
.preview-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preview-city {
  color: var(--text);
  background: rgba(16,185,129,0.12);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  white-space: nowrap;
}
.preview-city strong { color: #34D399; }
.modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px 18px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  background: #0D2418;
}
.btn-modal-cancel {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-modal-cancel:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.btn-modal-create {
  padding: 8px 22px;
  background: linear-gradient(135deg, #10B981, #059669);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-modal-create:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-modal-create:active { transform: translateY(0); }
.btn-modal-create:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-modal-create.success { background: linear-gradient(135deg, #22C55E, #16A34A); }
.btn-modal-create.error { background: linear-gradient(135deg, #EF4444, #DC2626); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .gcal-bar-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .modal-field-row { flex-direction: column; }
  .gcal-bar { padding: 10px 16px; }
}
