/* ============================================================
   EMYU SENDER — UNIFIED THEME (Red Devil)
   Dipakai di semua page: landing, login, register, dashboard, admin
   ============================================================ */

:root {
  --bg: #08060a;
  --panel: rgba(20, 10, 16, 0.7);
  --panel-solid: #14080e;
  --panel2: rgba(35, 18, 26, 0.6);
  --red: #ff1438;
  --red-deep: #8a0a1f;
  --red-soft: #ff6680;
  --ember: #ff5530;
  --text: #f3eef0;
  --muted: #8a7a82;
  --border: rgba(255, 20, 56, 0.18);
  --border-strong: rgba(255, 20, 56, 0.4);
  --ok: #2ecc71;
  --warn: #f39c12;
  --danger: #ff1438;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body {
  position: relative;
  background:
    radial-gradient(ellipse at top, #2a0410 0%, #08060a 50%, #000 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   ANIMATED BACKGROUND — Red Devil Atmosphere
   ============================================================ */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,20,56,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(138,10,31,0.14) 0%, transparent 60%);
  animation: pulseGlow 6s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.08); }
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,20,56,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,20,56,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 85%);
}

/* Heartbeat pulse */
.bg-pulse {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(255,20,56,0.08), transparent 70%);
  animation: heartbeat 2.4s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes heartbeat {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  18%      { opacity: 0.9;  transform: scale(1.03); }
  30%      { opacity: 0.5;  transform: scale(1.01); }
  42%      { opacity: 0.8;  transform: scale(1.025); }
  60%      { opacity: 0.45; transform: scale(1); }
}

/* Lightning flash — triggered randomly via JS */
.bg-lightning {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(var(--bolt-angle, 118deg),
      transparent 38%,
      rgba(255,200,210,0.85) 50%,
      transparent 62%),
    radial-gradient(ellipse at 50% 0%, rgba(255,40,70,0.5), transparent 60%);
  opacity: 0;
  mix-blend-mode: screen;
}
.bg-lightning.strike {
  animation: strikeFlash 0.45s linear;
}
@keyframes strikeFlash {
  0%   { opacity: 0; }
  10%  { opacity: 0.95; }
  25%  { opacity: 0.15; }
  40%  { opacity: 0.85; }
  60%  { opacity: 0.05; }
  100% { opacity: 0; }
}

/* Brand-glyph sigil constellation */
.bg-sigils {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.bg-sigils span {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  line-height: 1;
  display: block;
  user-select: none;
}
.bg-sigils .sigil-a {
  top: 50%; left: 50%;
  font-size: 70vmin;
  transform: translate(-50%, -50%);
  color: rgba(255, 20, 56, 0.09);
  text-shadow: 0 0 28px rgba(255,20,56,0.3), 0 0 56px rgba(255,20,56,0.2);
  animation: sigilPulse 4s ease-in-out infinite;
}
.bg-sigils .sigil-b {
  top: 6%; left: 4%;
  font-size: 22vmin;
  color: rgba(255, 102, 128, 0.2);
  text-shadow: 0 0 14px rgba(255,20,56,0.6), 0 0 28px rgba(255,20,56,0.35);
  transform-origin: center;
  animation: sigilFloatB 7s ease-in-out infinite, sigilGlow 3s ease-in-out infinite 0.4s;
  will-change: transform, opacity;
}
.bg-sigils .sigil-c {
  bottom: 4%; right: 4%;
  font-size: 28vmin;
  color: rgba(255, 40, 70, 0.18);
  text-shadow: 0 0 16px rgba(255,20,56,0.6), 0 0 32px rgba(255,20,56,0.35);
  transform-origin: center;
  animation: sigilFloatC 9s ease-in-out infinite, sigilGlow 3.6s ease-in-out infinite 1s;
  will-change: transform, opacity;
}
.bg-sigils .sigil-a {
  animation: sigilBreathe 6s ease-in-out infinite;
}
@keyframes sigilBreathe {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.85; transform: translate(-50%, -50%) scale(1.04); }
}
@keyframes sigilFloatB {
  0%   { transform: translate(0, 0)        scale(1)   rotate(0deg); }
  25%  { transform: translate(12px, -10px) scale(1.06) rotate(4deg); }
  50%  { transform: translate(0, -18px)    scale(1.1)  rotate(0deg); }
  75%  { transform: translate(-10px, -8px) scale(1.04) rotate(-4deg); }
  100% { transform: translate(0, 0)        scale(1)   rotate(0deg); }
}
@keyframes sigilFloatC {
  0%   { transform: translate(0, 0)        scale(1)   rotate(0deg); }
  25%  { transform: translate(-14px, 8px)  scale(1.05) rotate(-5deg); }
  50%  { transform: translate(0, 16px)     scale(1.1)  rotate(0deg); }
  75%  { transform: translate(12px, 6px)   scale(1.04) rotate(5deg); }
  100% { transform: translate(0, 0)        scale(1)   rotate(0deg); }
}
@keyframes sigilGlow {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 0 0 14px rgba(255,20,56,0.5), 0 0 28px rgba(255,20,56,0.3);
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 28px rgba(255,20,56,0.9), 0 0 56px rgba(255,20,56,0.6), 0 0 90px rgba(255,20,56,0.3);
    filter: brightness(1.4);
  }
}

