/* ==========================================================================
   AUTH & SUBSCRIPTION PAGES EXTENSION STYLES
   ========================================================================== */

/* Top Nav Action Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-nav-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(255, 77, 255, 0.2), rgba(157, 78, 221, 0.25));
  border: 1px solid var(--neon-pink);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(255, 77, 255, 0.2);
}
.btn-nav-sub:hover {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 77, 255, 0.5);
  transform: translateY(-1px);
}
/* display는 layout.css가 정한다 — 여기서 다시 주면 모바일(620px 이하)에서 숨기는 규칙을 덮는다. */
.btn-nav-auth {
  align-items: center;
  padding: 6px 14px;
  background: rgba(18, 8, 34, 0.7);
  border: 1px solid var(--border-box-bright);
  border-radius: var(--radius-pill);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-nav-auth:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
}

/* Standalone Page Common Header / Layout */
.page-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 10;
}
.page-header-simple {
  text-align: center;
  margin-bottom: 40px;
}
.page-badge-pill {
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  color: var(--pink-ink);
  background: rgba(255, 77, 255, 0.12);
  border: 1px solid rgba(255, 77, 255, 0.4);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.subpage-hero .page-main-title,
.page-main-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.35;
  color: #d8b4fe !important;
  margin-bottom: 12px;
}
.subpage-hero .page-sub-title,
.page-sub-title {
  font-size: 16px;
  color: #ffffff !important;
  line-height: 1.65;
  opacity: 1 !important;
}

/* Auth Card Styles */
.auth-box-wrap {
  max-width: 480px;
  margin: 0 auto;
}
.auth-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-box-bright);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 20px 50px var(--shadow-deep), 0 0 30px rgba(157, 78, 221, 0.25);
  position: relative;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-card-inner);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-box-purple);
  margin-bottom: 28px;
}
.auth-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
}
.auth-tab-btn.active {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 77, 255, 0.35);
}

/* Social Login Buttons */
.social-login-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.btn-social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-social.kakao {
  background: #fee500;
  color: #191919;
}
.btn-social.kakao:hover {
  background: #fada0a;
  transform: translateY(-1px);
}
.btn-social.naver {
  background: #03c75a;
  color: #ffffff;
}
.btn-social.naver:hover {
  background: #02b350;
  transform: translateY(-1px);
}
.btn-social.google {
  background: #ffffff;
  color: #333333;
}
.btn-social.google:hover {
  background: #f2f2f2;
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 16px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-box-purple);
}

/* Form Controls */
.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
}
.input-cyber {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-pure);
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.input-cyber:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255, 77, 255, 0.35);
  background: rgba(21, 9, 42, 0.95);
}
.input-cyber::placeholder {
  color: var(--text-muted);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* 좁은 화면에서는 두 칸이 들어갈 자리가 없다. 접지 않으면 가로 스크롤이 생긴다. */
@media (max-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: var(--text-sub);
  margin-top: -4px;
}
.cyber-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.cyber-checkbox input {
  accent-color: var(--neon-pink);
}
.link-muted {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.link-muted:hover {
  color: var(--neon-cyan);
}
.btn-submit-glow {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #cb23a2 0%, #98146e 100%);
  border: 1px solid rgba(255, 200, 245, 0.4);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(203, 35, 162, 0.45);
  margin-top: 6px;
}
.btn-submit-glow:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #d9299b 0%, #a81779 100%);
  box-shadow: 0 8px 25px rgba(203, 35, 162, 0.65);
}

.auth-footer-note {
  margin-top: 22px;
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
}
.auth-footer-note a {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 700;
}
.auth-status {
  margin: 0 0 16px;
  color: var(--neon-cyan);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.auth-signed-hello {
  margin: 8px 0 6px;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}
.auth-signed-email {
  margin: 0 0 16px;
  text-align: center;
  color: var(--text-muted);
  word-break: break-all;
}
.auth-card [hidden] {
  display: none !important;
}
.btn-social:disabled,
.btn-submit-glow:disabled,
.input-cyber:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.welcome-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.welcome-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.welcome-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-sub);
}
.welcome-hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.welcome-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.welcome-choice {
  border: 1px solid var(--border-box-purple);
  background: var(--bg-card-inner);
  color: var(--text-pure);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.welcome-choice[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #ffffff;
  border-color: transparent;
}
.welcome-home {
  margin-top: 6px;
}
.auth-box-wrap:has(.welcome-form) {
  max-width: 560px;
}
.welcome-signal {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 6px auto 16px;
}
.welcome-ring,
.welcome-core {
  position: absolute;
  inset: 0;
}
.welcome-ring {
  border: 1.5px solid var(--neon-pink);
  border-radius: 50%;
  opacity: 0;
  animation: welcomePulse 2.4s ease-out infinite;
}
.welcome-ring:nth-child(2) { animation-delay: 0.8s; }
.welcome-ring:nth-child(3) { animation-delay: 1.6s; }
.welcome-core {
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  animation: welcomeCore 2.4s ease-in-out infinite;
}
@keyframes welcomePulse {
  0% { transform: scale(0.45); opacity: 0.75; }
  100% { transform: scale(1.15); opacity: 0; }
}
@keyframes welcomeCore {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-ring,
  .welcome-core { animation: none; }
  .welcome-ring { opacity: 0.4; }
  .welcome-ring:nth-child(1) { transform: scale(0.62); }
  .welcome-ring:nth-child(2) { transform: scale(0.82); }
  .welcome-ring:nth-child(3) { transform: scale(1); }
}
.welcome-lead {
  margin: 0 auto 14px;
  max-width: 28em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-sub);
}
.welcome-beats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.welcome-beats li {
  border: 1px solid var(--border-box-purple);
  background: var(--bg-card-inner);
  color: var(--text-pure);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
}
.welcome-name-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.welcome-name-row .input-cyber {
  flex: 1;
  min-width: 0;
}
.welcome-check {
  flex: 0 0 auto;
  border: 1px solid var(--neon-pink);
  background: transparent;
  color: var(--neon-pink);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.welcome-check:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.welcome-check:focus-visible,
.welcome-choice:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}
.welcome-name-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.welcome-name-status[data-kind="ok"] { color: var(--neon-cyan); }
.welcome-name-status[data-kind="bad"] { color: var(--neon-pink); }
@media (max-width: 560px) {
  .auth-card.welcome-form {
    padding: 24px 18px;
  }
}

