/* ============================================================
   OnlyEvents — master.css  |  Gen-Z UI (Unified Theme)
   Drop-in replacement for shared layout CSS
   (header, footer, modal, global tokens)
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cascadia+Mono:ital,wght@0,200..700;1,200..700&display=swap');

/* ---------- Unified Design Tokens (same vibe as index.css) ---------- */
:root{
  /* Background */
  --oe-bg-0:#050611;
  --oe-bg-1:#070A16;

  /* Surfaces */
  --oe-surface: rgba(255,255,255,.06);
  --oe-surface2: rgba(255,255,255,.09);
  --oe-border: rgba(255,255,255,.12);
  --oe-border2: rgba(255,255,255,.18);

  /* Text */
  --oe-text: rgba(255,255,255,.92);
  --oe-muted: rgba(255,255,255,.68);
  --oe-soft: rgba(255,255,255,.52);

  /* Brand */
  --oe-violet:#7C3AED;
  --oe-cyan:#22D3EE;
  --oe-pink:#FB7185;

  /* UI */
  --oe-radius: 22px;
  --oe-radius-sm: 16px;
  --oe-radius-xs: 12px;

  /* Fonts */
  --font-head: 'Cascadia Mono', monospace;
  --font-body: 'Cascadia Mono', monospace;

  /* Shadows */
  --shadow-1: 0 18px 60px rgba(0,0,0,.55);
  --shadow-2: 0 10px 30px rgba(0,0,0,.35);

  /* Focus ring */
  --ring: 0 0 0 4px rgba(34,211,238,.16);

  /* --------- Compatibility aliases (if older components rely on these) --------- */
  --bg: var(--oe-bg-0);
  --surface: rgba(255,255,255,.05);
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --border: var(--oe-border);
  --text: var(--oe-text);
  --muted: var(--oe-muted);
  --line: rgba(255,255,255,.10);

  --accent: var(--oe-violet);
  --accent2: var(--oe-cyan);
  --accent3: var(--oe-pink);

  --brand1: var(--oe-violet);
  --brand2: var(--oe-cyan);
  --brand3: #5b21b6;

  --radius: var(--oe-radius);
  --radius-sm: var(--oe-radius-sm);

  --glow-v: 0 0 44px rgba(124,58,237,.28);
  --glow-c: 0 0 44px rgba(34,211,238,.18);

  --shadow: var(--shadow-1);
  --shadow2: var(--shadow-2);

  --primary: var(--oe-violet);
  --primary2: var(--oe-cyan);
  --ink: rgba(255,255,255,.92);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after{ box-sizing:border-box; }
html, body{ height:100%; overflow-x:hidden; }

body{
  margin:0;
  overflow-y:auto;
  color: var(--oe-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  background:
    radial-gradient(1200px 680px at 18% 10%, rgba(124,58,237,.24), transparent 60%),
    radial-gradient(900px 560px at 85% 18%, rgba(34,211,238,.18), transparent 58%),
    radial-gradient(900px 620px at 55% 92%, rgba(251,113,133,.14), transparent 62%),
    linear-gradient(180deg, var(--oe-bg-0), var(--oe-bg-1));
}

/* Grain */
body::before{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  background-size:200px;
}

a{ color:inherit; text-decoration:none; }

:focus-visible{
  outline:none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

.oe-container{
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

/* ---------- Global Buttons ---------- */
.oe-btn,
.oe-cta-btn,
.oe-primary-btn{
  background: linear-gradient(90deg, var(--oe-cyan), var(--oe-violet));
  box-shadow: 0 16px 38px rgba(34,211,238,.14);
  color: #071019;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 900;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.oe-btn:hover,
.oe-cta-btn:hover,
.oe-primary-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 22px 60px rgba(124,58,237,.22);
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.oe-header{
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  overflow: visible;

  background: rgba(0,0,0,.30);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Animated accent line */
.oe-header::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background: linear-gradient(90deg, var(--oe-cyan), var(--oe-violet), var(--oe-pink), var(--oe-cyan));
  background-size: 240% 100%;
  animation: oeShimmer 4s linear infinite;
}
@keyframes oeShimmer{
  0%{ background-position: 240% 0; }
  100%{ background-position: -240% 0; }
}

.oe-nav{
  height: 72px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}

.oe-brand{
  display:flex;
  align-items:center;
  padding:0;
  margin:0;
}

.oe-logo{
  display:block;
  height: 44px;
  width:auto;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}

/* Nav links */
.oe-link{
  display:inline-flex;
  align-items:center;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 900;
  font-family: var(--font-head);
  font-size: 13.5px;
  color: rgba(255,255,255,.72);
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.oe-link:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  transform: translateY(-1px);
}

/* Hamburger menu */
.oe-menu{
  height: 40px;
  width: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.oe-menu:hover{
  background: rgba(124,58,237,.14);
  border-color: rgba(124,58,237,.32);
  transform: translateY(-1px);
}

/* Main spacing */
.oe-main{
  padding-top: 18px;
  padding-bottom: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.oe-footer-main{
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.oe-footer-main .oe-container{
  max-width: 100% !important;
  width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

.oe-footer-card{
  background: rgba(0,0,0,.28);
  border-top: 1px solid rgba(255,255,255,.12);
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 46px 0 28px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100% !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.oe-footer-card::before{
  content:"";
  position:absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(34,211,238,.10), transparent 70%);
  pointer-events:none;
}

.oe-footer-top{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}

.oe-footer-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  font-family: var(--font-head);
  color: rgba(255,255,255,.92);
}

.oe-footer-brand .oe-logo{ height: 36px; }

.oe-footer-cols{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 170px;
  gap: 28px;
}

.oe-fcol h6{
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 900;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.oe-fcol a{
  display:block;
  font-size: 13px;
  color: rgba(255,255,255,.68);
  padding: 5px 0;
  transition: color .18s ease, transform .18s ease;
}
.oe-fcol a:hover{
  color: var(--oe-cyan);
  transform: translateX(4px);
}

.oe-fcol-rightlinks{ padding-top: 22px; }
.oe-fcol-rightlinks a{
  font-weight: 900;
  color: rgba(255,255,255,.70);
}

.oe-footer-divider{
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 24px 0;
}

.oe-footer-bottom{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.oe-foot-copy{
  font-size: 12px;
  color: rgba(255,255,255,.62);
}

.oe-foot-social{
  display:flex;
  align-items:center;
  gap: 10px;
}

.oe-social{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 13px;
  color: rgba(255,255,255,.70);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.oe-social:hover{
  transform: translateY(-2px);
  background: rgba(34,211,238,.10);
  border-color: rgba(34,211,238,.25);
  color: rgba(255,255,255,.92);
  box-shadow: 0 22px 60px rgba(34,211,238,.10);
}

.oe-foot-links{
  display:flex;
  gap: 16px;
  font-size: 12px;
}
.oe-foot-links a{
  color: rgba(255,255,255,.62);
  font-weight: 800;
  transition: color .18s ease;
}
.oe-foot-links a:hover{ color: var(--oe-cyan); }

/* ============================================================
   SIGNUP / LOGIN MODAL
   ============================================================ */
.oe-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.oe-modal.is-open{ display:block; }

.oe-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.oe-modal-dialog{
  position: relative;
  max-width: 760px;
  margin: 70px auto;
  border-radius: calc(var(--oe-radius) + 10px);
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  box-shadow: 0 50px 120px rgba(0,0,0,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px;
  overflow:hidden;
}

.oe-modal-dialog::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background: linear-gradient(90deg, var(--oe-cyan), var(--oe-violet));
}

.oe-modal-close{
  position:absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.70);
  font-size: 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease, color .18s ease;
}
.oe-modal-close:hover{
  transform: translateY(-1px);
  background: rgba(251,113,133,.12);
  border-color: rgba(251,113,133,.28);
  color: rgba(255,255,255,.92);
}

/* Stepper */
.oe-stepper{
  display:flex;
  justify-content:center;
  gap: 22px;
  padding: 4px 0 18px;
}
.oe-step{
  display:flex;
  align-items:center;
  gap: 8px;
  color: rgba(255,255,255,.62);
  font-weight: 900;
  font-size: 12px;
  font-family: var(--font-head);
  letter-spacing: .3px;
}
.oe-step span{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.70);
}
.oe-step.is-active{ color: rgba(255,255,255,.92); }
.oe-step.is-active span{
  border-color: transparent;
  background: linear-gradient(90deg, var(--oe-cyan), var(--oe-violet));
  color: #08121b;
  box-shadow: 0 18px 40px rgba(34,211,238,.12);
}

.oe-stepview{ display:none; text-align:center; padding: 4px 0 12px; }
.oe-stepview.is-active{ display:block; }

.oe-modal-title{
  margin: 4px 0 8px;
  font-family: var(--font-head);
  font-weight: 900;
  color: rgba(255,255,255,.92);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.oe-modal-sub{
  margin: 0 0 18px;
  color: rgba(255,255,255,.68);
  font-size: 14px;
}

/* Inputs / fields */
.oe-mobile-row{
  display:flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 16px;
}

.oe-cc{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 900;
  color: rgba(255,255,255,.92);
  font-family: var(--font-body);
  font-size: 14px;
}
.oe-cc i{ opacity:.7; font-style:normal; }

.oe-input{
  width: 100%;
  max-width: 520px;
  margin: 0 auto 14px;
  display:block;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 0 16px;
  outline:none;
  color: rgba(255,255,255,.92);
  font-family: var(--font-body);
  font-size: 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.oe-input::placeholder{ color: rgba(255,255,255,.58); }
.oe-input:focus{
  transform: translateY(-1px);
  border-color: rgba(34,211,238,.55);
  background: rgba(34,211,238,.06);
  box-shadow: 0 0 0 4px rgba(124,58,237,.18), 0 0 0 1px rgba(34,211,238,.18) inset;
}

/* Label */
.oe-lbl{
  display:block;
  max-width: 520px;
  margin: 10px auto 6px;
  text-align:left;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 900;
  font-family: var(--font-head);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Primary button in modal */
.oe-primary-btn{
  display:block;
  width: 260px;
  max-width: 100%;
  height: 46px;
  margin: 12px auto 0;
  border-radius: 999px;
}

/* OTP */
.oe-otp{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin: 12px 0 12px;
}
.oe-otp-box{
  width: 46px;
  height: 46px;
  text-align:center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  outline:none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.oe-otp-box:focus{
  border-color: rgba(34,211,238,.55);
  box-shadow: var(--ring);
}

.oe-otp-meta{
  display:flex;
  justify-content:center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.68);
}
.oe-resend{
  color: var(--oe-cyan);
  font-weight: 900;
  cursor:pointer;
}
.oe-resend:hover{ text-decoration: underline; }

/* Join grid */
.oe-join-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.oe-join-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--oe-radius);
  box-shadow: var(--shadow-2);
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor:pointer;
}
.oe-join-card:hover{
  transform: translateY(-4px);
  border-color: rgba(34,211,238,.28);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}

.oe-join-ill{ font-size: 42px; margin-bottom: 10px; }

.oe-join-card h3{
  font-family: var(--font-head);
  font-weight: 900;
  color: rgba(255,255,255,.92);
  margin: 0 0 6px;
  font-size: 17px;
}
.oe-join-card h3 span{ color: var(--oe-cyan); }

.oe-join-card p{
  margin: 0 0 14px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 1.6;
}

.oe-secondary-btn{
  width: 170px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 13px;
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.oe-secondary-btn:hover{
  transform: translateY(-2px);
  background: rgba(124,58,237,.14);
  border-color: rgba(124,58,237,.32);
}

/* Modal nav */
.oe-modal-nav{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-top: 12px;
}
.oe-back-btn{
  border:0;
  background: transparent;
  color: rgba(255,255,255,.70);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 13px;
  cursor:pointer;
  transition: color .18s ease;
}
.oe-back-btn:hover{ color: rgba(255,255,255,.92); }
.oe-nav-spacer{ flex: 1; }

/* Login msg */
.oe-login-msg{
  max-width: 520px;
  margin: 8px auto 0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
}
.oe-login-msg.is-error{
  color: #fecaca;
  background: rgba(251,113,133,.12);
  border-color: rgba(251,113,133,.28);
}
.oe-login-msg.is-ok{
  color: #bbf7d0;
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.26);
}

/* ============================================================
   CTA CARD (If used in master template)
   ============================================================ */
.oe-cta-card{
  background: linear-gradient(90deg, rgba(34,211,238,.12), rgba(124,58,237,.12));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--oe-radius);
  padding: 26px 28px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
  position:relative;
  overflow:hidden;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.oe-cta-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(720px 240px at 20% 20%, rgba(34,211,238,.18), transparent 55%),
    radial-gradient(720px 240px at 80% 80%, rgba(124,58,237,.18), transparent 55%);
  pointer-events:none;
}

.oe-cta-left h3{
  font-family: var(--font-head);
  font-weight: 900;
  color: rgba(255,255,255,.92);
  margin: 0 0 6px;
  font-size: clamp(18px, 2vw, 24px);
}
.oe-cta-left p{
  color: rgba(255,255,255,.68);
  font-size: 14px;
  margin: 0;
}
.oe-cta-right img{
  width: 240px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px){
  .oe-footer-top{ grid-template-columns: 1fr; }
  .oe-footer-cols{ grid-template-columns: 1fr 1fr; }
  .oe-fcol-rightlinks{ padding-top: 0; }

  .oe-cta-card{
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .oe-cta-right{
    width:100%;
    display:flex;
    justify-content:flex-end;
  }
  .oe-cta-right img{ width: 180px; }
}

@media (max-width: 767px){
  .oe-modal-dialog{ margin: 40px 12px; }
  .oe-join-grid{ grid-template-columns: 1fr; }
  .oe-mobile-row{ flex-direction: column; }
  .oe-cc{ width: 100%; justify-content: space-between; }
}

@media (max-width: 575px){
  .oe-footer-cols{ grid-template-columns: 1fr; }
  .oe-footer-main .oe-container{ padding-left: 16px; padding-right: 16px; }

  .oe-nav{ height: 64px; }
  .oe-logo{ height: 36px; }
}