/* ==========================================================================
   Faith6 CDK Redeem Vault — Cyberpunk Quantum Constellation & Neon Orbital Theme
   ========================================================================== */

:root {
  --bg-obsidian: #04020e;
  --bg-deep: #09061b;
  --surface-glass: rgba(11, 9, 26, 0.68);
  --surface-glass-strong: rgba(13, 11, 32, 0.84);
  --surface-elevated: rgba(20, 16, 46, 0.64);
  --surface-input: rgba(6, 5, 19, 0.8);

  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --indigo: #7c3aed;
  --indigo-bright: #a855f7;
  --magenta: #ec4899;
  --magenta-bright: #f472b6;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --rose: #f43f5e;
  --rose-bright: #fb7185;

  --text-primary: #f5f3ff;
  --text-secondary: #a5b4fc;
  --text-muted: #7c85a6;
  --border-subtle: rgba(167, 139, 250, 0.16);
  --border-light: rgba(196, 181, 253, 0.28);

  --font-sans: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-vault:
    0 32px 96px -22px rgba(0, 0, 0, 0.88),
    0 0 72px -16px rgba(168, 85, 247, 0.28),
    0 0 42px -14px rgba(34, 211, 238, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-obsidian);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

/* ==========================================================================
   Bespoke Standalone Backdrop: Cyberpunk Quantum Constellation & Orbital Core
   ========================================================================== */
.vault-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 62% at 50% -8%, rgba(124, 58, 237, 0.34) 0%, transparent 62%),
    radial-gradient(ellipse 75% 52% at 88% 22%, rgba(236, 72, 153, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 78% 55% at 14% 78%, rgba(6, 182, 212, 0.24) 0%, transparent 60%),
    linear-gradient(180deg, #04020e 0%, #09051d 52%, #040310 100%);
}

.plasma-layer {
  position: absolute;
  inset: -14%;
  filter: blur(82px);
  will-change: transform;
}

.plasma-orb {
  position: absolute;
  border-radius: 999px;
  mix-blend-mode: screen;
}

.plasma-violet {
  width: 60vw;
  max-width: 820px;
  height: 50vw;
  max-height: 580px;
  top: -12%;
  left: 14%;
  opacity: 0.48;
  background: radial-gradient(circle at 46% 45%, rgba(168, 85, 247, 0.76), rgba(99, 102, 241, 0.34) 46%, transparent 74%);
  animation: plasmaDriftA 20s ease-in-out infinite alternate;
}

.plasma-magenta {
  width: 52vw;
  max-width: 720px;
  height: 48vw;
  max-height: 560px;
  top: 10%;
  right: -10%;
  opacity: 0.42;
  background: radial-gradient(circle at 50% 45%, rgba(236, 72, 153, 0.74), rgba(168, 85, 247, 0.28) 50%, transparent 74%);
  animation: plasmaDriftB 24s ease-in-out infinite alternate;
}

.plasma-cyan {
  width: 56vw;
  max-width: 760px;
  height: 44vw;
  max-height: 520px;
  bottom: -14%;
  left: -8%;
  opacity: 0.44;
  background: radial-gradient(circle at 48% 52%, rgba(6, 182, 212, 0.78), rgba(59, 130, 246, 0.28) 48%, transparent 75%);
  animation: plasmaDriftC 22s ease-in-out infinite alternate;
}

.plasma-blue {
  width: 48vw;
  max-width: 640px;
  height: 38vw;
  max-height: 440px;
  bottom: -12%;
  right: 10%;
  opacity: 0.34;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.7), rgba(16, 185, 129, 0.26) 50%, transparent 76%);
  animation: plasmaDriftB 27s ease-in-out infinite alternate-reverse;
}

.plasma-ribbon {
  position: absolute;
  top: 24%;
  left: 50%;
  width: 96vw;
  max-width: 1240px;
  height: 230px;
  transform: translateX(-50%) rotate(-7deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 211, 238, 0.28) 22%,
    rgba(168, 85, 247, 0.38) 50%,
    rgba(236, 72, 153, 0.3) 76%,
    transparent 100%
  );
  opacity: 0.68;
  animation: ribbonPulse 14s ease-in-out infinite alternate;
}

@keyframes plasmaDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(5vw, 4vh, 0) scale(1.09); }
  100% { transform: translate3d(-4vw, 6vh, 0) scale(0.96); }
}

