:root {
  --ink: #272d31;
  --ink-soft: #394148;
  --gold: #ad8b2f;
  --gold-dark: #755d19;
  --cream: #f5f4f1;
  --paper: #ffffff;
  --line: #dfdcd6;
  --muted: #6f7579;
  --green: #17704a;
  --blue: #246d9e;
  --red: #b53b35;
  --shadow: 0 14px 40px rgba(39, 45, 49, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; font-size: 16px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 14px/1.45 Arial, Helvetica, sans-serif; }
body.modal-open { overflow: hidden; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; }
img { display: block; max-width: 100%; }
small { font-size: 10px; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(173, 139, 47, .33);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: 264px;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  overflow-y: auto;
  background: var(--paper);
  border-right: 1px solid var(--line);
  transition: transform .22s ease;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font: 700 13px Georgia, serif;
}
.brand-mark::after { content: ""; position: absolute; top: -7px; width: 12px; height: 7px; border: 2px solid var(--gold); border-bottom: 0; border-radius: 8px 8px 0 0; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 12px; letter-spacing: 1.7px; }
.brand small { margin-top: 3px; color: #8a8986; letter-spacing: .2px; }
.sidebar nav { margin-top: 28px; }
.nav-label { margin: 0 10px 9px; color: #96928c; font-size: 10px; font-weight: 800; letter-spacing: 1.45px; }
.nav-label.section-label { margin-top: 24px; }
.nav-button {
  position: relative;
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #625f5b;
  text-align: left;
  transition: background .16s ease, color .16s ease;
}
.nav-button:hover { background: #f7f5f1; color: var(--ink); }
.nav-button.active { background: #f1eee6; color: var(--ink); font-weight: 700; }
.nav-button.active::before { content: ""; position: absolute; left: 0; width: 3px; height: 23px; background: var(--gold); border-radius: 0 3px 3px 0; }
.nav-icon { width: 19px; text-align: center; color: #697078; font-size: 16px; font-style: normal; }
.nav-button > span:nth-child(2) { flex: 1; font-size: 13px; }
.nav-button > i { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #fff; font-size: 10px; font-style: normal; }
.sidebar-help { margin-top: auto; padding: 13px; border: 1px solid #e3ded2; border-radius: 8px; background: #f8f6f1; }
.sidebar-help b, .sidebar-help span { display: block; }
.sidebar-help b { font-size: 11px; }
.sidebar-help span { margin: 4px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.sidebar-help button { padding: 0; border: 0; background: transparent; color: var(--gold-dark); font-size: 10px; font-weight: 800; }
.store-link { margin-top: 12px; padding: 14px 10px 0; border-top: 1px solid var(--line); color: #6f6b67; font-size: 11px; text-decoration: none; }

.main-area { min-height: 100vh; margin-left: 264px; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}
.safe-context { margin-right: auto; color: var(--muted); font-size: 11px; }
.mobile-menu { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.bell { position: relative; width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.bell > i { position: absolute; top: -3px; right: -3px; width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--gold); color: #fff; font-size: 10px; font-style: normal; }
.avatar { display: flex; align-items: center; gap: 9px; padding: 2px; border: 0; background: transparent; text-align: left; }
.avatar > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; }
.avatar b, .avatar small { display: block; }
.avatar b { font-size: 11px; }
.avatar small { margin-top: 2px; color: var(--muted); }
.avatar em { color: #9a9ea0; font-style: normal; }
.nav-backdrop { display: none; }

main { width: 100%; max-width: 1500px; flex: 1; margin: 0 auto; padding: 30px 36px 70px; }
.page-title { margin-bottom: 26px; }
.page-title p { margin: 0 0 9px; color: #959b9e; font-size: 10px; }
.page-title p span { padding: 0 4px; color: var(--gold); }
.page-title h1 { margin: 0; font: 500 clamp(28px, 3vw, 37px)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.5px; }
.page-title > div > span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 36px; border-top: 1px solid var(--line); background: #fff; color: #7f8385; font-size: 10px; }
footer div { display: flex; gap: 18px; }
footer button { padding: 0; border: 0; background: transparent; color: #666c6f; font-size: 10px; }

h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.eyebrow { margin: 0 0 8px !important; color: var(--gold-dark) !important; font-size: 10px !important; font-weight: 800 !important; letter-spacing: 1.35px; }
.muted { color: var(--muted); }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 21px; }
.section-head p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.stack { display: grid; gap: 16px; }
.full { width: 100%; }

.btn { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 700; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.btn.primary { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(39, 45, 49, .15); }
.btn.primary:hover { background: var(--ink-soft); transform: translateY(-1px); }
.btn.secondary { border-color: #d8d5cf; background: #fff; }
.btn.secondary:hover, .btn.ghost:hover { border-color: #bcb8b1; background: #faf9f7; }
.btn.ghost { border-color: #d8d5cf; background: transparent; }
.btn.light { border-color: #fff; background: #fff; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: var(--gold-dark); font-size: 11px; font-weight: 800; text-decoration: none; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 16px; }
.badge { display: inline-flex; align-items: center; width: max-content; padding: 5px 9px; border-radius: 100px; background: #ececea; color: #63696c; font-size: 10px; font-weight: 800; line-height: 1; white-space: nowrap; }
.badge.orange { background: #f5edd8; color: #705917; }
.badge.green { background: #e3f3eb; color: #12653e; }
.badge.blue { background: #e5f0f7; color: #22658f; }
.badge.red { background: #f9e7e5; color: #9d302b; }

.hero-card { position: relative; min-height: 260px; display: grid; grid-template-columns: minmax(0, 1.25fr) 190px minmax(220px, .7fr); align-items: center; gap: 27px; overflow: hidden; padding: 34px 38px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; width: 360px; height: 360px; left: 43%; top: -190px; border: 1px solid rgba(173, 139, 47, .22); border-radius: 50%; }
.hero-card > * { position: relative; z-index: 1; }
.hero-copy h2 { max-width: 520px; margin: 12px 0 8px; font-size: 28px; line-height: 1.16; }
.hero-copy .eyebrow { margin-top: 17px !important; color: #c9a74d !important; }
.hero-copy .muted { margin: 0; color: #b5bcc0; font-size: 11px; }
.hero-copy .muted strong { color: #fff; }
.hero-card .btn.ghost { border-color: #515a60; color: #fff; }
.hero-product { text-align: center; }
.hero-product img { width: 126px; height: 126px; margin: 0 auto 10px; object-fit: cover; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .08); }
.hero-product span, .hero-product small { display: block; }
.hero-product span { font-size: 10px; font-weight: 800; }
.hero-product small { margin-top: 4px; color: #aeb5b9; }
.progress { padding-left: 29px; border-left: 1px solid #495158; }
.progress p, .timeline p { position: relative; min-height: 60px; display: flex; gap: 12px; margin: 0; }
.progress p:not(:last-child)::after, .timeline p:not(:last-child)::after { content: ""; position: absolute; top: 27px; bottom: 0; left: 13px; border-left: 1px dashed #aeb4b6; }
.progress i, .timeline i { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #667078; border-radius: 50%; color: #9ca4a8; font-size: 10px; font-style: normal; }
.progress b, .progress small, .timeline b, .timeline small { display: block; }
.progress b { color: #aeb5b9; font-size: 11px; }
.progress small { margin-top: 3px; color: #788288; }
.progress .done i { border-color: var(--green); background: var(--green); color: #fff; }
.progress .done b, .progress .active b { color: #fff; }
.progress .active i { border-color: var(--gold); background: var(--gold); color: #fff; box-shadow: 0 0 0 5px rgba(173, 139, 47, .16); }

.attention-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.attention { display: flex; gap: 14px; min-height: 185px; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.attention-icon, .big-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #f4ecda; color: var(--gold-dark); font-size: 18px; }
.attention > div:last-child { flex: 1; }
.attention .badge + small { float: right; padding-top: 4px; color: #91979a; }
.attention h3 { margin: 14px 0 6px; font-size: 13px; }
.attention p { margin: 0 0 11px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.quick-grid > button { min-height: 85px; display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--gold-dark); font-size: 20px; text-align: left; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.quick-grid > button:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
.quick-grid span { flex: 1; }
.quick-grid b, .quick-grid small { display: block; color: var(--ink); }
.quick-grid b { font-size: 12px; }
.quick-grid small { margin-top: 4px; color: var(--muted); }
.quick-grid em { color: #9ca0a2; font-style: normal; }


.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.search { min-height: 42px; flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #d9d6d0; border-radius: 8px; background: #fff; color: #91979a; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.toolbar select { width: 190px; min-height: 42px; padding: 0 12px; border: 1px solid #d9d6d0; border-radius: 8px; background: #fff; font-size: 11px; }
.order-list { display: grid; gap: 11px; }
.order-card { display: flex; align-items: center; gap: 17px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.product-thumb { position: relative; width: 74px; height: 74px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 9px; background: linear-gradient(145deg, #f3efe8, #e4ddd1); color: var(--gold-dark); font-size: 25px; }
.product-thumb::after { content: ""; position: absolute; width: 58px; height: 58px; border: 1px solid rgba(117, 93, 25, .16); border-radius: 50%; pointer-events: none; }
.product-thumb.has-image::after { display: none; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-info { min-width: 0; flex: 1; padding-right: 19px; border-right: 1px solid var(--line); }
.order-info h3 { margin: 2px 0; font-size: 15px; }
.order-info h4 { margin: 12px 0 4px; font-size: 12px; }
.order-info p, .order-info > small { margin: 0; color: var(--muted); font-size: 10px; }
.order-info > small { display: block; margin-top: 7px; color: #4f575b; }
.notice { width: max-content; max-width: 100%; margin-top: 9px; padding: 5px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.notice.engraved { background: #f7efd9; color: var(--gold-dark); }
.notice.return { background: #e6f3ed; color: var(--green); }
.order-info details { margin-top: 10px; }
.order-info summary, .rules summary { width: max-content; max-width: 100%; color: var(--gold-dark); font-size: 10px; font-weight: 800; cursor: pointer; }
.details-box { margin-top: 8px; padding: 10px 12px; border-radius: 7px; background: #f8f7f4; }
.details-box p + p { margin-top: 5px; }
.order-actions { width: 125px; display: grid; justify-items: stretch; gap: 9px; }
.order-actions .text-link { justify-content: center; }
.empty { padding: 45px; border: 1px dashed #cbc8c2; border-radius: 11px; background: #fff; text-align: center; }
.empty p { color: var(--muted); }

.panel { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(39, 45, 49, .025); }
.panel.compact { padding: 22px; }
.panel h2 { margin: 0; font-size: 21px; }
.panel h3 { font-size: 13px; }
.panel.compact > p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.panel.compact > .btn + .btn { margin-top: 9px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 6px 0 4px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 11px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; align-items: start; }
.two-col.wide { grid-template-columns: minmax(0, 1.7fr) minmax(260px, .65fr); }
.timeline { margin-top: 18px; }
.timeline p { color: var(--muted); }
.timeline p:not(:last-child)::after { border-color: #c7ccce; }
.timeline i { border-color: #d4d8da; background: #eef0f0; color: #687175; }
.timeline .active i { border-color: var(--gold); background: var(--gold); color: #fff; }
.timeline b { color: var(--ink); font-size: 11px; }
.timeline small { margin-top: 3px; color: var(--muted); }
.info-strip { min-height: 60px; display: flex; align-items: center; gap: 12px; margin-top: 15px; padding: 13px 15px; border: 1px solid #dfe5e7; border-radius: 9px; background: #f2f5f6; color: var(--blue); }
.info-strip > span { flex: 1; color: var(--ink); }
.info-strip b, .info-strip small { display: block; }
.info-strip b { font-size: 10px; }
.info-strip small { margin-top: 3px; color: var(--muted); line-height: 1.5; }
.price-box { margin: 15px 0; padding: 14px; border: 1px solid #e3ded2; border-radius: 8px; background: #f8f6f1; }
.price-box b, .price-box small { display: block; }
.price-box b { font-size: 12px; }
.price-box small { margin-top: 4px; color: var(--muted); }

.dark-hero { min-height: 155px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 16px; padding: 27px 31px; border-radius: 12px; background: linear-gradient(120deg, #252c31, #364047); color: #fff; }
.dark-hero h2 { margin: 12px 0 7px; font-size: 25px; }
.dark-hero p { max-width: 700px; margin: 0; color: #b5bdc1; font-size: 11px; }
.return-product { display: flex; align-items: center; gap: 13px; padding: 18px 0; }
.return-product > span { min-width: 0; flex: 1; }
.return-product b, .return-product small, .return-product em { display: block; }
.return-product b { font-size: 11px; }
.return-product small { margin-top: 4px; color: var(--muted); }
.return-product em { margin-top: 6px; color: var(--green); font-size: 10px; font-style: normal; font-weight: 700; }
.active-return { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; padding: 13px; border: 1px solid #d9e9e1; border-radius: 8px; background: #edf7f2; color: var(--green); }
.active-return > span { flex: 1; color: var(--ink); }
.active-return b, .active-return small { display: block; }
.active-return b { font-size: 10px; }
.active-return small { margin-top: 3px; color: var(--muted); }
.rules { padding-top: 15px; border-top: 1px solid var(--line); }
.rules > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.rules p { margin: 0; padding: 11px; border-radius: 7px; background: #f7f6f3; }
.rules b, .rules small { display: block; }
.rules b { font-size: 10px; }
.rules small { margin-top: 4px; color: var(--muted); }
.compact ol { padding-left: 19px; color: var(--muted); font-size: 11px; line-height: 1.8; }

.case-product { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.case-product > span { flex: 1; }
.case-product b, .case-product small { display: block; }
.case-product b { font-size: 11px; }
.case-product small { margin-top: 4px; color: var(--muted); }

.service-hero, .care-hero, .protection-hero { min-height: 175px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; margin-bottom: 18px; padding: 28px 31px; border-radius: 13px; background: #eae6dd; }
.service-hero h2, .care-hero h2, .protection-hero h2 { margin: 0 0 8px; font-size: 26px; }
.service-hero p:not(.eyebrow), .care-hero p:not(.eyebrow), .protection-hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 11px; }
.service-hero > div:last-child, .protection-hero > div:last-child { width: 92px; height: 92px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #cec6b7; border-radius: 50%; color: var(--gold-dark); font-size: 38px; }
.service-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 17px; align-items: start; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.service-card { min-height: 204px; padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.service-card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
.service-card > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: #f5eddc; color: var(--gold-dark); font-size: 19px; font-style: normal; }
.service-card h3 { margin: 14px 0 6px; font-size: 12px; }
.service-card > p { min-height: 29px; margin: 0; color: var(--muted); font-size: 10px; }
.service-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 17px 0 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.service-card > div b { color: var(--gold-dark); font-size: 10px; }
.service-card > div small { color: var(--muted); }
.service-card > strong { color: var(--gold-dark); font-size: 10px; }
.service-process h2 { margin-bottom: 18px; }
.number-list { display: grid; gap: 12px; }
.number-list p { display: flex; align-items: flex-start; gap: 11px; margin: 0; }
.number-list p > b { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--ink); color: #fff; font-size: 10px; }
.number-list span { flex: 1; }
.number-list strong, .number-list small { display: block; }
.number-list strong { font-size: 10px; }
.number-list small { margin-top: 3px; color: var(--muted); line-height: 1.45; }

.care-hero { background: #eef1ed; }
.cart { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #d4dbd4; border-radius: 9px; background: rgba(255, 255, 255, .7); }
.cart span { min-width: 90px; }
.cart b, .cart small { display: block; }
.cart b { font-size: 11px; }
.cart small { color: var(--muted); }
.accessory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.accessory { padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.accessory-art { height: 120px; display: grid; place-items: center; margin: -4px -4px 15px; border-radius: 8px; background: linear-gradient(145deg, #f3f0e9, #e5ded3); color: var(--gold-dark); font-size: 37px; }
.accessory h3 { min-height: 34px; margin: 12px 0 4px; font-size: 12px; }
.accessory > p { min-height: 30px; margin: 0 0 14px; color: var(--muted); font-size: 10px; }
.accessory .row-between strong { font: 500 17px Georgia, serif; }

.coupon-hero { min-height: 145px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; padding: 25px 29px; border-radius: 12px; background: var(--ink); color: #fff; }
.coupon-hero > div { display: flex; align-items: center; gap: 18px; color: var(--gold); font-size: 42px; }
.coupon-hero h2 { margin: 0; color: #fff; font-size: 26px; }
.coupon-hero p:not(.eyebrow) { margin: 5px 0 0; color: #b4bcc0; font-size: 11px; }
.coupon-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 17px; margin-bottom: 17px; }
.coupon { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 25px; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 11px; background: #fff; }
.coupon h2 { margin: 10px 0 0; font-size: 37px; }
.coupon p { margin: 0; color: var(--muted); font-size: 11px; }
.coupon-code { display: flex; align-items: center; gap: 16px; padding: 5px 5px 5px 14px; border: 1px dashed #bdb8ae; border-radius: 7px; background: #faf9f6; }
.coupon-code b { font: 800 12px monospace; letter-spacing: 1px; }
.coupon-code button { width: 35px; height: 35px; display: grid; place-items: center; border: 0; border-radius: 5px; background: var(--ink); color: #fff; }
.panel.info-strip { margin-top: 0; }

.buyback-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 17px; }
.buyback-switch button { position: relative; min-height: 92px; padding: 18px 75px 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; }
.buyback-switch button.active { border: 2px solid var(--gold); background: #fbf8ef; }
.buyback-switch b, .buyback-switch small { display: block; }
.buyback-switch b { font-size: 13px; }
.buyback-switch small { margin-top: 5px; color: var(--muted); }
.buyback-switch strong { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); color: var(--gold-dark); font: 500 22px Georgia, serif; }
.calculator > h2 { margin-bottom: 18px; }
.calculator > label, .modal-body > label { display: block; margin-top: 14px; color: #555c60; font-size: 10px; font-weight: 700; }
.calculator select, .calculator input, .modal-body select, .modal-body input, .modal-body textarea, .wizard-body input, .wizard-body textarea { width: 100%; min-height: 42px; margin-top: 6px; padding: 9px 12px; border: 1px solid #d7d4ce; border-radius: 7px; background: #fff; font-size: 11px; }
.modal-body textarea, .wizard-body textarea { resize: vertical; }
.input-unit { position: relative; }
.input-unit span { position: absolute; right: 13px; bottom: 11px; color: var(--muted); font-size: 11px; }
.estimate { margin: 18px 0 15px; padding: 17px; border-radius: 9px; background: var(--ink); color: #fff; }
.estimate small, .estimate strong, .estimate span { display: block; }
.estimate small { color: #b5bdc1; }
.estimate strong { margin: 5px 0; font: 500 28px Georgia, serif; }
.estimate span { color: #aab3b7; font-size: 10px; line-height: 1.45; }

.protection-hero { background: var(--ink); color: #fff; }
.protection-hero p { color: #b4bcc0; }
.protection-hero > div:last-child { border-color: #576169; color: #d3b25d; }
.protection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.protection-grid > article { padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.protection-grid > article.featured { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.protection-grid h3 { margin: 14px 0 7px; font-size: 14px; }
.protection-grid p { min-height: 48px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.protection-grid ul { min-height: 85px; padding-left: 17px; color: #555d61; font-size: 10px; line-height: 1.9; }

.newsletter { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.newsletter > section, .newsletter > aside { padding: 32px; }
.newsletter > section { border-right: 1px solid var(--line); }
.newsletter h2 { margin: 9px 0 7px; font-size: 25px; }
.newsletter > section > p:not(.eyebrow) { color: var(--muted); font-size: 11px; }
.check-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; }
.check-row input, .accept input { width: 17px; height: 17px; accent-color: var(--gold-dark); }
.check-row span { flex: 1; }
.check-row b, .check-row small { display: block; }
.check-row b { font-size: 11px; }
.check-row small { margin-top: 3px; color: var(--muted); }
.accept { display: flex !important; align-items: center; gap: 8px; margin: 14px 0 !important; color: #555c60; font-size: 10px; font-weight: 600; }
.newsletter > aside { background: #f4f1e9; }
.newsletter > aside article { display: grid; gap: 8px; margin-top: 11px; padding: 15px; border-radius: 8px; background: #fff; }
.newsletter > aside article b { font-size: 11px; }

.profile-grid, .summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
.profile-grid p, .summary-grid p { margin: 0; padding: 12px; border-radius: 7px; background: #f7f6f3; }
.profile-grid small, .profile-grid b, .summary-grid small, .summary-grid b { display: block; }
.profile-grid small, .summary-grid small { color: var(--muted); letter-spacing: .5px; }
.profile-grid b, .summary-grid b { margin-top: 4px; font-size: 10px; line-height: 1.45; }
.address { display: flex; align-items: center; gap: 11px; margin: 16px 0; padding: 13px; border: 1px solid #e2ded5; border-radius: 8px; background: #f8f6f1; color: var(--gold-dark); }
.address > span { flex: 1; color: var(--ink); }
.address b, .address small { display: block; }
.address b { font-size: 10px; }
.address small { margin-top: 3px; color: var(--muted); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); }
.toggle-row b, .toggle-row small { display: block; }
.toggle-row b { font-size: 11px; }
.toggle-row small { margin-top: 3px; color: var(--muted); }
.toggle-row input { appearance: none; position: relative; width: 42px; height: 23px; flex: 0 0 auto; border-radius: 20px; background: #c8ccce; transition: background .16s ease; }
.toggle-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .16s ease; }
.toggle-row input:checked { background: var(--gold); }
.toggle-row input:checked::after { transform: translateX(19px); }
.security { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.security b, .security small { display: block; }
.security b { font-size: 10px; }
.security small { margin-top: 3px; color: var(--muted); }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(22, 27, 30, .68); backdrop-filter: blur(4px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 44px); overflow: auto; border-radius: 13px; background: #fff; box-shadow: 0 26px 80px rgba(0, 0, 0, .28); }
.modal.wizard-modal { width: min(960px, 100%); }
.modal-head { position: sticky; z-index: 3; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.modal-head h2 { margin: 0 0 4px; font-size: 23px; }
.modal-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; }
.modal-body { padding: 22px 24px; }
.modal-body h3 { margin: 20px 0 10px; font-size: 12px; }
.modal-actions { position: sticky; z-index: 3; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 16px 24px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.return-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.return-methods button, .basis-grid button, .remedy-grid button { min-height: 105px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; }
.return-methods button:hover, .return-methods button.selected, .basis-grid button:hover, .basis-grid button.selected, .remedy-grid button:hover, .remedy-grid button.selected { border-color: var(--gold); background: #fbf8ef; box-shadow: inset 0 0 0 1px var(--gold); }
.return-methods i { color: var(--gold-dark); font-size: 19px; font-style: normal; }
.return-methods b, .return-methods small { display: block; }
.return-methods b { font-size: 10px; }
.return-methods small { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.upload { width: 100%; min-height: 95px; display: grid; place-items: center; gap: 4px; margin-top: 13px; padding: 16px; border: 1px dashed #bdb8af; border-radius: 9px; background: #faf9f6; color: var(--gold-dark); font-size: 12px; font-weight: 800; }
.upload small { color: var(--muted); font-weight: 400; }
.order-snapshot { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.order-snapshot img { width: 180px; height: 180px; object-fit: cover; border-radius: 10px; }

.wizard { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 520px; }
.wizard > aside { padding: 20px 14px; border-right: 1px solid var(--line); background: #f7f6f3; }
.wizard > aside button { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: #7a8083; font-size: 10px; text-align: left; }
.wizard > aside button.active { background: #fff; color: var(--ink); font-weight: 800; }
.wizard > aside button.done { color: var(--green); }
.wizard > aside i { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #c8ccce; border-radius: 50%; font-size: 10px; font-style: normal; }
.wizard > aside button.active i { border-color: var(--gold); background: var(--gold); color: #fff; }
.wizard-main { min-width: 0; display: flex; flex-direction: column; }
.wizard-body { flex: 1; padding: 25px; }
.wizard-body > h2 { margin: 0 0 6px; font-size: 23px; }
.wizard-body > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.wizard-body > h3 { margin: 20px 0 10px; font-size: 12px; }
.wizard-actions { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 25px; border-top: 1px solid var(--line); background: #fff; }
.wizard-actions > span { color: var(--muted); font-size: 10px; }
.choice-list { display: grid; gap: 8px; }
.choice-list > button { min-height: 61px; display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; }
.choice-list > button.selected { border-color: var(--gold); background: #fbf8ef; box-shadow: inset 0 0 0 1px var(--gold); }
.choice-list > button > i { width: 16px; height: 16px; flex: 0 0 auto; border: 1px solid #b9bcbf; border-radius: 50%; }
.choice-list > button.selected > i { border: 5px solid var(--gold); }
.choice-list b, .choice-list small { display: block; }
.choice-list b { font-size: 10px; }
.choice-list small { margin-top: 3px; color: var(--muted); }
.basis-grid, .remedy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.basis-grid button { min-height: 115px; }
.basis-grid i, .remedy-grid i { color: var(--gold-dark); font-size: 18px; font-style: normal; }
.basis-grid b, .basis-grid small, .remedy-grid b { display: block; }
.basis-grid b, .remedy-grid b { font-size: 10px; }
.basis-grid small { color: var(--muted); }
.remedy-grid button { min-height: 78px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.chips button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 100px; background: #fff; font-size: 10px; }
.chips button.selected { border-color: var(--gold); background: #f5edd8; color: var(--gold-dark); font-weight: 800; }
.resize-inline { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: end; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 8px; background: #f7f6f3; }
.resize-inline > span { padding-bottom: 11px; text-align: center; }
.summary { text-align: center; }
.success { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: var(--green); color: #fff; font-size: 22px; }
.summary .summary-grid { text-align: left; }

.toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 48px)); padding: 13px 17px; border-radius: 8px; background: var(--ink); color: #fff; box-shadow: 0 15px 45px rgba(0, 0, 0, .24); font-size: 11px; }
.toast[hidden] { display: none; }

@media (max-width: 1180px) {
  .hero-card { grid-template-columns: minmax(0, 1.25fr) 150px minmax(190px, .65fr); padding: 29px; }
  .hero-product img { width: 110px; height: 110px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .attention-grid { grid-template-columns: 1fr; }
  .attention { min-height: auto; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .accessory-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: 15px 0 45px rgba(22, 27, 30, .18); }
  .sidebar.open { transform: translateX(0); }
  .nav-backdrop { position: fixed; z-index: 45; inset: 0; display: block; visibility: hidden; border: 0; background: rgba(20, 25, 28, .55); opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
  .nav-backdrop.visible { visibility: visible; opacity: 1; }
  .main-area { margin-left: 0; }
  .mobile-menu { display: grid; place-items: center; }
  .two-col, .two-col.wide, .service-workbench, .coupon-grid { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: minmax(0, 1fr) 150px; }
  .hero-card .progress { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px 0 0; border-top: 1px solid #495158; border-left: 0; }
  .progress p { min-height: 45px; }
  .progress p:not(:last-child)::after { display: none; }
  .protection-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter > section { border-right: 0; border-bottom: 1px solid var(--line); }
  .order-card { align-items: flex-start; flex-wrap: wrap; }
  .order-info { border-right: 0; padding-right: 0; }
  .order-actions { width: 100%; grid-template-columns: repeat(3, max-content); align-items: center; justify-content: end; }
}

@media (max-width: 640px) {
  .topbar { height: 62px; padding: 0 16px; }
  .safe-context { display: none; }
  .avatar div, .avatar em { display: none; }
  .bell { margin-left: auto; }
  main { padding: 24px 16px 50px; }
  footer { flex-direction: column; align-items: flex-start; padding: 18px 16px; }
  .page-title h1 { font-size: 27px; }
  .hero-card { grid-template-columns: 1fr; padding: 24px; }
  .hero-product { display: grid; grid-template-columns: 78px 1fr; align-items: center; column-gap: 12px; text-align: left; }
  .hero-product img { grid-row: 1 / 3; width: 78px; height: 78px; margin: 0; }
  .hero-card .progress { grid-template-columns: 1fr; }
  .progress p { min-height: 52px; }
  .progress p:not(:last-child)::after { display: block; }
  .quick-grid, .service-grid, .accessory-grid, .buyback-switch, .basis-grid, .remedy-grid, .profile-grid, .summary-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; }
  .toolbar select { width: 100%; }
  .order-card { display: grid; grid-template-columns: 74px 1fr; }
  .order-info { grid-column: 2; }
  .order-actions { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .rules > div { grid-template-columns: 1fr; }
  .dark-hero, .service-hero, .care-hero, .protection-hero, .coupon-hero, .coupon { align-items: flex-start; flex-direction: column; }
  .action-hero .btn { width: 100%; }
  .cart { width: 100%; flex-wrap: wrap; }
  .cart .btn { width: 100%; }
  .service-hero > div:last-child, .protection-hero > div:last-child { display: none; }
  .coupon-code { width: 100%; justify-content: space-between; }
  .newsletter > section, .newsletter > aside { padding: 23px; }
  .return-product { align-items: flex-start; flex-wrap: wrap; }
  .return-product .btn { width: 100%; }
  .modal-backdrop { padding: 0; place-items: end center; }
  .modal { width: 100%; max-height: 95vh; border-radius: 13px 13px 0 0; }
  .modal-head, .modal-body, .wizard-body { padding-left: 18px; padding-right: 18px; }
  .modal-actions { flex-wrap: wrap; padding: 13px 18px; }
  .modal-actions .btn { flex: 1; }
  .return-methods { grid-template-columns: 1fr; }
  .return-methods button { min-height: 76px; }
  .form-grid { grid-template-columns: 1fr; }
  .order-snapshot { grid-template-columns: 1fr; }
  .order-snapshot img { width: 100%; height: 210px; }
  .wizard { grid-template-columns: 1fr; }
  .wizard > aside { display: flex; gap: 4px; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .wizard > aside button { width: auto; min-width: 42px; min-height: 38px; justify-content: center; padding: 5px; font-size: 10px; }
  .wizard > aside button i { font-size: 10px; }
  .wizard-actions { padding: 12px 18px; }
  .resize-inline { grid-template-columns: 1fr; }
  .resize-inline > span { display: none; }
  .toast { right: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
}

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

/* Symfony application additions */
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(430px,100%);display:grid;gap:16px}.login-card .brand{padding:0;margin-bottom:12px}.login-card h1{margin:0;font:500 32px Georgia,serif}.login-card label,.modal-body label{display:grid;gap:6px;font-size:11px;font-weight:700}.login-card input,.modal-body input,.modal-body textarea,.modal-body select{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d9d6d0;border-radius:8px;background:#fff}.login-error{padding:10px 12px;border-radius:8px;background:#f9e7e5;color:#9d302b;font-size:11px}footer a{color:#666c6f;text-decoration:none}.notification-list{display:grid;gap:8px}.notification-row{padding:12px;border:1px solid var(--line);border-radius:8px}.notification-row b,.notification-row small{display:block}.notification-row small{margin-top:4px;color:var(--muted)}.api-error{color:var(--red)}

/* Panel administracyjny i tryb impersonacji */
.impersonation-bar { position: sticky; z-index: 100; top: 0; display:flex; justify-content:center; align-items:center; gap:12px; padding:9px 16px; background:#fff1c9; border-bottom:1px solid #d8bd6a; color:#5c4814; font-size:12px; }
.impersonation-bar a { font-weight:800; color:#5c4814; }
.logout-form { margin:0; }
.logout-form button { border:0; background:transparent; padding:0; color:inherit; cursor:pointer; font:inherit; }
.admin-body { background:#f5f4f1; }
.admin-shell { min-height:100vh; }
.admin-topbar { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 32px; border-bottom:1px solid var(--line); background:#fff; position:sticky; top:0; z-index:50; }
.admin-top-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:11px; }
.admin-top-actions form { margin:0; }
.admin-main { max-width:1500px; margin:0 auto; padding:30px 32px 70px; }
.admin-hero { display:flex; justify-content:space-between; gap:24px; align-items:center; padding:28px 30px; border-radius:14px; background:var(--ink); color:#fff; }
.admin-hero h1 { margin:5px 0 8px; font:500 32px/1.15 Georgia,serif; }
.admin-hero p { margin:0; color:#c4c9cc; }
.admin-role-card { min-width:220px; display:grid; gap:7px; padding:18px; border:1px solid #4a5257; border-radius:10px; background:#31383d; }
.admin-role-card span { font:700 10px/1.2 monospace; color:#e4c46e; }
.admin-section { margin-top:30px; }
.admin-feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.admin-feature-card { display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:14px; padding:18px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.admin-feature-card.off { opacity:.76; background:#faf9f7; }
.admin-feature-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:10px; background:#e4f3eb; color:var(--green); font-weight:900; }
.admin-feature-card.off .admin-feature-icon { background:#f7e8e6; color:var(--red); }
.admin-feature-card h3 { margin:0 0 4px; font-size:13px; }
.admin-feature-card p { margin:0 0 8px; color:var(--muted); font-size:10px; }
.admin-feature-card form { margin:0; }
.admin-table-wrap { overflow:auto; border:1px solid var(--line); border-radius:12px; background:#fff; }
.admin-table { width:100%; border-collapse:collapse; min-width:800px; }
.admin-table th,.admin-table td { padding:13px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; font-size:11px; }
.admin-table th { background:#f8f7f4; color:#6f7579; font-size:9px; letter-spacing:.8px; text-transform:uppercase; }
.admin-table td small { display:block; margin-top:3px; color:var(--muted); }
.admin-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.admin-actions form { display:flex; gap:6px; margin:0; }
.admin-actions select { min-height:41px; border:1px solid var(--line); border-radius:7px; background:#fff; padding:0 9px; font-size:11px; }
.admin-alert { margin-bottom:12px; padding:12px 14px; border-radius:8px; font-size:11px; font-weight:700; }
.admin-alert.success { background:#e4f3eb; color:#12653e; }
.admin-alert.error { background:#f9e7e5; color:#9d302b; }
@media (max-width: 900px) { .admin-feature-grid{grid-template-columns:1fr}.admin-topbar,.admin-hero{align-items:flex-start;flex-direction:column}.admin-main{padding:20px 16px 50px}.admin-topbar{padding:14px 16px}.admin-role-card{width:100%} }
.ui-icon { width:18px; height:18px; display:inline-block; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; vertical-align:-4px; }
.nav-icon .ui-icon { width:19px; height:19px; vertical-align:0; }
.store-link .ui-icon { margin-right:5px; }

.legal-main { width: 100%; max-width: 900px; margin: 0 auto; padding: 32px 20px; }