/* Blood drips */
.bg-drips {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.bg-drips span {
  position: absolute; top: -20vh;
  width: 2px; height: 80px;
  background: linear-gradient(180deg, transparent, rgba(255,20,56,0.85) 70%, rgba(255,80,110,1));
  box-shadow: 0 0 8px rgba(255,20,56,0.6);
  border-radius: 50%;
  opacity: 0;
  animation: dripFall 10s linear infinite;
}
.bg-drips span:nth-child(1) { left:  8%; animation-delay:  0s;  animation-duration:  9s; }
.bg-drips span:nth-child(2) { left: 22%; animation-delay:  3s;  animation-duration: 12s; height: 60px; }
.bg-drips span:nth-child(3) { left: 38%; animation-delay:  6s;  animation-duration: 11s; }
.bg-drips span:nth-child(4) { left: 52%; animation-delay:  1s;  animation-duration:  8s; height: 100px; }
.bg-drips span:nth-child(5) { left: 66%; animation-delay:  4s;  animation-duration: 13s; }
.bg-drips span:nth-child(6) { left: 78%; animation-delay:  7s;  animation-duration:  9s; height: 70px; }
.bg-drips span:nth-child(7) { left: 90%; animation-delay:  2s;  animation-duration: 11s; }
.bg-drips span:nth-child(8) { left: 14%; animation-delay:  9s;  animation-duration: 10s; height: 55px; }
@keyframes dripFall {
  0%   { transform: translateY(0)     scaleY(0.6); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(130vh) scaleY(1.4); opacity: 0; }
}

/* Red mist drift */
.bg-smoke {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.bg-smoke span {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  mix-blend-mode: screen;
}
.bg-smoke span:nth-child(1) {
  background: radial-gradient(circle, rgba(255,20,56,0.55) 0%, rgba(138,10,31,0.15) 40%, transparent 70%);
  top: -25vmax; left: -25vmax;
  animation: smokeDrift1 30s ease-in-out infinite alternate;
}
.bg-smoke span:nth-child(2) {
  background: radial-gradient(circle, rgba(200,10,40,0.45) 0%, transparent 65%);
  top: 30vmax; right: -25vmax;
  animation: smokeDrift2 38s ease-in-out infinite alternate;
}
.bg-smoke span:nth-child(3) {
  background: radial-gradient(circle, rgba(255,40,80,0.4) 0%, transparent 65%);
  bottom: -30vmax; left: 30vw;
  animation: smokeDrift3 34s ease-in-out infinite alternate;
}
@keyframes smokeDrift1 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(20vmax, 12vmax) scale(1.15); }
}
@keyframes smokeDrift2 {
  0%   { transform: translate(0,0) scale(1.05); }
  100% { transform: translate(-18vmax, 8vmax) scale(0.95); }
}
@keyframes smokeDrift3 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-14vmax, -22vmax) scale(1.2); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 4, 8, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 40px;
  overflow: hidden;
  animation: topbarSlideIn 0.7s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes topbarSlideIn {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* Sweeping red light line at the bottom edge */
.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--red-soft), var(--red), transparent);
  box-shadow: 0 0 12px var(--red), 0 0 24px var(--red-deep);
  animation: topbarSweep 5s linear infinite;
}
@keyframes topbarSweep {
  0%   { left: -30%; }
  100% { left: 100%; }
}

