/* ====================================================
   SOAVELA JEWELRY SHOP — Premium Dark Gold Theme v2
   ==================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --gold:        #c9a84c;
  --gold-light:  #e8c96e;
  --gold-dark:   #9a7a2e;
  --gold-pale:   rgba(201,168,76,.08);
  --bg:          #090806;
  --bg2:         #100e0a;
  --bg3:         #161309;
  --panel:       #181410;
  --panel2:      #1e1a12;
  --border:      rgba(201,168,76,.18);
  --border2:     rgba(255,255,255,.06);
  --border3:     rgba(201,168,76,.30);
  --text:        #ede5d4;
  --text2:       #c8bcaa;
  --muted:       rgba(232,224,208,.42);
  --red:         #e05252;
  --green:       #52c08a;
  --blue:        #5299e0;
  --shadow-gold: 0 8px 32px rgba(201,168,76,.12);
  --shadow-deep: 0 20px 60px rgba(0,0,0,.6);
  --radius:      10px;
  --radius-lg:   16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: .88rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,.5); }

/* ── TOP BAR ── */
.top-bar {
  background: linear-gradient(90deg, #060504, #0d0b07, #060504);
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}
.top-bar-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.top-links { display: flex; align-items: center; gap: 2px; }
.top-link {
  font-size: .72rem; letter-spacing: 1.8px;
  color: var(--muted); padding: 3px 8px;
  transition: color .2s; text-transform: uppercase;
}
.top-link:hover { color: var(--gold); }
.sep { color: var(--border); font-size: .65rem; padding: 0 2px; }
.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000; width: 17px; height: 17px; border-radius: 50%;
  font-size: .63rem; font-weight: 800; margin-left: 3px;
}
.top-phone { font-size: .72rem; color: var(--muted); letter-spacing: .5px; }
.top-phone strong { color: var(--gold); font-weight: 600; }

/* ── LOGO BAR ── */
.logo-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  position: relative;
  overflow: hidden;
}
.logo-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(201,168,76,.04), transparent);
  pointer-events: none;
}
.logo-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.logo-link { display: flex; flex-direction: column; gap: 2px; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem; font-weight: 700;
  background: linear-gradient(90deg, #a07828, var(--gold-light), var(--gold), var(--gold-light), #a07828);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: 8px;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.logo-sub { font-size: .68rem; letter-spacing: 4px; color: var(--muted); text-transform: uppercase; }

.gold-ticker {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(201,168,76,.06), rgba(201,168,76,.12));
  border: 1px solid var(--border3);
  border-radius: 12px; padding: 12px 24px;
  box-shadow: var(--shadow-gold);
  position: relative; overflow: hidden;
}
.gold-ticker::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ticker-label { font-size: .68rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.ticker-price {
  font-size: 1.5rem; font-weight: 700; color: var(--gold-light);
  font-family: 'Playfair Display', serif; letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(201,168,76,.4);
}
.ticker-unit { font-size: .78rem; color: var(--muted); }
.ticker-divider { width: 1px; height: 28px; background: var(--border); }

/* ── CATEGORY NAV ── */
.cat-nav {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.cat-nav-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 0; overflow-x: auto;
}
.cat-nav-inner::-webkit-scrollbar { height: 2px; }
.cat-link {
  display: flex; align-items: center; gap: 6px;
  padding: 15px 20px;
  font-size: .8rem; font-weight: 500; letter-spacing: .8px;
  color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
  text-transform: uppercase;
}
.cat-link:hover { color: var(--text2); border-bottom-color: rgba(201,168,76,.4); }
.cat-link.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── LAYOUT ── */
.main-wrap {
  max-width: 1440px; margin: 0 auto; padding: 28px;
  display: flex; gap: 28px; min-height: calc(100vh - 320px);
}

/* ── SIDEBAR ── */
.sidebar { width: 230px; min-width: 230px; }
.sidebar-section { margin-bottom: 8px; }
.sidebar-head {
  background: linear-gradient(135deg, var(--panel), var(--panel2));
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  padding: 11px 18px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: 2.5px; color: var(--gold);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-head::before {
  content: ''; width: 3px; height: 14px;
  background: linear-gradient(var(--gold), var(--gold-dark));
  border-radius: 2px; flex-shrink: 0;
}
.sidebar-menu {
  list-style: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.sidebar-menu li a {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font-size: .82rem; color: var(--muted);
  border-bottom: 1px solid var(--border2);
  transition: background .15s, color .15s, padding-left .15s;
}
.sidebar-menu li:last-child a { border-bottom: none; }
.sidebar-menu li a:hover {
  background: rgba(201,168,76,.05);
  color: var(--text2);
  padding-left: 22px;
}
.sidebar-menu li a.active {
  color: var(--gold); background: rgba(201,168,76,.08);
  font-weight: 600; padding-left: 22px;
  border-left: 3px solid var(--gold);
}

/* ── CONTENT ── */
.content-area { flex: 1; min-width: 0; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 0 20px;
  font-size: .75rem; color: var(--muted);
}
.bc-sep { color: var(--border); font-size: .7rem; }
.bc-link { color: var(--muted); transition: color .2s; }
.bc-link:hover { color: var(--gold); }
.bc-current { color: var(--text2); font-weight: 500; }

/* ── PAGE HEADER ── */
.page-hd {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px; flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border2);
}
.page-hd h2 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--text); letter-spacing: .5px;
  font-family: 'Playfair Display', serif;
}
.page-hd-right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── GOLD PRICE BANNER ── */
.gold-banner {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, rgba(201,168,76,.06), rgba(201,168,76,.1));
  border: 1px solid var(--border3);
  border-radius: 12px; padding: 16px 24px;
  margin-bottom: 22px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-gold);
}
.gold-banner::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-banner-price { font-size: 1.4rem; font-weight: 700; color: var(--gold-light); font-family: 'Playfair Display', serif; }
.gold-banner-label { font-size: .75rem; color: var(--muted); letter-spacing: .5px; }

