/* Adentia AB – modern dark theme with brand green accents */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --brand: #30ac68;
  --brand-hover: #269656;
  --brand-soft: rgba(48, 172, 104, 0.14);
  --bg: #0a0f0d;
  --bg-elevated: #101613;
  --surface: #161d1a;
  --surface-2: #1c2521;
  --border: #24302b;
  --border-strong: #354540;
  --ink: #eef3ef;
  --muted: #8a9a90;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(90% 50% at 10% -10%, rgba(48, 172, 104, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  color-scheme: dark;
  accent-color: var(--brand);
  -webkit-font-smoothing: antialiased;
}

/* Wix-rester döljs */
.top-bar,
.bottom-link {
  display: none !important;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 13, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(48, 172, 104, 0.12);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 30px;
  width: auto;
  /* Loggan har ljus bakgrundsruta – mörka ytor får den att smälta in */
  mix-blend-mode: screen;
  transition: transform 0.35s var(--ease), filter 0.25s ease;
}

.logo:hover img {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.nav {
  display: none;
}

@media (min-width: 960px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-current {
    color: var(--ink) !important;
    background: rgba(255, 255, 255, 0.05);
  }
  .nav-cta {
    margin-left: 0.35rem;
    padding: 0.5rem 1rem !important;
    border-radius: 999px !important;
    background: var(--brand) !important;
    border: 1px solid var(--brand);
    font-size: 0.8rem !important;
    color: #06100a !important;
    font-weight: 650 !important;
    letter-spacing: 0.01em;
  }
  .nav-cta:hover {
    background: var(--brand-hover) !important;
    border-color: var(--brand-hover);
    color: #06100a !important;
  }
  .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem !important;
    color: var(--muted);
  }
  .nav-icon:hover {
    color: var(--ink);
  }
  .nav-icon svg {
    display: block;
  }
  .menu-btn {
    display: none;
  }
}

