@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  /* 🍁 2026 팬더킹컴퍼니 가을(Autumn) 프리미엄 테마 토큰 */
  --primary: #C84E1A;          /* 따뜻한 메이플 테라코타 단풍 */
  --primary-hover: #A83C0C;    /* 진한 단풍 앰버 */
  --primary-light: #FBECE0;    /* 포근한 살구 밀크/단풍 쉬폰 */
  --primary-dark: #842A07;     /* 깊은 단풍나무 껍질 */
  --secondary: #7A6758;        /* 구운 도토리 웜 브라운 */
  --secondary-light: #F5ECE2;  /* 따스한 토스트 오트밀 */
  --dark: #241710;             /* 깊고 풍부한 구운 에스프레소 월넛 */
  --bg-page: #FAF5ED;          /* 가을 아침 햇살 웜 아이보리 린넨 */
  --bg-cream: #F3E8D9;         /* 볶은 밤/도토리 웜 크림 */
  --bg-card: #FFFFFF;          /* 소프트 웜 화이트 */
  --gold: #D98218;             /* 황금빛 은행나무 앰버 골드 */
  --gold-light: #FDF1D8;       /* 은은한 꿀빛 은행잎 */
  --forest-green: #2B6B4C;     /* 늦가을 잣나무 솔잎 그린 */
  --forest-light: #E3F0E8;     /* 솔잎 미스트 */
  --bad: #BD3838;              /* 잘 익은 홍옥 사과 레드 */
  --bad-light: #FCE8E8;
  --text-main: #241710;        /* 다크 월넛 메인 텍스트 */
  --text-muted: #746255;       /* 포근한 코코아 서브 텍스트 */
  --text-faint: #A28F81;       /* 가을 안개 페인트 텍스트 */
  --border: #EADBCA;           /* 따스한 가을 양피지 보더 */
  --border-subtle: #F0E5D7;    /* 은은한 안쪽 경계선 */

  /* 웜 앰버 & 체스넛 깊이감 섀도우 */
  --shadow-xs: 0 1px 3px rgba(60, 32, 14, 0.07), 0 2px 5px -2px rgba(60, 32, 14, 0.08);
  --shadow-sm: 0 2px 8px -2px rgba(60, 32, 14, 0.08), 0 8px 18px -8px rgba(60, 32, 14, 0.16);
  --shadow-md: 0 4px 12px -2px rgba(60, 32, 14, 0.09), 0 16px 32px -12px rgba(60, 32, 14, 0.22);
  --shadow-lg: 0 6px 20px -4px rgba(60, 32, 14, 0.11), 0 24px 48px -14px rgba(60, 32, 14, 0.28);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Apple SD Gothic Neo', 'Pretendard Variable', Pretendard, 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Apple SD Gothic Neo', 'Pretendard Variable', Pretendard, 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  --font-mono: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Apple SD Gothic Neo', 'Pretendard Variable', Pretendard, 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;

  /* 가을 프리미엄 그라데이션 */
  --autumn-bg-glow: 
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(224, 140, 35, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 700px 450px at 90% 15%, rgba(200, 78, 26, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 800px 600px at 50% 90%, rgba(223, 143, 24, 0.05) 0%, transparent 70%);
  --autumn-hero-glow: radial-gradient(circle at 92% 10%, rgba(224, 140, 24, 0.18) 0%, rgba(200, 78, 26, 0.08) 40%, transparent 70%);
  --autumn-btn-gradient: linear-gradient(135deg, #CF531D 0%, #A83C0C 100%);
  --autumn-btn-hover: linear-gradient(135deg, #DE5E26 0%, #B84310 100%);
  --autumn-badge-gradient: linear-gradient(135deg, rgba(200, 78, 26, 0.14) 0%, rgba(217, 130, 24, 0.2) 100%);
  --autumn-dark-gradient: linear-gradient(135deg, #2E1F18 0%, #1E140F 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  background-color: var(--bg-page);
  background-image: var(--autumn-bg-glow);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 104px; /* 플로팅 하단 네비게이션 공간 */
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 15px;
}

input[type="radio"], input[type="checkbox"], input[type="range"] {
  accent-color: var(--primary);
}

/* 컨테이너 */
.app-container {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 16px;
}

@media (min-width: 768px) {
  .app-container {
    max-width: 820px;
    padding: 24px 20px;
  }
}

/* 가을 테마 헤더 */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 237, 0.88);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(218, 185, 150, 0.35);
  box-shadow: 0 4px 20px -8px rgba(60, 32, 14, 0.08);
}

.top-nav-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--dark);
}

