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

/* ========== ROOT & RESET ========== */
.tnt-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
.tnt-wrap {
  --c-bg:      #0f1117;
  --c-surface: #171c28;
  --c-card:    #1e2535;
  --c-border:  #2a3347;
  --c-accent:  #f97316;
  --c-accent2: #fbbf24;
  --c-text:    #e8edf5;
  --c-muted:   #7a8ba0;
  --c-free:    #22c55e;
  --c-partial: #f97316;
  --c-full:    #ef4444;
  --r:         14px;
  --shadow:    0 20px 60px rgba(0,0,0,.5);

  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--c-text);
  background: var(--c-bg);
  border-radius: 20px;
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

/* ========== HEADER ========== */
.tnt-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #1a2235 0%, #0f1520 100%);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
.tnt-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f97316' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.tnt-header-icon {
  font-size: 36px;
  width: 56px;
  height: 56px;
  background: var(--c-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(249,115,22,.4);
  position: relative;
}
.tnt-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.tnt-subtitle {
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 3px;
}
.tnt-price-badge {
  margin-left: auto;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.3);
  color: var(--c-accent);
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tnt-price-badge + .tnt-price-badge { margin-left: 8px; }
.tnt-price-badge span {
  font-size: 13px;
  font-weight: 400;
  opacity: .7;
}

/* ========== STEPPER ========== */
.tnt-stepper {
  display: flex;
  align-items: center;
  padding: 20px 32px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.tnt-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .4;
  transition: opacity .3s;
}
.tnt-step--active { opacity: 1; }
.tnt-step--done   { opacity: .7; }
.tnt-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--c-muted);
  transition: all .3s;
  flex-shrink: 0;
}
.tnt-step--active .tnt-step-num {
  border-color: var(--c-accent);
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(249,115,22,.5);
}
.tnt-step--done .tnt-step-num {
  border-color: var(--c-free);
  background: var(--c-free);
  color: #fff;
}
.tnt-step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
}
.tnt-step--active .tnt-step-label { color: var(--c-text); }
.tnt-step-line {
  flex: 1;
  height: 1px;
  background: var(--c-border);
  margin: 0 16px;
}

/* ========== PANELS ========== */
.tnt-panel { display: none; padding: 32px; }
.tnt-panel--active { display: block; animation: alb-fade-in .35s ease; }
@keyframes alb-fade-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ========== CALENDAR ========== */
.tnt-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tnt-cal-nav {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.tnt-cal-nav:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: scale(1.05);
}
.tnt-cal-month {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.tnt-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-muted);
  margin-bottom: 10px;
}
.tnt-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.tnt-cal-day {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  border: 1px solid transparent;
  background: var(--c-card);
  font-size: 14px;
  font-weight: 500;
}
.tnt-cal-day:hover:not(.tnt-cal-empty):not(.tnt-cal-past):not(.tnt-cal-full) {
  border-color: var(--c-accent);
  transform: scale(1.06);
  z-index: 1;
}
.tnt-cal-day .tnt-day-num { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; }
.tnt-cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 3px;
  transition: transform .2s;
}
.tnt-cal-day:hover .tnt-cal-dot { transform: scale(1.4); }
.tnt-cal-empty { background: transparent; border: none; pointer-events: none; }
.tnt-cal-past { opacity: .25; cursor: not-allowed; pointer-events: none; }
.tnt-cal-full  { opacity: .45; cursor: not-allowed; }
.tnt-cal-full .tnt-cal-dot  { background: var(--c-full); }
.tnt-cal-partial .tnt-cal-dot { background: var(--c-partial); }
.tnt-cal-free .tnt-cal-dot  { background: var(--c-free); }
.tnt-cal-today {
  border-color: var(--c-border) !important;
  background: var(--c-surface) !important;
}
.tnt-cal-today .tnt-day-num { color: var(--c-accent); }
.tnt-cal-selected {
  border-color: var(--c-accent) !important;
  background: rgba(249,115,22,.15) !important;
  box-shadow: 0 0 0 1px var(--c-accent), 0 0 20px rgba(249,115,22,.2);
}
.tnt-cal-loading { grid-column: 1/-1; text-align:center; padding:40px; color:var(--c-muted); font-size:13px; }

.tnt-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--c-muted);
}
.tnt-leg {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.tnt-leg--free    { background: var(--c-free); }
.tnt-leg--partial { background: var(--c-partial); }
.tnt-leg--full    { background: var(--c-full); }

/* ========== PANEL 2 — TIME SLOTS ========== */
.tnt-p2-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.tnt-p2-header h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.tnt-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-muted);
  margin-bottom: 14px;
  display: block;
}
.tnt-lifts-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.tnt-lift-block {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  overflow: hidden;
}
.tnt-lift-title {
  padding: 14px 18px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tnt-lift-title span { font-size: 20px; }
.tnt-slots-col { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.tnt-slot-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-align: left;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tnt-slot-btn:hover:not(.tnt-slot-busy) {
  border-color: var(--c-accent);
  background: rgba(249,115,22,.1);
  transform: translateX(2px);
}
.tnt-slot-btn.tnt-slot-selected {
  border-color: var(--c-accent);
  background: rgba(249,115,22,.2);
  color: #fff;
  box-shadow: 0 4px 16px rgba(249,115,22,.3);
}
.tnt-slot-busy {
  opacity: .3;
  cursor: not-allowed;
  text-decoration: line-through;
}
.tnt-slot-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tnt-slot-free .tnt-slot-dot   { background: var(--c-free); }
.tnt-slot-busy .tnt-slot-dot   { background: var(--c-full); }

.tnt-duration-wrap {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 20px 24px;
  animation: alb-fade-in .3s ease;
}
.tnt-hours-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
/* Duration tabs */
.tnt-dur-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.tnt-dur-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}
.tnt-dur-tab:hover { border-color: var(--c-accent); color: var(--c-text); }
.tnt-dur-tab--active {
  border-color: var(--c-accent);
  background: rgba(249,115,22,.12);
  color: var(--c-accent);
}

.tnt-day-info {
  padding: 16px 20px;
  background: rgba(249,115,22,.08);
  border: 1px solid rgba(249,115,22,.25);
  border-radius: 10px;
  font-size: 14px;
  color: var(--c-text);
  margin-bottom: 16px;
}
.tnt-day-info strong { color: var(--c-accent); }
.tnt-day-price { color: var(--c-accent); font-weight: 700; margin-left: 8px; }

/* Second price badge */
.tnt-price-day {
  margin-left: 8px;
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.3);
  color: var(--c-free);
}