.menu-btn {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-mobile {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(14, 19, 17, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem 24px 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(12px);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
}

.nav-mobile a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(6, 10, 8, 0.62) 0%, rgba(6, 10, 8, 0.78) 48%, var(--bg) 100%),
    radial-gradient(50% 40% at 50% 40%, rgba(48, 172, 104, 0.18), transparent 70%),
    url('/images/Purchased/dreamstime_m_50414694.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--ink);
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 88px;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  animation: hero-in 0.9s var(--ease) both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand-text {
  margin: 0 auto 22px;
  font-family: 'Courier New', 'Space Grotesk', ui-monospace, monospace;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--brand);
  text-shadow: 0 0 40px rgba(48, 172, 104, 0.25);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 20px;
}

.hero-quote {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 0 18px;
  font-style: normal;
  color: #fff;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(238, 243, 239, 0.72);
  margin: 0 auto 32px;
  max-width: 36rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-cta .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #06100a;
  box-shadow: 0 12px 36px rgba(48, 172, 104, 0.28);
}

.hero-cta .btn-ghost {
  background: rgba(10, 15, 13, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(238, 243, 239, 0.22);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  background: rgba(48, 172, 104, 0.08);
  box-shadow: none;
  color: #fff;
}

/* Signs page hero variants */
.signs-hero {
  background-image:
    linear-gradient(180deg, rgba(8, 12, 10, 0.6), rgba(8, 12, 10, 0.82)),
    radial-gradient(55% 45% at 50% 35%, rgba(48, 172, 104, 0.18), transparent 70%),
    url('/images/QR-koder.PNG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.signs-hero .container {
  background: transparent;
  box-shadow: none;
  border: none;
  text-align: center;
  max-width: 820px;
}

.signs-hero .hero-quote,
.signs-hero .hero-sub {
  color: rgba(238, 243, 239, 0.88);
}

.signs-hero .hero-quote {
  color: #fff;
}

/* ========== Sections ========== */
.section {
  padding: clamp(64px, 10vw, 104px) 24px;
  background: transparent;
  border-top: 1px solid rgba(48, 172, 104, 0.08);
}

.section--alt {
  background: linear-gradient(180deg, rgba(22, 29, 26, 0.35), transparent);
}

.section--feature {
  background:
    radial-gradient(60% 80% at 90% 20%, rgba(48, 172, 104, 0.08), transparent 55%),
    transparent;
}

.section.section--alt.signs-hero {
  background:
    linear-gradient(180deg, rgba(8, 12, 10, 0.6), rgba(8, 12, 10, 0.82)),
    radial-gradient(55% 45% at 50% 35%, rgba(48, 172, 104, 0.16), transparent 70%),
    url('/images/QR-koder.PNG') center / cover no-repeat;
  padding: 96px 24px;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: none;
}

.section .container {
  max-width: 1040px;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  border: none;
}

.section--alt .container {
  background: transparent;
}

.section.section--alt.signs-hero .container {
  background: transparent;
  box-shadow: none;
  border: none;
}

.container--split {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: end;
}

@media (min-width: 800px) {
  .container--split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.section-content .lead {
  font-size: 1.12rem;
  color: rgba(238, 243, 239, 0.72);
  line-height: 1.55;
  margin: 0 0 1.5rem;
  max-width: 40rem;
  text-wrap: pretty;
}

.section-content p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link-more:hover {
  color: #5ecf8a;
  border-bottom-color: currentColor;
}

.link-more::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}

.link-more:hover::after {
  transform: translateX(3px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(48, 172, 104, 0.25);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #06100a;
  box-shadow: 0 10px 30px rgba(48, 172, 104, 0.22);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: 0 12px 34px rgba(48, 172, 104, 0.28);
  color: #06100a;
}


/* Inloggning / Skapa konto */
.auth-container {
  max-width: 400px;
}

.auth-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a9a90;
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}

.auth-form label:first-of-type {
  margin-top: 0;
}

.auth-form input {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid #354540;
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
  background: #161d1a;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.auth-form input:focus {
  outline: none;
  border-color: #30ac68;
  box-shadow: 0 0 0 1px rgba(48, 172, 104, 0.35);
  background: #1a221f;
}

.auth-form .btn {
  margin-top: 1.25rem;
  width: 100%;
}

.auth-error {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #dc2626;
}

.auth-success {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #30ac68;
}

.account-section-desc {
  margin-bottom: 1.25rem;
  color: #8a9a90;
}

.account-form-narrow {
  max-width: 22rem;
}

#admin-settings-form.account-form-narrow {
  max-width: 26rem;
}

.admin-settings-divider {
  margin: 1.75rem 0 1.25rem;
  border: none;
  border-top: 1px solid #2a3530;
}

.admin-sms {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.admin-sms-intro {
  margin: -0.35rem 0 0;
  color: #8a9a90;
  font-size: 0.88rem;
}

.admin-sms-block {
  padding: 1rem;
  border: 1px solid #24302b;
  border-radius: 12px;
  background: #161d1a;
}

.admin-sms-block__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8eee9;
}

.admin-sms-block__desc {
  margin: 0 0 0.85rem;
  color: #8a9a90;
  font-size: 0.85rem;
}

.admin-sms-group-label {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a9a90;
}

.admin-sms-checks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-form .admin-sms-check,
.admin-sms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #c5d0c8;
  cursor: pointer;
}

.auth-form .admin-sms-check--compact,
.admin-sms-check--compact {
  align-items: center;
  margin-bottom: 0.2rem;
}

.admin-sms-check input[type="checkbox"] {
  width: auto;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: #30ac68;
  cursor: pointer;
}

.admin-sms-check--compact input[type="checkbox"] {
  margin-top: 0;
}

.admin-sms-check__body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.admin-sms-check__label {
  color: #e8eee9;
  font-size: 0.92rem;
  line-height: 1.3;
}

.admin-sms-check__hint {
  color: #8a9a90;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-sms-field {
  margin-top: 0.65rem;
}

.admin-sms-field:first-child {
  margin-top: 0;
}

.auth-form .admin-sms-field > label {
  margin-top: 0;
}

.admin-sms-field__hint {
  margin: 0.35rem 0 0;
  color: #8a9a90;
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-sms-select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
  border-radius: 0.6rem;
  background: #161d1a;
}

.admin-pris-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-pris-tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.admin-pris-tier-row .admin-sms-field {
  margin-top: 0.45rem;
}

.auth-switch {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #8a9a90;
}

.auth-switch a {
  color: #30ac68;
  text-decoration: underline;
}

.auth-switch a:hover {
  color: #269656;
}

/* Min sida – sidomeny + innehåll */
.account-page {
  min-height: calc(100vh - 52px - 80px);
}

/* Gäst ser bara inloggning – menyn visas bara när .account-page har .is-logged-in */
.account-page #account-loggedin {
  display: none;
}

