:root {
  --ink: #17262d;
  --ink-soft: #39505a;
  --muted: #7f9097;
  --line: #e7ebe9;
  --canvas: #f5f7f6;
  --paper: #ffffff;
  --navy: #0c252d;
  --navy-2: #143842;
  --brand: #315b7d;
  --brand-soft: #eaf1f5;
  --sage: #7fa797;
  --sage-soft: #eaf3ef;
  --amber: #d29a5b;
  --amber-soft: #fbf2e6;
  --danger: #c85353;
  --shadow: 0 12px 36px rgba(18, 42, 47, .07);
}

html { background: var(--canvas); }
body { background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font-family: inherit; }
button { transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, opacity .18s ease; }
button:disabled { cursor: not-allowed; opacity: .48; }
.line-icon { display: block; flex: none; }

#app[data-native-loading="true"] { visibility: visible; }
.boot-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--ink); background: #f8faf9; }
.boot-mark { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: var(--navy); border-radius: 15px; font-weight: 800; }
.boot-copy { display: flex; flex-direction: column; gap: 3px; }
.boot-copy strong { font-size: 15px; }
.boot-copy span { color: var(--muted); font-size: 12px; }
.boot-spinner { width: 17px; height: 17px; margin-left: 10px; border: 2px solid #d9e1de; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { display: block; color: #99c5c0; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.dark { color: #6d8fa0; }
.btn { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 11px; font-size: 13px; font-weight: 700; }
.btn.primary { color: #fff; background: var(--navy); border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn.secondary { color: var(--ink-soft); background: #f1f4f3; border-color: #e8ecea; }
.btn.secondary:hover { color: var(--ink); background: #e9efec; }
.btn.light { color: var(--navy); background: #fff; border-color: rgba(255,255,255,.6); }
.btn.full { width: 100%; }
.btn.compact { min-height: 34px; padding: 7px 11px; }
.btn.link { min-height: 0; margin-left: 14px; padding: 4px 0; color: #52778a; background: transparent; border: 0; }
.btn.link.danger, .text-danger { color: var(--danger); }

.input, .select, .textarea { color: var(--ink); background: #fbfcfb; border: 1px solid #dfe5e2; border-radius: 10px; transition: border-color .18s, box-shadow .18s, background .18s; }
.input:focus, .select:focus, .textarea:focus { background: #fff; border-color: #7c9faf; box-shadow: 0 0 0 3px rgba(49,91,125,.1); }
.textarea { min-height: 88px; line-height: 1.65; }

/* Login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.2fr) minmax(440px, .8fr); padding: 0; background: #fff; }
.login-story { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: 54px 6vw; overflow: hidden; color: #fff; background: linear-gradient(100deg, rgba(5,21,27,.94), rgba(5,21,27,.52)), url('assets/admin-surface.jpg') center/cover no-repeat; }
.login-story::after { content: ''; position: absolute; right: -150px; bottom: -180px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.story-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .04em; }
.story-brand span, .login-mobile-brand span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--navy); background: #fff; border-radius: 13px; font-weight: 900; }
.story-copy { position: relative; z-index: 1; max-width: 610px; margin: auto 0; }
.story-copy h1 { margin: 18px 0; font-size: clamp(44px, 5vw, 70px); line-height: 1.13; letter-spacing: -.055em; }
.story-copy > p { max-width: 500px; color: rgba(255,255,255,.67); font-size: 17px; line-height: 1.8; }
.story-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
.story-points span { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.78); font-size: 13px; }
.story-foot { position: relative; z-index: 1; color: rgba(255,255,255,.34); font-size: 9px; letter-spacing: .24em; }
.login-side { min-height: 100vh; display: grid; place-items: center; padding: 48px 7vw; }
.login-card { width: min(410px, 100%); padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.login-mobile-brand { display: none; }
.login-card h2 { margin: 10px 0 8px; color: var(--ink); font-size: 30px; letter-spacing: -.035em; }
.login-card > p { margin: 0 0 31px; color: var(--muted); text-align: left; font-size: 14px; line-height: 1.7; }
.login-field { display: block; margin-top: 17px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.login-field span { display: block; margin-bottom: 8px; }
.login-field input { width: 100%; height: 50px; margin: 0; padding: 0 14px; background: #f8faf9; border: 1px solid #dfe5e2; border-radius: 11px; outline: 0; }
.login-field input:focus { background: #fff; border-color: #7c9faf; box-shadow: 0 0 0 3px rgba(49,91,125,.1); }
.login-button { width: 100%; height: 50px; margin-top: 24px; border-radius: 11px; }
.login-safe { display: block; margin-top: 16px; color: #a3afae; text-align: center; }

/* Shell */
.admin-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; min-height: 100vh; display: flex; flex-direction: column; padding: 0 14px 18px; color: #fff; background: var(--navy); box-shadow: 12px 0 36px rgba(8,31,37,.09); z-index: 20; }
.brand { height: 86px; display: flex; align-items: center; gap: 11px; padding: 0 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-icon { width: 39px; height: 39px; display: grid; place-items: center; color: var(--navy); background: #fff; border: 0; border-radius: 12px; font-size: 15px; font-weight: 900; }
.brand-title { color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.brand-subtitle { margin-top: 4px; color: rgba(255,255,255,.38); font-size: 10px; letter-spacing: .14em; }
.sidebar nav { flex: 1; }
.menu-title { padding: 25px 11px 9px; color: rgba(255,255,255,.3); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.menu-item { position: relative; width: 100%; height: 45px; display: flex; align-items: center; gap: 12px; margin: 4px 0; padding: 0 13px; color: rgba(255,255,255,.58); background: transparent; border: 0; border-radius: 10px; font-size: 13px; text-align: left; }
.menu-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.menu-item.active { color: #fff; background: rgba(154,201,194,.13); box-shadow: inset 3px 0 #9ac9c2; }
.menu-item > span { flex: 1; }
.menu-item > i { width: 5px; height: 5px; background: #a7d0ca; border-radius: 50%; }
.sidebar-foot { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.merchant-mini { display: flex; align-items: center; gap: 10px; margin: 0 5px 10px; padding: 10px; border-radius: 11px; background: rgba(255,255,255,.055); }
.merchant-mini > div { width: 32px; height: 32px; display: grid; place-items: center; color: var(--navy); background: #dce9e5; border-radius: 9px; font-size: 12px; font-weight: 800; }
.merchant-mini span { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.merchant-mini b { overflow: hidden; color: rgba(255,255,255,.84); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.merchant-mini small { margin-top: 2px; color: rgba(255,255,255,.32); font-size: 9px; }
.sidebar-foot > button { width: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 2px; color: rgba(255,255,255,.42); background: transparent; border: 0; font-size: 10px; }
.sidebar-foot > button:hover { color: #fff; }
.content { min-height: 100vh; margin-left: 252px; }
.header { position: relative; top: auto; height: 138px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; overflow: hidden; color: #fff; background: linear-gradient(100deg, #12333d, #1c4a55); box-shadow: 0 14px 34px rgba(12,37,45,.1); }
.header::after { content: ''; position: absolute; right: 7%; top: -145px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.018), 0 0 0 96px rgba(255,255,255,.012); }
.header-copy, .header-tools { position: relative; z-index: 1; }
.header-copy h1 { margin: 7px 0 5px; color: #fff; font-size: 27px; letter-spacing: -.03em; }
.header-copy p { margin: 0; color: rgba(255,255,255,.5); font-size: 12px; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.live-chip { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.58); font-size: 11px; }
.live-chip i, .status-dot::before { width: 6px; height: 6px; display: inline-block; background: #89c8a6; border-radius: 50%; box-shadow: 0 0 0 4px rgba(137,200,166,.12); }
.header-avatar { display: flex; align-items: center; gap: 8px; padding: 6px 9px 6px 6px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; }
.header-avatar > span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--navy); background: #fff; border-radius: 50%; font-size: 11px; font-weight: 800; }
.header-avatar b { max-width: 110px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.main-section { width: 100%; max-width: 1580px; margin: 0 auto; padding: 28px 32px 54px; }
.panel { background: #fff; border: 1px solid rgba(28,64,72,.07); border-radius: 16px; box-shadow: var(--shadow); }

.toast { position: fixed; top: 22px; right: 26px; z-index: 100; max-width: 430px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #285b48; background: #eff8f3; border: 1px solid #cfe8da; border-radius: 12px; box-shadow: 0 14px 38px rgba(20,48,54,.14); animation: toast-in .22s ease; }
.toast.error { color: #9d3f3f; background: #fff2f2; border-color: #f1cccc; }
.toast > span { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: #62a17f; border-radius: 50%; }
.toast.error > span { background: var(--danger); }
.toast b { font-size: 12px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* Dashboard */
.welcome-panel { position: relative; min-height: 174px; display: flex; align-items: center; justify-content: space-between; padding: 34px 38px; overflow: hidden; color: #fff; background: linear-gradient(100deg, rgba(10,32,39,.95), rgba(10,32,39,.55)), url('assets/admin-surface.jpg') center 58%/cover; border-radius: 18px; box-shadow: 0 17px 38px rgba(12,37,45,.13); }
.welcome-panel::after { content: ''; position: absolute; right: 15%; top: -90px; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.welcome-panel > * { position: relative; z-index: 1; }
.welcome-panel h2 { margin: 10px 0 6px; font-size: 24px; letter-spacing: -.03em; }
.welcome-panel p { margin: 0; color: rgba(255,255,255,.55); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.metric-card { position: relative; min-height: 145px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto auto; column-gap: 15px; align-items: center; padding: 22px; background: #fff; border: 1px solid rgba(28,64,72,.07); border-radius: 15px; box-shadow: 0 8px 26px rgba(18,42,47,.045); }
.metric-icon { grid-row: 1 / 4; width: 42px; height: 42px; display: grid; place-items: center; color: #4e7589; background: #eaf1f5; border-radius: 12px; font-style: normal; font-weight: 800; }
.metric-icon.amber { color: #a36f38; background: var(--amber-soft); }
.metric-icon.green { color: #558574; background: var(--sage-soft); }
.metric-icon.lilac { color: #776da1; background: #f0eef8; }
.metric-card > span { align-self: end; color: var(--muted); font-size: 11px; }
.metric-card > strong { color: var(--ink); font-size: 29px; letter-spacing: -.04em; }
.metric-card > strong em { margin-right: 2px; color: #829197; font-size: 13px; font-style: normal; }
.metric-card > small { align-self: start; color: #a0acb0; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); gap: 16px; margin-top: 16px; }
.dashboard-actions, .store-status { padding: 25px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.section-heading h3, .panel-toolbar h3, .settings-card h3, .preview-head h3, .version-heading h3 { margin: 6px 0 0; font-size: 17px; }
.action-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 19px; }
.action-cards button { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--ink); background: #f8faf9; border: 1px solid #edf0ef; border-radius: 12px; text-align: left; }
.action-cards button:hover { background: #f2f6f4; border-color: #dce6e2; transform: translateY(-1px); }
.action-cards button > i { width: 37px; height: 37px; display: grid; place-items: center; color: #557d77; background: #e7f0ed; border-radius: 10px; font-style: normal; }
.action-cards button > span { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.action-cards b { font-size: 12px; }
.action-cards small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.action-cards button > svg { color: #a9b4b4; }
.status-dot { display: flex; align-items: center; gap: 7px; padding: 5px 9px; color: #44745f; background: #edf7f1; border-radius: 99px; font-size: 10px; font-weight: 700; }
.store-version { display: flex; flex-direction: column; margin: 23px 0; padding: 18px; background: #f7f9f8; border-radius: 12px; }
.store-version > span { color: var(--muted); font-size: 10px; }
.store-version strong { margin: 6px 0 3px; font-size: 27px; }
.store-version small { color: #a2aead; font-size: 9px; }

/* Tables */
.table-panel { overflow: hidden; }
.panel-toolbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid #edf0ef; }
.panel-toolbar h3 { margin: 0; }
.panel-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.search-box { width: 230px; height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 11px; color: #94a2a6; background: #f8faf9; border: 1px solid #e1e6e4; border-radius: 10px; }
.search-box input { width: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 12px; }
.compact-select { width: 140px; min-height: 39px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { min-width: 760px; font-size: 12px; }
thead th { padding: 13px 18px; color: #718187; background: #fafbfb; border-color: #edf0ef; font-size: 10px; letter-spacing: .04em; }
td { padding: 15px 18px; border-color: #edf0ef; }
tr:hover td { background: #fbfcfc; }
.device-cell { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.device-cell img { width: 54px; height: 54px; object-fit: cover; background: #edf1ef; border: 1px solid #e2e7e5; border-radius: 11px; }
.device-cell .order-img { width: 43px; height: 43px; }
.device-cell span { min-width: 0; display: flex; flex-direction: column; }
.device-cell b { max-width: 270px; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.device-cell small, .block-muted, .unit { margin-top: 4px; color: #98a5a9; font-size: 10px; }
.block-muted { display: block; }
.price { color: #b66f42; font-size: 14px; }
.badge { padding: 5px 9px; font-size: 10px; }
.badge.green { color: #3e735d; background: #e8f3ed; }
.badge.orange { color: #9a662f; background: #faf0e3; }
.badge.blue { color: #4a7186; background: #e9f1f5; }
.badge.gray { color: #7c898e; background: #eef1f0; }
.stock-stepper { width: 112px; height: 34px; display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; overflow: hidden; background: #f8faf9; border: 1px solid #e2e7e5; border-radius: 9px; text-align: center; }
.stock-stepper button { height: 100%; display: grid; place-items: center; color: #647a82; background: transparent; border: 0; }
.stock-stepper button:hover { color: var(--ink); background: #eaf0ed; }
.stock-stepper b { font-size: 12px; }
.table-empty { padding: 42px; color: var(--muted); text-align: center; }

/* Shared forms and modal */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; color: #42565e; font-size: 12px; font-weight: 700; }
.field > small, .image-config-field > small { display: block; margin-top: 6px; color: #96a4a7; font-size: 9px; line-height: 1.6; }
.field .input, .field .select, .field .textarea { width: 100%; }
.two-fields, .three-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.three-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
.editor-note { margin-bottom: 17px; padding: 12px 14px; color: #64777e; background: #f1f6f4; border: 1px solid #e0ebe6; border-radius: 10px; font-size: 11px; line-height: 1.65; }
.image-config-row { display: flex; align-items: flex-start; gap: 13px; }
.image-config-preview { width: 104px; height: 78px; flex: none; display: grid; place-items: center; overflow: hidden; color: #9aa8aa; background: #f2f5f4; border: 1px solid #e2e7e5; border-radius: 11px; }
.image-config-preview.product-preview { width: 112px; height: 112px; }
.image-config-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-config-control { flex: 1; min-width: 0; }
.upload-button { width: fit-content; display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 11px; color: #496d7c; background: #edf3f5; border-radius: 9px; cursor: pointer; font-size: 10px; font-weight: 700; }
.upload-button:hover { background: #e4eef1; }
.upload-button input, .upload-drop input { display: none; }
.color-field { display: flex; gap: 8px; }
.color-field input[type=color] { width: 45px; height: 39px; padding: 4px; background: #fff; border: 1px solid #dfe5e2; border-radius: 9px; }
.visibility-field { display: flex; align-items: center; gap: 7px; margin: 0; color: #64767d; font-size: 10px; cursor: pointer; }
.visibility-field input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { position: relative; width: 30px; height: 17px; background: #cfd8d5; border-radius: 99px; transition: .18s; }
.toggle-ui::after { content: ''; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: .18s; }
.visibility-field input:checked + .toggle-ui { background: #6d9b8a; }
.visibility-field input:checked + .toggle-ui::after { transform: translateX(13px); }
.text-danger { padding: 0; background: transparent; border: 0; font-size: 10px; }
.modal-mask { padding: 24px; background: rgba(6,24,29,.68); backdrop-filter: blur(7px); }
.modal { width: 650px; border-radius: 18px; box-shadow: 0 34px 90px rgba(0,0,0,.26); }
.modal.small { width: 575px; }
.modal-header { padding: 19px 23px; border-color: #ebefed; }
.modal-header h2 { margin-top: 5px; font-size: 18px; }
.modal-body { padding: 22px 23px; }
.modal-footer { padding: 14px 23px; background: #fafbfb; border-color: #ebefed; }
.close-btn { width: 34px; height: 34px; display: grid; place-items: center; color: #718187; background: #f0f3f2; border-radius: 50%; font-size: 19px; }
.order-mini-card { border-color: #e6ebe8; background: #f8faf9; }
.order-mini-card > div { display: flex; flex-direction: column; gap: 4px; }
.order-mini-card small { color: var(--muted); font-size: 10px; }
.upload-drop { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 15px 0; padding: 18px; color: #587886; background: #f5f8f7; border: 1px dashed #c9d7d2; border-radius: 11px; cursor: pointer; }
.upload-drop > span { display: flex; flex-direction: column; }
.upload-drop b { color: #3e5b65; font-size: 11px; }
.upload-drop small { margin-top: 3px; color: #94a2a5; font-size: 9px; }
.photo-block > b { display: block; margin: 15px 0 8px; font-size: 11px; }
.photo-grid { margin: 0; }
.photo-grid img { height: 88px; border-color: #e1e6e4; }
.empty-photo-tip { border-color: #dbe3e0; background: #fafbfb; }

/* Contact and verification */
.settings-layout { display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: 20px; align-items: start; }
.settings-card { overflow: hidden; }
.settings-card-head { display: flex; align-items: center; gap: 14px; padding: 23px 25px; border-bottom: 1px solid #edf0ef; }
.setting-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #4d766f; background: var(--sage-soft); border-radius: 13px; }
.settings-card h3 { margin: 0; }
.settings-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.settings-body { padding: 24px 25px 8px; }
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 25px; background: #fafbfb; border-top: 1px solid #edf0ef; }
.settings-footer > span { color: var(--muted); font-size: 10px; }
.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; left: 12px; top: 11px; color: #819397; }
.input-with-icon input { width: 100%; height: 40px; padding: 0 13px 0 39px; color: var(--ink); background: #fbfcfb; border: 1px solid #dfe5e2; border-radius: 10px; outline: 0; }
.contact-qr-editor { display: grid; grid-template-columns: 126px 1fr; gap: 15px; }
.qr-preview { width: 126px; height: 126px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; overflow: hidden; color: #9ba8aa; background: #f5f7f6; border: 1px solid #e1e6e4; border-radius: 12px; }
.qr-preview img { width: 100%; height: 100%; object-fit: contain; }
.qr-preview small { font-size: 9px; }
.remove-qr { margin: 10px 0 0 10px; }
.contact-example { padding: 4px 0; }
.contact-example > h3 { margin: 6px 0 16px; font-size: 17px; }
.contact-phone { width: 330px; height: 610px; display: flex; align-items: flex-end; margin: 0 auto; padding: 18px; overflow: hidden; background: linear-gradient(rgba(230,236,234,.45),rgba(230,236,234,.8)), url('assets/admin-surface.jpg') center/cover; border: 9px solid #18333b; border-radius: 42px; box-shadow: 0 22px 54px rgba(13,38,45,.18); }
.contact-sheet { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 15px 18px 19px; background: #fff; border-radius: 21px; box-shadow: 0 -8px 30px rgba(20,45,50,.09); }
.contact-sheet > i { width: 38px; height: 4px; background: #d9dfdc; border-radius: 99px; }
.contact-brand { margin-top: 18px; color: #799096; font-size: 9px; }
.contact-sheet h4 { margin: 6px 0; font-size: 18px; }
.contact-sheet p { margin: 0 0 13px; color: #8a999d; font-size: 9px; }
.contact-sheet img, .mock-qr { width: 132px; height: 132px; object-fit: contain; border: 1px solid #e8ecea; border-radius: 10px; }
.mock-qr { display: grid; place-items: center; color: #9aacab; background: repeating-linear-gradient(45deg,#edf1ef,#edf1ef 4px,#fff 4px,#fff 8px); font-weight: 900; }
.contact-sheet > small { margin-top: 9px; color: #9aa7a9; font-size: 8px; }
.contact-sheet > button { width: 100%; height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; color: #fff; background: var(--navy); border: 0; border-radius: 10px; font-size: 10px; }
.verify-layout { display: grid; grid-template-columns: minmax(400px, .85fr) minmax(360px, 1.15fr); gap: 20px; }
.verify-card { padding: 38px; }
.verify-symbol { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 27px; color: #507b73; background: var(--sage-soft); border-radius: 18px; }
.verify-card h2 { margin: 8px 0; font-size: 25px; }
.verify-card > p { max-width: 500px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.verify-input { display: block; margin-top: 29px; }
.verify-input span { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.verify-input input { width: 100%; height: 55px; padding: 0 16px; color: var(--ink); background: #f8faf9; border: 1px solid #dbe3e0; border-radius: 12px; outline: 0; font-size: 17px; letter-spacing: .08em; }
.verify-input input:focus { background: #fff; border-color: #789b92; box-shadow: 0 0 0 3px rgba(83,129,116,.1); }
.verify-button { width: 100%; height: 48px; margin-top: 13px; }
.verify-note { margin-top: 17px; padding: 12px; color: #829195; background: #f6f8f7; border-radius: 9px; font-size: 9px; line-height: 1.6; }
.verify-result { min-height: 465px; display: grid; place-items: center; padding: 38px; color: #fff; background: linear-gradient(145deg,#102d36,#1b4a53); border-radius: 18px; box-shadow: 0 18px 45px rgba(13,39,46,.15); }
.result-placeholder { max-width: 300px; color: rgba(255,255,255,.38); text-align: center; }
.result-placeholder svg { margin: 0 auto 15px; }
.result-placeholder h3 { margin: 0 0 7px; color: rgba(255,255,255,.82); }
.result-placeholder p { margin: 0; font-size: 11px; line-height: 1.7; }
.verify-result.has-result { display: block; }
.result-check { width: 58px; height: 58px; display: grid; place-items: center; color: #315f4a; background: #dff2e7; border-radius: 50%; }
.verify-result.has-result > span { display: block; margin-top: 22px; color: #96c9bc; font-size: 10px; letter-spacing: .14em; }
.verify-result h3 { margin: 7px 0 25px; font-size: 23px; }
.verify-result dl { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.verify-result dl > div { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-top: 1px solid rgba(255,255,255,.08); }
.verify-result dl > div:first-child { border-top: 0; }
.verify-result dt { color: rgba(255,255,255,.42); font-size: 10px; }
.verify-result dd { margin: 0; font-size: 11px; }

/* Visual decoration */
.decoration-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; padding: 12px 14px 12px 17px; background: #fff; border: 1px solid rgba(28,64,72,.07); border-radius: 13px; box-shadow: 0 7px 24px rgba(18,42,47,.035); }
.decoration-status > div:first-child { display: flex; align-items: center; gap: 15px; color: #829095; font-size: 10px; }
.publish-actions { display: flex; gap: 8px; }
.publish-actions > input { width: 210px; padding: 0 11px; color: var(--ink); background: #f8faf9; border: 1px solid #e0e6e3; border-radius: 9px; outline: 0; font-size: 10px; }
.decoration-tabs { display: flex; gap: 4px; margin-bottom: 13px; padding: 5px; overflow-x: auto; background: #eaecea; border-radius: 12px; }
.decoration-tabs button { flex: 1; min-width: 86px; padding: 9px 12px; color: #718187; background: transparent; border: 0; border-radius: 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.decoration-tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 3px 10px rgba(20,45,50,.07); }
.decorator-grid { display: grid; grid-template-columns: minmax(620px,1fr) 420px; gap: 18px; align-items: start; }
.editor-panel { min-height: 720px; padding: 24px; }
.editor-section + .editor-section { margin-top: 18px; padding-top: 21px; border-top: 1px solid #edf0ef; }
.editor-section-heading { margin-bottom: 19px; }
.editor-section-heading h3 { margin: 0; font-size: 16px; }
.editor-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.module-editor-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 23px; }
.module-list { padding-right: 18px; border-right: 1px solid #edf0ef; }
.module-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--ink); font-size: 11px; font-weight: 800; }
.module-list-head small { color: #a2adaf; font-size: 8px; font-weight: 400; }
.module-row { margin-bottom: 8px; padding: 9px; background: #f8faf9; border: 1px solid transparent; border-radius: 11px; }
.module-row.selected { background: #eef4f2; border-color: #d9e7e2; }
.module-row.disabled { opacity: .56; }
.module-select { width: 100%; display: flex; align-items: center; gap: 9px; padding: 0; color: var(--ink); background: transparent; border: 0; text-align: left; }
.module-order { width: 28px; height: 28px; display: grid; place-items: center; color: #71878e; background: #fff; border: 1px solid #e4e9e7; border-radius: 8px; font-size: 8px; }
.module-select > span:last-child { display: flex; flex-direction: column; }
.module-select strong { font-size: 10px; }
.module-select small { margin-top: 2px; color: #8e9da1; font-size: 8px; }
.module-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 8px; padding-top: 7px; border-top: 1px solid #e7ecea; }
.module-actions > button { width: 25px; height: 24px; display: grid; place-items: center; color: #7a8c91; background: #fff; border: 1px solid #e1e7e4; border-radius: 6px; }
.mini-switch { position: relative; width: 29px; height: 16px; margin-left: 5px; cursor: pointer; }
.mini-switch input { position: absolute; opacity: 0; }
.mini-switch span { position: absolute; inset: 0; background: #cfd8d5; border-radius: 99px; }
.mini-switch span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; background: #fff; border-radius: 50%; transition: .18s; }
.mini-switch input:checked + span { background: #709c8c; }
.mini-switch input:checked + span::after { transform: translateX(13px); }
.category-list { display: grid; gap: 11px; margin-top: 8px; }
.category-editor { padding: 15px; background: #fafbfb; border: 1px solid #e8ecea; border-radius: 12px; }
.category-editor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.category-editor-head > strong { font-size: 11px; }
.category-editor-head > div { display: flex; align-items: center; gap: 10px; }
.wide-dashed { width: 100%; margin-top: 12px; border: 1px dashed #cbd8d3; }
.preview-column { position: sticky; top: 20px; padding-bottom: 8px; }
.preview-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 11px; padding: 0 7px; }
.preview-head h3 { font-size: 15px; }
.preview-head > span { color: #95a2a5; font-size: 9px; }
.preview-tip { margin: 12px auto 0; color: #929fa2; font-size: 9px; text-align: center; }
.phone-shell { position: relative; width: 375px; height: 720px; margin: 0 auto; padding: 13px 9px 10px; overflow: hidden; color: #1b2c32; background: #111d21; border: 2px solid #263b42; border-radius: 45px; box-shadow: 0 25px 52px rgba(16,43,49,.2); }
.phone-notch { position: absolute; left: 50%; top: 10px; z-index: 4; width: 106px; height: 23px; background: #111d21; border-radius: 0 0 16px 16px; transform: translateX(-50%); }
.phone-status { position: absolute; left: 26px; right: 26px; top: 17px; z-index: 5; display: flex; justify-content: space-between; color: #25363b; font-size: 8px; font-weight: 700; }
.phone-page { position: relative; height: 100%; padding: 30px 10px 65px; overflow: hidden; border-radius: 35px; }
.phone-nav { height: 34px; display: flex; align-items: center; justify-content: center; margin: -3px -10px 9px; color: #24363c; background: rgba(255,255,255,.92); font-size: 11px; font-weight: 800; }
.phone-hero { min-height: 150px; padding: 22px 17px; color: #fff; background-position: center; background-size: cover; border-radius: 17px; }
.phone-hero > small { color: rgba(255,255,255,.65); font-size: 7px; letter-spacing: .14em; }
.phone-hero h2 { max-width: 190px; margin: 8px 0 5px; font-size: 21px; line-height: 1.2; }
.phone-hero p { max-width: 205px; margin: 0; color: rgba(255,255,255,.67); font-size: 8px; line-height: 1.55; }
.phone-hero > div { display: flex; gap: 5px; margin-top: 14px; }
.phone-hero > div span { padding: 4px 7px; color: rgba(255,255,255,.8); background: rgba(255,255,255,.12); border-radius: 99px; font-size: 6px; }
.phone-search { margin: 9px 0; padding: 10px 12px; color: #8c9a9e; background: #fff; border: 1px solid #edf0ef; border-radius: 11px; font-size: 8px; }
.phone-section { margin-top: 11px; }
.phone-section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 8px; }
.phone-section-title > span { display: flex; flex-direction: column; }
.phone-section-title small { color: #7894a0; font-size: 6px; letter-spacing: .12em; }
.phone-section-title b { margin-top: 2px; font-size: 12px; }
.phone-section-title em { color: #92a0a3; font-size: 7px; font-style: normal; }
.phone-categories { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.phone-categories > div { overflow: hidden; background: #fff; border-radius: 10px; }
.phone-categories img { width: 100%; height: 54px; display: block; object-fit: cover; }
.phone-categories b, .phone-categories small { display: block; padding: 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-categories b { margin-top: 5px; font-size: 7px; }
.phone-categories small { margin: 2px 0 6px; color: #9aa6a8; font-size: 5px; }
.phone-products { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.phone-products > div { position: relative; overflow: hidden; padding-bottom: 8px; background: #fff; border-radius: 11px; }
.phone-products img { width: 100%; height: 82px; display: block; object-fit: cover; }
.phone-products b, .phone-products span { display: block; padding: 0 8px; }
.phone-products b { margin-top: 7px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.phone-products span { margin-top: 4px; font-size: 11px; font-weight: 800; }
.phone-products span small { font-size: 6px; }
.phone-products em { position: absolute; right: 6px; bottom: 8px; color: #87a59a; font-size: 5px; font-style: normal; }
.phone-profile-card { min-height: 143px; display: flex; align-items: center; gap: 12px; padding: 18px; color: #fff; background-position: center; background-size: cover; border-radius: 17px; }
.phone-avatar { width: 48px; height: 48px; display: grid; place-items: center; flex: none; color: #4e6a73; background: #eaf0ee; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; font-weight: 800; }
.phone-profile-card h3 { margin: 0; font-size: 13px; }
.phone-profile-card p { max-width: 205px; margin: 5px 0 9px; color: rgba(255,255,255,.62); font-size: 7px; line-height: 1.5; }
.phone-profile-card button { padding: 5px 9px; color: #17323a; background: #fff; border: 0; border-radius: 7px; font-size: 6px; }
.phone-list-card { margin-top: 9px; overflow: hidden; background: #fff; border-radius: 13px; }
.phone-list-heading { display: flex; justify-content: space-between; padding: 12px; border-bottom: 1px solid #edf0ef; }
.phone-list-heading span, .phone-service-list span, .phone-profile-line span { display: flex; flex-direction: column; }
.phone-list-heading b, .phone-service-list b, .phone-profile-line b { font-size: 9px; }
.phone-list-heading small, .phone-service-list small, .phone-profile-line small { margin-top: 3px; color: #99a5a8; font-size: 6px; }
.phone-list-heading em, .phone-service-list em, .phone-profile-line em { color: #8e9da1; font-size: 7px; font-style: normal; }
.phone-order-stats { display: grid; grid-template-columns: repeat(3,1fr); padding: 13px; }
.phone-order-stats span { display: flex; flex-direction: column; align-items: center; gap: 4px; border-left: 1px solid #edf0ef; }
.phone-order-stats span:first-child { border: 0; }
.phone-order-stats b { font-size: 12px; }.phone-order-stats small { color: #8f9da0; font-size: 6px; }
.phone-block-title { margin: 13px 3px 6px; font-size: 10px; }
.phone-service-list > div { display: flex; align-items: center; gap: 9px; padding: 11px; border-top: 1px solid #edf0ef; }
.phone-service-list > div:first-child { border: 0; }
.phone-service-list i { width: 26px; height: 26px; display: grid; place-items: center; color: #62877d; background: #edf5f1; border-radius: 8px; font-size: 7px; font-style: normal; }
.phone-service-list span { flex: 1; }
.phone-login-hero { height: 270px; display: flex; align-items: flex-end; padding: 22px; color: #fff; background-position: center; background-size: cover; border-radius: 16px; }
.phone-login-hero h2 { margin: 0 0 6px; font-size: 22px; }.phone-login-hero p { margin: 0; color: rgba(255,255,255,.7); font-size: 8px; }
.phone-login-card { margin-top: 10px; padding: 19px; background: #fff; border-radius: 15px; }
.phone-login-card > small { color: #7392a0; font-size: 6px; }.phone-login-card h3 { margin: 5px 0; font-size: 15px; }.phone-login-card p { margin: 0; color: #87969a; font-size: 8px; line-height: 1.6; }.phone-login-card button, .phone-empty button { width: 100%; margin-top: 16px; padding: 10px; color: #fff; background: var(--navy); border: 0; border-radius: 9px; font-size: 8px; }
.phone-detail-image { height: 220px; display: grid; place-items: center; color: #819296; background: linear-gradient(140deg,#e6edeb,#cbd9d5); border-radius: 16px; font-size: 11px; }
.phone-detail-card { margin-top: 9px; padding: 17px; background: #fff; border-radius: 14px; }.phone-detail-card h2 { margin: 9px 0 5px; font-size: 18px; }.phone-detail-card > p { margin: 0 0 15px; color: #71858c; font-size: 8px; }.phone-pill { padding: 4px 7px; color: #4c766b; background: #e7f1ed; border-radius: 99px; font-size: 6px; }.phone-rule { display: flex; flex-direction: column; padding: 11px 0; border-top: 1px solid #edf0ef; }.phone-rule small { color: #7894a0; font-size: 6px; letter-spacing: .1em; }.phone-rule b { margin-top: 3px; font-size: 10px; }
.phone-title-area { padding: 15px 5px 11px; }.phone-title-area small { color: #7693a0; font-size: 6px; letter-spacing: .13em; }.phone-title-area h2 { margin: 4px 0 0; font-size: 20px; }.phone-tabs { display: flex; justify-content: space-between; padding: 11px; background: #fff; border-radius: 10px; font-size: 7px; }.phone-tabs b { color: #466e80; }.phone-empty { display: flex; flex-direction: column; align-items: center; margin-top: 10px; padding: 47px 32px; background: #fff; border-radius: 14px; text-align: center; }.phone-empty > div { width: 51px; height: 51px; display: grid; place-items: center; color: #779298; background: #eef3f1; border-radius: 50%; }.phone-empty h3 { margin: 13px 0 5px; font-size: 13px; }.phone-empty p { margin: 0; color: #8d9a9e; font-size: 7px; line-height: 1.5; }.phone-empty button { width: 130px; }
.phone-welcome { padding: 15px; color: #fff; background: linear-gradient(120deg,#254d5a,#3d7180); border-radius: 13px; }.phone-welcome h3 { margin: 0 0 5px; font-size: 13px; }.phone-welcome p { margin: 0; color: rgba(255,255,255,.63); font-size: 7px; }.phone-profile-line { display: flex; align-items: center; justify-content: space-between; padding: 14px; }
.phone-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 53px; display: flex; justify-content: space-around; padding-top: 8px; background: rgba(255,255,255,.96); border-top: 1px solid #e9eeeb; }
.phone-bottom > span { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #94a0a3; font-size: 10px; }.phone-bottom small { font-size: 6px; }.phone-bottom .active { color: #476f80; }
.version-panel { margin-top: 18px; padding: 22px 24px; background: #fff; border: 1px solid rgba(28,64,72,.07); border-radius: 16px; box-shadow: var(--shadow); }
.version-heading { display: flex; justify-content: space-between; align-items: center; }.version-heading h3 { margin: 0; }.version-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }.version-heading > span { color: #829095; font-size: 10px; }
.version-list { margin-top: 15px; }.version-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid #edf0ef; }.version-row:first-child { border-top: 0; }.version-dot { width: 34px; height: 34px; display: grid; place-items: center; color: #54766f; background: #edf4f1; border-radius: 9px; font-size: 8px; font-weight: 800; }.version-row > div:nth-child(2) { display: flex; flex-direction: column; }.version-row b { font-size: 11px; }.version-row small { margin-top: 3px; color: #97a4a6; font-size: 9px; }.history-empty { padding: 20px; color: #94a1a4; background: #f8faf9; border-radius: 10px; text-align: center; font-size: 10px; }
.content-loader { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 11px; }.content-loader i { width: 22px; height: 22px; border: 2px solid #dbe3e0; border-top-color: #557d77; border-radius: 50%; animation: spin .8s linear infinite; }

@media (max-width: 1280px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .decorator-grid { grid-template-columns: minmax(560px,1fr) 360px; }
  .phone-shell { transform: scale(.88); transform-origin: top center; margin-bottom: -86px; }
  .settings-layout { grid-template-columns: minmax(0,1fr) 350px; }
}

@media (max-width: 1050px) {
  .sidebar { width: 218px; }.content { margin-left: 218px; }
  .brand-title { font-size: 12px; }
  .dashboard-grid, .settings-layout, .verify-layout, .decorator-grid { grid-template-columns: 1fr; }
  .preview-column { position: static; }
  .phone-shell { transform: none; margin-bottom: 0; }
  .contact-example { display: none; }
  .editor-panel { min-height: 0; }
}

@media (max-width: 760px) {
  .login-page { display: block; background: #f5f7f6; }.login-story { display: none; }.login-side { padding: 28px; }.login-card { padding: 30px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }.login-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }.login-mobile-brand span { color: #fff; background: var(--navy); }
  .sidebar { position: static; width: 100%; min-height: auto; padding-bottom: 10px; }.sidebar nav { display: flex; gap: 5px; overflow-x: auto; }.menu-title, .sidebar-foot { display: none; }.menu-item { min-width: max-content; padding: 0 13px; }.content { margin-left: 0; }.header { height: 112px; padding: 0 20px; }.header-tools { display: none; }.main-section { padding: 18px 14px 40px; }
  .welcome-panel { min-height: 200px; align-items: flex-start; flex-direction: column; padding: 27px; }.metric-grid { grid-template-columns: 1fr 1fr; }.metric-card { grid-template-columns: 35px 1fr; min-height: 118px; padding: 16px; }.metric-icon { width: 35px; height: 35px; }.action-cards, .two-fields, .three-fields, .module-editor-layout { grid-template-columns: 1fr; }.module-list { padding: 0 0 15px; border: 0; border-bottom: 1px solid #edf0ef; }
  .panel-toolbar, .decoration-status { align-items: flex-start; flex-direction: column; }.toolbar-actions, .publish-actions { width: 100%; flex-wrap: wrap; }.search-box, .publish-actions > input { flex: 1; min-width: 170px; }.decoration-status > div:first-child { flex-wrap: wrap; }.editor-panel { padding: 17px; }.phone-shell { width: 340px; height: 690px; }.version-row { grid-template-columns: 38px 1fr; }.version-row .btn { grid-column: 2; justify-self: start; margin-left: 0; }
}

@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }.phone-shell { width: 310px; height: 650px; }.login-side { padding: 18px; }.login-card { padding: 24px; }.brand { height: 72px; }.header-copy h1 { font-size: 23px; }.settings-body, .settings-card-head, .settings-footer { padding-left: 17px; padding-right: 17px; }.contact-qr-editor { grid-template-columns: 96px 1fr; }.qr-preview { width: 96px; height: 96px; }
}
