/* =========================
   NUMALYZE APP THEME
   ========================= */

:root{
  --bg0:#050712;
  --bg1:#060a18;
  --bg2:#070d22;

  --glass:rgba(255,255,255,.06);
  --glass2:rgba(255,255,255,.04);
  --line:rgba(255,255,255,.12);

  --text:rgba(255,255,255,.94);
  --muted:rgba(255,255,255,.72);
  --muted2:rgba(255,255,255,.56);

  --a1:#6ee7ff;
  --a2:#a78bfa;
  --a3:#34d399;
  --a4:#fbbf24;

  --shadow:0 22px 70px rgba(0,0,0,.48);
  --shadow2:0 14px 45px rgba(0,0,0,.35);
  --focus:0 0 0 4px rgba(110,231,255,.15);

  --radius:28px;
  --radius2:18px;
}

*{
  box-sizing:border-box;
}

html,body{
  min-height:100%;
}

body{
  margin:0;
  padding:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  text-align:center;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 5%, rgba(110,231,255,.16), transparent 60%),
    radial-gradient(900px 640px at 85% 12%, rgba(167,139,250,.18), transparent 60%),
    radial-gradient(900px 520px at 52% 95%, rgba(52,211,153,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg2));
  overflow-x:hidden;
  position:relative;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.20;
  background-image:
    radial-gradient(2px 2px at 24px 36px, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(1px 1px at 160px 86px, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px at 260px 170px, rgba(255,255,255,.80), transparent 60%),
    radial-gradient(2px 2px at 420px 240px, rgba(255,255,255,.90), transparent 60%),
    radial-gradient(1px 1px at 560px 44px, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 700px 190px, rgba(255,255,255,.82), transparent 60%),
    radial-gradient(2px 2px at 860px 120px, rgba(255,255,255,.88), transparent 60%),
    radial-gradient(1px 1px at 980px 280px, rgba(255,255,255,.78), transparent 60%);
  background-size:1200px 520px;
  filter:blur(.2px);
  z-index:0;
}

/* Links */
a{
  text-decoration:none;
  color:var(--a1);
}

/* =========================
   HEADER / BRAND
   ========================= */

.app-topbar{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  margin-top:22px;
  padding:0 14px;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
}

.brand-logo{
  width:78px;
  height:78px;
  border-radius:22px;
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg, rgba(110,231,255,.98), rgba(167,139,250,.98));
  box-shadow:var(--shadow2);
}

.brand-logo::after{
  content:"";
  position:absolute;
  inset:-24px;
  background:radial-gradient(circle at 35% 35%, rgba(255,255,255,.28), transparent 55%);
  transform:rotate(18deg);
}

.brand-logo svg{
  width:40px;
  height:40px;
  position:relative;
}

.brand-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.brandTitle{
  font-size:40px;
  font-weight:900;
  color:#ffffff;
  line-height:1;
  letter-spacing:-0.5px;
}

.brandSub{
  font-size:18px;
  font-weight:700;
  color:var(--muted);
  margin-top:4px;
}

/* =========================
   FLAGS
   ========================= */

.flags{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:26px;
  flex-wrap:wrap;
}

.flags a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:54px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  box-shadow:var(--shadow2);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.flags img{
  width:32px;
  height:auto;
  border-radius:5px;
  display:block;
  opacity:.86;
}

.flags a:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
}

.flags a.active{
  border-color:rgba(110,231,255,.30);
  background:rgba(110,231,255,.10);
  box-shadow:0 0 0 4px rgba(110,231,255,.10), 0 14px 35px rgba(0,0,0,.24);
}

.flags a.active img{
  opacity:1;
  transform:scale(1.05);
}

/* =========================
   FLASH
   ========================= */

.flash-area{
  position:relative;
  z-index:2;
  width:min(92%, 520px);
  margin:20px auto 0;
}