/* Soft red wash that pulses behind the bar */
.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(255,20,56,0.18), transparent 70%);
  opacity: 0.6;
  animation: topbarGlow 3.5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes topbarGlow {
  from { opacity: 0.35; }
  to   { opacity: 0.85; }
}

.topbar .container { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }

.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), letter-spacing 0.3s;
}
.brand:hover { transform: translateY(-1px); letter-spacing: 4px; }
.brand-icon {
  font-size: 22px;
  color: var(--red);
  text-shadow: 0 0 12px var(--red), 0 0 24px var(--red-deep);
  animation: flicker 3s ease-in-out infinite, brandSpin 8s linear infinite;
  display: inline-block;
  transform-origin: center;
}
.brand:hover .brand-icon {
  animation: flicker 0.6s ease-in-out infinite, brandSpin 1.5s linear infinite;
  text-shadow: 0 0 18px var(--red), 0 0 36px var(--red), 0 0 60px var(--red-deep);
}
@keyframes flicker {
  0%, 90%, 100% { opacity: 1; }
  92%, 96%      { opacity: 0.5; }
}
@keyframes brandSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.brand em { font-style: normal; color: var(--red); font-weight: 700; }
.brand-text-wrap { overflow: hidden; }

nav { display: flex; align-items: center; gap: 4px; }
nav a, nav .email {
  position: relative;
  margin-left: 16px;
  padding: 6px 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.25s, transform 0.25s;
}
nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 8px var(--red);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(.2,.7,.2,1);
}
nav a::after {
  content: "⛧";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%) translateY(-4px);
  font-size: 8px;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(.2,.7,.2,1);
  text-shadow: 0 0 8px var(--red);
}
nav a:hover {
  color: var(--red-soft);
  transform: translateY(-2px);
}
nav a:hover::before { width: 100%; }
nav a:hover::after  { opacity: 1; transform: translateX(-50%) translateY(0); }
nav .email { color: var(--red-soft); text-transform: none; letter-spacing: 0; }
nav .email::before, nav .email::after { display: none; }

footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 0 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
}

main.container { flex: 1; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: var(--text);
  text-shadow: 0 0 20px rgba(255,20,56,0.3);
}
h2 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: var(--red-soft);
}
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--border-strong); }
.card.narrow {
  max-width: 440px;
  margin: 80px auto;
  position: relative;
  z-index: 2;
}
.card.license .row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.card.license .row > div { min-width: 120px; }
.card.license .row > div:last-child { margin-left: auto; }
.actions-col {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.actions-col .btn, .actions-col form { white-space: nowrap; margin: 0; }
.card hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* ============================================================
   FORMS
   ============================================================ */
label {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
input, select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255,20,56,0.15), 0 0 20px rgba(255,20,56,0.3);
}
input::placeholder { color: rgba(255,255,255,0.2); }

