
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'MonumentExtended';
  src: url('/fonts/MonumentExtended-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'MonumentExtended';
  src: url('/fonts/MonumentExtended-Ultrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

:root {
  
  
  
  --bg-gradient: radial-gradient(at top left, #f7f7fb, #eff1f5);
  
  --text: #1a1a1a;           
  --muted: #7a7a85;          
  
  
  --accent: #6e54ff;         
  --accent-2: #5842cc;       
  --accent-glow: rgba(110, 84, 255, 0.35);
  
  --live: #ff3b30;           
  
  
  
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  
  
  --glass-border: 1px solid rgba(255, 255, 255, 0.7);
  --glass-highlight: 1px solid rgba(255, 255, 255, 0.9);
  
  
  --blur-val: 20px;

  
  --radius: 24px;            
  --radius-pill: 100px;      
  
  
  --shadow-sm: 0 4px 20px -4px rgba(18, 18, 28, 0.04);
  --shadow-md: 0 12px 40px -8px rgba(110, 84, 255, 0.08);
  --shadow-hover: 0 20px 50px -12px rgba(110, 84, 255, 0.2);
  --shadow-modal: 0 40px 80px rgba(0,0,0,0.12);
}

/* =========================================
   2. GLOBAL RESET & BASE
   ========================================= */

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  
  
  background: #eff1f5; 
  background-image: 
    radial-gradient(at 0% 0%, rgba(110, 84, 255, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(110, 84, 255, 0.05) 0px, transparent 50%),
    linear-gradient(180deg, #f4f6f9 0%, #eff1f5 100%);
  background-attachment: fixed; 
}

body::before { display: none; }

a { 
  color: var(--accent); 
  text-decoration: none; 
  transition: all 0.2s ease; 
}
a:hover { color: var(--accent-2); text-shadow: 0 0 12px var(--accent-glow); }

.container { 
  max-width: 1240px; 
  margin: 0 auto; 
  padding: 0 20px; 
}

/* =========================================
   3. HEADER (Floating Liquid Capsule)
   ========================================= */

.site-header {
  padding-top: 24px;
  padding-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  
  
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  
  
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  
  border-radius: var(--radius-pill);
  padding: 8px 12px 8px 24px;
  box-shadow: var(--shadow-md);
}


.brand { display: flex; align-items: center; }
.brand-link { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.brand-text {
  font-family: 'MonumentExtended', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.brand-accent { color: var(--accent); }


.nav-center {
  justify-self: center;
  display: flex;
  
  background: rgba(20, 20, 30, 0.03);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
  padding: 4px;
  border-radius: var(--radius-pill);
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.4); }

.nav-link.is-active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  
  
  box-shadow: 
    0 8px 20px -6px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 24px -8px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-wallet {
  font-family: 'MonumentExtended', sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  background: var(--text);
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.btn-wallet:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-wallet.is-connected {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
}

.btn-wallet.is-connected:hover {
  background: #fafafa;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
/* =========================================
   4. MAIN CONTENT
   ========================================= */

.section-title-row {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  margin: 40px 0 24px;
}

.section-title {
  font-family: 'MonumentExtended', sans-serif;
  font-size: 32px;
  color: var(--text);
  margin: 0;
  letter-spacing: -1px;
  
  background: linear-gradient(135deg, var(--text) 0%, #4a4a55 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.icon-refresh {
  width: 44px; height: 44px;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  -webkit-mask: url('/img/refresh.svg') center / 20px 20px no-repeat;
  mask: url('/img/refresh.svg') center / 20px 20px no-repeat;
  background-color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.icon-refresh:hover {
  background-color: var(--accent);
  transform: rotate(90deg) scale(1.1);
  background-color: var(--accent);
}

/* =========================================
   5. GRID & CARDS (Glass Cards)
   ========================================= */

.grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 60px;
}

@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  
  border: 1px solid rgba(255,255,255,0.4);
  border-top-color: rgba(255,255,255,0.8);
  border-left-color: rgba(255,255,255,0.8);
  
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
  animation: cardFadeIn 0.6s ease forwards;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow-hover);
  border-color: rgba(110, 84, 255, 0.2);
  z-index: 2;
}

.card-media {
  width: calc(100% - 20px);
  margin: 10px 10px 0 10px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  
  background: rgba(0,0,0,0.03);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-img { transform: scale(1.08); }

.card-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--live);
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25);
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.addr {
  font-family: 'Poppins', monospace;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5); 
  border: 1px solid rgba(255,255,255,0.6);
  padding: 6px 12px;
  border-radius: 12px;
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
}


.no-streams {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  color: var(--muted);
}
.no-streams p { margin: 6px 0; font-size: 18px; }

/* =========================================
   6. FOOTER
   ========================================= */

.site-footer {
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: auto;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  position: relative;
}

/* =========================================
   7. WALLET MODAL & POPOVER
   ========================================= */


.wallet-pop {
  position: absolute;
  top: 0; left: 0;
  width: 260px;
  
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border-radius: 20px;
  padding: 20px;
  z-index: 110;
  opacity: 0; 
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.wallet-pop.is-open {
  opacity: 1; 
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.wallet-pop__row {
  display: flex; 
  align-items: center; 
  margin-bottom: 16px;
  font-size: 14px;
}

.wallet-pop__actions {
  display: flex;
  justify-content: flex-end;
}

.btn-disconnect {
  background: none;
  border: none;
  color: var(--live);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.btn-disconnect:hover { text-decoration: underline; }



.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4); 
  backdrop-filter: blur(12px); 
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  
  border-radius: 32px;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.modal.is-open .modal__card {
  transform: translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.modal__title {
  margin: 0;
  font-family: 'MonumentExtended', sans-serif;
  font-size: 18px;
  color: var(--text);
}

.modal__close {
  background: rgba(0,0,0,0.04);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.modal__close:hover {
  background: var(--text);
  color: #fff;
}

.modal__body {
  padding: 32px;
}

.wallet-list {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.wallet-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  text-align: left;
}

.wallet-item:hover {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px -4px rgba(110, 84, 255, 0.15);
  transform: translateY(-2px);
}

.wallet-item:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.wallet-item.is-loading {
  justify-content: center;
  gap: 10px;
  color: var(--accent);
}

.modal__hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.modal__error {
  color: var(--live);
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  background: rgba(255, 59, 48, 0.1);
  padding: 10px;
  border-radius: 12px;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin-refresh 0.8s linear infinite;
}

/* =========================================
   8. ANIMATIONS
   ========================================= */

@keyframes cardFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes spin-refresh {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social:hover {
  background: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.footer-x-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.footer-social:hover .footer-x-icon {
  filter: brightness(0) invert(1);
  opacity: 1;
}