/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
  color: #0f172a;
}

/* HERO ---------------------------------------------------- */
.hero {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Boats / water / drinks vibe */
  background-image: url("https://images.unsplash.com/photo-1524168274671-5fd04ed10c30?auto=format&fit=crop&w=1900&q=80");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(15, 23, 42, 0.9),
    rgba(59, 130, 246, 0.5)
  );
  backdrop-filter: blur(4px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  color: #e5f2ff;
}

.hero-inner h1 {
  font-size: 2.6rem;
  margin-bottom: 4px;
  text-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.hero-tagline {
  font-size: 1.05rem;
  opacity: 0.95;
}

/* APP SHELL ---------------------------------------------- */
.app {
  max-width: 1200px;
  margin: -40px auto 40px;
  padding: 0 16px 24px;
}

.app-header {
  text-align: center;
  margin-bottom: 10px;
}

.tagline {
  font-size: 0.9rem;
  color: #64748b;
}

.feedback-line {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.feedback-line a {
  color: #38bdf8;
  text-decoration: none;
}

/* Layout (Frutiger Aero panel style) ---------------------- */
.layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.panel {
  border-radius: 18px;
  padding: 18px;
  background: radial-gradient(circle at top left, #e0f2ff 0, #ffffff 35%, #e5edff 100%);
  box-shadow:
    0 20px 40px rgba(15,23,42,0.45),
    0 0 0 1px rgba(255,255,255,0.4);
  border: 1px solid rgba(148,163,184,0.35);
}

.panel-left {
  flex: 1.6;
}

.panel-right {
  flex: 1;
  position: sticky;
  top: 16px;
}

/* Section headings --------------------------------------- */
.section {
  margin-bottom: 16px;
}

.section h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #0f172a;
}

/* Dropdowns ---------------------------------------------- */
select {
  width: 100%;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: linear-gradient(135deg, #f8fafc, #e2f3ff);
  color: #0f172a;
  margin-top: 4px;
  font-size: 0.9rem;
}

select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56,189,248,0.3);
}

/* Buttons ------------------------------------------------ */
button.primary,
button.secondary {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  margin-top: 8px;
  font-weight: 600;
  width: 100%;
  font-size: 0.95rem;
}

button.primary {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #052e16;
  box-shadow: 0 12px 26px rgba(22,163,74,0.45);
}

button.primary:hover {
  filter: brightness(1.05);
}

button.secondary {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #082f49;
  box-shadow: 0 12px 26px rgba(37,99,235,0.4);
}

button.secondary:hover {
  filter: brightness(1.05);
}

/* Hints -------------------------------------------------- */
.hint {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
}

/* Accessories -------------------------------------------- */
.accessories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.accessory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.accessory-item {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.86rem;
}

.accessory-item input {
  transform: scale(1.1);
}

.accessory-qty-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
}

.accessory-qty {
  width: 56px;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-size: 0.8rem;
}

.accessory-price {
  font-size: 0.8rem;
  color: #475569;
}

/* Summary ------------------------------------------------ */
.summary-details {
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #d4d4ff;
  min-height: 80px;
  font-size: 0.9rem;
}

.summary-line {
  margin-bottom: 4px;
}

.summary-line .label {
  font-weight: 600;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-weight: 600;
}

/* Compatibility box -------------------------------------- */
.result {
  margin-top: 6px;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.result.good {
  display: block;
  background: #dcfce7;
  border: 1px solid #22c55e;
  color: #065f46;
}

.result.warning {
  display: block;
  background: #fef9c3;
  border: 1px solid #facc15;
  color: #713f12;
}

.result.bad {
  display: block;
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #7f1d1d;
}

/* Suppliers ---------------------------------------------- */
.supplier-list {
  list-style: none;
  font-size: 0.85rem;
  color: #0f172a;
}

.supplier-list li {
  margin-bottom: 8px;
}

.supplier-list a {
  color: #2563eb;
  text-decoration: none;
}

/* Brand index -------------------------------------------- */
.brand-index {
  margin-top: 24px;
  background-image: url("https://images.unsplash.com/photo-1518457909184-96087df8e3f8?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.brand-index::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left,
    rgba(15,23,42,0.92),
    rgba(15,23,42,0.65)
  );
}

.brand-index > * {
  position: relative;
  z-index: 1;
}

.brand-index-title {
  color: #facc15;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.brand-index-hint {
  color: #e5e7eb;
}

.brand-index-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.96);
  border-radius: 10px;
  overflow: hidden;
}

.brand-index-table th,
.brand-index-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 8px;
  text-align: left;
}

.brand-index-table th {
  font-weight: 600;
  color: #0f172a;
}

.tiny-note {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #e5e7eb;
}

/* Gilligan modal ----------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  max-width: 600px;
  margin: 80px auto;
  background: radial-gradient(circle at top left, #e0f2ff 0, #ffffff 35%, #e5edff 100%);
  border-radius: 18px;
  padding: 18px 20px 20px;
  box-shadow:
    0 20px 40px rgba(15,23,42,0.7),
    0 0 0 1px rgba(255,255,255,0.7);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-body {
  margin-top: 8px;
  font-size: 0.9rem;
}

.modal-body h3 {
  font-size: 0.95rem;
  margin-top: 8px;
  margin-bottom: 4px;
}

.modal-body ul {
  margin-left: 18px;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

/* Responsive --------------------------------------------- */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }
  .panel-right {
    position: static;
    margin-top: 12px;
  }
  .hero {
    height: 220px;
  }
  .modal-content {
    margin: 60px 16px;
  }
}
