﻿:root{
  --bg1:#0a0f1b;
  --bg2:#0b1424;

  --card: rgba(20, 26, 36, .62);
  --stroke: rgba(255,255,255,.10);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --muted2: rgba(255,255,255,.42);

  --accent: #6fb6ff;
  --accent-green: #7ad9d0;
  --accent-yellow: #ffd37b;
  --accent-red: #ff8b7a;
  --accent-rgb: 111,182,255;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --r: 18px;
  --font-body: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(1200px 800px at 50% -10%, #1c2a52 0%, transparent 60%),
              linear-gradient(180deg, var(--bg2), var(--bg1));
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  -webkit-touch-callout: none;
}

body.sheet-open {
  overflow: hidden;
}

body:not(.authenticated) .auth-only {
  display: none;
}

body:not(.is-tufan) .settings-only {
  display: none;
}

body.authenticated .auth-gate {
  display: none;
}

body:not(.authenticated) .tab-content,
body:not(.authenticated) .tab-nav,
body:not(.authenticated) .availability-compact,
body:not(.authenticated) .availability-expanded,
body:not(.authenticated) .availability-sheet,
body:not(.authenticated) .foot {
  filter: blur(4px);
  pointer-events: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 14, .75);
  backdrop-filter: blur(6px);
  z-index: 4000;
}

.auth-card {
  width: min(380px, 92vw);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(180deg, rgba(20, 26, 36, .95), rgba(12, 16, 22, .9));
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-error {
  font-size: 12px;
  color: #ff9a9a;
  min-height: 16px;
}

.settings-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(15, 18, 28, .6);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3000;
  backdrop-filter: blur(8px);
}

.settings-fab:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.35);
}

.settings-fab .lucide {
  width: 18px;
  height: 18px;
}


h1, h2, h3,
.card__title,
.quick-bar__title,
.trip__name,
.tab-label {
  font-family: var(--font-display);
  letter-spacing: 0.2px;
}

/* Background */
.bg{
  position: fixed;
  inset:0;
  background:
    radial-gradient(900px 500px at 70% 15%, rgba(120,170,255,.22), transparent 60%),
    radial-gradient(700px 450px at 30% 20%, rgba(80,120,200,.18), transparent 60%),
    radial-gradient(700px 500px at 80% 80%, rgba(70,120,180,.16), transparent 60%),
    url("./assets/bg.png");
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  filter: saturate(1.1) contrast(1.05);
  z-index:-3;
}
.bg-overlay{
  position: fixed;
  inset:0;
  background: linear-gradient(180deg, rgba(10,14,22,.55), rgba(8,10,16,.86));
  backdrop-filter: blur(2px);
  z-index:-2;
}

/* ====================
   QUICK ACTION BAR
   ==================== */
.quick-bar {
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(18, 24, 36, .75), rgba(12, 18, 30, .65));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: riseIn 0.5s ease both;
}

.quick-bar__left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.quick-bar__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.quick-bar__date {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.quick-bar__sub {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}

.quick-bar__actions {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  justify-content: flex-end;
}

.quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .12));
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-btn--primary {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .5), rgba(var(--accent-rgb), .24));
  border-color: rgba(var(--accent-rgb), .55);
  box-shadow: 0 12px 30px rgba(40, 90, 160, .35);
}

.quick-btn--secondary {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.18);
  color: var(--muted);
}

.quick-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.16);
  color: var(--muted);
}

.quick-btn--wide {
  padding: 12px 20px;
}

.quick-btn--tiny {
  padding: 8px 10px;
  font-size: 12px;
}

.quick-btn--tiny .quick-btn__label {
  display: inline;
}

.quick-btn:hover {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .32), rgba(var(--accent-rgb), .2));
  border-color: rgba(var(--accent-rgb), .38);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.quick-btn--secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.28);
  color: var(--text);
}

.quick-btn--ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.24);
  color: var(--text);
}

.quick-btn__icon {
  font-size: 16px;
}

.quick-btn__label {
  display: inline;
}

@media (max-width: 640px) {
  .quick-btn__label { display: none; }
  .quick-btn { padding: 10px 12px; }
}

/* ====================
   KOMPAKTER VERFÜGBARKEITSKALENDER
   ==================== */
