:root{
  --bg:#f4f6fb;
  --text:#222;
  --card:#fff;
  --accent:#4f5bff;
  --border:#dcdfff;
  --footer-bg:#222;
  --footer-text:#aaa;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#0f1115;
    --text:#eaeaea;
    --card:#232730;
    --border:#3a3f8f;
    --footer-bg:#000;
    --footer-text:rgba(255,255,255,0.7);
  }
}

*{
  box-sizing:border-box;
  font-family:Arial, sans-serif;
  margin:0;
  padding:0;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--bg);
  color:var(--text);
}

/* ===== NAVBAR ===== */
.navbar{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(0,0,0,0.25);
  backdrop-filter:blur(8px);
}

.nav-container{
  max-width:1100px;
  margin:auto;
  padding:14px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo{
  color:#fff;
  font-size:18px;
  font-weight:bold;
  text-decoration:none;
}

.menu-btn{
  width:28px;
  height:22px;
  position:relative;
  cursor:pointer;
}

.menu-btn span{
  position:absolute;
  height:3px;
  width:100%;
  background:#fff;
  transition:.3s;
}

.menu-btn span:nth-child(1){top:0}
.menu-btn span:nth-child(2){top:9px}
.menu-btn span:nth-child(3){top:18px}

.menu-btn.active span:nth-child(1){
  transform:rotate(45deg);
  top:9px;
}
.menu-btn.active span:nth-child(2){opacity:0}
.menu-btn.active span:nth-child(3){
  transform:rotate(-45deg);
  top:9px;
}

.nav-menu{
  display:none;
  flex-direction:column;
  background:rgba(0,0,0,0.9);
}

.nav-menu a{
  color:#fff;
  padding:14px 20px;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,0.1);
}

@media(min-width:768px){
  .menu-btn{display:none}
  .nav-menu{
    display:flex !important;
    flex-direction:row;
    justify-content:center;
    background:none;
    padding-bottom:10px;
  }
  .nav-menu a{
    border:none;
    padding:0 14px;
  }
}

/* ===== PAGE ===== */
.page{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.container{
  max-width:650px;
  width:100%;
  background:var(--card);
  padding:25px;
  border-radius:14px;
}

h1{text-align:center;margin-bottom:10px}
.sub{text-align:center;font-size:14px;opacity:.8;margin-bottom:25px}

input,textarea{
  width:100%;
  padding:10px;
  border-radius:6px;
  border:1px solid var(--border);
  margin-bottom:15px;
  background:transparent;
  color:var(--text);
}

textarea{min-height:120px}

button{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:10px 16px;
  border-radius:6px;
  cursor:pointer;
  font-weight:bold;
}

.note{
  font-size:13px;
  opacity:.8;
  margin-top:15px;
}

/* ===== FOOTER ===== */
footer{
  background:var(--footer-bg);
  color:var(--footer-text);
  text-align:center;
  padding:16px 10px;
  font-size:14px;
}

.footer-links{margin-bottom:6px}

footer a{
  color:var(--footer-text);
  text-decoration:none;
  margin:0 6px;
}

footer a:hover{text-decoration:underline}

.footer-text{
  font-size:13px;
  opacity:.9;
}