/* =========================================================================
   DASH TRADING — BRIGHT design tokens (Toss-inspired)
   ========================================================================= */
:root {
  /* Neutrals — cool white, blue-tinted */
  --n-0:   #ffffff;
  --n-25:  #fbfcfe;
  --n-50:  #f4f7fb;
  --n-75:  #ecf0f6;
  --n-100: #dfe4ec;
  --n-150: #c8d0dc;
  --n-200: #a8b3c4;
  --n-400: #6b7684;
  --n-500: #4e5968;
  --n-600: #333d4b;
  --n-700: #1a1f2b;
  --n-800: #111827;
  --n-900: #0a0e17;

  /* Korean market convention (kept) */
  --up:        #f04452;  --up-soft:   #fdecef;  --up-strong: #c22a37;
  --down:      #2f6ff0;  --down-soft: #e6efff;  --down-strong: #1c56cf;
  --draw:      #b88500;

  /* Brand — GLOBALCORE365. Warm orange (from logo coral) as primary CTA,
     deep navy (from logo shell) as primary dark surface. */
  --acc:         #f47a3d;
  --acc-soft:    #fdece0;
  --acc-tint:    #fff5eb;
  --acc-strong:  #d75d1e;

  --brand-navy:  #0e3050;
  --brand-navy-2:#173d6b;
  --brand-coral: #f47a3d;
  --brand-coral-soft: #fdece0;

  --purple:      #7c3aed;
  --purple-soft: #f3ecff;
  --purple-tint: #faf7ff;

  --emerald:     #10b981;
  --emerald-soft:#dcfce7;
  --emerald-tint:#ecfdf5;

  --amber:       #f59e0b;
  --amber-soft:  #fef3c7;
  --amber-tint:  #fffbeb;

  --pink:        #ec4899;
  --pink-soft:   #fce7f3;

  --cyan:        #06b6d4;
  --cyan-soft:   #cffafe;

  /* Sidebar — LIGHT & bright, no more dark navy */
  --sb-bg:            #ffffff;
  --sb-panel:         #f8fafc;
  --sb-line:          #eef2f8;
  --sb-line-strong:   #dfe4ec;
  --sb-text:          #4e5968;
  --sb-text-strong:   #191f28;
  --sb-text-dim:      #8b95a5;
  --sb-hover:         #f0f5fc;
  --sb-active-bg:     linear-gradient(90deg, #fdece0 0%, #fff5eb 100%);
  --sb-active-text:   #d75d1e;
  --sb-active-mark:   #f47a3d;

  --sidebar-w: 248px;
  --topbar-h:  62px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;

  --shadow-1: 0 1px 3px rgba(15, 23, 41, 0.04), 0 1px 2px rgba(15, 23, 41, 0.03);
  --shadow-2: 0 4px 14px rgba(15, 23, 41, 0.06), 0 2px 4px rgba(15, 23, 41, 0.04);
  --shadow-3: 0 20px 40px rgba(15, 23, 41, 0.12), 0 6px 12px rgba(15, 23, 41, 0.06);
  --shadow-glow: 0 0 0 4px rgba(244, 122, 61, 0.16);
  --shadow-sidebar: 0 0 24px rgba(15, 23, 41, 0.04);
}

/* =========================================================================
   Reset + base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--n-50);
  color: var(--n-800);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard Variable", "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "tnum";
}
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--n-900); }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
::selection { background: var(--acc-soft); }

.icon { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon.sm { width: 14px; height: 14px; }
.icon.lg { width: 20px; height: 20px; }
.icon.xl { width: 28px; height: 28px; }

/* Brand lockup */
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.brand-lockup .brand-txt { display: flex; flex-direction: column; }
.brand-lockup .brand-title { font-weight: 800; font-size: 14px; letter-spacing: 0.12em; color: var(--brand-navy); line-height: 1.2; }
.brand-lockup .brand-sub { font-size: 10px; color: var(--n-500); letter-spacing: 0.08em; margin-top: 2px; text-transform: uppercase; }

/* Logo mark — image-based, subtle border */
.logo-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #fff; }
.logo-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }

.avatar-svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* =========================================================================
   AUTH SCREEN — minimal centered card on light background
   ========================================================================= */
.auth-shell {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f5f7fa;
}
.auth-shell.admin { background: #f0f2f6; }

/* No decorative orbs — keep minimal */

/* Background chart pattern decoration */
.auth-bg-chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* Clean solid card */
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  padding: 40px 36px;
  background: #ffffff;
  border: 1px solid var(--n-100);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 41, 0.06);
}

.success-card, .live-card { display: none; }
@keyframes floatCard {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50%      { transform: translate(6px, -8px) rotate(1deg); }
}
.success-card .sc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.success-card .sc-badge { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #059669); display: flex; align-items: center; justify-content: center; }
.success-card .sc-title { font-size: 12px; font-weight: 700; color: var(--n-900); }
.success-card .sc-sub { font-size: 10px; color: var(--n-500); margin-top: 1px; }
.success-card .sc-amount { font-size: 20px; font-weight: 800; color: var(--up); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.success-card .sc-unit { font-size: 12px; color: var(--n-500); font-weight: 500; margin-left: 3px; }

.live-card .lc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.live-card .lc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px rgba(240, 68, 82, 0.7); animation: livePulse 1.4s ease-in-out infinite; }
.live-card .lc-label { font-size: 10px; font-weight: 700; color: var(--n-700); letter-spacing: 0.06em; text-transform: uppercase; }
.live-card .lc-time { font-size: 11px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; margin-left: auto; }

@media (max-width: 960px) {
  .success-card, .live-card { display: none; }
}
.auth-brand-top {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  margin-bottom: 28px;
}
.auth-brand-top .brand-title { font-size: 15px; font-weight: 800; letter-spacing: 0.22em; color: var(--n-900); }
.auth-brand-top .brand-sub { font-size: 10px; color: var(--n-500); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }

.auth-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; color: var(--n-900); text-align: center; }
.auth-desc { font-size: 13px; color: var(--n-500); margin-bottom: 28px; text-align: center; line-height: 1.6; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(230, 235, 245, 0.7);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.auth-tab {
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  color: var(--n-500);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-weight: 600;
}
.auth-tab:hover { color: var(--n-700); }
.auth-tab.active {
  background: #ffffff;
  color: var(--n-900);
  box-shadow: 0 2px 6px rgba(31, 40, 66, 0.08);
  font-weight: 700;
}

.auth-footer-note {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--n-500);
  letter-spacing: 0.06em;
  z-index: 2;
}
.auth-footer-note strong { color: var(--n-700); font-weight: 700; }

/* =========================================================================
   Forms
   ========================================================================= */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 12px;
  color: var(--n-600);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.form-field .req { color: var(--up); margin-left: 2px; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--n-0);
  border: 1px solid var(--n-100);
  color: var(--n-900);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover { border-color: var(--n-150); background: var(--n-25); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--acc);
  background: var(--n-0);
  box-shadow: var(--shadow-glow);
}
.form-field input:disabled { background: var(--n-50); color: var(--n-500); cursor: not-allowed; }
.form-hint { font-size: 11px; color: var(--n-500); margin-top: 6px; line-height: 1.5; }
.form-error { color: var(--up); font-size: 12px; margin: 4px 0 10px; min-height: 16px; text-align: center; font-weight: 600; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--n-100);
  background: var(--n-0);
  color: var(--n-800);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.06s, box-shadow 0.12s;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--n-50); border-color: var(--n-150); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary   { background: var(--acc);   border-color: var(--acc);   color: var(--n-0); box-shadow: 0 2px 6px rgba(244, 122, 61, 0.28); }
.btn.primary:hover:not(:disabled) { background: var(--acc-strong); border-color: var(--acc-strong); box-shadow: 0 4px 12px rgba(244, 122, 61, 0.34); }
.btn.dark      { background: var(--n-900); border-color: var(--n-900); color: var(--n-0); box-shadow: 0 2px 6px rgba(15, 23, 41, 0.15); }
.btn.dark:hover:not(:disabled) { background: var(--n-800); }
.btn.danger    { color: var(--up); border-color: var(--n-100); }
.btn.danger:hover:not(:disabled) { background: var(--up-soft); border-color: var(--up); }
.btn.long      { background: var(--up); border-color: var(--up); color: var(--n-0); box-shadow: 0 2px 6px rgba(240, 68, 82, 0.25); }
.btn.long:hover:not(:disabled) { background: var(--up-strong); }
.btn.short     { background: var(--down); border-color: var(--down); color: var(--n-0); box-shadow: 0 2px 6px rgba(47, 111, 240, 0.25); }
.btn.short:hover:not(:disabled) { background: var(--down-strong); }
.btn.boost-btn { color: var(--purple); border-color: var(--purple-soft); background: var(--purple-tint); }
.btn.boost-btn:hover:not(:disabled) { background: var(--purple-soft); border-color: var(--purple); color: var(--purple-strong); }
.btn.boost-btn .icon { color: var(--purple); }
.btn.preset-btn { padding: 12px 0; font-weight: 800; font-size: 15px; }
.btn.preset-btn:hover:not(:disabled) { background: var(--purple-tint); border-color: var(--purple-soft); color: var(--purple); }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.xs { padding: 4px 10px; font-size: 11px; }
.btn.wide { width: 100%; padding: 13px; font-size: 14px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--n-75); }

/* =========================================================================
   App shell — top navigation bar + menu strip + main + footer
   ========================================================================= */
