:root {
  --bg: #1e1e1e;
  --surface: #121212;
  --border: rgba(255,255,255,0.12);
  --primary: rgb(59,141,255);
  --success: rgb(76,175,80);
  --info: rgb(33,150,243);
  --text: rgb(208,208,208);
  --text-weak: rgb(80,80,90);
  --appbar-h: 56px;
  --footer-h: 116px;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  font-size: 14px;
  min-height: 100vh;
  margin: 0;
}


.logo-bg {
	position: relative;
	width: 100%;

	/* 🔥 핵심: 애니 2개 동시에 적용 */
	animation: glowPulse 2s infinite alternate, floatX 4s ease-in-out infinite;
}

/* 글로우 */
@keyframes glowPulse {
	0% { filter: drop-shadow(0 0 5px rgba(0,150,255,0.5)); }
	100% { filter: drop-shadow(0 0 20px rgba(0,150,255,1)); }
}

/* 🔥 추가된 좌우 흔들림 */
@keyframes floatX {
	0%   { transform: translateX(0px); }
	50%  { transform: translateX(8px); }
	100% { transform: translateX(0px); }
}

/* 반짝 빛 레이어 */
.logo-bg::after {
	content: "";
	position: absolute;
	top: 0;
	left: -150%;
	width: 80%;
	height: 100%;

	background: linear-gradient(
		120deg,
		transparent,
		rgba(255,255,255,0.6),
		transparent
	);

	transform: skewX(-20deg);
	animation: shineMove 3.5s infinite;
}

@keyframes shineMove {
	0%   { left: -150%; }
	100% { left: 150%; }
}


/* ── APPBAR ── */
.appbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--appbar-h);
	background: transparent;

	display: flex;
	align-items: center;
	justify-content: space-between;   /* 🔥 좌우 분리 */

	padding: 0 12px;
	z-index: 100;

	flex-wrap: nowrap;   /* 🔥 줄바꿈 방지 */
}

@media (max-width: 768px) {

	.user-name {
		display: none;   /* 🔥 이름 제거 */
	}

	.appbar-btn span {
		display: none;   /* 🔥 텍스트 제거 */
	}

	.coin-wrap span {
		font-size: 12px; /* 🔥 숫자 축소 */
	}

	.appbar {
		padding: 0 8px;
	}

	.appbar-btn {
		padding: 0 0px;
	}

}

.btn-lang {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.15s;
}
.btn-lang:hover { background: rgba(255,255,255,0.06); }

/* ── MAIN ── */
.main-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  #padding: calc(var(--appbar-h) + 16px) 16px calc(var(--footer-h) + 16px);
}

.login-container {
  width: 100%;
  max-width: 600px;
}

.login-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

/* ── CARD ── */
.login-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 40px 24px;
}

/* ── FIELD LABEL ── */
.field-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

/* ── INPUT ── */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}

.input-wrap:focus-within {
  border-color: rgba(59,141,255,0.5);
}

.input-wrap.is-invalid {
  border-color: rgba(255,82,82,0.6);
}

.input-icon {
  padding: 0 12px;
  color: var(--text-weak);
  font-size: 1.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  padding: 14px 0;
  width: 100%;
}

.form-input::placeholder { color: var(--text-weak); }

.input-action {
  padding: 0 12px;
  color: var(--text-weak);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  transition: color 0.15s;
}
.input-action:hover { color: #fff; }

.invalid-msg {
  font-size: 0.75rem;
  color: rgb(255,82,82);
  margin-top: 4px;
  display: none;
}

.input-wrap.is-invalid + .invalid-msg { display: block; }

/* ── LOGIN BUTTON ── */
.btn-login {
  #width: 100%;
  height: 58px;
  border-radius: 8px;
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.35);
  color: rgb(76,175,80);
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s, filter 0.15s;
  text-decoration: none;
}

.btn-login:hover {
  background: rgba(76,175,80,0.25);
  color: rgb(76,175,80);
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ── REGISTER BUTTON ── */
.btn-register {
  #width: 100%;
  height: 58px;
  border-radius: 8px;
  background: rgba(33,150,243,0.15);
  border: 1px solid rgba(33,150,243,0.35);
  color: rgb(33,150,243);
  font-size: 1rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-register:hover {
  background: rgba(33,150,243,0.25);
  color: rgb(33,150,243);
}

/* ── FOOTER ── */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  z-index: 90;
}




@media (max-width: 768px) {

	.site-footer {
	  bottom: 0; left: 0; right: 0;
	  background: var(--surface);
	  border-top: 1px solid var(--border);
	  padding: 14px 20px;
	  z-index: 90;
	}

}

.footer-text {
  font-size: 0.72rem;
  color: var(--text-weak);
  line-height: 1.6;
}





/* 전체 */
.popup-wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
}

/* 배경 */
.popup-bg {
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.6);
}

.popup-box {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 420px;            /* 🔥 기존 320 → 420 */
	max-width: 90%;
	background: #1a1a1a;
	border-radius: 12px;
	box-shadow: 0 15px 40px rgba(0,0,0,0.8);
	color: #fff;
	overflow: hidden;
}

/* 헤더 */
.popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px;
	background: #111;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.popup-header span {
	font-size: 16px;
	font-weight: bold;
}

.popup-header button {
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}

.popup-body {
	padding: 20px;
	font-size: 1.3rem;
}

.popup-table {
	width: 100%;
	border-collapse: collapse;
}


