/* ==============================================
   슥슥소프트 – 개발 외주 사이트 (게임샵 스타일)
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Outfit:wght@400;600;700;800;900&display=swap');

/* ── Variables ── */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --sidebar-bg: #0d0d0d;
  --sidebar-w: 190px;
  --topbar-h: 48px;

  --red: #e03030;
  --red-dark: #b02020;
  --red-glow: rgba(224, 48, 48, 0.35);
  --orange: #e07820;
  --gold: #d4a017;
  --gold-glow: rgba(212, 160, 23, 0.4);
  --cyan: #00e5ff;

  --border: rgba(255, 255, 255, 0.07);
  --border-red: rgba(224, 48, 48, 0.35);
  --border-gold: rgba(212, 160, 23, 0.5);

  --text: #e8e8e8;
  --text-secondary: #999;
  --text-muted: #555;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  
  /* 텍스트 드래그 및 복사 방지 */
  user-select: none;
  -webkit-user-drag: none;
}

/* 입력 필드에서는 텍스트 선택 허용 */
input, textarea {
  user-select: auto;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 3px; }

/* ==============================================
   SIDEBAR
   ============================================== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 95;
  backdrop-filter: blur(3px);
}
.sidebar-overlay.show { display: block; }

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-red);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding-bottom: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--border-red);
  background: linear-gradient(180deg, rgba(180, 20, 20, 0.1), transparent);
}


.logo-crown {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 6px var(--red));
}

.logo-main {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--red);
  display: block;
  line-height: 1;
  text-shadow: 0 0 8px var(--red-glow);
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
}

/* Search */
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
}

.sidebar-search input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.8rem;
  width: 100%;
}

.sidebar-search input::placeholder { color: var(--text-muted); }

.search-icon { font-size: 0.85rem; color: var(--text-muted); }

/* Nav */
.sidebar-nav {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition);
}

.nav-item:hover {
  background: rgba(224, 48, 48, 0.08);
  color: var(--text);
}

.nav-item.active {
  background: rgba(224, 48, 48, 0.14);
  color: #fff;
  border-right: 2px solid var(--red);
}

.nav-item-highlight {
  color: var(--red) !important;
  font-weight: 700;
}

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.nav-label { flex: 1; }

/* Categories */
.sidebar-category-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: 8px 16px 6px;
  text-transform: uppercase;
}

.sidebar-categories { flex: 1; }

.cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.cat-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.cat-item.active {
  background: rgba(224, 48, 48, 0.1);
  color: #fff;
}

.cat-icon { font-size: 0.95rem; width: 18px; text-align: center; }
.cat-label { flex: 1; }

.cat-count {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 12px;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ==============================================
   MAIN WRAPPER
   ============================================== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
}

/* ==============================================
   TOPBAR
   ============================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--topbar-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.topbar-left {
  padding: 0 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
}

.online-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #22c55e;
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: blink 1.5s ease-in-out infinite;
}

/* Ticker */
.topbar-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.ticker-track {
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--text-secondary);
  animation: ticker 28s linear infinite;
  display: inline-block;
  padding-left: 20px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Topbar Right */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  flex-shrink: 0;
}

.topbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: var(--transition);
  white-space: nowrap;
}

.topbar-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}

.topbar-cta {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 12px var(--red-glow);
}

.topbar-cta:hover {
  background: var(--red-dark);
  box-shadow: 0 0 20px var(--red-glow);
  color: #fff;
}

/* Hero CTA Button - half size with sparkle */
.hero-cta-btn {
  font-size: 0.95rem !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  animation: heroCTASparkle 1.8s ease-in-out infinite;
  position: relative;
}

@keyframes heroCTASparkle {
  0%, 100% {
    box-shadow: 0 0 10px var(--red-glow), 0 0 20px rgba(220,40,40,0.2);
    transform: scale(1);
  }
  30% {
    box-shadow: 0 0 18px var(--red-glow), 0 0 40px rgba(220,40,40,0.5), 0 0 60px rgba(255,60,60,0.2);
    transform: scale(1.04);
  }
  60% {
    box-shadow: 0 0 12px var(--red-glow), 0 0 28px rgba(220,40,40,0.3);
    transform: scale(1.01);
  }
}

.hero-cta-btn:hover {
  animation: none;
  transform: scale(1.06);
  box-shadow: 0 0 28px var(--red-glow), 0 0 55px rgba(255,60,60,0.35) !important;
  background: var(--red-dark) !important;
}

/* ==============================================
   MAIN CONTENT & PAGES
   ============================================== */
.main-content {
  flex: 1;
  overflow-y: auto;
}

.page {
  display: none;
  padding: 0 0 40px;
  max-width: 1536px;
  margin: 0 auto;
  width: 100%;
}

.page.active {
  display: block;
}

/* ==============================================
   HERO BANNER
   ============================================== */