.brand-mascot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background: var(--primary-light);
  box-shadow: 0 2px 8px rgba(200, 78, 26, 0.25), 0 0 0 2px rgba(217, 130, 24, 0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.brand-mascot:hover {
  transform: rotate(-8deg) scale(1.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  padding: 5px 10px 5px 6px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.user-badge .user-name {
  display: inline-block !important;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}

.user-badge .role-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(200, 78, 26, 0.2);
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.qr-btn {
  background: var(--bg-card);
  padding: 8px 11px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.qr-btn:hover {
  background: var(--secondary-light);
  color: var(--dark);
  border-color: rgba(200, 78, 26, 0.3);
}

.qr-btn:hover {
  background: var(--secondary-light);
  color: var(--dark);
}

/* 헤더 알림벨 · 사용자 배지 세부 */
.nav-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  color: #4A463E;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

/* 주의 환기: 종 흔들림 + 퍼지는 링 + 말풍선 */
.nav-bell.attn { color: var(--primary); }
.nav-bell.attn svg { transform-origin: 50% 14%; animation: bellRing 4.5s ease-in-out infinite; }
.nav-bell.attn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--primary); opacity: 0; pointer-events: none;
  animation: bellPing 2.6s ease-out infinite;
}
@keyframes bellRing {
  0%, 62%, 100% { transform: rotate(0); }
  66% { transform: rotate(18deg); } 70% { transform: rotate(-16deg); } 74% { transform: rotate(12deg); }
  78% { transform: rotate(-9deg); } 82% { transform: rotate(5deg); } 86% { transform: rotate(0); }
}
@keyframes bellPing { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.75); opacity: 0; } }

#nav-notif-bubble {
  position: fixed; z-index: 10000; max-width: min(270px, 82vw);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.85); transform-origin: calc(100% - var(--tail-right, 24px) - 6px) 0;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  cursor: pointer;
}
#nav-notif-bubble.show {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  animation: bubblePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#nav-notif-bubble .bubble-in {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--dark); color: #FFF; border-radius: 14px; padding: 10px 8px 10px 14px;
  font-size: 12.5px; font-weight: 800; line-height: 1.35; box-shadow: var(--shadow-lg);
  animation: bubbleFloat 2.4s ease-in-out 0.5s infinite;
}
#nav-notif-bubble .bubble-in::before {
  content: ""; position: absolute; top: -5px; right: var(--tail-right, 24px);
  width: 12px; height: 12px; background: var(--dark); transform: rotate(45deg); border-radius: 3px;
}
#nav-notif-bubble .bubble-text { position: relative; }
#nav-notif-bubble .bubble-x {
  position: relative; flex-shrink: 0; width: 22px; height: 22px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.8); font-size: 15px; line-height: 1; cursor: pointer; padding: 0;
}
@keyframes bubblePop { 0% { transform: translateY(-6px) scale(0.6); } 100% { transform: none; } }
@keyframes bubbleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .nav-bell.attn svg, .nav-bell.attn::after, #nav-notif-bubble .bubble-in, #nav-notif-bubble.show { animation: none; }
  .nav-bell.attn::after { opacity: 0.4; }
}

.nav-bell-count {
  position: absolute;
  top: -3px;
  right: -4px;
  background: var(--primary);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  padding: 0 4px;
  border: 2px solid #FFF;
}

.user-badge .logout-btn {
  margin-left: 2px;
  color: var(--text-faint);
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-badge .logout-btn:hover {
  background: var(--bg-cream);
  color: var(--dark);
}

.user-badge .admin-link {
  background: var(--dark);
  color: #FFF;
  text-decoration: none;
  font-size: 11px;
  padding: 3px 6px;
}

.qr-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  font-size: 0;
  flex-shrink: 0;
}

