/* ── RESET & ROOT ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #ff6b00;
  --orange-deep: #d95800;
  --orange-light: #ff8c3a;
  --orange-soft: #ffb27a;
  --orange-pale: #fff3ea;
  --orange-glow: rgba(255, 107, 0, 0.22);
  --cream: #fdf7f0;
  --peach: #fde9d5;
  --card: #ffffffb8;
  --card-border: rgba(255, 140, 58, 0.18);
  --text-dark: #1e0f00;
  --text-mid: #7a4520;
  --text-soft: #c09070;
  --shadow: 0 4px 28px rgba(180, 80, 20, 0.1), 0 1px 4px rgba(180, 80, 20, 0.06);
  --shadow-hover: 0 10px 40px rgba(180, 80, 20, 0.18), 0 2px 8px rgba(180, 80, 20, 0.1);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --tr: 0.26s cubic-bezier(0.34, 1.4, 0.64, 1);
  --tr-fast: 0.16s ease;

  /* priority colors */
  --p-high: #ff4444;
  --p-high-bg: rgba(255, 68, 68, 0.12);
  --p-med: #ff6b00;
  --p-med-bg: rgba(255, 107, 0, 0.12);
  --p-low: #22c55e;
  --p-low-bg: rgba(34, 197, 94, 0.12);
  --p-focus: #6366f1;
  --p-focus-bg: rgba(99, 102, 241, 0.12);
  --p-break: #0ea5e9;
  --p-break-bg: rgba(14, 165, 233, 0.12);
}

body {
  font-family: 'Sora', sans-serif;
  background: linear-gradient(135deg, #fdf7f0 0%, #fde9d5 55%, #ffd8b0 100%);
  min-height: 100vh;
  color: var(--text-dark);
  overflow: hidden;
}

/* ── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 58px;
  background: rgba(253, 247, 240, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 140, 58, 0.14);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--orange);
  margin-right: auto;
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--text-dark);
}

.nav-tabs {
  display: flex;
  gap: 3px;
}

.nav-tab {
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-soft);
  transition: background var(--tr-fast), color var(--tr-fast);
 color: inherit;
}
nav a {
  text-decoration: none;
}

.nav-tab:hover {
  background: var(--orange-pale);
  color: var(--text-mid);
}

.nav-tab.active {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 10px var(--orange-glow);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-date {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 500;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-light), var(--orange-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px var(--orange-glow);
  cursor: pointer;
}

/* ── APP SHELL ─────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: 1fr 360px;
  height: 100vh;
  padding-top: 58px;
  overflow: hidden;
}

/* ── SCHEDULE PANEL ────────────────────────────────────── */
.schedule-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255, 140, 58, 0.12);
}

.schedule-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: rgba(253, 247, 240, 0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 140, 58, 0.1);
}

.schedule-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  flex: 1;
}

.view-toggle {
  display: flex;
  gap: 3px;
  background: rgba(255, 140, 58, 0.08);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.view-btn {
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-soft);
  transition: all var(--tr-fast);
}

.view-btn.active {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 1px 6px rgba(180, 80, 20, 0.12);
}

.nav-arrows {
  display: flex;
  gap: 4px;
}

.arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 140, 58, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--tr-fast);
}

.arrow-btn:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.today-btn {
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  background: rgba(255, 255, 255, 0.6);
  color: var(--orange);
  transition: all var(--tr-fast);
}

.today-btn:hover {
  background: var(--orange);
  color: #fff;
}

/* ── TIMELINE ──────────────────────────────────────────── */
.timeline-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px 40px;
  position: relative;
}

.timeline-scroll::-webkit-scrollbar {
  width: 4px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 140, 58, 0.25);
  border-radius: 99px;
}

.timeline {
  position: relative;
  min-height: 1080px; /* 18 hours × 60px */
}

/* Hour rows */
.hour-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  height: 60px;
  border-bottom: 1px solid rgba(255, 140, 58, 0.07);
  position: relative;
}

.hour-row:hover .hour-dropzone {
  background: rgba(255, 107, 0, 0.04);
}

.hour-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  font-weight: 500;
  padding: 4px 8px 0 0;
  text-align: right;
  position: relative;
  top: -8px;
  white-space: nowrap;
}

.hour-dropzone {
  position: relative;
  border-radius: 6px;
  transition: background var(--tr-fast);
  cursor: pointer;
}

