* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #070716;
  color: white;
  overflow-x: hidden;
}

.blur {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.6;
  z-index: -1;
  animation: float 7s infinite alternate ease-in-out;
}

.blur1 {
  background: #00d9ff;
  top: -90px;
  left: -90px;
}

.blur2 {
  background: #8d2bff;
  top: 180px;
  right: -100px;
  animation-delay: 1s;
}

.blur3 {
  background: #ff2bd6;
  bottom: -100px;
  left: 38%;
  animation-delay: 2s;
}

@keyframes float {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(35px) scale(1.12);
  }
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 25px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 35px;
}

.logo-box {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, #00d9ff, #8d2bff, #ff2bd6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 0 35px rgba(0, 217, 255, 0.45);
}

.logo h2 {
  font-size: 20px;
}

.logo p {
  color: #c9c9e8;
  font-size: 13px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu a {
  text-decoration: none;
  color: #f0f0ff;
  padding: 14px 16px;
  border-radius: 16px;
  transition: 0.3s;
  border: 1px solid transparent;
}

.menu a:hover,
.menu a.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 217, 255, 0.45);
  transform: translateX(6px);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.18);
}

.sidebar-card {
  margin-top: 35px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(155, 0, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.sidebar-card h3 {
  margin-bottom: 10px;
}

.sidebar-card p {
  color: #c9c9e8;
  line-height: 1.5;
  font-size: 14px;
}

.main {
  margin-left: 280px;
  width: calc(100% - 280px);
  padding: 30px;
}

.section {
  min-height: 100vh;
  padding: 55px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
}

.top-badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 50px;
  color: #a9f8ff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(0, 217, 255, 0.35);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 75px;
  line-height: 1;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(90deg, #00d9ff, #8d2bff, #ff2bd6);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 660px;
  color: #c9c9e8;
  font-size: 18px;
  line-height: 1.7;
}

.hero-buttons {
  margin-top: 28px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: bold;
  font-size: 15px;
  transition: 0.3s;
}

.primary-btn {
  background: linear-gradient(135deg, #00d9ff, #8d2bff);
  box-shadow: 0 0 28px rgba(0, 217, 255, 0.35);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.logout-btn {
  background: linear-gradient(135deg, #ff2b6a, #ff7b2b);
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 40px rgba(155, 0, 255, 0.45);
}

.full {
  width: 100%;
  margin-top: 10px;
}

.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.hero-card {
  padding: 30px;
  border-radius: 32px;
  animation: cardMove 4s infinite alternate ease-in-out;
}

@keyframes cardMove {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-18px);
  }
}

.live-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  color: #c9c9e8;
}

.live-row b {
  color: #43ffb2;
  font-size: 13px;
}

.hero-card h3 {
  font-size: 32px;
  margin-bottom: 15px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 25px;
}

.stats div {
  text-align: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.stats h4 {
  font-size: 32px;
  color: #00d9ff;
}

.stats p {
  font-size: 13px;
}

.title {
  margin-bottom: 30px;
}

.title span {
  color: #9ff5ff;
}

.title h2 {
  font-size: 42px;
  margin: 8px 0;
}

.title p {
  color: #c9c9e8;
}

.title-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.random-area {
  padding: 35px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: 1fr 310px;
  align-items: center;
  gap: 30px;
}

.result-card {
  min-height: 240px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.13), rgba(155, 0, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.result-card p {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 50px;
  background: rgba(0, 217, 255, 0.14);
  border: 1px solid rgba(0, 217, 255, 0.32);
  color: #a9f8ff;
  margin-bottom: 20px;
}

.result-card h3 {
  font-size: 38px;
  margin-bottom: 15px;
}

.result-card small {
  color: #c9c9e8;
}

.random-btn {
  height: 175px;
  border: none;
  cursor: pointer;
  border-radius: 35px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(135deg, #00d9ff, #8d2bff, #ff2bd6);
  box-shadow: 0 0 45px rgba(0, 217, 255, 0.45);
  animation: pulse 1.8s infinite;
  transition: 0.3s;
}

.random-btn:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 0 75px rgba(255, 43, 214, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.35);
  }

  50% {
    box-shadow: 0 0 58px rgba(255, 43, 214, 0.55);
  }

  100% {
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.35);
  }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  position: relative;
  overflow: hidden;
  padding: 23px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
  transition: 0.3s;
}

.category-card::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -45px;
  top: -45px;
  background: linear-gradient(135deg, #00d9ff, #ff2bd6);
  filter: blur(60px);
  opacity: 0.35;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 217, 255, 0.55);
  box-shadow: 0 0 35px rgba(0, 217, 255, 0.18);
}

.category-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  position: relative;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.tag {
  padding: 8px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.09);
  color: #eeeeff;
  font-size: 13px;
}