.hero-banner {
  position: relative;
  min-height: 400px;
  padding: 40px 0;
  background:
    radial-gradient(ellipse at center, rgba(180, 20, 20, 0.35) 0%, transparent 65%),
    linear-gradient(180deg, #0f0505 0%, #0a0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(200, 30, 30, 0.4) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero-text-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-subtitle-top {
  font-size: 0.85rem;
  color: rgba(255, 100, 100, 0.8);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 20px rgba(220, 40, 40, 0.8),
    0 0 60px rgba(220, 40, 40, 0.4);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { text-shadow: 0 0 20px rgba(220,40,40,0.8), 0 0 60px rgba(220,40,40,0.4); }
  to   { text-shadow: 0 0 30px rgba(255,80,80,1),   0 0 80px rgba(220,40,40,0.7); }
}

/* ── Business Hours Sparkle ── */
.hero-hours-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 200, 80, 0.3);
  animation: hoursGlowPulse 2.2s ease-in-out infinite;
  box-shadow:
    0 0 12px rgba(255, 200, 60, 0.15),
    inset 0 0 16px rgba(255, 200, 60, 0.04);
}

@keyframes hoursGlowPulse {
  0%, 100% {
    border-color: rgba(255, 200, 80, 0.3);
    box-shadow: 0 0 10px rgba(255, 200, 60, 0.15), inset 0 0 14px rgba(255,200,60,0.04);
  }
  50% {
    border-color: rgba(255, 220, 80, 0.9);
    box-shadow:
      0 0 24px rgba(255, 200, 60, 0.55),
      0 0 50px rgba(255, 180, 30, 0.25),
      inset 0 0 20px rgba(255, 200, 60, 0.1);
  }
}

.hours-sparkle {
  font-size: 1rem;
  animation: sparkleSpin 1.8s ease-in-out infinite;
  display: inline-block;
}
.hours-sparkle.right {
  animation-delay: 0.9s;
}

@keyframes sparkleSpin {
  0%   { transform: scale(1) rotate(0deg);   opacity: 0.5; }
  25%  { transform: scale(1.4) rotate(15deg); opacity: 1; }
  50%  { transform: scale(1) rotate(0deg);   opacity: 0.5; }
  75%  { transform: scale(1.4) rotate(-15deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg);   opacity: 0.5; }
}

.hours-label {
  color: rgba(255, 210, 80, 0.9);
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: hoursLabelBlink 2.2s ease-in-out infinite;
}

@keyframes hoursLabelBlink {
  0%, 100% { color: rgba(255, 210, 80, 0.75);  text-shadow: none; }
  50%       { color: #ffe566;  text-shadow: 0 0 14px rgba(255, 230, 60, 0.9), 0 0 28px rgba(255, 200, 30, 0.5); }
}

.hours-sep {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

.hours-time {
  color: #f0f0f0;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  animation: hoursTimeBlink 2.2s ease-in-out infinite;
}

@keyframes hoursTimeBlink {
  0%, 100% { color: #e8e8e8; text-shadow: none; }
  50%       { color: #ffffff; text-shadow: 0 0 10px rgba(255,255,255,0.6); }
}

.hours-dot {
  color: rgba(255, 255, 255, 0.25);
}

.hours-weekend {
  color: rgba(180, 230, 255, 0.8);
  font-size: 0.82rem;
  animation: weekendPulse 2.2s ease-in-out infinite;
}

@keyframes weekendPulse {
  0%, 100% { color: rgba(160, 210, 255, 0.7); }
  50%       { color: rgba(120, 200, 255, 1); text-shadow: 0 0 10px rgba(100,180,255,0.6); }
}

.hero-icon-inline { margin-right: 4px; }

.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--red);
  text-shadow: 0 0 12px var(--red-glow);
  line-height: 1;
}

.hero-stat-unit {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  margin-left: 2px;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-stat-sep {
  color: var(--border-red);
  font-size: 1.5rem;
  opacity: 0.5;
}

/* ==============================================
   SECTION BLOCKS
   ============================================== */
.section-block {
  padding: 28px 28px;
  border-bottom: 1px solid var(--border);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 1.1rem;
}

.view-all-btn {
  background: var(--bg-3);
  border: 1px solid var(--border-red);
  color: var(--red);
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
}

.view-all-btn:hover {
  background: rgba(224, 48, 48, 0.12);
  box-shadow: 0 0 10px var(--red-glow);
}

/* ==============================================
   NOTICE LIST
   ============================================== */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.notice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.notice-item:last-child { border-bottom: none; }

.notice-item:hover {
  background: rgba(255,255,255,0.03);
}

.notice-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.notice-badge:not(.important) {
  background: var(--bg-3);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.notice-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.notice-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==============================================
   SERVICE GRID (카드형 – 참조 사이트 스타일)
   ============================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(224, 48, 48, 0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 15px var(--red-glow);
  transform: translateY(-3px);
}

/* Rarity borders */
.service-card.rarity-unique { border-color: rgba(212, 160, 23, 0.5); }
.service-card.rarity-unique:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 15px var(--gold-glow); }
.service-card.rarity-legendary { border-color: rgba(255, 120, 30, 0.6); }
.service-card.rarity-legendary:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 18px rgba(255,120,30,0.5); }

/* Card Badge */
.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
}

.badge-common {
  background: linear-gradient(135deg, #ff3a6e, #ff7030);
  color: #fff;
  border: 1px solid rgba(255, 80, 60, 0.6);
  text-shadow: 0 0 6px rgba(255, 60, 60, 0.8);
  animation: badgeBlink 1.4s ease-in-out infinite;
}

@keyframes badgeBlink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 60, 80, 0.8), 0 0 16px rgba(255, 80, 30, 0.4);
  }
  50% {
    opacity: 0.25;
    box-shadow: none;
  }
}

