/* Flottaöböl — hangar shop (contained images, no overflow) */
:root {
  --fb-amber: #f2bc4a;
  --fb-amber-dim: #b87a18;
  --fb-cyan: #5ec8ff;
  --fb-panel: #0a1018;
  --fb-card: #101820;
  --fb-text: #f2f5fa;
  --fb-muted: #8b9fb6;
  --fb-line: rgba(255, 255, 255, 0.08);
  --fb-glass: rgba(16, 26, 40, 0.42);
  --fb-glass-edge: rgba(255, 255, 255, 0.14);
  --fb-glass-shine: rgba(255, 255, 255, 0.06);
  --fb-font: 'Rajdhani', 'Segoe UI', sans-serif;
  --fb-display: 'Orbitron', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--fb-font);
  font-weight: 600;
  color: var(--fb-text);
  background: transparent;
  font-size: 14px;
}
body.d2-embed { background: transparent; }

.d2-shell {
  height: 100%;
  padding: 8px;
  overflow: hidden;
}
.d2-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 10% -10%, rgba(242, 188, 74, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 45% at 100% 110%, rgba(30, 100, 180, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(18, 28, 42, 0.92), rgba(8, 12, 20, 0.96));
  border: 1px solid rgba(242, 188, 74, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.d2-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--fb-line);
  background: rgba(0, 0, 0, 0.25);
}
.d2-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}
.d2-brand > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--fb-amber);
  background: #1a1408;
  border: 1px solid rgba(242, 188, 74, 0.4);
  font-size: 13px;
}
.d2-brand strong {
  display: block;
  font-family: var(--fb-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fb-amber);
}
.d2-brand em {
  display: block;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fb-muted);
}
.d2-tabs { display: flex; flex: 1; gap: 4px; flex-wrap: wrap; }
.d2-subnav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fb-muted);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.d2-subnav:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.d2-subnav.active {
  color: #1a1000;
  background: linear-gradient(135deg, var(--fb-amber), var(--fb-amber-dim));
}
.d2-top-hint { margin: 0; font-size: 11px; color: var(--fb-muted); }

.d2-main {
  flex: 1;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.d2-sec {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.d2-sec[hidden] { display: none !important; }

/* ——— Cards: glass shell + art zone (images NEVER cover text) ——— */
.d2-slot-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.d2-slot {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, rgba(28, 42, 62, 0.55), rgba(8, 12, 20, 0.72));
  border: 1px solid var(--fb-glass-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.d2-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(125deg, var(--fb-glass-shine) 0%, transparent 38%, transparent 62%, rgba(94, 200, 255, 0.04) 100%);
}
.d2-slot:hover {
  border-color: rgba(242, 188, 74, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 12px 32px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(242, 188, 74, 0.12);
  transform: translateY(-2px);
}
.d2-slot-ribbon {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 5;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--fb-display);
  font-size: 9px;
  font-weight: 800;
  color: #1a1000;
  background: linear-gradient(180deg, #f7d078, var(--fb-amber));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Image only lives here — clipped */
.d2-slot-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 75% 65% at 50% 100%, rgba(40, 110, 180, 0.22), transparent 68%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(242, 188, 74, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(22, 34, 52, 0.35), rgba(6, 10, 16, 0.15));
}
.d2-slot-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 14px 6px;
  overflow: hidden;
}
.d2-slot-hero img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  transition: transform 0.25s ease;
}
.d2-slot:hover .d2-slot-hero img {
  transform: scale(1.03);
}
.d2-slot-thumbs { display: none; } /* no side strip — caused clutter */
.d2-slot-ph {
  font-size: 36px;
  color: var(--fb-amber);
  opacity: 0.3;
}

/* Frosted glass footer — readable, images stay above */
.d2-slot-body {
  position: relative;
  z-index: 3;
  padding: 9px 11px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%),
    rgba(8, 12, 20, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.d2-slot-sub {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fb-cyan);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.d2-slot-nm {
  font-family: var(--fb-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--fb-amber);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.d2-slot-blurb {
  margin: 0;
  font-size: 11px;
  color: var(--fb-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d2-slot-blurb em { font-style: normal; color: var(--fb-amber); }
.d2-slot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
}
.d2-slot-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--fb-display);
  font-size: 14px;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.d2-slot-old {
  font-family: var(--fb-font);
  font-size: 11px;
  color: var(--fb-muted);
  text-decoration: line-through;
}
.d2-slot-btns { display: flex; gap: 5px; }
.d2-slot-buy {
  padding: 6px 11px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f5c65a, var(--fb-amber-dim));
  color: #1a1000;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(184, 122, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.d2-slot-buy:hover:not(:disabled) { filter: brightness(1.07); }
.d2-slot-buy:disabled { opacity: 0.7; }
.d2-slot-buy-sec {
  background: rgba(94, 200, 255, 0.08) !important;
  border: 1px solid rgba(94, 200, 255, 0.4) !important;
  color: var(--fb-cyan) !important;
  box-shadow: none !important;
  backdrop-filter: blur(6px);
}

.d2-empty-msg, .d2-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--fb-muted);
  padding: 24px !important;
}

.d2-tablewrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--fb-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.d2-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.d2-table th {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--fb-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fb-muted);
  border-bottom: 1px solid var(--fb-line);
}
.d2-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--fb-line);
  color: var(--fb-muted);
}