.flash{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:14px 16px;
  border-radius:16px;
  box-shadow:var(--shadow2);
  font-weight:700;
  margin-bottom:10px;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* =========================
   LOGIN / REGISTER / FORMS
   ========================= */

.login-page{
  position:relative;
  z-index:1;
  min-height:calc(100vh - 160px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 16px 50px;
}

.login-shell{
  width:100%;
  max-width:560px;
}

.login-box{
  position:relative;
  overflow:hidden;
  width:92%;
  max-width:460px;
  margin:24px auto;
  padding:30px 22px 28px;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background:var(--glass);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:var(--shadow);
}

.login-box::before{
  content:"";
  position:absolute;
  inset:-160px auto auto -130px;
  width:260px;
  height:260px;
  background:radial-gradient(circle at 35% 35%, rgba(110,231,255,.14), transparent 60%);
  pointer-events:none;
}

.login-box::after{
  content:"";
  position:absolute;
  inset:auto -160px -160px auto;
  width:320px;
  height:320px;
  background:radial-gradient(circle at 35% 35%, rgba(167,139,250,.16), transparent 60%);
  pointer-events:none;
}

.login-box h2{
  position:relative;
  z-index:1;
  margin:0 0 22px;
  font-size:2rem;
  line-height:1.1;
  font-weight:900;
  color:#fff;
  letter-spacing:-0.5px;
}

.flash-messages{
  position:relative;
  z-index:1;
  margin-bottom:14px;
}

.flash-message{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:#fff;
  padding:13px 14px;
  border-radius:15px;
  font-weight:700;
  margin-bottom:10px;
}

.login-form{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Standard Inputs */
input{
  width:90%;
  max-width:100%;
  padding:16px 18px;
  margin-top:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:#fff;
  font-size:16px;
  font-weight:700;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .08s ease;
}

.login-form input{
  width:100%;
  margin-top:0;
}

input::placeholder{
  color:rgba(255,255,255,.42);
  font-weight:600;
}

input:focus{
  border-color:rgba(110,231,255,.36);
  background:rgba(255,255,255,.06);
  box-shadow:var(--focus);
}

/* Standard Button */
.btn{
  background:linear-gradient(135deg, rgba(110,231,255,.98), rgba(167,139,250,.98));
  color:rgba(8,10,16,.95);
  padding:15px 18px;
  width:90%;
  margin-top:15px;
  border:none;
  border-radius:18px;
  cursor:pointer;
  font-size:17px;
  font-weight:900;
  box-shadow:0 18px 45px rgba(0,0,0,.28);
  transition:transform .08s ease, filter .12s ease, box-shadow .12s ease;
}

.login-form .btn,
.login-btn{
  width:100%;
  margin-top:2px;
}

.btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
  box-shadow:0 20px 50px rgba(0,0,0,.32);
}

.btn:active{
  transform:scale(.99);
}

.links{
  position:relative;
  z-index:1;
  margin-top:18px;
  line-height:1.8;
  font-size:1rem;
}

.links span{
  color:var(--muted);
  font-weight:700;
}

.links a{
  color:var(--a1);
  font-weight:800;
}

.links a:hover{
  text-decoration:underline;
}

.home-button{
  position:relative;
  z-index:1;
  margin-top:34px;
  text-align:center;
}

.home-button img{
  width:150px;
  max-width:100%;
  display:block;
  margin:0 auto;
  border-radius:26px;
  cursor:pointer;
  transition:transform .18s ease, filter .18s ease;
  box-shadow:0 12px 35px rgba(0,0,0,.26);
}

.home-button img:hover{
  transform:scale(1.05);
  filter:brightness(1.03);
}

/* =========================
   DASHBOARD / BOXES
   ========================= */

.dashboard-box{
  position:relative;
  z-index:1;
  width:92%;
  max-width:520px;
  margin:20px auto 30px;
  padding:0 0 20px;
}

.user-card,
.abo-card,
.menu-item{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:var(--shadow2);
}

.user-card{
  border-radius:20px;
  padding:16px;
  margin:16px auto 18px;
  width:100%;
}

.user-email{
  font-weight:800;
  font-size:16px;
  color:#fff;
}

.user-meta{
  font-size:14px;
  color:var(--muted);
  margin-top:4px;
}

.section-title{
  margin:18px 0 10px;
  font-size:18px;
  text-align:center;
  color:#fff;
}

.abo-card{
  border-radius:18px;
  padding:16px;
  font-size:15px;
  margin:0 auto 18px;
  width:100%;
  color:#fff;
}

/* =========================
   EUROMILLIONS MENU GRID
   ========================= */

.menu-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  width:100%;
  margin:0 auto;
}

.menu-item{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:10px;
  align-items:center;
  border-radius:18px;
  padding:14px;
  color:#fff;
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.menu-icon{
  font-size:22px;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

.menu-title{
  font-weight:800;
  font-size:16px;
  color:#fff;
}

.menu-sub{
  grid-column:2 / 3;
  font-size:13px;
  color:var(--muted);
  margin-top:2px;
}

.menu-item:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 16px 36px rgba(0,0,0,.22);
}

.flags-large img{
  width:40px;
  height:26px;
}

.flag-link.active img{
  transform:scale(1.08);
  box-shadow:0 10px 26px rgba(110,231,255,.18);
  outline:2px solid rgba(110,231,255,.28);
}

/* =========================
   GAME SELECTION
   ========================= */

.game-selection{
  margin:8px auto 10px;
  width:100%;
}

.game-selection form{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:nowrap;
  background:transparent !important;
  border:none !important;
  padding:0 !important;
  box-shadow:none !important;
}

.game-btn{
  background:transparent !important;
  border:none !important;
  padding:0 !important;
  margin:0;
  box-shadow:none !important;
  cursor:pointer;
}

.game-btn img{
  width:160px;
  height:92px;
  display:block;
  object-fit:cover;
  border-radius:18px;
  background:transparent !important;
  box-shadow:0 10px 26px rgba(0,0,0,0.18);
  transition:transform .15s ease, box-shadow .15s ease;
}

@media (hover:hover){
  .game-btn:hover img{
    transform:translateY(-2px) scale(1.02);
    box-shadow:0 14px 30px rgba(0,0,0,0.22);
  }
}

.game-btn:active img{
  transform:scale(.98);
}

.hint{
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
}

/* =========================
   LOGOUT
   ========================= */

.logout-btn{
  background:linear-gradient(135deg, rgba(110,231,255,.98), rgba(167,139,250,.98));
  color:rgba(8,10,16,.95);
  text-align:center;
  display:block;
  width:100%;
  max-width:420px;
  margin:18px auto 0;
  border-radius:18px;
  font-weight:900;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width:600px){

  .app-topbar{
    margin-top:18px;
  }

  .brand-logo{
    width:64px;
    height:64px;
    border-radius:18px;
  }

  .brand-logo svg{
    width:34px;
    height:34px;
  }

  .brandTitle{
    font-size:32px;
  }

  .brandSub{
    font-size:15px;
  }

  .flags{
    gap:10px;
    margin-top:20px;
  }

  .flags a{
    width:48px;
    height:48px;
    border-radius:14px;
  }

  .flags img{
    width:28px;
  }

  .login-box{
    margin-top:18px;
    padding:24px 16px 22px;
    border-radius:24px;
  }

  .login-box h2{
    font-size:1.8rem;
  }

  input{
    font-size:15px;
    padding:14px 16px;
    border-radius:16px;
  }

  .btn{
    font-size:16px;
    padding:14px 16px;
    border-radius:16px;
  }

  .game-btn img{
    width:150px;
    height:88px;
  }

  .home-button img{
    width:132px;
  }
}

/* =========================
   TABLET / DESKTOP
   ========================= */

@media (min-width:768px){
  .game-btn img{
    width:180px;
    height:100px;
  }
}