@keyframes plasmaDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6vw, 5vh, 0) scale(1.08); }
  100% { transform: translate3d(4vw, -4vh, 0) scale(0.95); }
}

@keyframes plasmaDriftC {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(7vw, -6vh, 0) scale(1.12); }
}

@keyframes ribbonPulse {
  0% { opacity: 0.44; transform: translateX(-50%) rotate(-7deg) scaleX(0.95); }
  100% { opacity: 0.78; transform: translateX(-48%) rotate(-4deg) scaleX(1.08); }
}

/* Interactive 60fps Canvas Layer */
.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Central Holographic Quantum Orbital HUD Rings */
.quantum-orbit-svg {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(1040px, 118vw);
  height: min(1040px, 118vw);
  transform: translate(-50%, -50%);
  opacity: 0.62;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.25));
}

.orbit-ring {
  transform-origin: 500px 500px;
}

.orbit-ring-outer {
  animation: orbitSpinCW 74s linear infinite;
}

.orbit-ring-mid {
  animation: orbitSpinCCW 48s linear infinite;
}

.orbit-ring-inner {
  animation: orbitSpinCW 32s linear infinite;
}

@keyframes orbitSpinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Neon Synthwave Perspective Grid */
.cyber-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.86;
}

/* Subtle CRT Holographic Scanline Sheen */
.scanlines-layer {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 2px,
    rgba(192, 132, 252, 0.28) 3px,
    rgba(255, 255, 255, 0) 4px
  );
}

/* Subtle Film Grain Overlay */
.grain-layer {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  .quantum-orbit-svg { opacity: 0.36; }
}

@media (prefers-reduced-motion: reduce) {
  .plasma-orb,
  .plasma-ribbon,
  .orbit-ring {
    animation: none !important;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(6, 4, 18, 0.58);
  border-bottom: 1px solid rgba(167, 139, 250, 0.14);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.2);
}

.brand-emblem svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

.brand-text small {
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  color: var(--cyan-bright);
  font-weight: 600;
  opacity: 0.88;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.34);
  white-space: nowrap;
}

.mode-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  animation: pulseRing 2.4s infinite;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.2s ease;
}

.nav-pill svg {
  width: 15px;
  height: 15px;
  opacity: 0.9;
}

.nav-pill:hover {
  background: rgba(51, 65, 85, 0.72);
  border-color: rgba(56, 189, 248, 0.42);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-pill-accent {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.22));
  border-color: rgba(34, 211, 238, 0.34);
}

.nav-pill-accent:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.34), rgba(99, 102, 241, 0.36));
  border-color: rgba(34, 211, 238, 0.65);
}

/* ==========================================================================
   Main Container & Hero Intro
   ========================================================================== */
.vault-main {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.hero-intro {
  text-align: center;
  margin-bottom: 28px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.11);
  border: 1px solid rgba(34, 211, 238, 0.26);
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulseRing 2.2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 4.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  background: linear-gradient(125deg, #ffffff 8%, #67e8f9 42%, #c084fc 74%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.28));
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 640px;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.notice-banner {
  margin: 20px auto 0;
  max-width: 760px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 0.88rem;
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.28);
  backdrop-filter: blur(12px);
}

.notice-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--cyan-bright);
  margin-top: 2px;
}

/* ==========================================================================
   Main Frosted-Glass Vault Card with Luminous Gradient Hairline Border
   ========================================================================== */
.vault-card-shell {
  position: relative;
  border-radius: calc(var(--radius-xl) + 1.5px);
  padding: 1.5px;
  background: linear-gradient(
    130deg,
    rgba(34, 211, 238, 0.72) 0%,
    rgba(168, 85, 247, 0.62) 38%,
    rgba(236, 72, 153, 0.54) 72%,
    rgba(52, 211, 153, 0.42) 100%
  );
  background-size: 220% 220%;
  animation: neonBorderShift 10s ease-in-out infinite alternate;
  box-shadow: var(--shadow-vault);
  margin-bottom: 28px;
}

@keyframes neonBorderShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.vault-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  padding: 28px 30px 30px;
  overflow: hidden;
}

.vault-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  pointer-events: none;
}

/* Stepper */
.vault-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.step-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.step-item.active {
  color: #f8fafc;
}

.step-item.active .step-num {
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.5);
}