/* ── SEARCH BAR ── */
.search-bar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.search-bar input, .search-bar select {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text); padding: 9px 14px;
  font-size: .84rem; font-family: inherit;
  outline: none; transition: border .2s, box-shadow .2s;
}
.search-bar input:focus, .search-bar select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.1);
}
.search-bar input { flex: 1; min-width: 200px; }
.search-bar select option { background: #181410; color: var(--text); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 8px; border: none;
  cursor: pointer; font-size: .82rem; font-weight: 600;
  font-family: inherit; letter-spacing: .3px;
  transition: all .2s; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,.06), transparent);
  opacity: 0; transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #1a1000; font-weight: 700;
  box-shadow: 0 2px 12px rgba(201,168,76,.3);
}
.btn-gold:hover { box-shadow: 0 6px 24px rgba(201,168,76,.4); }
.btn-outline {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); backdrop-filter: blur(4px);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.05); }
.btn-red     { background: rgba(224,82,82,.15); border: 1px solid rgba(224,82,82,.35); color: var(--red); }
.btn-red:hover { background: rgba(224,82,82,.25); }
.btn-green   { background: rgba(82,192,138,.15); border: 1px solid rgba(82,192,138,.35); color: var(--green); }
.btn-green:hover { background: rgba(82,192,138,.25); }
.btn-blue    { background: rgba(82,153,224,.15); border: 1px solid rgba(82,153,224,.35); color: var(--blue); }
.btn-blue:hover { background: rgba(82,153,224,.25); }
.btn-sm      { padding: 6px 14px; font-size: .76rem; border-radius: 6px; }
.btn-xs      { padding: 4px 10px; font-size: .72rem; border-radius: 5px; }

/* ── COUNT BAR ── */
.count-bar {
  font-size: .82rem; color: var(--muted);
  margin-bottom: 14px; padding: 0 4px;
  display: flex; align-items: center; gap: 8px;
}
.count-bar strong { color: var(--gold-light); font-size: .9rem; }

/* ── TABLE ── */
.tbl-wrap {
  overflow-x: auto; border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
table { width: 100%; border-collapse: collapse; font-size: .79rem; white-space: nowrap; }
thead th {
  background: linear-gradient(180deg, rgba(201,168,76,.1), rgba(201,168,76,.05));
  border-bottom: 1px solid var(--border);
  padding: 12px 13px;
  text-align: left; font-weight: 600;
  letter-spacing: .8px; color: var(--gold);
  font-size: .72rem; text-transform: uppercase;
  position: sticky; top: 0;
}
tbody td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border2);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: rgba(201,168,76,.05); }