.tnt-hour-btn {
  min-width: 58px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px 10px;
}
.tnt-hour-btn small { font-size: 9px; font-weight: 500; opacity: .6; font-family: 'DM Sans', sans-serif; }
.tnt-hour-btn:hover { border-color: var(--c-accent); }
.tnt-hour-btn.selected {
  border-color: var(--c-accent);
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(249,115,22,.4);
}
.tnt-hour-btn.selected small { opacity: .9; }
.tnt-hour-btn:disabled { opacity: .2; cursor: not-allowed; }

.tnt-btn-confirm, .tnt-btn-submit, .tnt-btn-new {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 8px 24px rgba(249,115,22,.3);
}
.tnt-btn-confirm:hover, .tnt-btn-submit:hover { background: #ea6c0a; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(249,115,22,.4); }
.tnt-btn-confirm:disabled, .tnt-btn-submit:disabled { opacity:.6; cursor:not-allowed; transform:none; }

.tnt-back {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tnt-back:hover { color: var(--c-text); border-color: var(--c-text); }
.tnt-back--bottom { width: 100%; margin-top: 12px; }

/* ========== PANEL 3 — FORM ========== */
.tnt-booking-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: rgba(249,115,22,.1);
  border: 1px solid rgba(249,115,22,.3);
  border-radius: var(--r);
}
.tnt-chip-item {
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tnt-chip-item::after { content: '·'; margin-left: 8px; color: var(--c-border); }
.tnt-chip-item:last-child::after { display: none; }

.tnt-form { display: flex; flex-direction: column; gap: 16px; }
.tnt-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-muted);
  margin-bottom: 7px;
}
.tnt-field label em { color: var(--c-accent); font-style: normal; }
.tnt-field input,
.tnt-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--c-card);
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  color: var(--c-text);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.tnt-field input:focus,
.tnt-field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.tnt-field input::placeholder,
.tnt-field textarea::placeholder { color: var(--c-muted); }
.tnt-error {
  color: #f87171;
  font-size: 13px;
  padding: 12px 16px;
  background: rgba(239,68,68,.1);
  border-radius: 8px;
  margin-top: 8px;
}

/* ========== SUCCESS ========== */
.tnt-success {
  text-align: center;
  padding: 20px;
}
.tnt-success-ring {
  width: 90px; height: 90px;
  margin: 0 auto 24px;
  animation: alb-ring-pop .6s cubic-bezier(.36,1.6,.5,1);
}
@keyframes alb-ring-pop { from { transform: scale(0) rotate(-20deg); opacity:0; } to { transform: scale(1); opacity:1; } }
.tnt-success-ring circle { stroke: var(--c-free); stroke-dasharray: 157; stroke-dashoffset: 157; animation: alb-ring-draw .7s .3s ease forwards; }
.tnt-success-ring path { stroke: var(--c-free); stroke-dasharray: 50; stroke-dashoffset: 50; animation: alb-ring-draw .5s .8s ease forwards; }
@keyframes alb-ring-draw { to { stroke-dashoffset: 0; } }
.tnt-success h3 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--c-free);
  margin-bottom: 20px;
}
.tnt-success-details {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 28px;
  text-align: left;
}
.tnt-detail-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
}
.tnt-detail-row:last-child { border-bottom: none; }
.tnt-detail-row em { font-style: normal; color: var(--c-muted); font-size: 12px; min-width: 90px; }
.tnt-detail-row strong { color: var(--c-text); font-weight: 600; }
.tnt-btn-new {
  background: var(--c-card);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  box-shadow: none;
  font-size: 14px;
  max-width: 220px;
  margin: 0 auto;
}
.tnt-btn-new:hover { background: var(--c-surface); border-color: var(--c-accent); color: var(--c-accent); transform: none; box-shadow: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .tnt-header { padding: 20px; flex-wrap: wrap; }
  .tnt-price-badge { font-size: 17px; padding: 8px 14px; }
  .tnt-stepper { padding: 16px 20px; }
  .tnt-step-label { display: none; }
  .tnt-panel { padding: 20px; }
  .tnt-lifts-wrap { grid-template-columns: 1fr; }
  .tnt-cal-day { font-size: 12px; border-radius: 7px; }
  .tnt-day-num { font-size: 13px; }
}

.tnt-cal-dayoff{background:#1e1e28;cursor:not-allowed;}
.tnt-cal-dayoff .tnt-day-num{opacity:.3;}
.tnt-cal-dayoff::after{content:"вих";position:absolute;bottom:2px;left:50%;transform:translateX(-50%);font-size:8px;color:#555;text-transform:uppercase;}
