/* 3 Main Electronics — Newegg-style electronics marketplace (placeholder brand) */
:root {
  --orange: #E05E00;
  --orange-dark: #C85200;
  --navy: #003366;
  --navy-deep: #09144F;
  --navy-2: #20304D;
  --yellow: #FFD100;
  --red: #D0021B;
  --green: #108510;
  --link: #0066C0;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --border: #E2E6EC;
  --text: #1A1F36;
  --muted: #66758c;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(9, 20, 79, .07);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; }
button { font-family: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); }
.topbar {
  max-width: 1240px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), #ff8c42);
  color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; letter-spacing: .5px;
}
.logo-text { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.logo-text .accent { color: var(--yellow); }

.searchbar { flex: 1 1 auto; display: flex; max-width: 640px; }
.searchbar input {
  flex: 1; border: 0; border-radius: 6px 0 0 6px; padding: 10px 14px;
  font-size: 14px; outline: none; min-width: 0;
}
.searchbar button {
  border: 0; background: var(--orange); color: #fff; font-weight: 700;
  padding: 0 20px; border-radius: 0 6px 6px 0; cursor: pointer; font-size: 14px;
}
.searchbar button:hover { background: var(--orange-dark); }

.util { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.util-link { color: #fff; font-size: 13px; white-space: nowrap; }
.util-link:hover { color: var(--yellow); }
.cart-btn {
  position: relative; background: none; border: 0; color: #fff; cursor: pointer;
  display: flex; align-items: center; padding: 4px;
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: -6px; right: -8px; background: var(--yellow); color: var(--navy-deep);
  font-size: 11px; font-weight: 700; border-radius: 50%; min-width: 18px; height: 18px;
  display: none; align-items: center; justify-content: center; padding: 0 4px;
}

.catnav { background: var(--navy-deep); }
.catnav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 8px;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav a {
  color: #dbe4f3; font-size: 13px; padding: 11px 14px; white-space: nowrap; display: block;
}
.catnav a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Promo banner ---------- */
.promo {
  background: linear-gradient(100deg, var(--orange) 0%, #ff7a1a 55%, var(--yellow) 100%);
  color: #fff; text-align: center; padding: 12px 16px; font-weight: 700; font-size: 15px;
}
.promo a { color: #fff; text-decoration: underline; }

/* ---------- Sections ---------- */
main.wrap { padding: 22px 16px 48px; }
.section { margin: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.section-head h2 { margin: 0; font-size: 21px; color: var(--navy-deep); }
.section-head a { font-size: 13px; font-weight: 600; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; transition: box-shadow .15s, border-color .15s;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text);
}
.cat-tile:hover { box-shadow: var(--shadow); border-color: var(--orange); color: var(--orange); }
.cat-tile svg { width: 34px; height: 34px; color: var(--navy); }
.cat-tile:hover svg { color: var(--orange); }
.cat-tile .tile-name { font-weight: 600; font-size: 13px; }
.cat-tile .tile-count { font-size: 12px; color: var(--muted); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow); border-color: #c9d4e4; }
.card-img { display: block; }
.ph {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  color: rgba(255,255,255,.92);
}
.ph-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ph svg { width: 58px; height: 58px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.ph-brand {
  position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.ph.mini { width: 52px; height: 52px; aspect-ratio: 1/1; border-radius: 6px; flex: 0 0 52px; }
.ph.mini svg { width: 26px; height: 26px; }

.g1 { background: linear-gradient(135deg, #0f2027, #203a43 55%, #2c5364); }
.g2 { background: linear-gradient(135deg, #1a2a6c, #b21f1f 60%, #fdbb2d); }
.g3 { background: linear-gradient(135deg, #141e30, #243b55); }
.g4 { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.g5 { background: linear-gradient(135deg, #232526, #414345); }
.g6 { background: linear-gradient(135deg, #0f0c29, #302b63 60%, #24243e); }
.g7 { background: linear-gradient(135deg, #093028, #237a57); }
.g8 { background: linear-gradient(135deg, #3a1c71, #d76d77 60%, #ffaf7b); }

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  color: var(--link); font-size: 13.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em; margin-bottom: 6px;
}
.card-title:hover { color: var(--orange); }
.rating { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stars { color: #f5a623; letter-spacing: 1px; }
.save-line { color: var(--green); font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.price-row { margin-bottom: 4px; }
.price { color: var(--navy-deep); font-size: 19px; font-weight: 800; }
.ship { color: var(--green); font-size: 12px; font-weight: 600; margin-top: 2px; display: block; }
.btn-add {
  margin-top: auto; border: 1px solid var(--orange); background: #fff; color: var(--orange);
  border-radius: 6px; padding: 8px 10px; font-weight: 700; cursor: pointer; font-size: 13px;
}
.btn-add:hover { background: var(--orange); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--orange); color: #fff; border: 0; border-radius: 6px;
  padding: 11px 22px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--orange-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--navy-deep); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn.wide { width: 100%; }

/* ---------- Filters (search page) ---------- */
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.filters {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; height: fit-content; position: sticky; top: 12px;
}
.filters h3 { margin: 0 0 12px; font-size: 15px; color: var(--navy-deep); }
.f-group { margin-bottom: 16px; }
.f-group label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.f-group select, .f-group input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: #fff;
}
.results-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.results-head h1 { margin: 0; font-size: 19px; color: var(--navy-deep); }
.results-head .count { color: var(--muted); font-size: 13px; }
.empty { background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Product detail ---------- */
.detail { display: grid; grid-template-columns: 460px 1fr; gap: 28px; }
.gallery { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.gallery .ph { aspect-ratio: 4/3; border-radius: 6px; }
.gallery .ph svg { width: 120px; height: 120px; }
.pv { width: 100%; border-radius: 6px; margin-top: 12px; background: #000; aspect-ratio: 16 / 9; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumb { width: 62px; height: 52px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; overflow: hidden; display: block; }
.thumb.active { border-color: var(--orange); }
.thumb .ph { aspect-ratio: auto; width: 100%; height: 100%; }
.thumb .ph svg { width: 26px; height: 26px; }

.detail-info h1 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; color: var(--navy-deep); }
.brandline { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.brandline b { color: var(--link); }
.detail-price { margin: 14px 0; }
.detail-price .price { font-size: 30px; }
.detail-price .save-line { font-size: 14px; }
.ship { color: var(--green); font-size: 13px; font-weight: 600; }
.desc { color: var(--text); font-size: 14px; margin: 14px 0; line-height: 1.6; }
.actions { display: flex; gap: 10px; margin: 18px 0; }
.actions .btn-add { margin-top: 0; padding: 12px 22px; font-size: 15px; }

.specs { margin-top: 26px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.specs h3 { margin: 0; padding: 14px 16px; font-size: 15px; color: var(--navy-deep); border-bottom: 1px solid var(--border); background: #fafbfd; }
.specs table { width: 100%; border-collapse: collapse; }
.specs td { padding: 9px 16px; border-bottom: 1px solid #eef1f6; font-size: 13px; }
.specs td:first-child { color: var(--muted); width: 220px; font-weight: 600; }
.specs tr:last-child td { border-bottom: 0; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eef1f6; font-size: 14px; }
.summary-row.total { border-bottom: 0; font-size: 19px; font-weight: 800; color: var(--navy-deep); }

/* ---------- Auth forms ---------- */
.auth-box { max-width: 420px; margin: 40px auto; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 30px; box-shadow: var(--shadow); }
.auth-box h1 { margin: 0 0 6px; font-size: 22px; color: var(--navy-deep); }
.auth-box .sub { color: var(--muted); margin: 0 0 20px; font-size: 13px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.field input:focus { outline: 2px solid rgba(224, 94, 0, .25); border-color: var(--orange); }
.form-error { color: var(--red); font-size: 13px; margin: 8px 0; min-height: 1em; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- Account ---------- */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; gap: 14px; align-items: center;
}
.order .ph.mini { width: 60px; height: 60px; flex: 0 0 60px; }
.order-info { flex: 1; }
.order-title { font-weight: 600; color: var(--link); }
.order-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.badge.paid { background: #e6f5e6; color: var(--green); }
.badge.pending { background: #fff4e0; color: var(--orange-dark); }

/* ---------- Cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(9, 20, 79, .45); z-index: 50;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: -400px; width: 380px; max-width: 90vw; height: 100%;
  background: #fff; z-index: 60; box-shadow: -6px 0 24px rgba(0,0,0,.18);
  transition: right .25s; display: flex; flex-direction: column;
}
.drawer.open { right: 0; }
.drawer-head { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { margin: 0; font-size: 17px; color: var(--navy-deep); }
.drawer-close { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.drawer-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef1f6; align-items: center; }
.di-info { flex: 1; min-width: 0; }
.di-title { font-size: 13px; font-weight: 600; color: var(--link); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.di-price { font-weight: 700; color: var(--navy-deep); margin-top: 2px; }
.di-buy { font-size: 12.5px; font-weight: 700; }
.di-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; }
.di-remove:hover { color: var(--red); }
.drawer-empty { color: var(--muted); text-align: center; padding: 30px 0; }
.drawer-foot { padding: 14px 18px; border-top: 1px solid var(--border); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c3cfe3; margin-top: 40px; }
.footer-cols { max-width: 1240px; margin: 0 auto; padding: 34px 16px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.site-footer a { color: #c3cfe3; display: block; padding: 4px 0; font-size: 13px; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 16px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.pay-badges { display: flex; gap: 8px; }
.pay-badges span { border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 700; color: #dfe7f4; }

/* ---------- Toasts ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 16px);
  background: var(--navy-deep); color: #fff; padding: 11px 20px; border-radius: 8px;
  font-size: 14px; opacity: 0; transition: opacity .25s, transform .25s; z-index: 100; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .searchbar { order: 3; flex-basis: 100%; max-width: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Chat widget ---------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #fff; border: 0; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; z-index: 70; }
.chat-fab:hover { background: var(--orange-dark); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-panel { position: fixed; right: 20px; bottom: 88px; width: 360px; max-width: calc(100vw - 40px); height: 480px; max-height: calc(100vh - 120px); background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(9,20,79,.28); display: flex; flex-direction: column; z-index: 70; overflow: hidden; transform: translateY(12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { background: var(--navy-deep); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.chat-head .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.chat-head .title { font-weight: 700; font-size: 14px; }
.chat-head .sub { font-size: 11.5px; color: #9fb3d1; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; background: #f7f8fb; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.bubble.user { align-self: flex-end; background: var(--orange); color: #fff; border-bottom-right-radius: 3px; }
.bubble.bot { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.bubble.typing { color: var(--muted); font-style: italic; background: #eef1f6; }
.chat-input { display: flex; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; border: 0; padding: 13px 14px; font-size: 14px; outline: none; }
.chat-input button { border: 0; background: var(--navy-deep); color: #fff; padding: 0 18px; font-weight: 700; cursor: pointer; }

/* ---------- Reviews ---------- */
.reviews { margin-top: 36px; }
.reviews h3 { font-size: 20px; color: #09144f; margin: 0 0 16px; }
.rev-summary { display: flex; gap: 28px; align-items: center; background: #f7f8fb; border: 1px solid #e5e9f0; border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.rev-avg { text-align: center; min-width: 140px; }
.rev-big { font-size: 44px; font-weight: 800; color: #09144f; line-height: 1; }
.rev-avg .stars { font-size: 18px; }
.rev-count { color: #66758c; font-size: 13px; margin-top: 6px; }
.rev-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rev-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #33415c; }
.rev-bar-row > span:first-child { width: 34px; text-align: right; }
.rev-bar { flex: 1; height: 8px; background: #e5e9f0; border-radius: 4px; overflow: hidden; }
.rev-bar i { display: block; height: 100%; background: #ffb400; border-radius: 4px; }
.rev-pct { width: 40px; color: #66758c; }
.rev-list { display: flex; flex-direction: column; gap: 14px; }
.rev-card { background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; padding: 16px; }
.rev-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rev-author { font-weight: 700; color: #09144f; }
.rev-verified { font-size: 11.5px; color: #1a7f37; background: #e6f4ea; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.rev-date { margin-left: auto; color: #99a3b5; font-size: 12.5px; }
.rev-rating { margin: 8px 0 4px; }
.rev-title { font-weight: 700; color: #1c2b4a; margin: 6px 0 4px; }
.rev-comment { color: #3c4a63; line-height: 1.55; margin: 0; font-size: 14px; }
.rev-form { margin-top: 22px; border-top: 1px solid #e5e9f0; padding-top: 18px; max-width: 520px; }
.rev-form h4 { color: #09144f; margin: 0 0 10px; }
.rev-stars { display: flex; gap: 4px; margin-bottom: 10px; }
.rev-stars button { background: none; border: 0; font-size: 26px; color: #d3d9e3; cursor: pointer; padding: 0; line-height: 1; }
.rev-stars button.on { color: #ffb400; }
.rev-title, .rev-comment { width: 100%; box-sizing: border-box; border: 1px solid #d3d9e3; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; margin-bottom: 10px; }
.rev-comment { min-height: 90px; resize: vertical; }
.rev-msg { color: #66758c; font-size: 13px; margin-left: 10px; }
.rev-msg a { color: #e05e00; font-weight: 600; }

/* ---------- Stock line ---------- */
.stockline { margin-top: 8px; }
.stock-pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 12px; }
.stock-pill.in { color: #1a7f37; background: #e6f4ea; }
.stock-pill.low { color: #b05a00; background: #fff2e0; }
.stock-pill.out { color: #b3261e; background: #fdecea; }

/* ---------- Checkout / payment method ---------- */
.secure-note { margin-top: 14px; font-size: 12px; color: #66758c; background: #f0f7f1; border: 1px solid #d6eadb; border-radius: 8px; padding: 8px 12px; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pay-method { display: flex; align-items: center; gap: 12px; border: 1px solid #d3d9e3; border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-method:hover { border-color: #e05e00; }
.pay-method.selected { border-color: #e05e00; background: #fff7f0; box-shadow: 0 0 0 1px #e05e00; }
.pay-method input { accent-color: #e05e00; }
.pm-mark { font-size: 22px; line-height: 1; }
.pm-label { display: flex; flex-direction: column; line-height: 1.25; }
.pm-label b { font-size: 14px; color: #1c2b4a; }
.pm-label small { font-size: 11.5px; color: #66758c; }
.card-form input, .zelle-form input { width: 100%; box-sizing: border-box; border: 1px solid #d3d9e3; border-radius: 8px; padding: 12px 14px; font-size: 15px; margin-bottom: 10px; font-family: inherit; }
.card-form input:focus, .zelle-form input:focus { outline: none; border-color: #e05e00; box-shadow: 0 0 0 2px rgba(224,94,0,.12); }
.cc-row { display: flex; gap: 10px; }
.cc-row input { flex: 1; }
.card-brands { color: #99a3b5; font-size: 11.5px; letter-spacing: .5px; text-align: right; }
.zelle-hint { color: #66758c; font-size: 13px; margin: 0 0 10px; line-height: 1.5; }
.zelle-result { border: 1px solid #d6eadb; background: #f4faf6; }
.zelle-box { border: 1px solid #d6eadb; border-radius: 10px; overflow: hidden; margin-top: 8px; }
.zelle-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid #d6eadb; font-size: 14px; }
.zelle-row:last-child { border-bottom: 0; }
.zelle-row span { color: #66758c; }
.zelle-row b { color: #1c2b4a; }

/* ---------- Admin ---------- */
.admin-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid #e5e9f0; border-radius: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; padding: 11px 14px; background: #f7f8fb; color: #33415c; font-weight: 700; white-space: nowrap; border-bottom: 1px solid #e5e9f0; }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid #eef1f6; vertical-align: top; color: #1c2b4a; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-actions { white-space: nowrap; }
.admin-actions .btn { margin-right: 6px; }
.muted { color: #99a3b5; font-size: 12px; }
.btn.sm { padding: 5px 12px; font-size: 12.5px; }
.btn.danger { background: #b3261e; }
.btn.danger:hover { background: #941d17; }
.badge.awaiting_payment { background: #e8f0fe; color: #1a56c4; }
.badge.cancelled { background: #fdecea; color: #b3261e; }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #09144f; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); z-index: 6; display: flex; align-items: center; justify-content: center; }
.g-arrow:hover { background: #fff; }
.g-prev { left: 10px; }
.g-next { right: 10px; }
.g-count { position: absolute; bottom: 10px; right: 12px; background: rgba(9,20,79,.78); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; z-index: 6; pointer-events: none; }
#gallery-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; display: none; align-items: center; justify-content: center; }
#gallery-lightbox.open { display: flex; }
#gallery-lightbox .lb-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lb-close { position: absolute; top: 18px; right: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; z-index: 7; }
.lb-close:hover { background: rgba(255,255,255,.32); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; z-index: 7; display: flex; align-items: center; justify-content: center; }
.lb-arrow:hover { background: rgba(255,255,255,.32); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(255,255,255,.15); padding: 4px 14px; border-radius: 14px; z-index: 7; }
body.lb-lock { overflow: hidden; }