/* Image thumbnail */
.img-thumb {
  width: 52px; height: 52px;
  object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer; transition: all .2s;
  display: block;
}
.img-thumb:hover {
  transform: scale(1.08);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201,168,76,.25);
}
.no-img {
  width: 52px; height: 52px;
  background: var(--bg3);
  border: 1px dashed var(--border2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .6rem; flex-direction: column; gap: 2px;
}
.no-img-icon { font-size: 1.1rem; opacity: .4; }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 5px;
  font-size: .69rem; font-weight: 700; letter-spacing: .5px;
}
.badge-24k { background: rgba(201,168,76,.15); color: var(--gold-light); border: 1px solid rgba(201,168,76,.3); }
.badge-18k { background: rgba(255,200,100,.12); color: #ffc864; border: 1px solid rgba(255,200,100,.25); }
.badge-14k { background: rgba(200,155,90,.12); color: #c89b5a; border: 1px solid rgba(200,155,90,.22); }
.badge-10k { background: rgba(170,130,80,.1); color: #aa8250; border: 1px solid rgba(170,130,80,.2); }
.badge-on  { background: rgba(82,192,138,.1); color: var(--green); border: 1px solid rgba(82,192,138,.25); }
.badge-off { background: rgba(224,82,82,.1); color: var(--red); border: 1px solid rgba(224,82,82,.22); }

.price-vat { font-size: .63rem; color: var(--gold); margin-left: 3px; opacity: .8; }
.code-col   { font-family: 'Courier New', monospace; font-size: .79rem; color: var(--gold-light); font-weight: 600; }
.barcode-col { font-family: 'Courier New', monospace; font-size: .73rem; color: var(--muted); }

/* ── PAGINATION ── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; margin-top: 24px; padding: 10px 0;
}
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--panel); border: 1px solid var(--border2);
  border-radius: 8px; color: var(--muted);
  font-size: .82rem; cursor: pointer; text-decoration: none;
  transition: all .18s; font-weight: 500;
}
.pg-btn:hover {
  background: rgba(201,168,76,.12);
  border-color: var(--border);
  color: var(--gold-light);
  transform: translateY(-1px);
}
.pg-btn.active {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-color: var(--gold);
  color: #1a1000; font-weight: 700;
}

/* ── TOOLBAR ── */
.toolbar-bottom {
  display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--border2);
}

/* ── FORM ── */
.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 36px;
  max-width: 980px;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  position: relative; overflow: hidden;
}
.form-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}
.form-section-title {
  font-size: .7rem; font-weight: 700; letter-spacing: 2.5px;
  color: var(--gold); text-transform: uppercase;
  margin: 24px 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.form-section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px 20px; }
