:root {
  --bg-deep: #0b0f19;
  --panel-dark: linear-gradient(160deg, #131b2e 0%, #0d121f 100%);
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --btn-primary: linear-gradient(135deg, #7c3aed 0%, #c026d3 50%, #db2777 100%);
  --btn-hover: linear-gradient(135deg, #6d28d9 0%, #a21caf 50%, #be185d 100%);
  --glow-accent: rgba(147, 51, 234, 0.35);
  --card-light: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 15% 15%, #111827 0%, #090d16 100%);
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Glow Spheres */
.glow-sphere {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}
.glow-1 { top: -120px; left: -120px; background: #6366f1; }
.glow-2 { bottom: -120px; right: -120px; background: #db2777; }

.page-wrapper {
  width: 100%;
  max-width: 1040px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
}

/* ================= PC 3D BOOK OPEN ================= */
@media (min-width: 851px) {
  body {
    perspective: 2000px;
  }

  .page-wrapper {
    perspective: 2000px;
  }

  @keyframes openLeftPage {
    0% { opacity: 0; transform: rotateY(-85deg); }
    100% { opacity: 1; transform: rotateY(0deg); }
  }

  @keyframes openRightPage {
    0% { opacity: 0; transform: rotateY(85deg); }
    100% { opacity: 1; transform: rotateY(0deg); }
  }

  .card-container {
    position: relative;
    width: 100%;
    min-height: 590px;
    display: flex;
    transform-style: preserve-3d;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.45));
    overflow: visible;
  }

  .banner-panel {
    width: 44%;
    background: var(--panel-dark);
    border-radius: 28px 0 0 28px;
    transform-origin: right center;
    animation: openLeftPage 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }

  .forms-panel {
    width: 56%;
    background: var(--card-light);
    border-radius: 0 28px 28px 0;
    transform-origin: left center;
    animation: openRightPage 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.04);
    z-index: 5;
    padding: 42px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .switch-bubble {
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--btn-primary);
    border: 3.5px solid #ffffff;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.55);
    transition: var(--transition);
    z-index: 999;
  }
}

/* ================= BANNER CONTENT ================= */
.banner-content {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}

.brand-logo-container {
  position: relative;
  width: 170px;
  max-width: 100%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 25px rgba(168, 85, 247, 0.45));
  transition: var(--transition);
}

.brand-logo-container:hover {
  transform: translateY(-3px) scale(1.03);
}

.veera-vector-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.tagline-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.28);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.brand-description {
  font-size: 12.5px;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 22px;
}

.stat-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.badge-item {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
}
.badge-item i { color: var(--accent-cyan); }

/* ================= FORMS PANEL ================= */
.tabs-nav {
  position: relative;
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 30px;
  width: fit-content;
  margin: 0 auto 20px;
}

.tab-item {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}
.tab-item.active { color: #ffffff; }

.sliding-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 90px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 25px;
  transition: var(--transition);
  z-index: 1;
}

.form-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.form-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.view-header {
  text-align: center;
  margin-bottom: 20px;
}
.view-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}
.view-header p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.input-box {
  position: relative;
  margin-bottom: 14px;
}

.input-box input {
  width: 100%;
  padding: 13px 40px 13px 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: #f8fafc;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.input-box label {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
}

.field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

.view-pass-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
}

.input-box input:focus,
.input-box input:not(:placeholder-shown) {
  border-color: #8b5cf6 !important;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16) !important;
}

.input-box input:focus + label,
.input-box input:not(:placeholder-shown) + label {
  top: 0;
  left: 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: #8b5cf6;
  background: #ffffff;
  padding: 0 5px;
  border-radius: 4px;
}

.input-box input:focus ~ .field-icon {
  color: #8b5cf6;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12px;
}

.check-container {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--text-muted);
}
.check-container input { display: none; }

.custom-box {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid var(--border-subtle);
  background: #f8fafc;
  display: inline-grid;
  place-items: center;
}

.check-container input:checked + .custom-box {
  background: #8b5cf6;
  border-color: #8b5cf6;
}
.check-container input:checked + .custom-box::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  color: #fff;
}

.inline-link {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 700;
}
.inline-link:hover { text-decoration: underline; }

.action-btn {
  width: 100%;
  padding: 13.5px;
  border: none;
  border-radius: 12px;
  background: var(--btn-primary);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px var(--glow-accent);
  transition: var(--transition);
}
.action-btn:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(147, 51, 234, 0.45);
}

.footer-switch {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 16px;
}

.link-bold {
  color: #8b5cf6;
  font-weight: 700;
  cursor: pointer;
}
.link-bold:hover { text-decoration: underline; }

.dismiss-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-muted);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 30;
  transition: var(--transition);
}
.dismiss-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
  transform: rotate(90deg);
}

.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ================= MOBILE VIEW (ANIMATED FALL-DOWN) ================= */
@keyframes mobileSmoothDrop {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 850px) {
  body {
    padding: 16px 12px;
    align-items: center;
    perspective: none !important;
  }

  .page-wrapper {
    max-width: 390px;
    width: 100%;
    perspective: none !important;
    transform: none !important;
  }

  .card-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transform: none !important;
    transform-style: flat !important;
    animation: mobileSmoothDrop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .banner-panel {
    width: 100%;
    background: #0f1629;
    padding: 30px 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: none !important;
    box-shadow: none !important;
  }

  .brand-description, .stat-badges, .tagline-pill {
    display: none !important;
  }

  .switch-bubble {
    position: absolute;
    top: auto;
    bottom: -20px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--btn-primary);
    border: 3.5px solid #ffffff;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 13px;
    box-shadow: 0 6px 18px rgba(219, 39, 119, 0.45);
    z-index: 60;
  }

  .forms-panel {
    width: 100%;
    background: #ffffff;
    padding: 26px 20px 24px;
    transform: none !important;
    box-shadow: none !important;
  }

  .tabs-nav {
    margin: 0 auto 16px;
  }

  .view-header {
    margin-bottom: 16px;
  }
  .view-header h2 {
    font-size: 22px;
  }
  .view-header p {
    font-size: 11.5px;
  }

  .input-box {
    margin-bottom: 12px;
  }
  .input-box input {
    padding: 12px 38px 12px 42px;
    font-size: 13.5px;
  }

  .fields-row {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .action-btn {
    padding: 13px;
    font-size: 14px;
    border-radius: 12px;
  }
}
