/* ============================================================
   DealEase — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Coustard:wght@400;900&family=Inter:wght@400;500;600;700&display=swap');

/* ---- Reset & tokens ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #0B2A47;
  --paper:  #F0F2F0;
  --coral:  #3D96A8;
  --teal:   #033069;
  --lime:   #8FC9D4;
  --line:   #DCE3E1;
  --font-display: 'Coustard', serif;
  --font-body:    'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1,h2,h3,h4 { font-family: var(--font-display); letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { flex: 1; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---- Gradient ---- */
.brand-gradient {
  position: relative;
  background: #033069;
  overflow: hidden;
}
/* Bybilledet — farvet i DealEase teal-palette */
.brand-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/includes/bybillede.jpeg?v=2');
  background-size: cover;
  background-position: center;
  filter: sepia(1) hue-rotate(170deg) saturate(1.5) brightness(.55);
  z-index: 0;
}
/* Navy-gradient overlay — teksten forbliver læselig */
.brand-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(3,48,105,.80) 0%, rgba(3,48,105,.45) 55%, rgba(3,48,105,.25) 100%);
  z-index: 1;
}
/* Alt indhold skal ligge over pseudo-elementerne */
.brand-gradient > * { position: relative; z-index: 2; }

/* ---- Top bar ---- */
.topbar {
  padding: 8px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
    text-align: center;
  }
}
.topbar.biz {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  text-align: left;
}
.topbar a { color: #fff; text-decoration: underline; }
.topbar .pill-link {
  background: rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 4px 12px;
  text-decoration: none;
  font-size: 12px;
}

/* ---- Site header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(240,242,240,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: var(--coral);
}
.logo img { width: 34px; height: 34px; object-fit: contain; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
nav.main-nav a:hover { color: var(--coral); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Language switcher */
.lang-wrap { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font-body);
}
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 100;
}
.lang-wrap:focus-within .lang-menu,
.lang-wrap.open .lang-menu { display: block; }
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-item:hover { background: var(--paper); }
.lang-item.active { color: var(--coral); }