form.inline { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
form.inline label { flex: 1 1 160px; margin-bottom: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: rgba(255,20,56,0.1);
  border-color: var(--red);
  transform: translateY(-1px);
}
.btn.primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  border-color: var(--red);
  color: white;
  box-shadow:
    0 4px 20px rgba(255,20,56,0.4),
    inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn.primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255,20,56,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn.primary:hover::before { transform: translateX(100%); }

.btn.danger {
  background: linear-gradient(135deg, #ff1438 0%, #6a0716 100%);
  border-color: var(--red);
  color: white;
  font-weight: 700;
}
.btn.danger:hover { box-shadow: 0 4px 20px rgba(255,20,56,0.5); }

.btn.small { padding: 6px 12px; font-size: 10px; letter-spacing: 1px; }
.btn.full { width: 100%; justify-content: center; }
.btn-ghost {
  position: relative;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.3s, transform 0.25s;
  overflow: hidden;
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,20,56,0.25) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1);
}
.btn-ghost:hover {
  color: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(255,20,56,0.4), 0 6px 18px rgba(255,20,56,0.25);
  transform: translateY(-2px);
}
.btn-ghost:hover::before { transform: translateX(110%); }
/* Disable nav a underline effect on .btn-ghost so the button reads as a button */
nav a.btn-ghost::before { background: linear-gradient(120deg, transparent 30%, rgba(255,20,56,0.25) 50%, transparent 70%); height: 100%; width: 100%; left: 0; bottom: 0; transform: translateX(-110%); }
nav a.btn-ghost:hover::before { transform: translateX(110%); width: 100%; }
nav a.btn-ghost::after { display: none; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideIn 0.4s cubic-bezier(.2,.7,.2,1);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert.err {
  background: rgba(255,20,56,0.12);
  border: 1px solid var(--red);
  color: var(--red-soft);
}
.alert.ok {
  background: rgba(46,204,113,0.12);
  border: 1px solid var(--ok);
  color: #6ee7a8;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.badge.ok    { background: rgba(46,204,113,0.2); color: #6ee7a8; border: 1px solid var(--ok); }
.badge.warn  { background: rgba(243,156,18,0.2); color: #ffc066; border: 1px solid var(--warn); }
.badge.danger{ background: rgba(255,20,56,0.2); color: var(--red-soft); border: 1px solid var(--red); }

/* ============================================================
   KEY / CODE DISPLAY
   ============================================================ */
.key {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--red-soft);
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255,20,56,0.4);
}
.hwid { font-family: monospace; font-size: 11px; color: var(--muted); }
code {
  font-family: 'Courier New', monospace;
  background: rgba(0,0,0,0.4);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--red-soft);
  border: 1px solid var(--border);
  vertical-align: baseline;
  white-space: nowrap;
}

ol, ul { padding-left: 24px; }
ol li, ul li {
  margin-bottom: 14px;
  line-height: 1.85;
  font-size: 14px;
  color: rgba(243,238,240,0.85);
}
ol li::marker { color: var(--red); font-weight: 700; }
ol li b, ul li b { color: var(--red-soft); font-weight: 700; }
ol li:last-child, ul li:last-child { margin-bottom: 0; }

/* ============================================================
   TABLE
   ============================================================ */
.lic-table-wrap { width: 100%; overflow-x: auto; }
.lic-table { width: 100%; border-collapse: collapse; font-size: 11.5px; table-layout: fixed; }
.lic-table th, .lic-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  word-wrap: break-word;
}
.lic-table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(0,0,0,0.3);
}
.lic-table tr:hover td { background: rgba(255,20,56,0.04); }
.lic-table form { margin: 0; }

.key-cell { font-size: 11px; padding: 3px 6px; }

.hwid-cell { line-height: 1.4; }
.hwid-line {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--red-soft);
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-bottom: 4px;
}
.hwid-device {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.5px;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-cell { font-size: 12px; color: var(--text); word-break: break-all; }
.exp-cell { font-size: 11px; color: var(--muted); }
.plan-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255,20,56,0.1);
  border: 1px solid rgba(255,20,56,0.3);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--red-soft);
  text-transform: uppercase;
}

