/* Grundlayout – schlicht, neutral, professionell */
:root {
  /* Neue Graustufen-Farbpalette basierend auf Attachment */
  --bg: #f5f5f6;        /* sehr helles Grau Hintergrund */
  --panel: #ffffff;     /* weiße Karten/Paneele */
  --text: #2b2b2b;      /* dunkles Grau für Haupttexte */
  --muted: #7d7d7d;     /* mittleres Grau für sekundäre Texte */
  --brand: #9b9b9b;     /* dezenter Grau-Akzent */
  --border: #e0e0e0;    /* helle Grenzen */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
}
nav { display:flex; align-items:center; justify-content:space-between; height:72px; gap: 16px; }
.logo { display:flex; align-items:center; gap:12px; }
.logo img { width:48px; height:48px; border-radius:8px; object-fit:cover; }
.site-logo { width:56px; height:56px; border-radius:10px; }
.logo h1 { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: .2px; }
.logo-link { display:flex; align-items:center; gap:12px; text-decoration:none; color: inherit; }

.nav-links { display:flex; gap:22px; list-style:none; padding:0; margin:0; }
.nav-links a { color: var(--text); text-decoration:none; font-weight:500; font-size:14px; padding:8px 0; }
.nav-links a:hover { color: #505050; }

.menu-toggle { display:none; width:40px; height:40px; border-radius:8px; border:1px solid var(--border); background: transparent; color: var(--text); }
.mobile-menu { display:none; position: fixed; top:72px; left:0; right:0; background: var(--panel); border-bottom:1px solid var(--border); padding:8px 16px 16px; }
.mobile-menu.open { display:block; }
.mobile-menu a { display:block; color: var(--text); text-decoration:none; padding:10px 6px; border-radius:8px; }
.mobile-menu a:hover { background: #f0f0f0; color: var(--text); }

/* Hero */
.hero { margin-top: 72px; padding: 0 0 48px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg,#fff 0%, #f7f7f8 100%), url('../../Logo_Banner/Banner-new.gif') center/contain no-repeat; min-height: 90vh; position: relative; display:flex; align-items: flex-start; justify-content: center; --hero-top: clamp(180px, 40vh, 360px); --hero-shift-x: 0px; --hero-shift-y: 0px; }
.hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: 0; opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 57, 99, 0.30) 0%, rgba(17,19,22,0.08) 30%, rgba(14, 48, 99,0.06) 60%, rgba(17,19,22,0.08) 100%); pointer-events: none; }
.hero .container { position: absolute; z-index: 2; left: 50%; top: var(--hero-top); transform: translate(calc(-50% + var(--hero-shift-x)), var(--hero-shift-y)); text-align: center; width: min(1000px, calc(100% - 48px)); }
.hero h2 { font-size: 42px; line-height:1.2; margin: 0 0 12px; }
.hero h2 { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero p { color: var(--muted); max-width: 820px; margin: 0 auto 20px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top: 16px; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding: 12px 20px; font-weight:600; font-size: 15px; border-radius: 10px; text-decoration:none; cursor:pointer; border:1px solid var(--border); color: var(--text); background: #ffffff; }
.btn:hover { border-color: #cccccc; }
.btn.primary { background: var(--text); border-color: var(--text); color: #fff; }
.btn.primary:hover { filter: brightness(0.95); }

/* Sektionen */
.section { padding: 64px 0; }
.hero-intro { padding-top: 28px; padding-bottom: 52px; border-bottom: 1px solid var(--border); }
.page-offset { padding-top: 112px; }
.sticky-spacer { height: 72px; }
.section-title { text-align:center; font-size: 28px; margin: 0 0 28px; }
.grid { display:grid; gap: 24px; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.products-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--panel); border:1px solid var(--border); border-radius: 14px; padding: 22px; }
.card-narrow { max-width: 900px; margin: 0 auto; }
.card h3 { margin: 8px 0 8px; font-size: 18px; }
.card .muted { color: var(--muted); }

/* Feature-/Team-Karten – veredelt, gleicher Look */
.feature-card, .team-card { 
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 6px 20px rgba(35,35,35,0.06);
}
.feature-card::before, .team-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  border-top-left-radius: 14px; border-top-right-radius: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.06) 18%, rgba(0,0,0,0.06) 82%, rgba(0,0,0,0.0) 100%);
  opacity: .9;
}
.feature-card:hover, .team-card:hover {
  transform: translateY(-4px);
  border-color: #d6d6d6;
  box-shadow: 0 12px 34px rgba(35,35,35,0.08);
}
.feature-card h3 { font-size: 18px; margin: 6px 0 10px; letter-spacing: .2px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 14px; }