.popup-table th,
.popup-table td {
	padding: 12px 0;
	font-size: 15px;
}

/* 푸터 */
.popup-footer {
	padding: 10px;
	text-align: center;
	border-top: 1px solid rgba(255,255,255,0.1);
}

.popup-close-btn {
	padding: 8px 20px;
	border-radius: 20px;
	border: 1px solid #ff2e7e;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: 0.3s;
}

.popup-close-btn:hover {
	background: #ff2e7e;
}

.popup-close-btn2 {
	padding: 10px 22px;
	border-radius: 30px;
	border: 1px solid rgba(255,255,255,0.2);
	background: rgba(255,255,255,0.05);
	color: #fff;
	backdrop-filter: blur(6px);
	cursor: pointer;
	transition: all 0.3s;
}

.popup-close-btn2:hover {
	background: rgba(255,255,255,0.15);
	border-color: rgba(255,255,255,0.4);
	transform: translateY(-2px);
}


.form-row {
	margin-bottom: 15px;
}

.form-row label {
	display: block;
	font-size: 13px;
	color: #aaa;
	margin-bottom: 5px;
}

.form-row input {
	width: 100%;
	padding: 10px;
	border-radius: 6px;
	border: 1px solid #333;
	background: #111;
	color: #fff;
}

.quick-btns {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.quick-btns button {
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid #333;
	background: #222;
	color: #ccc;
	font-size: 12px;
	cursor: pointer;
	transition: 0.2s;
}

.quick-btns button:hover {
	background: #ff2e7e;
	color: #fff;
	border-color: #ff2e7e;
}

.quick-btns .reset {
	background: #444;
	color: #fff;
}

.quick-btns .reset.all {
	background: #793d3d;
	color: #fff;
}

.section-title {
	position: relative;
	text-align: center;
	margin: 0px 0 20px;
}

.section-title span {
	font-size: 22px;
	font-weight: bold;
	color: #fff;
	padding: 0 20px;
	position: relative;
	z-index: 2;
}

/* 양쪽 라인 */
.section-title::before {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(
		to right,
		transparent,
		#ff2e7e,
		transparent
	);
	z-index: 1;
}






/* ===== 팝업 래퍼 ===== */
.noticepopup-wrapper {
	display: none;

	width: 100%;
	max-width: 1200px;

	position: fixed;
	left: 50%;
	top: 5%;
	transform: translate(-50%,0);

	z-index: 1090;
	padding: 10px;

	display: flex;
	justify-content: center;
	gap: 12px;

	max-height: none;
	overflow: auto;

	#backdrop-filter: blur(6px);
}

/* ===== 패널 ===== */
.noticepopup-panel {
	width: calc(33.33% - 10px);
	max-width: 360px;

	border-radius: 12px;
	overflow: auto;

	display: none;
	position: relative;

	background: rgba(33,37,41,0.95);
	border: 1px solid rgba(255,255,255,0.1);

	box-shadow:
		0 10px 30px rgba(0,0,0,0.7),
		0 0 10px rgba(255,46,126,0.3);

	transition: 0.3s;

	/* 🔥 핵심 */
	display: flex;
	flex-direction: column;      /* 세로 구조 */
	max-height: none;
}

/* ===== 활성 ===== */
.noticepopup-panel.active {
	display: flex;
	animation: popupOpenAnim 0.4s ease forwards;
}

/* ===== 애니메이션 ===== */
@keyframes popupOpenAnim {
	0% {
		opacity: 0;
		transform: translateY(20px) scale(0.9);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ===== 본문 ===== */
.noticepopup-panel .noticepopup-body {
	padding: 15px;
	color: #ddd;
	font-size: 14px;
	line-height: 1.5;

	/* 🔥 핵심 */
	flex: 1;                      /* 남은 영역 채움 */
	overflow-y: auto;             /* 스크롤 */
	min-height: 0;
	-webkit-overflow-scrolling: touch;
}

/* ===== 스크롤 ===== */
.noticepopup-body::-webkit-scrollbar {
	width: 4px;
}
.noticepopup-body::-webkit-scrollbar-thumb {
	background: #ff2e7e;
	border-radius: 2px;
}

/* ===== footer ===== */
.noticepopup-panel .noticepopup-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;

	height: 40px;
	padding: 0 12px;

	background: linear-gradient(90deg,#1a1a1a,#2a2a2a);
	border-top: 1px solid rgba(255,255,255,0.05);

	color: #aaa;
	font-size: 12px;

	/* 🔥 핵심 */
	margin-top: auto;   /* 👉 무조건 아래로 밀기 */
	flex-shrink: 0;
}

/* 체크박스 */
.noticepopup-footer label {
	display: flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

/* 닫기 버튼 */
.noticepopup-footer .close-btn {
	background: linear-gradient(135deg,#ff2e7e,#ff7b00);
	border: none;
	color: #fff;
	border-radius: 6px;
	padding: 4px 10px;
	cursor: pointer;
	transition: 0.3s;
}

/* hover */
.noticepopup-footer .close-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 5px 12px rgba(255,46,126,0.5);
}

/* 아이콘 */
.noticepopup-footer .close-btn i {
	font-size: 13px;
}

/* ===== 모바일 ===== */
@media (max-width: 768px) {

	.noticepopup-wrapper {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.noticepopup-panel {
		display: none;
		width: 90%;
		max-width: 400px;
	}

	.noticepopup-panel.active {
		display: block;
	}
}