.form-full { grid-column: 1 / -1; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label {
  font-size: .72rem; font-weight: 600;
  letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase;
  display: flex; align-items: center; gap: 4px;
}
.form-row label .req { color: var(--red); font-size: .85rem; }
.form-row input, .form-row select, .form-row textarea {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text); padding: 10px 14px;
  font-size: .87rem; font-family: inherit;
  outline: none; transition: border .2s, box-shadow .2s, background .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,.04);
  box-shadow: 0 0 0 3px rgba(201,168,76,.08);
}
.form-row select option { background: #181410; color: var(--text); }
.form-row textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: .72rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.calc-field {
  background: rgba(201,168,76,.06) !important;
  color: var(--gold-light) !important;
  font-weight: 700 !important;
  border-color: rgba(201,168,76,.2) !important;
}
.readonly-field {
  opacity: .7; cursor: not-allowed;
}

/* Image upload box */
.img-upload-box {
  width: 180px; min-width: 180px;
  background: var(--bg3);
  border: 2px dashed var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s;
  position: relative;
}
.img-upload-box:hover { border-color: var(--gold); }
.img-preview-wrap {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3);
  position: relative; overflow: hidden;
}
.img-preview-wrap img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); padding: 20px;
}
.img-placeholder .icon { font-size: 2.5rem; opacity: .4; }
.img-placeholder span { font-size: .73rem; text-align: center; line-height: 1.5; }
.img-upload-actions {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.img-upload-actions .btn { width: 100%; justify-content: center; font-size: .75rem; padding: 7px 10px; }
/* URL upload section */
.img-url-row {
  padding: 0 12px 10px;
  display: flex; gap: 6px;
}
.img-url-row input {
  flex: 1; background: rgba(255,255,255,.04);
  border: 1px solid var(--border2); border-radius: 6px;
  color: var(--text); padding: 6px 10px;
  font-size: .74rem; font-family: inherit; outline: none;
}
.img-url-row input:focus { border-color: var(--gold); }
.img-url-row button { padding: 6px 10px; font-size: .72rem; }

/* ── MODAL ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8); z-index: 200;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.overlay.open { display: flex; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 36px;
  width: 620px; max-width: 96vw; max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-deep);
  position: relative;
}
.modal::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.modal-hd h3 { font-size: 1.05rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.modal-close {
  background: rgba(255,255,255,.06); border: 1px solid var(--border2);
  color: var(--muted); font-size: 1.2rem; width: 34px; height: 34px;
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { background: rgba(224,82,82,.15); color: var(--red); border-color: rgba(224,82,82,.3); }
.modal-ft {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border2);
}

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 32px; right: 32px;
  z-index: 999; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast-item {
  padding: 14px 22px; border-radius: 12px;
  font-size: .84rem; font-weight: 500;
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: auto; min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.toast-ok  {
  background: rgba(82,192,138,.15);
  border: 1px solid rgba(82,192,138,.35);
  color: var(--green);
}
.toast-err {
  background: rgba(224,82,82,.15);
  border: 1px solid rgba(224,82,82,.35);
  color: var(--red);
}
@keyframes toastIn {
  from { transform: translateX(60px) scale(.9); opacity: 0; }
  to   { transform: translateX(0) scale(1); opacity: 1; }
}

/* ── IMAGE LIGHTBOX ── */
.img-modal-wrap {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.94); z-index: 300;
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}
.img-modal-wrap.open { display: flex; }
.img-modal-wrap img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,.8);
  border: 1px solid var(--border);
  animation: imgZoom .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes imgZoom { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.img-modal-close-hint {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: .75rem; color: var(--muted); letter-spacing: 2px;
  text-transform: uppercase; opacity: .7;
}

/* ── LOGIN PAGE ── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,.06), transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(100,60,10,.1), transparent 50%),
              linear-gradient(135deg, #060504, #100e0a, #060504);
}
.login-card {
  width: 420px; padding: 52px 44px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-deep);
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}
.login-logo { text-align: center; margin-bottom: 40px; }
.login-logo h1 {
  font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: 5px;
}
.login-logo p { font-size: .7rem; letter-spacing: 4px; color: var(--muted); margin-top: 8px; }
.login-logo .logo-divider {
  width: 40px; height: 1px; background: var(--border); margin: 14px auto 0;
}
.login-error {
  background: rgba(224,82,82,.12); border: 1px solid rgba(224,82,82,.28);
  color: var(--red); border-radius: 10px;
  padding: 12px 16px; font-size: .82rem;
  margin-bottom: 18px; text-align: center;
}

/* ── HOME / SHOP CARDS ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px; margin-top: 22px;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 16px; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer; display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(201,168,76,.18);
  border-color: rgba(201,168,76,.4);
}
.product-card-img {
  width: 100%; aspect-ratio: 1;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5));
  opacity: 0; transition: opacity .25s;
}
.product-card:hover .product-card-img::after { opacity: 1; }
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.07); }
.product-card-img .no-img-big {
  font-size: 3rem; color: var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.product-card-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card-code { font-size: .71rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.product-card-name { font-size: .9rem; font-weight: 600; color: var(--text); letter-spacing: .3px; }
.product-card-price { font-size: 1.05rem; font-weight: 700; color: var(--gold-light); margin-top: auto; }

/* Stats cards (home) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px; margin-bottom: 28px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(var(--gold), var(--gold-dark));
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.stat-icon { font-size: 2rem; opacity: .7; }
.stat-info { display: flex; flex-direction: column; gap: 3px; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: var(--gold-light); font-family: 'Playfair Display', serif; }
.stat-label { font-size: .72rem; color: var(--muted); letter-spacing: .5px; }

/* ── ALERT / NOTICE BOXES ── */
.alert-ok {
  background: rgba(82,192,138,.08); border: 1px solid rgba(82,192,138,.25);
  border-radius: 10px; padding: 12px 18px; color: var(--green);
  font-size: .85rem; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.alert-err {
  background: rgba(224,82,82,.08); border: 1px solid rgba(224,82,82,.25);
  border-radius: 10px; padding: 12px 18px; color: var(--red);
  font-size: .85rem; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border2); margin: 24px 0; }
hr { border: none; border-top: 1px solid var(--border2); margin: 20px 0; }

/* ── FOOTER ── */
.site-footer {
  background: linear-gradient(180deg, #060504, #040302);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-top-border {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
  opacity: .5;
}
.footer-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 48px 28px 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo-text { font-size: 1.5rem; letter-spacing: 4px; }
.footer-brand .logo-sub { margin-top: 6px; }
.footer-brand p { font-size: .78rem; color: var(--muted); margin-top: 14px; line-height: 1.8; }
.footer-col-title {
  font-size: .68rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.footer-col-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: .8rem; color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--gold); padding-left: 6px; }
.footer-cs-phone { font-size: 1.4rem; font-weight: 700; color: var(--text); font-family: 'Playfair Display', serif; }
.footer-cs-hours { font-size: .77rem; color: var(--muted); margin-top: 6px; line-height: 1.9; }
.footer-bank-num { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.footer-bank-info { font-size: .78rem; color: var(--muted); line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--border2);
  padding-top: 24px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  font-size: .72rem; color: var(--muted);
}
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom-logo {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  color: var(--gold); letter-spacing: 3px; margin-right: auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-wrap { flex-direction: column; padding: 16px; gap: 16px; }
  .sidebar { width: 100%; min-width: unset; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .logo-inner { flex-direction: column; gap: 14px; }
  .gold-ticker { width: 100%; justify-content: center; }
  .top-bar-inner { flex-direction: column; gap: 6px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .form-card { padding: 20px 18px; }
}