.badge-unique {
  background: rgba(212, 160, 23, 0.2);
  color: var(--gold);
  border: 1px solid rgba(212, 160, 23, 0.4);
}

.badge-legendary {
  background: rgba(255, 100, 30, 0.2);
  color: var(--orange);
  border: 1px solid rgba(255, 100, 30, 0.4);
}

/* Card Image */
.card-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-img-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  z-index: 1;
}

.web-img    { background: linear-gradient(160deg, #1a0d2e, #0d0a2e, #0a1520); }
.shop-img   { background: linear-gradient(160deg, #2a1500, #1a0d00, #2a1a00); }
.app-img    { background: linear-gradient(160deg, #0a0a20, #1a0a2e, #0a0a0a); }
.backend-img { background: linear-gradient(160deg, #100010, #200010, #100020); }
.ai-img     { background: linear-gradient(160deg, #001a10, #0a200a, #001010); }

/* Card Info */
.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.card-code {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  color: #c8a820;
}

.card-prices {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-red);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.price-qty {
  font-size: 0.72rem;
  color: #d4b840;
}

.price-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  font-family: 'Outfit', sans-serif;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-buy, .btn-cart {
  padding: 7px 4px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-buy {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px var(--red-glow);
}

.btn-buy:hover {
  background: var(--red-dark);
  box-shadow: 0 2px 14px var(--red-glow);
}

.btn-cart {
  background: var(--bg-3);
  color: var(--red);
  border: 1px solid var(--border-red);
}

.btn-cart:hover {
  background: rgba(224, 48, 48, 0.1);
}

/* ==============================================
   PROCESS
   ============================================== */
.process-grid {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.process-card {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
  transition: var(--transition);
}

.process-card:hover {
  border-color: var(--border-red);
  box-shadow: 0 0 15px var(--red-glow);
}

.proc-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--red);
  text-shadow: 0 0 10px var(--red-glow);
  line-height: 1;
  margin-bottom: 8px;
}

.proc-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.proc-title {
  font-size: 0.87rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.proc-desc {
  font-size: 0.77rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.process-arrow {
  font-size: 1.5rem;
  color: var(--red);
  opacity: 0.6;
  padding-top: 48px;
  flex-shrink: 0;
}

/* ==============================================
   REVIEWS
   ============================================== */
.review-slider-wrapper {
  width: 100%;
  padding: 10px 0 20px;
  position: relative;
}

.review-slider-track {
  display: flex;
  gap: 20px;
  padding: 10px 20px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.review-slider-track::-webkit-scrollbar { height: 8px; }
.review-slider-track::-webkit-scrollbar-track { background: transparent; }
.review-slider-track::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }

.review-card {
  width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.review-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(224, 48, 48, 0.15);
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(180,20,20,0.05), var(--bg-2));
}

.review-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 0 8px var(--gold-glow);
}

.review-text {
  font-size: 0.85rem;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 18px;
  font-weight: 500;
  flex: 1;
  word-break: keep-all;
}

.review-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
  width: 100%;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.review-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}
.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ==============================================
   PRICING
   ============================================== */
.pricing-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pricing-tab-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pricing-tab-btn:hover {
  border-color: var(--border-red);
  color: #fff;
  background: var(--bg-3);
}

.pricing-tab-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 2px 14px var(--red-glow);
}

.pricing-tab-content {
  display: none;
  animation: fadeInPricingTab 0.35s ease-in-out;
}

.pricing-tab-content.active {
  display: block;
}

@keyframes fadeInPricingTab {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-grid-single {
  max-width: 440px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.pricing-to-top {
  position: absolute;
  right: -30px; /* 더 우측으로 이동 */
  bottom: -10px; /* 50px(5셀) 위쪽으로 이동 (기존 -60px) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 60px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: var(--transition);
}

.pricing-to-top:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.arrow-up-anim {
  display: block;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
  transform: rotate(45deg);
  margin: -4px 0;
  animation: heroArrowUp 1.5s infinite;
}

.pricing-to-top:hover .arrow-up-anim {
  border-color: #ff4d4d;
  filter: drop-shadow(0 0 4px var(--red-glow));
}

.arrow-up-anim:nth-child(1) { animation-delay: 0.3s; }
.arrow-up-anim:nth-child(2) { animation-delay: 0.15s; }
.arrow-up-anim:nth-child(3) { animation-delay: 0s; }

@keyframes heroArrowUp {
  0% { opacity: 0; transform: translateY(5px) rotate(45deg); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-5px) rotate(45deg); }
}

.pricing-to-top .top-text {
  font-size: 0.7rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-top: 6px;
  transition: var(--transition);
}

.pricing-to-top:hover .top-text {
  color: #ff4d4d;
  text-shadow: 0 0 6px var(--red-glow);
}

.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 22px;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-red);
}

.pricing-card.pricing-popular {
  border-color: var(--border-red);
  background: linear-gradient(160deg, rgba(150,20,20,0.12), rgba(0,0,0,0));
  box-shadow: 0 0 25px rgba(180,20,20,0.2);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 10px var(--red-glow);
}

.pricing-tier {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.pricing-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  text-shadow: 0 0 12px var(--red-glow);
  margin-bottom: 6px;
  line-height: 1;
}

.price-unit {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.pricing-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.pricing-list li.off {
  color: var(--text-muted);
  opacity: 0.6;
}

.btn-pricing {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--bg-3);
  color: var(--red);
  border: 1px solid var(--border-red);
  transition: var(--transition);
}

.btn-pricing:hover {
  background: rgba(224, 48, 48, 0.12);
  box-shadow: 0 0 12px var(--red-glow);
}

.btn-pricing-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 2px 12px var(--red-glow);
}

.btn-pricing-primary:hover {
  background: var(--red-dark);
}

/* ==============================================
   CONTACT PAGE
   ============================================== */
.contact-page-wrap { padding: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.contact-info-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.ci-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ci-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.ci-value {
  font-size: 0.87rem;
  font-weight: 600;
}

.ci-kakao-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 7px 13px;
  background: #FEE500;
  color: #191919;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.ci-kakao-btn:hover {
  background: #f5d800;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.4);
}

.ci-kakao-icon {
  width: 1.1em;
  height: 1.1em;
  border-radius: 4px;
  object-fit: contain;
}

.guarantee-box {
  background: var(--bg-2);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  padding: 18px;
}

.guarantee-box h4 {
  font-size: 0.87rem;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 12px;
}

.guarantee-box ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guarantee-box li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}

.guarantee-box li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* Contact Form */
.contact-form-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.87rem;
  transition: var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 48, 48, 0.12);
}

.form-group select option {
  background: var(--bg-2);
  color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.date-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-range-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.date-range-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.date-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.87rem;
  transition: var(--transition);
  width: 100%;
  cursor: pointer;
}

.date-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 48, 48, 0.12);
}

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}

.date-range-sep {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 20px;
  flex-shrink: 0;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 2px 14px var(--red-glow);
}

.btn-submit:hover {
  background: var(--red-dark);
  box-shadow: 0 2px 24px var(--red-glow);
  transform: translateY(-1px);
}

.form-success {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  color: #22c55e;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* ==============================================
   PORTFOLIO
   ============================================== */
.portfolio-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.pf-filter {
  padding: 7px 16px;
  border-radius: 5px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pf-filter:hover, .pf-filter.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.portfolio-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-card:hover {
  border-color: var(--border-red);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 12px var(--red-glow);
}

.portfolio-card.hidden { display: none; }

.pf-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.web-pf    { background: linear-gradient(160deg, #1a0d2e, #0d0a2e); }
.app-pf    { background: linear-gradient(160deg, #0a0a20, #1a0a2e); }
.backend-pf { background: linear-gradient(160deg, #200010, #100020); }
.web2-pf   { background: linear-gradient(160deg, #0f3460, #16213e); }
.app2-pf   { background: linear-gradient(160deg, #1a0533, #2d1b69); }
.backend2-pf { background: linear-gradient(160deg, #003049, #0a3d62); }

.pf-info { padding: 16px; }

.pf-tag {
  display: inline-block;
  background: rgba(224, 48, 48, 0.12);
  border: 1px solid var(--border-red);
  color: var(--red);
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pf-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pf-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pf-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-stack span {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

/* ==============================================
   FLOATING ELEMENTS
   ============================================== */
.float-chat {
  position: fixed;
  right: 30px;
  bottom: 90px; /* 맨 위로 가기 버튼 위쪽에 위치 */
  z-index: 200;
  width: auto;
  height: auto;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
  transition: var(--transition);
  animation: floatChatSparkle 2s infinite ease-in-out;
}

.float-chat:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--red-glow);
}

/* Hidden only for admin */
.float-chat-hidden {
  display: none !important;
}

@keyframes floatChatSparkle {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
  }
  50% {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(255, 77, 77, 0.8), 0 0 15px rgba(255, 77, 77, 0.6);
  }
}

.float-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 200;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 15px var(--red-glow);
}

.float-top::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg) translate(2px, 2px);
  display: block;
}

.float-top.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.float-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 25px var(--red-glow);
  background: linear-gradient(135deg, #ff4d4d, var(--red));
}

/* ==============================================
   MODAL
   ============================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border-red);
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 40px rgba(224,48,48,0.25);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--red); }

.modal-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.modal-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-contact-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-kakao-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #FEE500;
  color: #191919;
  border-radius: 7px;
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  transition: var(--transition);
}

.modal-kakao-btn:hover {
  background: #f5d800;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(254, 229, 0, 0.45);
}

.btn-modal-go {
  width: 100%;
  padding: 11px;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.87rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-modal-go:hover {
  background: var(--red-dark);
  box-shadow: 0 0 15px var(--red-glow);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1200px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1000px) {
  :root { --sidebar-w: 160px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { 
    transform: translateX(-100%); 
    display: flex;
    width: 260px;
    transition: transform 0.3s ease;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .mobile-menu-btn { display: block; }
  
  .main-wrapper { margin-left: 0; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid  { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .process-grid { flex-direction: column; }
  .process-arrow { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-right .topbar-btn:not(.topbar-cta) { display: none; }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ==============================================
   AUTH MODAL
   ============================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal {
  background: var(--bg-2);
  border: 1px solid var(--border-red);
  border-radius: 16px;
  padding: 36px 38px 32px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow:
    0 0 40px rgba(224, 48, 48, 0.25),
    0 24px 60px rgba(0,0,0,0.65);
  animation: authModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authModalIn {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.auth-close:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red);
  text-shadow: 0 0 10px var(--red-glow);
}

.auth-tabs {
  display: flex;
  margin-bottom: 22px;
  background: var(--bg-3);
  border-radius: 8px;
  padding: 3px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 10px var(--red-glow);
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.88rem;
  transition: var(--transition);
}

.auth-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
  outline: none;
}

.auth-error {
  color: #ff7b7b;
  font-size: 0.78rem;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: rgba(224,48,48,0.1);
  border-radius: 6px;
  border: 1px solid rgba(224,48,48,0.3);
}

.auth-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
  box-shadow: 0 4px 16px var(--red-glow);
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--red-glow);
}

/* Email verification UI */
.auth-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-input-row input {
  flex: 1;
  min-width: 0;
}

.auth-send-code-btn {
  flex-shrink: 0;
  padding: 10px 12px;
  background: rgba(224,48,48,0.12);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.auth-send-code-btn:hover {
  background: rgba(224,48,48,0.25);
}

.auth-send-code-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-verify-btn {
  flex-shrink: 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, #2196f3, #1565c0);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(33,150,243,0.4);
}

.auth-verify-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(33,150,243,0.6);
}

.auth-timer {
  font-size: 0.72rem;
  color: var(--red);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-left: 6px;
}

.auth-verify-success {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #22c55e;
  font-weight: 600;
  padding: 6px 10px;
  background: rgba(34,197,94,0.08);
  border-radius: 6px;
  border: 1px solid rgba(34,197,94,0.25);
}

/* Toast notification */
.auth-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-3);
  border: 1px solid var(--border-red);
  border-radius: 10px;
  padding: 14px 24px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 16px var(--red-glow);
  z-index: 999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 360px;
  text-align: center;
  line-height: 1.5;
  pointer-events: none;
}

.auth-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.auth-toast .toast-code {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.18em;
  margin-top: 6px;
  text-shadow: 0 0 10px var(--gold-glow);
}

/* Topbar auth elements */
.topbar-login-btn {
  background: rgba(224,48,48,0.12) !important;
  border-color: var(--border-red) !important;
  color: var(--red) !important;
  font-weight: 700 !important;
}

.topbar-login-btn:hover {
  background: rgba(224,48,48,0.25) !important;
}

.topbar-user-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-user-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  padding: 4px 12px;
  background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: 20px;
  white-space: nowrap;
}

.topbar-logout-btn {
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
  background: var(--bg-3) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
}

.topbar-logout-btn:hover {
  border-color: var(--border-red) !important;
  color: var(--red) !important;
}

/* ==============================================
   CHAT PAGE
   ============================================== */

/* Not logged in state */
.chat-login-required {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  gap: 16px;
  text-align: center;
  padding: 40px;
}

.chat-lock-icon {
  font-size: 4rem;
  animation: lockBounce 2s ease-in-out infinite;
}

@keyframes lockBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-12px) scale(1.05); }
}

.chat-login-required h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.chat-login-required p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

.btn-chat-login {
  margin-top: 8px;
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--red-glow);
  transition: var(--transition);
}

.btn-chat-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px var(--red-glow);
}

/* Chat Popup Widget */
.chat-popup {
  position: fixed;
  bottom: 160px;
  right: 30px;
  width: 340px;
  height: 600px;
  max-height: 80vh;
  z-index: 201;
  background: var(--bg-2);
  border: 1px solid var(--border-red);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px var(--red-glow);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.chat-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--bg-2);
  border-radius: 14px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(224,48,48,0.1), transparent);
  border-bottom: 1px solid var(--border-red);
  flex-shrink: 0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-popup-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-popup-close:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .chat-popup {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    z-index: 9999;
  }
}

.chat-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--red-glow);
}

.chat-header-avatar-user {
  background: linear-gradient(135deg, #4a90e2, #2d5aa0);
  box-shadow: 0 0 14px rgba(74,144,226,0.5);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.chat-header-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.chat-header-status {
  font-size: 0.75rem;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.8);
  animation: blink 1.5s ease-in-out infinite;
  display: inline-block;
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--red-dark) transparent;
}

.chat-welcome-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.75;
}

.chat-welcome-msg span { font-size: 2.5rem; }

/* Message bubbles */
.msg-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.msg-wrapper.mine {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90e2, #2d5aa0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}

.msg-avatar.mine-av {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.msg-content {
  display: flex;
  flex-direction: column;
  max-width: 68%;
}

.msg-wrapper.mine .msg-content { align-items: flex-end; }

.msg-nick {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  padding-left: 6px;
}

.msg-bubble {
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.87rem;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

.msg-bubble.theirs {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.msg-bubble.mine {
  background: linear-gradient(135deg, var(--red), #c02020);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 10px var(--red-glow);
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 6px;
}

/* Chat input */
.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 10px 20px;
  color: var(--text);
  font-size: 0.87rem;
  transition: var(--transition);
}

.chat-input-area input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
  outline: none;
}

.chat-send-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 10px var(--red-glow);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 18px var(--red-glow);
}

/* ── Chat Tabs ── */
.chat-tabs {
  display: flex;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-tab {
  flex: 1;
  padding: 10px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  font-family: 'Noto Sans KR', sans-serif;
}

.chat-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
  background: rgba(220,40,40,0.05);
}

.chat-tab:hover:not(.active) {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* ── Chat Tab Panel ── */
.chat-tab-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.chat-tab-panel.active {
  display: flex;
}

/* ── Chat Contact Link Button ── */
.chat-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 18px;
  background: rgba(220, 40, 40, 0.08);
  border: 1px solid rgba(220, 40, 40, 0.3);
  border-radius: 20px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: 0.02em;
}

.chat-contact-link:hover {
  background: rgba(220, 40, 40, 0.15);
  border-color: rgba(220, 40, 40, 0.6);
  box-shadow: 0 2px 12px rgba(220, 40, 40, 0.2);
  transform: translateY(-1px);
}

/* ── Inline Contact Form ── */
.chat-inline-contact {
  margin: 0 16px 16px;
  background: var(--bg-3);
  border: 1px solid rgba(220, 40, 40, 0.2);
  border-radius: 12px;
  overflow: hidden;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-inline-contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(220, 40, 40, 0.07);
  border-bottom: 1px solid rgba(220, 40, 40, 0.15);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
}

.chat-inline-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
  line-height: 1;
}
.chat-inline-close:hover { color: var(--red); }

.chat-inline-contact-body {
  padding: 12px 14px 14px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red-dark) transparent;
}

.chat-inline-contact .chat-contact-field {
  padding: 0;
  margin-bottom: 10px;
}
.chat-inline-contact .chat-contact-field:first-of-type {
  margin-top: 0;
}

.chat-inline-contact .chat-contact-submit {
  width: 100%;
  font-size: 0.83rem;
  padding: 10px;
}

.chat-inline-contact .chat-contact-success {
  margin: 0 14px 12px;
}

/* ── Chat Contact Form (standalone) ── */
.chat-contact-form {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--red-dark) transparent;
}

.chat-contact-intro {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
  padding: 10px 14px;
  background: rgba(220,40,40,0.06);
  border-left: 3px solid var(--red);
  border-radius: 4px;
}

.chat-contact-field {
  margin-bottom: 12px;
}

.chat-contact-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.chat-contact-field input,
.chat-contact-field textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--text);
  font-size: 0.83rem;
  font-family: 'Noto Sans KR', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  resize: vertical;
}