/* Aksi grid: 2 baris (extend + set), lalu baris ke-3 = action buttons */
.act-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.act-inline {
  display: flex;
  gap: 3px;
  align-items: center;
  min-width: 0;
}
.act-inline .mini {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  padding: 4px 6px;
  margin: 0;
  font-size: 10.5px;
  text-transform: none;
  letter-spacing: 0;
  height: 26px;
}
.act-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.act-row form { margin: 0; }

.btn.xs {
  padding: 4px 8px;
  font-size: 9px;
  letter-spacing: 0.5px;
  height: 26px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn.xs.danger {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  border-color: var(--red);
  color: white;
}

/* ============================================================
   GUIDE CARD (dashboard "Cara Menggunakan")
   ============================================================ */
.guide-card {
  position: relative;
  background: linear-gradient(180deg, rgba(28,10,18,0.85) 0%, rgba(10,4,8,0.92) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,20,56,0.25);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 24px;
  box-shadow:
    0 12px 36px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,20,56,0.18);
  overflow: hidden;
}
.guide-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.guide-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,20,56,0.15);
}
.guide-sigil {
  font-size: 56px;
  color: var(--red);
  text-shadow:
    0 0 20px var(--red),
    0 0 40px var(--red-deep);
  animation: sigilFloat 3.5s ease-in-out infinite;
  flex-shrink: 0;
}
.guide-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255,20,56,0.1);
  border: 1px solid rgba(255,20,56,0.3);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red-soft);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.guide-card .eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
  animation: blink 1.5s ease-in-out infinite;
}
.guide-title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  margin: 0;
  color: var(--text);
}
.guide-title .glow-red {
  color: var(--red);
  text-shadow: 0 0 20px rgba(255,20,56,0.5);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.g-step {
  display: flex;
  gap: 22px;
  padding: 20px 22px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,20,56,0.1);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(.2,.7,.2,1);
}
.g-step:hover {
  transform: translateX(6px);
  border-color: rgba(255,20,56,0.4);
  border-left-color: var(--red-soft);
  background: rgba(40,12,20,0.5);
  box-shadow: -4px 0 20px rgba(255,20,56,0.15);
}
.g-num {
  font-family: 'Cinzel', serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--red);
  text-shadow: 0 0 18px rgba(255,20,56,0.5);
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
}
.g-body { flex: 1; min-width: 0; }
.g-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.g-body p {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(243,238,240,0.78);
  margin: 0;
}
.g-body p b { color: var(--red-soft); font-weight: 700; }

.g-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.g-list li {
  padding: 6px 0 6px 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(243,238,240,0.72);
  position: relative;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,20,56,0.06);
}
.g-list li:last-child { border-bottom: none; }
.g-list li::before {
  content: "⛧";
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--red);
  font-size: 11px;
  text-shadow: 0 0 8px var(--red);
}

@media (max-width: 600px) {
  .guide-card { padding: 24px 20px; }
  .guide-head { gap: 16px; padding-bottom: 18px; margin-bottom: 22px; }
  .guide-sigil { font-size: 42px; }
  .guide-title { font-size: 20px; letter-spacing: 2px; }
  .g-step { padding: 16px 18px; gap: 14px; }
  .g-num { font-size: 30px; width: 44px; }
}

/* ============================================================
   AUTH CARD (login / register)
   ============================================================ */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 48px 40px 36px;
  background: linear-gradient(180deg, rgba(28,10,18,0.92) 0%, rgba(10,4,8,0.95) 100%);
  border: 1px solid rgba(255,20,56,0.3);
  border-radius: 18px;
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.7),
    0 0 80px rgba(255,20,56,0.18),
    inset 0 1px 0 rgba(255,20,56,0.25);
  animation: authIn 0.6s cubic-bezier(.2,.7,.2,1);
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-aura {
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(255,20,56,0.6) 20%,
    transparent 40%,
    transparent 60%,
    rgba(255,20,56,0.4) 80%,
    transparent 100%
  );
  z-index: -1;
  animation: auraRotate 6s linear infinite;
  filter: blur(10px);
  opacity: 0.7;
}
@keyframes auraRotate { to { transform: rotate(360deg); } }