/* Login dropdown */
.dropdown-wrap { position: relative; }
.dropdown-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 100;
}
.dropdown-wrap:focus-within .dropdown-menu,
.dropdown-wrap.open .dropdown-menu { display: block; }
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14px;
}
.dropdown-item:hover { background: var(--paper); }
.dropdown-item .ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ico-coral { background: var(--coral); }
.ico-teal  { background: var(--teal); }
.dropdown-item strong { display: block; }
.dropdown-item small  { color: #888; font-size: 12px; }
.dropdown-foot {
  background: var(--paper);
  padding: 12px 16px;
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.btn-create {
  background: var(--coral);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-create:hover { background: var(--ink); }

/* ---- Buttons ---- */
.btn        { display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1; border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; font-family: var(--font-body); text-decoration: none; }
.btn-primary{ background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-teal   { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--ink); }
.btn-outline{ border: 2px solid rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn-ghost  { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block  { display: block; width: 100%; text-align: center; }
.btn-sm     { padding: 7px 14px; font-size: 12px; }

/* ---- Hero ---- */
.hero { padding: 60px 20px; }
.hero .inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 780px) { .hero .inner { grid-template-columns: 1fr; } }
.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: var(--lime);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 { font-size: 48px; line-height: 1.05; color: #fff; margin-top: 16px; }
@media (max-width: 600px) { .hero h1 { font-size: 34px; } }
.hero h1 span { color: var(--lime); }
.hero p { color: rgba(255,255,255,.8); margin-top: 14px; max-width: 440px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.mini-card.shift { margin-top: 20px; }
.mini-img { height: 80px; display: grid; place-items: center; font-size: 28px; }
.mini-body { padding: 10px 12px; }
.mini-body .biz { font-size: 11px; color: #999; }
.mini-price { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--coral); margin-top: 2px; }

/* ---- Search card ---- */
.search-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.search-field { display: flex; flex-direction: column; flex: 1; min-width: 160px; }
.search-field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #999; margin-bottom: 5px; }
.search-field input,
.search-field select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  /* 16px er MINIMUM på inputs: under 16px auto-zoomer iOS Safari ind når
     feltet fokuseres — og zoomer ikke ud igen. Klassisk mobil-irritation. */
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  background: #fff;
}
.search-field input:focus,
.search-field select:focus { border-color: var(--coral); }
.near-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  align-self: flex-end;
}
.near-btn.active { background: var(--ink); color: var(--lime); border-color: var(--ink); }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 8px; padding: 24px 0 0; }
.tab { display: inline-flex; align-items: center; line-height: 1; border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: var(--font-body); }
.tab.active { background: var(--coral); color: #fff; border-color: var(--coral); }

/* ---- Cards grid ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; padding-bottom: 40px; }

/* ---- Deal/Ad card (coupon style) ---- */
.deal-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.deal-card::before, .deal-card::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  top: 168px;
}
.deal-card::before { left: -10px; }
.deal-card::after  { right: -10px; }
.card-img { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 50px; position: relative; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-cat  { position: absolute; top: 12px; left: 12px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.card-badge { position: absolute; bottom: 12px; right: 12px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-body { padding: 16px; display: flex; flex-direction: column; }
.card-biz  { font-size: 11px; color: #999; }
.card-title{ font-family: var(--font-display); font-size: 17px; font-weight: 900; margin-top: 4px; line-height: 1.2; min-height: 41px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 13px; color: #666; margin-top: 6px; line-height: 1.5; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 2px dashed var(--line); margin-top: 4px; }
.price     { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--coral); }
.old-price { font-size: 13px; color: #bbb; text-decoration: line-through; margin-left: 6px; font-family: var(--font-body); font-weight: 400; }
.see-link  { font-size: 13px; font-weight: 700; color: var(--coral); }

/* ---- Categories ---- */
.section { padding: 48px 0; }
.section h2 { font-size: 30px; }
.section-white { background: #fff; }
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cat { border-radius: 999px; border: 2px solid var(--coral); color: var(--coral); padding: 8px 18px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cat:hover, .cat.active { background: var(--coral); color: #fff; }

/* ---- Why section ---- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 24px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.why-card h3 { font-size: 16px; }
.why-card p { font-size: 13px; color: #666; margin-top: 8px; line-height: 1.5; }
.why-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---- Businesses grid ---- */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }
.biz-mini { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; display: block; }
.biz-mini-body { padding: 12px 14px 14px; }
.biz-mini h3 { font-family: var(--font-display); font-size: 15px; }
.biz-mini p  { font-size: 12px; color: #888; margin-top: 2px; }

/* ---- Footer ---- */
.site-footer { color: #fff; padding: 48px 20px 0; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 13px; font-weight: 700; color: var(--lime); margin-bottom: 12px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { font-size: 13px; color: rgba(255,255,255,.75); }
.footer-grid a:hover { color: #fff; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 10px; line-height: 1.5; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 18px; font-weight: 900; }
.footer-logo img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.footer-copy { max-width: 1280px; margin: 24px auto 0; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.4); }

/* ---- Dashboard nav ---- */
.dash-nav { background: #fff; border-bottom: 1px solid var(--line); }
.dash-nav-inner { max-width: 1280px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.dash-tab { display: inline-flex; align-items: center; gap: 5px; line-height: 1; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: var(--font-body); color: #888; text-decoration: none; }
.dash-tab.active { background: var(--coral); color: #fff; border-color: var(--coral); }
.dash-tab.active-teal { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---- Dashboard page head ---- */
.page-head { max-width: 1280px; margin: 0 auto; padding: 28px 20px 0; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.page-head h1 { font-size: 28px; margin-top: 6px; }

/* ---- Overview cards ---- */
.ov-grid { max-width: 1280px; margin: 24px auto 60px; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .ov-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.ov-card h3 { font-size: 15px; }
.ov-card p  { font-size: 13px; color: #666; margin-top: 6px; }
.ov-card .cta-link { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--coral); }
.ov-card .cta-link-teal { color: var(--teal); }

/* ---- Content area ---- */
.content-area { max-width: 1280px; margin: 0 auto; padding: 28px 20px 60px; }

/* ---- Forms ---- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-row.full { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #999; }
.field input:not([type="file"]),
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  background: #fff;
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.field input[type="date"],
.field input[type="datetime-local"],
.field input[type="time"] {
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}
.field input:not([type="file"]):focus,
.field select:focus,
.field textarea:focus { border-color: var(--coral); }
.field textarea { resize: none; }

/* Skjul native file input — brug <label for="..."> som trigger (mest pålideligt på iOS Safari) */
input[type="file"] {
  position: absolute;
  width: 0.1px; height: 0.1px;
  opacity: 0; overflow: hidden;
  z-index: -1;
}
.file-upload-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 9px 16px;
  font-size: 13px; font-weight: 700; color: var(--teal);
  cursor: pointer; font-family: var(--font-body);
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.file-upload-btn:hover { border-color: var(--coral); background: #fff; }
.file-upload-name {
  font-size: 13px; color: #999;
  display: inline-block; vertical-align: middle; margin-left: 8px;
}
.upload-area { border: 2px dashed var(--line); border-radius: 14px; padding: 24px; text-align: center; color: #999; font-size: 13px; cursor: pointer; }
.field .hint { font-size: 12px; color: #999; }

/* Toggle buttons */
.toggle-row { display: flex; gap: 10px; }
.toggle-opt { flex: 1; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; font-size: 14px; font-weight: 700; color: #999; cursor: pointer; }
.toggle-opt.active { border-color: var(--teal); background: rgba(3,48,105,.06); color: var(--teal); }

/* ---- Alert ---- */
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.alert-error   { background: #fff0f0; border: 1px solid #fcc; color: #c00; }
.alert-success { background: #f0fff4; border: 1px solid #9fd8a0; color: #1a6630; }

/* ---- Stat cards ---- */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width:700px){ .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px; }
.stat-card .slabel { font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#999; }
.stat-card .sval   { font-family:var(--font-display);font-size:28px;font-weight:900;color:var(--coral);margin-top:4px; }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--line); background: #fff; margin-top: 16px; }
/* overflow-x:auto (før: hidden) — på mobil blev brede tabeller (fx købs-
   historik) KLIPPET AF uden mulighed for at se resten. Nu kan man swipe. */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--paper); }
th { text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #999; }
td { padding: 12px 16px; border-top: 1px solid var(--line); }

/* ---- Status chips ---- */
.status-usable   { background: rgba(61,150,168,.12); color: var(--teal); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.status-expiring { background: rgba(255,170,50,.15); color: #b96000; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.status-expired  { background: #f0f0f0; color: #bbb; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.status-pending  { background: rgba(255,170,50,.15); color: #b96000; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }

/* ---- Bought deal card ---- */
.bought-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.bought-top  { display: flex; }
.bought-deal-img { width: 130px; min-width: 130px; height: 130px; object-fit: cover; flex-shrink: 0; }
.bought-deal-img-placeholder { width: 130px; min-width: 130px; height: 130px; display: grid; place-items: center; font-size: 40px; flex-shrink: 0; background: linear-gradient(135deg,#ffd9cc,#ffb199); }
.bought-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.bought-biz  { font-size: 11px; color: #999; }
.bought-title{ font-family: var(--font-display); font-size: 17px; font-weight: 900; color: var(--ink); margin-top: 2px; }
.bought-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: #666; }
.bought-meta b { color: var(--ink); }
.qr-section  { display: flex; align-items: center; gap: 16px; border-top: 2px dashed var(--line); padding: 14px 16px 14px 0; flex-wrap: wrap; }
.qr-box      { width: 130px; min-width: 130px; height: 130px; border-radius: 0 10px 10px 0; overflow: hidden; background: var(--paper); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.qr-box.expired { opacity: .25; filter: grayscale(1); }
.qr-box canvas { width: 130px !important; height: 130px !important; max-width: 130px !important; max-height: 130px !important; display: block; }
.qr-info h4  { font-family: var(--font-display); font-size: 13px; font-weight: 900; margin-bottom: 3px; }
.qr-info p   { font-size: 12px; color: #666; margin-bottom: 6px; }
.qr-url      { font-size: 10px; color: #ccc; font-family: monospace; word-break: break-all; }

/* ---- Bubble interests ---- */
.bubbles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bubble  { border-radius: 999px; border: 2px solid; padding: 8px 18px; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ---- Friend card ---- */
.friend-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.friend-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }

/* ---- Business hero ---- */
.biz-hero { padding: 0 0 32px; }
.biz-hero-img { width: 100%; max-width: 833px; margin: 0 auto; background: rgba(255,255,255,.12); position: relative; display: flex; align-items: center; justify-content: center; font-size: 60px; color: rgba(255,255,255,.6); min-height: 136px; }
.biz-hero-img img { display: block; width: 100%; height: auto; max-height: 527px; object-fit: contain; }
.biz-hero-img img.biz-hero-fallback-logo { width: 80px; height: 80px; opacity: .35; object-fit: contain; }
.biz-hero-inner { max-width: 1280px; margin: 0 auto; padding: 24px 20px 0; }
.biz-logo-img { width: 90px; height: 90px; border-radius: 16px; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 38px; flex-shrink: 0; overflow: hidden; position: relative; }
.biz-logo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.biz-hero h1 { font-size: 32px; color: #fff; margin-top: 4px; }
.biz-cat  { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.biz-addr { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 4px; }
.biz-site { color: var(--lime); font-size: 13px; font-weight: 700; margin-top: 8px; display: inline-block; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.biz-tag  { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }

/* ---- Login page ---- */
.login-wrap { max-width: 420px; margin: 48px auto 60px; padding: 0 20px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.login-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.login-tab  { flex: 1; text-align: center; padding: 10px; font-size: 14px; font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; }
.login-tab.active { border-bottom-color: var(--coral); color: var(--coral); }

/* ---- Register ---- */
.register-wrap { max-width: 520px; margin: 40px auto 60px; padding: 0 20px; }

/* ---- Verify ---- */
.verify-wrap { max-width: 440px; margin: 60px auto; padding: 0 20px; text-align: center; }
.verify-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); margin: 0 auto 16px; display: grid; place-items: center; font-size: 28px; }

/* ---- Deal detail ---- */
.detail-wrap { max-width: 760px; margin: 32px auto 60px; padding: 0 20px; }
/* Deal side — køb/gem knapper */
.deal-buy-desktop { display: block; }
.deal-save-icon   { display: none; }
.deal-sticky-buy  { display: none; }

@media (max-width: 768px) {
  .deal-buy-desktop { display: none; }
  .deal-save-icon {
    display: flex;
    position: absolute;
    top: 12px; right: 12px;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.92);
    font-size: 20px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    z-index: 10;
    transition: background .15s;
  }
  .deal-sticky-buy {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    z-index: 100;
    backdrop-filter: blur(8px);
  }
}

.detail-img  { height: 420px; border-radius: 14px 14px 0 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; }
.detail-img img { position: absolute; inset: 0; width: 100%; height: 420px; object-fit: cover; object-position: center; display: block; }
.detail-body { background: #fff; border: 1px solid var(--line); border-radius: 0 0 18px 18px; }
.detail-content { padding: 24px; box-sizing: border-box; overflow: hidden; }
.detail-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 2px dashed var(--line); padding: 18px 24px; }
.pill-actions { display: flex; gap: 10px; }
.info-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px 14px; margin-top: 20px; }
@media (max-width:700px){ .info-grid { grid-template-columns: 1fr 1fr; } }
.info-grid .ilabel { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #999; }
.info-grid .ivalue { font-size: 14px; margin-top: 2px; }

/* ---- Comments ---- */
.comment-card { background: var(--paper); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.comment-author { font-weight: 700; font-size: 13px; }
.comment-text   { font-size: 14px; color: #444; margin-top: 4px; }

/* ---- Misc ---- */
.back-link { font-size: 13px; font-weight: 600; color: #999; display: inline-block; margin-bottom: 12px; }
.back-link:hover { color: var(--ink); }
.empty-state { border: 2px dashed var(--line); border-radius: 16px; padding: 48px 20px; text-align: center; color: #999; }
.empty-state p { font-size: 15px; font-weight: 600; }
.empty-state span { font-size: 13px; display: block; margin-top: 6px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* ================================================================
   RESPONSIVT DESIGN — Mobiloptimering (390px → 768px)
   Gennemgået og tilføjet systematisk
   ================================================================ */

/* --- Navigation --- */
@media (max-width: 1023px) {
  nav.main-nav { display: none; }
  .site-header .inner { padding: 10px 16px; gap: 10px; }
  .logo { font-size: 16px; }
  .logo img { width: 28px; height: 28px; }
  .header-actions { display: none !important; }
}

/* --- Hero forside --- */
@media (max-width: 600px) {
  .hero { padding: 40px 16px; }
  .hero .inner { gap: 24px; }
  .hero h1 { font-size: 30px !important; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* --- Søgefelt --- */
@media (max-width: 600px) {
  .search-box { flex-direction: column; gap: 10px; padding: 16px; }
  .search-field { min-width: 100%; }
  .near-btn { align-self: stretch; text-align: center; }
}

/* --- Tabs --- */
@media (max-width: 500px) {
  .tabs { flex-wrap: wrap; gap: 6px; padding-top: 16px; }
  .tab { font-size: 12px; padding: 7px 12px; }
}

/* --- Deals grid --- */
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (min-width: 481px) and (max-width: 760px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* --- Business dashboard sidebar --- */
@media (max-width: 900px) {
  .biz-sidebar { border-right: none; border-bottom: 1px solid var(--line); }
  .sidebar-nav { display: flex; flex-wrap: wrap; flex-direction: row !important; padding: 8px 12px !important; gap: 4px; }
  .sidebar-nav a { padding: 6px 12px !important; font-size: 12px; border-radius: 999px; flex-shrink: 0; }
  .sidebar-nav .ico { display: none; }
}

/* --- User dashboard bought deals --- */
@media (max-width: 600px) {
  .bought-top { flex-direction: column; }
  /* Vis HELE billedet i 4:3 uden beskæring (object-fit:contain).
     height:auto + aspect-ratio giver den fulde billedhøjde. */
  .bought-deal-img {
    width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: contain !important;
    background: #f4f4f4;
  }
  .bought-deal-img-placeholder {
    width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
  }
  .qr-box { width: 100% !important; min-width: 100% !important; height: 130px !important; border-radius: 0 0 10px 10px !important; }
}

/* --- Deal detail side --- */
@media (max-width: 600px) {
  .detail-wrap { padding: 0 12px; margin-top: 16px; }
  .detail-img { height: 260px; }
  .detail-img img { height: 260px; max-height: 260px; }
}

/* --- Virksomhedsside biz-hero --- */
@media (max-width: 600px) {
  .biz-hero-img img { max-height: 240px !important; }
  .biz-hero { padding: 16px !important; }
  .biz-hero h1 { font-size: 22px !important; }
}

/* --- Stat grid --- */
@media (max-width: 500px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- Footer --- */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .site-footer { padding: 36px 16px 0; }
}

/* --- Generel padding på mobil --- */
@media (max-width: 480px) {
  .content-area { padding: 16px 12px 40px; }
  .wrap { padding: 0 12px; }
  .page-head { padding: 16px 12px 0; }
  .form-card { padding: 16px; }
}

/* --- Samarbejde pris-kort --- */
@media (max-width: 500px) {
  .byskilt-hero-sign { width: 160px !important; }
}

/* --- Kommuner grid --- */
@media (max-width: 480px) {
  .ov-grid { grid-template-columns: 1fr !important; }
}
