:root{
  --accent:#03dac5;
  --fg:#e0e0e0;
  --fg-muted:#9c9c9c;
  --glass-tint:rgba(0,0,0,.6);
  --card-bg:#151515;
}

html,body{
  margin:0;padding:0;
  background:transparent;
  background-color: #00000034;
  color:var(--fg);
  font:16px/1.5 "Segoe UI",sans-serif;
  width:100vw;
  overflow-x:hidden;
}

@keyframes bg-wave{
  0%{transform:translate(-60px,30px)scale(1)}
  50%{transform:translate(50px,-50px)scale(1.2)}
  100%{transform:translate(-20px,60px)scale(1)}
}
body::before{
  content:"";position:fixed;inset:0;z-index:-3;pointer-events:none;
  background:
    radial-gradient(circle at 25% 30%,#516868 0%,transparent 70%),
    radial-gradient(circle at 70% 110%,#20548f 0%,transparent 70%),
    radial-gradient(circle at 50% -15%,#22436d 0%,transparent 70%);
  background-blend-mode:screen;
  filter:blur(140px);
  opacity:.45;
  animation:bg-wave 24s ease-in-out infinite alternate;
}
body::after{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:var(--glass-tint);
  backdrop-filter:blur(22px);
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  background: #101010f9;
  box-shadow: 0 2px 14px #0003;
  border-bottom: 1.5px solid #23242e;
  transition: background .25s, box-shadow .25s, backdrop-filter .27s;
}

.topbar.scrolled {
  background: rgba(20, 22, 28, 0.82);
  box-shadow: 0 6px 30px #000c, 0 2px 9px #0ef6;
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1.5px solid #38f2af;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .2rem 2.1rem .2rem 1.4rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding-right: 1.2rem;
}
.logo {
  height: 46px;
  width: auto;
  min-width: 38px;
  object-fit: contain;
  border-radius: 9px;
  box-shadow: none;
  background: none;
  border: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fug-nav-link {
  position: relative;
  font-weight: 700;
  color: var(--fg);
  padding: .63em 1.5em;
  border-radius: 9px;
  font-size: 1.11rem;
  background: none;
  transition: color .13s, background .14s;
  margin: 0 3px;
  letter-spacing: 0.01em;
  text-decoration: none;
  overflow: hidden;
}
.fug-nav-link.active,
.fug-nav-link:hover {
  color: var(--accent);
  background: rgba(44,63,61,0.24);
}
.fug-nav-link::after {
  content: "";
  position: absolute;
  left: 23%;
  right: 23%;
  bottom: 8px;
  height: 3.1px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 40%, #03dac5ad 90%);
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity .18s, transform .21s cubic-bezier(.2,.9,.5,1.4);
}
.fug-nav-link.active::after,
.fug-nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1.09);
}

@media (max-width: 850px) {
  .navbar { padding: .2rem 1rem .2rem 1rem; }
  .logo { height: 34px; }
  .main-nav .fug-nav-link { font-size: 0.98rem; padding: .54em 1em .54em 1em; }
}
@media (max-width: 600px) {
  .navbar { flex-direction: column; gap:0.8rem; padding: .21rem 0 .19rem 0; }
  .main-nav { width: 100%; justify-content: center;}
}

.centered-main {
  min-height:calc(100vh - 56px);
  display:flex;
  justify-content:center;
  align-items:center;
  padding:2rem;
}

#flash-container{position:fixed;top:80px;right:18px;z-index:40}
.flash{
  background:#333;padding:.8rem 1rem;border-radius:8px;
  margin-bottom:8px;box-shadow:0 2px 8px rgba(0,0,0,.6);
  opacity:0;animation:fade-in .3s forwards;
}
.flash.error{background:#b00020}
.flash.success{background:#007e55}

@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes dash{to{stroke-dashoffset:0}}

.success-screen{
  position:fixed;inset:0;z-index:30;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  gap:1rem;background:rgba(0,0,0,.85);
  animation:fade-in .2s ease forwards;
  padding: 2rem; box-sizing: content-box;
}
.checkmark{
  width:120px;height:120px;
  stroke:var(--accent);stroke-width:4;fill:none;
  stroke-dasharray:100;stroke-dashoffset:100;
  animation:dash 1s .2s forwards ease-out;
}

.form-card{
  max-width:640px;width:100%;
  background:var(--card-bg);
  border-radius:14px;
  padding:2rem 2.25rem;
  box-shadow:0 8px 35px rgba(0,0,0,.55);
  animation:fade-in .5s cubic-bezier(.25,1,.3,1);
}

#apply-form{display:flex;flex-direction:column;gap:1rem}
.field{display:flex;flex-direction:column;font-size:.9rem}
.field input,.field select,.field textarea{
  margin-top:4px;padding:.55rem;border:none;border-radius:6px;background:#242424;color:inherit
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:2px solid var(--accent)
}
.hint{font-size:.75rem;color:var(--fg-muted)}
.btn-primary{
  align-self:flex-start;padding:.7rem 1.5rem;border:none;border-radius:8px;
  background:var(--accent);color:#000;font-weight:600;cursor:pointer;
  transition:transform .15s;
}
.btn-primary:hover{transform:scale(1.05)}

.footer{
  background:#101010;
  padding:1.2rem 0;text-align:center;
  font-size:.85rem;color:var(--fg-muted);
}
.footer a{margin:0 .6rem;color:var(--accent)}
.footer .note{font-size:.75rem;color:#777;margin-top:.2rem}

a{color:var(--accent);text-decoration:none}
.hidden{display:none}

.table-wrap{overflow-x:auto;margin-top:1rem}
.f-table{width:100%;border-collapse:collapse;font-size:.9rem}
.f-table th,.f-table td{padding:.6rem .8rem;text-align:left}
.f-table thead{background:#1e1e1e;border-bottom:2px solid var(--accent)}
.f-table th{font-weight:600;color:var(--accent)}
.f-table tbody tr:nth-child(odd){background:#1a1a1a}
.f-table tbody tr:nth-child(even){background:#171717}
.f-table tbody tr:hover{background:#222}
.f-table a{color:var(--accent)}
.dash-header{display:flex;justify-content:space-between;align-items:center}
.btn-logout{padding:.45rem 1rem;border-radius:6px;border:1px solid var(--accent);
color:var(--accent);text-decoration:none;font-size:.85rem}
.btn-logout:hover{background:var(--accent);color:#000}
.detail-list{list-style:none;padding:0;margin:0 0 1.5rem 0;font-size:.9rem}
.detail-list li{margin:.4rem 0}
.detail-list span{display:inline-block;width:200px;color:var(--accent);font-weight:600}
.btn-back{display:inline-block;padding:.5rem 1.2rem;border-radius:6px;
background:var(--accent);color:#000;text-decoration:none;font-weight:600}
.btn-back:hover{transform:scale(1.04)}
.rules ul{padding:0}
.rules li{margin:.3rem 0}
.list-disc{list-style:disc}
.ml-5{margin-left:1.25rem}
