:root {
  --teal-900: #0d3d3d;
  --teal-700: #1a6b6b;
  --teal-500: #2a9d8f;
  --teal-300: #76c7b7;
  --teal-100: #e6f4f1;
  --teal-50: #f2faf8;
  --amber-500: #f4a261;
  --amber-400: #f7b77a;
  --amber-300: #ffd6a5;
  --cream: #fefae0;
  --cream-dark: #f5f0d8;
  --brown: #5c4033;
  --text: #1a2e2e;
  --text-muted: #4a6363;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(13, 61, 61, 0.12);
  --shadow-lg: 0 12px 48px rgba(13, 61, 61, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Fredoka", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--teal-700);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(254, 250, 224, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(42, 157, 143, 0.15);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(42, 157, 143, 0.25));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal-900);
}

.logo-text span {
  color: var(--amber-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--teal-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(42, 157, 143, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(42, 157, 143, 0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--teal-700);
  border-color: var(--teal-300);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber-500), #e76f51);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(244, 162, 97, 0.4);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: #ccc;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(244, 162, 97, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(42, 157, 143, 0.15) 0%, transparent 50%),
    var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: var(--teal-900);
  margin-bottom: 1rem;
}

.hero-content h1 .highlight {
  color: var(--amber-500);
  position: relative;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge {
  background: var(--white);
  border: 2px solid var(--teal-300);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-700);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-mascot {
  width: min(320px, 80vw);
  height: auto;
  background: none;
  filter: drop-shadow(0 20px 40px rgba(13, 61, 61, 0.2));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-tools {
  position: absolute;
  font-size: 2rem;
  animation: spin-tool 6s ease-in-out infinite;
}

.hero-tools.t1 { top: 10%; left: 5%; animation-delay: 0s; }
.hero-tools.t2 { top: 20%; right: 0; animation-delay: 1s; }
.hero-tools.t3 { bottom: 15%; left: 10%; animation-delay: 2s; }
.hero-tools.t4 { top: 5%; right: 15%; animation-delay: 0.5s; font-size: 1.6rem; }
.hero-tools.t5 { bottom: 25%; right: 5%; animation-delay: 1.5s; font-size: 1.6rem; }
.hero-tools.t6 { bottom: 5%; right: 25%; animation-delay: 2.5s; font-size: 1.6rem; }
.hero-tools.t7 { top: 40%; left: 0; animation-delay: 1.8s; font-size: 1.5rem; }

@keyframes spin-tool {
  0%, 100% { transform: rotate(-10deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.1); }
}

/* ── Sections ── */
section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--teal-900);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Services ── */
.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 2rem;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 6px;
  background: linear-gradient(90deg, var(--teal-500), var(--amber-500));
  transform: scaleX(0);
  transition: transform 0.3s;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  pointer-events: none;
}

.service-card:hover,
.service-card.selected {
  border-color: var(--teal-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before,
.service-card.selected::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--teal-900);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-price {
  font-weight: 700;
  color: var(--amber-500);
  font-size: 0.9rem;
}

/* ── Booking Wizard ── */
.booking {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(42, 157, 143, 0.08) 0%, transparent 60%),
    var(--cream-dark);
}

.wizard {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.wizard-steps {
  display: flex;
  background: var(--teal-900);
  padding: 1.25rem 1.5rem;
  gap: 0.5rem;
}

.step-indicator {
  flex: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
}

.step-indicator.active {
  color: var(--amber-300);
}

.step-indicator.done {
  color: var(--teal-300);
}

.step-indicator .step-num {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  line-height: 28px;
  margin: 0 auto 0.3rem;
  font-size: 0.85rem;
}

.step-indicator.active .step-num {
  background: var(--amber-500);
  color: var(--white);
}

.step-indicator.done .step-num {
  background: var(--teal-500);
  color: var(--white);
}

.wizard-body {
  padding: 2rem;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--teal-900);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0d0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-500);
}

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

.form-divider {
  border: none;
  border-top: 1px solid #e8e8d8;
  margin: 1.5rem 0;
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-fields-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.service-fields-card h4 {
  color: var(--teal-900);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filament-dot {
  transition: transform 0.2s, box-shadow 0.2s, outline-color 0.2s;
}

.filament-dot:hover {
  transform: scale(1.25);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  z-index: 2;
}

.upload-zone {
  border: 2px dashed var(--teal-300);
  border-radius: var(--radius-sm);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--cream);
}

.upload-zone-sm {
  padding: 1.25rem 1rem;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--teal-500);
  background: rgba(42, 157, 143, 0.06);
}

.upload-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.upload-zone p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.upload-zone small {
  color: #999;
  font-size: 0.75rem;
}

.file-list {
  margin-top: 0.75rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid #e0e0d0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.file-item button {
  background: none;
  border: none;
  color: #c62828;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.25rem;
}

.order-summary {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 2px solid rgba(42, 157, 143, 0.15);
}

.order-summary h4 {
  color: var(--teal-900);
  margin-bottom: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-row span {
  color: var(--text-muted);
}

.attachment-list {
  margin-top: 0.5rem;
}

.attachment-link {
  display: inline-block;
  background: var(--teal-500);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin: 0.2rem 0.3rem 0.2rem 0;
}

.notif-log {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.notif-log .ok { color: #2e7d32; }
.notif-log .fail { color: #c62828; }

.tab-highlight {
  border-color: var(--amber-500) !important;
  background: rgba(244, 162, 97, 0.12);
}

.setup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff3e0;
  border: 2px solid var(--amber-500);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.setup-banner p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.notif-status-bar {
  margin-bottom: 1rem;
}

.notif-status-ok,
.notif-status-warn {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

.notif-status-ok {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.notif-status-warn {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}

/* ── Kalender Admin ── */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-header h3 {
  margin: 0;
  color: var(--teal-900);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cal-legend .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.dot-free { background: #a5d6a7; }
.dot-booked { background: #e53935; }
.dot-blocked { background: #ef9a9a; }
.dot-closed { background: #e0e0e0; }
.dot-sunday { background: #ffcdd2; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-wd {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.25rem;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  padding: 0.35rem;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.15s;
  min-height: 48px;
}

.cal-cell:hover:not(.cal-empty) {
  transform: scale(1.05);
}

.cal-empty { cursor: default; }

.cal-free { background: #e8f5e9; border-color: #a5d6a7; }
.cal-booked { background: #ffcdd2; border-color: #e53935; }
.cal-sunday { background: #ffebee; border-color: #ef5350; color: #c62828; }
.cal-full { background: #fff3e0; border-color: #ffcc80; }
.cal-blocked { background: #fce4ec; border-color: #ec407a; }
.cal-closed { background: #f5f5f5; border-color: #e0e0e0; color: #999; }

.cal-day-num {
  font-weight: 700;
  font-size: 0.9rem;
}

.cal-badge {
  display: block;
  font-size: 0.65rem;
  border-radius: 4px;
  padding: 0 3px;
  margin-top: 2px;
  text-align: center;
}

.cal-badge.booked { background: #e53935; color: white; }
.cal-badge.blocked { background: #ef9a9a; color: #c62828; }

.slot-tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin: 0.2rem 0.2rem 0.2rem 0;
}

.slot-tag.free { background: #e8f5e9; color: #2e7d32; }
.slot-tag.busy { background: #ffebee; color: #c62828; }
.slot-tag.booked { background: #fff3e0; color: #e65100; }

.msg-thread {
  height: 350px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
}

.msg-bubble {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.6rem;
  max-width: 85%;
}

.msg-bubble p {
  margin: 0.35rem 0;
  white-space: pre-wrap;
}

.msg-bubble small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.msg-customer {
  background: var(--cream);
  border: 1px solid #e0e0d0;
  margin-right: auto;
}

.msg-admin {
  background: #e0f2f1;
  border: 1px solid var(--teal-300);
  margin-left: auto;
}

.reply-box {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #ddd;
}

.ticket-portal {
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  padding: 5rem 1rem 1rem;
  background: var(--cream);
}

.ticket-portal-inner {
  max-width: 1450px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
}

/* Hide scrollbars for cleaner look */
.active-ticket-scrollable-body,
.sidebar-tickets-list {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.active-ticket-scrollable-body::-webkit-scrollbar,
.sidebar-tickets-list::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.ticket-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.block-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* ── Payment ── */
.payment-options {
  display: grid;
  gap: 1rem;
}

.payment-option {
  border: 2px solid #e0e0d0;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.payment-option:hover,
.payment-option.selected {
  border-color: var(--teal-500);
  background: rgba(42, 157, 143, 0.05);
}

.payment-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--teal-500);
}

.payment-details {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 1rem;
  display: none;
}

.payment-details.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.payment-details h4 {
  color: var(--teal-900);
  margin-bottom: 0.75rem;
}

.payment-field {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}

.payment-field .label {
  color: var(--text-muted);
  font-weight: 600;
}

.payment-field .value {
  font-family: monospace;
  color: var(--teal-900);
  word-break: break-all;
  text-align: right;
  max-width: 60%;
}

.copy-btn {
  background: var(--teal-500);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* ── Success ── */
.success-panel {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.ticket-id {
  display: inline-block;
  background: var(--teal-900);
  color: var(--amber-300);
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1rem 0;
  letter-spacing: 1px;
}

/* ── Footer ── */
.site-footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}

.footer-mascot {
  width: 100px;
  height: auto;
  margin: 0 auto 1rem;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.site-footer h3 {
  color: var(--amber-300);
  margin-bottom: 0.5rem;
}

.footer-note {
  font-size: 0.85rem;
  margin-top: 1.5rem;
  opacity: 0.5;
}

/* ── Admin ── */
.admin-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 50%, #f4f8f8 0%, #e5eeee 100%);
  color: var(--text);
}

.admin-header {
  background: linear-gradient(135deg, var(--teal-900) 0%, #062424 100%);
  color: white;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(13, 61, 61, 0.15);
  border-bottom: 2px solid var(--teal-700);
}

.admin-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.admin-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.login-box {
  max-width: 420px;
  margin: 6rem auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 20px 50px rgba(13, 61, 61, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.login-box:hover {
  transform: translateY(-4px);
}

.login-box img {
  width: 110px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(42, 157, 143, 0.15);
}

.admin-tabs {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.65rem 1.4rem;
  border: 1.5px solid var(--teal-300);
  background: white;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  color: var(--teal-700);
  box-shadow: 0 4px 10px rgba(13, 61, 61, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  background: var(--teal-50);
  border-color: var(--teal-500);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--teal-500);
  color: white;
  border-color: var(--teal-500);
  box-shadow: 0 6px 15px rgba(42, 157, 143, 0.25);
}

.tab-highlight {
  border-color: var(--amber-500);
  color: #d97706;
}
.tab-highlight.active {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: white;
}

.admin-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ticket-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(13, 61, 61, 0.05);
  border: 1px solid rgba(13,61,61,0.06);
}

.ticket-table th,
.ticket-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid #f1f5f5;
  transition: background-color 0.15s;
}

.ticket-table th {
  background: var(--teal-900);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border: none;
}

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

.ticket-table tr:hover td {
  background: rgba(42, 157, 143, 0.025);
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.status-neu { background: #e0f2fe; color: #0369a1; }
.status-bestätigt { background: #dcfce7; color: #15803d; }
.status-in_arbeit { background: #fef3c7; color: #b45309; }
.status-erledigt { background: #f3e8ff; color: #7e22ce; }
.status-storniert { background: #fee2e2; color: #b91c1c; }

.admin-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 35px rgba(13, 61, 61, 0.04);
  border: 1px solid rgba(13,61,61,0.05);
  margin-bottom: 2rem;
  transition: box-shadow 0.25s;
}

.admin-card:hover {
  box-shadow: 0 12px 40px rgba(13, 61, 61, 0.07);
}

.admin-card h3 {
  color: var(--teal-900);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(13, 61, 61, 0.03);
  border: 1px solid rgba(13,61,61,0.03);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42, 157, 143, 0.08);
}

.stat-card .num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--teal-500);
  font-family: var(--font-display);
}

.stat-card .label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state .emoji {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
}

/* ── Filament Color Manager Tags ── */
.admin-color-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-color-tag:hover {
  transform: translateY(-2px);
  border-color: var(--teal-300);
  box-shadow: 0 6px 12px rgba(42,157,143,0.1);
  background: white;
}

.admin-color-tag.editing {
  border-color: var(--teal-500);
  background: var(--teal-50);
  box-shadow: 0 4px 10px rgba(42, 157, 143, 0.15);
}

.admin-color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.admin-color-delete {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 50%;
  transition: all 0.15s;
}

.admin-color-delete:hover {
  background: #fecaca;
  color: #ef4444;
}

/* ── CMS Custom Field Rows ── */
.srv-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  background: var(--teal-50);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1.5px solid var(--teal-100);
  box-shadow: 0 2px 8px rgba(13, 61, 61, 0.02);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.75rem;
}

.srv-field-row:hover {
  border-color: var(--teal-300);
  box-shadow: 0 6px 15px rgba(42, 157, 143, 0.08);
  background: white;
}

.srv-field-col {
  flex: 1;
  min-width: 140px;
}

.srv-field-col-large {
  flex: 1.5;
  min-width: 180px;
}

.srv-field-col-options {
  flex: 2;
  min-width: 200px;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--teal-900);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 99999;
  animation: slideUp 0.3s ease;
  display: none;
}
.toast.show {
  display: block !important;
  visibility: visible !important;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badges,
  .hero-cta {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

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

  .ticket-table {
    display: block;
    overflow-x: auto;
  }

  .wizard-steps {
    font-size: 0.7rem;
  }
}

@media (min-width: 769px) {
  .header-inner {
    padding: 0.75rem 2.5rem;
  }
  .hero {
    padding: 7rem 2.5rem 4rem;
  }
  section {
    padding: 5rem 2.5rem;
  }
}

/* ── Web3 Wallet Connection Modal ── */
.huergi-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 61, 61, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.huergi-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.huergi-modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  max-width: 460px;
  width: 90%;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.5) inset;
  border: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.huergi-modal.open .huergi-modal-content {
  transform: translateY(0) scale(1);
}

.huergi-modal-title {
  color: var(--teal-900);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.huergi-modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.huergi-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.huergi-modal-btn {
  width: 100%;
  padding: 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.huergi-modal-btn-phantom {
  background: #512da8;
  color: white;
  border: none;
}
.huergi-modal-btn-phantom:hover {
  background: #673ab7;
}

.huergi-modal-btn-coinbase {
  background: #0052ff;
  color: white;
  border: none;
}
.huergi-modal-btn-coinbase:hover {
  background: #1a66ff;
}

.huergi-modal-btn-solflare {
  background: linear-gradient(90deg, #ff4b2b, #ff416c);
  color: white;
  border: none;
}
.huergi-modal-btn-solflare:hover {
  opacity: 0.9;
}

.huergi-modal-btn-cancel {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}
.huergi-modal-btn-cancel:hover {
  background: #f5f5f5;
  color: #333;
}

.huergi-modal-btn-primary {
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-700) 100%);
  color: white;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 137, 123, 0.3);
  transition: all 0.3s ease;
}
.huergi-modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 137, 123, 0.4);
}
.huergi-modal-btn-primary:active {
  transform: translateY(0);
}

.wizard-step {
  animation: fadeIn 0.4s ease forwards;
}

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

/* ── Web3 Wallet Dropdown Menu ── */
.header-wallet-wrap {
  position: relative;
  display: inline-block;
}

.wallet-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: var(--white);
  border: 2px solid var(--teal-300);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  min-width: 260px;
  z-index: 10000;
  text-align: left;
  color: var(--teal-900);
}

.wallet-dropdown-name {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--teal-900);
}

.wallet-dropdown-email {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  word-break: break-all;
}

.wallet-dropdown-address {
  font-family: monospace;
  font-size: 0.75rem;
  background: var(--cream-dark);
  padding: 0.5rem;
  border-radius: 6px;
  word-break: break-all;
  margin-bottom: 1rem;
  border: 1px solid var(--teal-100);
}

.header-wallet-wrap.connected:hover .wallet-dropdown,
.header-wallet-wrap.connected:focus-within .wallet-dropdown,
.wallet-dropdown.open {
  display: block;
}

#portal-dashboard-wrap {
  display: flex;
  gap: 1.25rem;
  height: 100%;
  width: 100%;
}

.portal-sidebar {
  width: 320px;
  min-width: 300px;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sidebar-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  color: var(--teal-900);
  font-size: 1.1rem;
}

.sidebar-search-wrap {
  margin-bottom: 1rem;
}

.sidebar-tickets-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 2px;
}

.sidebar-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.portal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gemini-gradient-text {
  background: linear-gradient(90deg, #1e3a8a 0%, #0d9488 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sidebar Ticket Item */
.sidebar-ticket-item {
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.sidebar-ticket-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.sidebar-ticket-item.active {
  background: #f0fdfa;
  border-color: var(--teal-300);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.06);
}

.sidebar-ticket-item strong {
  font-size: 0.85rem;
  color: #1e293b;
}

.sidebar-ticket-item .service-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-900);
  margin-top: 0.1rem;
}

.sidebar-ticket-item .meta-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

/* Active Ticket Header */
.active-ticket-header {
  padding: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

/* Chat Bubbles Refined */
.msg-bubble {
  max-width: 75%;
  min-width: 120px;
  padding: 0.9rem 1.25rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.msg-customer {
  background: var(--teal-700);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.msg-customer strong {
  color: #e6fffa;
}

.msg-customer small {
  color: #b2f5ea;
}

.msg-admin {
  background: #f1f5f9;
  color: #0f172a;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-admin strong {
  color: var(--teal-900);
}

.msg-admin small {
  color: #64748b;
}

.msg-bubble p {
  margin: 0.25rem 0 0 0;
}

.msg-bubble small {
  font-size: 0.7rem;
  display: block;
  text-align: right;
  margin-top: 0.25rem;
}

/* Scrollable Body & General Overrides */
.active-ticket-scrollable-body {
  display: flex;
  flex-direction: column;
}

.msg-thread {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Mobile View Gemini layout */
@media (max-width: 768px) {
  .admin-dashboard-wrap {
    flex-direction: column;
    height: auto;
  }

  #portal-dashboard-wrap {
    flex-direction: column;
    height: auto;
    max-height: none;
  }
  
  .portal-sidebar {
    width: 100%;
  }

  .sidebar-toggle-btn {
    display: block !important;
  }

  /* When sidebar is hidden on mobile */
  .portal-sidebar.mobile-hidden {
    display: none;
  }
}

/* Floating Chat Widget Bubbles */
#floating-chat-widget .msg-customer {
  background-color: var(--teal-700) !important;
  color: white !important;
  border-bottom-right-radius: 0;
  margin-left: auto;
  margin-right: 0;
  border: 1px solid var(--teal-900) !important;
}
#floating-chat-widget .msg-admin {
  background-color: white !important;
  color: var(--teal-900) !important;
  border: 1px solid #e2e8f0 !important;
  border-bottom-left-radius: 0;
  margin-right: auto;
  margin-left: 0;
}
#floating-chat-widget .msg-customer small {
  color: rgba(255, 255, 255, 0.8);
}

/* Customer portal overrides to make sure customer bubble is on the right and admin bubble is on the left */
.ticket-portal .msg-customer {
  margin-left: auto !important;
  margin-right: 0 !important;
  align-self: flex-end;
}

.ticket-portal .msg-admin {
  margin-left: 0 !important;
  margin-right: auto !important;
  align-self: flex-start;
}

/* Admin portal chat overrides: Admin is on the right, Customer is on the left */
.ticket-thread .msg-customer {
  margin-left: 0 !important;
  margin-right: auto !important;
  align-self: flex-start !important;
  border-bottom-right-radius: 16px !important;
  border-bottom-left-radius: 4px !important;
  background: var(--teal-700) !important;
  color: #ffffff !important;
}

.ticket-thread .msg-admin {
  margin-left: auto !important;
  margin-right: 0 !important;
  align-self: flex-end !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 4px !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Reply textarea style */
.ticket-thread textarea.reply-textarea {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.95rem;
  padding: 0.75rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.ticket-thread textarea.reply-textarea:focus {
  border-color: var(--teal-500);
}


/* -- Toast -- */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: var(--teal-900);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 9999;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Urgency Cards */
.urgency-card {
  border: 2px solid var(--teal-100);
  background: var(--white);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.urgency-card.active {
  border-color: var(--teal-500) !important;
  background: var(--teal-50) !important;
}

/* Custom Inline Calendar */
.custom-calendar {
  border: 1.5px solid var(--teal-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0.75rem;
  box-sizing: border-box;
}

.custom-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.custom-calendar-title {
  font-weight: 700;
  color: var(--teal-900);
  font-size: 0.95rem;
}

.custom-calendar-nav {
  display: flex;
  gap: 0.35rem;
}

.custom-calendar-btn {
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  color: var(--teal-700);
  border-radius: 4px;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  font-size: 0.8rem;
  font-weight: bold;
  transition: all 0.2s;
  line-height: 1;
}

.custom-calendar-btn:hover:not(:disabled) {
  background: var(--teal-500);
  color: white;
  border-color: var(--teal-500);
}

.custom-calendar-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.custom-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--teal-700);
  margin-bottom: 0.25rem;
}

.custom-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

/* Free / Bookable */
.cal-day.free {
  background: var(--white);
  color: var(--teal-900);
  border-color: var(--teal-100);
}

.cal-day.free:hover {
  background: var(--teal-50);
  border-color: var(--teal-500);
}

/* Selected */
.cal-day.selected {
  background: var(--teal-500) !important;
  color: white !important;
  border-color: var(--teal-500) !important;
}

/* Booked (red/orange) */
.cal-day.booked {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
  cursor: not-allowed !important;
}

/* Disabled (gray) */
.cal-day.disabled {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
}

/* --- Hürgi Transfer --- */
.service-card[data-service="huergitransfer"] {
  background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%);
  border-color: #60a5fa;
}

.service-card[data-service="huergitransfer"]::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.service-card[data-service="huergitransfer"]:hover,
.service-card[data-service="huergitransfer"].selected {
  border-color: #2563eb;
  box-shadow: 0 12px 48px rgba(37, 99, 235, 0.25);
}

.service-card[data-service="huergitransfer"] h3 {
  color: #1e3a8a;
}

.service-card[data-service="huergitransfer"] .service-icon {
  filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.2));
}

.neu-banner {
  position: absolute;
  top: 18px;
  right: -38px;
  background: var(--teal-700);
  color: white;
  padding: 4px 45px;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  letter-spacing: 1px;
  z-index: 10;
}

/* --- Hürgi Cloud Peel Ribbon --- */
.peel-ribbon {
  position: fixed;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  z-index: 100000;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.peel-ribbon:hover {
  width: 175px;
  height: 175px;
}

.peel-ribbon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 140px 140px 0;
  border-color: transparent var(--cloud-primary, #2563eb) transparent transparent;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 100001;
}

.peel-ribbon:hover::before {
  border-width: 0 175px 175px 0;
  border-color: transparent var(--cloud-primary-hover, #1d4ed8) transparent transparent;
}

.peel-shadow {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  filter: blur(5px);
  transform: translate(-4px, 4px);
  transition: all 0.25s ease-out;
  z-index: 100002;
  pointer-events: none;
}

.peel-ribbon:hover .peel-shadow {
  transform: translate(-6px, 6px);
}

.peel-paper {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(225deg, #ffffff 0%, #f1f5f9 30%, #e2e8f0 55%, #cbd5e1 80%, #94a3b8 100%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  transition: all 0.25s ease-out;
  z-index: 100003;
  pointer-events: none;
}

.peel-ribbon-content {
  position: absolute;
  top: 32px;
  right: -24px;
  transform: rotate(45deg);
  width: 150px;
  text-align: center;
  color: white;
  font-family: 'Fredoka', sans-serif;
  z-index: 100005;
  pointer-events: none;
  transition: all 0.25s ease-out;
}

.peel-ribbon:hover .peel-ribbon-content {
  top: 38px;
  right: -18px;
}

.peel-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.peel-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* --- Hürgi Cloud Blue/White Design Theme --- */
.cloud-body {
  --cloud-primary: #2563eb;
  --cloud-primary-hover: #1d4ed8;
  --cloud-bg-gradient: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  --cloud-card-bg: #ffffff;
  --cloud-text-main: #0f172a;
  --cloud-text-muted: #4b5563;
  --cloud-border: #e2e8f0;
  --cloud-border-hover: #93c5fd;
  --cloud-light-blue: #eff6ff;

  background: var(--cloud-bg-gradient) !important;
  color: var(--cloud-text-main) !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cloud-body header {
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cloud-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.cloud-hero-content {
  text-align: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

.cloud-hero-content h1 {
  font-size: 2.5rem;
  color: var(--cloud-text-main);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.cloud-hero-content p {
  color: var(--cloud-text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 1.5rem auto;
}

.cloud-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cloud-badge {
  background: rgba(37, 99, 235, 0.08);
  color: var(--cloud-primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cloud-transfer-card {
  background: var(--cloud-card-bg);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1), 0 8px 10px -6px rgba(59, 130, 246, 0.1);
  border: 1px solid var(--cloud-border);
  width: 100%;
  box-sizing: border-box;
}

.cloud-upload-zone {
  border: 2px dashed #bfdbfe;
  background: var(--cloud-light-blue);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-bottom: 1.5rem;
}

.cloud-upload-zone:hover {
  border-color: var(--cloud-primary);
  background: #e0f2fe;
}

.cloud-file-list {
  margin-bottom: 1.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.cloud-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--cloud-border);
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.cloud-file-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cloud-text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.cloud-file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cloud-file-size {
  font-size: 0.8rem;
  color: var(--cloud-text-muted);
}

.cloud-file-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  line-height: 1;
}

.cloud-file-remove:hover {
  opacity: 0.8;
}

.cloud-input {
  width: 100%;
  background: #ffffff !important;
  border: 1px solid var(--cloud-border) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  color: var(--cloud-text-main) !important;
  transition: border-color 0.2s;
}

.cloud-input:focus {
  outline: none;
  border-color: var(--cloud-primary) !important;
}

.cloud-btn {
  background: var(--cloud-primary) !important;
  color: white !important;
  border: none !important;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.cloud-btn:hover {
  background: var(--cloud-primary-hover) !important;
}

.cloud-btn:disabled {
  background: #93c5fd !important;
  cursor: not-allowed;
}

.cloud-progress-container {
  display: none;
  margin-top: 1rem;
}

.cloud-progress-bar-bg {
  background: #e2e8f0;
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.cloud-progress-bar {
  background: var(--cloud-primary);
  height: 100%;
  width: 0%;
  transition: width 0.2s ease;
}

.cloud-success-container {
  display: none;
  text-align: center;
  padding: 1.5rem 0 0 0;
}

.cloud-link-box {
  display: flex;
  background: #f1f5f9;
  border: 1px solid var(--cloud-border);
  border-radius: 10px;
  padding: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.cloud-link-text {
  font-size: 0.85rem;
  color: var(--cloud-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 0.5rem;
  font-weight: 600;
}

.cloud-copy-btn {
  background: var(--cloud-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

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

/* ── Custom Mobile-like Switch Toggle ── */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  vertical-align: middle;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s ease;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .slider {
  background-color: #16a34a;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Mobile responsive fixes for Hürgi Cloud Peel Ribbon & Cloud link */
@media (max-width: 768px) {
  .peel-ribbon {
    display: none !important;
  }
  .cloud-mobile-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.3rem;
    padding: 6px 10px;
    background: #eff6ff;
    border: 1.5px solid var(--cloud-primary, #2563eb);
    border-radius: 8px;
    color: var(--cloud-primary, #2563eb);
    transition: transform 0.2s;
  }
  .cloud-mobile-link:active {
    transform: scale(0.95);
  }
}

