:root {
  --bg: #17120d;
  --panel: rgba(255, 248, 230, 0.94);
  --paper: #fff7df;
  --ink: #2b1b0d;
  --muted: #7c6349;
  --gold: #d8a83b;
  --gold-dark: #9b6b18;
  --brown: #5b3519;
  --red: #a33c2e;
  --green: #23614a;
  --line: rgba(91, 53, 25, 0.2);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(216, 168, 59, 0.25), transparent 32rem),
    linear-gradient(135deg, #25170d 0%, #17120d 48%, #2e1c0e 100%);
}

button, input { font: inherit; }
button { cursor: pointer; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 18px 22px;
  color: #fff7dc;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(45deg, transparent 25%, rgba(255,255,255,.08) 25%, rgba(255,255,255,.08) 50%, transparent 50%, transparent 75%, rgba(255,255,255,.08) 75%);
  background-size: 36px 36px;
}

.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
}

.uuhu {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.45));
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: .95; }
h2 { margin-bottom: 10px; }
h3 { margin: 18px 0 12px; }

.status {
  display: inline-block;
  margin: 8px 0 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 220, 0.9);
  color: var(--green);
  font-weight: 800;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 18px;
  backdrop-filter: blur(12px);
}

.tab {
  border: 1px solid rgba(216,168,59,.35);
  background: rgba(255, 247, 220, .88);
  color: var(--brown);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.tab.active {
  background: linear-gradient(135deg, var(--gold), #f3d77b);
  color: #25170d;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 18px 50px;
}

.tab-page { display: none; }
.tab-page.active { display: block; }
.hidden { display: none !important; }

.card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.intro-card, .shop-hero, .section-title, .actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.wide-left { grid-template-columns: 1.2fr .8fr; }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.stamp, .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  white-space: nowrap;
}

.stamp { background: #2c6c4e; color: white; transform: rotate(-6deg); }
.badge { background: rgba(216,168,59,.22); color: var(--brown); }

.stack-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 900;
  color: var(--brown);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(216,168,59,.18);
}

button {
  border: 0;
  border-radius: 14px;
  padding: 11px 15px;
  background: linear-gradient(135deg, var(--gold), #f3d77b);
  color: #231507;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(155,107,24,.22);
}

button.ghost {
  background: rgba(255, 247, 220, .9);
  border: 1px solid rgba(216,168,59,.45);
  box-shadow: none;
}

button.small { padding: 8px 11px; border-radius: 11px; }
button.danger { background: linear-gradient(135deg, #c75443, #9f2e22); color: #fff; }
button.secondary { background: #fff; border: 1px solid var(--line); }

.memo { color: var(--muted); line-height: 1.55; }
.error { color: var(--red); font-weight: 900; }

.record-list {
  display: grid;
  gap: 10px;
}

.record {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.55);
}

.record strong { font-size: 1.05rem; }

.search-card label { margin-bottom: 10px; }
.search { max-width: 360px; }

.item-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.item-chip {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}
.item-chip.active { background: var(--gold); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.stats.compact { grid-template-columns: repeat(3, 1fr); }
.stats div {
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.stats span { display: block; color: var(--muted); font-size: .85rem; font-weight: 800; }
.stats strong { font-size: 1.35rem; }

.chart-box {
  min-height: 280px;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.55);
}

table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--brown); background: rgba(216,168,59,.18); }
tr:last-child td { border-bottom: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.product-card:hover { transform: translateY(-3px); }
.product-card img {
  width: 100%; height: 170px; object-fit: cover; background: #ead9b5;
}
.product-body { padding: 16px; }
.product-body h3 { margin: 0 0 10px; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-weight: 900; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}
.product-image-wrap {
  background: #ead9b5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-image-wrap img { width: 100%; height: 320px; object-fit: cover; display: block; }

.shop-form-grid {
  grid-template-columns: repeat(4, 1fr);
}
.shop-form-grid .wide { grid-column: span 2; }
.shop-form-grid button { grid-column: 1 / -1; }

.inset {
  box-shadow: none;
  background: rgba(255,255,255,.35);
  margin-top: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.55);
}
.modal-box {
  width: min(430px, 100%);
  background: var(--paper);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.right { justify-content: flex-end; }

footer { color: #fff0c5; text-align: center; padding: 18px; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 82px 1fr; }
  .hero-inner > button { grid-column: 1 / -1; }
  .uuhu { width: 82px; height: 82px; }
  .tabs { overflow-x: auto; }
  .grid, .wide-left, .product-detail-grid, .admin-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .stats, .stats.compact { grid-template-columns: 1fr 1fr; }
  .shop-form-grid { grid-template-columns: 1fr; }
  .shop-form-grid .wide { grid-column: auto; }
}


/* AHDAL's Flower Day: 화사한 꽃 상점 전용 테마 */
#adalShop {
  position: relative;
  isolation: isolate;
  padding: 6px 0 24px;
}

#adalShop::before {
  content: "";
  position: absolute;
  inset: -18px -18px -34px;
  z-index: -2;
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 150, 190, .45), transparent 18rem),
    radial-gradient(circle at 92% 22%, rgba(255, 216, 115, .42), transparent 15rem),
    radial-gradient(circle at 52% 96%, rgba(145, 218, 156, .32), transparent 16rem),
    linear-gradient(135deg, rgba(255, 247, 252, .82), rgba(255, 241, 224, .78));
  border: 1px solid rgba(255, 255, 255, .48);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

#adalShop::after {
  content: "🌸  🌷  🌼  🌹  🌿  🌸  🌺";
  position: absolute;
  top: 10px;
  right: 22px;
  z-index: -1;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: .24em;
  opacity: .22;
  transform: rotate(-7deg);
  pointer-events: none;
}

.flower-tab.active {
  background: linear-gradient(135deg, #ff9fc8, #ffe08a 55%, #b7edbd);
}

.flower-shop-hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 30px;
  color: #4e2338;
  background:
    linear-gradient(120deg, rgba(255,255,255,.82), rgba(255,235,245,.88)),
    radial-gradient(circle at 14% 18%, rgba(255, 118, 168, .35), transparent 13rem),
    radial-gradient(circle at 86% 26%, rgba(255, 212, 96, .35), transparent 12rem),
    radial-gradient(circle at 72% 94%, rgba(120, 205, 140, .30), transparent 12rem);
  border: 2px solid rgba(255, 170, 205, .5);
}

.flower-shop-hero::before,
.flower-shop-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.flower-shop-hero::before {
  width: 260px;
  height: 260px;
  right: -62px;
  bottom: -92px;
  background:
    radial-gradient(circle, rgba(255,255,255,.85) 0 10%, transparent 11%),
    conic-gradient(from 20deg, rgba(255,126,178,.56), rgba(255,225,130,.58), rgba(166,224,144,.56), rgba(255,126,178,.56));
  opacity: .7;
}

.flower-shop-hero::after {
  width: 170px;
  height: 170px;
  left: -54px;
  top: -46px;
  background:
    radial-gradient(circle, rgba(255,255,255,.9) 0 12%, transparent 13%),
    conic-gradient(from 70deg, rgba(255,183,211,.65), rgba(255,240,160,.5), rgba(167,229,178,.55), rgba(255,183,211,.65));
  opacity: .62;
}

.flower-shop-hero .eyebrow,
#adalShop .eyebrow {
  color: #d94987;
}