.availability-compact {
  max-width: 1200px;
  margin: 14px auto 12px;
  padding: 0 20px;
}

.availability-compact__row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--card), rgba(12, 16, 22, .45));
  border: 1px solid var(--stroke);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  scrollbar-width: none;
}

.availability-compact__row::-webkit-scrollbar { display: none; }

.availability-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  width: 100%;
  justify-content: center;
}

.availability-chip:hover {
  transform: scale(1.02);
}

.availability-chip.today {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(122,167,255,.2);
}

.availability-chip.available {
  background: rgba(110,231,183,.12);
  color: var(--accent-green);
}

.availability-chip.busy {
  background: rgba(255,90,90,.12);
  color: var(--accent-red);
}

.availability-chip.vacation {
  background: rgba(255,224,138,.12);
  color: var(--accent-yellow);
}

.availability-chip__day {
  font-weight: 700;
}

.availability-chip__status {
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.availability-expand-btn {
  display: block;
  margin: 8px auto 0;
  padding: 6px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s;
}

.availability-expand-btn:hover {
  color: var(--text);
}

/* Expandierter Kalender */
.availability-expanded {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0 20px;
  animation: slideDown 0.3s ease;
  max-height: 360px;
  overflow: hidden;
}

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

.availability-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, var(--card), rgba(12, 16, 22, .45));
  border: 1px solid var(--stroke);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  max-height: 360px;
  overflow-y: auto;
  align-content: start;
}

.availability-day {
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.availability-day.available {
  background: rgba(110,231,183,.12);
  border-color: rgba(110,231,183,.35);
}

.availability-day.busy {
  background: rgba(255,90,90,.12);
  border-color: rgba(255,90,90,.35);
}

.availability-day.vacation {
  background: rgba(255,224,138,.12);
  border-color: rgba(255,224,138,.35);
}

.availability-day.today {
  border-color: rgba(var(--accent-rgb), .45);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .25);
}

.availability-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.availability-date {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.availability-status {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.availability-details {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: auto;
}

.availability-sheet {
  position: fixed;
  inset: 0;
  z-index: 2500;
}

.availability-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}

.availability-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 75vh;
  background: linear-gradient(180deg, rgba(18, 22, 30, .95), rgba(10, 14, 20, .92));
  border-top: 1px solid rgba(255,255,255,.12);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
  animation: sheetUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

.availability-sheet__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.availability-sheet__title {
  font-weight: 700;
}

.availability-sheet__body {
  padding: 14px 16px 18px;
  overflow: auto;
}

.availability-sheet .availability-grid-horizontal {
  max-height: none;
}

/* ====================
   TAB NAVIGATION
   ==================== */
.tab-nav {
  max-width: 1200px;
  margin: 6px auto 16px;
  padding: 0 20px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover {
  background: rgba(255,255,255,.08);
  color: var(--text);
}

.tab-btn.active {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .26), rgba(var(--accent-rgb), .12));
  border-color: rgba(var(--accent-rgb), .4);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .15), rgba(var(--accent-rgb), .8), rgba(122,217,208,.8));
}

.tab-icon {
  font-size: 18px;
}

@media (max-width: 640px) {
  .tab-btn {
    flex: 0 0 auto;
    padding: 12px 16px;
  }
  .tab-label { display: none; }
  .tab-icon { font-size: 20px; }
}

/* Tab Content */
.tab-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

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

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

.tab-panel.active .card {
  animation: cardIn 0.45s ease both;
}

.tab-panel.active .card:nth-child(2) { animation-delay: 0.05s; }
.tab-panel.active .card:nth-child(3) { animation-delay: 0.1s; }

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

/* Entertainment Grid */
.entertainment-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: start;
}

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

/* ====================
   CARDS MIT HEADER
   ==================== */
.card {
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--card), rgba(12, 16, 22, .45));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}

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

.card__icon {
  font-size: 20px;
}

.card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .18);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

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

.card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

/* Watchlist Card spezifisch */
.card--watchlist {
  max-height: 600px;
  border-color: rgba(var(--accent-rgb), .35);
  box-shadow: 0 20px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(var(--accent-rgb), .2);
}

.card--watchlist .card__body {
  overflow: hidden;
}

/* Plan Card spezifisch */
.card--plan {
  min-height: 400px;
  background: linear-gradient(180deg, rgba(18, 22, 30, .7), rgba(10, 14, 20, .55));
}

