/* ============================================================
   KoreCraft Hosting — app.css
   Auth pages (login / signup / reset) + Dashboard layout
   ============================================================ */

/* ── Variáveis compartilhadas ─────────────────────────────── */
:root {
  --kc-950:      #1A0F2E;
  --kc-900:      #2D1454;
  --kc-800:      #3D1A80;
  --kc-700:      #4A20B0;
  --kc-600:      #5A1EE6;
  --kc-500:      #8A4CFF;
  --kc-400:      #A97BFF;
  --kc-300:      #C89BFF;
  --kc-100:      #EDE6FF;
  --kc-text:     #C8B8E8;
  --kc-muted:    #7C6A9A;
  --kc-border:   rgba(138, 76, 255, .18);
  --kc-glass:    rgba(45, 20, 84, .5);
  --kc-grad-btn: linear-gradient(135deg, #5A1EE6 0%, #8A4CFF 100%);
  --kc-shadow:   0 0 40px rgba(90, 30, 230, .3);
  --radius:      12px;
  --transition:  all .2s cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset base ───────────────────────────────────────────── */
body { background: var(--kc-950); color: var(--kc-text); }

/* ════════════════════════════════════════════════════════════
   AUTH PAGES (login / signup / password-reset)
   ════════════════════════════════════════════════════════════ */

.kca-auth-page {
  min-height: 100vh;
  display: flex;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--kc-950);
  -webkit-font-smoothing: antialiased;
}

/* Painel esquerdo — branding */
.kca-brand-panel {
  width: 42%;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(90,30,230,.35) 0%, transparent 60%),
    linear-gradient(160deg, #1A0F2E 0%, #2D1454 50%, #3D1A80 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.kca-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(138,76,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,76,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.kca-brand-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
  text-decoration: none;
}
.kca-brand-logo .logo-box {
  width: 38px; height: 38px;
  background: var(--kc-grad-btn);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 16px rgba(90,30,230,.6);
}
.kca-brand-logo .accent { color: var(--kc-400); }
.kca-brand-panel h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.kca-brand-panel h2 .grad {
  background: linear-gradient(90deg, var(--kc-300), var(--kc-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kca-brand-panel > p {
  color: var(--kc-muted);
  font-size: .95rem;
  line-height: 1.65;
  max-width: 360px;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}
.kca-brand-feats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.kca-brand-feat {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .8rem 1rem;
  background: rgba(138,76,255,.1);
  border: 1px solid rgba(138,76,255,.2);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
.kca-brand-feat .fi {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(90,30,230,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.kca-brand-feat span { font-size: .87rem; color: var(--kc-100); font-weight: 500; }

/* Painel direito — formulário */
.kca-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: var(--kc-950);
  overflow-y: auto;
}
.kca-form-box {
  width: 100%;
  max-width: 440px;
}
.kca-form-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--kc-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: var(--transition);
}
.kca-form-back:hover { color: var(--kc-300); }
.kca-form-box h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .45rem;
}
.kca-form-box .kca-subtitle {
  font-size: .9rem;
  color: var(--kc-muted);
  margin-bottom: 2rem;
}
.kca-form-group { margin-bottom: 1.1rem; }
.kca-form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--kc-300);
  margin-bottom: .4rem;
  letter-spacing: .2px;
}
.kca-input,
.kca-form-panel .form-control,
.kca-form-panel .form-select {
  width: 100%;
  background: rgba(45,20,84,.4) !important;
  border: 1.5px solid var(--kc-border) !important;
  border-radius: 10px !important;
  color: var(--kc-100) !important;
  font-size: .92rem;
  padding: .72rem 1rem;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  font-family: 'Inter', sans-serif;
}
.kca-input::placeholder,
.kca-form-panel .form-control::placeholder { color: var(--kc-muted) !important; }
.kca-input:focus,
.kca-form-panel .form-control:focus,
.kca-form-panel .form-select:focus {
  border-color: var(--kc-600) !important;
  background: rgba(45,20,84,.65) !important;
  box-shadow: 0 0 0 3px rgba(90,30,230,.2) !important;
  color: #fff !important;
}
.kca-form-panel .form-select option {
  background: var(--kc-900);
  color: var(--kc-text);
}
.kca-form-text {
  font-size: .77rem;
  color: var(--kc-muted);
  margin-top: .35rem;
  line-height: 1.5;
}
.kca-form-text a { color: var(--kc-400); }

/* Bot�o prim�rio do form */
.kca-form-btn,
.kca-form-panel .btn.btn-primary {
  width: 100%;
  padding: .82rem;
  background: var(--kc-grad-btn) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: .95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(90,30,230,.35);
  display: block;
  text-align: center;
  text-decoration: none;
}
.kca-form-btn:hover,
.kca-form-panel .btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(90,30,230,.55);
  color: #fff !important;
}

/* Botões secundários */
.kca-form-panel .btn.btn-outline-primary {
  background: transparent !important;
  border: 1.5px solid var(--kc-border) !important;
  color: var(--kc-300) !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: var(--transition);
}
.kca-form-panel .btn.btn-outline-primary:hover {
  border-color: var(--kc-500) !important;
  background: rgba(138,76,255,.1) !important;
  color: var(--kc-100) !important;
}

/* Divisor */
.kca-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0;
  color: var(--kc-muted);
  font-size: .8rem;
}
.kca-divider::before, .kca-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--kc-border);
}

