/* ================================================================
   모두보아넷 - 전체 스타일 v32
   ================================================================ */

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

body {
  font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #eee;
  min-height: 100vh;
  padding-bottom: 60px;
}

.fixed-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 26px;
  height: 56px;
  overflow: visible;
  background: rgba(15,15,15,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a2a2a;
  gap: 16px;
}

.topbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  max-width: 320px;
  height: 100%;
}
.topbar-logo img {
  height: 100px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stats {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: #ccc;
  white-space: nowrap;
}
.stats span b {
  color: #00e5ff;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}
.stats span.gold b { color: #FFD700; }

.inquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #229ED9;
  color: #fff;
  padding: 9px 18px;
  border-radius: 24px;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(34,158,217,.5);
  transition: .2s;
  flex-shrink: 0;
}
.inquiry-btn:hover { background: #1c8ac1; }
.inquiry-btn .tg-icon { display: block; flex-shrink: 0; }

.notice-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(0,229,255,.15), rgba(0,229,255,.06));
  border-bottom: 1px solid rgba(0,229,255,.3);
  padding: 10px 50px;
  font-size: 13px;
  color: #b8f0ff;
  position: relative;
}
.notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.notice-marquee {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.notice-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  line-height: 20px;
}
.notice-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: #7ad3e8; cursor: pointer;
  font-size: 14px; padding: 4px 8px;
  line-height: 1;
}
.notice-close:hover { color: #fff; }

.content-wrap { padding-top: 10px; }

.logo-wrap { text-align: center; padding: 35px 20px 25px; }
.logo {
  font-family: 'Georgia', serif;
  font-size: 64px; font-weight: 900; letter-spacing: 6px;
  background: linear-gradient(180deg, #FFE97F 0%, #FFD700 40%, #B8860B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 3px 6px rgba(255,215,0,.5));
  display: inline-block;
}
.logo-sub {
  font-size: 13px; color: #888;
  letter-spacing: 5px; margin-top: 8px;
}

.banner-area {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.banner-slot {
  width: 700px; max-width: 100%; height: 100px;
  border-radius: 10px; overflow: hidden; position: relative;
  background: #222; border: 1px solid #3a3a3a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.banner-slot img { width: 100%; height: 100%; object-fit: contain; }
.banner-slot .fixed-tag {
  position: absolute; top: 6px; right: 6px;
  background: rgba(255,215,0,.9); color: #000;
  font-size: 11px; font-weight: bold;
  padding: 2px 8px; border-radius: 4px; z-index: 2;
}
.banner-empty { color: #666; font-size: 14px; }

/* ==================== TMDB 트렌드 ==================== */
.trend-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
}
.trend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.trend-header h2 {
  color: #FFD700;
  font-size: 18px;
  margin: 0;
}
.trend-tabs { display: flex; gap: 8px; }
.trend-tab {
  padding: 8px 18px;
  background: #1c1c1c;
  border: 1px solid #333;
  color: #aaa;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: .2s;
}
.trend-tab.active {
  background: linear-gradient(135deg, #FFD700, #B8860B);
  color: #000;
  border-color: #FFD700;
  font-weight: bold;
}

/* PC: 6개 */
.trend-panel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 100%;
  margin: 0 auto;
}
.trend-card {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: .25s;
  position: relative;
  width: 100%;
}
.trend-card:hover {
  transform: translateY(-4px);
  border-color: #00e5ff;
  box-shadow: 0 8px 24px rgba(0,229,255,.3);
}
.trend-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background: #111;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trend-poster img { width: 100%; height: 100%; object-fit: cover; }
.trend-poster-empty { font-size: 32px; color: #444; }
.trend-type-badge {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,229,255,.9);
  color: #000;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 8px;
}
.trend-info { padding: 8px 10px; }
.trend-title {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.trend-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.trend-rating { color: #FFD700; }
.trend-year { color: #888; }
.trend-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  padding: 30px;
  background: #111;
  border-radius: 10px;
}

.list-wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.list-title {
  text-align: center; color: #00e5ff; font-size: 20px;
  margin-bottom: 24px; letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(0,229,255,.5);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.card {
  background: linear-gradient(145deg, #262626, #1c1c1c);
  border: 1px solid #383838;
  border-radius: 14px;
  padding: 22px 14px 18px;
  text-align: center;
  text-decoration: none;
  color: #eee;
  transition: .25s;
  position: relative;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,229,255,.3);
  border-color: #00e5ff;
}
.card-num {
  position: absolute; top: 10px; left: 12px;
  background: #00e5ff; color: #000;
  font-weight: bold; font-size: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.card-featured {
  position: absolute; top: 10px; right: 12px;
  background: linear-gradient(135deg, #FF3B30, #FF9500);
  color: #fff; font-size: 10px; font-weight: bold;
  padding: 3px 8px; border-radius: 10px;
  letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(255,59,48,.5);
  z-index: 2;
}
.card-featured-inline { display: none; }

.card-logo {
  width: 64px; height: 64px;
  border-radius: 14px; margin: 4px auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900;
  font-family: Georgia, serif;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  overflow: hidden;
}
.card-logo img { width: 100%; height: 100%; object-fit: cover; }
.card-info { display: block; }
.card-title { font-size: 16px; font-weight: 600; color: #fff; }
.card-url { font-size: 11px; color: #777; margin-top: 5px; word-break: break-all; }
.card-clicks { display: none !important; }

.card-copy-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0,229,255,.15);
  border: 1px solid rgba(0,229,255,.3);
  color: #00e5ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  opacity: 0;
  z-index: 3;
}
.card:hover .card-copy-btn { opacity: 1; }
.card-copy-btn:hover {
  background: #00e5ff;
  color: #000;
}
.card-copy-btn.copied {
  background: #2ecc71;
  border-color: #2ecc71;
  color: #fff;
  opacity: 1;
}
.card-copy-btn svg { display: block; }

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5ff, #0099cc);
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,229,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .3s;
  z-index: 850;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,229,255,.6);
}
.back-to-top svg { display: block; }

.inquiry-btn-group {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 901;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.inquiry-btn-toggle {
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #B8860B);
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,215,0,.5);
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all .3s;
  font-family: inherit;
  flex-shrink: 0;
}

.inquiry-btn-toggle:hover {
  transform: scale(1.08);
}

.inquiry-btn-group.open .inquiry-btn-toggle {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
}

.inquiry-btn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

@media (min-width: 769px) {
  .inquiry-btn-toggle { display: none; }
  .inquiry-btn-list { display: flex; }
}

@media (max-width: 768px) {
  .inquiry-btn-toggle { display: flex; }
  .inquiry-btn-list {
    display: none;
    animation: inquirySlideIn .3s ease;
  }
  .inquiry-btn-group.open .inquiry-btn-list {
    display: flex;
  }
  @keyframes inquirySlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
  }
}

.my-inquiry-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 14px 16px;
  background: linear-gradient(135deg, #FFD700, #B8860B);
  color: #000;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,215,0,.5);
  transition: all .25s;
  font-family: inherit;
  white-space: nowrap;
}

.my-inquiry-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px rgba(255,215,0,.7);
}

.my-inquiry-btn .my-inquiry-icon {
  font-size: 20px;
  display: inline-block;
}

.inquiry-float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 14px 16px;
  background: linear-gradient(135deg, #00e5ff, #0099cc);
  color: #000;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,229,255,.5);
  transition: all .25s;
  font-family: inherit;
  white-space: nowrap;
}

.inquiry-float-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px rgba(0,229,255,.7);
}

.inquiry-float-btn .inquiry-float-icon {
  font-size: 20px;
  display: inline-block;
}

.inquiry-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.inquiry-popup-box {
  background: #1c1c1c;
  border: 2px solid #00e5ff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,229,255,.35);
}
.inquiry-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 2px solid #00e5ff;
  background: linear-gradient(90deg, rgba(0,229,255,.1), rgba(0,229,255,.03));
  border-radius: 14px 14px 0 0;
}
.inquiry-popup-header h3 {
  color: #00e5ff;
  font-size: 17px;
  margin: 0;
}
.inquiry-popup-close {
  background: rgba(255,255,255,.05);
  border: 1px solid #333;
  color: #aaa;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inquiry-popup-close:hover {
  background: #e74c3c;
  color: #fff;
}
.inquiry-popup-body { padding: 22px; }
.inquiry-popup-body .inquiry-sub {
  color: #888;
  font-size: 12px;
  margin-bottom: 18px;
  line-height: 1.6;
}
.inquiry-popup-body label {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 8px;
  font-weight: 600;
}
.inquiry-popup-body textarea {
  width: 100%;
  padding: 14px;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  font-family: inherit;
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}
.inquiry-popup-body textarea:focus {
  outline: none;
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0,229,255,.3);
}
.inquiry-popup-body textarea::placeholder {
  color: #666;
  line-height: 1.8;
}
.inquiry-popup-body .inquiry-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00e5ff, #0099cc);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: .2s;
  letter-spacing: 1px;
  font-family: inherit;
}
.inquiry-popup-body .inquiry-submit:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,229,255,.4);
}
.inquiry-popup-body .inquiry-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.my-inquiry-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9997;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.my-inquiry-popup-box {
  background: #1c1c1c;
  border: 2px solid #FFD700;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(255,215,0,.35);
}
.my-inquiry-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 2px solid #FFD700;
  background: linear-gradient(90deg, rgba(255,215,0,.1), rgba(255,215,0,.03));
  border-radius: 14px 14px 0 0;
}
.my-inquiry-popup-header h3 {
  color: #FFD700;
  font-size: 17px;
  margin: 0;
}
.my-inquiry-popup-close {
  background: rgba(255,255,255,.05);
  border: 1px solid #333;
  color: #aaa;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.my-inquiry-popup-close:hover {
  background: #e74c3c;
  color: #fff;
}
.my-inquiry-popup-body { padding: 22px; }