.hour-dropzone.drag-over {
  background: rgba(255, 107, 0, 0.08) !important;
  outline: 2px dashed rgba(255, 107, 0, 0.4);
  outline-offset: -2px;
}

.hour-dropzone.suggested {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.06), rgba(255, 107, 0, 0.02));
  animation: suggestPulse 2s ease-in-out infinite;
}

@keyframes suggestPulse {
  0%, 100% { background: rgba(255, 107, 0, 0.06); }
  50%       { background: rgba(255, 107, 0, 0.13); }
}

/* Current time line */
.time-line {
  position: absolute;
  left: 52px;
  right: 0;
  height: 2px;
  background: var(--orange);
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 0 8px var(--orange-glow);
}

.time-line::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange-glow);
}

.time-line-label {
  position: absolute;
  right: 8px;
  top: -9px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(255, 247, 240, 0.9);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Task blocks */
.task-block {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 10px;
  padding: 7px 10px;
  cursor: grab;
  transition: box-shadow var(--tr-fast), transform 0.12s ease, opacity var(--tr-fast);
  border-left: 3px solid transparent;
  overflow: hidden;
  user-select: none;
  z-index: 10;
  min-height: 30px;
}

.task-block:active {
  cursor: grabbing;
}

.task-block.dragging {
  opacity: 0.75;
  transform: scale(1.02) rotate(0.5deg);
  box-shadow: 0 12px 32px rgba(100, 40, 0, 0.22);
  z-index: 100;
  cursor: grabbing;
}

.task-block.conflict {
  animation: conflictShake 0.4s ease;
  border: 2px solid var(--p-high) !important;
}

@keyframes conflictShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

.task-block.suggested-block {
  animation: blockGlow 2s ease-in-out infinite;
  border-style: dashed !important;
}

@keyframes blockGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
  50%       { box-shadow: 0 0 12px 3px rgba(255, 107, 0, 0.28); }
}

.task-block-name {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-block-time {
  font-size: 0.67rem;
  margin-top: 2px;
  opacity: 0.75;
}

.task-block-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
}

/* Resize handle */
.resize-handle {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  cursor: ns-resize;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resize-handle::before {
  content: '';
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
}

/* Priority color variants */
.p-high   { background: var(--p-high-bg);  border-left-color: var(--p-high);  color: #7a0000; }
.p-med    { background: var(--p-med-bg);   border-left-color: var(--p-med);   color: var(--orange-deep); }
.p-low    { background: var(--p-low-bg);   border-left-color: var(--p-low);   color: #166534; }
.p-focus  { background: var(--p-focus-bg); border-left-color: var(--p-focus); color: #312e81; }
.p-break  { background: var(--p-break-bg); border-left-color: var(--p-break); color: #0c4a6e; }

/* Conflict badge */
.conflict-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--p-high);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  animation: badgeIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes badgeIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── AI PANEL ──────────────────────────────────────────── */
.ai-panel {
  display: flex;
  flex-direction: column;
  background: rgba(253, 247, 240, 0.7);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.ai-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 140, 58, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ai-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 3px 10px var(--orange-glow);
  flex-shrink: 0;
}

.ai-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  flex: 1;
}

.ai-title span {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-soft);
  margin-top: 1px;
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: var(--p-low);
  font-weight: 600;
}

.ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-low);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Quick action buttons */
.ai-actions {
  padding: 12px 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 140, 58, 0.08);
  flex-shrink: 0;
}

.ai-quick-btn {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--tr-fast);
  white-space: nowrap;
}

.ai-quick-btn.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 10px var(--orange-glow);
}

.ai-quick-btn.primary:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.ai-quick-btn.secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-mid);
  border: 1px solid rgba(255, 140, 58, 0.2);
}

.ai-quick-btn.secondary:hover {
  background: var(--orange-pale);
  color: var(--orange);
}