.account-page.is-logged-in #account-guest {
  display: none;
}

.account-page.is-logged-in #account-loggedin {
  display: flex;
}

.account-guest .account-guest-card {
  max-width: 400px;
  margin: 2rem auto;
}

.account-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 20px;
  gap: 2rem;
}

.account-sidebar {
  flex-shrink: 0;
  width: 220px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #1a221f;
  border-radius: 1rem;
  border: 1px solid #24302b;
  padding: 0.5rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.account-nav-link {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  color: #8a9a90;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 150ms ease, color 150ms ease;
}

.account-nav-link:hover {
  background: #161d1a;
  color: #e8eee9;
}

.account-nav-link.is-active {
  background: rgba(48, 172, 104, 0.12);
  color: #30ac68;
}

.account-logout-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #8a9a90;
  background: #1a221f;
  border: 1px solid #24302b;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.account-logout-btn:hover {
  color: #e8eee9;
  border-color: #354540;
  background: #161d1a;
}

.account-content {
  flex: 1;
  min-width: 0;
  background: #1a221f;
  border-radius: 1rem;
  border: 1px solid #24302b;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.account-panel .section-title {
  margin-top: 0;
}

.account-empty {
  color: #8a9a90;
}

/* Sparade skyltar: förhandsvisning + lista */
.saved-signs-preview-wrap {
  margin-bottom: 1.5rem;
}

.saved-signs-preview-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a9a90;
  margin-bottom: 0.5rem;
}

.saved-signs-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 1rem;
  background: #0e1311;
  border-radius: 0.5rem;
  border: 1px solid #24302b;
}

.saved-signs-mini-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  white-space: nowrap;
  overflow: hidden;
}

.saved-signs-mini-holes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.saved-signs-mini-hole {
  position: absolute;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.saved-signs-mini-hole--round {
  border-radius: 50%;
}

.saved-signs-mini-text {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1em;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-word;
  min-height: 0;
}

.saved-signs-preview-placeholder {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #6b7a70;
}

.saved-signs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.saved-signs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: #1a221f;
  border: 1px solid #24302b;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}

.saved-signs-item:hover {
  background: #161d1a;
}

.saved-signs-item.is-selected {
  border-color: #30ac68;
  background: rgba(48, 172, 104, 0.12);
}

.saved-signs-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-signs-item-price {
  flex-shrink: 0;
  font-weight: 600;
  color: #30ac68;
}

.saved-signs-project-select {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.2rem 0.35rem;
  min-width: 6rem;
  max-width: 8rem;
}

.saved-signs-delete-btn {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid #fecaca;
  background: #1a221f;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.saved-signs-delete-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.saved-signs-delete-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.saved-signs-empty {
  color: #8a9a90;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Projekt */
.project-actions {
  margin-bottom: 1.25rem;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.5rem;
  background: #1a221f;
  border: 1px solid #24302b;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
  flex-wrap: wrap;
}

.project-item:hover {
  background: #161d1a;
}

.project-item-name {
  font-weight: 600;
  color: #e8eee9;
}

.project-item-meta {
  font-size: 0.9rem;
  color: #8a9a90;
}

.project-empty {
  color: #8a9a90;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.project-detail-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.project-summary {
  background: #161d1a;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.project-summary p {
  margin: 0.25rem 0;
}

.project-signs-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.project-sign-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #24302b;
  font-size: 0.9rem;
}

.project-sign-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-sign-item-price {
  flex-shrink: 0;
  font-weight: 600;
  color: #30ac68;
  margin-left: 0.5rem;
}

#project-detail-back {
  margin-top: 0.5rem;
}

/* Admin – döljs som standard; endast synliga när gruppen visas för inloggad admin */
.account-nav-admin-group {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid #24302b;
}

.account-nav-admin-group.account-nav-admin-visible,
.account-nav-admin-group:not([hidden]) {
  display: flex;
}

.account-nav-admin-group[hidden] {
  display: none !important;
}

.account-nav-admin-heading {
  margin: 0 0 0.2rem;
  padding: 0.15rem 1rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #30ac68;
}

.account-nav-link--sub {
  padding-left: 1.35rem;
  font-size: 0.9rem;
}

.account-nav-admin {
  display: block;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #24302b;
}

.admin-table th {
  font-weight: 600;
  color: #c5d0c8;
  background: #161d1a;
}