/* ====================
   PLAN BOARD (NEUES DESIGN)
   ==================== */
.plan-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-slot {
  padding: 16px;
  border-radius: 14px;
  border: 2px dashed rgba(255,255,255,.15);
  background: rgba(255,255,255,.03);
  transition: all 0.2s;
  position: relative;
}

.plan-slot--has-item {
  cursor: grab;
}

.plan-slot.dragging {
  opacity: 0.6;
}

.plan-slot.drag-over {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .12);
  transform: scale(1.02);
}

.plan-slot__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.plan-slot__icon {
  font-size: 16px;
}

.plan-slot__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.plan-slot__clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.plan-slot__clear .lucide {
  width: 18px;
  height: 18px;
}

.plan-slot--has-item .plan-slot__clear {
  opacity: 1;
}

.plan-slot__clear:hover {
  background: rgba(255,90,90,.2);
  border-color: rgba(255,90,90,.35);
  color: #ff7a7a;
}

.plan-slot__content {
  min-height: 40px;
}

.plan-slot__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.plan-slot__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.plan-slot__drop {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(122,167,255,.15);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  align-items: center;
}

.plan-slot.drag-over .plan-slot__drop {
  display: flex;
}

.plan-slot--current {
  border-color: rgba(110,231,183,.3);
  background: rgba(110,231,183,.08);
}

.plan-slot--current .plan-slot__label {
  color: var(--accent-green);
}

.plan-slot--paused {
  border-color: rgba(255,224,138,.3);
  background: rgba(255,224,138,.08);
}

.plan-slot--paused .plan-slot__label {
  color: var(--accent-yellow);
}

.plan-slot--next {
  border-color: rgba(122,167,255,.3);
  background: rgba(122,167,255,.08);
}

.plan-slot--next .plan-slot__label {
  color: var(--accent);
}

.plan-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s, max-height 0.2s, padding 0.2s;
}

.dragging-active .plan-hint {
  opacity: 1;
  max-height: 60px;
  padding: 10px 12px;
}

.plan-hint .lucide {
  width: 14px;
  height: 14px;
}

/* ====================
   WATCHLIST MIT DRAG & DROP
   ==================== */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-touch-callout: none;
  user-select: none;
}

.list li {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.06);
}

.watchlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px !important;
  gap: 12px;
  cursor: grab;
  transition: all 0.2s;
  -webkit-touch-callout: none;
  user-select: none;
}

.watchlist-item * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.watchlist-item:active {
  cursor: grabbing;
}

.watchlist-item.dragging {
  opacity: 0.5;
  transform: scale(0.98);
  background: rgba(122,167,255,.15) !important;
  border-color: var(--accent) !important;
}

.watchlist-item.drag-over-item {
  border-top: 2px solid var(--accent);
}

.watchlist-item:hover {
  background: rgba(255,255,255,.06) !important;
}

.watchlist-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  -webkit-touch-callout: none;
  user-select: none;
}

.watchlist-poster {
  width: 60px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
}

.watchlist-poster--empty {
  border-style: dashed;
  background: rgba(255,255,255,.04);
}

.watchlist-text {
  min-width: 0;
  flex: 1;
  -webkit-touch-callout: none;
  user-select: none;
}

.watchlist-text strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.drag-handle {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px;
  cursor: grab;
  opacity: 0.4;
  transition: opacity 0.2s;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.drag-handle:hover {
  opacity: 1;
}

.drag-handle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--muted);
  border-radius: 1px;
}

.item-actions {
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}

.watchlist-item:hover .item-actions {
  opacity: 1;
}

