/* Bantalv2 — Apple-inspired dark theme */

:root {
  --bg: #000;
  --bg-card: #111;
  --bg-input: #1a1a1a;
  --text: #fff;
  --text-muted: #86868b;
  --accent: #4CAF50;
  --accent-hover: #66bb6a;
  --border: #1d1d1f;
  --danger: #ff6b6b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-w: 1200px;
  --speed: 0.4s;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: pageFadeIn 0.8s var(--ease) both;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: color 0.2s;
}

.logo a:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a,
.nav button {
  color: var(--text-muted);
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  letter-spacing: -0.01em;
}

.nav a:hover,
.nav button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav .btn-logout {
  color: var(--danger);
}

.hidden-link {
  display: none;
}

/* ── Main ── */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 56px;
}

/* ── Footer ── */

.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  letter-spacing: 0.3px;
}

.site-footer a {
  color: var(--accent);
}

/* ── Landing hero ── */

.hero {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(76, 175, 80, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-sub {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 64px;
  margin-top: -40px;
  color: var(--text-muted);
  animation: fadeInUp 0.6s var(--ease) both;
  animation-delay: 0.1s;
  position: relative;
}

.hero-stack {
  position: relative;
  display: inline-block;
  animation: fadeInUp 0.6s var(--ease) both;
  animation-delay: 0.25s;
}

.hero-icon {
  max-width: 180px;
  width: auto;
  height: auto;
  transition: transform 0.4s var(--ease);
  position: relative;
  z-index: 2;
}

.hero-icon:hover {
  transform: scale(1.06);
}

.hero-money {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 240px;
  height: auto;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.hero-icon:hover + .hero-money {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero-title {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -1px;
  margin: 48px 0 0;
  animation: fadeInUp 0.6s var(--ease) both;
  animation-delay: 0.4s;
  position: relative;
}

.hero-tagline {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.3px;
  animation: fadeInUp 0.6s var(--ease) both;
  animation-delay: 0.55s;
  position: relative;
}

.hero-store {
  margin-top: 48px;
  animation: fadeInUp 0.6s var(--ease) both;
  animation-delay: 0.7s;
  position: relative;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  height: 48px;
  width: auto;
  transition: opacity 0.2s;
}

.store-badge:hover img {
  opacity: 0.8;
}

/* ── Showcase sections ── */

.showcase {
  width: 100%;
  overflow: visible;
  animation: fadeInUp 0.8s var(--ease) both;
}

.showcase-image {
  position: relative;
  width: 100%;
  line-height: 0;
}

.showcase-image img,
.showcase-image video {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-image .showcase-video {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.showcase-image .showcase-video.visible {
  opacity: 1;
}

.showcase-video-wrap {
  position: relative;
  line-height: 0;
}

.showcase-video-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.showcase-video-wrap.freeze-image::after {
  background-image: url(../images/Image.png);
}

.showcase-video-wrap.freeze-image2::after {
  background-image: url(../images/Image2.png);
}

.showcase-video-wrap.frozen::after {
  opacity: 1;
}

.showcase-video-wrap .showcase-video {
  position: relative;
  z-index: 1;
  transition: opacity 0.6s var(--ease);
}

.showcase-overlay {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  max-width: 480px;
  text-align: left;
  pointer-events: none;
  z-index: 2;
}

.showcase-overlay h2 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.showcase-overlay p {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 420px;
}

.showcase-overlay--right {
  left: auto;
  right: 8%;
  text-align: right;
}

.showcase-overlay--right p {
  margin-left: auto;
}

.showcase-alt .showcase-overlay p {
  color: #fff;
}

.showcase-image .showcase-phone {
  position: absolute;
  top: 46%;
  left: 15%;
  width: auto;
  height: 120%;
  z-index: 1;
  border-radius: 24px;
  pointer-events: none;
  opacity: 0;
}

/* ── Features grid ── */

.features {
  padding: 100px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  animation: fadeInUp 0.8s var(--ease) both;
}

.features-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 48px 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 175, 80, 0.08);
  border-radius: 14px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Auth view ── */

.auth-section,
.support-section {
  display: none;
  flex: 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.auth-section.active,
.support-section.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* ── Card ── */

.card {
  max-width: 440px;
  width: 100%;
  margin: auto;
  padding: 48px 36px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: fadeInScale 0.5s var(--ease) both;
}

.card-wide {
  max-width: 640px;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ── Form elements ── */

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-group input:read-only,
.form-group select:read-only,
.form-group textarea:read-only {
  opacity: 0.6;
  cursor: default;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  font-size: 14px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2386868b'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group .char-counter {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  -webkit-font-smoothing: antialiased;
}

.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 12px rgba(76, 175, 80, 0.3);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(76, 175, 80, 0.1);
  box-shadow: none;
}

/* ── Messages ── */

.msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
  line-height: 1.5;
}

.msg.error {
  display: block;
  background: rgba(255, 107, 107, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.msg.success {
  display: block;
  background: rgba(76, 175, 80, 0.1);
  color: var(--accent);
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.msg.warning {
  display: block;
  background: rgba(255, 165, 0, 0.1);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.25);
}

/* ── Notification toast ── */

.notification {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 2000;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.35s var(--ease);
  display: none;
}

.notification.show {
  display: block;
}

.notification.success {
  background: rgba(76, 175, 80, 0.95);
  color: #000;
}

.notification.error {
  background: rgba(255, 107, 107, 0.95);
  color: #fff;
}

.notification.warning {
  background: rgba(255, 165, 0, 0.95);
  color: #000;
}

/* ── Privacy policy ── */

.privacy-page main {
  margin-top: 56px;
}

.privacy-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 120px;
}

.privacy-container h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.privacy-container .effective {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.privacy-container h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin: 40px 0 14px;
  letter-spacing: -0.2px;
}

.privacy-container h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 28px 0 10px;
}

.privacy-container p {
  margin-bottom: 14px;
  font-size: 15px;
  color: #ccc;
  line-height: 1.7;
}

.privacy-container ul {
  margin: 14px 0 18px;
  padding-left: 22px;
}

.privacy-container li {
  margin: 6px 0;
  font-size: 15px;
  color: #ccc;
  line-height: 1.6;
}

.privacy-container hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.privacy-container .contact-box {
  background: rgba(76, 175, 80, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
}

.privacy-container .contact-box p {
  margin-bottom: 4px;
  font-size: 15px;
}

.privacy-container .contact-box a {
  font-size: 14px;
}

.privacy-container .last-updated {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 13px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */

@media (max-width: 767px) {
  .hero {
    padding: 60px 20px 80px;
  }

  .hero-sub {
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 24px;
  }

  .hero-icon {
    max-width: 140px;
  }

  .hero-money {
    width: 180px;
    top: -40px;
    right: -40px;
  }

  .hero-title {
    font-size: 38px;
    margin-top: 36px;
  }

  .hero-tagline {
    font-size: 16px;
    margin-top: 10px;
  }

  .hero-store {
    margin-top: 36px;
  }

  .card {
    margin: 16px;
    padding: 32px 24px;
  }

  .card-title {
    font-size: 22px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .privacy-container h1 {
    font-size: 30px;
  }

  .privacy-container {
    padding: 32px 20px 100px;
  }

  .site-footer {
    padding: 24px 20px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .showcase-overlay {
    position: static;
    transform: none;
    max-width: 100%;
    padding: 40px 24px;
    text-align: center;
  }

  .showcase-overlay h2 {
    font-size: 32px;
  }

  .showcase-overlay p {
    font-size: 17px;
    max-width: 100%;
  }

  .showcase-overlay--right {
    text-align: center;
  }

  .showcase-overlay--right p {
    margin: 0 auto;
  }

  .showcase-image .showcase-phone {
    position: absolute;
    top: -40%;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 100%;
    width: auto;
  }

  .features {
    padding: 60px 20px;
  }

  .features-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 36px 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 16px 60px;
  }

  .hero-sub {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 30px;
    margin-top: 28px;
  }

  .hero-icon {
    max-width: 110px;
  }

  .hero-money {
    width: 140px;
    top: -30px;
    right: -30px;
  }

  .hero-tagline {
    font-size: 14px;
  }

  .hero-store {
    margin-top: 28px;
  }

  .store-badge img {
    height: 42px;
  }

  .card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .nav a,
  .nav button {
    font-size: 12px;
    padding: 6px 12px;
  }

  .showcase-overlay {
    padding: 32px 20px;
  }

  .showcase-image .showcase-phone {
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 100%;
    width: auto;
  }

  .showcase-overlay h2 {
    font-size: 26px;
  }

  .showcase-overlay p {
    font-size: 15px;
  }

  .features {
    padding: 40px 16px;
  }

  .feature-card {
    padding: 28px 20px;
  }
}