.auth-sigil {
  font-size: 56px;
  margin-bottom: 18px;
  color: var(--red);
  text-shadow:
    0 0 20px var(--red),
    0 0 40px var(--red-deep),
    0 0 80px var(--red-deep);
  animation: sigilFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(255,20,56,0.6));
}
@keyframes sigilFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

.auth-title {
  font-family: 'Cinzel', serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  text-shadow: none;
}
.glow-red {
  color: var(--red);
  text-shadow: 0 0 20px rgba(255,20,56,0.6), 0 0 40px rgba(255,20,56,0.3);
  animation: pulseRed 4s ease-in-out infinite;
}
@keyframes pulseRed {
  0%, 100% { text-shadow: 0 0 20px rgba(255,20,56,0.6), 0 0 40px rgba(255,20,56,0.3); }
  50%      { text-shadow: 0 0 30px rgba(255,20,56,1),   0 0 60px rgba(255,20,56,0.5); }
}
.glow-white {
  color: var(--text);
  text-shadow: 0 0 20px rgba(255,255,255,0.15);
}
.auth-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.auth-form { text-align: left; }
.auth-form label em {
  font-style: normal;
  color: var(--red-soft);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 6px;
  font-size: 10px;
}
.auth-form input { padding: 14px 16px; font-size: 15px; }

.btn.big {
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: 3px;
  margin-top: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,20,56,0.3), transparent);
}

.auth-foot {
  font-size: 13px;
  color: var(--muted);
}
.auth-link {
  color: var(--red-soft);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
  margin-left: 4px;
}
.auth-link:hover {
  color: var(--red);
  text-shadow: 0 0 12px var(--red);
}

@media (max-width: 500px) {
  .auth-card { padding: 36px 24px 28px; }
  .auth-title { font-size: 24px; }
  .auth-sigil { font-size: 44px; }
}

/* ============================================================
   CAPTCHA BOX (math verification)
   ============================================================ */
.captcha-box {
  margin: 14px 0 20px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.captcha-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red-soft);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.captcha-label .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: blinkDot 1.5s ease-in-out infinite;
}
@keyframes blinkDot { 50% { opacity: 0.35; transform: scale(0.7); } }

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.captcha-expr {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--red-soft);
  padding: 8px 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-shadow: 0 0 12px rgba(255,20,56,0.4);
  letter-spacing: 2px;
}
.captcha-expr .eq { color: var(--muted); }
.captcha-expr input {
  width: 70px;
  margin: 0;
  padding: 6px 10px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  text-transform: none;
}
.captcha-expr input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(255,20,56,0.2), 0 0 16px rgba(255,20,56,0.3);
  outline: none;
}
.captcha-refresh {
  width: 42px; height: 42px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--red-soft);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.captcha-refresh:hover {
  background: rgba(255,20,56,0.15);
  border-color: var(--red);
  color: var(--red);
  transform: rotate(180deg);
  text-shadow: 0 0 12px var(--red);
}

/* ============================================================
   REVEAL ON LOAD
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
.reveal:nth-child(2) { animation-delay: 0.1s; }
.reveal:nth-child(3) { animation-delay: 0.2s; }
.reveal:nth-child(4) { animation-delay: 0.3s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet & laptop kecil */
@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .bg-pentagram { width: 600px; height: 600px; }

  /* Topbar tetap satu baris tapi lebih rapat */
  .brand { font-size: 17px; letter-spacing: 2px; }
  .brand-icon { font-size: 20px; }
  nav a { margin-left: 14px; font-size: 11.5px; letter-spacing: 0.5px; }

  /* Card license: actions geser ke baris bawah */
  .card.license .row { gap: 18px; }
  .card.license .row > div:last-child { margin-left: 0; width: 100%; }
  .actions-col { justify-content: flex-start; }
}