.admin-role-select {
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #354540;
  border-radius: 0.375rem;
  background: #1a221f;
  min-width: 8rem;
  cursor: pointer;
}

.admin-role-select:hover {
  border-color: #6b7a70;
}

.admin-role-select:focus {
  outline: none;
  border-color: #30ac68;
  box-shadow: 0 0 0 2px rgba(48, 172, 104, 0.2);
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
}

.admin-filter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.admin-filter-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid #354540;
  border-radius: 0.5rem;
  background: #1a221f;
  color: #e8eee9;
  font-size: 0.92rem;
}

.admin-filter-input:focus {
  outline: none;
  border-color: #30ac68;
  box-shadow: 0 0 0 2px rgba(48, 172, 104, 0.2);
}

.admin-filter-btn {
  flex: 0 0 auto;
}

.admin-accounts-head,
.admin-companies-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) 0.9fr minmax(0, 1.2fr);
  gap: 12px;
  padding: 0 14px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9a90;
}

.admin-companies-head {
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
}

.admin-accounts-list,
.admin-companies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-account-row,
.admin-company-row {
  border: 1px solid #24302b;
  border-radius: 12px;
  background: #161d1a;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-account-row.is-expanded,
.admin-company-row.is-expanded,
.admin-company-row.is-focused {
  border-color: rgba(48, 172, 104, 0.45);
  box-shadow: 0 0 0 1px rgba(48, 172, 104, 0.18);
}

.admin-account-row__summary,
.admin-company-row__summary {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) 0.9fr minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 0 14px;
  border: none;
  background: transparent;
  color: #e8eee9;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.admin-company-row__summary {
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
}

.admin-account-row__summary:hover,
.admin-company-row__summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-account-row__name,
.admin-company-row__name {
  font-weight: 600;
}

.admin-account-row__email,
.admin-account-row__role,
.admin-company-row__members,
.admin-company-row__orders {
  color: #c5d0c8;
  font-size: 0.92rem;
}

.admin-account-row__company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.admin-company-link {
  border: none;
  background: none;
  padding: 0;
  color: #30ac68;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-company-link:hover {
  color: #4ec882;
}

.admin-account-row__company-role {
  font-size: 0.78rem;
  color: #8a9a90;
}

.admin-account-row__details,
.admin-company-row__details {
  padding: 0 14px 14px;
  border-top: 1px solid #24302b;
}

.admin-account-row__detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
}

.admin-company-row__detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.25rem;
  padding-top: 12px;
}

.admin-account-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-company-subheading {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9a90;
}

.admin-company-members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-company-members li {
  padding: 0.55rem 0.7rem;
  border: 1px solid #24302b;
  border-radius: 8px;
  background: #121816;
  font-size: 0.9rem;
}

.admin-company-member-email {
  display: block;
  margin-top: 0.15rem;
  color: #8a9a90;
  font-size: 0.8rem;
}

.admin-company-orders {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-company-order {
  border: 1px solid #24302b;
  border-radius: 8px;
  background: #121816;
  padding: 0.7rem 0.8rem;
}

.admin-company-order__main,
.admin-company-order__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  align-items: center;
}

.admin-company-order__meta {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid #24302b;
  color: #c5d0c8;
  font-size: 0.86rem;
}

.admin-company-order__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: #8a9a90;
}

.pl-personal-add-form {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid #24302b;
  border-radius: 12px;
  background: #161d1a;
}

.pl-personal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}

.pl-personal-toolbar .account-section-desc {
  margin: 0;
  flex: 1 1 220px;
}

.pl-personal-company-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.pl-personal-company-wrap[hidden] {
  display: none !important;
}

.pl-personal-company-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9a90;
}

.pl-personal-company-select {
  min-width: 12rem;
}

.pl-personal-add-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.pl-personal-add-form input[type="text"],
.pl-personal-add-form input[type="email"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid #354540;
  border-radius: 0.375rem;
  background: #1a221f;
  color: #e8eee9;
  font: inherit;
}

.pl-personal-add-form input:focus {
  outline: none;
  border-color: #30ac68;
  box-shadow: 0 0 0 2px rgba(48, 172, 104, 0.2);
}

.pl-personal-add-hint {
  margin: 0.75rem 0 0.5rem;
}

.pl-personal-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.pl-personal-head {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) 1fr auto;
}

.pl-personal-head--with-company {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.1fr) 1fr auto;
}

.pl-personal-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0.75rem 14px;
  border: 1px solid #24302b;
  border-radius: 12px;
  background: #161d1a;
}

