* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #0d0d0d;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.12) 10%, transparent 11%),
    radial-gradient(rgba(255, 255, 255, 0.06) 10%, transparent 11%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  background-attachment: fixed;
  background-repeat: repeat;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

header {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 3px 12px rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
}

header .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

header .left img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header .left i {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

header .left h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

header .right {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 10001;
  isolation: isolate;
}

header button {
  background: #fff;
  border: none;
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

header button:hover {
  background: #f0f0f0;
}

header button i {
  font-size: 1rem;
}

.menu-toggle {
  background: #fff;
  border: none;
  color: #000;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 45px;
}

.menu-toggle:hover {
  background: #f0f0f0;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 3px 12px rgba(0, 0, 0, 0.8);
  display: none;
  flex-direction: column;
  z-index: 99999;
  overflow: hidden;
  pointer-events: auto;
}

.menu-dropdown.active {
  display: flex;
}

.menu-dropdown a {
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.menu-dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-dropdown a i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.menu-dropdown #menu-auth-buttons {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 5px;
  padding-top: 5px;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px 20px 40px 20px;
  position: relative;
  z-index: 1;
}

.message-box {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 12px;
  padding: 20px 24px 12px 24px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 5px 20px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin-bottom: 24px;
}

.cards-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  justify-content: center;
}

.cards-wrapper .message-box {
  flex: 1 1 320px;
  max-width: 520px;
}

.message-box.status-card {
  background: rgba(0, 0, 0, 0.65);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.status-card .profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.status-card .profile-preview img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.profile-preview-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-preview-text p {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
}

.profile-preview-text p:last-child {
  color: #bdbdbd;
  font-size: 0.8rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.status-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9e9e9e;
  font-weight: 700;
}

.status-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.status-indicator {
  font-size: 0.9rem;
  font-weight: 700;
  color: #bbb;
  transition: color 0.2s ease;
}

.status-indicator.idle {
  color: #b3b3b3;
}

.status-indicator.info {
  color: #2196F3;
}

.status-indicator.success {
  color: #4CAF50;
}

.status-indicator.error {
  color: #f44336;
}

.outline-button {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: none;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.outline-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.outline-button:not(:disabled):hover {
  background: #f5f5f5;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.cards-wrapper .status-card {
  margin-left: 8px;
  margin-right: 8px;
}

.message-box h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.message-box h1 i {
  color: #fff;
}

.message-box p {
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

label {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #ccc;
}

.input-field {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: rgba(30, 30, 30, 0.7);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.input-field:focus {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.5);
  background: rgba(35, 35, 35, 0.8);
}

.input-field::placeholder {
  color: #666;
}

.use-button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 0;
  background: #fff;
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.use-button:hover:not(:disabled) {
  background: #f0f0f0;
}

.use-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#response-msg {
  margin-top: 10px;
  margin-bottom: 0;
  padding: 8px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
  min-height: 20px;
}

.footer-text {
  margin-top: 30px;
  text-align: center;
  color: #666;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  header {
    padding: 10px 15px;
    z-index: 10000;
  }

  header .left {
    justify-content: center;
  }

  header .left h2 {
    font-size: 1rem;
  }

  header .left img {
    width: 40px;
    height: 40px;
  }

  header .right {
    gap: 8px;
    z-index: 10001;
  }

  header button {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  header button .btn-text {
    display: none;
  }

  header button i {
    font-size: 1.1rem;
  }

  .menu-dropdown {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 10px);
    right: 0;
    pointer-events: auto;
  }
  
  header .right {
    z-index: 10001;
  }

  main {
    padding: 60px 15px 15px 15px;
    position: relative;
    z-index: 1;
    margin-top: 0;
  }

  .message-box {
    padding: 18px 16px 12px 16px;
    z-index: 1;
    position: relative;
  }

  .cards-wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .cards-wrapper .message-box {
    flex-basis: 100%;
    margin-bottom: 24px;
  }

  .cards-wrapper .status-card {
    margin-left: 0;
    margin-right: 0;
  }

  .status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .status-value {
    font-size: 0.9rem;
  }

  .outline-button {
    padding: 10px 12px;
  }

  .message-box h1 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
  
  .message-box p {
    margin-bottom: 12px;
    font-size: 0.8rem;
  }
  
  .input-field {
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 0.85rem;
  }
  
  .use-button {
    padding: 10px;
    font-size: 0.85rem;
  }
}