/* Mobile besar (iPad portrait, phone landscape) */
@media (max-width: 700px) {
  body { background: radial-gradient(ellipse at top, #2a0410 0%, #08060a 60%, #000 100%); }

  /* Topbar stack */
  .topbar { padding: 12px 0; margin-bottom: 24px; }
  .topbar .container { flex-direction: column; gap: 12px; align-items: center; }
  nav { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
  nav a, nav .email { margin-left: 0; font-size: 11px; }
  nav .email { width: 100%; text-align: center; font-size: 12px; }

  /* Typography */
  h1 { font-size: 22px; letter-spacing: 1px; }
  h2 { font-size: 16px; letter-spacing: 1px; }

  /* Cards */
  .card { padding: 18px; border-radius: 10px; }
  .card.license .row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .card.license .row > div { width: 100%; min-width: 0; }
  .actions-col { width: 100%; flex-direction: column; }
  .actions-col .btn { width: 100%; justify-content: center; }

  /* Forms */
  form.inline { flex-direction: column; align-items: stretch; gap: 12px; }
  form.inline label { flex: 1 1 auto; }
  form.inline button { width: 100%; }

  /* Auth card */
  .auth-card { padding: 32px 22px 26px; max-width: 100%; }
  .auth-title { font-size: 22px; letter-spacing: 2px; }
  .auth-sigil { font-size: 42px; }
  .auth-wrap { padding: 24px 12px; min-height: auto; }

  /* Captcha tighter */
  .captcha-expr { font-size: 18px; padding: 6px 10px; gap: 8px; }
  .captcha-expr input { width: 56px; font-size: 17px; padding: 4px 6px; }
  .captcha-refresh { width: 36px; height: 36px; font-size: 18px; }

  /* Guide card */
  .guide-card { padding: 22px 18px; }
  .guide-head { flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 18px; margin-bottom: 20px; }
  .guide-sigil { font-size: 40px; }
  .guide-title { font-size: 18px; letter-spacing: 2px; }
  .g-step { padding: 16px 14px; gap: 12px; }
  .g-num { font-size: 28px; width: 40px; }
  .g-body h3 { font-size: 14px; letter-spacing: 1px; }
  .g-body p, .g-list li { font-size: 12.5px; }

  /* Admin table: tetap scroll horizontal, font lebih kecil */
  .lic-table { font-size: 10.5px; min-width: 900px; }
  .key-cell { font-size: 10px; }

  /* Footer */
  footer { padding: 24px 12px 16px; font-size: 11px; }

  /* Background lebih ringan di mobile */
  .bg-pentagram { width: 400px; height: 400px; opacity: 0.6; }
  .bg-grid { background-size: 40px 40px; }
}

/* Mobile kecil */
@media (max-width: 420px) {
  .container { padding: 0 12px; }
  .brand { font-size: 15px; letter-spacing: 1.5px; }
  .brand-icon { font-size: 17px; }
  .card { padding: 16px 14px; }
  h1 { font-size: 19px; }

  .auth-card { padding: 26px 18px 22px; }
  .auth-title { font-size: 19px; }
  .auth-sigil { font-size: 36px; }

  .captcha-expr { font-size: 16px; }
  .captcha-expr input { width: 50px; font-size: 15px; }

  .g-num { font-size: 24px; width: 34px; }
  .g-body h3 { font-size: 13px; }
}

/* Landscape phone — kasih ruang nafas vertikal */
@media (max-height: 500px) and (orientation: landscape) {
  .auth-wrap { min-height: auto; padding: 20px; }
  .auth-card { padding: 24px 32px; }
}