.pl-personal-row--with-company {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.1fr) 1fr auto;
}

.nav-cart {
  position: relative;
}

.nav-cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 4px;
  border-radius: 999px;
  background: #30ac68;
  color: #06110b;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.shop-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid #24302b;
  border-radius: 12px;
  background: #161d1a;
}

.shop-card__title {
  margin: 0;
  font-size: 1.05rem;
  color: #e8eee9;
}

.shop-card__desc {
  margin: 0;
  color: #8a9a90;
  font-size: 0.88rem;
  flex: 1;
}

.shop-card__meta {
  margin: 0;
  color: #30ac68;
  font-size: 0.8rem;
  font-weight: 600;
}

.shop-card__row {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  color: #c5d0c8;
}

.shop-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pl-forbrukning-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
}

.pl-forbrukning-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, 0.8fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid #24302b;
  border-radius: 10px;
  background: #161d1a;
  color: #e8eee9;
}

.pl-forbrukning-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pl-forbrukning-row__meta {
  color: #8a9a90;
  font-size: 0.82rem;
}

.pl-forbrukning-note {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid #354540;
  border-radius: 0.375rem;
  background: #1a221f;
  color: #e8eee9;
  font: inherit;
}

.pl-deliv-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}

.pl-deliv-map-pane {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.pl-deliv-map {
  height: 420px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #24302b;
  background: #121816;
  overflow: hidden;
}

.pl-deliv-map-meta {
  padding: 0.85rem 1rem;
  border: 1px solid #24302b;
  border-radius: 12px;
  background: #161d1a;
  color: #c5d0c8;
  font-size: 0.9rem;
}

.pl-deliv-map-meta strong {
  color: #e8eee9;
}

.pl-deliv-eta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 0.55rem;
}

.pl-deliv-eta span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pl-deliv-eta em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9a90;
}

.pl-deliv-stops {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: #8a9a90;
  font-size: 0.84rem;
}

.pl-deliv-list-pane {
  min-width: 0;
}

.pl-deliv-head {
  grid-template-columns: minmax(0, 1.6fr) 0.9fr 1fr 0.9fr;
}

.pl-deliv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pl-deliv-row {
  border: 1px solid #24302b;
  border-radius: 12px;
  background: #161d1a;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pl-deliv-row.is-expanded {
  border-color: rgba(48, 172, 104, 0.5);
  box-shadow: 0 0 0 1px rgba(48, 172, 104, 0.2);
}

.pl-deliv-row__summary {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 0.9fr 1fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 0 14px;
  border: none;
  background: transparent;
  color: #e8eee9;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.pl-deliv-row__summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pl-deliv-row__title {
  font-weight: 600;
}

.pl-deliv-row__tracking {
  display: block;
  margin-top: 2px;
  color: #8a9a90;
  font-size: 0.78rem;
}

.pl-deliv-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(48, 172, 104, 0.15);
  color: #4ec882;
}

.pl-deliv-status--exception {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
}

.pl-deliv-status--delivered {
  background: rgba(138, 154, 144, 0.2);
  color: #c5d0c8;
}

.pl-deliv-row__details {
  display: none;
  padding: 0 14px 16px;
  border-top: 1px solid #24302b;
}

.pl-deliv-row.is-expanded .pl-deliv-row__details {
  display: block;
}

.pl-deliv-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem;
  padding-top: 12px;
}

.pl-deliv-events {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pl-deliv-events li {
  padding: 0.65rem 0.75rem;
  border: 1px solid #24302b;
  border-radius: 8px;
  background: #121816;
}

.pl-deliv-events time {
  display: block;
  color: #8a9a90;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.pl-deliv-event-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pl-deliv-event-form input,
.pl-deliv-event-form select {
  padding: 0.4rem 0.55rem;
  border: 1px solid #354540;
  border-radius: 0.375rem;
  background: #1a221f;
  color: #e8eee9;
  font: inherit;
}

.pl-deliv-live-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #30ac68;
  box-shadow: 0 0 0 0 rgba(48, 172, 104, 0.55);
  animation: pl-deliv-pulse 1.6s ease infinite;
  margin-right: 0.35rem;
}

@keyframes pl-deliv-pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 172, 104, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(48, 172, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 172, 104, 0); }
}