.qr-btn::before {
  content: "";
  width: 17px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A463E' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Cpath d='M14 14h3v3h-3zM20 14v.01M14 20h.01M17 20h3v-3'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 480px) {
  .top-nav {
    padding: 10px 12px;
  }
  .top-nav-inner {
    gap: 8px;
  }
  .brand {
    font-size: 15px;
    gap: 7px;
  }
  .brand-mascot {
    width: 32px;
    height: 32px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-bell {
    width: 34px;
    height: 34px;
  }
  .user-badge {
    gap: 5px;
    padding: 4px 8px 4px 5px;
    font-size: 12.5px;
    flex-shrink: 0;
  }
  .user-badge .user-name {
    display: inline-block !important;
    font-size: 12.5px;
    font-weight: 800;
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .user-badge .role-tag {
    font-size: 10.5px;
    padding: 2px 6px;
  }
  .qr-btn {
    padding: 6px 9px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .user-badge .role-tag:not(.admin-link) {
    display: none;
  }
  .user-badge .user-name {
    max-width: 95px;
  }
  .qr-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
}

@media (max-width: 350px) {
  .brand > span {
    display: none;
  }
}

/* 헤더가 좁을 때 줄바꿈 대신 말줄임 */
.top-nav-inner { gap: 10px; }
.brand { min-width: 0; flex: 1 1 auto; }
.brand > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand-mascot { flex-shrink: 0; }
.brand a { min-width: 0; }
.brand a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-actions { flex-shrink: 0; }
.user-badge { white-space: nowrap; flex-shrink: 0; }
.user-badge .role-tag { white-space: nowrap; }

.nav-back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-cream);
  color: #4A463E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none; box-shadow: var(--shadow-xs);
  }
.nav-back svg { width: 16px; height: 16px; }
.nav-back:active { transform: scale(0.94); }

/* 하단 플로팅 네비게이션 (가을 딥 에스프레소 월넛 아크릴) */
.bottom-nav {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: 500px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(35, 23, 16, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(217, 130, 24, 0.24);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: space-between;
  gap: 2px;
  padding: 6px;
  box-shadow: 0 18px 40px -12px rgba(35, 23, 16, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #BFAEA0;
  transition: var(--transition);
  padding: 7px 4px 6px;
  border-radius: var(--radius-full);
}

.bottom-nav-item .icon {
  display: flex;
  transition: var(--transition);
}

.bottom-nav-item .icon svg {
  width: 20px;
  height: 20px;
}

.bottom-nav-item:hover {
  color: #FFF;
}

.bottom-nav-item.active {
  color: #FFFFFF;
  background: var(--autumn-btn-gradient);
  box-shadow: 0 6px 18px -4px rgba(200, 78, 26, 0.85);
}

/* 카드 기본 스타일: 은은한 가을 웜 보더 + 소프트 체스넛 섀도 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 78, 26, 0.25);
}

/* 잔고 위젯 카드 (가을 엠버 골드 오라) */
.balance-card {
  background: var(--bg-card);
  color: var(--dark);
  border: 1px solid var(--border-subtle);
  border-radius: 26px;
  padding: 22px 20px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.balance-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 180px;
  background: var(--autumn-hero-glow);
  pointer-events: none;
  border-radius: 0 26px 0 0;
}

.balance-card-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.balance-mascot {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: -8px;
  filter: drop-shadow(0 10px 16px rgba(60, 30, 14, 0.22));
}

.balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.balance-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.balance-amount-wrapper {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}

.balance-amount {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.balance-unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}

.balance-actions {
  display: flex;
  gap: 8px;
}

.btn-balance-action {
  flex: 1;
  background: var(--autumn-btn-gradient);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 10px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 6px 18px -4px rgba(200, 78, 26, 0.45);
}

.btn-balance-action:hover {
  background: var(--autumn-btn-hover);
  box-shadow: 0 10px 24px -4px rgba(200, 78, 26, 0.65);
  transform: translateY(-1px);
}

/* 버튼 */
.btn-primary {
  background: var(--autumn-btn-gradient);
  color: #FFF;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 22px -6px rgba(200, 78, 26, 0.55);
  transition: var(--transition);
  width: 100%;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
}

.btn-primary:hover {
  background: var(--autumn-btn-hover);
  box-shadow: 0 12px 28px -6px rgba(200, 78, 26, 0.7);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary:disabled {
  background: #D8D4CB;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-cream);
  color: var(--dark);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0; box-shadow: var(--shadow-xs);
  }

.btn-secondary:hover {
  background: #ECEAE4;
}

/* 인풋 */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  background: var(--bg-cream);
  color: var(--text-main);
  transition: var(--transition);
  outline: none;
  font-size: 16px; /* iOS 자동 확대 방지 */
}

.form-control:focus {
  border-color: var(--primary);
  background: #FFF;
  box-shadow: 0 0 0 4px rgba(193, 89, 46, 0.12);
}

/* 우수사원 배너 (다크 스포트라이트) */
.best-employee-banner {
  background: var(--dark);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 34px -18px rgba(20, 19, 15, 0.55);
}

.best-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #E3C9A8;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.best-emp-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.best-emp-avatar {
  font-size: 34px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #2A2822;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.best-emp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.best-emp-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 3px;
}

.best-emp-info p {
  font-size: 12.5px;
  color: #BDB6A6;
  line-height: 1.45;
}

/* 오늘의 뉴스 (뉴스앱 스타일 헤드라인 카드) */
.news-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 16px 18px 14px;
  margin-bottom: 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.news-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #CF531D;
  box-shadow: 0 0 0 3px rgba(207, 83, 29, 0.22);
  animation: news-badge-pulse 1.6s ease-in-out infinite;
}

@keyframes news-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.news-all-btn {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  padding: 4px 2px;
}

.news-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.news-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.news-body.dragging {
  cursor: grabbing;
  transition: none !important;
}

.news-body.snap {
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.28s ease;
}

.news-info {
  flex: 1;
  min-width: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.news-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
}

.news-cat.hot {
  color: #FFF;
  background: #E5344B;
  padding: 1px 7px;
  border-radius: 5px;
}

.news-time {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 600;
}

.news-time::before {
  content: "·";
  margin-right: 6px;
  color: #D8D4CB;
}

.news-info h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.38;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-summary {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-icon {
  font-size: 30px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px; box-shadow: var(--shadow-xs);
  }

.news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.news-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.news-dots span {
  width: 5px;
  height: 4px;
  border-radius: 2px;
  background: #E6E3DC;
  transition: var(--transition);
}

.news-dots span.active {
  background: var(--primary);
  width: 16px;
}

.news-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-faint);
  flex-shrink: 0;
}

