/* ==========================================================================
   MON Claim Portal / AirdropCheck Lab - Stylesheet
   Faithfully inspired by the authentic portal aesthetics
   ========================================================================== */

:root {
  --color-ink: #07050D;
  --color-surface: #100C1B;
  --color-surface-card: #140F24;
  --color-surface-hover: #1C1631;
  --color-edge: #231B38;
  --color-edge-light: #362B57;
  --color-text-main: #FFFFFF;
  --color-text-sub: #E2DCF7;
  --color-mute: #827A9C;
  
  --color-violet: #8A5CFF;
  --color-violet-hover: #9E77FF;
  --color-violet-glow: rgba(138, 92, 255, 0.45);

  --color-mint: #2ECC71;
  --color-mint-bg: rgba(46, 204, 113, 0.12);
  --color-mint-edge: rgba(46, 204, 113, 0.3);

  --color-slate-badge: #76708F;
  --color-slate-badge-bg: #1B1629;
  --color-slate-badge-edge: #2A233E;

  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-smooth: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  min-height: 100vh;
  background-color: var(--color-ink);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Latar Belakang Efek Radial Rays (Screenshot 1 & 2) */
.space-radial-rays {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  max-width: 100vw;
  max-height: 100vw;
  background: radial-gradient(circle, rgba(138, 92, 255, 0.22) 0%, rgba(94, 38, 222, 0.1) 40%, rgba(7, 5, 13, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Spanduk Simulasi Tetap */
.simulation-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(16, 12, 27, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-edge);
  padding: 8px 16px;
  z-index: 100;
  font-size: 13px;
  text-align: center;
}

.banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.banner-pill {
  background: rgba(138, 92, 255, 0.16);
  color: #B596FF;
  border: 1px solid rgba(138, 92, 255, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.banner-text {
  color: var(--color-mute);
}

.app-viewport {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   SCREEN 1: HERO / SIGN IN (Screenshot 1)
   ========================================================================== */
.screen-center-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(85vh - 70px);
  padding: 40px 16px;
}

.hero-emblem-wrap {
  margin-bottom: 28px;
}

.portal-diamond-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(138, 92, 255, 0.25), rgba(16, 12, 27, 0.9));
  border: 1.5px solid var(--color-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EBE5FF;
  box-shadow: 0 0 28px var(--color-violet-glow);
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.hero-desc-text {
  font-size: 18px;
  color: var(--color-mute);
  max-width: 560px;
  margin-bottom: 40px;
}

.btn-pill-glow {
  background: var(--color-violet);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 44px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(138, 92, 255, 0.55);
  transition: var(--transition-smooth);
}

.btn-pill-glow:hover {
  background: var(--color-violet-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(138, 92, 255, 0.75);
}

.hero-footer-note {
  margin-top: 36px;
  font-size: 13px;
  color: #554D6C;
}

/* ==========================================================================
   SCREEN 2: PORTAL DASHBOARD (Screenshot 2 & Screenshot 3)
   ========================================================================== */
.screen-dashboard {
  animation: fadeIn 0.3s ease-out;
}

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

/* Top Nav Bar */
.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-edge);
  flex-wrap: wrap;
  gap: 16px;
}

.nav-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.pill-faq {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-sub);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.badge-lab-sim {
  background: rgba(138, 92, 255, 0.15);
  color: #B596FF;
  border: 1px solid rgba(138, 92, 255, 0.3);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.claim-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-edge);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: monospace;
  font-size: 13px;
  color: #E2DCF7;
}

.btn-text-link {
  background: none;
  border: none;
  color: #B596FF;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.btn-text-link:hover {
  color: #FFFFFF;
}

.ml-2 {
  margin-left: 8px;
}

/* Grid 2 Kolom */
.portal-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .portal-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Kolom Kiri: CONNECTIONS */
.column-connections {
  display: flex;
  flex-direction: column;
}

.connections-header {
  margin-bottom: 20px;
}

.connections-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.connections-sub {
  font-size: 14px;
  color: var(--color-mute);
  line-height: 1.45;
}

.connections-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Kartu Connection (Screenshot 3 Sesuai Aslinya) */
.conn-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.conn-card:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-edge-light);
}

.conn-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.conn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1B152B;
  border: 1px solid #2B2144;
}

.icon-eth {
  color: #A78BFA;
}

.icon-discord {
  color: #7289DA;
}

.icon-email {
  color: #B596FF;
}

.icon-telegram {
  color: #64B5F6;
}

.icon-farcaster {
  color: #C084FC;
}

.icon-twitter {
  color: #E2DCF7;
}

.conn-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.conn-name {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
}

.conn-sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.text-mute {
  color: var(--color-mute);
}