@media (max-width: 980px) {
  .pl-deliv-map {
    height: 300px;
  }
  .pl-deliv-row__summary,
  .pl-deliv-head {
    grid-template-columns: 1fr 1fr;
  }
  .pl-deliv-detail-grid,
  .pl-deliv-event-form {
    grid-template-columns: 1fr;
  }
}

.cart-actions .btn-ghost {
  text-align: center;
}

@media (max-width: 800px) {
  .pl-forbrukning-row {
    grid-template-columns: auto 1fr;
  }
  .pl-forbrukning-note {
    grid-column: 1 / -1;
  }
}

.pl-personal-row__company {
  color: #c5d0c8;
  font-size: 0.92rem;
  min-width: 0;
}

.pl-tool-body {
  min-height: 1rem;
}

.pl-tool-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pl-tool-section {
  padding: 1rem;
  border: 1px solid #24302b;
  border-radius: 12px;
  background: #161d1a;
}

.pl-tool-section__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #e8eee9;
}

.pl-tool-section__desc,
.pl-tool-subtitle {
  margin: 0 0 0.75rem;
  color: #8a9a90;
  font-size: 0.88rem;
}

.pl-tool-subtitle {
  margin-top: 1rem;
  font-weight: 600;
  color: #c5d0c8;
}

.pl-tool-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}

.pl-tool-color-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #354540;
  border-radius: 0.5rem;
  background: #121816;
  cursor: pointer;
  font-size: 0.86rem;
  color: #e8eee9;
}

.pl-tool-color-swatch {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.pl-tool-check-list,
.pl-tool-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.pl-tool-check-list {
  flex-direction: column;
}

.pl-tool-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #c5d0c8;
  font-size: 0.9rem;
  cursor: pointer;
}

.pl-tool-presets {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.pl-tool-preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid #24302b;
  border-radius: 8px;
  background: #121816;
}

.pl-tool-preset-row__meta {
  font-size: 0.82rem;
  color: #8a9a90;
}

.pl-tool-preset-form {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #24302b;
}

.pl-tool-preset-form input[type="text"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid #354540;
  border-radius: 0.375rem;
  background: #1a221f;
  color: #e8eee9;
  font: inherit;
}

.pl-personal-row__name {
  font-weight: 600;
  color: #e8eee9;
}

.pl-personal-row__email {
  color: #c5d0c8;
  font-size: 0.92rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pl-personal-row__remove {
  justify-self: end;
}

@media (max-width: 800px) {
  .pl-personal-add-grid,
  .pl-personal-head,
  .pl-personal-row {
    grid-template-columns: 1fr;
  }

  .pl-personal-head {
    display: none;
  }

  .pl-personal-row__remove {
    justify-self: start;
  }

  .admin-accounts-head,
  .admin-companies-head {
    display: none;
  }

  .admin-account-row__summary,
  .admin-company-row__summary {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
  }

  .admin-account-row__detail-grid,
  .admin-company-row__detail-grid {
    grid-template-columns: 1fr;
  }
}

.admin-jobb-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-orders-head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr 1fr;
  gap: 12px;
  padding: 0 14px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9a90;
}

.admin-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-order-row {
  border: 1px solid #24302b;
  border-radius: 12px;
  background: #161d1a;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-order-row.is-expanded {
  border-color: rgba(48, 172, 104, 0.45);
  box-shadow: 0 0 0 1px rgba(48, 172, 104, 0.18);
}

.admin-order-row__summary {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 0 14px;
  border: none;
  background: transparent;
  color: #e8eee9;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-order-row__summary:hover {
  background: rgba(48, 172, 104, 0.06);
}

.admin-order-row__company {
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-row__signs,
.admin-order-row__price {
  color: #c5d0c8;
  font-variant-numeric: tabular-nums;
}

.admin-order-row__status {
  justify-self: start;
}

.admin-order-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(48, 172, 104, 0.12);
  color: #30ac68;
  border: 1px solid rgba(48, 172, 104, 0.28);
}

.admin-order-status--vantar_betalning {
  background: rgba(234, 179, 8, 0.14);
  color: #fbbf24;
  border-color: rgba(234, 179, 8, 0.35);
}

.admin-order-status--produktion,
.admin-order-status--bekraftad {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.28);
}

.admin-order-status--klar,
.admin-order-status--skickad,
.admin-order-status--fakturerad {
  background: rgba(48, 172, 104, 0.16);
  color: #5ecf8a;
  border-color: rgba(48, 172, 104, 0.35);
}

