:root {
  --bg: #0B1221;
  --surface: #131C31;
  --surface-2: #19243D;
  --border: #24324F;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --primary: #006FCD;
  --primary-hover: #0080EB;
  --accent: #00D4FF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.text-accent { color: var(--accent); }
.error-text { color: var(--danger); font-size: 0.85rem; margin: 6px 0; min-height: 18px; }

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #071A33, #0B2547, #071A33);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.84rem;
  color: #CBD5E1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 33, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon { width: 38px; height: 38px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-main { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.04em; }
.logo-sub { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }

.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-box input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 40px 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--accent); }
.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.65;
  pointer-events: none;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.18s;
}
.icon-btn:hover { border-color: var(--accent); background: var(--surface-2); }
.cart-btn { background: var(--primary); border-color: var(--primary); }
.cart-btn:hover { background: var(--primary-hover); }
.badge {
  background: var(--accent);
  color: #061325;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 1px 7px;
  border-radius: 999px;
}

/* Nav */
.main-nav { border-top: 1px solid rgba(36, 50, 79, 0.7); background: rgba(15, 23, 42, 0.6); }
.nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 20px;
  scrollbar-width: none;
}
.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #CBD5E1;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.nav-btn:hover { color: #fff; background: var(--surface); }
.nav-btn.active {
  background: rgba(0, 111, 205, 0.22);
  border-color: var(--primary);
  color: var(--accent);
}

