/* ═══════════════════════════════════════════
   CSS VARIABLES & THEMING
   ═══════════════════════════════════════════ */
:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 30px rgba(var(--accent-rgb), 0.15);
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #FAFAF8;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F3F2EF;
  --bg-input: #FFFFFF;
  --bg-hover: #F0EFEC;
  --bg-active: #E8E7E3;
  --text-primary: #1A1A18;
  --text-secondary: #5C5C56;
  --text-tertiary: #8A8A82;
  --text-inverse: #FFFFFF;
  --border-primary: #E2E1DC;
  --border-secondary: #EEEDEA;
  --border-focus: #2D5A27;
  --accent: #2D5A27;
  --accent-rgb: 45, 90, 39;
  --accent-light: #E8F0E6;
  --accent-hover: #3A7232;
  --accent-text: #FFFFFF;
  --danger: #B83B2E;
  --danger-light: #FCEAE8;
  --warning: #A67B1A;
  --warning-light: #FDF4E0;
  --success: #2D5A27;
  --success-light: #E8F0E6;
  --tag-bg: #F0EFEC;
  --tag-text: #5C5C56;
  --overlay: rgba(26, 26, 24, 0.4);
  --clock-face: #FFFFFF;
  --clock-ring: #E2E1DC;
  --clock-hour: #1A1A18;
  --clock-minute: #5C5C56;
  --clock-second: #2D5A27;
  --hour-day: #E8F0E6;
  --hour-night: #2A2A28;
  --hour-day-text: #1A1A18;
  --hour-night-text: #FAFAF8;
  --zone-strip-bg: rgba(255,255,255,0.6);
}

[data-theme="dark"] {
  --bg-primary: #111110;
  --bg-secondary: #1A1A18;
  --bg-tertiary: #222220;
  --bg-input: #1A1A18;
  --bg-hover: #2A2A28;
  --bg-active: #333330;
  --text-primary: #EEEDEA;
  --text-secondary: #A0A098;
  --text-tertiary: #6E6E68;
  --text-inverse: #111110;
  --border-primary: #333330;
  --border-secondary: #2A2A28;
  --border-focus: #5CB852;
  --accent: #5CB852;
  --accent-rgb: 92, 184, 82;
  --accent-light: #1A2E18;
  --accent-hover: #6FCC64;
  --accent-text: #111110;
  --danger: #E8614F;
  --danger-light: #2E1814;
  --warning: #E0A830;
  --warning-light: #2E2410;
  --success: #5CB852;
  --success-light: #1A2E18;
  --tag-bg: #2A2A28;
  --tag-text: #A0A098;
  --overlay: rgba(0, 0, 0, 0.6);
  --clock-face: #1A1A18;
  --clock-ring: #333330;
  --clock-hour: #EEEDEA;
  --clock-minute: #A0A098;
  --clock-second: #5CB852;
  --hour-day: #1A2E18;
  --hour-night: #1A1A18;
  --hour-day-text: #EEEDEA;
  --hour-night-text: #6E6E68;
  --zone-strip-bg: rgba(26,26,24,0.6);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-text);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

.live-utc {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 18px;
}

.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* ═══════════════════════════════════════════
   NAVIGATION TABS
   ═══════════════════════════════════════════ */
.nav-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-tab {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-tab.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.nav-tab .tab-icon {
  font-size: 16px;
}

/* ═══════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════ */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active { display: block; }

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

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition-base);
}

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

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-hint {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
  font-style: italic;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236E6E68' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.btn-primary:hover { background: var(--accent-hover); }

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

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

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 16px;
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-full { width: 100%; }

/* ═══════════════════════════════════════════
   CONVERTER PANEL
   ═══════════════════════════════════════════ */
.converter-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: end;
}

.swap-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 24px;
}

.swap-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.swap-btn:hover {
  transform: rotate(180deg);
  background: var(--accent-hover);
}

.result-display {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
  border: 1px solid var(--border-secondary);
}

.result-time {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
}