/* Subscription Pricing Styles */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}
.pricing-toggle-box {
  display: flex;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-box-purple);
  padding: 5px;
  border-radius: var(--radius-pill);
}
.btn-toggle-period {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-toggle-period.active {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 77, 255, 0.35);
}
.discount-badge-neon {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 16px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  animation: pulseNeon 2s infinite ease-in-out;
}
@keyframes pulseNeon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

.plan-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-box-bright);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 12px 30px var(--shadow-card);
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-pink);
}
.plan-card.featured {
  background: linear-gradient(180deg, rgba(28, 12, 50, 0.95) 0%, rgba(18, 8, 34, 0.95) 100%);
  border: 2px solid var(--neon-pink);
  box-shadow: 0 18px 40px rgba(255, 77, 255, 0.25), 0 0 25px rgba(255, 77, 255, 0.3);
  transform: scale(1.03);
  z-index: 2;
}
@media (max-width: 900px) {
  .plan-card.featured { transform: none; }
}

.plan-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-hotpink));
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 46, 147, 0.4);
}
.plan-header {
  margin-bottom: 20px;
  text-align: center;
}
.plan-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-pure);
  margin-bottom: 6px;
}
.plan-desc {
  font-size: 16px;
  color: var(--text-muted);
  min-height: 34px;
}
.plan-price-box {
  margin: 18px 0 24px;
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-box-purple);
}
.price-original {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  display: block;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--text-pure);
  line-height: 1.1;
}
.price-unit {
  font-size: 16px;
  color: var(--text-sub);
  font-weight: 600;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}
.plan-features-list li {
  font-size: 16px;
  color: var(--text-sub);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.plan-features-list li .ico-chk {
  color: var(--neon-cyan);
  font-weight: 900;
  flex-shrink: 0;
}
.plan-features-list li.highlight-item {
  color: var(--text-pure);
  font-weight: 700;
}
.plan-features-list li.highlight-item .ico-chk {
  color: var(--pink-ink);
}

.btn-plan-select {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 800;
  border: 1px solid var(--border-box-bright);
  background: var(--bg-card-inner);
  color: var(--text-pure);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  text-decoration: none;
}
.btn-plan-select:hover {
  background: var(--border-box-purple);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}
.plan-card.featured .btn-plan-select {
  background: linear-gradient(135deg, #cb23a2 0%, #98146e 100%);
  border: 1px solid rgba(255, 200, 245, 0.4);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(203, 35, 162, 0.45);
}
.plan-card.featured .btn-plan-select:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #d9299b 0%, #a81779 100%);
  box-shadow: 0 8px 28px rgba(203, 35, 162, 0.65);
}

/* Feature Comparison Table */
.comparison-section {
  margin-top: 60px;
}
.comparison-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1.5px solid var(--border-box-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px var(--shadow-deep);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 16px;
}
.comparison-table th,
.comparison-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-box-purple);
}
.comparison-table th {
  background: var(--bg-card-inner);
  color: var(--text-pure);
  font-weight: 800;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  padding-left: 24px;
  font-weight: 700;
  color: var(--text-sub);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table .highlight-col {
  background: rgba(255, 77, 255, 0.05);
  font-weight: 800;
  color: var(--pink-ink);
}

/* Trust / Guarantee Badge Bar */
.trust-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 50px 0 20px;
}
@media (max-width: 768px) {
  .trust-banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.trust-item-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-box-purple);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}