.clear-btn {
  border: none;
  cursor: pointer;
  padding: 13px 17px;
  border-radius: 15px;
  color: white;
  font-weight: bold;
  background: linear-gradient(135deg, #ff2b6a, #ff7b2b);
  transition: 0.3s;
}

.clear-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(255, 43, 106, 0.35);
}

.history-box {
  min-height: 180px;
  border-radius: 28px;
  padding: 20px;
}

.history-item {
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.history-item b {
  color: #9ff5ff;
}

.history-item span {
  color: #c9c9e8;
  font-size: 13px;
}

.empty {
  color: #c9c9e8;
  text-align: center;
  padding: 25px;
}

.admin-login {
  max-width: 430px;
  padding: 28px;
  border-radius: 28px;
}

.admin-login h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.admin-login p {
  color: #c9c9e8;
  margin-bottom: 18px;
}

.admin-login input,
.admin-form input,
.admin-form select {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  margin-bottom: 12px;
  font-size: 16px;
}

.admin-form select option {
  background: #15152d;
}

.admin-login small {
  display: block;
  color: #ff5c8a;
  margin-top: 12px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}

.admin-stat-card {
  padding: 24px;
  border-radius: 25px;
  text-align: center;
  transition: 0.3s;
}

.admin-stat-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 0 35px rgba(0, 217, 255, 0.25);
}

.admin-stat-card span {
  font-size: 35px;
}

.admin-stat-card h3 {
  font-size: 42px;
  margin: 10px 0;
  background: linear-gradient(90deg, #00d9ff, #8d2bff, #ff2bd6);
  -webkit-background-clip: text;
  color: transparent;
}

.admin-stat-card p {
  color: #c9c9e8;
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 25px;
}

.admin-form,
.admin-list {
  padding: 25px;
  border-radius: 28px;
}

.admin-form h3,
.admin-list h3 {
  margin-bottom: 20px;
}

.admin-form label {
  display: block;
  margin: 14px 0 8px;
  color: #dfdfff;
}

.admin-row {
  padding: 15px;
  border-radius: 18px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.admin-row p {
  font-weight: bold;
}

.admin-row small {
  color: #9ff5ff;
}

.actions {
  display: flex;
  gap: 8px;
}

.edit-btn,
.delete-btn {
  border: none;
  cursor: pointer;
  color: white;
  padding: 9px 12px;
  border-radius: 12px;
  transition: 0.3s;
}

.edit-btn {
  background: #297bff;
}

.delete-btn {
  background: #ff2b6a;
}

.edit-btn:hover,
.delete-btn:hover {
  transform: scale(1.08);
}

.hide {
  display: none;
}

.shake {
  animation: shake 0.45s;
}

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(1.5deg);
  }

  50% {
    transform: rotate(-1.5deg);
  }

  75% {
    transform: rotate(1deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@media (max-width: 1000px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
  }

  .menu {
    flex-direction: row;
    overflow-x: auto;
  }

  .menu a {
    white-space: nowrap;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .random-area {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .main {
    padding: 18px;
  }

  .section {
    padding: 35px 0;
  }

  .hero h1 {
    font-size: 45px;
  }

  .title h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .random-area {
    padding: 20px;
  }

  .result-card h3 {
    font-size: 28px;
  }

  .random-btn {
    height: 130px;
    font-size: 23px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .title-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}