/* 사원증 (ID Card) */
.id-card-preview {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
}

.id-card-preview::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 130, 24, 0.22) 0%, rgba(200, 78, 26, 0.12) 50%, transparent 75%);
  filter: blur(35px);
  pointer-events: none;
}

.id-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 18px;
  position: relative;
}

.id-card-header .logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.id-card-avatar-box {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--bg-cream);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border: 4px solid #FFF;
  box-shadow: 0 10px 24px -10px rgba(20, 19, 15, 0.35);
  overflow: hidden;
  position: relative;
}

.id-card-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.id-card-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.id-card-position {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.id-card-details {
  text-align: left;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
}

.id-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #E9E6DF;
}

.id-card-row:last-child {
  border-bottom: none;
}

.id-card-row .lbl {
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}

.id-card-row .val {
  color: var(--dark);
  font-weight: 700;
  text-align: right;
}

/* 상점 아이템 그리드 */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 500px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shop-item-card {
  background: #FFF;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.shop-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.shop-item-icon {
  font-size: 30px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px; box-shadow: var(--shadow-xs);
  }

.shop-item-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 5px;
}

.shop-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  flex-grow: 1;
}

.shop-item-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.shop-item-price {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.btn-buy {
  width: 100%;
  background: var(--dark);
  color: #FFF;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-buy:hover {
  background: var(--primary);
}

/* 쿠폰 보관함 */
.coupon-item {
  background: #FFF;
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.coupon-item.used {
  opacity: 0.55;
  background: #FAFAF8;
  filter: grayscale(0.6);
}

.coupon-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coupon-icon {
  font-size: 26px;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coupon-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
}

.coupon-date {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-use-coupon {
  background: var(--forest-green);
  color: #FFF;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 16px -8px rgba(15, 109, 92, 0.7);
  transition: var(--transition);
}

.btn-use-coupon:hover {
  background: #0B5A4B;
}

/* 모달 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 19, 15, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #FFF;
  width: 100%;
  max-width: 440px;
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalPop {
  0% { transform: translateY(16px) scale(0.97); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-cream);
  font-size: 15px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; box-shadow: var(--shadow-xs);
  }

/* 간편 금액 칩 */
.chip-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.chip {
  flex: 1;
  background: var(--bg-cream);
  border: 1.5px solid transparent;
  padding: 9px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  transition: var(--transition); box-shadow: var(--shadow-xs);
  }

.chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* 거래 내역 리스트 */
.tx-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tx-item {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.tx-item:last-child {
  border-bottom: none;
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tx-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0; box-shadow: var(--shadow-xs);
  }

.tx-desc {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.tx-time {
  font-size: 11px;
  color: var(--text-faint);
}

.tx-amount {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.tx-amount.plus {
  color: var(--forest-green);
}

.tx-amount.minus {
  color: var(--dark);
}

/* ===== 로그/거래장부 리디자인 (2026-09-29) — 카테고리 배지 + 대상자 이름 표기 =====
   기존 .tx-item(아이콘 원 + 설명)을 쓰는 카지노/복권/대시보드 위젯은 그대로 두고,
   실제 "로그"에 해당하는 지갑/관리자 장부/행정처분 내역만 이 새 클래스로 옮깁니다. */
.log-row {
  background: #FFF;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.log-row:last-child { margin-bottom: 0; }
.log-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.log-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.log-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.log-who { font-size: 11.5px; color: var(--text-muted); font-weight: 700; }
.log-time { font-size: 10.5px; color: var(--text-faint); }
.log-desc {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.log-amount {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.log-amount.plus { color: #15803D; }
.log-amount.minus { color: var(--primary); }
.log-amount.neutral { color: #94A3B8; font-weight: 700; font-size: 12.5px; }
.log-group-label { font-size: 12px; font-weight: 800; color: var(--text-faint); padding: 14px 2px 6px; }

/* 토스트 (가을 다크 월넛 아크릴) */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(35, 23, 16, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFF;
  border: 1px solid rgba(217, 130, 24, 0.25);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  box-shadow: 0 16px 32px -12px rgba(35, 23, 16, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 공용 묶음 목록 (금융·팬더24·카지노 허브 등) */
.list-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 4px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.list-group-label { font-size: 12px; font-weight: 800; color: var(--text-faint); padding: 12px 0 2px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; text-decoration: none; color: inherit; border-top: 1px solid var(--border); transition: var(--transition); }
.list-row:hover { opacity: 0.85; }
.list-group-label + .list-row, .list-group > .list-row:first-child { border-top: none; }
.list-row.disabled { opacity: 0.5; cursor: default; }
.list-ico { width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; background: var(--bg-cream); box-shadow: var(--shadow-xs); }
.list-mid { flex: 1; min-width: 0; }
.list-title { font-size: 14.5px; font-weight: 800; color: var(--dark); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list-desc { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; line-height: 1.45; }
.list-pill { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--bg-cream); color: var(--text-muted); }
.list-chev { color: #C9C4B8; flex-shrink: 0; display: flex; }
.list-chev svg { width: 16px; height: 16px; }
.section-title { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--dark); margin: 20px 0 10px; }

/* ===== 테마 전용 히어로 & 카드 데코레이션 ===== */
.home-hero, .wallet-hero {
  position: relative;
  background: #FFFFFF !important;
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  overflow: visible !important;
  margin-top: 36px !important;
}

.home-hero::before, .wallet-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 200px;
  background: var(--autumn-hero-glow);
  pointer-events: none;
  border-radius: 0 28px 0 0;
  z-index: 1;
}

.home-hero-mascot, .wallet-hero-mascot {
  position: absolute;
  top: -34px;
  right: 8px;
  z-index: 5 !important;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(70, 32, 14, 0.22)) !important;
}

.stock-summary-card {
  overflow: visible !important;
}

.stock-summary-card .mascot {
  top: -4px !important;
  z-index: 5 !important;
}

.hh-pill {
  border: 1px solid rgba(200, 78, 26, 0.22);
}

.hh-pill.soft {
  background: var(--bg-cream);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* 퀵 타이틀 & 하이라이트 호버 인터랙션 */
.quick-tile {
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.quick-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 78, 26, 0.28);
}

.hl-card {
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.hl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 78, 26, 0.28);
}

/* 사훈 배너 */
[id="company-motto-text"] {
  color: var(--dark);
}

/* 사원증 & 관리자 센터 배너 스타일링 */
#admin-entry-banner, #approval-rate-banner {
  background: var(--autumn-dark-gradient) !important;
  border: 1px solid rgba(217, 130, 24, 0.28) !important;
}

/* ===== 🍁 가을 테마: 우아한 단풍 낙엽 흩날림 애니메이션 ===== */
.autumn-leaves-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 40;
}

.autumn-leaf {
  position: absolute;
  top: -45px;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 3px 6px rgba(85, 38, 14, 0.22));
  animation-name: autumnFall, autumnSway;
  animation-iteration-count: infinite, infinite;
  animation-timing-function: linear, ease-in-out;
}

@keyframes autumnFall {
  0% {
    top: -45px;
  }
  100% {
    top: calc(100vh + 45px);
  }
}

@keyframes autumnSway {
  0% {
    transform: translateX(0px) rotate(0deg) scale(0.9);
  }
  25% {
    transform: translateX(26px) rotate(45deg) scale(1.02);
  }
  50% {
    transform: translateX(-22px) rotate(90deg) scale(0.94);
  }
  75% {
    transform: translateX(30px) rotate(135deg) scale(1.06);
  }
  100% {
    transform: translateX(0px) rotate(180deg) scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .autumn-leaves-container {
    display: none !important;
  }
}

/* 스크롤바 가을 엠버 오트밀 톤 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: #DECFC0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