.chat-contact-field input:focus,
.chat-contact-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
  outline: none;
}

.chat-contact-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
  font-family: 'Noto Sans KR', sans-serif;
  box-shadow: 0 2px 12px var(--red-glow);
}

.chat-contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--red-glow);
}

.chat-contact-success {
  margin-top: 12px;
  padding: 12px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 8px;
  color: #22c55e;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.chat-contact-notice {
  margin: 12px 16px;
  padding: 14px 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #22c55e;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  animation: noticeFadeInUp 0.4s ease;
}

.chat-contact-notice-icon {
  font-size: 1.4rem;
}

@keyframes noticeFadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Admin layout */
.chat-admin-view {
  display: flex;
  flex-direction: column;
  padding: 20px;
  height: calc(100vh - var(--topbar-h));
}

.chat-admin-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.chat-user-list-panel {
  background: var(--bg-2);
  border: 1px solid var(--border-red);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel-header {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-red);
  color: var(--red);
  background: rgba(224,48,48,0.06);
  flex-shrink: 0;
}

.chat-user-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

.chat-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.chat-user-item:hover { background: rgba(255,255,255,0.03); }

.chat-user-item.active {
  background: rgba(224,48,48,0.1);
  border-right: 3px solid var(--red);
}

.cui-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90e2, #2d5aa0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}