.flower-shop-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  text-shadow: 0 8px 20px rgba(217, 73, 135, .18);
}

.flower-shop-hero p:not(.eyebrow) {
  max-width: 660px;
  color: #6d3e55;
  font-weight: 700;
}

.flower-shop-hero .search {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.86);
  border-color: rgba(217, 73, 135, .24);
  box-shadow: 0 12px 28px rgba(217, 73, 135, .12);
}

.flower-sparkles {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  color: #d94987;
  font-size: 1.35rem;
  letter-spacing: .35em;
  opacity: .48;
  white-space: nowrap;
  overflow: hidden;
}

#adalShop .product-grid {
  position: relative;
}

#adalShop .product-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,246,250,.95));
  border: 1px solid rgba(255, 165, 202, .5);
  box-shadow: 0 18px 38px rgba(167, 79, 119, .18);
}

#adalShop .product-card::before {
  content: "🌸";
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 16px rgba(217, 73, 135, .16);
}

#adalShop .product-card img {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.9), transparent 4rem),
    linear-gradient(135deg, #ffe4ef, #fff3c6 52%, #d9f5d2);
  border-bottom: 1px solid rgba(255, 165, 202, .42);
}

#adalShop .product-body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,249,239,.85));
}

#adalShop .product-body h3 {
  color: #5d2441;
}

#adalShop .product-meta {
  color: #7a4d63;
}

