/* design.md 토큰 기반 허니홀딩스 (고광렬 스타일) CSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;400;700;900&display=swap');

:root {
  /* Style Foundations & Tokens from design.md */
  --font-family-primary: 'Noto Sans KR', 'Malgun Gothic', dotum, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-md: 13.33px;
  --font-size-lg: 14px;
  --font-size-xl: 16px;
  --font-weight-base: 100;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  --color-text-primary: #ffffff;
  --color-text-secondary: #b7b391;
  --color-text-tertiary: #f5f5f5;
  --color-surface-base: #000000;
  --color-surface-muted: #921d1d;
  --color-surface-strong: #111111;
  
  --color-red-bright: #ff2a2a;
  --color-red-primary: #d91c1c;

  --space-1: 1px;
  --space-2: 2px;
  --space-3: 3px;
  --space-4: 5px;
  --space-5: 7px;
  --space-6: 8px;
  --space-7: 10px;
  --space-8: 24.41px;

  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 50px;

  --shadow-1: rgba(255, 255, 255, 0.06) 0px 1px 0px 0px inset, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px;
  --shadow-2: rgba(255, 255, 255, 0.1) 0px 1px 0px 0px inset, rgba(0, 0, 0, 0.9) 0px 1px 3px 0px;
  --shadow-4: rgb(43, 43, 43) -1px -1px 3px 0px, rgb(34, 34, 34) 1px 1px 3px 0px, rgb(0, 0, 0) 1px 1px 5px 0px inset, rgb(24, 24, 24) -2px -2px 5px 0px inset;

  --motion-duration-fast: 200ms;
  --motion-duration-normal: 300ms;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-primary);
}

body {
  background-color: var(--color-surface-base);
  color: var(--color-text-primary);
  font-size: var(--font-size-xs);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.kkr-wrapper {
  width: 100%;
  max-width: 1480px;
  background-color: #070708;
  border-left: var(--space-1) solid #222;
  border-right: var(--space-1) solid #222;
  min-height: 100vh;
}

/* 1. Header Top Bar */
.kkr-header-top {
  height: 52px;
  background-color: var(--color-surface-base);
  border-bottom: var(--space-1) solid #242424;
  padding: 0 var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kkr-logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-black);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  letter-spacing: -0.5px;
}

.kkr-logo span {
  font-size: var(--font-size-xs);
  color: var(--color-red-bright);
  font-weight: var(--font-weight-bold);
}

.header-right-status {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #2ed573;
  border-radius: 50%;
  box-shadow: 0 0 6px #2ed573;
}

/* 2. Main Navigation Bar */
.kkr-main-nav {
  background-color: var(--color-surface-strong);
  border-bottom: 2px solid var(--color-surface-muted);
  display: flex;
  padding-left: var(--space-8);
}

.nav-item-btn {
  padding: 12px 24px;
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--motion-duration-fast);
}

.nav-item-btn.active,
.nav-item-btn:hover {
  background-color: var(--color-surface-muted);
  color: var(--color-text-primary);
}

/* 3. Main Body Grid (Left 200px + Center Main) */
.kkr-body-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-7);
  padding: var(--space-7);
}

/* Left Sidebar */
.kkr-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.side-single-box {
  background: var(--color-surface-muted);
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-black);
  padding: 14px;
  text-align: center;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--color-red-bright);
}

/* Center Content */
.kkr-center-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

/* Hero Banners (유해진/고광렬 카지노 스타일 배너) */
.hero-banner-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
}

.banner-card {
  height: 180px;
  background: linear-gradient(135deg, #751515 0%, #1c0505 100%);
  border: 1px solid var(--color-surface-muted);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-4);
}

.banner-tag {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-black);
  color: var(--color-text-primary);
  background: var(--color-surface-base);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  width: fit-content;
}

.banner-title {
  font-size: 24px;
  font-weight: var(--font-weight-black);
  color: var(--color-text-primary);
  line-height: 1.15;
}

.banner-title span {
  color: var(--color-red-bright);
}

.banner-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.banner-img {
  position: absolute;
  right: 10px;
  bottom: 0;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}

/* Form Panel & Game Console */
.kkr-panel {
  background: var(--color-surface-strong);
  border: 1px solid var(--color-surface-muted);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-2);
}

.panel-title {
  font-size: 20px;
  font-weight: var(--font-weight-black);
  color: var(--color-red-bright);
  margin-bottom: var(--space-4);
}

.panel-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.form-group-box {
  margin-bottom: var(--space-7);
}

.form-group-box label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.kkr-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--color-surface-base);
  border: 1px solid #333;
  color: var(--color-text-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-xs);
  transition: border-color var(--motion-duration-fast);
}

.kkr-input:focus {
  outline: none;
  border-color: var(--color-red-bright);
}

.btn-kkr-red {
  width: 100%;
  height: 48px;
  background: var(--color-surface-muted);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-black);
  font-size: var(--font-size-lg);
  border: 1px solid var(--color-red-bright);
  border-radius: var(--radius-xs);
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: background-color var(--motion-duration-fast);
}

.btn-kkr-red:hover {
  background: var(--color-red-primary);
}

/* Blackjack Table Console */
.bj-table-console {
  background: #041208;
  border: 1px solid #194025;
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.card-item {
  width: 65px;
  height: 95px;
  background: #ffffff;
  color: #111115;
  border-radius: var(--radius-xs);
  border: 1px solid #000;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: var(--font-weight-black);
  font-size: var(--font-size-lg);
  box-shadow: var(--shadow-2);
  animation: slideDown var(--motion-duration-fast) ease;
}

.card-item.red {
  color: #e52525;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none !important;
}

/* Spinner */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #333;
  border-top-color: var(--color-red-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