.step-item.done {
  color: var(--emerald-bright);
}

.step-item.done .step-num {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.6);
  color: var(--emerald-bright);
}

.step-connector {
  flex: 0 1 58px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.15), rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0.15));
}

/* ==========================================================================
   Step 1: CDK Entry Hero Form
   ========================================================================== */
.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
}

.field-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.cdk-input-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.cdk-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: var(--surface-input);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cdk-input-wrap:focus-within {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16), 0 0 24px rgba(6, 182, 212, 0.18);
}

.input-prefix-icon {
  width: 21px;
  height: 21px;
  margin-left: 15px;
  color: var(--cyan-bright);
  flex-shrink: 0;
  opacity: 0.85;
}

.cdk-input-wrap input {
  flex: 1;
  min-width: 0;
  width: auto;
  border: none;
  outline: none;
  background: transparent;
  padding: 16px 12px;
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.cdk-input-wrap input::placeholder {
  font-family: var(--font-sans);
  letter-spacing: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.input-inline-tools {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  padding-right: 10px;
}

.icon-mini-btn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.72);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.18s ease;
}

.icon-mini-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.45);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4 0%, #4f46e5 100%);
  box-shadow: 0 10px 28px -8px rgba(6, 182, 212, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1.5px);
  filter: brightness(1.08);
  box-shadow: 0 14px 34px -8px rgba(6, 182, 212, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.6);
}

.btn-hero {
  padding: 0 28px;
  min-height: 54px;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-primary:hover:not(:disabled) .btn-arrow {
  transform: translateX(3px);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 26px -8px rgba(16, 185, 129, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(30, 41, 59, 0.65);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(244, 63, 94, 0.42);
  background: rgba(244, 63, 94, 0.1);
  color: #fda4af;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-danger-outline:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(251, 113, 133, 0.72);
  color: #ffe4e6;
}

.btn-danger-outline:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-secondary);
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-ghost-sm svg {
  width: 15px;
  height: 15px;
}

.btn-ghost-sm:hover {
  background: rgba(30, 41, 59, 0.88);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.45);
}

/* Inline Alerts */
.inline-alert {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.inline-alert-error {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.13);
  border: 1px solid rgba(244, 63, 94, 0.34);
}

.inline-alert-info {
  color: #bae6fd;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.inline-alert-success {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.34);
}

.inline-alert-warning {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.34);
}

/* Anti-Brute-Force Risk Lockout Banner */
.risk-lockout-banner {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(245, 158, 11, 0.14));
  border: 1.5px solid rgba(251, 113, 133, 0.52);
  box-shadow: 0 12px 32px -14px rgba(244, 63, 94, 0.45);
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.risk-lockout-banner.risk-ready {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.42);
  box-shadow: none;
}

.risk-lockout-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #fda4af;
  margin-top: 2px;
}

.risk-lockout-banner.risk-ready .risk-lockout-icon {
  color: var(--emerald-bright);
}

.risk-lockout-body {
  flex: 1;
  min-width: 0;
}

.risk-lockout-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}

.risk-lockout-title strong {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffe4e6;
}

.risk-lockout-banner.risk-ready .risk-lockout-title strong {
  color: #a7f3d0;
}

.risk-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.24);
  border: 1px solid rgba(251, 191, 36, 0.55);
}

.risk-lockout-msg {
  margin: 0;
  font-size: 0.85rem;
  color: #fecdd3;
  line-height: 1.55;
}

.risk-lockout-banner.risk-ready .risk-lockout-msg {
  color: #d1fae5;
}

/* Supported Modes Preview Strip */
.vault-modes-strip {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mode-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chip-cyan {
  color: var(--cyan-bright);
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.chip-indigo {
  color: var(--indigo-bright);
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.chip-emerald {
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.mode-chip strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
}

.mode-chip span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Workspace Top Bar & Shared Status Badges
   ========================================================================== */
.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.active-cdk-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  padding: 6px 10px 6px 12px;
  border-radius: 10px;
  background: rgba(6, 10, 22, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.active-cdk-pill .pill-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.active-cdk-pill code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--cyan-bright);
  font-weight: 600;
  word-break: break-all;
}

.copy-tiny-btn {
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(6, 182, 212, 0.14);
  color: #bae6fd;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-tiny-btn:hover {
  background: rgba(6, 182, 212, 0.3);
  color: #ffffff;
}

.template-banner {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.16);
  margin-bottom: 20px;
}

.template-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.template-banner h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.template-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: pre-line;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-available {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.38);
}