#adalShop .product-detail {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,242,248,.94));
  border: 1px solid rgba(255, 165, 202, .48);
}

#adalShop .product-detail::after {
  content: "🌷 🌸 🌼";
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-size: 2.1rem;
  opacity: .25;
}

#adalShop .product-image-wrap {
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.9), transparent 5rem),
    linear-gradient(135deg, #ffe3ef, #fff4c9, #dcf8d8);
  border: 1px solid rgba(255, 165, 202, .55);
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.38);
}

#adalShop button:not(.ghost):not(.danger):not(.secondary) {
  background: linear-gradient(135deg, #ff8dbd, #ffd977 62%, #a9e7b0);
  color: #3f1c2f;
}

/* === Flower-bright homepage refresh === */
:root {
  --bg: #fff7fb;
  --panel: rgba(255, 255, 255, 0.94);
  --paper: #fffdf6;
  --ink: #402235;
  --muted: #8d647c;
  --gold: #f4b84d;
  --gold-dark: #c98118;
  --brown: #7a3d59;
  --red: #cc4a68;
  --green: #3f9668;
  --line: rgba(218, 116, 163, 0.22);
  --shadow: 0 18px 48px rgba(195, 91, 138, 0.18);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 190, 217, .58), transparent 26rem),
    radial-gradient(circle at 92% 14%, rgba(255, 232, 152, .50), transparent 24rem),
    radial-gradient(circle at 20% 92%, rgba(188, 237, 196, .48), transparent 28rem),
    linear-gradient(135deg, #fff7fb 0%, #fffdf3 45%, #f2fff6 100%);
}

body::before {
  content: "🌸  🌼  🌷  🌿  🌺  🌹";
  position: fixed;
  inset: auto 0 16px 0;
  text-align: center;
  font-size: 28px;
  letter-spacing: 22px;
  opacity: .23;
  pointer-events: none;
  z-index: 0;
}

.hero {
  color: #5a2341;
  padding-top: 38px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 180, 214, .35);
  filter: blur(2px);
}

.hero::before { width: 260px; height: 260px; left: -80px; top: -90px; }
.hero::after { width: 210px; height: 210px; right: -70px; top: 10px; background: rgba(255, 226, 137, .38); }

.hero-bg {
  opacity: .65;
  background-image:
    radial-gradient(circle, rgba(255, 113, 171, .23) 0 9px, transparent 10px),
    radial-gradient(circle, rgba(255, 209, 102, .20) 0 6px, transparent 7px);
  background-size: 92px 92px, 58px 58px;
}

.hero-inner,
.tabs,
.container,
footer { position: relative; z-index: 1; }

.hero-inner {
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,245,250,.92));
  border: 1px solid rgba(255, 153, 197, .34);
  border-radius: 34px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.uuhu {
  background: linear-gradient(135deg, #fff, #ffe8f2);
  border-radius: 30px;
  padding: 8px;
  border: 2px solid rgba(255, 160, 200, .45);
  filter: drop-shadow(0 12px 18px rgba(210, 96, 148, .24));
}

.eyebrow { color: #e6659e; }
.status { background: rgba(255,255,255,.7); border: 1px solid rgba(226, 116, 164, .22); }

.tabs {
  background: rgba(255, 255, 255, .72);
  border-top: 1px solid rgba(226, 116, 164, .22);
  border-bottom: 1px solid rgba(226, 116, 164, .22);
  backdrop-filter: blur(14px);
}

.tab {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(226, 116, 164, .18);
  color: #7c385b;
}

.tab.active {
  background: linear-gradient(135deg, #ff8fc3, #ffd86f);
  color: #4a1730;
  box-shadow: 0 10px 24px rgba(229, 98, 154, .22);
}

.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.90)),
    var(--paper);
  border: 1px solid rgba(226, 116, 164, .24);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 142, 192, .16) 0 7px, transparent 8px),
    radial-gradient(circle at calc(100% - 20px) 22px, rgba(255, 215, 107, .18) 0 8px, transparent 9px);
}

.intro-card,
.search-card,
.shop-hero {
  background: linear-gradient(135deg, rgba(255, 244, 250, .96), rgba(247, 255, 239, .94));
}

