/* Aquatic Plant Shop — storefront theme
   Deep-water teals, coral + lime accents, serif display type. */

:root {
  --abyss: #0b2e1c;
  --deep: #11442a;
  --teal: #0b2e1c;
  --teal-dark: #0b2e1c;
  --lagoon: #2e5a40;
  --mint: #ececec;
  --foam: #f5f5f5;
  --sand: #f5f5f5;
  --lime: #ffffff;
  --coral: #ff6b4a;
  --coral-dark: #e5502f;
  --ink: #0b2e1c;
  --muted: #6b7280;
  --border: #e4e4e7;
  --danger: #b91c1c;
  --bg: #fafafa;
  --page-w: 1140px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.08), 0 16px 36px rgba(0, 0, 0, 0.14);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: clamp(14px, 0.3vw + 9px, 22px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.022em; line-height: 1.25; }
strong, b { font-weight: 600; }

a { color: var(--teal); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--b-600); }

.container { max-width: var(--page-w); margin: 0 auto; padding: 0 20px; }

::selection { background: var(--g-900); color: #fff; }

/* ---------- Announcement + header ---------- */

.announce {
  background: var(--abyss);
  color: var(--mint);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 8px 16px;
}

header.site-header {
  background: linear-gradient(180deg, var(--deep), var(--abyss));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
header.site-header .bar {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 14px 20px;
}
header.site-header .brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
header.site-header .brand:hover { color: var(--lime); }

.nav-toggle { display: none; }
.nav-burger { display: none; font-size: 1.6rem; cursor: pointer; line-height: 1; }

.search {
  flex: 1;
  display: flex;
  max-width: 460px;
  margin-left: auto;
  background: #fff;
  border-radius: 999px;
  padding: 3px;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.2s;
}
.search:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55); }
.search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  color: var(--ink);
}
.search button {
  border: none;
  background: var(--abyss);
  color: #fff;
  padding: 0 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
  font-family: inherit;
  transition: background 0.15s;
}
.search button:hover { background: var(--g-800); }

.actions { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.actions a { color: var(--mint); font-weight: 500; font-size: 0.93rem; }
.actions a:hover { color: #fff; }
.cart-badge {
  background: var(--lime);
  color: var(--abyss);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 5px;
}

.main-nav { border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
.main-nav > ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 14px;
  max-width: var(--page-w);
  display: flex;
  flex-wrap: wrap;
}
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  position: relative;
  padding: 12px 16px;
  color: var(--mint);
  font-weight: 500;
  font-size: 0.93rem;
}
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav > ul > li:hover > a { color: #fff; }
.main-nav > ul > li:hover > a::after { transform: scaleX(1); }

.main-nav .dropdown {
  display: none;
  position: absolute;
  left: 8px;
  top: 100%;
  z-index: 20;
  min-width: 220px;
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 8px;
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  animation: dropIn 0.18s ease;
}
.main-nav .dropdown a { color: var(--ink); padding: 9px 14px; border-radius: 9px; }
.main-nav .dropdown a:hover { background: var(--mint); color: var(--teal-dark); }
.main-nav .has-dropdown:hover > .dropdown,
.main-nav .has-dropdown:focus-within > .dropdown { display: block; }

@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: 84px 20px 120px;
  background:
    radial-gradient(900px 340px at 78% -10%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(700px 300px at 8% 110%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(160deg, var(--g-900) 0%, var(--g-800) 55%, var(--g-800) 100%);
}
.hero h1 {
  position: relative;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 600;
  margin: 0 auto 14px;
  max-width: 820px;
}
.hero p { position: relative; color: var(--mint); font-size: 1rem; max-width: 620px; margin: 0 auto; }
.hero .btn {
  position: relative;
  margin-top: 26px;
  background: var(--lime);
  color: var(--abyss);
  padding: 14px 32px;
  font-size: 1rem;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.35);
}
.hero .btn:hover { background: #e5e5e5; color: var(--abyss); }

.hero .wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; display: block; }

.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubbles span {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 60%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: rise linear infinite;
}
.bubbles span:nth-child(1) { left: 6%;  width: 18px; height: 18px; animation-duration: 11s; }
.bubbles span:nth-child(2) { left: 16%; width: 34px; height: 34px; animation-duration: 16s; animation-delay: 2s; }
.bubbles span:nth-child(3) { left: 29%; width: 12px; height: 12px; animation-duration: 9s;  animation-delay: 1s; }
.bubbles span:nth-child(4) { left: 44%; width: 26px; height: 26px; animation-duration: 14s; animation-delay: 4s; }
.bubbles span:nth-child(5) { left: 58%; width: 16px; height: 16px; animation-duration: 10s; animation-delay: 3s; }
.bubbles span:nth-child(6) { left: 71%; width: 40px; height: 40px; animation-duration: 18s; animation-delay: 1s; }
.bubbles span:nth-child(7) { left: 84%; width: 22px; height: 22px; animation-duration: 12s; animation-delay: 5s; }
.bubbles span:nth-child(8) { left: 93%; width: 14px; height: 14px; animation-duration: 8s;  animation-delay: 2s; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translateY(-260px) translateX(14px); }
  100% { transform: translateY(-560px) translateX(-10px); opacity: 0; }
}

/* ---------- Shop-by-type tiles ---------- */

.kind-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
.kind-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
  padding: 20px 22px;
  border-radius: 20px;
  color: #fff;
  box-shadow: var(--shadow-lift);
  transition: transform 0.25s ease;
  overflow: hidden;
  position: relative;
}
.kind-tile:hover { transform: translateY(-5px); color: #fff; }
.kind-tile .emoji { position: absolute; right: 16px; top: 8px; font-size: 3.6rem; opacity: 0.9; transition: transform 0.3s; }
.kind-tile:hover .emoji { transform: scale(1.12) rotate(-6deg); }
.kind-tile strong { font-family: var(--font-display); font-size: 1.2rem; }
.kind-tile span { font-size: 0.88rem; opacity: 0.9; }
.kind-plant { background: linear-gradient(135deg, var(--g-900), var(--b-700)); }
.kind-fish  { background: linear-gradient(135deg, var(--g-800), var(--b-600)); }
.kind-tool  { background: linear-gradient(135deg, var(--g-800), #737373); }

/* ---------- Sections ---------- */

section.section { padding: 44px 20px; }
section.section h2 {
  position: relative;
  font-size: 1.45rem;
  margin: 0 0 22px;
  padding-bottom: 12px;
}
section.section h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 4px;
  border-radius: 4px;
  background: var(--g-900);
}

.section-flash {
  background: linear-gradient(135deg, var(--g-900), var(--g-800));
  border-radius: 24px;
  padding: 30px 26px !important;
  border: 1px solid var(--g-700);
}
.section-flash h2 { color: var(--lime); }
.section-flash h2::after { background: #ffffff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }

/* ---------- Product cards ---------- */

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card .card-img { position: relative; display: block; overflow: hidden; background: var(--foam); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--foam); transition: transform 0.5s ease; }
.card:hover img { transform: scale(1.06); }
.card .card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 500; margin: 0 0 8px; letter-spacing: 0; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--teal); }
.card .price { font-weight: 600; font-size: 1rem; color: var(--teal-dark); margin-top: auto; }