.admin-order-status--makulerad {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.28);
}

.admin-order-row__details {
  min-height: 56px;
  border-top: 1px solid #24302b;
  padding: 10px 14px 12px;
  background: rgba(10, 15, 13, 0.45);
}

.admin-order-row__detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  min-height: 44px;
}

.admin-order-row__meta-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9a90;
  margin-bottom: 2px;
}

.admin-order-row__meta-value {
  font-weight: 600;
  color: #e8eee9;
}

.admin-order-row__meta-email {
  display: block;
  font-size: 0.8rem;
  color: #8a9a90;
}

.admin-order-status-select {
  width: 100%;
  max-width: 180px;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #354540;
  background: #0e1311;
  color: #e8eee9;
  font: inherit;
  font-size: 0.85rem;
}

.admin-order-row__pdfs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-order-pdf-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 999px;
}

.admin-order-pdf-btn--prod {
  min-width: 4.2rem;
  justify-content: center;
  font-weight: 750;
  letter-spacing: 0.02em;
}

@media (max-width: 800px) {
  .admin-orders-head {
    display: none;
  }
  .admin-order-row__summary {
    grid-template-columns: 1fr 1fr;
    min-height: 64px;
    padding: 10px 14px;
  }
  .admin-order-row__detail-grid {
    grid-template-columns: 1fr;
  }
  .admin-order-row__pdfs {
    justify-content: flex-start;
  }
}

.admin-jobb-card {
  border: 1px solid #24302b;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #1a221f;
}

.admin-jobb-card-header {
  padding: 0.75rem 1rem;
  background: #161d1a;
  border-bottom: 1px solid #24302b;
  font-size: 0.95rem;
}

.admin-jobb-email {
  font-weight: normal;
  color: #8a9a90;
  margin-left: 0.5rem;
}

.admin-jobb-card-body {
  padding: 1rem;
  font-size: 0.9rem;
}

.admin-jobb-card-body p {
  margin: 0.35rem 0;
}

.admin-jobb-signs {
  font-size: 0.85rem;
  color: #8a9a90;
}

@media (max-width: 700px) {
  .account-layout {
    flex-direction: column;
  }
  .account-sidebar {
    width: 100%;
  }
  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ========== Signs: produktrutor (2 överst, 3 under) ========== */
.signs-products {
  margin-top: 0;
  padding-top: 0.5rem;
  border-top: none;
}

.signs-products__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.signs-product-card {
  grid-column: span 6;
  margin: 0;
  padding: 0;
  min-height: 12.5rem;
  background: var(--surface);
  border: 1px solid #24302b;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.signs-product-card:hover {
  border-color: #354540;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.signs-product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(100% 120% at 10% 10%, rgba(48, 172, 104, 0.45), transparent 55%),
    radial-gradient(120% 120% at 90% 30%, rgba(249, 115, 22, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.95));
}

.signs-product-card__tap {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.signs-product-card__tap:focus-visible {
  outline: 2px solid rgba(48, 172, 104, 0.7);
  outline-offset: 3px;
  border-radius: 0.85rem;
}

.signs-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}

/* Finjusterad beskärning per produktkort */
.signs-product-card--plakat .signs-product-card__image {
  object-position: 50% 50%;
}

.signs-product-card--qr .signs-product-card__image {
  /* Flytta upp motivet så den vita skylten under kodläsaren syns mer */
  object-position: 50% 20%;
}

.signs-product-card__media--fallback {
  /* Om bilden saknas: gör ytan lite mer “grafisk” men håll samma höjd */
  background: radial-gradient(100% 120% at 10% 10%, rgba(48, 172, 104, 0.55), transparent 55%),
    radial-gradient(120% 120% at 90% 30%, rgba(34, 197, 94, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.97));
}

.signs-product-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.92));
  pointer-events: none;
}

.signs-product-card__body {
  padding: 1.1rem 1.2rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.0));
}

.signs-product-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #161d1a;
}

.signs-product-card__text {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.5;
}

.signs-product-card__link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7dd9a0;
  text-decoration: none;
}

.signs-product-card__link:hover {
  color: rgba(48, 172, 104, 0.35);
  text-decoration: underline;
}

.signs-product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: #7dd9a0;
}

.signs-product-card__cta::after {
  content: '→';
  font-weight: 700;
}

