/* e:\Vibe Coding\neuradine\css\components.css */

/* Premium Glassmorphic Cards */
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-premium);
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 43, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
  z-index: 0;
}

.card-glass:hover {
  transform: translateY(-4px);
  border-color: var(--primary-glow-strong);
  box-shadow: var(--shadow-glow);
}

.card-glass:hover::before {
  opacity: 1;
}

/* Premium Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #FFF;
  font-family: var(--font-headings);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(255, 107, 43, 0.3);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, background 0.28s ease;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  text-align: center;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.5s ease-out;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 30px rgba(255, 107, 43, 0.42);
  transform: translateY(-3px) scale(1.01);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--button-secondary-bg);
  color: var(--text-primary);
  font-family: var(--font-headings);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
  min-height: 48px;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--button-secondary-hover);
  border-color: rgba(var(--primary-rgb), 0.34);
  box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.14);
  transform: translateY(-3px) scale(1.01);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-text:hover {
  color: var(--primary-hover);
  gap: 10px;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
}

.badge-green {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.badge-green .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 1.5s infinite;
}

.badge-yellow {
  background: rgba(255, 214, 0, 0.1);
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 214, 0, 0.2);
}

.badge-yellow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 8px var(--accent-yellow);
  animation: pulse-dot 1.5s infinite;
}

.badge-red {
  background: rgba(255, 23, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255, 23, 68, 0.2);
}

.badge-red .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-dot 1.5s infinite;
}

/* Premium Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.input-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-field {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
  min-height: 52px;
  width: 100%;
}

.input-field::placeholder {
  color: var(--text-muted);
}

select.input-field,
.input-field option {
  color: var(--text-primary);
  background: var(--select-option-bg);
}

.input-field:focus {
  border-color: var(--primary);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 4px var(--primary-glow);
  transform: translateY(-1px);
}

/* Payment gateway UI */
.payment-card {
  border-color: rgba(var(--primary-rgb), 0.22) !important;
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.07), transparent 52%),
    var(--bg-glass) !important;
}

.payment-card::after {
  content: '';
  position: absolute;
  inset: auto 18px 18px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.12);
  filter: blur(28px);
  pointer-events: none;
}

.payment-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.payment-qr-frame {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #0b0b0f;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.payment-qr-frame img {
  width: 100%;
  border-radius: calc(var(--radius-md) - 4px);
}

.payment-summary {
  display: grid;
  gap: 12px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.payment-row span {
  color: var(--text-secondary);
  font-size: 12px;
}

.payment-row strong {
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}

.payment-row .payment-amount {
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}

.btn-primary[disabled],
.btn-secondary[disabled],
.is-loading {
  cursor: wait !important;
  opacity: 0.72;
  transform: none !important;
}

.is-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: buttonSpin 0.75s linear infinite;
}

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

@media (max-width: 560px) {
  .card-glass {
    border-radius: 14px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 13px 16px;
    white-space: normal;
    line-height: 1.2;
  }

  .input-field {
    font-size: 16px;
    padding: 13px 14px;
  }

  .badge {
    white-space: normal;
    line-height: 1.25;
  }

  .payment-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .payment-qr-frame {
    width: min(220px, 100%);
  }

  .payment-summary {
    width: 100%;
  }

  .payment-row {
    align-items: center;
  }
}

/* Dark Mode Toggle Switch */
.theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  border-color: var(--primary-glow-strong);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 2;
  transition: transform var(--transition-smooth);
}

.theme-toggle:hover svg {
  transform: rotate(30deg);
}

/* Pulse Keyframe */
@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 12px currentcolor;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* Homepage section system */
.home-section {
  position: relative;
  padding: clamp(64px, 9vw, 104px) 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.home-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 12%, var(--section-soft), transparent 34%),
              radial-gradient(circle at 86% 80%, rgba(var(--primary-rgb), 0.035), transparent 30%);
  pointer-events: none;
}

.home-section > .container {
  position: relative;
  z-index: 1;
}

.home-section-zones {
  background: rgba(255,255,255,0.01);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary);
  font-family: var(--font-headings);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker::before,
.section-kicker::after {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.12;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 16px;
}

.live-feed-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 12px 4px 32px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.live-feed-track > * {
  scroll-snap-align: start;
}

.zone-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.zone-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.zone-card h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 22px;
}

.zone-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.zone-green { border-left: 4px solid var(--accent-green); }
.zone-yellow { border-left: 4px solid var(--accent-yellow); }
.zone-red { border-left: 4px solid var(--accent-red); }

.stat-tile {
  position: relative;
  min-height: 168px;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  box-shadow: var(--shadow-premium);
  text-align: center;
  overflow: hidden;
}

.stat-tile::after {
  content: '';
  position: absolute;
  inset: auto 18% -42px;
  height: 72px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.18);
  filter: blur(28px);
}

.stat-tile strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-family: var(--font-headings);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
}

.stat-tile:nth-child(2) strong {
  color: var(--text-primary);
}

.stat-tile:nth-child(3) strong {
  color: var(--accent-green);
}

.stat-tile span {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 15px;
}

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: clamp(56px, 8vw, 84px) 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: 48px;
}

.footer-logo {
  margin-bottom: 16px;
  align-items: center;
  gap: 12px;
}

.footer-brand p {
  max-width: 340px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.footer-column h5 {
  margin-bottom: 18px;
  font-family: var(--font-headings);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-badges svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-bottom div {
  display: flex;
  gap: 22px;
}

.footer-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  line-height: 1.6;
}

.footer-powered {
  color: var(--text-muted);
}

.footer-powered-link {
  color: var(--primary);
  font-weight: 600;
  position: relative;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.footer-powered-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.footer-powered-link:hover {
  color: var(--primary-hover);
  text-shadow: 0 0 18px var(--primary-glow-strong);
}

.footer-powered-link:hover::after {
  transform: scaleX(1);
}

.site-footer-compact {
  padding: 28px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.site-footer-compact .footer-bottom {
  border-top: none;
  padding-top: 0;
  justify-content: center;
  text-align: center;
}

.site-footer-compact .footer-credit {
  justify-content: center;
}