button {
  background: linear-gradient(135deg, #ff8fc3, #ffd86f);
  color: #4a1730;
  box-shadow: 0 10px 20px rgba(229, 98, 154, .20);
}

button.ghost {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(226, 116, 164, .30);
  color: #7c385b;
}

.badge { background: rgba(255, 143, 195, .22); color: #8e315f; }
.stamp { background: linear-gradient(135deg, #66c78a, #ffcf69); color: #3d2434; }

input {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(226, 116, 164, .24);
}

input:focus {
  border-color: #ff8fc3;
  box-shadow: 0 0 0 4px rgba(255,143,195,.20);
}

/* Auction item cards and detail view */
.auction-list-card { min-height: 100%; }
.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.auction-card {
  border: 1px solid rgba(226, 116, 164, .26);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(255, 240, 248, .96));
  box-shadow: 0 12px 26px rgba(198, 95, 143, .14);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.auction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(198, 95, 143, .22);
}

.auction-card .lot-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff1f8, #fff3c6);
  font-size: 26px;
  margin-bottom: 10px;
}

.auction-card h3 { margin: 0 0 8px; }
.auction-card .price { color: #b13e70; font-weight: 950; }

.auction-detail {
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255, 241, 248, .96));
}

.auction-detail-layout {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
}

.auction-gavel {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 46px;
  background: linear-gradient(135deg, #ffe5f1, #fff0b8);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.65);
}

.flower-shop-hero,
.product-card,
.product-detail {
  border-color: rgba(255, 137, 191, .36);
}

.product-card {
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(255, 239, 248, .92));
}

footer { color: #8d647c; }

@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 80px 1fr; }
  .hero-inner #adminLoginBtn { grid-column: 1 / -1; }
  .uuhu { width: 80px; height: 80px; }
  .auction-detail-layout { grid-template-columns: 1fr; }
  body::before { letter-spacing: 8px; font-size: 22px; }
}


/* === PC / MOBILE RESPONSIVE FIX === */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .hero {
    padding: 12px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 70px 1fr !important;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .uuhu {
    width: 70px !important;
    height: 70px !important;
  }

  h1 {
    font-size: 2.4rem !important;
    line-height: 1;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: .85rem;
  }

  .tabs {
    width: 100%;
    padding: 8px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tab {
    flex: 0 0 auto;
    padding: 9px 13px;
    font-size: .85rem;
  }

  .container {
    padding: 12px;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }

  .grid,
  .wide-left,
  .product-detail-grid,
  .admin-grid {
    grid-template-columns: 1fr !important;
  }

  .intro-card,
  .shop-hero,
  .flower-shop-hero {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 18px;
  }

  .flower-shop-hero h2 {
    font-size: 2.5rem !important;
  }

  .search {
    width: 100%;
    max-width: none;
  }

  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .product-card img {
    height: 150px;
  }

  .stats,
  .stats.compact {
    grid-template-columns: 1fr !important;
  }

  .auction-grid {
    grid-template-columns: 1fr !important;
  }

}

/* === Strong Drag / Selection / Long-press Protection === */
html, body, body * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

img, svg, canvas, a, button {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

img {
  pointer-events: none;
}

input, textarea, select, option, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}


/* === 아이네 명품샵 전용 고급 테마 === */
.luxury-tab.active {
  background: linear-gradient(135deg, #101010, #35302a 55%, #d7b46a);
  color: #fff7df;
}
#iShop {
  position: relative;
  isolation: isolate;
  padding: 6px 0 24px;
}
#iShop::before {
  content: "";
  position: absolute;
  inset: -18px -18px -34px;
  z-index: -2;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 10%, rgba(215, 180, 106, .32), transparent 18rem),
    radial-gradient(circle at 92% 25%, rgba(20, 20, 20, .30), transparent 16rem),
    linear-gradient(135deg, rgba(18,18,18,.96), rgba(58,45,31,.90));
  border: 1px solid rgba(215,180,106,.38);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 22px 60px rgba(20,20,20,.22);
}
.luxury-shop-hero {
  color: #fff4d7;
  background:
    linear-gradient(135deg, rgba(18,18,18,.94), rgba(54,43,30,.92)),
    radial-gradient(circle at 20% 10%, rgba(215,180,106,.25), transparent 14rem);
  border: 1px solid rgba(215,180,106,.46);
}
.luxury-shop-hero .eyebrow, #iShop .eyebrow { color: #d7b46a; }
.luxury-shop-hero p:not(.eyebrow) { color: #eadcbf; font-weight: 700; }
.luxury-shop-hero h2 { color: #fff7df; text-shadow: 0 10px 28px rgba(215,180,106,.22); }
#iShop .search {
  background: rgba(255,255,255,.92);
  border-color: rgba(215,180,106,.38);
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
}
#iShop .product-card {
  background: linear-gradient(180deg, rgba(28,28,28,.98), rgba(54,43,30,.96));
  border: 1px solid rgba(215,180,106,.46);
  box-shadow: 0 20px 44px rgba(0,0,0,.28);
  color: #fff7df;
}
#iShop .product-card::before {
  content: "LUXE";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(215,180,106,.92);
  color: #15110c;
  font-weight: 950;
  font-size: .72rem;
  letter-spacing: .08em;
}
#iShop .product-card img {
  background: linear-gradient(135deg, #1b1b1b, #806233, #f3d487);
  border-bottom: 1px solid rgba(215,180,106,.36);
}
#iShop .product-body { background: transparent; }
#iShop .product-body h3 { color: #fff7df; }
#iShop .product-meta, #iShop .memo { color: #e2cfaa; }
#iShop .product-detail {
  color: #fff7df;
  background: linear-gradient(135deg, rgba(18,18,18,.96), rgba(58,45,31,.94));
  border: 1px solid rgba(215,180,106,.46);
}
#iShop .product-detail .stats div {
  background: rgba(255,255,255,.08);
  border-color: rgba(215,180,106,.32);
}
#iShop .product-detail .stats span, #iShop .product-detail .memo { color: #e2cfaa; }
#iShop .product-image-wrap {
  background: linear-gradient(135deg, #111, #5d4928, #d7b46a);
  border: 1px solid rgba(215,180,106,.52);
}
#iShop button:not(.ghost):not(.danger):not(.secondary) {
  background: linear-gradient(135deg, #101010, #3a3025 52%, #d7b46a);
  color: #fff7df;
}
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  outline: none;
  font: inherit;
}
@media (max-width: 720px) {
  #iShop::before { inset: -10px -8px -24px; border-radius: 24px; }
  .luxury-shop-hero { padding: 22px; }
}