/* Links do form */
.kca-form-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}
.kca-form-links a {
  font-size: .83rem;
  color: var(--kc-muted);
  text-decoration: none;
  transition: var(--transition);
}
.kca-form-links a:hover { color: var(--kc-300); }

/* Checkbox TOS */
.kca-form-panel .form-check-input {
  background-color: rgba(45,20,84,.6) !important;
  border-color: var(--kc-border) !important;
}
.kca-form-panel .form-check-input:checked {
  background-color: var(--kc-600) !important;
  border-color: var(--kc-600) !important;
}
.kca-form-panel .form-check-label {
  color: var(--kc-muted);
  font-size: .83rem;
}
.kca-form-panel .form-check-label a { color: var(--kc-400); }

/* Mobile auth */
@media (max-width: 768px) {
  .kca-brand-panel { display: none; }
  .kca-form-panel  { padding: 2rem 1.25rem; }
}

/* ════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT (pós-login)
   ════════════════════════════════════════════════════════════ */

body.kca-dashboard-body {
  background: var(--kc-950);
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.kca-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.kca-sidebar {
  width: 256px;
  flex-shrink: 0;
  background: rgba(20, 10, 38, .98);
  border-right: 1px solid var(--kc-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .25s ease;
  overflow-y: auto;
}
.kca-sidebar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  padding: 1.4rem 1.25rem;
  border-bottom: 1px solid var(--kc-border);
  letter-spacing: .3px;
}
.kca-sidebar-logo .logo-box {
  width: 34px; height: 34px;
  background: var(--kc-grad-btn);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(90,30,230,.5);
  flex-shrink: 0;
}
.kca-sidebar-logo .accent { color: var(--kc-400); }
.kca-sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}
.kca-sidebar-section {
  padding: .5rem 1rem .25rem;
  font-size: .68rem;
  font-weight: 700;
  color: var(--kc-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.kca-sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  color: var(--kc-muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 0;
  position: relative;
}
.kca-sidebar-link svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.kca-sidebar-link:hover {
  color: var(--kc-300);
  background: rgba(138,76,255,.08);
}
.kca-sidebar-link.active {
  color: var(--kc-300);
  background: rgba(138,76,255,.12);
}
.kca-sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--kc-600);
  border-radius: 0 3px 3px 0;
}
.kca-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--kc-border);
}
.kca-sidebar-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem;
  border-radius: 10px;
  background: rgba(138,76,255,.07);
  border: 1px solid var(--kc-border);
}
.kca-sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--kc-grad-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.kca-sidebar-user-info { flex: 1; min-width: 0; }
.kca-sidebar-user-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--kc-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kca-sidebar-user-role { font-size: .72rem; color: var(--kc-muted); }
.kca-sidebar-balance {
  margin-top: .75rem;
  padding: .65rem 1rem;
  background: rgba(90,30,230,.12);
  border: 1px solid rgba(90,30,230,.2);
  border-radius: 8px;
}
.kca-sidebar-balance .label { font-size: .7rem; color: var(--kc-muted); text-transform: uppercase; letter-spacing: .5px; }
.kca-sidebar-balance .value { font-size: 1.05rem; font-weight: 700; color: var(--kc-300); font-family: 'Orbitron', sans-serif; }