.trust-icon {
  font-size: 26px;
  margin-bottom: 8px;
  display: block;
}
.trust-item-box strong {
  font-size: 16px;
  color: var(--text-pure);
  display: block;
  margin-bottom: 4px;
}
.trust-item-box span {
  font-size: 16px;
  color: var(--text-muted);
}

/* Toast Message */
.toast-cyber {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 8, 34, 0.95);
  border: 1px solid var(--neon-cyan);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast-cyber.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   GLOBAL COMMON FOOTER (공통 푸터 글래스모피즘 디자인 시스템)
   ========================================================================== */
.footer-section {
  width: 100%;
  background: linear-gradient(180deg, rgba(8, 3, 24, 0.85) 0%, rgba(4, 1, 14, 0.98) 100%);
  border-top: 1px solid var(--border-box-purple);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
  margin-top: 80px;
  padding-bottom: 30px;
}

/* Reserve the fixed bar only where the touch navigation is actually visible. */
@media (max-width: 1024px) and (hover: none),
       (max-width: 1024px) and (pointer: coarse) {
  .footer-section {
    padding-bottom: calc(30px + var(--quick-bar-reserved-space));
  }
}

.footer-inner-glass {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px 30px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 77, 255, 0.1);
}

.footer-brand-col {
  padding-right: 16px;
}

.footer-brand-logo {
  display: inline-block;
  margin-bottom: 14px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.footer-brand-logo:hover {
  transform: scale(1.03);
}
.footer-brand-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(203, 35, 162, 0.4));
}

.footer-slogan {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 18px;
}
.footer-slogan strong {
  color: var(--neon-cyan);
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.footer-trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-trust-tags .trust-badge {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-box-purple);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.footer-col-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 6px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 20px;
  height: 2px;
  background: var(--neon-pink);
  border-radius: 2px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link-list li a {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}
.footer-link-list li a:hover {
  color: var(--neon-cyan);
  transform: translateX(4px);
}
.footer-link-list li a.highlight-pink {
  color: var(--pink-ink);
  font-weight: 700;
}
.footer-link-list li a.highlight-pink:hover {
  color: #ff77ea;
}

.footer-info-text {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.7;
}
.footer-info-text strong {
  color: var(--text-pure);
}

.footer-bottom-bar {
  padding-top: 24px;
}

.footer-legal-notice {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--text-pure) 6%, transparent);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border-box-bright);
}

.footer-copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright-row .copyright {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}
.footer-quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* 좁은 화면에서 한 줄에 다 못 들어가면 접힌다 — 가로 스크롤 방지 */
  gap: 8px;
}
.footer-quick-links a {
  font-size: 16px;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-quick-links a:hover {
  color: var(--pink-ink);
  text-decoration: underline;
}
.footer-quick-links .sep {
  color: var(--border-box-purple);
  font-size: 16px;
}

/* 인증 마크는 푸터 오른쪽 한 줄. 같은 칸에 마크를 더 넣으면 오른쪽 정렬로 붙는다. */
.footer-marks {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  min-height: 64px;
}
.footer-mark {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* 우측 하단 AI 상담 버튼(right 20px, 56px)이 마크 글자를 가리지 않게 당긴다.
   푸터 칸은 최대 1100px이라 뷰포트가 1230px보다 넓으면 버튼과 이미 떨어진다. */
@media (max-width: 1230px) {
  .footer-marks {
    padding-right: 68px;
  }
}

@media (max-width: 900px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand-col {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-brand-col {
    grid-column: span 1;
  }
  .footer-copyright-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-marks {
    min-height: 56px;
  }
  .footer-mark {
    height: 56px;
  }
}

/* ==========================================================================
   GLOBAL CYBER POLICY MODAL
   ========================================================================== */
.cyber-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 1, 14, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cyber-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.cyber-modal-box {
  background: #0d0526;
  border: 1px solid var(--border-box-bright);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(203, 35, 162, 0.25);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cyber-modal-backdrop.active .cyber-modal-box {
  transform: scale(1);
}
.cyber-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-box-purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cyber-modal-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-pure);
  margin: 0;
}
.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
.btn-modal-close:hover {
  color: var(--pink-ink);
}
.cyber-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.7;
}
.cyber-modal-body h4 {
  font-size: 16px;
  color: var(--neon-cyan);
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}
.cyber-modal-body h4:first-child {
  margin-top: 0;
}
.cyber-modal-body p {
  margin: 0 0 10px;
}
.cyber-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-box-purple);
  display: flex;
  justify-content: flex-end;
}
.btn-modal-confirm {
  background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
  color: #ffffff;
  border: none;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn-modal-confirm:hover {
  opacity: 0.9;
}

/* 움직임 줄이기 — 사이트 전체의 애니메이션·전환을 끈다. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   마이페이지 레이아웃
   ========================================================================== */
.mypage-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.mypage-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 760px) {
  .mypage-top-grid,
  .mypage-partners-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