.status-progress {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.status-completed {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.55);
}

.status-danger {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.42);
}

.status-warning {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

/* ==========================================================================
   Step 2A: SMS Service & Country Selector
   ========================================================================== */
.selector-block {
  margin-bottom: 20px;
}

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

.selector-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.service-pill:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

.service-pill.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(99, 102, 241, 0.24));
  border-color: var(--cyan-bright);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.25);
}

.service-code-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan-bright);
}

.country-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.search-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: var(--surface-input);
  color: #f8fafc;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--cyan-bright);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.country-grid::-webkit-scrollbar {
  width: 6px;
}

.country-grid::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

.country-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.64);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.country-card:hover:not(:disabled) {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(22, 34, 62, 0.8);
  transform: translateY(-1px);
}

.country-card.selected {
  border-color: var(--cyan-bright);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.2));
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45), 0 8px 20px -8px rgba(6, 182, 212, 0.45);
}

.country-card:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.country-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.country-flag {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.country-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 999px;
}

.stock-high {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.stock-low {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.stock-empty {
  color: #94a3b8;
  background: rgba(100, 116, 139, 0.16);
}

/* Locked Single-Service + Single-Country Channel Card */
.locked-channel-card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(9, 16, 33, 0.88), rgba(15, 27, 52, 0.74));
  border: 1px solid rgba(34, 211, 238, 0.32);
  box-shadow: 0 12px 34px -16px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.locked-channel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.locked-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.locked-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.locked-channel-cell {
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(6, 10, 22, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.locked-channel-cell small {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.locked-channel-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
}

.locked-channel-val .dial-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--cyan-bright);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.locked-stock-ok {
  color: var(--emerald-bright);
  font-family: var(--font-mono);
}

.locked-stock-zero {
  color: var(--amber-bright);
}

.action-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.selection-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.selection-summary strong {
  color: #ffffff;
}

/* ==========================================================================
   Step 2A Active SMS Session View (Phone + Timer + Live Polling + Glowing OTP)
   ========================================================================== */
.sms-session-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sms-live-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.11);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.sms-live-banner.received {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.14));
  border-color: rgba(52, 211, 153, 0.5);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.94rem;
  font-weight: 600;
  color: #e0f2fe;
}

.sms-live-banner.received .live-indicator {
  color: #a7f3d0;
}

.radar-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan-bright);
  flex-shrink: 0;
}

.radar-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--cyan-bright);
  animation: radarPing 1.7s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.sms-live-banner.received .radar-dot {
  background: var(--emerald-bright);
}

.sms-live-banner.received .radar-dot::after {
  border-color: var(--emerald-bright);
  animation: none;
  opacity: 0.35;
}

@keyframes radarPing {
  0% { transform: scale(0.6); opacity: 0.95; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}

.sms-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

/* Phone Hero + Countdown Grid */
.phone-timer-grid {
  display: grid;
  grid-template-columns: 1fr 196px;
  gap: 16px;
  align-items: stretch;
}

.phone-hero-card {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(9, 15, 31, 0.9), rgba(15, 25, 48, 0.72));
  border: 1px solid rgba(56, 189, 248, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.phone-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.phone-number-display {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 0 26px rgba(34, 211, 238, 0.35);
  word-break: break-all;
  line-height: 1.2;
}

.phone-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Circular Countdown Card */
.timer-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(9, 15, 31, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.circular-timer {
  position: relative;
  width: 96px;
  height: 96px;
}

.circular-timer svg {
  width: 96px;
  height: 96px;
  transform: rotate(-90deg);
}

.timer-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.16);
  stroke-width: 6.5;
}

.timer-progress {
  fill: none;
  stroke: url(#timerGrad);
  stroke-width: 6.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.85s linear;
}

.timer-readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-readout strong {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}

.timer-readout span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.linear-timer-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.linear-timer-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--indigo), var(--emerald));
  transition: width 0.85s linear;
}