.cui-info { flex: 1; min-width: 0; }

.cui-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.cui-last {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.cui-unread {
  background: var(--red);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--red-glow);
}

.chat-empty-list {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.83rem;
}

.chat-admin-refresh {
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-admin-refresh button {
  width: 100%;
  padding: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.chat-admin-refresh button:hover {
  border-color: var(--border-red);
  color: var(--red);
}

.chat-admin-window-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border-red);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.chat-select-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chat-select-prompt span {
  font-size: 3.5rem;
  opacity: 0.25;
}

#admin-chat-window {
  flex-direction: column;
  height: 100%;
}

/* ==============================================
   MYPAGE
   ============================================== */
.mypage-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mypage-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.mypage-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.inquiry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-inquiry {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg-3);
  border-radius: 8px;
}

.mypage-login-required {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.mypage-login-required .lock-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.mypage-login-required h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.mypage-login-required p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ==============================================
   SCHEDULE CALENDAR
   ============================================== */
.schedule-label-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.schedule-label-wrap label {
  margin-bottom: 0;
}

.btn-schedule-cal {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-schedule-cal:hover {
  background: #2563eb;
}

.schedule-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.schedule-modal {
  background: var(--bg-1);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  border: 1px solid var(--border);
}

.schedule-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
}

.schedule-close:hover {
  color: var(--text);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.schedule-header h2 {
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}

.sch-nav-btn {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.sch-nav-btn:hover {
  background: var(--border);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex: 1;
  overflow-y: auto;
  background: var(--bg-3);
  gap: 1px;
}

.sch-day-header {
  background: var(--bg-2);
  padding: 10px 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sch-day-header.sun { color: #e74c3c; }
.sch-day-header.sat { color: #3498db; }

.sch-cell {
  background: var(--bg-1);
  min-height: 120px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sch-cell.today {
  background: #fdf6e3; /* slight yellow tint for today */
}

.sch-cell.other-month {
  opacity: 0.5;
  background: var(--bg-2);
}

/* Dark mode today background adjustment */
html[data-theme='dark'] .sch-cell.today {
  background: #2c2a22;
}

.sch-date-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.sch-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
}

.sch-today-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.sch-block {
  background: var(--bg-3);
  border-radius: 4px;
  padding: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.sch-block.green {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  box-shadow: 0 2px 5px rgba(46,204,113,0.3);
}

.sch-block.blue {
  background: linear-gradient(135deg, #2980b9, #3498db);
  box-shadow: 0 2px 5px rgba(52,152,219,0.3);
}

.sch-block.gray {
  background: linear-gradient(135deg, #7f8c8d, #95a5a6);
}

.sch-block-title {
  font-size: 0.8rem;
  margin-bottom: 2px;
  font-weight: 700;
}

.sch-block-desc {
  font-size: 0.7rem;
  opacity: 0.9;
  line-height: 1.2;
}


.style-vertical-menu { background: #fff !important; padding: 0 !important; border: 1px solid #ccc; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.style-vertical-menu .vertical-menu-item { border-bottom: 1px solid #ddd; text-align: center; }
.style-vertical-menu .vertical-menu-item:last-child { border-bottom: none; }
.style-vertical-menu .vertical-menu-item a { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 12px; text-decoration: none; color: #000 !important; font-weight: 700; font-size: 0.95rem; transition: background 0.2s ease; }
.style-vertical-menu .vertical-menu-item a:hover { background: #f9f9f9; }
.style-vertical-menu .v-menu-icon { width: 36px; height: 36px; margin-bottom: 8px; color: #555; }
.style-vertical-menu .vertical-menu-item span { letter-spacing: -0.5px; }
/* ==============================================
   GENERIC MODAL (Portfolio, Reviews)
   ============================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--bg-2);
  padding: 30px;
  border: 1px solid var(--border-red);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalIn 0.3s ease;
}

.close-btn {
  color: var(--text-muted);
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: var(--red);
}

.modal-input {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 15px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}
.modal-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

/* ==============================================
   PORTFOLIO ADMIN BUTTONS
   ============================================== */
.pf-admin-btns {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.pf-btn-edit,
.pf-btn-delete {
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.pf-btn-edit {
  background: rgba(59, 130, 246, 0.85);
  color: #fff;
}

.pf-btn-delete {
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
}

.pf-btn-edit:hover  { opacity: 0.85; transform: translateY(-1px); }
.btn-add-pf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.8), rgba(65, 105, 225, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-add-pf::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-add-pf:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-add-pf:hover::before {
  opacity: 1;
}

.btn-add-pf:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
}

.btn-add-pf span {
  position: relative;
  z-index: 1;
}

.btn-add-pf-icon {
  font-size: 1.1rem;
  font-weight: bold;
}

/* ==============================================
   REVIEW WRITE BUTTON (btn-write-rv)
   ============================================== */
.btn-write-rv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.8), rgba(0, 153, 204, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-write-rv::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-write-rv:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-write-rv:hover::before {
  opacity: 1;
}

.btn-write-rv:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.3);
}

.btn-write-rv span {
  position: relative;
  z-index: 1;
}

/* ==============================================
   REFRESH BUTTON
   ============================================== */
.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-refresh:active {
  transform: translateY(1px);
}

.btn-refresh-icon {
  font-size: 0.9rem;
}

/* ==============================================
   GRADE BADGES
   ============================================== */
.grade-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.grade-1 {
  background: rgba(156, 163, 175, 0.15);
  border: 1px solid rgba(156, 163, 175, 0.4);
  color: #9ca3af;
}

.grade-2 {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #60a5fa;
}

.grade-3 {
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.member-grade-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ==============================================
   MEMBER TABLE
   ============================================== */
.member-table-wrap {
  overflow-x: auto;
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.member-table th {
  background: var(--bg-3);
  color: var(--text-secondary);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.member-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.member-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

.grade-select {
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
}

.grade-select:focus {
  border-color: var(--red);
  outline: none;
}

.btn-grade-save {
  margin-left: 6px;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--border-red);
  border-radius: 5px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-grade-save:hover {
  background: var(--red);
  color: #fff;
}

/* ==============================================
   ADMIN DASHBOARD
   ============================================== */
.admin-tabs-container {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 15px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.admin-tab-btn:hover {
  color: var(--text);
}

.admin-tab-btn.active {
  color: var(--cyan);
}

.admin-tab-btn.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.admin-tab-content {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.admin-tab-content.active {
  display: block;
}


/* Reviews only mode */
#home.reviews-only-mode > div:not(#reviews-section) {
  display: none !important;
}
#home.reviews-only-mode #reviews-section {
  display: block !important;
}
#home.reviews-only-mode .marquee-clone {
  display: none !important;
}
#home.reviews-only-mode .review-slider-track {
  animation: none !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px;
  padding-left: 0;
  transform: none !important;
}

/* Hide write review button on home page */
#home:not(.reviews-only-mode) #btn-write-review {
  display: none !important;
}

/* Hide edit/delete buttons on home page */
#home:not(.reviews-only-mode) .review-admin-btns {
  display: none !important;
}

/* Premium Review Action Buttons */
.review-admin-btns {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.review-admin-btns.static-btns {
  position: static;
  justify-content: flex-end;
  margin-top: 12px;
}
.review-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.review-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.review-action-btn span {
  position: relative;
  z-index: 1;
}
.review-action-btn.edit-btn {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.8), rgba(0, 153, 204, 0.9));
  box-shadow: 0 4px 10px rgba(0, 229, 255, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.review-action-btn.edit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 229, 255, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.review-action-btn.delete-btn {
  background: linear-gradient(135deg, rgba(255, 75, 75, 0.8), rgba(200, 30, 50, 0.9));
  box-shadow: 0 4px 10px rgba(255, 75, 75, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.review-action-btn.delete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 75, 75, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.review-action-btn:hover::before {
  opacity: 1;
}
.review-action-btn:active {
  transform: translateY(1px);
}
.review-action-btn.edit-btn:active {
  box-shadow: 0 2px 6px rgba(0, 229, 255, 0.3);

.review-action-btn.delete-btn:active {
  box-shadow: 0 2px 6px rgba(255, 75, 75, 0.3);
}
/* Premium General Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.8), rgba(0, 102, 204, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 153, 255, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 153, 255, 0.3);
}

/* ==============================================
   GAME PORTFOLIO BOARD STYLES
   ============================================== */
.game-pf-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.game-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.game-cat-tabs .game-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.game-cat-tabs .game-filter-btn:hover {
  border-color: var(--border-red);
  color: #fff;
  transform: translateY(-1px);
}

.game-cat-tabs .game-filter-btn.active {
  background: linear-gradient(135deg, var(--red), #8a0c0c);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 14px var(--red-glow);
}

.game-modal-cat-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.game-modal-cat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1c1c22;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.game-modal-cat-label:hover {
  border-color: #555;
  color: #fff;
}

.game-modal-cat-label.active {
  background: linear-gradient(135deg, rgba(224, 48, 48, 0.2), rgba(180, 20, 20, 0.08));
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 10px rgba(224, 48, 48, 0.25);
}

.game-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .game-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .game-portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.game-portfolio-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.game-portfolio-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(224, 48, 48, 0.2);
}

.game-card-media {
  height: 180px;
  background: #09090e;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.game-card-media video,
.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-portfolio-card:hover .game-card-media img {
  transform: scale(1.05);
}

.game-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 2.4rem;
}

.game-media-placeholder span {
  font-size: 0.78rem;
}

.game-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.game-card-badge.badge-lineage {
  background: rgba(210, 35, 35, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 100, 100, 0.3);
}

.game-card-badge.badge-darkeden {
  background: rgba(140, 30, 180, 0.88);
  color: #fff;
  border: 1px solid rgba(200, 100, 255, 0.3);
}

.game-card-badge.badge-maplestory {
  background: rgba(230, 120, 20, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 180, 100, 0.3);
}

.game-card-badge.badge-etc {
  background: rgba(30, 120, 220, 0.88);
  color: #fff;
  border: 1px solid rgba(100, 180, 255, 0.3);
}

.game-video-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.game-card-info {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 8px;
}

.game-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.game-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.game-stack-tag {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--text-muted);
}

.game-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.game-admin-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.game-admin-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  outline: none;
  font-family: inherit;
}

.game-admin-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.game-admin-btn.del-btn:hover {
  background: #c0392b;
  border-color: #c0392b;
}

