* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial;
  background: #f8fafc;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #0f172a;
  color: white;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 42px;
}

.logo span {
  font-size: 20px;
  font-weight: bold;
}

/* NAV */
.nav {
  display: flex;
  gap: 35px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
}

/* ================= HERO SLIDER ================= */
.hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.hero img.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero img.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

/* ================= SECTIONS ================= */
.section {
  padding: 45px 20px;
}

/* FLEX */
.flex {
  display: flex;
  gap: 20px;
  align-items: center;
}

.flex img {
  width: 100%;
  max-width: 350px;
}

/* CARDS */
.cards {
  display: flex;
  gap: 15px;
}

.card {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.grid img {
  width: 100%;
  border-radius: 8px;
}

/* ================= AUTH ================= */
.auth {
  display: flex;
  justify-content: center;
}

.auth-box {
  width: 100%;
  max-width: 380px;
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.form-container {
  display: flex;
  flex-direction: column;
}

input, button {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border-radius: 6px;
}

input {
  border: 1px solid #ccc;
}

button {
  background: #0f172a;
  color: white;
  border: none;
  cursor: pointer;
}

/* TABS */
.tabs {
  display: flex;
}

.tabs button {
  flex: 1;
  background: #e2e8f0;
  border: none;
}

.tabs .active {
  background: #0f172a;
  color: white;
}

/* LOADER */
.loader {
  margin-top: 10px;
  font-size: 13px;
}

.hidden {
  display: none;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 18px;
  background: #0f172a;
  color: white;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {

  .nav {
    position: absolute;
    top: 65px;
    right: 0;
    flex-direction: column;
    background: #0f172a;
    width: 220px;
    display: none;
    padding: 10px;
  }

  .nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .flex,
  .cards {
    flex-direction: column;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ================= MODAL ================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 350px;
  text-align: center;
}

.modal-content button {
  margin-top: 15px;
  background: #0f172a;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
}

.hidden {
  display: none;
}