.btn-progress {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-watch {
  width: 58px;
  height: 58px;
  padding: 0;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: rgba(110,231,183,.18);
  border-color: rgba(110,231,183,.4);
  color: #6ee7b7;
}

.btn-remove {
  width: 58px;
  height: 58px;
  padding: 0;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: rgba(255,90,90,.18);
  border-color: rgba(255,90,90,.4);
  color: #ff7a7a;
}

.btn-icon {
  display: block;
}

.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.quick-btn__icon .lucide {
  width: 16px;
  height: 16px;
}

.tab-icon .lucide {
  width: 20px;
  height: 20px;
}

.card__icon .lucide {
  width: 20px;
  height: 20px;
}

.empty-state__icon .lucide {
  width: 28px;
  height: 28px;
}

.availability-chip__status .lucide {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.availability-status .lucide {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.status-badge .lucide {
  width: 12px;
  height: 12px;
  margin-right: 6px;
}

.plan-menu-item .lucide {
  width: 14px;
  height: 14px;
  margin-right: 8px;
}

.btn-icon.lucide {
  width: 18px;
  height: 18px;
}

.btn-watch:hover {
  background: rgba(110,231,183,.3);
  border-color: rgba(110,231,183,.6);
  color: #c7f9e3;
}

.btn-remove:hover {
  background: rgba(255,90,90,.3);
  border-color: rgba(255,90,90,.6);
  color: #ffd1d1;
}

/* Touch Drag Ghost */
.drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 18, 28, 0.92);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  pointer-events: none;
  z-index: 3000;
  max-width: 240px;
}

.drag-ghost img,
.drag-ghost__poster {
  width: 42px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.drag-ghost__text {
  min-width: 0;
}

.drag-ghost__title {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drag-ghost__meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 4px;
  font-weight: 600;
}

.status-current {
  background: rgba(110,231,183,.15);
  color: #6ee7b7;
  border: 1px solid rgba(110,231,183,.3);
}

.status-paused {
  background: rgba(255,224,138,.15);
  color: #ffe08a;
  border: 1px solid rgba(255,224,138,.3);
}

.status-next {
  background: rgba(122,167,255,.15);
  color: #7aa7ff;
  border: 1px solid rgba(122,167,255,.3);
}

/* Serien-Fortschritt */
.series-info {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted2);
}

.progress-container {
  margin-top: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.progress-text {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.progress-bar {
  height: 5px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}

.show-mobile {
  display: none;
}

.show-desktop {
  display: inline-flex;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6ee7b7, #7aa7ff);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ====================
   SUCHFELD
   ==================== */
.search-box {
  position: relative;
}

#mediaSearch {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25);
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.2s;
}

#mediaSearch:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,.35);
}

#mediaSearch::placeholder {
  color: rgba(255,255,255,.4);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(20, 26, 36, 0.98);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  margin-top: 4px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.search-result-item {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: rgba(255,255,255,.08);
}

.result-poster {
  width: 50px;
  height: 75px;
  border-radius: 6px;
  object-fit: cover;
}

.result-info {
  flex: 1;
}

.result-actions {
  display: flex;
  align-items: center;
}

.result-add {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.result-add:disabled {
  opacity: 0.5;
  cursor: default;
}

.result-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
}

.result-check {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.result-check .lucide {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.result-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.result-rating .lucide {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.result-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ====================
   EVENTS & SPORT
   ==================== */
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.scroll {
  overflow: auto;
  min-height: 0;
  padding-right: 6px;
  scrollbar-width: none;
}

.scroll::-webkit-scrollbar { width: 0; height: 0; }

.fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent);
  mask-image: linear-gradient(to bottom, black 85%, transparent);
}

.event, .sport {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: all 0.2s;
}

.event:hover, .sport:hover {
  background: rgba(255,255,255,.08);
}

.event__title, .sport__title {
  font-weight: 700;
  font-size: 14px;
}

.event__sub, .sport__sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.event__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn .lucide {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.filter-btn:hover {
  background: rgba(255,255,255,.1);
  color: var(--text);
}

.filter-btn.active {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .12));
  border-color: rgba(var(--accent-rgb), .4);
  color: var(--accent);
}

/* Badges */
.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(110,231,183,.10);
  border: 1px solid rgba(110,231,183,.22);
  color: rgba(190,255,230,.9);
}

.team-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(122,167,255,.15);
  border: 1px solid rgba(122,167,255,.25);
  color: #7aa7ff;
  font-weight: 600;
}

.team-badge--cl {
  background: rgba(255,215,0,.15);
  border-color: rgba(255,215,0,.25);
  color: #ffd700;
}

.sport--primary {
  background: rgba(255,90,90,.14);
  border-color: rgba(255,90,90,.35);
  box-shadow: 0 0 0 1px rgba(255,90,90,.18), 0 14px 40px rgba(0,0,0,.35);
}

