* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f7f7fb;
  color: #222;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(119, 86, 255, 0.35), transparent 70%);
  z-index: -1;
  transition: transform 0.2s linear;
}

.header {
  width: 100%;
  height: 90px;
  background: linear-gradient(90deg, #09071b, #131344);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  color: #8c63ff;
  font-size: 28px;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.nav a:hover {
  color: #8c63ff;
}

.header-buttons {
  display: flex;
  gap: 15px;
}

button {
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #6f47ff, #9b7cff);
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: bold;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(111, 71, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
}

.btn-outline {
  border: 2px solid #6f47ff;
  color: #6f47ff;
  background: transparent;
  padding: 14px 24px;
  border-radius: 14px;
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px;
  gap: 50px;
}

.hero-left {
  flex: 1;
}

.badge {
  display: inline-block;
  background: rgba(111, 71, 255, 0.1);
  color: #6f47ff;
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 25px;
  font-weight: bold;
}

.hero h1 {
  font-size: 68px;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero p {
  font-size: 20px;
  color: #666;
  max-width: 600px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.large {
  padding: 18px 34px;
  font-size: 16px;
}

.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 20px;
  min-width: 160px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stat-card h2 {
  color: #6f47ff;
  margin-bottom: 10px;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.login-card {
  width: 420px;
  background: white;
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.mail-icon {
  font-size: 60px;
  text-align: center;
  margin-bottom: 25px;
  color: #6f47ff;
}

.login-card input {
  width: 100%;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.full {
  width: 100%;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.social-btn {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: #f2f2f7;
  font-size: 20px;
}

.dashboard-preview {
  width: calc(100% - 80px);
  margin: 0 auto 80px;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 250px 1fr 1fr;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.sidebar {
  padding: 30px;
  border-right: 1px solid #eee;
}

.compose-btn {
  width: 100%;
  background: linear-gradient(135deg, #6f47ff, #9b7cff);
  color: white;
  padding: 18px;
  border-radius: 14px;
  font-size: 16px;
  margin-bottom: 30px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.sidebar li.active,
.sidebar li:hover {
  background: rgba(111, 71, 255, 0.1);
  color: #6f47ff;
}

.mail-list {
  border-right: 1px solid #eee;
}

.search-bar {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.search-bar input {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.email {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f2f2f2;
  cursor: pointer;
  transition: 0.3s;
}

.email:hover,
.active-email {
  background: rgba(111, 71, 255, 0.05);
}

.mail-view {
  padding: 30px;
}

.mail-user {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
}

.avatar {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #6f47ff, #9b7cff);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.line {
  height: 12px;
  background: #ececf3;
  border-radius: 999px;
  margin-bottom: 16px;
}

.short {
  width: 60%;
}

.actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.actions button {
  padding: 14px 24px;
  border-radius: 12px;
  background: #f3f3f7;
}

.features {
  padding: 100px 80px;
}

.features h2 {
  text-align: center;
  font-size: 48px;
  margin-bottom: 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-card h3 {
  margin-bottom: 15px;
  color: #6f47ff;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #6f47ff;
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 0.4s;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media(max-width: 1200px) {

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

}

@media(max-width: 768px) {

  .header {
    padding: 20px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .login-card {
    width: 100%;
  }

  .dashboard-preview {
    width: calc(100% - 20px);
  }

  .features {
    padding: 60px 20px;
  }

}
.center-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.simple-card {
  width: 100%;
  max-width: 450px;
  background: white;
  padding: 40px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.simple-card h1 {
  margin-bottom: 15px;
}

.simple-card p {
  margin-bottom: 25px;
  color: #666;
}

.simple-card input {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #ddd;
  margin-bottom: 18px;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: #6f47ff;
}

.full-dashboard {
  width: calc(100% - 80px);
  margin-top: 40px;
}

.compose-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.compose-card {
  width: 100%;
  max-width: 800px;
  background: white;
  padding: 40px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.compose-card h1 {
  margin-bottom: 30px;
}

.compose-card input,
.compose-card textarea {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
}

.compose-card textarea {
  min-height: 250px;
  resize: vertical;
}

.compose-actions {
  display: flex;
  gap: 20px;
}