.my-inquiry-item {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.my-inquiry-item.has-reply { border-left: 4px solid #2ecc71; }
.my-inquiry-item.no-reply { border-left: 4px solid #FFD700; }
.my-inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
}
.my-inquiry-status { font-size: 12px; font-weight: bold; }
.my-inquiry-item.has-reply .my-inquiry-status { color: #2ecc71; }
.my-inquiry-item.no-reply .my-inquiry-status { color: #FFD700; }
.my-inquiry-date { color: #666; font-size: 11px; }
.my-inquiry-label {
  color: #888;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.my-inquiry-content {
  color: #ddd;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 12px;
}
.my-inquiry-reply {
  background: rgba(46,204,113,.08);
  border: 1px solid rgba(46,204,113,.3);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}
.my-inquiry-reply .my-inquiry-content { color: #b8f0d0; }
.my-inquiry-replied-date {
  color: #4a7a5c;
  font-size: 10px;
  text-align: right;
  margin-top: 6px;
}
.my-inquiry-waiting {
  color: #666;
  font-size: 12px;
  font-style: italic;
  text-align: center;
  padding: 12px;
  background: rgba(255,215,0,.05);
  border-radius: 8px;
}

.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
}
.popup-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 95vw;
}
.popup-box {
  background: #1c1c1c;
  border: 2px solid #FFD700;
  border-radius: 14px;
  padding: 0;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 0 40px rgba(255,215,0,.4);
  animation: popupFadeIn .3s ease;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
@keyframes popupFadeIn {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.popup-body {
  width: calc(100% - 20px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  margin: 10px 10px 0;
}
.popup-body img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.popup-body a { display: block; width: 100%; height: 100%; }
.popup-box-actions {
  display: flex;
  gap: 6px;
  padding: 10px;
}
.popup-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
}
.popup-btn-close {
  background: #2a2a2a;
  color: #ccc;
  border: 1px solid #444;
}
.popup-btn-close:hover { background: #3a3a3a; color: #fff; }
.popup-btn-hide {
  background: linear-gradient(135deg, #FFD700, #B8860B);
  color: #000;
}
.popup-btn-hide:hover { filter: brightness(1.15); }

.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1c1c1c, #2a2a2a);
  border-top: 2px solid #00e5ff;
  padding: 12px 16px;
  z-index: 9500;
  box-shadow: 0 -4px 20px rgba(0,229,255,.3);
  animation: pwaSlideUp .4s ease;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
@keyframes pwaSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.pwa-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
}
.pwa-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pwa-banner-text strong {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}
.pwa-banner-text span {
  color: #aaa;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pwa-install-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, #00e5ff, #0099cc);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: .2s;
}
.pwa-install-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,229,255,.5);
}
.pwa-close-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  line-height: 1;
}
.pwa-close-btn:hover { color: #fff; }

/* ================================================================
   📱 모바일
   ================================================================ */
@media (max-width: 768px) {

  .topbar {
    padding: 0 12px;
    height: 48px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .topbar-logo { max-width: 180px; }
  .topbar-logo img { height: 68px; }

  .topbar-right {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .stats { gap: 8px; font-size: 10px; }
  .stats span b { font-size: 11px; }

  /* 모바일: 상담문의 글자 숨김, 아이콘만 */
  .inquiry-btn {
    padding: 8px;
    width: 36px;
    height: 36px;
    justify-content: center;
    gap: 0;
  }
  .inquiry-btn .inquiry-btn-text {
    display: none;
  }
  .inquiry-btn .tg-icon {
    width: 18px;
    height: 18px;
  }

  .notice-bar { padding: 8px 36px; font-size: 12px; }
  .notice-close { right: 10px; }
  .notice-text { line-height: 18px; }

  .logo-wrap { padding: 20px 16px 14px; }
  .logo { font-size: 36px; letter-spacing: 3px; }
  .logo-sub { font-size: 11px; letter-spacing: 3px; }

  .banner-area { padding: 0 12px; margin-bottom: 20px; gap: 10px; }
  .banner-slot { width: 100%; height: auto; aspect-ratio: 7 / 1; }

  /* 모바일 트렌드: 3개 */
  .trend-section { padding: 0 12px; margin-bottom: 20px; }
  .trend-header h2 { font-size: 15px; }
  .trend-panel {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .trend-title { font-size: 11px; }
  .trend-meta { font-size: 10px; }

  .list-wrap { padding: 0 12px; }
  .list-title { font-size: 16px; margin-bottom: 14px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    text-align: left;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 10px;
    min-height: 54px;
  }
  .card:hover { transform: none; }

  .card-num {
    position: static;
    width: 18px; height: 18px;
    font-size: 10px;
    flex-shrink: 0;
    margin-right: 2px;
  }
  .card-featured { display: none; }
  .card-featured-inline {
    display: inline-block;
    background: linear-gradient(135deg, #FF3B30, #FF9500);
    color: #fff; font-size: 9px; font-weight: bold;
    padding: 1px 5px; border-radius: 8px;
    margin-left: 4px; vertical-align: middle;
    letter-spacing: .3px;
  }
  .card-logo {
    width: 36px; height: 36px;
    margin: 0; border-radius: 8px;
    font-size: 16px; flex-shrink: 0;
  }
  .card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
  .card-title {
    font-size: 13px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.3;
  }
  .card-url { display: none; }

  .card-copy-btn {
    position: static;
    opacity: 1;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 4px;
  }

  .back-to-top {
    bottom: 90px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .inquiry-btn-group {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }

  .inquiry-btn-toggle {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .my-inquiry-btn,
  .inquiry-float-btn {
    padding: 12px 16px 12px 14px;
    font-size: 13px;
  }

  .my-inquiry-btn .my-inquiry-icon,
  .inquiry-float-btn .inquiry-float-icon {
    font-size: 18px;
  }

  .inquiry-popup-overlay { padding: 12px; }
  .inquiry-popup-box { max-width: 100%; }
  .inquiry-popup-header { padding: 14px 18px; }
  .inquiry-popup-header h3 { font-size: 15px; }
  .inquiry-popup-body { padding: 18px; }
  .inquiry-popup-body textarea { min-height: 130px; font-size: 13px; }

  .my-inquiry-popup-overlay { padding: 12px; }
  .my-inquiry-popup-box { max-width: 100%; }
  .my-inquiry-popup-header { padding: 14px 18px; }
  .my-inquiry-popup-header h3 { font-size: 15px; }
  .my-inquiry-popup-body { padding: 16px; }
  .my-inquiry-item { padding: 12px; }
  .my-inquiry-content { font-size: 12px; }

  .popup-overlay { padding: 12px; }
  .popup-row { gap: 12px; flex-wrap: wrap; }
  .popup-box { width: 300px; max-width: 90vw; }
  .popup-box-actions { padding: 8px; }
  .popup-btn { padding: 8px; font-size: 11px; }

  .pwa-install-banner { padding: 10px 12px; }
  .pwa-banner-icon { width: 40px; height: 40px; }
  .pwa-banner-text strong { font-size: 13px; }
  .pwa-banner-text span { font-size: 10px; }
  .pwa-install-btn { padding: 8px 16px; font-size: 12px; }

  .admin-container { padding: 0 12px; }
  .form-row.link-form,
  .form-row.banner-form { grid-template-columns: 1fr !important; }
  .tab-btn { padding: 8px 14px; font-size: 12px; }
  .color-picker { grid-template-columns: repeat(8, 1fr); }
  table { font-size: 11px; }
  th, td { padding: 6px 4px; }
}

/* ================================================================
   관리자 페이지
   ================================================================ */
.admin-body { background: #141414; }

.admin-header {
  background: #1c1c1c;
  border-bottom: 2px solid #FFD700;
  padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.admin-header h1 { font-size: 20px; color: #FFD700; }
.admin-header a { color: #00e5ff; text-decoration: none; font-size: 13px; }

.login-box {
  max-width: 340px; margin: 100px auto;
  background: #1c1c1c; padding: 32px;
  border-radius: 14px; border: 1px solid #333;
  box-shadow: 0 0 30px rgba(255,215,0,.15);
}
.login-box h2 { color: #FFD700; text-align: center; margin-bottom: 22px; }
.login-box input {
  width: 100%; padding: 12px; margin-bottom: 12px;
  background: #111; border: 1px solid #333;
  border-radius: 8px; color: #fff; font-size: 14px;
}
.login-box input:focus { outline: none; border-color: #00e5ff; }
.login-box button {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #FFD700, #B8860B);
  border: none; border-radius: 8px;
  font-weight: bold; cursor: pointer; font-size: 15px;
}

.admin-container { max-width: 1100px; margin: 24px auto; padding: 0 20px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 22px;
  background: #1c1c1c; border: 1px solid #333; color: #aaa;
  border-radius: 8px; cursor: pointer; font-size: 14px;
  position: relative;
}
.tab-btn.active {
  background: #00e5ff; color: #000;
  border-color: #00e5ff; font-weight: bold;
}
.tab-badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}
.tab-badge:empty { display: none; }

.tab-panel {
  display: none;
  background: #1c1c1c; padding: 22px;
  border-radius: 12px; border: 1px solid #2a2a2a;
}
.tab-panel.active { display: block; }

.form-row { display: grid; gap: 10px; margin-bottom: 14px; align-items: center; }
.link-form { grid-template-columns: 1fr 2fr 90px 90px; }
.banner-form { grid-template-columns: 1fr 1.4fr 1.4fr 90px; }

input[type=text], input[type=number] {
  padding: 10px; background: #111;
  border: 1px solid #333; border-radius: 6px;
  color: #fff; font-size: 13px;
}
input:focus { outline: none; border-color: #00e5ff; }

button.btn {
  padding: 10px 16px; border: none; border-radius: 6px;
  cursor: pointer; font-weight: bold; font-size: 13px;
}
.btn-primary { background: #00e5ff; color: #000; }
.btn-gold { background: linear-gradient(135deg, #FFD700, #B8860B); color: #000; }
.btn-danger { background: #c0392b; color: #fff; }
.btn:hover { filter: brightness(1.15); }

table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 13px; }
th, td {
  padding: 10px; border-bottom: 1px solid #2a2a2a;
  text-align: left; vertical-align: middle;
}
th { color: #FFD700; font-size: 12px; text-transform: uppercase; }
td img.thumb { width: 60px; height: 34px; object-fit: cover; border-radius: 4px; }

.section-title { color: #00e5ff; font-size: 16px; margin-bottom: 14px; }
.hint { font-size: 12px; color: #777; margin-bottom: 12px; }

.color-picker {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px; margin-top: 6px;
  max-width: 520px;
}
.color-swatch {
  width: 24px; height: 24px; border-radius: 5px;
  cursor: pointer; border: 2px solid transparent;
  transition: .15s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: #00e5ff; box-shadow: 0 0 8px rgba(0,229,255,.9); }

.letter-preview {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
  font-family: Georgia, serif;
}

.order-btns { display: flex; gap: 4px; justify-content: center; align-items: center; }
.arrow-btn {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid #444; background: #111;
  color: #00e5ff; cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.arrow-btn:hover { background: #00e5ff; color: #000; border-color: #00e5ff; }
.arrow-btn:disabled { opacity: .25; cursor: not-allowed; }
.arrow-btn:disabled:hover { background: #111; color: #00e5ff; border-color: #444; }
.order-num {
  display: inline-block;
  width: 26px; height: 26px; line-height: 26px;
  background: #00e5ff; color: #000;
  border-radius: 50%; text-align: center;
  font-weight: bold; font-size: 12px;
}

.stat-card {
  background: #111; padding: 24px;
  border-radius: 10px; text-align: center;
  border: 1px solid #2a2a2a;
}
.stat-card .label { font-size: 13px; color: #888; }
.stat-card .value {
  font-size: 38px; font-weight: bold;
  margin-top: 10px;
  font-family: 'Courier New', monospace;
}
.stat-card.cyan .value { color: #00e5ff; text-shadow: 0 0 16px rgba(0,229,255,.5); }
.stat-card.gold .value { color: #FFD700; text-shadow: 0 0 16px rgba(255,215,0,.5); }

.logo-edit-btn {
  padding: 6px 10px;
  background: #2a2a2a; border: 1px solid #444;
  color: #00e5ff; border-radius: 6px;
  cursor: pointer; font-size: 11px;
  margin-top: 4px;
}
.logo-edit-btn:hover { background: #00e5ff; color: #000; }

.popup-preview {
  width: 200px; height: 200px;
  border-radius: 10px;
  background: #111;
  border: 1px solid #333;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-top: 10px;
}
.popup-preview img { width: 100%; height: 100%; object-fit: cover; }
.popup-preview .empty { color: #555; font-size: 12px; }

.popup-item {
  background: #111;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  display: flex;
  gap: 12px;
  align-items: center;
}
.popup-item img {
  width: 80px; height: 80px;
  object-fit: cover; border-radius: 8px;
  flex-shrink: 0;
}
.popup-item .info { flex: 1; min-width: 0; }

.logo-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.logo-modal-box {
  background: #1c1c1c;
  border: 2px solid #FFD700;
  border-radius: 14px;
  padding: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(255,215,0,.4);
}
.logo-modal-box h3 {
  color: #FFD700;
  font-size: 18px;
  margin-bottom: 18px;
  text-align: center;
}
.logo-modal-section { margin-bottom: 18px; }
.logo-modal-section > label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.logo-modal-section input[type=text] {
  width: 100%;
  padding: 10px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
}
.logo-modal-section input[type=text]:focus {
  outline: none;
  border-color: #00e5ff;
}
.logo-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.logo-modal-btns .btn {
  padding: 10px 22px;
  font-size: 13px;
}

.favicon-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #111;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.favicon-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.favicon-preview .empty {
  color: #555;
  font-size: 11px;
  text-align: center;
  padding: 0 4px;
}

.inquiry-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.inquiry-filter {
  padding: 7px 16px;
  background: #111;
  border: 1px solid #333;
  color: #aaa;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.inquiry-filter.active {
  background: #00e5ff;
  color: #000;
  border-color: #00e5ff;
  font-weight: bold;
}

.inquiry-msg-item {
  background: #111;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  transition: .2s;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.inquiry-msg-item:hover {
  border-color: #00e5ff;
  background: #1a1a1a;
}
.inquiry-msg-item.unread {
  border-left: 4px solid #e74c3c;
}
.inquiry-msg-item .msg-preview {
  color: #ccc;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.inquiry-msg-item .msg-meta {
  color: #666;
  font-size: 11px;
  margin-top: 6px;
}
.inquiry-msg-item .msg-time {
  color: #666;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}
.inquiry-msg-item .new-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.inquiry-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.inquiry-modal-box {
  background: #1c1c1c;
  border: 2px solid #00e5ff;
  border-radius: 14px;
  padding: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.inquiry-modal-box h3 {
  color: #00e5ff;
  font-size: 18px;
  margin-bottom: 16px;
}
.inquiry-modal-box .orig-msg {
  background: #111;
  padding: 14px;
  border-radius: 8px;
  color: #ccc;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  border-left: 3px solid #FFD700;
}
.inquiry-modal-box .meta-info {
  color: #666;
  font-size: 11px;
  margin-bottom: 16px;
}
.inquiry-modal-box textarea {
  width: 100%;
  padding: 12px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 16px;
}
.inquiry-modal-box textarea:focus {
  outline: none;
  border-color: #00e5ff;
}
.inquiry-modal-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}