/* Store inline management: 관리 화면은 버튼으로만 진입 */
.shop-hero-actions {
  display: grid;
  gap: 10px;
  align-items: center;
  min-width: min(360px, 100%);
}

.shop-manage-btn {
  white-space: nowrap;
}

.seller-panel {
  scroll-margin-top: 86px;
}

@media (min-width: 760px) {
  .shop-hero-actions {
    grid-template-columns: minmax(220px, 1fr) auto;
  }
}

/* === Admin room renewal: button-based panels === */
.admin-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 18px 0 10px;
}

.admin-menu button {
  min-height: 52px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(226, 116, 164, .28);
  box-shadow: 0 10px 22px rgba(198, 95, 143, .14);
}

.admin-menu button.active {
  background: linear-gradient(135deg, #ff8fc3, #ffd86f);
  color: #4a1730;
  transform: translateY(-1px);
}

.admin-guide {
  margin: 4px 0 18px;
}

.admin-section {
  width: 100%;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-section-head h3 {
  margin: 0;
}

.admin-close-btn {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .admin-menu {
    grid-template-columns: 1fr 1fr;
  }
  .admin-menu button {
    font-size: 14px;
    padding: 10px;
  }
}

/* ===== Site guard: selection / image drag blocking ===== */
body, body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
#userGoldBadge {
  max-width: 260px;
  white-space: normal;
  text-align: right;
}
@media (max-width: 820px) {
  .hero-actions {
    grid-column: 1 / -1;
    align-items: stretch;
  }
  #userGoldBadge { max-width: none; text-align: center; }
}

/* 운영 로그 필터/더보기 */
.log-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 12px;
}
.log-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.log-filter-buttons button.active {
  background: linear-gradient(135deg, #ff8fc3, #ffd86f);
  color: #4a1730;
  box-shadow: 0 10px 20px rgba(229, 98, 154, .20);
}
.log-days-label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  width: auto;
}
.log-days-label select {
  border: 1px solid rgba(226, 116, 164, .24);
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}
@media (max-width: 720px) {
  .log-toolbar { align-items: stretch; }
  .log-filter-buttons, .log-days-label { width: 100%; }
  .log-days-label select { flex: 1; }
}


/* 접속자/관리자 버튼 보강 */
.admin-menu button.active {
  outline: 3px solid rgba(255, 143, 195, .28);
  transform: translateY(-1px);
}


