/* assets/css/gateway.css */
/* Gateway-specific styles (e.g., gateway card, branding, referral banners) */

:root {
  --bg: #07080a;
  --bg-2: #0e1014;
  --panel: rgba(18, 20, 26, 0.65);
  --line: rgba(255, 255, 255, 0.06);
  --line-hover: rgba(255, 255, 255, 0.12);
  --ink: #f3f4f2;
  --ink-2: #cdd0d5;
  --muted: #8a8d95;
  --accent: #1f59c4;
  --accent-glow: rgba(31, 89, 196, 0.4);
  --accent-dim: rgba(31, 89, 196, 0.12);
  --success: #34d399;
  --r: 16px;
  --r-sm: 8px;
}

body {
  /* Grid and glow backgrounds */
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(31, 89, 196, 0.18), transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(91, 140, 240, 0.08), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
}

.container {
  width: 100%;
  max-width: 500px;
  margin: auto;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ============================================================
   GATEWAY CARD
   ============================================================ */
.gateway-card {
  background: var(--panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 48px 40px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.gateway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
}

/* Logo & Header */
.logo-wrapper {
  text-align: center;
  margin-bottom: 36px;
}

.logo-img {
  height: 40px;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Saira Condensed";
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.02);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.8s infinite;
}

h1 {
  font-family: "Saira Condensed";
  font-weight: 800;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 14px;
}

.subtitle {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 8px;
  font-family: "Archivo", sans-serif;
}

/* Gateway Features */
.feature-list {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(31, 89, 196, 0.15);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-family: "Saira Condensed";
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
}

.feature-desc {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
  line-height: 1.4;
}

/* Actions */
.btn-portal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--r-sm);
  font-family: "Saira Condensed";
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px var(--accent-glow);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-portal:hover {
  background: #2b6ce6;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(31, 89, 196, 0.6);
}

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

.btn-portal svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-portal:hover svg {
  transform: translateX(4px);
}

.btn-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.01);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: "Saira Condensed";
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-apply:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-apply svg {
  color: var(--muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.btn-apply:hover svg {
  color: #60a5fa;
  transform: scale(1.05);
}

/* Confidentiality Notice */
.notice-box {
  margin-top: 28px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.03);
  border: 1px dashed rgba(239, 68, 68, 0.15);
  border-radius: var(--r-sm);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.notice-box svg {
  width: 14px;
  height: 14px;
  color: #f87171;
  margin-top: 2px;
  flex-shrink: 0;
}

.notice-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  width: 100%;
  max-width: 900px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-link:hover {
  color: #60a5fa;
}

/* Theme Toggle Button Overrides for index.html */
.theme-toggle-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(31, 89, 196, 0.35);
}

.theme-toggle-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

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

@media (max-width: 540px) {
  body {
    padding: 30px 16px;
  }
  
  .gateway-card {
    padding: 36px 24px;
  }
  
  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .footer-left, .footer-right {
    text-align: center;
  }
}

/* ============================================================
   LIGHT MODE OVERRIDES
   ============================================================ */
:root.light-mode, html.light-mode {
  --bg: #f4f5f7;
  --bg-2: #e9ecf0;
  --panel: rgba(255, 255, 255, 0.85);
  --line: rgba(0, 0, 0, 0.08);
  --line-hover: rgba(0, 0, 0, 0.14);
  --ink: #181b21;
  --ink-2: #3f4450;
  --muted: #6e727f;
  --accent: #1f59c4;
  --accent-glow: rgba(31, 89, 196, 0.25);
  --accent-dim: rgba(31, 89, 196, 0.08);
}

:root.light-mode body,
html.light-mode body {
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(31, 89, 196, 0.08), transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(31, 89, 196, 0.04), transparent 45%),
    linear-gradient(rgba(0, 0, 0, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
}

:root.light-mode .logo-img,
html.light-mode .logo-img {
  filter: none;
}

:root.light-mode .gateway-card,
html.light-mode .gateway-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

:root.light-mode .notice-box,
html.light-mode .notice-box {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}