body[data-mode="user"] .app {
  display: grid;
  grid-template-rows: 60px 44px 1fr auto;
  grid-template-areas: "topbar" "menu" "main" "footer";
  min-height: 100vh;
}
body[data-mode="admin"] .app {
  /* keeps existing sidebar grid layout for admin mode */
}
/* User-mode: sidebar hidden. Admin mode: sidebar visible (see media queries below) */
.app > .sidebar,
.app > header.topbar,
.app > main.main { }
.gc-topbar ~ .sidebar,
.gc-topbar ~ header.topbar,
.gc-topbar ~ main.main { display: none !important; }
body[data-mode="user"] .sidebar,
body[data-mode="user"] .nav-search,
body[data-mode="user"] .sidebar-footer,
body[data-mode="user"] .sidebar-toggle,
body[data-mode="user"] header.topbar,
body[data-mode="user"] main.main { display: none !important; }

/* Top black header */
.gc-topbar {
  grid-area: topbar;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.gc-topbar .gc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.gc-topbar .gc-brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  background: #fff;
}
.gc-topbar .gc-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.gc-topbar .gc-brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #17b871; /* GLOBALCORE365 accent green */
}
.gc-topbar .gc-user {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}
.gc-topbar .gc-user-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.12s;
}
.gc-topbar .gc-user-item:hover { opacity: 0.8; }
.gc-topbar .gc-user-item .icon { width: 15px; height: 15px; color: #4a90e2; }
.gc-topbar .gc-user-balance {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gc-topbar .gc-user-balance .label { color: #999; font-weight: 500; margin-right: 6px; }
.gc-topbar .gc-msg-count { color: #4a90e2; font-weight: 800; margin-left: 3px; }
.gc-topbar .gc-logout {
  color: #ff5f5f;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
.gc-topbar .gc-logout .icon { color: #ff5f5f; }

/* Menu strip (second row) */
.gc-menu {
  grid-area: menu;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px;
  gap: 0;
}
.gc-menu .gc-menu-item {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  height: 100%;
  transition: color 0.12s;
  position: relative;
}
.gc-menu .gc-menu-item:hover { color: var(--acc); }
.gc-menu .gc-menu-item.active { color: var(--acc); }
.gc-menu .gc-menu-item + .gc-menu-item::before {
  content: "·";
  position: absolute;
  left: -3px;
  color: #555;
  font-weight: 400;
}
.gc-menu .gc-menu-badge {
  color: var(--acc);
  font-size: 12px;
  margin-left: 2px;
}

/* Main content area */
.gc-main {
  grid-area: main;
  background: var(--n-50);
  padding: 0;
  min-height: 500px;
}
/* Page-type variants: light gray (default), dark, light */
.gc-main.gc-dark {
  background: #1a1a1a;
  color: #ccc;
}
.gc-main.gc-light-gray { background: #ececec; }
.gc-main.gc-white { background: #fff; }
.gc-main .gc-page-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Black footer with payment logos + copyright */
.gc-footer {
  grid-area: footer;
  background: #000;
  color: #666;
  padding: 34px 40px 22px;
  text-align: center;
}
.gc-footer .gc-payment-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.gc-footer .gc-pay {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  height: 26px;
}
.gc-pay-visa {
  background: #fff; color: #1a1f71;
  border-radius: 3px; padding: 3px 8px;
  font-family: Arial, sans-serif; font-weight: 900; font-style: italic;
  font-size: 14px; letter-spacing: 0;
}
.gc-pay-mc { position: relative; width: 44px; height: 26px; display: inline-block; }
.gc-pay-mc i {
  position: absolute; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: inline-block;
}
.gc-pay-mc i:first-child { left: 0; background: #eb001b; }
.gc-pay-mc i:last-child { right: 0; background: #f79e1b; mix-blend-mode: multiply; }
.gc-pay-ali {
  background: #fff; color: #1677ff;
  border-radius: 4px; width: 30px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
}
.gc-pay-paypal {
  background: #fff; color: #003087;
  border-radius: 3px; padding: 3px 7px;
  font-family: Arial, sans-serif; font-weight: 900; font-style: italic;
  font-size: 12px; display: inline-flex; align-items: center;
}
.gc-pay-paypal b { color: #003087; }
.gc-pay-paypal em { color: #009cde; font-style: italic; }
.gc-pay-apple {
  background: #fff; color: #000;
  border-radius: 4px; padding: 3px 7px;
  display: inline-flex; align-items: center; gap: 2px;
  font-weight: 700; font-size: 13px;
}
.gc-pay-apple svg { fill: #000; }
.gc-pay-amex {
  background: #2e77bb; color: #fff;
  border-radius: 3px; padding: 3px 6px;
  font-family: Arial, sans-serif; font-weight: 900;
  font-size: 10px; letter-spacing: 0.02em;
}
.gc-pay-btc { display: inline-flex; }
.gc-pay-diners { position: relative; width: 40px; height: 26px; display: inline-block; }
.gc-pay-diners i {
  position: absolute; top: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff; box-sizing: border-box;
}
.gc-pay-diners i:first-child { left: 0; background: #0079be; border-color: #0079be; }
.gc-pay-diners i:last-child { right: 0; background: transparent; }

.gc-footer .gc-copyright {
  font-size: 12px;
  color: #666;
  padding-top: 12px;
}

/* Legacy transitions retained for old sidebar animation compat */
.app.sidebar-collapsed { }
.sidebar { }

.sidebar {
  grid-area: sidebar;
  background: var(--sb-bg);
  color: var(--sb-text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--sb-line);
  box-shadow: var(--shadow-sidebar);
}
.sidebar .brand {
  padding: 18px 20px;
  border-bottom: 1px solid var(--sb-line);
  display: flex; align-items: center; gap: 12px;
}
.sidebar .nav-search {
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--sb-line);
}
.sidebar .nav-search .search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sidebar .nav-search .icon {
  position: absolute;
  left: 10px;
  color: var(--sb-text-dim);
  pointer-events: none;
}
.sidebar .nav-search input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border-radius: 8px;
  border: 1px solid var(--sb-line-strong);
  background: var(--sb-panel);
  color: var(--sb-text-strong);
  font-size: 12px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.sidebar .nav-search input::placeholder { color: var(--sb-text-dim); }
.sidebar .nav-search input:focus { outline: none; border-color: var(--acc); background: #fff; box-shadow: var(--shadow-glow); }
.sidebar .nav-search .clear {
  position: absolute; right: 6px;
  background: transparent; border: none; cursor: pointer;
  padding: 4px; color: var(--sb-text-dim);
  border-radius: 4px;
  display: none;
}
.sidebar .nav-search.has-value .clear { display: flex; align-items: center; }
.sidebar .nav-search .clear:hover { color: var(--n-800); background: var(--n-75); }

.sidebar nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav-group.hidden { display: none; }
.nav-item.hidden { display: none; }
.nav-empty { display: none; padding: 20px; font-size: 12px; color: var(--sb-text-dim); text-align: center; }
.nav-empty.show { display: block; }
.sidebar nav::-webkit-scrollbar { width: 4px; }
.sidebar nav::-webkit-scrollbar-thumb { background: var(--n-100); border-radius: 2px; }
.sidebar nav::-webkit-scrollbar-thumb:hover { background: var(--n-150); }

.nav-group { margin-bottom: 8px; }
.nav-title {
  padding: 8px 20px;
  font-size: 11px;
  color: var(--sb-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
  user-select: none;
}
.nav-title.collapsible { cursor: pointer; }
.nav-title.collapsible:hover { color: var(--sb-text-strong); }
.nav-title .toggle-icon { transition: transform 0.15s; opacity: 0.5; }
.nav-group.closed .nav-title .toggle-icon { transform: rotate(-90deg); }
.nav-group.closed .nav-items { display: none; }

.nav-item {
  padding: 8px 20px;
  margin: 1px 8px;
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--sb-text);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  display: flex; align-items: center; gap: 12px;
  font-weight: 500;
}
.nav-item .icon { opacity: 0.75; color: var(--sb-text); }
.nav-item:hover { background: var(--sb-hover); color: var(--sb-text-strong); }
.nav-item:hover .icon { opacity: 1; }
.nav-item.active {
  background: var(--sb-active-bg);
  color: var(--sb-active-text);
  font-weight: 700;
}
.nav-item.active .icon { opacity: 1; color: var(--sb-active-mark); }
.nav-item.sub { padding-left: 44px; font-size: 12px; margin-left: 4px; }
.nav-item.sub .sym-badge { flex-shrink: 0; }

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--sb-line);
  display: flex; align-items: center; gap: 12px;
  background: var(--sb-panel);
}
.sidebar-footer .who { font-size: 12px; color: var(--sb-text-strong); font-weight: 700; }
.sidebar-footer .who-sub { font-size: 10px; color: var(--sb-text-dim); margin-top: 1px; }

/* Topbar */
.topbar {
  grid-area: topbar;
  background: var(--n-0);
  border-bottom: 1px solid var(--n-100);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .left { display: flex; align-items: center; gap: 14px; }
.topbar .page-title { font-size: 14px; font-weight: 700; color: var(--n-900); letter-spacing: -0.01em; }
.topbar .right { display: flex; align-items: center; gap: 10px; }
.sidebar-toggle {
  background: transparent;
  border: 1px solid var(--n-100);
  border-radius: var(--r-md);
  padding: 8px;
  cursor: pointer;
  color: var(--n-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
}
.sidebar-toggle:hover { background: var(--n-50); border-color: var(--n-150); color: var(--n-900); }
.sidebar-toggle .icon { width: 18px; height: 18px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--n-500); font-size: 12px; font-weight: 500; }
.breadcrumb .sep { color: var(--n-200); }
.breadcrumb .current { color: var(--n-900); font-weight: 700; }

@media (max-width: 860px) {
  .app { grid-template-columns: 0 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w);
    z-index: 200;
    transform: translateX(-100%);
    box-shadow: 0 20px 60px rgba(15, 23, 41, 0.15);
  }
  .app.sidebar-open .sidebar { transform: translateX(0); }
  .app.sidebar-open::before {
    content: "";
    position: fixed; inset: 0;
    background: rgba(15, 23, 41, 0.32);
    z-index: 150;
    backdrop-filter: blur(2px);
  }
}
.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #ffffff;
  border: 1px solid var(--n-100);
  border-radius: 6px;
  font-size: 12px;
  color: var(--n-800);
}
.balance-chip .label { color: var(--n-500); font-weight: 500; }
.balance-chip .val { font-weight: 700; color: var(--brand-navy); font-variant-numeric: tabular-nums; font-size: 13px; }
.balance-chip .icon { color: var(--n-400); }

.msg-btn, .profile-btn {
  background: var(--n-0);
  border: 1px solid var(--n-100);
  border-radius: var(--r-md);
  padding: 7px 12px;
  cursor: pointer;
  font-size: 12px;
  color: var(--n-700);
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  transition: background 0.12s, border-color 0.12s;
  font-weight: 600;
}
.msg-btn:hover, .profile-btn:hover { background: var(--n-50); border-color: var(--n-150); }
.msg-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--up);
  color: var(--n-0);
  font-size: 10px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--n-0);
}
.profile-btn .nick { font-weight: 700; color: var(--n-900); }

.main { grid-area: main; overflow-y: auto; background: var(--n-50); padding: 24px; }

/* =========================================================================
   Common
   ========================================================================= */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.page-header h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.page-header .sub { font-size: 13px; color: var(--n-500); margin-top: 4px; }

.help-box {
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--acc-tint), var(--purple-tint));
  border: 1px solid var(--acc-soft);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--n-700);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
  margin-bottom: 16px;
}
.help-box .icon { color: var(--acc); margin-top: 2px; flex-shrink: 0; }
.help-box strong { color: var(--acc-strong); }

.card {
  background: var(--n-0);
  border: 1px solid var(--n-100);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-1);
}
.card + .card { margin-top: 12px; }
.card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--n-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px)  { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* KPI stat card */
.stat {
  padding: 22px;
  background: var(--n-0);
  border: 1px solid var(--n-100);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.stat > * { position: relative; z-index: 1; }
.stat.gradient-blue,
.stat.gradient-purple,
.stat.gradient-emerald,
.stat.gradient-amber,
.stat.gradient-pink,
.stat.gradient-up,
.stat.gradient-down { background: #ffffff; }
.stat .stat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat .label { font-size: 11px; color: var(--n-500); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.stat .stat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.stat.blue    .stat-icon { background: var(--brand-navy); color: #fff; }
.stat.purple  .stat-icon { background: var(--purple); color: #fff; }
.stat.emerald .stat-icon { background: var(--emerald); color: #fff; }
.stat.amber   .stat-icon { background: var(--amber); color: #fff; }
.stat.pink    .stat-icon { background: var(--pink); color: #fff; }
.stat.up      .stat-icon { background: var(--up); color: #fff; }
.stat.down    .stat-icon { background: var(--down); color: #fff; }
.stat.cyan    .stat-icon { background: var(--cyan); color: #fff; }
.stat .value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--n-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat .value.pos { color: var(--up); }
.stat .value.neg { color: var(--down); }
.stat .foot { font-size: 11px; color: var(--n-500); margin-top: 8px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.stat .foot .delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.stat .foot .delta.pos { color: var(--up); }
.stat .foot .delta.neg { color: var(--down); }
.stat .spark { margin-top: 14px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--n-75); }
.table th {
  color: var(--n-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  background: var(--n-25);
  border-bottom-color: var(--n-100);
}
.table td { font-variant-numeric: tabular-nums; color: var(--n-800); }
.table tbody tr:hover { background: var(--n-25); }
.table .num { text-align: right; }
.table .center { text-align: center; }

/* Status pills */
.pill, .status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  text-transform: uppercase;
}
.pill.pending,   .status-pill.pending   { background: var(--amber-soft); color: #a06d00; }
.pill.approved,  .status-pill.approved  { background: var(--emerald-soft); color: #0f7a44; }
.pill.rejected,  .status-pill.rejected  { background: var(--up-soft); color: var(--up-strong); }
.pill.open,      .status-pill.open      { background: var(--emerald-soft); color: #0f7a44; }
.pill.closed,    .status-pill.closed    { background: var(--n-75); color: var(--n-500); }
.pill.done,      .status-pill.done      { background: var(--n-75); color: var(--n-500); }
.pill.active,    .status-pill.active    { background: var(--emerald-soft); color: #0f7a44; }
.pill.cancelled, .status-pill.cancelled { background: var(--n-75); color: var(--n-500); }
.pill.admin,     .status-pill.admin     { background: var(--acc-soft); color: var(--acc-strong); }
.pill.banned,    .status-pill.banned    { background: var(--up-soft); color: var(--up-strong); }
.pill.on         { background: var(--emerald-soft); color: #0f7a44; }
.pill.off        { background: var(--n-75); color: var(--n-500); }

/* Role tags */
.role, .role-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.role.hq,          .role-badge.hq          { color: var(--up);   border-color: var(--up-soft);   background: var(--up-soft); }
.role.sub_hq,      .role-badge.sub_hq      { color: #a06d00;      border-color: var(--amber-soft); background: var(--amber-soft); }
.role.distributor, .role-badge.distributor { color: var(--down); border-color: var(--down-soft); background: var(--down-soft); }
.role.user,        .role-badge.user        { color: #0f7a44;      border-color: var(--emerald-soft); background: var(--emerald-soft); }
.role.admin,       .role-badge.admin       { color: var(--acc-strong); border-color: var(--acc-soft); background: var(--acc-soft); }

.empty { text-align: center; color: var(--n-500); padding: 44px 0; font-size: 13px; }
.empty.rich { padding: 60px 0; }
.empty-illust { width: 200px; height: 160px; margin: 0 auto 20px; display: block; }
.empty h3 { color: var(--n-700); margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.empty .sub { color: var(--n-500); font-size: 12px; margin-top: 4px; }

/* Welcome hero (for dashboard-like intros) */
.welcome-hero { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto; }

.section-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--n-100); margin-bottom: 18px; }
.section-tab { padding: 10px 0; font-size: 13px; color: var(--n-500); cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500; }
.section-tab.active { color: var(--brand-navy); border-bottom-color: var(--acc); font-weight: 700; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--n-0);
  border: 1px solid var(--n-100);
  border-radius: var(--r-md);
  color: var(--n-700);
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}
.chip:hover { border-color: var(--n-150); background: var(--n-25); }
select.chip, input.chip { padding: 8px 12px; }

.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .slider { position: absolute; cursor: pointer; inset: 0; background: var(--n-150); border-radius: 22px; transition: background 0.15s; }
.toggle-switch .slider::before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.toggle-switch input:checked + .slider { background: var(--emerald); }
.toggle-switch input:checked + .slider::before { transform: translateX(18px); }

/* =========================================================================
   Live activity ticker
   ========================================================================= */
.live-ticker {
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, #0f1729 0%, #1a2340 100%);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.live-ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.live-ticker-label .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff3860;
  box-shadow: 0 0 12px rgba(255, 56, 96, 0.9);
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.4); }
}
.live-ticker-track {
  display: flex;
  gap: 32px;
  padding: 0 20px;
  align-items: center;
  animation: tickerScroll linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.live-ticker:hover .live-ticker-track { animation-play-state: paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ticker-item.ticker-win { background: linear-gradient(90deg, rgba(240, 68, 82, 0.24), rgba(240, 68, 82, 0.10)); border-color: rgba(240, 68, 82, 0.3); }
.ticker-item.ticker-withdraw { background: linear-gradient(90deg, rgba(16, 185, 129, 0.24), rgba(16, 185, 129, 0.10)); border-color: rgba(16, 185, 129, 0.3); }
.ticker-icon { display: inline-flex; }
.ticker-win .ticker-icon { color: #ff5c6c; }
.ticker-withdraw .ticker-icon { color: #34d399; }
.ticker-user { color: #fff; font-weight: 700; }
.ticker-sep { color: rgba(255, 255, 255, 0.35); }
.ticker-meta { color: rgba(255, 255, 255, 0.75); }
.ticker-amount { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.ticker-win .ticker-amount { color: #ffb2b8; }
.ticker-withdraw .ticker-amount { color: #a7f3d0; }
.ticker-krw { color: rgba(255, 255, 255, 0.6); font-weight: 500; margin-left: 3px; font-size: 11px; }

@media (max-width: 640px) {
  .live-ticker-label { padding: 8px 10px; font-size: 10px; }
  .ticker-item { font-size: 11px; padding: 7px 12px; }
}

/* Alert toast */
.alert-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--n-900);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(15, 23, 41, 0.35);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
  z-index: 200;
  max-width: 400px;
}
.alert-toast.show { transform: translateY(0); opacity: 1; }

/* Maintenance splash (user side) */
.maintenance-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f6f9ff 0%, #f5f2ff 60%, #fef4ff 100%);
  padding: 32px;
}
.maintenance-card {
  max-width: 560px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(31, 40, 66, 0.12);
  text-align: center;
}
.maintenance-card iframe { border: none; width: 100%; }

/* =========================================================================
   Trading page
   ========================================================================= */
.trading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; height: calc(100vh - var(--topbar-h) - 48px); }
.trading-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel { background: var(--n-0); border: 1px solid var(--n-100); border-radius: var(--r-lg); padding: 18px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow-1); }
.panel-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--n-100); margin-bottom: 14px; }
.panel-head h2 { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.panel-head .price-tag { margin-left: auto; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--n-900); letter-spacing: -0.01em; }
.sym-badge { flex-shrink: 0; display: block; }

.interval-tabs { display: inline-flex; background: var(--n-75); padding: 3px; border-radius: var(--r-md); }
.interval-tab { padding: 5px 14px; font-size: 12px; font-weight: 700; color: var(--n-500); cursor: pointer; border-radius: 6px; transition: background 0.12s, color 0.12s; }
.interval-tab:hover { color: var(--n-800); }
.interval-tab.active { background: var(--n-0); color: var(--acc-strong); box-shadow: var(--shadow-1); }

#chart { flex: 1; min-height: 0; }

.round-info { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; padding: 6px 4px 18px; border-bottom: 1px solid var(--n-100); }
.round-cell .lbl { font-size: 10px; color: var(--n-500); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.round-cell .val { font-size: 14px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.round-cell.center { text-align: center; }
.round-cell.right { text-align: right; }
.countdown { font-size: 34px; font-weight: 800; margin: 2px 0; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--n-900); }
.round-id { font-size: 10px; color: var(--n-400); font-family: "SF Mono", ui-monospace, monospace; }

.amount-row { padding: 18px 4px 8px; }
.amount-row label { font-size: 11px; color: var(--n-600); font-weight: 700; letter-spacing: 0.06em; display: block; margin-bottom: 8px; text-transform: uppercase; display: flex; align-items: baseline; gap: 4px; }
.amount-row label .unit-hint { font-size: 10px; color: var(--acc); text-transform: none; letter-spacing: 0; font-weight: 700; }

.amount-input-wrap { position: relative; }
.amount-input-wrap input { width: 100%; background: var(--n-25); border: 1px solid var(--n-100); color: var(--n-900); border-radius: var(--r-md); padding: 14px 46px 14px 16px; font-size: 20px; font-variant-numeric: tabular-nums; text-align: right; font-weight: 800; }
.amount-input-wrap input:focus { outline: none; border-color: var(--acc); background: var(--n-0); box-shadow: var(--shadow-glow); }
.amount-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--n-500);
  pointer-events: none;
  letter-spacing: 0.02em;
}
.amount-input-wrap input:focus + .amount-suffix { color: var(--acc); }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 4px; }
.max-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 4px 4px; }
.bet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 4px 4px; }
.bet-row .btn { padding: 24px 0; font-size: 16px; font-weight: 800; letter-spacing: 0.08em; border-radius: var(--r-md); }
.expected { text-align: center; font-size: 12px; color: var(--n-500); padding: 14px 4px 4px; font-variant-numeric: tabular-nums; font-weight: 500; }

.pending-title { text-align: center; padding: 14px 0 8px; border-top: 1px solid var(--n-100); margin-top: 14px; font-size: 10px; color: var(--n-500); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.pending-head, .pending-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.7fr; gap: 6px; padding: 6px 8px; font-size: 11px; font-variant-numeric: tabular-nums; }
.pending-head { color: var(--n-500); font-weight: 600; }
.pending-row { border-bottom: 1px solid var(--n-75); }
.pending-body { max-height: 180px; overflow-y: auto; }
.pending-row .side { text-align: center; font-weight: 700; }
.pending-row .side.long, .pending-row .side.win { color: var(--up); }
.pending-row .side.short, .pending-row .side.lose { color: var(--down); }
.pending-row .side.draw { color: var(--draw); }

.results-head, .result-row { display: grid; grid-template-columns: 1fr 1fr 1fr 0.7fr; gap: 6px; padding: 8px 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
.results-head { color: var(--n-500); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 6px; border-bottom: 1px solid var(--n-100); }
.result-row { border-bottom: 1px solid var(--n-75); }
.result-row .res { text-align: center; font-weight: 700; }
.result-row .res.up, .result-row .res.win { color: var(--up); }
.result-row .res.down, .result-row .res.lose { color: var(--down); }
.result-row .res.draw { color: var(--draw); }
.results-body { flex: 1; overflow-y: auto; }
.results-body.active { display: block; }

/* Circular orange interval badge — prominent visual anchor next to chart title */
.interval-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: #f47a3d;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(244, 122, 61, 0.32);
}

/* Horizontal bet strip below the chart */
.bet-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--n-100);
  border-radius: var(--r-lg);
}
.bet-strip .strip-timer { text-align: center; }
.bet-strip .strip-timer .lbl { font-size: 10px; color: var(--n-500); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.bet-strip .strip-timer .val { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--n-900); margin: 4px 0 2px; }
.bet-strip .strip-timer .rid { font-size: 10px; color: var(--n-400); font-family: monospace; }
.bet-strip .strip-timer.cutoff .val { color: var(--up); animation: cutoffPulse 1s ease-in-out infinite; }
.bet-strip .strip-timer.cutoff .lbl { color: var(--up); }

.bet-strip .strip-amount label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--n-600); margin-bottom: 6px; }
.bet-strip .strip-amount .amount-input-wrap input { padding: 12px 42px 12px 14px; font-size: 18px; }
.bet-strip .strip-amount .quick-row { margin-top: 8px; grid-template-columns: repeat(4, 1fr); }
.bet-strip .strip-amount .quick-row .btn { padding: 6px 0; font-size: 11px; }
.bet-strip .strip-amount .expected { padding: 6px 0 0; text-align: left; font-size: 11px; }

.bet-strip .strip-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bet-strip .strip-buttons .btn { padding: 26px 0; font-size: 18px; font-weight: 800; letter-spacing: 0.08em; }
.bet-strip .strip-buttons .btn:disabled { opacity: 0.4; }

/* Trade-status panel: pending + my history, compact card under the strip */
.trade-status { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trade-status .card { padding: 14px 16px; }
.trade-status .card-title { font-size: 11px; margin-bottom: 10px; }
.trade-status .pending-body, .trade-status .results-body { max-height: 180px; overflow-y: auto; }

@media (max-width: 1280px) {
  .bet-strip { grid-template-columns: 1fr; }
  .trade-status { grid-template-columns: 1fr; }
}

/* Chart tabs — plain text style, subtle. Active tab has darker text and underline. */
.chart-tabs {
  display: flex; align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #eeeeee;
}
.chart-tabs::-webkit-scrollbar { height: 3px; }
.chart-tab {
  padding: 14px 4px;
  font-size: 14px;
  color: #999;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 400;
  transition: color 0.12s;
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: 20px;
}
.chart-tab:hover { color: #333; }
.chart-tab.active {
  color: #111;
  font-weight: 500;
}
.chart-tab .tab-close {
  opacity: 0; margin-left: 4px; font-size: 13px; color: #bbb;
  transition: opacity 0.12s;
}
.chart-tab:hover .tab-close { opacity: 0.7; }
.chart-tab .tab-close:hover { color: var(--up); opacity: 1; }

/* Chart title — larger, more prominent centered heading with orange pill */
.chart-title-row {
  padding: 28px 16px 22px;
  text-align: center;
}
.chart-title-row .big-title {
  font-size: 38px;
  font-weight: 700;
  color: #222;
  display: inline-flex; align-items: center; gap: 16px;
  vertical-align: middle;
  letter-spacing: 0.02em;
  line-height: 1;
}
.chart-title-row .big-title .sep { color: #ccc; font-weight: 300; margin: 0 4px; }
.chart-title-row .sub-line { font-size: 12px; color: #999; margin-top: 10px; font-variant-numeric: tabular-nums; }
.chart-title-row .sub-line strong { color: #333; font-weight: 600; }

/* Right symbol list — clean rows, minimal borders, sortable columns */
.symbol-list-panel { display: flex; flex-direction: column; min-height: 0; padding: 12px 8px; background: #fff; }
.symbol-list-panel .sl-search { position: relative; margin-bottom: 8px; padding: 0 4px; }
.symbol-list-panel .sl-search .icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #4d7bff; pointer-events: none; }
.symbol-list-panel .sl-search input {
  width: 100%;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #eeeeee;
  color: #333;
  border-radius: 0;
  padding: 12px 40px 12px 8px;
  font-size: 13px;
  font-weight: 400;
}
.symbol-list-panel .sl-search input::placeholder { color: #bbb; }
.symbol-list-panel .sl-search input:focus { outline: none; border-bottom-color: #4d7bff; box-shadow: none; }

.symbol-list-panel .sl-head, .symbol-list-panel .sl-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 8px;
  padding: 10px 12px;
  font-variant-numeric: tabular-nums;
  align-items: center;
}
.symbol-list-panel .sl-head {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 10px;
  padding-top: 8px;
}
.symbol-list-panel .sl-head .sortable {
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 3px;
  user-select: none;
}
.symbol-list-panel .sl-head .sortable:hover { color: var(--n-800); }
.symbol-list-panel .sl-head .sortable.asc::after { content: "▲"; font-size: 8px; color: var(--acc); }
.symbol-list-panel .sl-head .sortable.desc::after { content: "▼"; font-size: 8px; color: var(--acc); }
.symbol-list-panel .sl-head .sortable.none::after { content: "⇅"; font-size: 9px; color: var(--n-300); }

.symbol-list-panel .sl-body { flex: 1; overflow-y: auto; }
.symbol-list-panel .sl-body::-webkit-scrollbar { width: 5px; }
.symbol-list-panel .sl-body::-webkit-scrollbar-thumb { background: #e5e5e5; border-radius: 3px; }

.symbol-list-panel .sl-row { border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.1s; }
.symbol-list-panel .sl-row:hover { background: #fafafa; }
.symbol-list-panel .sl-row.active { background: #f5f5f5; }

.symbol-list-panel .sl-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.symbol-list-panel .sl-name .sl-info { min-width: 0; }
.symbol-list-panel .sl-name .sl-code { font-weight: 700; font-size: 13px; color: #222; }
.symbol-list-panel .sl-name .sl-kor { font-size: 11px; color: #999; }

.symbol-list-panel .sl-price { text-align: right; font-weight: 400; font-size: 13px; color: #4d7bff; }
.symbol-list-panel .sl-change { text-align: right; font-size: 12px; }
.symbol-list-panel .sl-change .pct { font-weight: 500; }
.symbol-list-panel .sl-change .abs { font-size: 11px; color: #999; font-weight: 400; margin-top: 2px; }
.symbol-list-panel .sl-change.up .pct { color: var(--up); }
.symbol-list-panel .sl-change.down .pct { color: var(--down); }
.symbol-list-panel .sl-change.up .abs { color: var(--up); opacity: 0.6; }
.symbol-list-panel .sl-change.down .abs { color: var(--down); opacity: 0.6; }
.symbol-list-panel .sl-vol { text-align: right; font-size: 12px; color: #666; font-weight: 400; }

/* My-trades layout with symbol column */
.mine-head, .mine-row { display: grid; grid-template-columns: 1fr 0.6fr 1fr 1fr 0.7fr; gap: 6px; padding: 8px 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
.mine-head { color: var(--n-500); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 6px; border-bottom: 1px solid var(--n-100); }
.mine-row { border-bottom: 1px solid var(--n-75); }
.mine-row .res { text-align: center; font-weight: 700; }
.mine-row .res.up, .mine-row .res.win { color: var(--up); }
.mine-row .res.down, .mine-row .res.lose { color: var(--down); }
.mine-row .res.draw { color: var(--draw); }

/* Countdown cutoff state (< 30s left) */
.round-cell.center.cutoff .countdown { background: linear-gradient(180deg, var(--up-strong), var(--up)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: cutoffPulse 1s ease-in-out infinite; }
.round-cell.center.cutoff #countdown-lbl { color: var(--up); font-weight: 800; }
@keyframes cutoffPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.btn.long:disabled, .btn.short:disabled { background: var(--n-150); border-color: var(--n-150); box-shadow: none; }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 41, 0.4); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-body { background: var(--n-0); border: 1px solid var(--n-100); border-radius: var(--r-lg); padding: 28px; min-width: 420px; max-width: 640px; max-height: 84vh; overflow-y: auto; box-shadow: var(--shadow-3); }
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; color: var(--n-900); letter-spacing: -0.02em; }
.modal-close-x { background: transparent; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--n-400); padding: 4px 8px; border-radius: var(--r-sm); }
.modal-close-x:hover { background: var(--n-75); color: var(--n-700); }

.symbol-option { padding: 14px 16px; background: var(--n-25); border-radius: var(--r-md); cursor: pointer; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; margin-bottom: 8px; transition: background 0.12s, border-color 0.12s; }
.symbol-option:hover { background: var(--n-50); border-color: var(--n-100); }
.symbol-option .sym-info { flex: 1; }
.symbol-option .sym-code { font-weight: 800; color: var(--n-900); font-size: 13px; }
.symbol-option .sym-kor { font-size: 12px; color: var(--n-600); margin-left: 6px; }
.symbol-option .sym-label { font-size: 11px; color: var(--n-500); }

.notif-panel { position: absolute; top: 62px; right: 24px; width: 380px; background: var(--n-0); border: 1px solid var(--n-100); border-radius: var(--r-lg); box-shadow: var(--shadow-3); z-index: 90; overflow: hidden; }
.notif-panel h3 { padding: 16px 18px; border-bottom: 1px solid var(--n-100); font-size: 12px; color: var(--n-700); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item { padding: 12px 18px; border-bottom: 1px solid var(--n-75); cursor: pointer; }
.notif-item:hover { background: var(--n-25); }
.notif-item.unread { background: var(--acc-tint); border-left: 3px solid var(--acc); padding-left: 15px; }
.notif-item .subj { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--n-900); }
.notif-item .body { font-size: 12px; color: var(--n-600); margin-bottom: 4px; line-height: 1.5; }
.notif-item .ts { font-size: 11px; color: var(--n-500); }

.ticket-messages { border: 1px solid var(--n-100); border-radius: var(--r-md); padding: 16px; max-height: 400px; overflow-y: auto; margin-bottom: 16px; background: var(--n-25); }
.msg { padding: 11px 15px; border-radius: var(--r-md); max-width: 78%; margin-bottom: 10px; font-size: 13px; line-height: 1.55; }
.msg.user  { background: var(--brand-navy); color: #fff; margin-left: auto; }
.msg.user .ts { color: rgba(255,255,255,0.6); }
.msg.admin { background: var(--n-0); border: 1px solid var(--n-100); }
.msg .ts { font-size: 10px; color: var(--n-500); margin-top: 6px; }

.notice-item { padding: 16px 0; border-bottom: 1px solid var(--n-75); }
.notice-item:last-child { border-bottom: 0; }
.notice-item .subj { font-size: 14px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; color: var(--n-900); }
.notice-item .pin { background: var(--brand-navy); color: #fff; font-size: 9px; padding: 3px 8px; border-radius: var(--r-sm); letter-spacing: 0.08em; font-weight: 700; }
.notice-item .body { font-size: 13px; color: var(--n-600); white-space: pre-wrap; line-height: 1.6; }
.notice-item .ts { font-size: 11px; color: var(--n-500); margin-top: 8px; }

.ref-code-box { display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: linear-gradient(135deg, var(--acc-tint), #fff); border: 1px solid var(--acc-soft); border-radius: var(--r-md); }
.ref-code-box .code { font-family: "SF Mono", ui-monospace, monospace; font-size: 22px; font-weight: 800; letter-spacing: 0.16em; color: var(--acc-strong); }

/* Dashboard: fancier chart containers */
.big-chart { background: var(--n-0); border: 1px solid var(--n-100); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-1); }
.big-chart .chart-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.big-chart .chart-legend { display: flex; gap: 12px; font-size: 11px; color: var(--n-500); }
.big-chart .chart-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }

/* =========================================================================
   Mobile — responsive breakpoints
   ========================================================================= */

/* Table horizontal-scroll wrapper — used everywhere admin tables might overflow */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll::-webkit-scrollbar { height: 6px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--n-150); border-radius: 3px; }

/* Trading layout: collapse to stacked at wider breakpoint since side panels are wide */
@media (max-width: 1280px) {
  .trading-layout {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(360px, auto);
    height: auto;
  }
}

/* Tablet + mobile shell */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; grid-template-areas: "topbar" "main"; }
  .app.sidebar-collapsed { grid-template-columns: 1fr; }
  .main { padding: 12px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-header h1 { font-size: 20px; }

  /* Topbar: compact — hide long labels, keep icons only */
  .topbar { padding: 0 12px; }
  .topbar .breadcrumb { font-size: 12px; }
  .topbar .breadcrumb .sep,
  .topbar .breadcrumb > span:first-child { display: none; }
  .topbar .breadcrumb .current { font-size: 13px; font-weight: 700; }
  .balance-chip .label { display: none; }
  .balance-chip { padding: 6px 10px; }
  .balance-chip .val { font-size: 12px; }
  .msg-btn { padding: 6px 8px; }
  .profile-btn { padding: 6px 8px; gap: 4px; }
  .profile-btn .nick { display: none; }

  /* Grids collapse */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { gap: 10px; }

  /* Stat cards: smaller */
  .stat { padding: 16px; }
  .stat .value { font-size: 22px; }
  .stat .stat-icon { width: 32px; height: 32px; }
  .stat .stat-icon .icon { width: 16px; height: 16px; }

  /* Cards: reduced padding */
  .card { padding: 14px; }

  /* Tables become scrollable containers */
  .card .table { min-width: 640px; }
  .card > .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Trading panels */
  .trading-layout { gap: 8px; height: auto; }
  .panel { padding: 12px; }
  .panel-head { gap: 8px; padding-bottom: 10px; margin-bottom: 10px; flex-wrap: wrap; }
  .panel-head h2 { font-size: 14px; }
  .panel-head .price-tag { font-size: 16px; }
  #chart { min-height: 260px; }
  .round-info { grid-template-columns: 1fr 1.4fr 1fr; gap: 6px; padding: 4px 2px 12px; }
  .countdown { font-size: 28px; }
  .round-cell .val { font-size: 12px; }
  .amount-row input { font-size: 18px; padding: 12px; }
  .quick-row .btn { padding: 8px 0; font-size: 11px; }
  .bet-row .btn { padding: 18px 0; font-size: 15px; }

  /* Interval tabs: full width */
  .interval-tabs { display: flex; justify-content: center; flex: 1; margin: 0 4px; }
  .interval-tab { flex: 1; text-align: center; padding: 6px 8px; }

  /* Chip filters: wrap */
  select.chip, input.chip { width: 100%; }

  /* Modals: near-fullscreen with breathing room */
  .modal-backdrop { padding: 12px; align-items: flex-start; padding-top: 24px; }
  .modal-body { min-width: 0; width: 100%; max-height: calc(100vh - 48px); padding: 20px 16px; }
  .modal-title { font-size: 15px; }

  /* Sidebar drawer already handled in earlier @media block */
}

/* Small phones */
@media (max-width: 480px) {
  .main { padding: 10px; }
  .page-header h1 { font-size: 18px; }
  .page-header .sub { font-size: 11px; }

  .topbar { height: 54px; padding: 0 10px; }
  .sidebar-toggle { padding: 6px; }
  .topbar .left { gap: 8px; }

  .stat { padding: 14px; }
  .stat .value { font-size: 20px; }
  .stat .label { font-size: 10px; }

  .card { padding: 12px; }
  .card-title { font-size: 11px; margin-bottom: 10px; }

  .btn { padding: 9px 12px; font-size: 12px; }
  .btn.sm { padding: 6px 10px; font-size: 11px; }
  .btn.wide { padding: 12px; font-size: 13px; }

  .form-field input,
  .form-field textarea,
  .form-field select { padding: 10px 12px; font-size: 14px; }
  .form-field label { font-size: 11px; }

  /* Auth: mobile-optimized card */
  .auth-shell { padding: 12px; }
  .auth-card { padding: 32px 22px; border-radius: 20px; }
  .auth-brand-top { margin-bottom: 20px; }
  .auth-title { font-size: 20px; }
  .auth-desc { font-size: 12px; margin-bottom: 20px; }
  .auth-tabs { margin-bottom: 18px; }
  .auth-tab { padding: 8px 0; font-size: 12px; }
  .auth-footer-note { bottom: 12px; font-size: 10px; }

  /* Table cell padding */
  .table th, .table td { padding: 8px 10px; font-size: 11px; }
  .table th { font-size: 9px; }
  .card > .table { min-width: 480px; }

  /* Live ticker mobile */
  .live-ticker-label { padding: 6px 8px; font-size: 9px; letter-spacing: 0.1em; }
  .live-ticker-label .live-dot { width: 6px; height: 6px; }
  .ticker-item { font-size: 10px; padding: 6px 10px; gap: 5px; }
  .ticker-krw { font-size: 10px; }

  /* Trading chart smaller on tiny screens */
  #chart { min-height: 220px; }
  .countdown { font-size: 24px; }
  .round-cell .lbl { font-size: 9px; }

  /* Amount + quick buttons */
  .amount-row input { font-size: 16px; }
  .quick-row { grid-template-columns: repeat(4, 1fr); }
  .quick-row .btn { padding: 7px 0; font-size: 10px; }

  /* Nav search */
  .sidebar .nav-search { padding: 10px 12px 6px; }
  .sidebar .nav-search input { font-size: 11px; }

  /* Notification panel: near full-width */
  .notif-panel { right: 8px; left: 8px; width: auto; top: 58px; }

  /* Pending trades / results tighter */
  .pending-head, .pending-row,
  .results-head, .result-row { padding: 6px 8px; font-size: 10px; gap: 4px; }
}

/* =========================================================================
   GC-AUTH — split-screen login (left green brand, right white form)
   ========================================================================= */
.gc-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.gc-auth-left {
  background: linear-gradient(160deg, #e6f9ee 0%, #d1f2df 50%, #b5e9c9 100%);
  padding: 46px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.gc-auth-brand {
  display: flex; align-items: center; gap: 10px;
}
.gc-auth-brand-name {
  font-weight: 800; letter-spacing: 0.16em; font-size: 15px; color: #0f7a44;
}
.gc-auth-tag {
  font-size: 22px; font-weight: 700; line-height: 1.45; color: #0f3d24;
  letter-spacing: -0.01em;
  max-width: 460px;
}
.gc-auth-illust {
  margin-top: auto;
  width: 100%;
  max-width: 520px;
  align-self: center;
}
.gc-auth-illust svg { width: 100%; height: auto; display: block; }

.gc-auth-right {
  display: flex;
  flex-direction: column;
  padding: 26px 56px 40px;
  background: #fff;
}
.gc-auth-top {
  display: flex; justify-content: flex-end;
}
.gc-auth-top-links {
  display: inline-flex; gap: 18px; align-items: center;
}
.gc-auth-top-links a {
  font-size: 13px; color: #999; padding: 6px 4px;
  text-decoration: none; font-weight: 500;
}
.gc-auth-top-links a.active { color: #17b871; font-weight: 700; }
.gc-auth-top-links a:hover { color: #17b871; }

.gc-auth-panel {
  margin: auto 0;
  width: 100%;
  max-width: 460px;
  align-self: flex-start;
  padding-top: 40px;
}
.gc-auth-h1 {
  font-size: 34px; font-weight: 800; color: #191f28;
  letter-spacing: -0.02em; margin-bottom: 36px;
}
.gc-auth-form { display: flex; flex-direction: column; gap: 14px; }
.gc-auth-form input {
  width: 100%;
  background: #f6f7fa;
  border: 1px solid #e9ecf1;
  border-radius: 10px;
  padding: 18px 18px;
  font-size: 14px;
  color: #191f28;
}
.gc-auth-form input:focus {
  outline: none;
  background: #fff;
  border-color: #17b871;
  box-shadow: 0 0 0 3px rgba(23, 184, 113, 0.18);
}
.gc-auth-cta {
  margin-top: 6px;
  padding: 18px 20px;
  background: #191f28;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.gc-auth-cta:hover { background: #0d1119; }
.gc-auth-cta.ghost {
  background: #fff; color: #191f28; border: 1px solid #e0e4ea;
}
.gc-auth-cta.ghost:hover { background: #f6f7fa; }
.gc-auth-signup-hint {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}
.gc-auth-signup-hint a { color: #17b871; font-weight: 700; }
.gc-auth-closed {
  text-align: center; padding: 40px 12px; background: #f6f7fa; border-radius: 10px;
}
.gc-auth-closed .t { font-size: 15px; font-weight: 700; color: #191f28; margin-bottom: 6px; }
.gc-auth-closed .s { font-size: 12px; color: #888; }

@media (max-width: 900px) {
  .gc-auth { grid-template-columns: 1fr; }
  .gc-auth-left { padding: 28px 20px; min-height: 220px; }
  .gc-auth-tag { font-size: 16px; }
  .gc-auth-illust { max-width: 320px; }
  .gc-auth-right { padding: 20px 20px 32px; }
  .gc-auth-panel { padding-top: 20px; }
  .gc-auth-h1 { font-size: 26px; margin-bottom: 24px; }
}

/* =========================================================================
   GC-BET-CARD — stacked trade box (reference: main2.png)
   ========================================================================= */
.gc-bet-card {
  background: #efeff2;
  border: 1px solid #d8d8dd;
  border-radius: 6px;
  padding: 12px 12px 14px;
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gc-bet-row {
  background: #ffffff;
  border: 1px solid #e2e2e6;
  border-radius: 4px;
  padding: 12px 10px 10px;
  text-align: center;
}
.gc-bet-row .k {
  font-size: 11px; color: #b09758; font-weight: 500; margin-bottom: 4px;
}
.gc-bet-row .v {
  font-size: 15px; font-weight: 700; color: #222; font-variant-numeric: tabular-nums;
}
.gc-bet-row .v.countdown {
  font-size: 20px; letter-spacing: 0.02em;
}
.gc-bet-row#strip-timer.cutoff .v { color: #e64545; animation: cutoffPulse 1s ease-in-out infinite; }

.gc-bet-amount {
  padding: 4px 0 0;
}
.gc-bet-amount label {
  display: block; text-align: center; font-size: 12px; color: #666;
  margin-bottom: 6px; font-weight: 500;
}
.gc-bet-amount .amount-input-wrap { position: relative; }
.gc-bet-amount .amount-input-wrap input {
  width: 100%; padding: 12px 40px 12px 14px;
  border: 1px solid #d8d8dd; border-radius: 4px;
  background: #fff; color: #222;
  font-size: 15px; font-weight: 700; text-align: right;
  font-variant-numeric: tabular-nums;
}
.gc-bet-amount .amount-input-wrap input:focus { outline: none; border-color: #999; }
.gc-bet-amount .amount-input-wrap .amount-suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: #888; font-weight: 700;
}
.gc-bet-amount .expected { text-align: center; font-size: 11px; color: #888; margin-top: 6px; font-variant-numeric: tabular-nums; }

.gc-bet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.gc-bet-btn {
  width: 100%; padding: 16px 0;
  border: none; border-radius: 4px;
  font-size: 16px; font-weight: 700; color: #fff;
  cursor: pointer; letter-spacing: 0.08em;
  transition: filter 0.12s, transform 0.05s;
}
.gc-bet-btn:hover { filter: brightness(0.94); }
.gc-bet-btn:active { transform: translateY(1px); }
.gc-bet-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.gc-bet-btn.buy { background: #ef5350; }
.gc-bet-btn.sell { background: #4a90e2; }
.gc-bet-btn.max { background: #8bc34a; }

.gc-bet-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.gc-bet-quick .btn {
  padding: 8px 0; font-size: 11px; font-weight: 600;
  background: #fff; border: 1px solid #d8d8dd; border-radius: 4px;
  color: #444; cursor: pointer;
}
.gc-bet-quick .btn:hover { background: #f6f6f8; }

/* Adjust trading layout for stacked bet box (bet card replaces horizontal strip) */
.trading-layout { grid-template-columns: minmax(0, 1fr) 320px !important; }
.trading-left .bet-strip { display: none; }

/* =========================================================================
   GC page shells — dark card and light card matching reference screenshots
   ========================================================================= */
body[data-mode="user"] .gc-main { background: #ececec !important; }
body[data-mode="user"] .gc-main .gc-page-wrap { padding: 40px 24px 60px; }

.gc-dark-card {
  background: #1c1c1c;
  border-radius: 4px;
  padding: 34px 40px 42px;
  color: #ccc;
  max-width: 1200px;
  margin: 0 auto;
}
.gc-dark-card .gc-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #6b6b6b;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}
.gc-dark-card .gc-total {
  color: #7a7a7a; font-size: 12px; margin-bottom: 12px;
}
.gc-dark-card table {
  width: 100%; border-collapse: collapse;
  color: #cfcfcf;
  font-size: 13px;
}
.gc-dark-card thead th {
  background: transparent;
  padding: 14px 10px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  color: #888;
  font-weight: 500;
  text-align: center;
}
.gc-dark-card tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #2a2a2a;
  text-align: center;
  color: #cccccc;
}
.gc-dark-card tbody tr:hover td { background: #232323; }
.gc-dark-card .gc-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  min-width: 40px;
}
.gc-dark-card .gc-tag.notice { color: #eab308; font-weight: 800; }
.gc-dark-card .gc-tag.done { color: #ff9500; font-weight: 700; }
.gc-dark-card .gc-tag.wait { color: #ff5b5b; font-weight: 700; }
.gc-dark-card .gc-btn-green {
  background: #40c78a; color: #fff;
  border: none; border-radius: 4px;
  padding: 10px 16px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.gc-dark-card .gc-btn-green:hover { background: #34a874; }
.gc-dark-card .gc-btn-blue {
  background: #4a90e2; color: #fff;
  border: none; border-radius: 4px;
  padding: 10px 16px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.gc-dark-card .gc-actions-right {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px;
}
.gc-dark-card .gc-pager {
  display: flex; justify-content: center; gap: 6px; margin-top: 24px;
}
.gc-dark-card .gc-pager span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 3px;
  background: #2b2b2b; color: #ccc; cursor: pointer; font-size: 12px;
}
.gc-dark-card .gc-pager span.active { background: #444; color: #fff; }
.gc-dark-card .gc-empty {
  text-align: center; padding: 90px 20px; color: #666; font-size: 13px;
}

.gc-light-card {
  background: #f0f0f0;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  padding: 34px 40px 42px;
  color: #333;
  max-width: 1000px;
  margin: 0 auto;
}
.gc-light-card .gc-title {
  text-align: center; font-size: 26px; font-weight: 700;
  color: #666; margin-bottom: 30px;
}
.gc-light-card .gc-info {
  background: #e8e8e8;
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.gc-light-card .gc-info-head {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  gap: 20px;
  color: #999; font-size: 13px; font-weight: 500; text-align: center;
  margin-bottom: 8px;
}
.gc-light-card .gc-info-body {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  gap: 20px;
  background: #dfdfdf; border-radius: 4px;
  padding: 16px; text-align: center;
  font-size: 15px; font-weight: 700; color: #222;
}
.gc-light-card .gc-info-body .krw { color: #e64545; }
.gc-light-card .gc-section-title {
  font-size: 20px; font-weight: 700; color: #444; margin: 8px 0 18px;
}
.gc-light-card .gc-panel {
  background: #f8f8f8;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 22px 26px;
}
.gc-light-card .gc-panel label {
  display: block; font-size: 15px; font-weight: 700; color: #333;
  margin: 14px 0 8px;
}
.gc-light-card .gc-panel .gc-amount-line {
  display: flex; align-items: center; gap: 8px;
}
.gc-light-card .gc-panel input[type="text"],
.gc-light-card .gc-panel input[type="number"],
.gc-light-card .gc-panel input[type="password"] {
  background: #fff; border: 1px solid #ccc; border-radius: 3px;
  padding: 8px 10px; font-size: 14px; color: #222;
  width: 260px;
}
.gc-light-card .gc-panel input:focus { outline: none; border-color: #4a90e2; }
.gc-light-card .gc-panel .gc-amount-line .unit { color: #666; font-size: 14px; }
.gc-light-card .gc-panel .gc-quick {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px;
}
.gc-light-card .gc-panel .gc-quick .gc-qbtn {
  background: #3b7ed6; color: #fff; border: none; border-radius: 3px;
  padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.gc-light-card .gc-panel .gc-quick .gc-qbtn:hover { background: #2f6bbf; }
.gc-light-card .gc-panel .gc-quick .gc-qbtn.reset {
  background: #ea4a4a;
  padding: 7px 12px;
}
.gc-light-card .gc-panel .gc-fastacct {
  background: #58cdea; color: #fff; border: none; border-radius: 3px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.gc-light-card .gc-panel .gc-instr {
  margin-top: 20px; font-size: 13px; color: #333; line-height: 1.9;
}
.gc-light-card .gc-panel .gc-instr .warn { color: #e64545; font-weight: 700; }
.gc-light-card .gc-submit-row {
  text-align: center; margin-top: 22px;
}
.gc-light-card .gc-submit {
  background: #58cdea; color: #fff; border: none; border-radius: 3px;
  padding: 12px 30px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.gc-light-card .gc-submit:hover { background: #38b5d6; }

.gc-light-card .gc-history {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-top: 26px;
  padding: 20px 22px;
}
.gc-light-card .gc-history .gc-history-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
  font-size: 13px; color: #666;
}
.gc-light-card .gc-history table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.gc-light-card .gc-history th {
  padding: 10px 8px; border-bottom: 1px solid #e0e0e0;
  color: #999; font-weight: 500; text-align: center;
}
.gc-light-card .gc-history td {
  padding: 12px 8px; border-bottom: 1px solid #f0f0f0; text-align: center; color: #444;
}
.gc-light-card .gc-history .empty {
  text-align: center; color: #999; padding: 40px 20px; font-size: 13px;
}

/* Home dashboard three-panel row (deposit/withdrawal live + notices) */
.gc-home-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto 32px;
}
.gc-home-3col .gc-panel-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 18px 20px 22px;
}
.gc-home-3col .gc-panel-card h3 {
  text-align: center; font-size: 16px; font-weight: 700; color: #b09758;
  margin-bottom: 14px;
}
.gc-home-3col .gc-panel-card table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.gc-home-3col .gc-panel-card th, .gc-home-3col .gc-panel-card td {
  padding: 8px 6px; text-align: center;
}
.gc-home-3col .gc-panel-card th { color: #999; font-weight: 500; border-bottom: 1px solid #e5e5e5; }
.gc-home-3col .gc-panel-card td { color: #444; }
.gc-home-3col .gc-notice-list a {
  display: block; padding: 8px 4px; border-bottom: 1px dashed #eee;
  font-size: 12px; color: #444; text-decoration: none;
}
.gc-home-3col .gc-notice-list a:hover { color: #17b871; }
.gc-home-3col .gc-notice-list a .tag { color: #d4b74e; font-weight: 700; margin-right: 6px; }
@media (max-width: 900px) {
  .gc-home-3col { grid-template-columns: 1fr; }
}

/* =========================================================================
   GC Landing (pre-login home) — reference: home1.png ~ home10.png
   ========================================================================= */
.gc-landing {
  background: #fff;
  min-height: 100vh;
  font-family: "Inter", -apple-system, "Pretendard Variable", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: #191f28;
  position: relative;
}
.gc-lp-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px; background: #fff; position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid #f0f0f0;
}
.gc-lp-brand { font-size: 22px; font-weight: 800; letter-spacing: 0.02em; color: #17b871; }
.gc-lp-nav { display: inline-flex; align-items: center; gap: 18px; }
.gc-lp-nav a { font-size: 14px; color: #191f28; cursor: pointer; text-decoration: none; font-weight: 500; }
.gc-lp-nav a:hover { color: #17b871; }
.gc-lp-signup {
  background: #191f28; color: #fff; border: none; border-radius: 999px;
  padding: 10px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.gc-lp-signup:hover { background: #0d1119; }
.gc-lp-icon {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e0e4ea;
  display: inline-flex; align-items: center; justify-content: center;
  color: #555; cursor: pointer; font-size: 14px;
}
.gc-lp-currency { font-size: 13px; color: #555; font-weight: 700; }

/* Hero */
.gc-lp-hero {
  background: linear-gradient(150deg, #e8faf0 0%, #d4f3e0 60%, #ffffff 100%);
  padding: 80px 60px 100px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.gc-lp-hero h1 { font-size: 48px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: #0f3d24; }
.gc-lp-hero .hero-sub { color: #4c5967; margin-top: 20px; font-size: 15px; }
.gc-lp-hero .hero-cta {
  margin-top: 32px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 20px;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 18px rgba(15, 61, 36, 0.08);
  width: 460px; max-width: 100%;
}
.gc-lp-hero .hero-cta input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 14px; color: #333; padding: 8px 0;
}
.gc-lp-hero .hero-cta button {
  background: #191f28; color: #fff; border: none; border-radius: 999px;
  padding: 12px 22px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.gc-lp-hero .hero-stats {
  display: flex; gap: 60px; margin-top: 60px;
}
.gc-lp-hero .hero-stats div { display: flex; flex-direction: column; }
.gc-lp-hero .hero-stats .v { font-size: 32px; font-weight: 800; color: #0f3d24; letter-spacing: -0.02em; }
.gc-lp-hero .hero-stats .k { font-size: 12px; color: #4c5967; margin-top: 4px; }
.gc-lp-hero .hero-illust {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  position: relative; min-height: 320px;
}
.gc-lp-hero .hero-qr {
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 61, 36, 0.12);
}
.gc-lp-hero .qr-grid {
  display: grid; grid-template-columns: repeat(10, 8px); gap: 2px;
}
.gc-lp-hero .qr-grid i { display: block; width: 8px; height: 8px; background: #0f3d24; border-radius: 1px; }
.gc-lp-hero .hero-robot { font-size: 120px; filter: drop-shadow(0 8px 16px rgba(23,184,113,0.3)); }

/* Market overview */
.gc-lp-market { padding: 70px 60px; }
.gc-lp-market .market-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px;
  max-width: 1400px; margin-left: auto; margin-right: auto;
}
.gc-lp-market h2 { font-size: 30px; font-weight: 800; }
.gc-lp-market .market-all { color: #17b871; font-size: 14px; font-weight: 700; cursor: pointer; }
.gc-lp-market .market-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  max-width: 1400px; margin: 0 auto;
}
.gc-coin-card {
  background: #fff; border: 1px solid #eef1f5; border-radius: 20px;
  padding: 26px 28px; box-shadow: 0 2px 10px rgba(15,23,41,0.03);
}
.coin-card-title {
  font-size: 17px; font-weight: 800; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.coin-card-title .bar { display: inline-block; width: 4px; height: 18px; background: #17b871; border-radius: 2px; }
.coin-list { display: flex; flex-direction: column; gap: 16px; }
.coin-row { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 14px; align-items: center; }
.coin-mark {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
}
.coin-name .coin-sym { font-size: 14px; font-weight: 800; color: #191f28; }
.coin-name .coin-ko { font-size: 11px; color: #8b95a5; }
.coin-price { font-size: 14px; font-weight: 700; color: #191f28; font-variant-numeric: tabular-nums; }
.coin-chg { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.coin-chg.up { color: #17b871; }
.coin-chg.down { color: #ef4444; }

/* Signup promo */
.gc-lp-promo {
  padding: 40px 60px 40px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center;
  max-width: 1400px; margin: 0 auto;
}
.gc-lp-promo .promo-left { display: flex; justify-content: center; }
.gc-lp-promo .promo-cube {
  width: 220px; height: 220px; border-radius: 22px;
  background: linear-gradient(135deg, #17b871 0%, #0f7a44 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 100px; box-shadow: 0 24px 40px rgba(15,122,68,0.24);
}
.gc-lp-promo .promo-right h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.gc-lp-promo .promo-right p { color: #4c5967; font-size: 14px; }
.gc-lp-promo .promo-right p b { color: #191f28; font-weight: 800; }
.gc-lp-promo .promo-more { display: inline-block; margin-top: 14px; color: #17b871; font-weight: 700; cursor: pointer; }
.gc-lp-promo .promo-cta {
  margin-top: 22px; background: #f3fbf6; border-radius: 20px; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.gc-lp-promo .promo-cta-l .t { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.gc-lp-promo .promo-cta-l .s { font-size: 13px; color: #4c5967; }
.gc-lp-promo .promo-cta button {
  background: #191f28; color: #fff; border: none; border-radius: 999px;
  padding: 14px 30px; font-size: 14px; font-weight: 700; cursor: pointer;
}

/* Services */
.gc-lp-services { padding: 70px 60px; }
.gc-lp-services h2 { text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 40px; }
.gc-lp-services .svc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 1400px; margin: 0 auto;
}
.svc-card {
  background: #fff; border: 1px solid #eef1f5; border-radius: 20px;
  padding: 30px 30px 26px; box-shadow: 0 2px 10px rgba(15,23,41,0.03);
  transition: transform 0.12s, box-shadow 0.12s;
  cursor: pointer;
}
.svc-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15,23,41,0.06); }
.svc-card .svc-t { font-size: 20px; font-weight: 800; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.svc-card .svc-t .arr { color: #8b95a5; font-weight: 400; }
.svc-card .svc-d { color: #4c5967; font-size: 13px; line-height: 1.6; }

/* Trust */
.gc-lp-trust { padding: 80px 60px; background: #fcfcfc; }
.gc-lp-trust h2 { text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 22px; }
.gc-lp-trust .trust-more { text-align: center; margin-bottom: 50px; }
.gc-lp-trust .trust-more button {
  background: #191f28; color: #fff; border: none; border-radius: 999px;
  padding: 12px 26px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.gc-lp-trust .trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  max-width: 1400px; margin: 0 auto; text-align: center;
}
.trust-card { padding: 20px; }
.trust-card .trust-icon {
  width: 90px; height: 90px; border-radius: 22px; background: #eefdf3;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 40px; color: #17b871; margin-bottom: 18px;
}
.trust-card .trust-t { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.trust-card .trust-d { color: #4c5967; font-size: 12px; line-height: 1.6; }

/* Mobile app section */
.gc-lp-mobile {
  padding: 70px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  background: linear-gradient(120deg, #ffffff 0%, #eefdf3 100%);
  max-width: 100%;
}
.gc-lp-mobile .mob-left { display: flex; justify-content: center; }
.gc-lp-mobile .phone-frame {
  width: 220px; height: 400px; border-radius: 36px; background: #111;
  padding: 12px; box-shadow: 0 30px 60px rgba(15,61,36,0.2);
}
.gc-lp-mobile .phone-screen {
  background: linear-gradient(180deg, #eefdf3 0%, #ffffff 100%);
  width: 100%; height: 100%; border-radius: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}
.gc-lp-mobile h2 { font-size: 32px; font-weight: 800; }
.gc-lp-mobile p { color: #4c5967; margin: 14px 0 30px; }
.gc-lp-mobile .mob-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.gc-lp-mobile .mob-links li {
  padding: 12px 20px; border: 1px solid #cfe9d9; border-radius: 999px;
  width: 240px; color: #191f28; font-weight: 700; font-size: 14px;
}

/* Community */
.gc-lp-community { padding: 80px 60px; }
.gc-lp-community h2 { font-size: 32px; font-weight: 800; margin-bottom: 30px; }
.com-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1400px; margin: 0 auto; }
.com-card {
  background: #f6f9f7; border-radius: 20px; padding: 30px 32px;
}
.com-card.green { background: #eafaf1; }
.com-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.com-card p { color: #4c5967; font-size: 14px; margin-bottom: 16px; }
.com-card a { color: #17b871; font-weight: 700; cursor: pointer; }
.com-social { display: flex; gap: 10px; margin: 20px 0; }
.com-social .s {
  width: 38px; height: 38px; border-radius: 50%; background: #191f28;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800;
}
.com-social .s.tg { background: #24a1de; }
.com-social .s.kk { background: #ffe812; color: #191f28; font-size: 10px; }
.com-social .s.tw { background: #000; }
.com-social .s.ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.com-social .s.me { background: #191f28; }

/* Live tickers (deposit/withdrawal) — the "profits happening" section */
.gc-lp-live {
  padding: 40px 60px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  max-width: 1400px; margin: 0 auto;
}
.gc-lp-live .live-panel h3 {
  text-align: center; font-size: 15px; font-weight: 700; color: #b09758; margin-bottom: 16px;
}
.gc-lp-live table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gc-lp-live thead th {
  color: #8b95a5; font-weight: 500; padding: 10px 8px; border-bottom: 1px solid #e5e5e5; text-align: center;
}
.gc-lp-live thead th.amt { text-align: center; }
.gc-lp-live thead th.dt { text-align: center; }
.gc-lp-live tbody td {
  padding: 12px 8px; border-bottom: 1px solid #f0f0f0; color: #444; text-align: center;
  font-variant-numeric: tabular-nums;
}
.gc-lp-live tbody td.amt { color: #ef4444; font-weight: 700; }
.gc-lp-live tbody tr.gc-pulse td { animation: rowPulseGreen 1.4s ease-out; }
@keyframes rowPulseGreen {
  0% { background: rgba(23, 184, 113, 0.28); transform: translateY(-4px); }
  100% { background: transparent; transform: translateY(0); }
}

/* FAQ */
.gc-lp-faq { padding: 40px 60px 80px; max-width: 1200px; margin: 0 auto; }
.gc-lp-faq h2 { font-size: 32px; font-weight: 800; margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.gc-faq-item {
  background: #f6f7fa; border-radius: 16px; padding: 22px 24px; cursor: pointer;
  transition: background 0.15s;
}
.gc-faq-item:hover { background: #eef4f0; }
.gc-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600;
}
.gc-faq-q .plus { color: #17b871; font-size: 22px; font-weight: 400; transition: transform 0.2s; }
.gc-faq-a { display: none; margin-top: 14px; color: #4c5967; font-size: 13px; line-height: 1.7; }
.gc-faq-item.open .gc-faq-a { display: block; }
.gc-faq-item.open .gc-faq-q .plus { transform: rotate(45deg); }

/* Footer */
.gc-lp-footer {
  background: #fff; border-top: 1px solid #f0f0f0;
  padding: 60px 60px 30px;
}
.foot-brand { font-size: 22px; font-weight: 800; color: #17b871; margin-bottom: 30px; }
.foot-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px;
  padding: 20px 0; border-bottom: 1px solid #f0f0f0;
}
.foot-col .foot-t { font-size: 15px; font-weight: 800; color: #191f28; margin-bottom: 14px; }
.foot-col a {
  display: block; padding: 5px 0; color: #4c5967; font-size: 13px; text-decoration: none; cursor: pointer;
}
.foot-col a:hover { color: #17b871; }
.foot-social { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.foot-social span {
  width: 34px; height: 34px; border-radius: 50%; background: #f0f2f5;
  display: inline-flex; align-items: center; justify-content: center;
  color: #4c5967; font-size: 13px; font-weight: 700;
}
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; color: #8b95a5; font-size: 12px;
}
.foot-ticker b { color: #191f28; font-weight: 800; }

/* Floating CS + social */
.gc-landing-cs {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.gc-landing-cs .cs-btn {
  width: 54px; height: 54px; border-radius: 50%; background: #eafaf1;
  border: 2px solid #17b871; color: #17b871; font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.gc-landing-cs .cs-social { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; background: #fff; border: 1px solid #e0e4ea; border-radius: 8px; }
.gc-landing-cs .cs-social .s {
  width: 22px; height: 22px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 800;
}
.gc-landing-cs .cs-social .s.fb { background: #1877f2; }
.gc-landing-cs .cs-social .s.tg { background: #24a1de; }
.gc-landing-cs .cs-social .s.rd { background: #ff4500; }
.gc-landing-cs .cs-social .s.tw { background: #000; }

/* Responsive */
@media (max-width: 900px) {
  .gc-lp-top { padding: 14px 20px; }
  .gc-lp-hero { padding: 40px 20px 60px; grid-template-columns: 1fr; text-align: center; }
  .gc-lp-hero h1 { font-size: 32px; }
  .gc-lp-hero .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .gc-lp-market, .gc-lp-services, .gc-lp-trust, .gc-lp-mobile, .gc-lp-community, .gc-lp-live, .gc-lp-faq, .gc-lp-footer { padding: 40px 20px; }
  .gc-lp-market .market-grid, .gc-lp-services .svc-grid { grid-template-columns: 1fr; }
  .gc-lp-trust .trust-grid { grid-template-columns: 1fr 1fr; }
  .gc-lp-mobile, .gc-lp-live, .com-grid, .gc-lp-promo { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