/* 로그인 사용자/골드 표시 */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.user-gold-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(226, 116, 164, .28);
  color: #7c385b;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(229, 98, 154, .12);
  white-space: nowrap;
}
@media (max-width: 820px) {
  .hero-actions { grid-column: 1 / -1; align-items: stretch; }
  .user-gold-badge { width: 100%; }
}

/* Bundle sale controls */
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  outline: none;
  font: inherit;
}
select:focus {
  border-color: #ff8fc3;
  box-shadow: 0 0 0 4px rgba(255,143,195,.20);
}


/* 전체수정 전용 창 */
.shop-edit-modal {
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.shop-edit-box {
  width: min(960px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.stock-admin-cell small {
  display: block;
  margin-top: 4px;
  color: #8c6074;
  white-space: nowrap;
}
.compact-actions {
  gap: 8px;
  align-items: center;
}
.shop-form-grid .wide {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .shop-edit-box { width: calc(100vw - 20px); }
}

/* Bundle display polish */
.bundle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 156, 59, .35);
  background: rgba(255, 246, 220, .78);
  color: #7a4d12;
  font-size: 13px;
  font-weight: 900;
}
#iShop .bundle-badge {
  background: rgba(255, 229, 155, .12);
  color: #f2d48b;
  border-color: rgba(242, 212, 139, .45);
}
.bundle-stock-main {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}
.stats strong small,
#detailStock small,
#iDetailStock small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
  opacity: .78;
  font-weight: 800;
  white-space: normal;
}
.stock-admin-cell small {
  display: block;
  margin-top: 4px;
  opacity: .75;
  font-size: 12px;
}
.stock-admin-cell button {
  min-width: 48px;
}

/* 구매 요청 모달 요약 UI 정리 */
.purchase-gold-line {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gold-pill-inline {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(226, 116, 164, .28);
  background: linear-gradient(135deg, #fff7fb, #fff8df);
  color: #6b3150;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .92rem;
  font-weight: 900;
}
.gold-pill-inline.warn {
  color: #b53737;
  background: #fff5f5;
  border-color: rgba(229, 72, 72, .28);
}
.purchase-summary {
  margin: 8px 0 10px;
}
.purchase-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.purchase-summary-card {
  border: 1px solid rgba(226, 116, 164, .24);
  background: rgba(255, 255, 255, .76);
  border-radius: 16px;
  padding: 10px 11px;
  min-height: 58px;
  box-sizing: border-box;
}
.purchase-summary-card span {
  display: block;
  color: #9b6b83;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 5px;
}
.purchase-summary-card strong {
  display: block;
  color: #4a2138;
  font-size: 1.03rem;
  font-weight: 950;
  line-height: 1.15;
  word-break: keep-all;
}
.purchase-sub-summary {
  margin-top: 7px;
  color: #8d647c;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.35;
}
.purchase-warning {
  margin: 8px 0 10px;
  border: 1px solid rgba(229, 72, 72, .24);
  background: #fff5f5;
  color: #c53030;
  border-radius: 15px;
  padding: 10px 12px;
  font-weight: 900;
  line-height: 1.35;
}
.input-warning {
  background: #fffafa !important;
}
@media (max-width: 560px) {
  .purchase-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* 구매 모달 UI 가독성 개선 */
.purchase-summary-clean {
  margin: 8px 0 10px;
  border: 1px solid rgba(226, 116, 164, .22);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  padding: 12px 14px;
}
.purchase-summary-title {
  font-size: .86rem;
  font-weight: 950;
  color: #9b5575;
  margin-bottom: 8px;
}
.purchase-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px dashed rgba(226, 116, 164, .18);
}
.purchase-summary-row:first-of-type { border-top: 0; }
.purchase-summary-row span {
  color: #8c6074;
  font-size: .9rem;
  font-weight: 800;
}
.purchase-summary-row strong {
  color: #4a2138;
  font-size: 1.05rem;
  font-weight: 950;
  white-space: nowrap;
}
.purchase-summary-note {
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px dashed rgba(226, 116, 164, .18);
  color: #8d647c;
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.35;
}
.purchase-warning {
  font-size: .9rem;
  padding: 9px 11px;
}
#modalProductStock, #detailStock, .bundle-stock-main {
  white-space: nowrap;
}
#modalProductStock small, #detailStock small {
  display: block;
  white-space: normal;
  margin-top: 3px;
  font-size: .75rem;
  line-height: 1.25;
}
@media (max-width: 560px) {
  .purchase-summary-clean { padding: 11px 12px; }
  .purchase-summary-row strong { font-size: 1rem; }
}