/* Hero */
.hero {
  background: radial-gradient(circle at 75% 40%, rgba(0, 111, 205, 0.28), transparent 55%),
              linear-gradient(180deg, #0D172B 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 36px;
}
.hero-badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero p { color: #CBD5E1; font-size: 1.05rem; max-width: 540px; margin-bottom: 26px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.hero-svg { width: 100%; max-width: 360px; position: relative; z-index: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.18s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #FCA5A5; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); color: #6EE7B7; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; border-radius: 8px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.86rem; text-decoration: underline; }

/* Trust Bar */
.trust-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon { font-size: 1.5rem; }
.trust-item strong { display: block; font-size: 0.9rem; }
.trust-item span { font-size: 0.8rem; color: var(--muted); }

/* Catalog */
.catalog-section { padding: 48px 20px; }
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}
.catalog-header h2 { font-size: 1.6rem; }
.form-select, input[type="text"], input[type="email"], input[type="number"], input[type="password"], select, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.product-card.out-of-stock { opacity: 0.72; }

.card-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
  pointer-events: none;
}
.card-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.card-badge.deal { background: #F97316; }
.wish-toggle {
  pointer-events: auto;
  background: rgba(11, 18, 33, 0.75);
  border: 1px solid var(--border);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.wish-toggle.active { border-color: #EF4444; background: rgba(239, 68, 68, 0.2); }

.product-visual {
  height: 185px;
  background: radial-gradient(circle at center, #1B2945 0%, #0E1628 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  overflow: hidden;
}
.product-visual img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.product-visual svg { width: 120px; height: 120px; }

.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-cat { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.product-title { font-size: 1.02rem; font-weight: 700; cursor: pointer; line-height: 1.3; }
.product-title:hover { color: var(--accent); }
.product-desc { font-size: 0.84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}
.stock-ok { background: rgba(16, 185, 129, 0.14); color: #34D399; }
.stock-low { background: rgba(245, 158, 11, 0.16); color: #FBBF24; }
.stock-out { background: rgba(239, 68, 68, 0.16); color: #F87171; }

.product-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(36, 50, 79, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price-wrap { display: flex; flex-direction: column; }
.old-price { font-size: 0.78rem; color: var(--muted); text-decoration: line-through; }
.price { font-size: 1.18rem; font-weight: 800; color: #fff; }

/* About Section */
.about-section { padding: 20px 0 60px; }
.about-card {
  background: linear-gradient(135deg, var(--surface) 0%, #101B33 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 28px;
  align-items: center;
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(0, 111, 205, 0.2);
  color: var(--accent);
  margin-bottom: 10px;
}
.pill-accent { margin-bottom: 0; }
.about-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.coupon-box {
  background: rgba(0, 212, 255, 0.07);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.coupon-label { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; font-weight: 700; }
.coupon-code { font-size: 1.8rem; letter-spacing: 0.12em; color: #fff; }

/* Footer */
.site-footer { background: #080E1A; border-top: 1px solid var(--border); padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 28px; }
.site-footer h4 { margin-bottom: 10px; color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Drawers */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  display: none;
}
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed;
  top: 0;
  right: -430px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}
.drawer.open { right: 0; }
.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}
.close-btn:hover { border-color: var(--accent); }
.shipping-bar-wrap { padding: 12px 20px; background: rgba(0, 111, 205, 0.1); border-bottom: 1px solid var(--border); }
.shipping-text { font-size: 0.82rem; margin-bottom: 6px; color: #E2E8F0; }
.progress-track { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0%; transition: width 0.3s; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.drawer-footer { padding: 16px 20px; border-top: 1px solid var(--border); background: #0E1628; }

.cart-item {
  display: flex;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  align-items: center;
}
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 3px; }
.qty-controls { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.coupon-row { display: flex; gap: 8px; margin-bottom: 6px; }
.coupon-row input { flex: 1; }
.coupon-feedback { font-size: 0.8rem; margin-bottom: 10px; min-height: 16px; }
.totals-box { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; font-size: 0.9rem; }
.total-row { display: flex; justify-content: space-between; }
.total-row.grand { font-size: 1.1rem; font-weight: 800; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; color: var(--accent); }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 19, 0.78);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-lg { max-width: 820px; }
.modal-xl { max-width: 960px; }
.modal-fullscreen { max-width: 1320px; height: 92vh; }
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.header-right-actions { display: flex; align-items: center; gap: 10px; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.form-group label { font-size: 0.82rem; color: #CBD5E1; font-weight: 600; }
.checkbox-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.image-upload-row { display: flex; gap: 8px; }
.image-upload-row input[type="text"] { flex: 1; }
.upload-label { white-space: nowrap; }

/* Detail Modal */
.detail-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
.detail-visual {
  background: #0E1628;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.detail-visual img { max-width: 100%; max-height: 240px; object-fit: contain; }
.detail-visual svg { width: 160px; height: 160px; }
.spec-list { list-style: none; margin: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.spec-list li { font-size: 0.88rem; color: #CBD5E1; }
.spec-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* Admin Layout */
.admin-header { background: #0E1628; }
.admin-title-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-pin-gate { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px; }
.pin-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 28px; width: 100%; max-width: 360px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; flex: 1; overflow: hidden; }
.admin-sidebar {
  background: #0D1526;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.admin-nav-btn {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: #CBD5E1;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.15s;
}
.admin-nav-btn:hover { background: var(--surface); color: #fff; }
.admin-nav-btn.active { background: rgba(0, 111, 205, 0.22); border-color: var(--primary); color: var(--accent); }
.admin-content { padding: 24px; overflow-y: auto; background: var(--bg); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.kpi-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.kpi-value { font-size: 1.65rem; font-weight: 800; margin-top: 6px; color: #fff; }
.kpi-sub { font-size: 0.8rem; color: var(--accent); margin-top: 4px; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.admin-toolbar-left { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.data-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: #0E1628; color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.stock-inline { display: inline-flex; align-items: center; gap: 6px; }
.stock-inline input { width: 64px; text-align: center; padding: 4px 6px; }

.status-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}
.status-Offen { background: rgba(245, 158, 11, 0.18); color: #FBBF24; }
.status-Bezahlt { background: rgba(16, 185, 129, 0.18); color: #34D399; }
.status-Versendet { background: rgba(0, 212, 255, 0.18); color: #00D4FF; }
.status-Storniert { background: rgba(239, 68, 68, 0.18); color: #F87171; }
.overdue-badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: rgba(239, 68, 68, 0.18); color: #F87171; }
.order-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.iban-hint { display: block; margin-top: 4px; font-size: 0.78rem; }
.iban-ok { color: #34D399; }
.iban-bad { color: #F87171; }
.admin-alert { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.4); color: #FCD34D; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 0.88rem; }
.mail-status { display: inline-block; margin-top: 4px; font-size: 0.75rem; color: #34D399; cursor: help; }
.mail-failed { color: #F87171; }
.customer-note { display: inline-block; margin-top: 4px; font-size: 0.78rem; color: #FBBF24; cursor: help; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.legal-links a { color: var(--accent); font-size: 0.86rem; }
.legal-body p { margin-bottom: 12px; line-height: 1.6; color: #E2E8F0; }
.terms-row { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 14px; }
.terms-row a, .checkout-summary a { color: var(--accent); }
.header-right-actions .muted { font-size: 0.8rem; }

.cms-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.cms-card h4 { margin-bottom: 14px; color: var(--accent); font-size: 1rem; }

.manual-items-header { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; }
.manual-row { display: grid; grid-template-columns: 1.5fr 1.2fr 0.6fr 0.8fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }

.checkout-summary { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-top: 12px; }

/* DIN-A4 Invoice Paper – liegt über dem Admin-Fenster */
#invoiceModalOverlay { z-index: 140; }
.invoice-preview-wrap { background: #1E293B; display: flex; justify-content: center; padding: 24px; }
.invoice-paper {
  background: #FFFFFF;
  color: #111827;
  width: 100%;
  max-width: 794px;
  min-height: 980px;
  padding: 46px 50px;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.inv-top { display: flex; justify-content: space-between; border-bottom: 2px solid #006FCD; padding-bottom: 18px; margin-bottom: 26px; }
.inv-brand h2 { color: #006FCD; font-size: 22px; margin-bottom: 4px; }
.inv-meta { text-align: right; }
.inv-addresses { display: flex; justify-content: space-between; margin-bottom: 28px; }
.inv-table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; }
.inv-table th { background: #F1F5F9; color: #0F172A; padding: 9px 10px; text-align: left; border-bottom: 2px solid #CBD5E1; font-size: 12px; }
.inv-table td { padding: 9px 10px; border-bottom: 1px solid #E2E8F0; }
.inv-table .num { text-align: right; }
.inv-totals { margin-left: auto; width: 290px; }
.inv-totals tr td { padding: 4px 8px; }
.inv-totals .grand td { font-weight: 800; font-size: 15px; border-top: 2px solid #0F172A; padding-top: 8px; }
.inv-footer { margin-top: 42px; padding-top: 16px; border-top: 1px solid #CBD5E1; font-size: 11px; color: #475569; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Toast */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-size: 0.88rem;
  font-weight: 600;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Print Styles for clean DIN A4 PDF */
@media print {
  body * { visibility: hidden; }
  #invoicePaper, #invoicePaper * { visibility: visible; }
  #invoicePaper {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    padding: 16mm;
    margin: 0;
  }
  .no-print { display: none !important; }
}

@media (max-width: 900px) {
  .hero-grid, .about-card, .detail-grid, .footer-grid, .admin-layout { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .btn-label { display: none; }
  .manual-row { grid-template-columns: 1fr; }
}