.ribbon {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.45);
}
.was { color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-left: 6px; }
.deal-timer { color: var(--coral-dark); font-size: 0.8rem; font-weight: 500; margin-top: 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--g-900);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35); color: #fff; filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: #fff; color: var(--teal); border: 1.5px solid var(--teal); box-shadow: none; }
.btn-secondary:hover { background: var(--mint); color: var(--teal-dark); box-shadow: none; }
.btn-danger { background: linear-gradient(135deg, #d13b2e, var(--coral)); box-shadow: 0 6px 16px rgba(209, 59, 46, 0.25); }

/* ---------- Filters, tables, forms ---------- */

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.filters a, .filters button {
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.filters a:hover { border-color: var(--lagoon); color: var(--teal); }
.filters a.active, .filters .active { background: var(--teal); color: #fff; border-color: var(--teal); }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
table th, table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
table th { background: var(--foam); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
table tr:last-child td { border-bottom: none; }

form.stacked label { display: block; margin: 14px 0 5px; font-weight: 500; font-size: 0.88rem; color: var(--teal-dark); }
form.stacked input, form.stacked select, form.stacked textarea, .filters input, .filters select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filters input { width: auto; }
form.stacked input:focus, form.stacked select:focus, form.stacked textarea:focus, .filters input:focus {
  outline: none;
  border-color: var(--lagoon);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.alert-error { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: var(--g-700); border: 1px solid #bbf7d0; }

/* ---------- Product detail, misc ---------- */

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-detail img { width: 100%; border-radius: 22px; background: var(--foam); box-shadow: var(--shadow-lift); }
.badge {
  display: inline-block;
  background: var(--mint);
  color: var(--teal-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: capitalize;
  margin: 2px 6px 2px 0;
}

.pagination { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.pagination a, .pagination span { border: 1.5px solid var(--border); padding: 7px 14px; border-radius: 999px; background: #fff; font-size: 0.9rem; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.prewrap { white-space: pre-line; line-height: 1.7; }

/* ---------- Newsletter ---------- */

.newsletter {
  margin-top: 56px;
  padding: 38px 0 30px;
  color: #fff;
  background:
    radial-gradient(500px 200px at 90% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(135deg, var(--g-900), var(--g-800));
}
.news-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.news-inner h3 { margin: 0 0 4px; font-size: 1.3rem; }
.news-inner p { margin: 0; color: var(--mint); }
.news-form { display: flex; gap: 8px; flex: 1; max-width: 480px; min-width: 260px; background: #fff; border-radius: 999px; padding: 4px; }
.news-form input { flex: 1; min-width: 0; padding: 10px 16px; border: none; background: transparent; font-size: 0.95rem; font-family: inherit; outline: none; color: var(--ink); }
.news-form .btn { background: var(--abyss); color: #fff; box-shadow: none; padding: 10px 24px; }
.news-form .btn:hover { background: var(--g-900); }
.news-msg { text-align: center; margin: 16px 0 0; font-weight: 500; }
.news-ok { color: var(--lime); }
.news-err { color: #ffd0c4; }

/* ---------- Footer ---------- */

footer.site-footer { background: linear-gradient(180deg, var(--deep), var(--abyss)); color: #b4b4b8; padding: 48px 0 0; font-size: 0.92rem; }
footer.site-footer a { color: #b4b4b8; }
footer.site-footer a:hover { color: var(--lime); }
footer.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1.05rem; }
footer.site-footer p { margin: 0 0 8px; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; padding-bottom: 36px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.socials a { margin-right: 16px; font-weight: 500; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; color: #8b8b91; }
.pay-icons { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
.pay-icons svg { width: 46px; height: 29px; display: block; border-radius: 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }

/* ---------- Motion + responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  header.site-header { position: relative; }
  header.site-header .bar { flex-wrap: wrap; gap: 10px; }
  .nav-burger { display: block; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; }
  .actions { margin-left: auto; }
  .main-nav { display: none; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; padding: 0; }
  .main-nav > ul > li > a::after { display: none; }
  .main-nav .dropdown { display: block; position: static; box-shadow: none; border-radius: 0; background: rgba(0, 0, 0, 0.18); padding: 0; animation: none; }
  .main-nav .dropdown a { color: var(--mint); padding-left: 34px; border-radius: 0; }
  .main-nav .dropdown a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
  .hero { padding: 56px 20px 100px; }
  .kind-tiles { grid-template-columns: 1fr; margin-top: -44px; }
  .kind-tile { min-height: 110px; }
  .product-detail { grid-template-columns: 1fr; gap: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  section.section { padding: 32px 14px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}

/* ---------- Account portal specifics ---------- */

header.site-header .bar { justify-content: space-between; flex-wrap: wrap; }
header.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
header.site-header nav a {
  color: var(--mint);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 7px 14px;
  border-radius: 999px;
  margin: 0;
  transition: background 0.15s, color 0.15s;
}
header.site-header nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
header.site-header nav form .btn-secondary { background: transparent; color: var(--lime); border-color: var(--lime); margin-left: 8px !important; padding: 6px 16px !important; }
header.site-header nav form .btn-secondary:hover { background: var(--lime); color: var(--abyss); }

main > .container.section { animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.container.section > h1 { font-size: 2rem; margin-top: 0; }
.container.section .grid .card { padding: 4px; }

/* ---------- On-brand placeholder when a product has no photo ---------- */
.ph { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 3.6rem; position: relative; overflow: hidden; transition: transform 0.5s ease; }
.ph::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.35), transparent 55%); }
.ph span { position: relative; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25)); }
.ph-plant { background: linear-gradient(135deg, var(--g-900), var(--b-700)); }
.ph-fish  { background: linear-gradient(135deg, var(--g-800), var(--b-600)); }
.ph-tool  { background: linear-gradient(135deg, var(--g-800), #737373); }
.ph-lg { font-size: 7rem; border-radius: 22px; box-shadow: var(--shadow-lift); }
.card:hover .ph { transform: scale(1.06); }

/* Keep the footer at the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }

/* order status badges */
.st-good { background: #dcfce7; color: var(--g-700); }
.st-warn { background: #fef3c7; color: #92400e; }
.st-bad { background: #fee2e2; color: #991b1b; }
.st-grey { background: #e5e7eb; color: #374151; }
.track-box { display: inline-block; background: var(--mint); border: 1px solid #d4d4d8; border-radius: 12px; padding: 8px 14px; }

/* ---------- Social sign-in buttons ---------- */
.social-login { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 500; font-size: 0.95rem; transition: all 0.15s; }
.social-btn:hover { border-color: var(--abyss); background: var(--abyss); color: #fff; transform: translateY(-1px); }
.social-btn svg { width: 20px; height: 20px; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------- Logo and light header ---------- */
header.site-header .brand-logo { display: flex; align-items: center; line-height: 0; }
header.site-header .brand-logo img { width: auto; max-width: 60vw; object-fit: contain; }
header.site-header.light { background: #fff; color: var(--g-900); box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(0, 0, 0, 0.06); }
header.site-header.light .brand { color: var(--g-900); }
header.site-header.light .brand:hover { color: var(--b-700); }
header.site-header.light nav a { color: var(--b-700); }
header.site-header.light nav a:hover { background: #f0f0f0; color: var(--g-900); }
header.site-header.light nav form .btn-secondary { background: transparent; color: var(--g-900); border-color: var(--g-900); }
header.site-header.light nav form .btn-secondary:hover { background: var(--g-900); color: #fff; }

/* ---------- Large monitors: the page grows with the screen instead of sitting in a narrow strip ---------- */
@media (min-width: 1700px) { :root { --page-w: 1360px; } }
@media (min-width: 2200px) { :root { --page-w: 1700px; } }
@media (min-width: 3000px) { :root { --page-w: 2200px; } }

/* ---------- Phones: the account menu is one tidy row that scrolls sideways ---------- */
@media (max-width: 700px) {
  header.site-header .bar { flex-direction: column; align-items: stretch; gap: 8px; }
  header.site-header nav { flex-wrap: nowrap; overflow-x: auto; gap: 2px; margin: 0 -20px; padding: 0 16px 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  header.site-header nav::-webkit-scrollbar { display: none; }
  header.site-header nav a, header.site-header nav form { flex: none; white-space: nowrap; }
}
main > .container.section { padding-top: 28px; }

/* =====================================================================
   Smart portal layout (sidebar, stats, auth card, progress, etc.)
   ===================================================================== */

.muted { color: var(--muted); }
.optional { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }
.eyebrow { margin: 0 0 2px; color: var(--muted); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: progress; transform: none; }
.ico { width: 18px; height: 18px; flex: none; }

/* Header */
header.site-header nav a, header.site-header nav .user-chip { display: inline-flex; align-items: center; gap: 7px; }
header.site-header nav a.active { background: #f0f0f0; color: var(--g-900); }
header.site-header nav .nav-cta { color: #fff !important; background: var(--g-900); box-shadow: none; }
header.site-header nav .nav-cta:hover { background: var(--g-800) !important; }
header.site-header nav .logout-form { display: inline; margin: 0; }
header.site-header nav .logout-form .btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px !important; }
.user-chip { padding: 4px 10px 4px 4px; border-radius: 999px; font-weight: 500; font-size: 0.9rem; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--g-600), var(--b-700)); color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; flex: none; }
.avatar-lg { width: 46px; height: 46px; font-size: 1rem; }

/* Account shell: sidebar + content */
.account-shell { max-width: var(--page-w); margin: 0 auto; padding: 28px 20px 48px; display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.account-main { min-width: 0; }
.account-main > .container.section { padding: 0; max-width: none; }
.account-side { position: sticky; top: 96px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.side-user { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.side-user strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.side-user small { display: block; color: var(--muted); font-size: 0.78rem; word-break: break-all; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--b-700); font-weight: 500; font-size: 0.93rem; }
.side-link:hover { background: var(--foam); color: var(--g-900); }
.side-link.active { background: var(--g-900); color: #fff; }
.side-link.active:hover { color: #fff; }

/* Section headings */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-head h1, .section-head h2 { margin: 0; }
.container.section h2 { font-size: 1.2rem; }

/* Dashboard stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 22px 0 18px; }
.stat-card { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); color: var(--ink); transition: transform 0.2s, box-shadow 0.2s; }
a.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.stat-sub { font-size: 0.82rem; color: var(--muted); }
.stat-accent { background: linear-gradient(135deg, var(--g-900), var(--b-700)); color: #fff; border: none; }
.stat-accent .stat-label, .stat-accent .stat-sub { color: var(--accent-line); }
a.stat-accent:hover { color: #fff; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quick { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: #fff; border: 1px solid var(--border); border-radius: 999px; color: var(--ink); font-size: 0.9rem; font-weight: 500; transition: all 0.15s; }
.quick:hover { border-color: var(--g-900); color: var(--g-900); transform: translateY(-1px); }

/* Tables */
tr.row-link { cursor: pointer; transition: background 0.12s; }
tr.row-link:hover td { background: #fafafa; }
.cell-action { text-align: right; }
.amt-plus { color: var(--g-700); font-weight: 600; }
.empty-filter { text-align: center; color: var(--muted); padding: 24px; }

/* Order toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.search-input { flex: 1; min-width: 220px; max-width: 340px; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 999px; font: inherit; font-size: 0.92rem; background: #fff; }
.search-input:focus { outline: none; border-color: var(--b-700); box-shadow: 0 0 0 4px rgba(0,0,0,0.08); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.85rem; cursor: pointer; color: var(--ink); transition: all 0.15s; }
.chip:hover { border-color: var(--b-700); }
.chip.active { background: var(--g-900); border-color: var(--g-900); color: #fff; }

/* Empty states */
.card-flat { background: #fff; border: 1px dashed #d4d4d8; border-radius: 18px; padding: 44px 20px; }
.empty-icon { font-size: 2.6rem; margin-bottom: 6px; }
.empty-icon.spin { display: inline-block; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Auth pages */
.auth-wrap { display: flex; justify-content: center; padding-top: 40px !important; padding-bottom: 56px; }
.auth-card { display: grid; grid-template-columns: 1fr 1.15fr; width: 100%; max-width: 880px; background: #fff; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lift); }
.auth-aside { padding: 40px 34px; color: #eef8f1; background: radial-gradient(420px 220px at 90% 0%, rgba(255,255,255,0.14), transparent 60%), linear-gradient(150deg, var(--g-900), var(--b-700) 60%, var(--g-700)); }
.auth-aside h2 { color: #fff; font-size: 1.5rem; margin: 0 0 10px; }
.auth-aside p { color: var(--accent-line); margin: 0 0 18px; }
.perk-list { list-style: none; padding: 0; margin: 0; }
.perk-list li { padding: 7px 0 7px 30px; position: relative; }
.perk-list li::before { content: '✓'; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; font-size: 0.72rem; }
.auth-body { padding: 36px 36px 30px; }
.auth-body h1 { margin: 0 0 14px; font-size: 1.7rem; }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); }
.auth-switch a { font-weight: 600; }

.pw-field { position: relative; }
.pw-field input { padding-right: 70px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: transparent; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--b-700); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { background: var(--foam); }
.pw-meter { height: 5px; background: #eee; border-radius: 5px; margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 5px; transition: width 0.25s, background 0.25s; }
.caps-hint { color: #b45309; font-size: 0.82rem; margin: 6px 0 0; font-weight: 500; }
form.stacked .check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 500; }
form.stacked .check input { width: auto; }

/* Panels (profile, addresses) */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 16px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px 26px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 4px; }

.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.address-tile { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.address-tile.is-default { border-color: var(--g-600); }
.address-tile p { margin: 8px 0 12px; color: var(--b-700); font-size: 0.92rem; line-height: 1.55; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.link-danger { border: none; background: none; padding: 0; color: var(--danger); font: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer; }
.link-danger:hover { text-decoration: underline; }
.address-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; display: inline-block; min-width: 260px; }

/* Store credit */
.balance-card { background: linear-gradient(135deg, var(--g-900), var(--b-700)); color: #fff; border-radius: 20px; padding: 24px 26px; margin: 12px 0 24px; box-shadow: var(--shadow-lift); max-width: 460px; }
.balance-card .stat-label { color: var(--accent-line); }
.balance-card strong { display: block; font-size: 2.2rem; letter-spacing: -0.02em; margin: 4px 0; }
.balance-card p { margin: 6px 0 0; color: var(--accent-line); font-size: 0.9rem; }

/* Order detail */
.back-link { display: inline-block; font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.order-head h1 { margin: 0 0 2px; }
.order-head p { margin: 0; }
.progress { list-style: none; display: flex; padding: 0; margin: 26px 0 22px; counter-reset: step; }
.progress li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.progress li::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: #e5e5e5; z-index: 0; }
.progress li:first-child::before { display: none; }
.progress li.done::before { background: var(--g-600); }
.progress .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid #e5e5e5; font-size: 0.85rem; font-weight: 700; color: #fff; }
.progress li.done .dot { background: var(--g-600); border-color: var(--g-600); }
.progress li.bad .dot { background: #dc2626; border-color: #dc2626; }
.progress li.bad::before { background: #dc2626; }
.progress li.done { color: var(--ink); }
.progress .step-label { font-weight: 600; }
.progress small { font-size: 0.75rem; color: var(--muted); }
.track-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.order-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.summary-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.summary-card h3 { margin: 0 0 10px; font-size: 1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 0.92rem; }
.sum-row.good { color: var(--g-700); }
.sum-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.1rem; }
.sum-pay { margin: 8px 0 0; font-size: 0.85rem; }

/* Footer */
.portal-footer { text-align: center; padding: 26px 20px !important; }
.portal-footer .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 8px; }
.portal-footer .footer-nav a { color: #d1d5db; }
.portal-footer p { margin: 0 !important; }

/* Tablet / phone */
@media (max-width: 900px) {
  .account-shell { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .account-side { position: static; padding: 8px; border-radius: 14px; }
  .side-user { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-link { flex: none; padding: 8px 12px; }
  .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-aside { padding: 24px 24px 20px; }
  .auth-aside .perk-list { display: none; }
  .auth-body { padding: 24px 22px; }
  .user-name, .logout-form .btn span, .nav-shop span { display: none; }
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  table.responsive tr:last-child { border-bottom: none; }
  table.responsive td { border: none; padding: 5px 16px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 0.8rem; text-align: left; }
  table.responsive td.cell-action::before { content: none; }
  .stat-value { font-size: 1.4rem; }
}
/* Social buttons keep their brand colours on hover */
.social-btn:hover { background: #f7f7f8; color: var(--ink); border-color: #a1a1aa; }
.social-btn svg { width: 22px; height: 22px; }

/* ---------- Order help: cancel / return / refund / support ---------- */
.case-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.case-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.staff-note { margin-top: 8px; padding: 8px 12px; background: var(--foam); border-left: 3px solid var(--g-900); border-radius: 6px; font-size: 0.9rem; white-space: pre-line; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 26px; align-items: start; }
.help-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0; color: var(--ink); }
.help-card > summary, .help-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.help-card > summary::-webkit-details-marker { display: none; }
.help-card > summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform 0.15s; }
.help-card[open] > summary::after { transform: rotate(180deg); }
.help-card[open] { grid-column: 1 / -1; box-shadow: var(--shadow); }
.help-card > form { padding: 0 16px 16px; border-top: 1px solid var(--border); }
.help-card strong { display: block; font-size: 0.95rem; }
.help-card small { display: block; color: var(--muted); font-size: 0.8rem; }
.help-link:hover { border-color: var(--g-900); color: var(--ink); }
.help-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--foam); font-size: 1rem; }
.pick-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
form.stacked .pick-row input { width: 80px; flex: none; }

/* ---------- Support tickets ---------- */
.ticket-list { display: flex; flex-direction: column; gap: 8px; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.ticket-row:hover { border-color: var(--g-900); color: var(--ink); box-shadow: var(--shadow); }
.ticket-row.has-reply { border-left: 4px solid var(--g-600); }
.ticket-main { display: flex; flex-direction: column; min-width: 0; }
.ticket-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.thread { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.msg-me { align-self: flex-end; background: var(--g-900); color: #fff; border-color: var(--g-900); border-bottom-right-radius: 4px; }
.msg-shop { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-who { font-size: 0.75rem; opacity: 0.7; margin-bottom: 4px; }
.msg-body { white-space: pre-line; word-wrap: break-word; }
.reply-actions { display: flex; gap: 10px; margin-top: 12px; }
.resolve-form { margin-top: 10px; }
@media (max-width: 700px) {
  .msg { max-width: 92%; }
  .ticket-row { flex-direction: column; align-items: flex-start; }
  .ticket-meta { flex-direction: row; align-items: center; }
}

/* ---------- Square-cornered buttons everywhere (no pill / round buttons) ---------- */
.btn, .btn-sm, .social-btn, .chip, .quick, .search-input, .pw-toggle, .user-chip,
header.site-header nav a, header.site-header nav .btn, .side-link { border-radius: 8px !important; }

/* =====================================================================
   Account portal: deep teal + ocean blue, matching the online store
   ===================================================================== */
:root {
  --g-900: #0b2e1c; --g-800: #11442a; --g-700: #155c36; --g-600: #1e7a47;
  --b-700: #1a6b3f; --b-600: #2a8a52; --b-100: #e6f2ea;
  --g-100: #e1f0e6; --g-50: #f1f8f3; --line: #e1eae4;
  --brand-grad: linear-gradient(120deg, #0b2e1c 0%, #11442a 38%, #175a35 72%, #1a6b3f 100%);
  --ink: #0b2e1c; --muted: #5b7264; --border: #dbe7de; --bg: #f5f9f6; --foam: #f1f8f3; --mint: #e1f0e6;
  --shadow: 0 1px 2px color-mix(in srgb, var(--g-900) 4%, transparent), 0 4px 14px color-mix(in srgb, var(--g-900) 5%, transparent);
  --shadow-lift: 0 10px 28px color-mix(in srgb, var(--g-900) 10%, transparent);
}
body { background: var(--bg); color: var(--g-900); }
a { color: var(--b-700); }
a:hover { color: var(--g-700); }
::selection { background: var(--g-700); color: #fff; }
h1, h2, h3 { color: var(--g-900); }

/* Buttons */
.btn { background: var(--g-700); color: #fff; border: 1px solid var(--g-700); box-shadow: none; border-radius: 8px !important; font-weight: 600; }
.btn:hover { background: var(--g-800); border-color: var(--g-800); color: #fff; transform: none; box-shadow: none; filter: none; }
.btn-secondary { background: #fff; color: var(--g-800); border: 1px solid var(--accent-line); }
.btn-secondary:hover { background: var(--g-50); color: var(--g-900); border-color: var(--g-700); }
.btn-danger { background: #fff; color: #a13636; border: 1px solid #f0b4b4; }
.btn-danger:hover { background: #fdf3f3; color: #8a2b2b; border-color: #e08b8b; }

/* Header: white with a hairline, like the store */
header.site-header.light { background: #fff; box-shadow: 0 1px 0 var(--line); }
header.site-header.light nav a { color: var(--g-900); }
header.site-header.light nav a:hover { background: var(--g-50); color: var(--g-700); }
header.site-header nav .nav-cta { background: var(--g-700) !important; }
header.site-header nav .nav-cta:hover { background: var(--g-800) !important; }
header.site-header.light nav form .btn-secondary { color: var(--g-800); border-color: var(--accent-line); background: #fff; }
header.site-header.light nav form .btn-secondary:hover { background: var(--g-50); color: var(--g-900); border-color: var(--g-700); }
.avatar { background: linear-gradient(135deg, var(--g-600), var(--b-600)); }

/* Sign-in and sign-up */
.auth-wrap { padding-top: 48px !important; }
.auth-card { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px color-mix(in srgb, var(--g-900) 10%, transparent); }
.auth-aside { position: relative; overflow: hidden; background: var(--brand-grad); color: #e6f4f4; }
.auth-aside::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(320px 200px at 90% 0%, color-mix(in srgb, var(--g-600) 28%, transparent), transparent 70%), radial-gradient(300px 200px at 0% 100%, color-mix(in srgb, var(--g-600) 35%, transparent), transparent 70%); }
.auth-aside > * { position: relative; }
.auth-aside h2 { color: #fff; }
.auth-aside p { color: var(--accent-line); }
.perk-list li::before { background: rgba(255, 255, 255, 0.16); color: #c6f0d4; }
.auth-body h1 { color: var(--g-900); }
.auth-switch a { color: var(--b-700); }
.social-btn { border: 1px solid var(--accent-line); border-radius: 8px !important; color: var(--g-900); }
.social-btn:hover { background: var(--g-50); border-color: var(--g-700); color: var(--g-900); }
form.stacked label { color: var(--g-900); }
form.stacked input, form.stacked select, form.stacked textarea { border: 1px solid var(--accent-line); border-radius: 8px; }
form.stacked input:focus, form.stacked select:focus, form.stacked textarea:focus { border-color: var(--g-700); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-700) 15%, transparent); }
.pw-toggle { color: var(--g-700); }

/* Account layout */
.account-side { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.side-user { border-bottom-color: var(--line); }
.side-link { color: var(--b-700); border-radius: 8px !important; }
.side-link .ico { color: #6c8a76; }
.side-link:hover { background: var(--g-50); color: var(--g-900); }
.side-link.active { background: var(--g-100); color: var(--g-800); font-weight: 600; box-shadow: inset 3px 0 0 var(--g-700); }
.side-link.active .ico { color: var(--g-700); }
.eyebrow { color: var(--g-600); font-weight: 600; letter-spacing: 0.04em; }

/* Dashboard */
.stat-card { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
a.stat-card:hover { transform: none; border-color: var(--accent-line); box-shadow: var(--shadow-lift); }
.stat-value { color: var(--g-900); }
.stat-accent, .balance-card { background: var(--brand-grad); border: none; }
.stat-accent .stat-label, .stat-accent .stat-sub, .balance-card .stat-label { color: var(--accent-line); }
.balance-card p { color: var(--accent-line); }
.quick { border: 1px solid var(--accent-line); border-radius: 8px !important; color: var(--g-900); }
.quick:hover { border-color: var(--g-700); color: var(--g-900); transform: none; background: var(--g-50); }

/* Tables and lists */
table { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
table th { background: #f4f9f5; color: var(--muted); }
table td { border-bottom-color: #edf3ef; }
tr.row-link:hover td { background: var(--g-50); }
.chip { border: 1px solid var(--accent-line); border-radius: 8px !important; color: var(--g-900); }
.chip:hover { border-color: var(--g-700); }
.chip.active { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.search-input { border: 1px solid var(--accent-line); border-radius: 8px !important; }
.search-input:focus { border-color: var(--g-700); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-700) 15%, transparent); }
.card-flat { border-color: var(--accent-line); background: #fff; }

/* Status badges: calm tints */
.badge { border-radius: 6px; font-weight: 600; }
.st-good { background: #e1f2e6; color: var(--g-800); }
.st-warn { background: #fdf3dc; color: #7a5210; }
.st-bad { background: #fbe7e7; color: #8a2b2b; }
.st-grey { background: #eef2f3; color: #4a5e62; }

/* Order detail */
.progress li.done::before { background: var(--g-600); }
.progress li.done .dot { background: var(--g-600); border-color: var(--g-600); }
.progress .dot { border-color: var(--accent-line); }
.summary-card, .address-card, .panel, .case-card, .help-card, .ticket-row, .address-tile { border-color: var(--line); border-radius: 12px; }
.summary-card, .panel { box-shadow: var(--shadow); }
.sum-row.good, .amt-plus { color: var(--g-700); }
.track-box { background: var(--g-50); border-color: var(--accent-line); }
.help-ico { background: linear-gradient(135deg, var(--g-100), var(--b-100)); color: var(--g-700); }
.help-link:hover, .ticket-row:hover { border-color: var(--g-700); }
.ticket-row.has-reply { border-left-color: var(--g-600); }
.staff-note { background: var(--g-50); border-left-color: var(--g-700); }
.address-tile.is-default { border-color: var(--g-600); }

/* Support conversation */
.msg-me { background: var(--brand-grad); border-color: transparent; }
.msg-shop { background: #fff; border-color: var(--line); }

/* Alerts */
.alert-success { background: #e8f5ec; border-color: #bfe0c9; color: var(--g-800); }

/* Footer: same gradient as the store */
footer.site-footer, .portal-footer { background: var(--brand-grad) !important; color: var(--accent-line); }
.portal-footer .footer-nav a { color: var(--accent-line); }
.portal-footer .footer-nav a:hover { color: #fff; }

/* Grid children may shrink: the sideways-scrolling phone menu must not stretch the page */
.account-shell > *, .account-side, .side-nav { min-width: 0; }
.stat-accent .stat-value, .balance-card strong { color: #fff; }
.stat-grid { min-width: 0; }
.quick-actions { min-width: 0; }

/* Line icons (replacing emoji) */
.ui-ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.quick .ui-ico { color: var(--g-700); }
.empty-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 14px; background: linear-gradient(135deg, var(--g-100), var(--b-100)); color: var(--g-700); font-size: 0; }
.empty-icon .ui-ico { width: 28px; height: 28px; }
.help-ico { font-size: 0; }
.help-ico .ui-ico { width: 19px; height: 19px; }
.track-box .ui-ico { color: var(--g-700); }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 8px; background: var(--brand-grad); color: #fff; vertical-align: middle; }
.brand-mark .ui-ico { width: 18px; height: 18px; }

/* =====================================================================
   Background theme: soft green page, faint leaf pattern, light top wash.
   White cards and panels sit on top of it.
   ===================================================================== */
:root { --page-bg: #f3f8f4; --leaf-pattern: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23155c36%27%20stroke-opacity%3D%270.07%27%20stroke-width%3D%271.2%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M24%2058c0-14%209-24%2022-26%200%2014-9%2024-22%2026z%27%2F%3E%3Cpath%20d%3D%27M24%2058%2046%2032%27%2F%3E%3Cpath%20d%3D%27M112%2030c10%204%2015%2014%2012%2025-10-4-15-14-12-25z%27%2F%3E%3Cpath%20d%3D%27M124%2055%20112%2030%27%2F%3E%3Cpath%20d%3D%27M96%20128c3-12%2013-19%2025-17-3%2012-13%2019-25%2017z%27%2F%3E%3Cpath%20d%3D%27M96%20128l25-17%27%2F%3E%3Cpath%20d%3D%27M30%20132c-6-9-5-20%203-27%206%209%205%2020-3%2027z%27%2F%3E%3Cpath%20d%3D%27M30%20132l3-27%27%2F%3E%3Ccircle%20cx%3D%2770%27%20cy%3D%2792%27%20r%3D%272.2%27%2F%3E%3Ccircle%20cx%3D%27142%27%20cy%3D%2796%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%2764%27%20cy%3D%2718%27%20r%3D%271.4%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
body {
  background-color: var(--page-bg);
  background-image:
    radial-gradient(1200px 520px at 50% -180px, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    var(--leaf-pattern);
  background-repeat: no-repeat, repeat;
  background-attachment: scroll, fixed;
}

/* Portal: panels stay white on the patterned page */
.account-side, .stat-card:not(.stat-accent), .panel, .summary-card, .case-card, .help-card, .ticket-row, .address-tile, .address-card, .card-flat, table, .quick, .msg-shop { background-color: #fff; }
.auth-card { background: #fff; }
.auth-aside::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.6; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-opacity%3D%270.07%27%20stroke-width%3D%271.2%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M24%2058c0-14%209-24%2022-26%200%2014-9%2024-22%2026z%27%2F%3E%3Cpath%20d%3D%27M24%2058%2046%2032%27%2F%3E%3Cpath%20d%3D%27M112%2030c10%204%2015%2014%2012%2025-10-4-15-14-12-25z%27%2F%3E%3Cpath%20d%3D%27M124%2055%20112%2030%27%2F%3E%3Cpath%20d%3D%27M96%20128c3-12%2013-19%2025-17-3%2012-13%2019-25%2017z%27%2F%3E%3Cpath%20d%3D%27M96%20128l25-17%27%2F%3E%3Cpath%20d%3D%27M30%20132c-6-9-5-20%203-27%206%209%205%2020-3%2027z%27%2F%3E%3Cpath%20d%3D%27M30%20132l3-27%27%2F%3E%3Ccircle%20cx%3D%2770%27%20cy%3D%2792%27%20r%3D%272.2%27%2F%3E%3Ccircle%20cx%3D%27142%27%20cy%3D%2796%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%2764%27%20cy%3D%2718%27%20r%3D%271.4%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.auth-aside > * { z-index: 1; }
.portal-footer { position: relative; }
.portal-footer::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-opacity%3D%270.07%27%20stroke-width%3D%271.2%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M24%2058c0-14%209-24%2022-26%200%2014-9%2024-22%2026z%27%2F%3E%3Cpath%20d%3D%27M24%2058%2046%2032%27%2F%3E%3Cpath%20d%3D%27M112%2030c10%204%2015%2014%2012%2025-10-4-15-14-12-25z%27%2F%3E%3Cpath%20d%3D%27M124%2055%20112%2030%27%2F%3E%3Cpath%20d%3D%27M96%20128c3-12%2013-19%2025-17-3%2012-13%2019-25%2017z%27%2F%3E%3Cpath%20d%3D%27M96%20128l25-17%27%2F%3E%3Cpath%20d%3D%27M30%20132c-6-9-5-20%203-27%206%209%205%2020-3%2027z%27%2F%3E%3Cpath%20d%3D%27M30%20132l3-27%27%2F%3E%3Ccircle%20cx%3D%2770%27%20cy%3D%2792%27%20r%3D%272.2%27%2F%3E%3Ccircle%20cx%3D%27142%27%20cy%3D%2796%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%2764%27%20cy%3D%2718%27%20r%3D%271.4%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.portal-footer > * { position: relative; }
header.site-header.light { background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(6px); }

/* ---------- Forgot / reset password ---------- */
.pw-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pw-label-row label { margin-bottom: 0; }
.pw-forgot { font-size: 0.85rem; font-weight: 500; color: var(--g-700); text-decoration: none; }
.pw-forgot:hover { text-decoration: underline; }
.auth-card-narrow { max-width: 460px; grid-template-columns: 1fr !important; margin: 0 auto; }
.auth-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--g-50); color: var(--g-700); border: 1px solid var(--accent-line); margin-bottom: 14px; }
.auth-lead { color: var(--muted); line-height: 1.6; margin: 4px 0 16px; }

/* Log out at the end of the account menu (the header no longer has a Logout button) */
.side-logout { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgba(127, 127, 127, 0.2); }
.side-logout .side-link { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; }

/* ---------- Phone side bar (same as the shop's: cart, profile, log out). Hidden on computers. ---------- */
.qbar { display: none; position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 70; flex-direction: column; gap: 2px; padding: 4px; background: rgba(255, 255, 255, 0.94); border: 1px solid rgba(0, 0, 0, 0.08); border-left: 0; border-radius: 0 14px 14px 0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.qbar .qbar-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--g-900, #1f2421); cursor: pointer; padding: 0; text-decoration: none; }
.qbar .qbar-btn:hover, .qbar .qbar-btn:focus-visible { background: var(--g-700, #1f2937); color: #fff; }
.qbar form { margin: 0; }
@media (min-width: 701px) { .qbar { display: none !important; } }

/* The shop theme's centred-logo header rules are written for the shop's header; the portal keeps its own
   simple row: logo on the left, links on the right. */
body header.site-header .bar { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body header.site-header .bar .brand { order: 0; flex: none; }
body header.site-header .bar nav { order: 1; margin-left: auto; }
/* On phones the logo is the size chosen in the theme editor ("Logo size on phones"), the same as on the shop. */
@media (max-width: 700px) {
  body header.site-header .brand-logo img { max-width: 60vw !important; }
}

/* Phones, not signed in (login, register, forgot password): the header shows only the logo.
   Sign in / Create account are on the page itself; cart and profile are in the side bar. */
@media (max-width: 700px) {
  body header.site-header .bar nav.nav-guest { display: none; }
  body header.site-header .bar:has(nav.nav-guest) { justify-content: center; }
}

/* Portal footer: links and text stay readable on its dark background whatever the shop theme sets */
body footer.portal-footer .footer-nav a { color: #e5e7eb !important; text-decoration: underline; text-underline-offset: 4px; font-size: 0.92rem; }
body footer.portal-footer .footer-nav a:hover { color: #fff !important; }
body footer.portal-footer p { color: #cbd5e1 !important; }

.invoice-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }

/* ---------- Notification bell (portal header, signed-in customers) ---------- */
.bell { position: relative; display: inline-flex; }
.bell-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.bell-btn:hover { background: rgba(127, 127, 127, 0.16); }
.bell-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d93025; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-count[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .bell.has-new .bell-btn svg { animation: bell-ring 2.6s ease-in-out infinite; transform-origin: 50% 10%; }
}
@keyframes bell-ring { 0%, 55%, 100% { transform: rotate(0); } 60% { transform: rotate(14deg); } 68% { transform: rotate(-12deg); } 76% { transform: rotate(8deg); } 84% { transform: rotate(-5deg); } 92% { transform: rotate(2deg); } }
.bell-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; width: min(360px, calc(100vw - 24px)); max-height: min(480px, 76vh); display: flex; flex-direction: column; background: #fff; color: #1f2933; border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2); overflow: hidden; text-align: left; }
.bell-panel[hidden] { display: none; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #eef0ee; }
.bell-read { border: 0; background: none; color: var(--g-700, #1f2937); font: inherit; font-size: 0.82rem; text-decoration: underline; cursor: pointer; padding: 0; }
.bell-list { overflow-y: auto; }
header.site-header nav .bell-item, .bell-item { display: flex !important; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid #f1f3f2; color: #1f2933 !important; text-decoration: none; background: #fff; border-radius: 0; white-space: normal; }
header.site-header nav .bell-item:hover, .bell-item:hover { background: #f6f7f6; color: #1f2933 !important; }
.bell-item.is-new { background: #f3f7ff; }
.bell-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef1ef; color: #3e4c59; }
.bell-shipped { background: #e3f2fd; color: #1565c0; } .bell-cancelled { background: #fdecea; color: #b91c1c; } .bell-refund { background: #fff4e5; color: #b45309; } .bell-support { background: #ede7f6; color: #5e35b1; } .bell-review { background: #fff8e1; color: #f59e0b; } .bell-order { background: #e6f4ea; color: #1a7f4b; }
.bell-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 0.88rem; line-height: 1.4; }
.bell-text b { font-weight: 600; }
.bell-text span { color: #52606d; overflow: hidden; text-overflow: ellipsis; }
.bell-text small { color: #7b8794; font-size: 0.76rem; }
.bell-empty { margin: 0; padding: 22px 16px; color: #52606d; text-align: center; font-size: 0.9rem; }
@media (max-width: 700px) { .bell-panel { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; } }

/* ---- Sign-in, register and password pages: the same look as the shop's own pages (theme colours and fonts) ---- */
.auth-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(11, 46, 28, 0.05), 0 4px 14px rgba(11, 46, 28, 0.05); }
.auth-aside { background: color-mix(in srgb, var(--g-700) 6%, var(--page-bg, #f5f5f5)); color: var(--ink); border-right: 1px solid var(--line); }
.auth-aside::before, .auth-aside::after { display: none; }
.auth-aside h2 { color: var(--g-900); font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; letter-spacing: -0.01em; }
.auth-aside p { color: var(--muted); }
.perk-list li { color: var(--ink); }
.perk-list li::before { background: var(--g-700); color: #fff; }
.auth-body h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.auth-body form.stacked label { font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; }
.auth-body form.stacked input:not([type=checkbox]):not([type=radio]) { border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-family: var(--font-body); font-size: 16px; min-height: 46px; background: #fff; }
.auth-body form.stacked input:focus { border-color: var(--g-700); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-700) 14%, transparent); }
.auth-body .social-btn { border-radius: 12px !important; }
.auth-switch a, .pw-forgot, .pw-toggle { color: var(--g-700); }
@media (max-width: 720px) {
  .auth-aside { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---- Account > Help centre ---- */
.hc-search { display: flex; gap: 8px; margin: 14px 0 18px; }
.hc-search input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; }
.hc-search input:focus { outline: none; border-color: var(--g-700); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-700) 14%, transparent); }
.hc-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(11, 46, 28, 0.05), 0 4px 14px rgba(11, 46, 28, 0.05); }
.hc-card h2 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; margin: 0 0 8px; color: var(--g-900); }
.hc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hc-grid .hc-card { margin: 0; }
.hc-list { list-style: none; margin: 0; padding: 0; }
.hc-list li { border-bottom: 1px solid var(--line); }
.hc-list li:last-child { border-bottom: 0; }
.hc-list a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 22px 10px 0; color: var(--g-900); font-weight: 600; text-decoration: none; }
.hc-list a::after { content: ''; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: translateY(-50%) rotate(45deg); }
.hc-list a:hover span { color: var(--g-700); text-decoration: underline; }
.hc-list small { font-weight: 400; font-size: 0.86rem; color: var(--muted); }
.hc-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.hc-quick-item { display: flex; flex-direction: column; gap: 3px; margin: 0; color: var(--g-900); text-decoration: none; }
.hc-quick-item:hover { border-color: var(--g-700); }
.hc-quick-item small { color: var(--muted); }
.hc-crumb { margin: 0 0 14px; color: var(--muted); }
.hc-crumb a { color: var(--g-700); font-weight: 600; text-decoration: none; }
.hc-article h1 { font-size: 1.6rem; margin: 0 0 8px; }
.hc-article h2 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin: 20px 0 8px; }
.hc-summary { color: var(--muted); margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hc-article p, .hc-article li { line-height: 1.7; }
.hc-article ol, .hc-article ul { padding-left: 22px; margin: 0 0 14px; }
.hc-article li { margin-bottom: 6px; }
.hc-still { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.hc-still > div { display: flex; flex-direction: column; }
.hc-still small { color: var(--muted); }
@media (max-width: 860px) { .hc-grid, .hc-quick { grid-template-columns: 1fr; } .hc-search { flex-direction: column; } }

/* ---- Profile: connected sign-ins and deleting the account ---- */
.id-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.id-row > span { display: flex; flex-direction: column; }
.id-row small { color: var(--muted); font-size: 0.82rem; }
.id-row form { margin: 0; }
.panel-danger { border-color: #f0c9c9; }
.panel-danger h2 { color: #a12626; }
.panel-danger details > summary { list-style: none; }
.panel-danger details > summary::-webkit-details-marker { display: none; }
.btn-danger { background: #b42318 !important; border-color: #b42318 !important; color: #fff !important; }

/* ---- Social login test mode (practice page) ---- */
.sbx-flag { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: #fff4d6; color: #7a5200; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sbx-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff4d6; color: #7a5200; font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.sbx-email { display: flex; align-items: center; gap: 8px; }
.sbx-email input { flex: 1; min-width: 0; }
.sbx-email span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.sbx-more { margin-top: 14px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.sbx-more summary { cursor: pointer; font-weight: 600; }
.sbx-check { display: flex !important; align-items: center; gap: 8px; margin-top: 10px !important; font-weight: 400 !important; }
.sbx-check input { width: 16px !important; min-height: 0 !important; height: 16px; flex: none; padding: 0 !important; }

/* ---- Support tickets: attached files ---- */
.att { margin-top: 14px; }
.att-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.att-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.att-item.is-loading { opacity: 0.6; }
.att-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: color-mix(in srgb, var(--g-700) 10%, #fff); color: var(--g-700); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }
.att-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; overflow-wrap: anywhere; }
.att-name small { font-weight: 400; color: var(--muted); }
.att-rm { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.att-rm:hover { background: #fdecec; color: #a12626; }
.att-add { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px dashed color-mix(in srgb, var(--g-700) 35%, transparent); border-radius: 12px; background: transparent; color: var(--g-700); font: inherit; font-weight: 600; cursor: pointer; }
.att-add:hover { border-color: var(--g-700); background: color-mix(in srgb, var(--g-700) 5%, #fff); }
.att-add[hidden] { display: none; }
.att .hint.att-bad { color: #a12626; }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg-file { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; max-width: 100%; }
.msg-file:hover { border-color: var(--g-700); }
.msg-file.is-img { padding: 0; overflow: hidden; }
.msg-file.is-img img { display: block; width: 110px; height: 110px; object-fit: cover; }
.msg-file-name { display: flex; flex-direction: column; font-weight: 600; overflow-wrap: anywhere; }
.msg-file-name small { font-weight: 400; color: var(--muted); }