/* ====================
   URLAUB / TRIP
   ==================== */
.trip {
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.trip__top {
  margin-bottom: 12px;
}

.trip__name {
  font-weight: 800;
  font-size: 20px;
}

.trip__dates {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.trip__countdown {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(110,231,183,.15), rgba(122,167,255,.15));
  color: var(--accent-green);
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}

.trip__line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.trip__img {
  position: absolute;
  right: -30px;
  bottom: -44px;
  width: 180px;
  height: 130px;
  border-radius: 18px;
  background:
    radial-gradient(120px 80px at 60% 40%, rgba(110,231,183,.35), transparent 60%),
    radial-gradient(120px 80px at 35% 55%, rgba(120,170,255,.26), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.06));
  border: 1px solid rgba(255,255,255,.10);
  transform: rotate(-6deg);
  opacity: .9;
  pointer-events: none;
}

.flights-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

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

.flight-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px;
}

.flight-header {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.flight-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.flight-hint {
  width: 100%;
  font-size: 11px;
  color: var(--muted2);
}

.flight-input {
  flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.flight-info {
  width: 100%;
}

.flight-route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.flight-time {
  color: var(--text);
  margin-bottom: 4px;
}

.flight-status {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(122,255,122,.15);
  border-radius: 6px;
  font-size: 12px;
  margin-top: 6px;
}

/* ====================
   BUTTONS
   ==================== */
.chip {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.chip:hover {
  background: rgba(255,255,255,.1);
}

.btn {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn:hover {
  background: rgba(255,255,255,.12);
}

.btn--wide { width: 100%; }

.btn--blue {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .32), rgba(var(--accent-rgb), .18));
  border-color: rgba(var(--accent-rgb), .38);
}

.btn--small {
  padding: 8px 12px;
  font-size: 13px;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.18);
  color: var(--muted);
}

.btn--ghost:hover {
  background: rgba(255,255,255,.08);
  color: var(--text);
}

.btn-small {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.07);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-small:hover {
  background: rgba(255,255,255,.12);
  color: var(--text);
}

.btn-tiny {
  padding: 4px 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-tiny:hover {
  background: rgba(255,255,255,.12);
  color: var(--text);
}

/* ====================
   MODALS
   ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s;
}

.modal-content {
  background: linear-gradient(180deg, rgba(20, 26, 36, .95), rgba(12, 16, 22, .90));
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: slideUp 0.3s;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255,90,90,.2);
  border-color: rgba(255,90,90,.3);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-content--large {
  max-width: 600px;
  max-height: 80vh;
}

.modal-body--scroll {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
}

/* Form Inputs */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,.4);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.range-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.range-input:hover {
  background: rgba(0,0,0,.3);
}

.range-hidden {
  display: none;
}

.range-picker {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(14, 18, 26, .95);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}

.range-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.range-picker__header-title {
  font-weight: 700;
  font-size: 12px;
}

.range-picker__title {
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  margin-bottom: 4px;
}

.range-picker__nav {
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  border-radius: 8px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 11px;
}

.range-picker__nav:hover {
  background: rgba(255,255,255,.12);
  color: var(--text);
}

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

.range-picker__month {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 6px;
}

.range-picker__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}

.range-picker__weekdays div {
  text-align: center;
}

.range-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  grid-auto-rows: 28px;
}