.product-card { overflow:hidden; display:flex; flex-direction:column; }
.product-image { position: relative; height: 180px; background: #191c21; display:flex; align-items:center; justify-content:center; font-size: 28px; border-radius: 12px; border:1px solid var(--border); overflow:hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02); }
.product-image .media { position: relative; width:100%; height:100%; }
.product-image .media .bg { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; filter: blur(12px) brightness(0.6); transform: scale(1.08); }
.product-image .media .fg { position:relative; width:100%; height:100%; object-fit: contain; z-index:1; }
.product-info { padding: 18px 22px; }
.product-title { font-size: 18px; margin-bottom: 6px; }
.product-price { font-size: 20px; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.product-description { color: var(--muted); margin-bottom: 14px; font-size: 14px; }
.buy-button { width:100%; }

.tabs { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin: 0 0 18px; }
.tab-btn { background: #15171b; color: var(--text); border:1px solid var(--border); border-radius: 999px; padding: 10px 16px; cursor:pointer; font-weight:500; }
.tab-btn.active { background: var(--brand); color: #111; border-color: var(--brand); }
.tab-content { display:none; }
.tab-content.active { display:block; }

/* Team */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.team-card { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.team-card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: radial-gradient(100% 100% at 50% 0%, #1f232a 0%, #171a20 100%);
  border: 1px solid var(--border);
  font-weight: 700; color: var(--text);
}
.team-card .name { margin: 6px 0 0; font-size: 18px; }
.team-card .role { margin: 0; font-weight: 600; color: var(--brand); font-size: 14px; }
.team-card .bio { margin: 6px 0 0; font-size: 14px; }
.team-card .links { display:flex; gap:10px; margin-top: 8px; }
.team-card .links a { text-decoration:none; color: var(--muted); font-size: 18px; }
.team-card .links a:hover { color: var(--text); }

/* Formulare */
.form { max-width: 840px; margin: 0 auto; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap: 16px; }
.form-group { display:block; margin-bottom: 14px; }
.form-group label { display:block; font-weight:600; margin-bottom:6px; color: var(--text); font-size: 14px; }
input, select, textarea { width:100%; padding:12px; border:1px solid var(--border); border-radius: 10px; background: #ffffff; color: var(--text); font-size: 14px; box-shadow: inset 0 2px 6px rgba(15,15,15,0.04); }
input::placeholder, textarea::placeholder { color: var(--muted); }
select { appearance: auto; }
textarea { min-height: 160px; resize: vertical; }

/* Kontaktformular Rahmen / Card Styling */
#custom .card.form {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 22px 50px rgba(33,33,33,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
  position: relative;
}

/* Decorative subtle outer frame using pseudo-element */
#custom .card.form::before {
  content: '';
  position: absolute;
  inset: -10px; /* space for outer frame */
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
  z-index: -1;
  filter: blur(8px);
  opacity: 0.25;
}

/* Submit button larger and more prominent */
#custom .btn.primary { padding: 14px 22px; font-size: 16px; border-radius: 12px; }

/* Focus styles */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 4px 18px rgba(43,43,43,0.06);
  border-color: #cfcfcf;
}

/* Footer */
.footer { background: #0f1013; }
.footer-top { padding: 48px 0 28px; }
.footer-content { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-section h3 { margin: 0 0 12px; font-size: 16px; }
.footer-section p, .footer-section a { color: var(--muted); text-decoration:none; font-size: 14px; margin: 4px 0; }
.footer-section a:hover { color: var(--text); }
.footer-logo { display:flex; align-items:center; gap:12px; margin-bottom: 10px; }
.footer-logo img { width:44px; height:44px; border-radius: 8px; }
.footer-logo-img { width:52px; height:52px; border-radius:8px; object-fit:cover; }
.footer-bottom { padding: 18px 0; }
.footer-bottom-content { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.footer-links { display:flex; gap: 18px; flex-wrap:wrap; }
.footer-links a { color: var(--muted); text-decoration:none; font-size: 13px; }
.footer-links a:hover { color: var(--text); }
/* Footer credit */
.footer-credit a { color: var(--muted); text-decoration: none; }
.footer-credit a:hover { color: var(--text); }

/* Kontaktliste im Footer */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-item { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 8px; }

/* Admin: Gallery management styles */
.gallery-admin { display:flex; flex-direction:column; gap:12px; }
.gallery-upload-row { display:flex; gap:12px; align-items:center; }
.gallery-upload-row input[type=file] { flex:1; }
.gallery-admin-list { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.gallery-admin-item { display:flex; gap:12px; align-items:flex-start; padding:10px; border:1px solid var(--border); border-radius:10px; background: #fff; }
.gallery-admin-thumb { width:120px; height:80px; flex: 0 0 120px; border-radius:8px; object-fit:cover; border:1px solid var(--border); background:#f6f6f6; }
.gallery-admin-meta { flex:1; display:flex; flex-direction:column; gap:8px; }
.gallery-admin-meta input, .gallery-admin-meta textarea { width:100%; }
.gallery-admin-actions { display:flex; gap:8px; align-items:center; }
.gallery-admin-actions .btn { padding:8px 12px; }
.gallery-admin-empty { padding: 18px; border:1px dashed var(--border); border-radius:10px; color: var(--muted); }

@media (max-width:720px){
  .gallery-admin-item { flex-direction:column; }
  .gallery-admin-thumb { width:100%; height:160px; }
}
.contact-item .icon { width: 20px; text-align: center; opacity: .9; }
.contact-item a { color: var(--muted); text-decoration: none; }
.contact-item a:hover { color: var(--text); }

/* Responsiv */
@media (max-width: 900px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display:none; }
  .menu-toggle { display:inline-flex; align-items:center; justify-content:center; }
  .hero h2 { font-size: 28px; }
  .hero { min-height: 55vh; }
  .form-row { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .hero { --hero-top: clamp(120px, 28vh, 240px); }
}

/* Skins Section */
#skins { padding: 56px 0; background: linear-gradient(180deg, rgba(250,250,250,0.6), rgba(245,245,245,0.6)); }
#skins h2 { margin-bottom: 0.35rem; }
.skins-panel { display:flex; gap: 32px; align-items: center; justify-content: space-between; }
.skins-text { max-width: 720px; }
.skins-text .eyebrow { display:inline-block; color:var(--muted); text-transform:uppercase; font-size:12px; letter-spacing:1px; margin-bottom:8px; }
.skins-text h2 { font-size:30px; margin-top:0  ; margin-bottom:8px; }
.lead { font-size:1.05rem; color:var(--text); margin-bottom:0.8rem; }
.two-col { display:flex; gap: 20px; }
.two-col > div { flex:1; }
.features-list { margin-top: 0.8rem; list-style: none; padding: 0; }
.features-list li { margin: 0.6rem 0; padding: 12px 12px 12px 18px; background: linear-gradient(180deg,#fff,#fbfbfb); border:1px solid var(--border); border-radius:10px; position: relative; line-height:1.45; box-shadow: 0 6px 18px rgba(20,20,20,0.04); }
.features-list li::before { content: ''; position: absolute; left: 8px; top: 14px; width: 8px; height: 8px; border-radius:2px; background: var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }

.skins-media .media-card { max-width: 420px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #ffffff; padding: 14px; border: 1px solid rgba(30,30,30,0.04); box-shadow: 0 18px 40px rgba(34,34,34,0.08); }
.skin-sample { width:100%; height: 260px; object-fit: cover; border-radius: 8px; display:block; }
.media-caption { font-size: 0.95rem; color: var(--muted); margin-top: 10px; text-align:center; }
.actions .btn.primary { padding: 12px 20px; border-radius:8px; background: linear-gradient(180deg,#2b6fb8,#1f5aa3); color: #fff; border: none; box-shadow: 0 8px 24px rgba(20,40,90,0.12); }
.features-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), #7a7a7a); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.skin-sample { width: 100%; border-radius: 10px; box-shadow: 0 18px 40px rgba(34,34,34,0.10), 0 6px 12px rgba(34,34,34,0.06); object-fit: cover; display:block; transition: transform .22s ease, box-shadow .22s ease; }
.media-card { border-radius: 14px; overflow: hidden; background: #ffffff; padding: 12px; border: 1px solid rgba(30,30,30,0.04); box-shadow: 0 8px 24px rgba(34,34,34,0.06); }
.media-caption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; text-align:center; }

.media-card:hover .skin-sample { transform: translateY(-6px) scale(1.01); box-shadow: 0 28px 60px rgba(34,34,34,0.14), 0 8px 18px rgba(34,34,34,0.08); }
.btn.primary { background: linear-gradient(180deg, var(--brand), #3d6fb8); color: #fff; padding: 10px 18px; border-radius: 8px; text-decoration: none; display:inline-block; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(24,54,92,0.12); }

@media (max-width: 980px) {
  .skins-panel { flex-direction: column-reverse; align-items: stretch; }
  .skins-text { order: 2; }
  .skins-media { order: 1; margin-bottom: 12px; }
  .two-col { flex-direction: column; }
}

@media (max-width: 480px) {
  #skins { padding: 28px 0; }
  .skins-text h2 { font-size: 22px; }
  .lead { font-size: 1rem; }
}

/* Modal / Checkout */
.modal { display:none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); }
.modal-content { background: var(--panel); border:1px solid var(--border); border-radius: 14px; width: 92%; max-width: 600px; margin: 5% auto; padding: 22px; position: relative; }
.modal h2 { margin: 0 0 10px; font-size: 20px; }
.close { position: absolute; right: 14px; top: 10px; cursor: pointer; font-size: 22px; color: var(--muted); }
.close:hover { color: var(--text); }
.payment-options { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.payment-option { border:1px solid var(--border); background:#111316; border-radius: 12px; padding: 16px; text-align:center; cursor:pointer; }
.payment-option.selected, .payment-option:hover { border-color: var(--brand); }
.payment-option .icon { font-size: 20px; margin-bottom: 6px; }

/* Utilities */
.btn-block { width: 100%; }
.center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.text-muted { color: var(--muted); }
.text-secondary { color: var(--muted); }
.section-accent { color: var(--brand); }

/* Galerie */
.gallery-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 18px; align-items: stretch; }
.gallery-item {
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius: 12px;
  cursor: zoom-in;
  border:1px solid rgba(255,255,255,0.03);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  box-shadow: 0 8px 30px rgba(2,6,12,0.12);
  min-height: 180px; /* ensures a reasonable box even for very wide images */
}
.gallery-item img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 320px; /* cap height so grid stays tidy */
  object-fit: contain; /* show whole image */
  display:block;
  transition: transform .25s ease, filter .25s ease;
}
.gallery-item:hover img { transform: scale(1.02); filter: brightness(0.95); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; color: #fff; font-size: 14px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.65) 100%); text-align: center; }
.gallery-item .caption-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.gallery-item .caption-sub { font-size: 13px; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,0.85); z-index: 2000; }
.lightbox[aria-hidden="false"] { display:flex; }
.lb-content { max-width: 92%; max-height: 86%; display:flex; align-items:center; justify-content:center; position: relative; }
.lb-content img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lb-caption { color: var(--muted); margin-top: 8px; text-align:center; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(20,22,26,0.6); color: var(--text); border:1px solid var(--border); padding:8px 12px; border-radius:8px; cursor:pointer; }
.lb-close { top: 20px; right: 20px; font-size: 22px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 28px; }

@media (max-width: 600px) {
  .gallery-item img { height: 120px; }
  .lb-prev, .lb-next { display:none; }
}

/* Message card improvements */
.message-card{ padding:14px; border-radius:8px; background:#fff; box-shadow:0 1px 0 rgba(0,0,0,0.04); border:1px solid var(--border); }
.message-card .message-body{ margin-top:10px; }
.message-card .message-text{ margin:8px 0; color:#222; line-height:1.4 }
.message-card .message-meta{ font-size:13px; color:var(--muted) }
.message-card .message-fields{ display:block; border-left:3px solid #f6f6f6; padding-left:10px; margin-bottom:8px }
.message-card .field-row{ display:flex; gap:12px; padding:4px 0 }
.message-card .field-key{ min-width:140px; color:var(--muted); font-weight:600 }
.message-card .field-val{ color:var(--text) }
.message-raw{ display:none; background:#fafafa; border:1px solid #eee; padding:10px; border-radius:4px; white-space:pre-wrap; max-height:320px; overflow:auto }
.message-card .message-actions{ display:flex; gap:8px }

/* Widerrufe (Revocations) — reuse message-card styles and slightly larger spacing */
.rev-section { margin-bottom: 18px; }
.rev-section > h3 { margin: 0 0 8px; font-size: 1rem; }
.rev-card { margin-bottom: 10px; }

/* Prevent long unbroken text from overflowing cards */
.message-text {
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
}

.message-body, .message-details {
  max-height: 260px;
  overflow: auto;
}

/* Ensure cards stay within container */
.card, .message-card {
  box-sizing: border-box;
  max-width: 100%;
}

/* Admin top banner */
.admin-wrap{ position: relative; z-index: 0; padding-top: 34px; }
.admin-wrap::before{
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  top: -24px;
  height: 120px;
  background: rgba(96,96,96,0.06); /* translucent gray tone */
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  transform: translateZ(0);
  z-index: -1;
}

/* Slightly lift the title to align with banner */
.admin-wrap > h1{ margin-top: 0; margin-bottom: 6px; }

/* General responsive tweaks */
.controls { align-items: center; }
.btn { display: inline-flex; align-items:center; justify-content:center; border-radius:8px; }
.thumb { max-width:100%; height:auto; }
.item-row img.thumb { width:120px; height:80px; }
.item-row input[type="text"]{ max-width:100%; box-sizing:border-box; }

/* Message/card responsiveness */
.message-header { display:flex; gap:12px; align-items:center; justify-content:space-between; }
.message-fields .field-row{ display:flex; gap:12px; flex-wrap:wrap; }
.field-key{ min-width:80px; color:#666; }

/* Breakpoints */
@media (max-width: 900px){
  .admin-wrap{ max-width: 800px; padding:18px; }
  .controls{ flex-direction:row; flex-wrap:wrap; gap:10px; }
  .controls > div{ margin-left:0; }
  .controls .btn{ padding:8px 10px; }
  .item-row{ flex-direction:row; gap:10px; }
}

@media (max-width: 640px){
  .admin-wrap{ padding:14px; }
  .controls{ flex-direction:column; align-items:stretch; }
  .controls .btn{ width:100%; text-align:center; }
  .item-row{ display:flex; flex-direction:column; align-items:stretch; gap:10px; }
  .item-row img.thumb{ width:100%; height:auto; }
  .message-header{ flex-direction:column; align-items:stretch; }
  .message-header > div{ width:100%; }
  .message-fields .field-row{ flex-direction:column; }
  .message-body, .message-details{ max-height: 220px; }
  #revocationsPanel .card, #adminMessagesPanel .card{ padding:12px; }
}

/* Small screens: ensure accepted panels fit */
@media (max-width:420px){
  .admin-wrap{ padding:12px; }
  .btn{ padding:8px; font-size:14px; }
}
.rev-card .message-details { margin-top: 8px; }


/* Details / header tweaks */
.message-header { display:flex; justify-content:space-between; gap:12px; align-items:center }
.message-title { font-size:16px }
.message-email a { color: var(--muted); text-decoration: none }
.message-email a:hover { text-decoration: underline }
.message-details { padding-top:8px; border-top:1px solid var(--border); margin-top:8px }
.message-text { margin:6px 0 0; }
.field-free{ margin-top:8px; color:var(--muted) }

/* Spinner */
.spinner{ width:28px; height:28px; border-radius:50%; border:3px solid rgba(0,0,0,0.08); border-top-color: var(--text); animation: spin 1s linear infinite; display:inline-block; }
@keyframes spin{ from{ transform:rotate(0deg) } to{ transform:rotate(360deg) } }

/* Toast notifications */
.toast{ position: fixed; right: 18px; bottom: 18px; background: #222; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.32); z-index: 4000; font-size: 14px; opacity: 0; transform: translateY(12px); transition: opacity .18s ease, transform .18s ease; }
.toast.show{ opacity: 1; transform: translateY(0); }
.toast.success{ background: #264e2b; }
.toast.error{ background: #5b1f1f; }

/* Disabled buttons */
.btn[disabled], .btn.disabled { opacity: 0.6; pointer-events: none; filter: grayscale(.05); }

/* Local file warning */
.local-warning{ padding:12px; border-radius:8px; background: #fff6f6; border:1px solid #ffd1d1; color:#7a1f1f; margin:8px 0; }