/* 화면 문구/줄바꿈 정리 */
body, button, input, textarea, select { word-break: keep-all; }
.card p:empty, .memo:empty { display: none !important; }
.admin-guide { display: none !important; }
.shop-hero { align-items: center; }
.shop-hero h2, .intro-card h2 { margin-bottom: 0; }
.table-wrap table { white-space: nowrap; }
th, td { word-break: keep-all; }
.stats strong,
.product-meta,
.bundle-stock-main,
.purchase-summary-row strong,
.gold-pill-inline,
.badge,
.stamp { white-space: nowrap; word-break: keep-all; }
.purchase-summary-clean { max-width: 100%; }
.purchase-summary-row { gap: 16px; }
.purchase-summary-row span { white-space: nowrap; }
.purchase-summary-note { word-break: keep-all; }
.purchase-warning { word-break: keep-all; }
#purchaseLookupResult table { min-width: 680px; }
#purchaseLookupResult th,
#purchaseLookupResult td { vertical-align: middle; }
#modalProductStock small, #detailStock small, #iDetailStock small {
  word-break: keep-all;
}
@media (max-width: 560px) {
  .stats.compact { grid-template-columns: 1fr; }
  .purchase-summary-row { align-items: flex-start; }
  .purchase-summary-row strong { text-align: right; }
}

/* Gold exchange */
.user-gold-badge { cursor: pointer; border: 1px solid rgba(255, 166, 203, .65); }
.user-gold-badge:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 123, 166, .18); }
.gold-exchange-box { position: relative; max-width: 540px; }
.modal-x { position:absolute; right:14px; top:14px; width:34px; height:34px; border-radius:50%; border:1px solid rgba(244, 158, 190, .6); background:white; color:#7a3150; font-weight:800; cursor:pointer; }
.exchange-tabs { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:14px 0; }
.exchange-tabs button { border:1px solid rgba(244,158,190,.55); background:#fff; border-radius:16px; padding:11px 10px; font-weight:800; color:#6a2947; cursor:pointer; }
.exchange-tabs button.active { background:linear-gradient(135deg,#ff82b0,#ffd36a); color:#4a2138; box-shadow:0 10px 20px rgba(255, 127, 172, .2); }
.exchange-guide, .exchange-preview { border:1px solid rgba(244,158,190,.45); border-radius:16px; padding:12px 14px; background:rgba(255,248,251,.85); display:grid; gap:4px; }
.exchange-guide strong, .exchange-preview strong { color:#4a2138; }
.exchange-guide span, .exchange-preview span { color:#8b5b72; font-size:.92rem; }
.exchange-preview.warn { border-color:#ff6b6b; background:#fff2f2; }
.exchange-preview.warn strong, .exchange-preview.warn span { color:#c53030; }
.nowrap { white-space: nowrap; }

/* 알바촌극 */
.job-hero .stamp { transform: rotate(-6deg); }
.job-grid { align-items: start; }
.job-list { display: grid; gap: 14px; }
.job-card {
  border: 1px solid rgba(245, 148, 184, 0.35);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 14px 34px rgba(128, 65, 86, 0.08);
}
.job-card.status-completed { opacity: 0.78; }
.job-card.status-canceled { opacity: 0.55; }
.job-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job-card h3 { margin: 6px 0 0; word-break: keep-all; overflow-wrap: anywhere; }
.job-status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff1f7;
  color: #9b4266;
  font-weight: 800;
  font-size: 0.82rem;
}
.job-reward {
  white-space: nowrap;
  padding: 10px 13px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff3bf, #ffe3ec);
  color: #5a1f3e;
}
.job-desc, .job-memo { line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.job-memo { color: #9a667d; font-size: 0.95rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.job-meta span {
  border: 1px solid rgba(245, 148, 184, 0.3);
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 6px 10px;
  color: #7d4e65;
  font-size: 0.9rem;
}
.empty-state { padding: 22px; text-align: center; color: #9a667d; border: 1px dashed rgba(245,148,184,.45); border-radius: 18px; }
@media (max-width: 760px) {
  .job-card-head { flex-direction: column; }
  .job-reward { align-self: flex-start; }
}