.range-picker__day {
  height: 28px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 10px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.range-picker__day:hover {
  background: rgba(255,255,255,.12);
}

.range-picker__day.is-disabled {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.range-picker__day.is-in-range {
  background: rgba(var(--accent-rgb), .28);
  border-color: rgba(var(--accent-rgb), .35);
}

.range-picker__day.is-start,
.range-picker__day.is-end {
  background: rgba(var(--accent-rgb), .7);
  border-color: rgba(var(--accent-rgb), .85);
  color: white;
  font-weight: 700;
}

.range-picker__day.is-today {
  border-color: rgba(var(--accent-rgb), .95);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .45);
}

.range-picker__footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

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

.quick-datetime {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* Progress Editor */
.progress-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.progress-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-control {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-control:hover {
  background: rgba(255,255,255,.15);
}

.progress-controls input,
.progress-select {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-family: inherit;
}

.progress-select {
  cursor: pointer;
  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='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

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

.note-color-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.note-color {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,.8);
}

.note-color.active {
  border-color: rgba(var(--accent-rgb), .9);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .25);
}

.note-color.blue { background: rgba(92, 140, 210, .45); }
.note-color.mint { background: rgba(94, 196, 176, .45); }
.note-color.peach { background: rgba(255, 167, 119, .45); }
.note-color.sand { background: rgba(255, 211, 123, .45); }

.quick-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.quick-actions .btn {
  flex: 1;
  font-size: 13px;
  padding: 10px;
}

/* Plan Menu Dropdown */
.plan-menu {
  background: rgba(20, 26, 36, 0.98);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  backdrop-filter: blur(10px);
  z-index: 1000;
  min-width: 160px;
}

.plan-menu-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-menu-item:hover {
  background: rgba(255,255,255,.1);
}

.plan-menu-item.active {
  background: rgba(122,167,255,.2);
  color: #7aa7ff;
  font-weight: 600;
}

.plan-menu-clear {
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 4px;
  padding-top: 10px !important;
}

.plan-menu-clear:hover {
  color: #ff7a7a;
  background: rgba(255,122,122,.1);
}

/* ====================
   UTILITIES
   ==================== */
.muted { color: var(--muted); font-size: 13px; }
.muted2 { color: var(--muted2); font-size: 12px; }
.grow { flex: 1 1 auto; min-height: 0; }
.placeholder {
  text-align: center;
  color: var(--muted2);
  font-style: italic;
  padding: 30px 10px !important;
}

/* Trips Liste */
.trips-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trips-footer {
  display: flex;
  justify-content: flex-end;
}

.events-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Notes */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 110px);
  gap: 10px;
  justify-content: start;
}

.notes-board {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notes-board--modal {
  background: rgba(10, 14, 22, .6);
  border-color: rgba(255,255,255,.14);
}

.notes-board__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notes-board__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.notes-board__surface {
  min-height: 240px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  padding: 12px;
  background: rgba(0,0,0,.15);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
}

.notes-board--modal .notes-board__surface {
  min-height: 360px;
}

.notes-board__surface::-webkit-scrollbar {
  width: 6px;
}

.notes-board__surface::-webkit-scrollbar-track {
  background: transparent;
}

.notes-board__surface::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 999px;
}

.notes-empty {
  min-height: 200px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  gap: 6px;
  cursor: pointer;
}

.notes-empty__title {
  font-weight: 700;
  color: var(--text);
}

.notes-empty__text {
  font-size: 12px;
}

