/* 로그인/회원가입/계정/관리자 페이지 스타일 */
/* [hidden] 속성이 .auth-form{display:flex} 등에 덮이지 않도록 보장(탭/대시보드 전환 정상화) */
[hidden] { display: none !important; }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 18px; gap: 22px; }
.auth-wrap.wide { justify-content: flex-start; padding-top: 48px; }
.auth-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 26px 22px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 940px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.auth-tab { flex: 1; padding: 11px; border-radius: 11px; border: 1px solid var(--border); background: transparent; color: var(--text-sub); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.auth-tab.active { background: var(--grad); color: #fff; border-color: transparent; }
.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-sub); }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"], .auth-form input[type="tel"] {
  padding: 12px 14px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 15px; font-family: inherit;
}
.auth-form input:focus { outline: none; border-color: var(--primary-2); }
.auth-form .btn { margin-top: 4px; }
.auth-agree { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-size: 12.5px; color: var(--text-dim); }
.auth-agree input { margin-top: 2px; }
.auth-msg { margin: 14px 0 0; padding: 10px 13px; border-radius: 10px; font-size: 13px; text-align: center; }
.auth-msg.ok { background: rgba(34,197,94,0.12); color: #34d399; border: 1px solid rgba(34,197,94,0.3); }
.auth-msg.err { background: rgba(248,113,113,0.12); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }
.auth-back { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* 계정/관리자 */
.acc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.acc-head h2 { margin: 0; font-size: 22px; }
.acc-sub { margin: 26px 0 12px; font-size: 16px; }
.acc-profile { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 6px 16px; }
.acc-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.acc-row:last-child { border-bottom: none; }
.acc-row span { color: var(--text-dim); }
.acc-empty { color: var(--text-dim); text-align: center; padding: 24px 0; }
.acc-orders { overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.acc-table th, .acc-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.acc-table thead th { color: var(--text-dim); font-weight: 700; background: var(--bg); }
.ad-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.ad-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 13px; padding: 16px 18px; }
.ad-stat span { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.ad-stat b { font-size: 22px; font-weight: 800; }
@media (max-width: 560px) { .ad-stats { grid-template-columns: 1fr; } .auth-card { padding: 22px 18px; } }

/* 구독 상태 카드 (내 계정 / 결제완료) */
.acc-sub-card { margin-bottom: 8px; }
.sub-active { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(120deg, rgba(99,102,241,0.16), rgba(168,85,247,0.16)); border: 1px solid rgba(139,92,246,0.4); }
.sub-badge { font-size: 15px; font-weight: 800; color: #c4b5fd; }
.sub-meta { font-size: 12.5px; color: var(--text-sub); }
.sub-on { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: #34d399; background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.35); }
.sub-off { color: var(--text-dim); }
.paypal-sub { display: block; font-size: 11.5px; font-weight: 600; opacity: 0.9; margin-top: 3px; }
.paypal-acc { display: block; text-align: center; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #a5b4fc; }