/* OTP Code Hero Box */
.otp-vault-box {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.2), rgba(11, 17, 32, 0.92) 72%);
  border: 1.5px solid rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 42px -12px rgba(16, 185, 129, 0.45);
  text-align: center;
  animation: otpReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes otpReveal {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.otp-vault-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.otp-code-giant {
  font-family: var(--font-mono);
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-shadow: 0 0 32px rgba(52, 211, 153, 0.65), 0 0 12px rgba(34, 211, 238, 0.45);
  margin: 6px 0 16px;
  user-select: all;
}

.otp-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.full-sms-box {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(6, 10, 22, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
}

.full-sms-box small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.full-sms-box p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #e2e8f0;
  word-break: break-word;
}

.waiting-placeholder-box {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.42);
  text-align: center;
}

.waiting-dots {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 10px;
}

.waiting-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan-bright);
  animation: dotBounce 1.4s infinite ease-in-out both;
}

.waiting-dots span:nth-child(2) { animation-delay: 0.16s; background: var(--indigo-bright); }
.waiting-dots span:nth-child(3) { animation-delay: 0.32s; background: var(--emerald-bright); }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.45); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.waiting-placeholder-box h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: #f1f5f9;
}

.waiting-placeholder-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sms-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.poll-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Receipt Card, Payload Delivery & Manual Ticket Views
   ========================================================================== */
.receipt-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.11), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(52, 211, 153, 0.35);
}

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

.receipt-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #ecfdf5;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.receipt-field {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 10, 22, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.receipt-field label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.receipt-field .val {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 600;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  word-break: break-all;
}

/* Payload lines */
.payload-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.payload-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(6, 10, 22, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.payload-line code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #e0f2fe;
  word-break: break-all;
  white-space: pre-wrap;
}

/* Manual Ticket Form */
.ticket-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: var(--surface-input);
  color: #f8fafc;
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

textarea.form-control {
  min-height: 92px;
  resize: vertical;
}

.ticket-reply-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.ticket-reply-box h4 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--cyan-bright);
}

.ticket-reply-content {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #f8fafc;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==========================================================================
   Guarantees Grid & FAQ Accordion
   ========================================================================== */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.guarantee-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(11, 17, 32, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.guarantee-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.guarantee-icon svg {
  width: 21px;
  height: 21px;
}

.g-emerald { color: var(--emerald-bright); background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(52, 211, 153, 0.28); }
.g-cyan { color: var(--cyan-bright); background: rgba(6, 182, 212, 0.14); border: 1px solid rgba(34, 211, 238, 0.28); }
.g-indigo { color: var(--indigo-bright); background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(129, 140, 248, 0.28); }

.guarantee-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
}

.guarantee-card p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.faq-section {
  border-radius: var(--radius-xl);
  padding: 24px 26px;
  background: rgba(11, 17, 32, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #f8fafc;
}

.section-heading span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cyan-bright);
  opacity: 0.8;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.13);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(34, 211, 238, 0.32);
}

.faq-item summary {
  list-style: none;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chevron {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary .chevron {
  transform: rotate(180deg);
  color: var(--cyan-bright);
}

.faq-body {
  padding: 0 16px 15px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-body strong {
  color: #f1f5f9;
}

/* ==========================================================================
   Footer & Toast
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.11);
  background: rgba(4, 7, 15, 0.65);
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--cyan-bright);
}

.toast-container {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 240px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  animation: toastIn 0.25s ease;
}

.toast-success { border-color: rgba(52, 211, 153, 0.55); color: #d1fae5; }
.toast-error { border-color: rgba(251, 113, 133, 0.55); color: #ffe4e6; }
.toast-warning { border-color: rgba(251, 191, 36, 0.55); color: #fef3c7; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Loading Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Mobile-First Breakpoints
   ========================================================================== */
@media (max-width: 780px) {
  .vault-main {
    padding: 26px 14px 48px;
  }

  .vault-card {
    padding: 20px 18px 22px;
  }

  .cdk-input-group {
    flex-direction: column;
  }

  .btn-hero {
    width: 100%;
  }

  .vault-modes-strip,
  .guarantees-grid,
  .receipt-grid,
  .locked-channel-grid {
    grid-template-columns: 1fr;
  }

  .phone-timer-grid {
    grid-template-columns: 1fr;
  }

  .timer-card {
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 18px;
  }

  .linear-timer-bar {
    width: 120px;
  }

  .header-inner {
    padding: 12px 14px;
  }

  .brand-text small {
    display: none;
  }

  .nav-pill span {
    font-size: 0.8rem;
  }
}