.signs-product-card--cta {
  background: radial-gradient(120% 120% at 10% 20%, rgba(48, 172, 104, 0.35), transparent 55%),
    radial-gradient(120% 120% at 90% 30%, rgba(34, 197, 94, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.95));
}

.signs-product-card--cta .signs-product-card__body {
  padding: 1.35rem 1.35rem 1.45rem;
}

@media (min-width: 640px) {
  .signs-product-card:nth-child(1),
  .signs-product-card:nth-child(2) {
    grid-column: span 3;
  }

  .signs-product-card:nth-child(3),
  .signs-product-card:nth-child(4),
  .signs-product-card:nth-child(5) {
    grid-column: span 2;
  }

  .signs-product-card--row-full {
    grid-column: 1 / -1;
  }
}


/* ========== Kontakt ========== */
.section--dark {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(48, 172, 104, 0.14), transparent 55%),
    #070b09;
  color: var(--ink);
  padding: clamp(72px, 10vw, 110px) 24px;
  border-top: 1px solid rgba(48, 172, 104, 0.12);
}

.section--dark .container {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

.section--dark .section-title {
  color: #fff;
}

.section--dark .section-eyebrow {
  color: var(--brand);
}

.section--dark .contact-block,
.section--dark .contact-block a {
  color: rgba(238, 243, 239, 0.78);
}

.section--dark .contact-block a:hover {
  color: var(--brand);
}

.section--dark .contact-block strong {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section--dark .link-more {
  color: var(--brand);
}

.section--dark .link-more:hover {
  color: #5ecf8a;
}

.contact-grid {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-block {
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.55;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(48, 172, 104, 0.16);
}

.contact-block strong {
  display: block;
  margin-bottom: 0.55rem;
}

.contact-block a {
  text-decoration: none;
}

.contact-map-wrap {
  margin-top: 2.5rem;
}

.contact-map-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.contact-map-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.contact-map-embed iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.contact-map-link {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.contact-map-link a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.contact-map-link a:hover {
  color: #5ecf8a;
}

/* ========== Footer ========== */
.site-footer {
  background: transparent;
  color: var(--muted);
  padding: 40px 24px 48px;
  text-align: center;
  border-top: 1px solid rgba(48, 172, 104, 0.1);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.site-footer p {
  margin: 0;
}

.page-content {
  min-height: calc(100vh - 68px - 100px);
}

/* Auth / account surfaces */
.auth-container,
.account-guest-card,
.account-content,
.account-nav {
  border-radius: var(--radius) !important;
}

.auth-form input:focus,
.account-form input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(48, 172, 104, 0.18) !important;
}


/* ===== Physical previews stay light (paper / signs) ===== */
.design-canvas__a4,
.design-canvas__a4-inner,
.design-canvas__a4-sheet-stage,
.design-canvas__sign,
.design-canvas__freeform,
.canvas__card,
.canvas__cell,
.canvas__a4,
.mob-a4-page__sheet,
.mob-a4-page__sign,
.mob-mini-preview__sign,
.saved-sign-thumb,
.saved-sign-preview,
.account-sign-preview,
.sign-preview-card {
  /* keep product/paper readable */
}

.design-canvas__a4-inner,
.design-canvas__a4-sheet-stage,
.canvas__a4,
.mob-a4-page__sheet {
  background: #ffffff !important;
  color: #111827;
  border-color: rgba(15, 23, 42, 0.22) !important;
  box-shadow: 0 1px #fff inset, 0 2px 6px rgba(0,0,0,0.2) !important;
}

.design-canvas__a4 {
  background: linear-gradient(145deg, #1c2622, #141a18) !important;
  border-color: rgba(48, 172, 104, 0.2) !important;
}

.design-canvas__sign,
.canvas__card,
.canvas__cell,
.mob-a4-page__sign,
.mob-mini-preview__sign {
  background: #ffffff !important;
}

.design-canvas__sign:after {
  border-color: #1f2937 !important;
}

.design-canvas__a4-margin-guides:before,
.mob-a4-page__guides::before {
  border-color: rgba(48, 172, 104, 0.35) !important;
}

.design-canvas__sign--selected,
.design-canvas__sign:focus-visible {
  box-shadow: 0 0 0 3px #30ac68, 0 4px 14px rgba(0,0,0,0.35) !important;
}

.sign-renderer__qr-grid {
  background: repeating-conic-gradient(#111827, #111827 25%, #f8fafc 0%, #f8fafc 50%) 50% / 20% 20% !important;
}