/* ── Main area ────────────────────────────────────────────── */
.kca-main {
  flex: 1;
  margin-left: 256px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Top bar ──────────────────────────────────────────────── */
.kca-topbar {
  height: 60px;
  background: rgba(20, 10, 38, .95);
  border-bottom: 1px solid var(--kc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(12px);
}
.kca-topbar-left { display: flex; align-items: center; gap: .5rem; }
.kca-hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
  color: var(--kc-muted);
}
.kca-hamburger-btn:hover { color: var(--kc-300); }
.kca-page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--kc-100);
  letter-spacing: .3px;
}
.kca-topbar-right { display: flex; align-items: center; gap: .75rem; }
.kca-topbar-btn {
  background: rgba(138,76,255,.1);
  border: 1px solid var(--kc-border);
  color: var(--kc-text);
  border-radius: 8px;
  padding: .4rem .85rem;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  display: flex; align-items: center; gap: .35rem;
}
.kca-topbar-btn:hover { border-color: var(--kc-500); color: var(--kc-300); background: rgba(138,76,255,.18); }
.kca-topbar-btn.primary { background: var(--kc-grad-btn); border-color: transparent; color: #fff; }
.kca-topbar-btn.primary:hover { box-shadow: 0 4px 16px rgba(90,30,230,.4); color: #fff; }
.kca-topbar-sep { width: 1px; height: 24px; background: var(--kc-border); }
.kca-user-dropdown { position: relative; }
.kca-user-trigger {
  display: flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  padding: .4rem .7rem;
  border-radius: 8px;
  border: 1px solid var(--kc-border);
  background: rgba(138,76,255,.07);
  transition: var(--transition);
}
.kca-user-trigger:hover { border-color: var(--kc-500); background: rgba(138,76,255,.14); }
.kca-user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--kc-grad-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
}
.kca-user-trigger .name { font-size: .82rem; font-weight: 500; color: var(--kc-100); }
.kca-user-trigger .arrow { font-size: .7rem; color: var(--kc-muted); }
.kca-dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 180px;
  background: rgba(20,10,38,.98);
  border: 1px solid var(--kc-border);
  border-radius: 10px;
  padding: .4rem;
  display: none;
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  z-index: 200;
}
.kca-user-dropdown:hover .kca-dropdown-menu { display: block; }
.kca-dropdown-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .85rem;
  font-size: .85rem;
  color: var(--kc-text);
  text-decoration: none;
  border-radius: 7px;
  transition: var(--transition);
}
.kca-dropdown-item:hover { background: rgba(138,76,255,.12); color: var(--kc-300); }
.kca-dropdown-item.danger { color: #f87171; }
.kca-dropdown-item.danger:hover { background: rgba(248,113,113,.08); }
.kca-dropdown-sep { height: 1px; background: var(--kc-border); margin: .3rem 0; }

/* ── Content area ─────────────────────────────────────────── */
.kca-content {
  flex: 1;
  padding: 2rem 1.75rem;
  max-width: 1100px;
  width: 100%;
}

/* ── Bootstrap overrides dentro do dashboard ─────────────── */
body.kca-dashboard-body .card {
  background: rgba(45, 20, 84, .3) !important;
  border: 1px solid var(--kc-border) !important;
  border-radius: 12px !important;
  color: var(--kc-text);
}
body.kca-dashboard-body .card-header {
  background: rgba(45, 20, 84, .4) !important;
  border-bottom: 1px solid var(--kc-border) !important;
  color: var(--kc-100);
  font-family: 'Orbitron', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3px;
}
body.kca-dashboard-body h1,
body.kca-dashboard-body h2,
body.kca-dashboard-body h3,
body.kca-dashboard-body h4,
body.kca-dashboard-body h5,
body.kca-dashboard-body h6 { color: var(--kc-100); }
body.kca-dashboard-body .card-body dt,
body.kca-dashboard-body .card-body dd { color: var(--kc-text); }
body.kca-dashboard-body .text-muted { color: var(--kc-muted) !important; }
body.kca-dashboard-body .text-secondary { color: var(--kc-muted) !important; }

/* Botões */
body.kca-dashboard-body .btn-primary,
body.kca-dashboard-body .order-button {
  background: var(--kc-grad-btn) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 3px 14px rgba(90,30,230,.3);
  transition: var(--transition);
}
body.kca-dashboard-body .btn-primary:hover { box-shadow: 0 5px 20px rgba(90,30,230,.5) !important; transform: translateY(-1px); }
body.kca-dashboard-body .btn-dark {
  background: rgba(45,20,84,.6) !important;
  border: 1px solid var(--kc-border) !important;
  color: var(--kc-300) !important;
  border-radius: 8px !important;
}
body.kca-dashboard-body .btn-dark:hover { background: rgba(90,30,230,.2) !important; border-color: var(--kc-500) !important; }
body.kca-dashboard-body .btn-sm { font-size: .8rem !important; padding: .35rem .8rem !important; }
body.kca-dashboard-body .btn-outline-primary {
  background: transparent !important;
  border: 1.5px solid rgba(138,76,255,.35) !important;
  color: var(--kc-300) !important;
  border-radius: 8px !important;
}
body.kca-dashboard-body .btn-outline-primary:hover {
  background: rgba(138,76,255,.12) !important;
  border-color: var(--kc-500) !important;
  color: var(--kc-100) !important;
}
body.kca-dashboard-body .btn-success { background: #16a34a !important; border-color: #16a34a !important; border-radius: 8px !important; }
body.kca-dashboard-body .btn-danger  { background: #dc2626 !important; border-color: #dc2626 !important; border-radius: 8px !important; }
body.kca-dashboard-body .btn-warning { background: #d97706 !important; border-color: #d97706 !important; border-radius: 8px !important; }

/* Inputs */
body.kca-dashboard-body .form-control,
body.kca-dashboard-body .form-select {
  background: rgba(45,20,84,.4) !important;
  border: 1.5px solid var(--kc-border) !important;
  border-radius: 9px !important;
  color: var(--kc-100) !important;
}
body.kca-dashboard-body .form-control:focus,
body.kca-dashboard-body .form-select:focus {
  border-color: var(--kc-600) !important;
  box-shadow: 0 0 0 3px rgba(90,30,230,.2) !important;
}
body.kca-dashboard-body .form-label { color: var(--kc-300) !important; font-size: .83rem; font-weight: 600; }

/* Badges e alertas */
body.kca-dashboard-body .badge.bg-success  { background: rgba(34,197,94,.2) !important; color: #4ade80 !important; border: 1px solid rgba(34,197,94,.3); }
body.kca-dashboard-body .badge.bg-warning  { background: rgba(234,179,8,.2) !important;  color: #facc15 !important; border: 1px solid rgba(234,179,8,.3); }
body.kca-dashboard-body .badge.bg-danger   { background: rgba(239,68,68,.2) !important;  color: #f87171 !important; border: 1px solid rgba(239,68,68,.3); }
body.kca-dashboard-body .badge.bg-secondary{ background: rgba(100,116,139,.2) !important;color: var(--kc-muted) !important; }
body.kca-dashboard-body .badge.bg-primary  { background: rgba(90,30,230,.25) !important; color: var(--kc-300) !important; }
body.kca-dashboard-body .alert-info  { background: rgba(90,30,230,.15) !important; border-color: rgba(90,30,230,.3) !important; color: var(--kc-100) !important; }

/* Tabelas */
body.kca-dashboard-body .table { color: var(--kc-text) !important; border-color: var(--kc-border) !important; }
body.kca-dashboard-body .table th { color: var(--kc-300) !important; border-color: var(--kc-border) !important; font-size: .8rem; font-weight: 600; }
body.kca-dashboard-body .table td { border-color: var(--kc-border) !important; }
body.kca-dashboard-body .table-striped>tbody>tr:nth-of-type(odd)>* { background: rgba(45,20,84,.15) !important; }

/* List group */
body.kca-dashboard-body .list-group-item {
  background: transparent !important;
  border-color: var(--kc-border) !important;
  color: var(--kc-text) !important;
  transition: var(--transition);
}
body.kca-dashboard-body .list-group-item:hover { background: rgba(138,76,255,.07) !important; color: var(--kc-100) !important; }

/* Breadcrumb */
body.kca-dashboard-body .breadcrumb { display: none; }

/* Alerts / Toasts do FOSSBilling */
body.kca-dashboard-body .toast-container .toast { background: rgba(20,10,38,.95) !important; border: 1px solid var(--kc-border) !important; color: var(--kc-text) !important; }

/* Client panel navigation and dashboard */
.kca-sidebar-nav-legacy { display:none !important; }
.kca-client-nav { padding-bottom:1rem; }
.kca-sidebar-logo {
  flex-wrap:wrap;
  align-content:center;
}
.kca-sidebar-logo small {
  display:block;
  width:100%;
  margin-left:50px;
  margin-top:-.55rem;
  font-family:'Inter', system-ui, sans-serif;
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--kc-muted);
}
.kca-sidebar-logo .logo-box {
  font-family:'Orbitron', sans-serif;
  font-size:.78rem !important;
}
.kca-alert {
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:center;
  margin-bottom:1rem;
  padding:.85rem 1rem;
  border:1px solid rgba(138,76,255,.24);
  background:rgba(138,76,255,.12);
  border-radius:10px;
  color:var(--kc-100);
}
.kca-alert a { color:var(--kc-300); font-weight:700; text-decoration:none; }
.kca-dash-hero {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:1.5rem;
  margin-bottom:1.25rem;
  padding:1.4rem;
  border:1px solid rgba(138,76,255,.22);
  border-radius:14px;
  background:
    linear-gradient(135deg, rgba(90,30,230,.22), rgba(45,20,84,.35)),
    radial-gradient(circle at 82% 12%, rgba(200,155,255,.22), transparent 34%);
}
.kca-eyebrow {
  display:block;
  margin-bottom:.35rem;
  color:var(--kc-300);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.kca-dash-hero h1 {
  margin:0 0 .35rem;
  font-family:'Orbitron', sans-serif;
  color:#fff;
  font-size:clamp(1.45rem, 2.4vw, 2.15rem);
}
.kca-dash-hero p {
  margin:0;
  max-width:680px;
  color:var(--kc-text);
}
.kca-hero-actions {
  display:flex;
  gap:.65rem;
  flex-wrap:wrap;
}
.kca-action-primary,
.kca-action-secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:.65rem .95rem;
  border-radius:9px;
  font-size:.86rem;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.kca-action-primary { background:var(--kc-grad-btn); color:#fff; box-shadow:0 8px 24px rgba(90,30,230,.28); }
.kca-action-secondary { color:var(--kc-300); border:1px solid var(--kc-border); background:rgba(255,255,255,.04); }
.kca-action-primary:hover,
.kca-action-secondary:hover { color:#fff; transform:translateY(-1px); }
.kca-stats-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:.85rem;
  margin-bottom:1.25rem;
}
.kca-stat-card {
  min-height:132px;
  padding:1rem;
  border:1px solid rgba(138,76,255,.18);
  border-radius:12px;
  background:rgba(255,255,255,.96);
  color:var(--kc-ink, #160b2c);
  text-decoration:none;
  box-shadow:0 12px 34px rgba(18,8,36,.08);
}
.kca-stat-card:hover { transform:translateY(-2px); color:var(--kc-ink, #160b2c); }
.kca-stat-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  margin-bottom:.75rem;
  border-radius:9px;
  background:#efe8ff;
  color:var(--kc-600);
  font-weight:900;
}
.kca-stat-label {
  display:block;
  color:#6f6187;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.kca-stat-card strong {
  display:block;
  margin:.25rem 0;
  color:#120820;
  font-size:1.65rem;
  line-height:1;
}
.kca-stat-card small { color:#766990; }
.kca-dashboard-grid {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:1rem;
}
.kca-panel {
  border:1px solid rgba(138,76,255,.18);
  border-radius:12px;
  background:rgba(255,255,255,.96);
  color:#180e2b;
  overflow:hidden;
  box-shadow:0 12px 34px rgba(18,8,36,.08);
}
.kca-panel-wide { grid-row:span 2; }
.kca-panel-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding:1rem 1.1rem;
  border-bottom:1px solid #e8e0f5;
}
.kca-panel-head h2 {
  margin:0;
  color:#180e2b !important;
  font-size:1rem;
}
.kca-panel-head a {
  color:var(--kc-600);
  font-size:.82rem;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.kca-service-list,
.kca-ticket-list { padding:.35rem; }
.kca-service-row,
.kca-ticket-row {
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.85rem;
  border-radius:9px;
  color:#201235;
  text-decoration:none;
}
.kca-service-row:hover,
.kca-ticket-row:hover { background:#f4efff; color:#201235; }
.kca-service-dot {
  width:10px;
  height:10px;
  border-radius:50%;
  background:#9ca3af;
  flex-shrink:0;
}
.kca-service-dot.online { background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.12); }
.kca-service-dot.pending { background:#f59e0b; box-shadow:0 0 0 4px rgba(245,158,11,.12); }
.kca-service-main { flex:1; min-width:0; }
.kca-service-main strong,
.kca-ticket-row strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kca-service-main small,
.kca-ticket-row small { color:#7a6c93; }
.kca-shortcuts {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.7rem;
  padding:1rem;
}
.kca-shortcuts a {
  padding:.85rem;
  border:1px solid #e5dcf6;
  border-radius:9px;
  background:#faf8ff;
  color:#201235;
  font-weight:800;
  text-decoration:none;
}
.kca-shortcuts a:hover { border-color:var(--kc-500); color:var(--kc-600); }
.kca-profile-list {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:.6rem 1rem;
  padding:1rem 1.1rem;
  margin:0;
}
.kca-profile-list dt {
  color:#7a6c93;
  font-size:.82rem;
}
.kca-profile-list dd {
  margin:0;
  color:#201235;
  font-weight:800;
  text-align:right;
}
.kca-ticket-row {
  flex-direction:column;
  align-items:flex-start;
  gap:.15rem;
}
.kca-empty {
  padding:1.4rem;
  color:#7a6c93;
  text-align:center;
}

@media (max-width: 1100px) {
  .kca-stats-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .kca-dashboard-grid { grid-template-columns:1fr; }
  .kca-panel-wide { grid-row:auto; }
}
@media (max-width: 720px) {
  .kca-dash-hero { align-items:flex-start; flex-direction:column; }
  .kca-stats-grid { grid-template-columns:1fr; }
  .kca-shortcuts { grid-template-columns:1fr; }
}

/* ── Mobile sidebar ───────────────────────────────────────── */
@media (max-width: 900px) {
  .kca-sidebar { transform: translateX(-100%); }
  .kca-sidebar.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,.5); }
  .kca-main { margin-left: 0; }
  .kca-hamburger-btn { display: flex; }
  .kca-content { padding: 1.5rem 1rem; }
}
@media (max-width: 480px) {
  .kca-topbar { padding: 0 1rem; }
  .kca-user-trigger .name { display: none; }
}

/* KoreCraft 2026 identity refresh - generated from brand board */
:root {
  --kc-950: #1A0F2E;
  --kc-900: #2D1454;
  --kc-600: #5A1EE6;
  --kc-500: #8A4CFF;
  --kc-300: #C89BFF;
  --kc-100: #EDE6FF;
  --kc-white: #FFFFFF;
  --kc-grad: linear-gradient(135deg, #1A0F2E 0%, #2D1454 35%, #5A1EE6 70%, #8A4CFF 100%);
  --kc-grad-btn: linear-gradient(135deg, #5A1EE6 0%, #8A4CFF 62%, #C89BFF 100%);
}

#kc-app h1, #kc-app h2, #kc-app h3, #kc-app h4,
.kca-auth-page h1, .kca-auth-page h2,
.kca-dashboard h1, .kca-dashboard h2, .kca-dashboard h3 {
  letter-spacing: 0 !important;
}

.kc-nav-logo .logo-icon,
.kc-footer-brand .logo-icon,
.kca-brand-logo .logo-box,
.kca-sidebar-logo .logo-box {
  background: url('/assets/korecraft/img/logo-mark.svg') center / contain no-repeat !important;
  box-shadow: 0 0 18px rgba(138, 76, 255, .62) !important;
  border-radius: 10px !important;
  color: transparent !important;
  font-size: 0 !important;
}

.kc-nav-logo .logo-icon,
.kc-footer-brand .logo-icon {
  width: 40px !important;
  height: 40px !important;
}

.kca-brand-logo .logo-box,
.kca-sidebar-logo .logo-box {
  width: 42px !important;
  height: 42px !important;
}

.kc-hero, .kca-brand-panel, .kca-sidebar {
  background-image:
    radial-gradient(circle at 18% 12%, rgba(200,155,255,.22), transparent 24rem),
    radial-gradient(circle at 82% 20%, rgba(90,30,230,.28), transparent 28rem),
    linear-gradient(145deg, #100a20 0%, #1A0F2E 46%, #2D1454 100%) !important;
}

.kc-card, .kc-plan-card, .kca-card, .kca-form-box, .kca-main-card {
  border-color: rgba(200, 155, 255, .2) !important;
  box-shadow: 0 18px 42px rgba(9, 6, 19, .3), inset 0 1px rgba(255,255,255,.05) !important;
}

.kc-btn-primary, .kc-btn-plan, .kca-btn-primary, .btn-primary, button[type="submit"] {
  background: var(--kc-grad-btn) !important;
  border-color: rgba(200,155,255,.38) !important;
  box-shadow: 0 10px 26px rgba(90,30,230,.34) !important;
}

.kc-section-tag, .kc-badge, .kca-badge {
  border-color: rgba(200,155,255,.38) !important;
  color: var(--kc-300) !important;
}

/* KoreCraft client area UX pass - service management */
body.kca-dashboard-body {
  --kc-page-max: 1180px;
  --kc-card-bg: #140d21;
  --kc-card-bg-2: rgba(45,20,84,.35);
  --kc-ink: #e2e8f0;
  --kc-ink-muted: rgba(255,255,255,.6);
  --kc-line-light: rgba(138,76,255,.15);
}

body.kca-dashboard-body .kca-content {
  max-width: var(--kc-page-max);
  padding-top: 2rem;
  padding-bottom: 3rem;
}

body.kca-dashboard-body .kca-main-card {
  max-width: 100%;
  margin-bottom: 1.4rem;
  background: rgba(45,20,84,.42) !important;
  border: 1px solid rgba(200,155,255,.20) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

body.kca-dashboard-body .kca-main-card .card-header,
body.kca-dashboard-body .kca-main-card > .card-header {
  padding: 1rem 1.15rem !important;
  background: rgba(26,15,46,.32) !important;
}

body.kca-dashboard-body .kca-main-card .card-header h1,
body.kca-dashboard-body .kca-main-card .card-header h2,
body.kca-dashboard-body .kca-main-card .card-header h3,
body.kca-dashboard-body .kca-main-card .card-header h4 {
  font-size: 1.05rem !important;
  margin: 0 0 .25rem !important;
}

body.kca-dashboard-body .kca-main-card .card-header p,
body.kca-dashboard-body .kca-main-card .card-header .text-muted {
  margin: 0 !important;
  font-size: .82rem !important;
}

body.kca-dashboard-body .kca-main-card .card-body {
  padding: 1rem 1.15rem !important;
}

/* Make legacy order details tables readable and less ?raw HTML?. */
body.kca-dashboard-body .kca-main-card table,
body.kca-dashboard-body .card table:not(.mc-table) {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  border-radius: 10px;
  background: transparent !important;
  color: var(--kc-ink) !important;
  border: 1px solid var(--kc-line-light) !important;
}

body.kca-dashboard-body .kca-main-card table tr,
body.kca-dashboard-body .card table:not(.mc-table) tr {
  background: transparent !important;
}

body.kca-dashboard-body .kca-main-card table td,
body.kca-dashboard-body .card table:not(.mc-table) td,
body.kca-dashboard-body .kca-main-card table th,
body.kca-dashboard-body .card table:not(.mc-table) th {
  padding: .72rem .9rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(45,20,84,.10) !important;
  vertical-align: middle !important;
  color: var(--kc-ink) !important;
  font-size: .92rem !important;
}

body.kca-dashboard-body .kca-main-card table tr:last-child td,
body.kca-dashboard-body .card table:not(.mc-table) tr:last-child td {
  border-bottom: 0 !important;
}

body.kca-dashboard-body .kca-main-card table td:first-child,
body.kca-dashboard-body .card table:not(.mc-table) td:first-child {
  width: 42%;
  color: var(--kc-ink-muted) !important;
  font-weight: 600;
  background: rgba(45,20,84,.25) !important;
}

body.kca-dashboard-body .kca-main-card table td:last-child,
body.kca-dashboard-body .card table:not(.mc-table) td:last-child {
  font-weight: 700;
}

body.kca-dashboard-body .badge,
body.kca-dashboard-body .label {
  border-radius: 999px !important;
  padding: .25rem .55rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* Service actions: one tidy command row. */
body.kca-dashboard-body .kca-main-card .card-footer,
body.kca-dashboard-body .kca-main-card .card-actions,
body.kca-dashboard-body .kca-main-card div[style*="footer"] {
  background: rgba(26,15,46,.22) !important;
}

body.kca-dashboard-body .kca-main-card .btn,
body.kca-dashboard-body .mc-btn,
body.kca-dashboard-body button {
  min-height: 36px;
  border-radius: 8px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

body.kca-dashboard-body .kca-main-card .btn + .btn,
body.kca-dashboard-body .mc-btn + .mc-btn {
  margin-left: .25rem;
}

/* Minecraft management block. */
body.kca-dashboard-body .mc-panel {
  margin-top: 1rem;
}

body.kca-dashboard-body .mc-tabs {
  border-bottom-color: rgba(200,155,255,.22) !important;
  gap: .25rem;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

body.kca-dashboard-body .mc-tab {
  color: rgba(237,230,255,.58) !important;
  border-radius: 8px 8px 0 0;
  padding: .72rem .95rem;
}

body.kca-dashboard-body .mc-tab:hover,
body.kca-dashboard-body .mc-tab.active {
  color: #fff !important;
  background: rgba(138,76,255,.13) !important;
  border-bottom-color: #8a4cff !important;
}

body.kca-dashboard-body .mc-info-bar {
  background: #140d21 !important;
  border: 1px solid var(--kc-line-light) !important;
  border-radius: 12px !important;
  color: var(--kc-ink) !important;
  align-items: stretch;
  gap: 0;
  padding: .85rem 1rem !important;
}

body.kca-dashboard-body .mc-info-bar .mc-info-item {
  min-width: 7rem;
  justify-content: center;
  padding: 0 .8rem;
}

body.kca-dashboard-body .mc-info-bar .lbl,
body.kca-dashboard-body .mc-metric-label,
body.kca-dashboard-body .mc-chart-title,
body.kca-dashboard-body .mc-creds-title {
  color: var(--kc-ink-muted) !important;
}

body.kca-dashboard-body .mc-info-bar .val,
body.kca-dashboard-body .mc-metric-value {
  color: var(--kc-ink) !important;
}

body.kca-dashboard-body .mc-info-sep {
  background: rgba(138,76,255,.15) !important;
}

body.kca-dashboard-body .mc-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

body.kca-dashboard-body .mc-metric,
body.kca-dashboard-body .mc-creds,
body.kca-dashboard-body .mc-section {
  background: #140d21 !important;
  border: 1px solid var(--kc-line-light) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: var(--kc-ink) !important;
}

body.kca-dashboard-body .mc-chart-card {
  background: linear-gradient(160deg,#1a0f2e 0%,#140d21 100%) !important;
  border: 1px solid rgba(138,76,255,.2) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: var(--kc-ink) !important;
}

body.kca-dashboard-body .mc-metric {
  min-height: 108px;
}

body.kca-dashboard-body .mc-metric-value {
  font-size: 1.35rem !important;
}

body.kca-dashboard-body .mc-metric-sub {
  color: var(--kc-ink-muted) !important;
}

body.kca-dashboard-body .mc-console-wrap {
  border: 1px solid rgba(200,155,255,.18) !important;
  border-radius: 12px !important;
}

body.kca-dashboard-body #mc-terminal {
  height: 460px;
  background: #111820 !important;
}

body.kca-dashboard-body .mc-console-footer {
  background: #120d20 !important;
  border-top-color: rgba(200,155,255,.18) !important;
}

body.kca-dashboard-body .mc-console-footer input {
  background: transparent !important;
  border-color: transparent !important;
}

/* Keep the control buttons easy to identify. */
body.kca-dashboard-body .mc-btn-start { background:#22c55e !important; color:#fff !important; }
body.kca-dashboard-body .mc-btn-stop { background:#ef4444 !important; color:#fff !important; }
body.kca-dashboard-body .mc-btn-restart { background:#f59e0b !important; color:#fff !important; }
body.kca-dashboard-body .mc-btn-outline { background:rgba(138,76,255,.15) !important; color:#fff !important; border:1px solid rgba(138,76,255,.4) !important; }

@media (max-width: 1100px) {
  body.kca-dashboard-body .mc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.kca-dashboard-body .mc-charts { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body.kca-dashboard-body .kca-content { padding: 1rem; }
  body.kca-dashboard-body .mc-info-bar { display: grid; grid-template-columns: 1fr; gap: .75rem; }
  body.kca-dashboard-body .mc-info-sep { display:none; }
  body.kca-dashboard-body .mc-info-bar .mc-info-item { padding:0; }
  body.kca-dashboard-body .mc-metrics { grid-template-columns: 1fr; }
  body.kca-dashboard-body .kca-main-card table td:first-child { width: 48%; }
}