.d2-prem-box {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid rgba(242, 188, 74, 0.28);
  background: rgba(242, 188, 74, 0.07);
}
.d2-prem-badge {
  padding: 6px 10px;
  border-radius: 7px;
  font-family: var(--fb-display);
  font-size: 9px;
  font-weight: 800;
  color: #1a1000;
  background: var(--fb-amber);
}
.d2-prem-meta { font-size: 13px; color: var(--fb-muted); }
.d2-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.d2-benefits li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid var(--fb-line);
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
  color: var(--fb-muted);
}
.d2-benefits i { color: var(--fb-amber); font-size: 10px; }

.d2-coupon-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.d2-code-input {
  flex: 1;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--fb-line);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.d2-redeem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #f5c65a, var(--fb-amber-dim));
  color: #1a1000;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.d2-btn-ghost {
  background: transparent !important;
  border: 1px solid var(--fb-line) !important;
  color: var(--fb-muted) !important;
}
.d2-coupon-msg { margin: 0 0 8px; font-size: 12px; color: #ff8a96; }
.d2-coupon-msg.ok { color: #7dffb0; }

/* ——— Modal ——— */
.d2-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(2, 5, 10, 0.82);
  backdrop-filter: blur(8px);
}
.d2-modal[hidden] { display: none !important; }
.d2-modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 780px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #101822;
  border: 1px solid rgba(242, 188, 74, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.d2-checkout-card { width: min(420px, 100%); padding: 18px; overflow: auto; }
.d2-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fb-muted);
  font-size: 18px;
  cursor: pointer;
}
.d2-modal-card h3 {
  margin: 0 0 10px;
  font-family: var(--fb-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fb-amber);
}
.d2-modal-card p { margin: 0 0 10px; font-size: 13px; line-height: 1.4; color: var(--fb-muted); }
.d2-cat-note {
  padding: 9px 11px !important;
  border-radius: 9px;
  background: rgba(242, 188, 74, 0.08);
  border: 1px solid rgba(242, 188, 74, 0.25);
  color: #ffd89a !important;
}
.d2-order-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--fb-amber);
  padding: 10px;
  border-radius: 9px;
  background: rgba(242, 188, 74, 0.08);
  border: 1px solid rgba(242, 188, 74, 0.28);
  text-align: center;
}
#d2CheckoutBody a { color: var(--fb-cyan); }

.d2-detail-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.d2-detail-media {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(40, 100, 170, 0.3), transparent 65%),
    #0a1018;
  border-right: 1px solid var(--fb-line);
}
.d2-detail-img {
  flex: 1 1 auto;
  min-height: 140px;
  max-height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.d2-detail-img img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.d2-detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 0 0 auto;
  max-height: 88px;
  overflow: hidden;
}
.d2-detail-gallery img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--fb-line);
}
.d2-detail-body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.d2-detail-tag {
  font-family: var(--fb-display);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fb-cyan);
}
.d2-detail-body h3 {
  font-size: 17px !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  margin: 4px 0 8px !important;
  padding-right: 32px;
  line-height: 1.25;
}
.d2-detail-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.d2-detail-price strong {
  font-family: var(--fb-display);
  font-size: 20px;
  color: #fff;
}
.d2-detail-includes {
  font-family: var(--fb-display);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fb-muted);
  margin: 0 0 4px !important;
}
.d2-detail-desc {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  line-height: 1.35;
  color: var(--fb-muted) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.d2-detail-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  border: 1px solid var(--fb-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
}
.d2-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--fb-line);
  color: var(--fb-text);
}
.d2-detail-list li:last-child { border-bottom: none; }
.d2-detail-ico {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 32px;
  border-radius: 6px;
  background: #0a1018;
  margin-top: 2px;
}
.d2-detail-ico-ph { width: 32px; height: 32px; flex: 0 0 32px; }
.d2-detail-text { flex: 1; min-width: 0; }
.d2-detail-label { display: block; line-height: 1.3; }
.d2-detail-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.d2-detail-note {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  color: #c8e8ff;
  background: rgba(94, 200, 255, 0.12);
  border: 1px solid rgba(94, 200, 255, 0.28);
  max-width: 100%;
}
.d2-detail-once {
  font-size: 12px;
  margin: 0 0 10px !important;
  color: var(--fb-cyan) !important;
  flex: 0 0 auto;
}
.d2-detail-once[hidden] { display: none !important; }
.d2-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.d2-buy-primary { flex: 1; min-width: 120px; }

@media (max-width: 900px) {
  .d2-slot-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  html, body { overflow: auto; }
  .d2-shell, .d2-panel { height: auto; max-height: none; }
  .d2-slot-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    overflow: auto;
  }
  .d2-slot { min-height: 260px; height: auto; }
  .d2-slot-visual { min-height: 140px; }
  .d2-detail-layout { grid-template-columns: 1fr; }
  .d2-detail-media {
    border-right: 0;
    border-bottom: 1px solid var(--fb-line);
    max-height: 200px;
  }
  .d2-benefits { grid-template-columns: 1fr 1fr; }
}