/* Chat area */
.ai-chat {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-chat::-webkit-scrollbar {
  width: 3px;
}

.ai-chat::-webkit-scrollbar-thumb {
  background: rgba(255, 140, 58, 0.2);
  border-radius: 99px;
}

/* Messages */
.msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: msgIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.msg.user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

.msg-avatar.ai {
  background: linear-gradient(135deg, var(--orange-light), var(--orange-deep));
  color: #fff;
  font-size: 0.7rem;
}

.msg-avatar.user {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

.msg-bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.msg.ai .msg-bubble {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 140, 58, 0.14);
  color: var(--text-dark);
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 2px 8px rgba(180, 80, 20, 0.07);
}

.msg.user .msg-bubble {
  background: var(--orange);
  color: #fff;
  border-radius: 14px 4px 14px 14px;
}

/* AI suggestion card inside bubble */
.suggestion-card {
  margin-top: 8px;
  background: rgba(255, 107, 0, 0.07);
  border: 1px solid rgba(255, 107, 0, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-mid);
  cursor: pointer;
  padding: 3px 4px;
  border-radius: 6px;
  transition: background var(--tr-fast);
}

.suggestion-item:hover {
  background: rgba(255, 107, 0, 0.08);
}

.suggestion-item .si-icon {
  font-size: 0.8rem;
  flex-shrink: 0;
}

.suggestion-item .si-apply {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-pale);
  padding: 1px 7px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.suggestion-item .si-apply:hover {
  background: var(--orange);
  color: #fff;
}

/* Conflict alert */
.conflict-alert {
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 8px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.conflict-alert .ca-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.conflict-alert .ca-text {
  font-size: 0.72rem;
  color: #7a0000;
  line-height: 1.5;
}

.conflict-alert .ca-fix {
  margin-top: 5px;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--p-high);
  background: rgba(255, 68, 68, 0.1);
  padding: 2px 8px;
  border-radius: 99px;
  cursor: pointer;
  border: none;
  transition: all var(--tr-fast);
}

.conflict-alert .ca-fix:hover {
  background: var(--p-high);
  color: #fff;
}

/* Typing indicator */
.typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 140, 58, 0.12);
  border-radius: 4px 14px 14px 14px;
  width: fit-content;
}

.typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-soft);
  animation: typingDot 1.2s ease-in-out infinite;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(1); opacity: 0.4; }
  40%           { transform: scale(1.2); opacity: 1; }
}

/* Input area */
.ai-input-area {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 140, 58, 0.1);
  flex-shrink: 0;
}

.ai-input-row {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

.ai-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 140, 58, 0.2);
  border-radius: 14px;
  padding: 9px 12px;
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  color: var(--text-dark);
  outline: none;
  resize: none;
  line-height: 1.5;
  max-height: 80px;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.ai-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.ai-input::placeholder {
  color: var(--text-soft);
}

.ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--orange);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--orange-glow);
  transition: all var(--tr-fast);
  flex-shrink: 0;
}

.ai-send-btn:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.ai-send-btn:active {
  transform: scale(0.95);
}

.voice-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 140, 58, 0.2);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
  flex-shrink: 0;
}

.voice-btn:hover {
  background: var(--orange-pale);
  color: var(--orange);
  border-color: var(--orange);
}

.voice-btn.listening {
  background: rgba(255, 68, 68, 0.1);
  border-color: var(--p-high);
  color: var(--p-high);
  animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(255, 68, 68, 0); }
}

/* Quick chips */
.ai-chips {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.ai-chip {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.67rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 140, 58, 0.18);
  color: var(--text-soft);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.ai-chip:hover {
  background: var(--orange-pale);
  color: var(--orange);
  border-color: var(--orange);
}

/* ── EDIT MODAL ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 15, 0, 0.35);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fdf7f0;
  border-radius: 22px;
  padding: 22px;
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(255, 140, 58, 0.2);
  box-shadow: 0 20px 60px rgba(100, 40, 0, 0.2);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.modal-overlay.open .modal {
  transform: none;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--orange-pale);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
}

.modal-close:hover {
  background: var(--orange);
  color: #fff;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
  display: block;
}

.form-input,
.form-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 140, 58, 0.22);
  background: rgba(255, 255, 255, 0.75);
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.btn-primary {
  padding: 8px 20px;
  border-radius: 99px;
  border: none;
  background: var(--orange);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--orange-glow);
  transition: all var(--tr-fast);
}

.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 8px 20px;
  border-radius: 99px;
  border: 1.5px solid rgba(255, 140, 58, 0.25);
  background: transparent;
  color: var(--text-soft);
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.btn-secondary:hover {
  background: var(--orange-pale);
  color: var(--text-mid);
}

.btn-danger {
  padding: 8px 16px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 68, 68, 0.1);
  color: var(--p-high);
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr-fast);
  margin-right: auto;
}

.btn-danger:hover {
  background: var(--p-high);
  color: #fff;
}

/* ── TOAST ─────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 15, 0, 0.88);
  color: #fff;
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