.link-disconnect {
  background: none;
  border: none;
  color: var(--color-mute);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.link-disconnect:hover {
  color: #FFFFFF;
}

.link-connect {
  background: rgba(138, 92, 255, 0.2);
  border: 1px solid rgba(138, 92, 255, 0.4);
  color: #C5B0FF;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.link-connect:hover {
  background: var(--color-violet);
  color: #FFFFFF;
}

/* Status Badges (Screenshot 3) */
.badge-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-eligible {
  background: var(--color-mint-bg);
  color: var(--color-mint);
  border: 1px solid var(--color-mint-edge);
}

.badge-not-eligible {
  background: var(--color-slate-badge-bg);
  color: var(--color-slate-badge);
  border: 1px solid var(--color-slate-badge-edge);
}

.badge-neutral {
  background: #171322;
  color: #6C6584;
  border: 1px solid #231C34;
}

.badge-action {
  background: rgba(138, 92, 255, 0.12);
  color: #B596FF;
  border: 1px solid rgba(138, 92, 255, 0.3);
}

.badge-error {
  background: rgba(255, 118, 117, 0.12);
  color: #FF7675;
  border: 1px solid rgba(255, 118, 117, 0.3);
}

/* Tombol Periksa Kelayakan */
.check-eligibility-wrap {
  margin-top: 20px;
}

/* Track Results (3 Kartu di kolom kanan) */
.track-results {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #0E0B1C;
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-md);
  gap: 12px;
  transition: all 0.25s ease;
}

.track-item.status-eligible {
  border-color: var(--color-mint-edge);
  background: rgba(46, 204, 113, 0.04);
}

.track-item.status-not_eligible {
  opacity: 0.75;
}

.track-item-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.track-name {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.track-reason {
  font-size: 12px;
  color: var(--color-mute);
  line-height: 1.4;
}

/* Wallet Helper Bar */
.wallet-helper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(138, 92, 255, 0.08);
  border: 1px dashed rgba(138, 92, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.helper-text {
  font-size: 12px;
  color: #B596FF;
}

.btn-xs-helper {
  background: rgba(138, 92, 255, 0.25);
  border: 1px solid var(--color-violet);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-xs-helper:hover {
  background: var(--color-violet);
}


/* Helper Bar untuk Pengembang / Siswa */
.wallet-helper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(138, 92, 255, 0.08);
  border: 1px dashed rgba(138, 92, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-top: 4px;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.helper-text {
  font-size: 12px;
  color: #B596FF;
}

.btn-xs-helper {
  background: rgba(138, 92, 255, 0.25);
  border: 1px solid var(--color-violet);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-xs-helper:hover {
  background: var(--color-violet);
}

/* ==========================================================================
   Kolom Kanan: GLOWING CONCENTRIC RING PORTAL (Screenshot 2)
   ========================================================================== */
.column-portal-stage {
  display: flex;
  flex-direction: column;
}

.portal-ring-card {
  background: var(--color-surface);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.stage-top-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

/* Concentric Neon Portal Container */
.neon-concentric-container {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 10px 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.halo-aura {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 92, 255, 0.5) 0%, rgba(200, 80, 255, 0.2) 40%, rgba(7, 5, 13, 0) 70%);
  filter: blur(28px);
  z-index: 1;
}

.neon-portal-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(
    from 140deg,
    #9A5CFF 0%,
    #E056FD 28%,
    #46D9A0 48%,
    #9A5CFF 70%,
    #7B2CBF 100%
  );
  box-shadow: 0 0 40px rgba(154, 92, 255, 0.6);
  z-index: 2;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.neon-portal-ring.spinning {
  animation: portalSpin 1.2s cubic-bezier(0.15, 0.85, 0.35, 1.2) forwards;
}

@keyframes portalSpin {
  0% { transform: rotate(0deg) scale(0.92); filter: brightness(1.6); }
  60% { transform: rotate(720deg) scale(1.05); filter: brightness(1.9); }
  100% { transform: rotate(1080deg) scale(1); filter: brightness(1.1); }
}

.neon-dark-core {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: #0A0713;
  border: 4px solid #140F24;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.center-diamond-symbol {
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-content-text {
  margin-bottom: 24px;
}

.stage-claim-status {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.stage-sub-note {
  font-size: 14px;
  color: var(--color-mute);
  max-width: 320px;
  line-height: 1.5;
}

.stage-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--color-violet);
  color: #FFFFFF;
  border-radius: var(--radius-full);
}

.btn-primary:hover {
  background: var(--color-violet-hover);
  transform: translateY(-1px);
}

.btn-secondary-dark {
  background: #171224;
  color: var(--color-text-sub);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-full);
}

.btn-secondary-dark:hover {
  background: #231C34;
  color: #FFFFFF;
}

.stage-bottom-notice {
  font-size: 12px;
  color: #554D6C;
}

/* Toast Notifikasi */
.toast-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
}

.toast-msg {
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #FFFFFF;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  animation: toastIn 0.25s ease-out;
  max-width: 380px;
}

.toast-msg.toast-success {
  border-color: var(--color-mint);
}

.toast-msg.toast-error {
  border-color: #FF7675;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