.result-date {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.result-offset {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-diff-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.diff-positive { background: var(--success-light); color: var(--success); }
.diff-negative { background: var(--danger-light); color: var(--danger); }
.diff-zero { background: var(--tag-bg); color: var(--tag-text); }

/* ═══════════════════════════════════════════
   WORLD CLOCK
   ═══════════════════════════════════════════ */
.world-clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.clock-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  transition: all var(--transition-fast);
  overflow: hidden;
}

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

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

.clock-city {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.clock-region {
  font-size: 12px;
  color: var(--text-tertiary);
}

.clock-remove {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.clock-remove:hover { background: var(--danger-light); color: var(--danger); }

.clock-time {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.clock-date {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.clock-offset-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: 20px;
  display: inline-block;
}

.clock-daynight {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0.15;
  pointer-events: none;
}

.add-clock-card {
  border: 2px dashed var(--border-primary);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-tertiary);
}

.add-clock-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.add-clock-icon { font-size: 28px; margin-bottom: 8px; }
.add-clock-label { font-size: 14px; font-weight: 500; }

/* ═══════════════════════════════════════════
   MEETING PLANNER
   ═══════════════════════════════════════════ */
.meeting-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 13px;
  font-weight: 500;
}

.zone-chip-remove {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.zone-chip-remove:hover { background: var(--danger-light); color: var(--danger); }

.timeline-container {
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.timeline-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
}

.timeline-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 6px;
  position: sticky;
  left: 0;
  background: var(--bg-secondary);
  z-index: 2;
  white-space: nowrap;
  min-width: 140px;
}

.timeline-table td {
  padding: 3px 1px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 28px;
  vertical-align: middle;
}

.hour-cell {
  border-radius: 4px;
  padding: 6px 2px;
  transition: all var(--transition-fast);
  cursor: default;
  line-height: 1.3;
}

.hour-cell.day-hour {
  background: var(--hour-day);
  color: var(--hour-day-text);
}

.hour-cell.night-hour {
  background: var(--hour-night);
  color: var(--hour-night-text);
}

.hour-cell.work-hour {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.hour-cell.overlap-hour {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

.meeting-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-secondary);
  font-size: 13px;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════
   TIMESTAMP TOOLS
   ═══════════════════════════════════════════ */
.timestamp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ts-output {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 14px;
  margin-bottom: 8px;
  word-break: break-all;
}

.ts-output .ts-val { flex: 1; }

.copy-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.copy-btn:hover { color: var(--accent); background: var(--accent-light); }
.copy-btn.copied { color: var(--success); }

.ts-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   STATUS / TOAST
   ═══════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 9.7s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-success { background: var(--success); color: var(--accent-text); }
.toast-error { background: var(--danger); color: #fff; }
.toast-info { background: var(--text-primary); color: var(--bg-primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ═══════════════════════════════════════════
   MODAL / DROPDOWN
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 20px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.modal-search {
  margin: 0 24px 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  width: calc(100% - 48px);
  outline: none;
}

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

.modal-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 12px;
}

.modal-list-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-list-item:hover { background: var(--bg-hover); }

.modal-list-item .tz-name { font-weight: 500; }
.modal-list-item .tz-offset {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

.modal-list-group {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 14px 4px;
}

/* ═══════════════════════════════════════════
   DOWNLOAD AREA
   ═══════════════════════════════════════════ */
.export-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  padding: 48px 28px 36px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-secondary);
}
.site-footer .footer-inner { max-width: 1100px; margin: 0 auto; }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.site-footer .footer-brand svg { width: 32px; height: 32px; color: var(--accent); flex-shrink: 0; }
.site-footer .footer-brand-name { font-size: 20px; font-weight: 700; color: var(--accent); }
.site-footer .footer-desc { color: var(--text-tertiary); margin-bottom: 16px; max-width: 360px; }
.site-footer .footer-copy { font-size: 12px; color: var(--text-tertiary); opacity: 0.7; }
.site-footer h4 { font-weight: 700; margin-bottom: 16px; color: var(--text-primary); font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-bottom { border-top: 1px solid var(--border-secondary); padding-top: 20px; text-align: center; }
.site-footer .footer-bottom p { color: var(--text-tertiary); font-size: 13px; opacity: 0.7; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .logo-text { font-size: 17px; }
  .live-utc { display: none; }

  .converter-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .swap-col {
    padding: 4px 0;
  }
  .swap-btn { transform: rotate(90deg); }
  .swap-btn:hover { transform: rotate(270deg); }

  .form-row { grid-template-columns: 1fr; }
  .timestamp-grid { grid-template-columns: 1fr; }

  .card { padding: 20px; }
  .result-time { font-size: 28px; }
  .nav-tabs { padding: 12px 16px; }
  .main-container { padding: 0 16px 60px; }

  .world-clock-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 36px 16px 28px; }
}

@media (max-width: 480px) {
  .nav-tab { padding: 8px 14px; font-size: 13px; }
  .nav-tab .tab-label { display: none; }
  .nav-tab .tab-icon { font-size: 18px; }
}

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ═══════════════════════════════════════════
   FILE IMPORT/EXPORT (ICS/CSV)
   ═══════════════════════════════════════════ */
.drop-zone {
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-tertiary);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.drop-zone-icon { font-size: 32px; margin-bottom: 8px; }
.drop-zone-text { font-size: 14px; font-weight: 500; }
.drop-zone-hint { font-size: 12px; margin-top: 4px; }
.drop-zone input[type="file"] { display: none; }

.file-preview {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  display: none;
}

.file-preview.visible { display: block; }

/* ===== SITE FOOTER ===== */
.site-footer{
  margin-top:60px;padding:48px 28px 36px;
  border-top:1px solid var(--border-primary);
  background:var(--bg-primary);color:var(--text-secondary);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:14px;line-height:1.6;
}
.site-footer .footer-inner{max-width:1100px;margin:0 auto}
.site-footer .footer-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;margin-bottom:40px;
}
.site-footer .footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.site-footer .footer-brand svg{width:32px;height:32px;color:#a855f7;flex-shrink:0}
.site-footer .footer-brand-name{
  font-size:20px;font-weight:700;
  background:linear-gradient(90deg,#8B5CF6,#EC4899,#3B82F6);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.site-footer .footer-desc{color:var(--text-tertiary);margin-bottom:16px;max-width:360px}
.site-footer .footer-copy{font-size:12px;color:var(--text-tertiary);opacity:.7}
.site-footer h4{font-weight:700;margin-bottom:16px;color:var(--text-primary);font-size:15px}
.site-footer ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.site-footer a{color:var(--text-secondary);text-decoration:none;transition:color .2s}
.site-footer a:hover{color:#a855f7}
.site-footer .footer-bottom{
  border-top:1px solid var(--border-primary);
  padding-top:20px;text-align:center;
}
.site-footer .footer-bottom p{color:var(--text-tertiary);font-size:13px;opacity:.7}
.site-footer .footer-bottom span{color:#a855f7}

@media(max-width:768px){
  .site-footer .footer-grid{grid-template-columns:1fr;gap:32px}
  .site-footer{padding:36px 16px 28px}
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