.note-card {
  border-radius: 10px;
  padding: 8px;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 110px;
  height: 110px;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  position: relative;
  transform: rotate(var(--note-tilt, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding-bottom: 26px;
  overflow: hidden;
}

.note-card__author {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.15);
  color: rgba(20, 16, 10, .85);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.note-card:hover {
  transform: translateY(-2px) rotate(var(--note-tilt, 0deg));
  box-shadow: 0 14px 26px rgba(0,0,0,.35);
}

.note-card__title {
  font-weight: 700;
  font-size: 13px;
  color: rgba(20, 16, 10, .9);
  padding-left: 22px;
}

.note-card__text {
  font-size: 11px;
  color: rgba(20, 16, 10, .7);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.note-card__meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: rgba(20, 16, 10, .5);
}

.note-card__delete {
  border: none;
  background: rgba(0,0,0,.12);
  color: rgba(20, 16, 10, .7);
  border-radius: 8px;
  padding: 4px 6px;
  cursor: pointer;
  position: absolute;
  right: 6px;
  bottom: 6px;
}

.note-card__delete:hover {
  color: rgba(20, 16, 10, .85);
  background: rgba(20, 16, 10, .18);
}

.note-card.note-blue {
  background: linear-gradient(180deg, #8fd3ff, #72b4f0);
}

.note-card.note-mint {
  background: linear-gradient(180deg, #8ff3d6, #6bd8b6);
}

.note-card.note-peach {
  background: linear-gradient(180deg, #ffc79f, #ffac7d);
}

.note-card.note-sand {
  background: linear-gradient(180deg, #ffe594, #ffd264);
}

.note-card::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,.25);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  border-radius: 2px;
  opacity: 0.6;
}

.note-detail {
  border-radius: 12px;
  padding: 14px;
  min-height: 160px;
  color: rgba(20, 16, 10, .85);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  position: relative;
}

.note-detail__author {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  color: rgba(20, 16, 10, .9);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.note-detail__text {
  padding-left: 28px;
  padding-top: 4px;
}

.note-detail__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.note-detail__text {
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 13px;
}

.note-detail__meta {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 11px;
  color: rgba(20, 16, 10, .6);
  text-align: left;
}

.note-detail.note-blue {
  background: linear-gradient(180deg, #8fd3ff, #72b4f0);
}

.note-detail.note-mint {
  background: linear-gradient(180deg, #8ff3d6, #6bd8b6);
}

.note-detail.note-peach {
  background: linear-gradient(180deg, #ffc79f, #ffac7d);
}

.note-detail.note-sand {
  background: linear-gradient(180deg, #ffe594, #ffd264);
}

.trip__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

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

.empty-state__icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.empty-state__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.empty-state__text {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

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

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 1024px) {
  .quick-bar__left { width: 100%; }
  .quick-bar__actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .quick-bar__title { font-size: 28px; }
  .quick-btn { flex: 1 1 calc(33.333% - 8px); justify-content: center; }
  .tab-nav { flex-wrap: wrap; gap: 8px; }
  .tab-btn { flex: 1 1 calc(50% - 8px); }
  .availability-compact__row { padding: 10px 12px; }
  .availability-chip { font-size: 12px; padding: 7px 10px; }
  .entertainment-grid { grid-template-columns: 1fr; }
  .card--watchlist { max-height: 520px; }
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 900px) {
  .availability-grid-horizontal {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .quick-bar {
    padding: 12px 16px;
  }

  .quick-bar__title {
    font-size: 24px;
  }

  .quick-bar__date {
    font-size: 13px;
  }

  .availability-grid-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }

  .availability-day {
    min-height: 100px;
  }

  .availability-compact__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .availability-chip {
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    font-size: 11px;
  }

  .availability-chip__status {
    gap: 4px;
    font-size: 10px;
  }

  .tab-content {
    padding: 0 16px 16px;
  }

  .entertainment-grid {
    gap: 12px;
  }

  .card__header {
    padding: 12px 14px;
  }

  .card__body {
    padding: 14px;
  }

  .watchlist-poster {
    width: 50px;
    height: 75px;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 15px;
  }

  .plan-slot {
    padding: 16px;
  }
  .plan-slot__label {
    font-size: 12px;
  }
  .plan-slot__title {
    font-size: 16px;
  }

  .quick-btn {
    padding: 12px 14px;
    font-size: 15px;
  }

  .tab-btn {
    padding: 14px 16px;
    font-size: 15px;
  }

  .card__title {
    font-size: 17px;
  }

  .availability-chip {
    padding: 8px 6px;
    font-size: 11px;
  }

  .availability-compact__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .btn,
  .chip {
    font-size: 14px;
    padding: 10px 14px;
  }

  .btn-small {
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .show-mobile {
    display: inline-flex;
    margin-top: 8px;
    align-self: flex-start;
  }

  .show-desktop {
    display: none;
  }

  body {
    font-size: 19px;
  }

  .quick-bar {
    padding: 16px 16px;
  }

  .quick-bar__left {
    width: 100%;
  }

  .quick-bar__title {
    font-size: 34px;
  }

  .quick-bar__actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .quick-btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding: 16px 18px;
    font-size: 17px;
  }

  .quick-btn--primary {
    flex-basis: 100%;
  }

  .tab-content {
    padding: 0 14px 18px;
  }

  .card__header {
    padding: 14px 14px;
  }

  .card__body {
    padding: 16px;
  }

  .card__title {
    font-size: 21px;
  }

  .watchlist-item {
    padding: 12px 10px !important;
  }

  .btn-progress,
  .btn-watch,
  .btn-remove {
    width: 68px;
    height: 68px;
  }

  .btn-icon.lucide {
    width: 24px;
    height: 24px;
  }

  .plan-slot {
    padding: 14px;
  }

  .plan-slot__title {
    font-size: 16px;
  }

  .notes-board__surface {
    min-height: 300px;
  }

  .settings-fab {
    right: 12px;
    bottom: 12px;
  }
}


