* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 90px;
  font-family: Inter, Arial, sans-serif;
  background: #020617;
  color: #e5e7eb;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 200px;
  width: auto;
  display: block;
}

.menu-wrap {
  position: relative;
}

.menu-toggle {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 58px;
  right: 0;
  width: 240px;
  padding: 10px;
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0,0,0,.45);
}

.dropdown-menu.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-menu a,
.dropdown-button {
  color: #e5e7eb;
  background: transparent;
  border: none;
  text-align: left;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dropdown-menu a:hover,
.dropdown-button:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
}

#logout-button {
  display: none;
}

.hero {
  min-height: 560px;
  padding: 110px 8%;
  background: linear-gradient(135deg, #020617, #0f172a, #082f49);
}

.section-label {
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 900;
}

.hero h1,
.hero h2 {
  max-width: 900px;
  font-size: 54px;
  line-height: 1.05;
  margin: 20px 0 24px;
}

.accent,
.rotating-text {
  color: #38bdf8;
}

.hero p {
  max-width: 760px;
  font-size: 20px;
  color: #cbd5e1;
  line-height: 1.7;
}

.divider {
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, transparent);
  border-radius: 999px;
  margin: 22px 0;
}

.button {
  display: inline-block;
  margin-top: 24px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #020617;
  padding: 15px 24px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 60px 8%;
}

.cards div,
.content,
.request-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,.35);
}

.cards h3,
.content h3,
.request-card h3 {
  color: #38bdf8;
  font-size: 24px;
  margin-top: 0;
}

.cards p,
.content p,
.request-card p {
  color: #cbd5e1;
  line-height: 1.7;
}

.content {
  max-width: 900px;
  margin: 55px auto;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.12);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 25px;
  max-width: 650px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-family: inherit;
  font-size: 16px;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

#form-status,
#login-status,
#register-status {
  color: #38bdf8;
  font-weight: 800;
}

.request-card {
  margin-bottom: 18px;
}

.timestamp {
  color: #94a3b8;
  font-size: 14px;
}

.ticket-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.ticket-status.open {
  background: rgba(34,197,94,.18);
  color: #4ade80;
}

.ticket-status.closed {
  background: rgba(239,68,68,.18);
  color: #f87171;
}

footer {
  text-align: center;
  padding: 28px;
  background: #020617;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

body.light-theme {
  background: #f8fafc;
  color: #0f172a;
}

body.light-theme .site-header,
body.light-theme .dropdown-menu,
body.light-theme footer {
  background: #ffffff;
}

body.light-theme .hero {
  background: linear-gradient(135deg, #f8fafc, #e0f2fe);
}

body.light-theme .hero h1,
body.light-theme .hero h2,
body.light-theme .hero p,
body.light-theme .cards p,
body.light-theme .content p,
body.light-theme .request-card p,
body.light-theme .dropdown-menu a,
body.light-theme .dropdown-button {
  color: #0f172a;
}

body.light-theme .cards div,
body.light-theme .content,
body.light-theme .request-card {
  background: #ffffff;
  border-color: rgba(15,23,42,.1);
}

body.light-theme .cards h3,
body.light-theme .content h3,
body.light-theme .request-card h3,
body.light-theme .section-label,
body.light-theme .accent,
body.light-theme .rotating-text {
  color: #0284c7;
}

body.light-theme .menu-toggle {
  color: #0f172a;
}

@media (max-width: 768px) {
  body {
    padding-top: 76px;
  }

  .site-header {
    height: 76px;
    padding: 0 20px;
  }

  .logo img {
    height: 200px;
  }

  .menu-toggle {
    font-size: 14px;
    padding: 9px 14px;
  }

  .dropdown-menu {
    width: 240px;
    max-width: calc(100vw - 40px);
  }

  .hero {
    padding: 70px 24px;
    min-height: 500px;
  }

  .hero h1,
  .hero h2 {
    font-size: 36px;
  }

  .hero p {
    font-size: 17px;
  }

  .cards {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .content {
    margin: 40px 24px;
  }
}
