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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray: #888888;
  --card-bg: #111111;
  --border: #222222;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

#app {
  position: relative;
  min-height: 100vh;
}

.page {
  opacity: 0;
  animation: pageEnter 0.5s ease-out forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-exit {
  animation: pageExit 0.3s ease-in forwards;
}

@keyframes pageExit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--white);
  transition: opacity 0.2s ease;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 0.5s ease-out 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.navbar-username {
  font-size: 0.9rem;
  color: var(--gray);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  animation: wordFadeIn 0.5s ease-out forwards;
}

.hero-title .word:nth-child(1) { animation-delay: 0.1s; }
.hero-title .word:nth-child(2) { animation-delay: 0.3s; }
.hero-title .word:nth-child(3) { animation-delay: 0.5s; }
.hero-title .word:nth-child(4) { animation-delay: 0.7s; }

@keyframes wordFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-description {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.9s forwards;
}

.btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1.1s forwards;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-secondary:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  animation: cardEnter 0.5s ease-out forwards;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-grid .card:nth-child(1) { animation-delay: 0.1s; }
.card-grid .card:nth-child(2) { animation-delay: 0.2s; }
.card-grid .card:nth-child(3) { animation-delay: 0.3s; }
.card-grid .card:nth-child(4) { animation-delay: 0.4s; }
.card-grid .card:nth-child(5) { animation-delay: 0.5s; }

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-meta {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }
.form-group:nth-child(7) { animation-delay: 0.4s; }
.form-group:nth-child(8) { animation-delay: 0.45s; }
.form-group:nth-child(9) { animation-delay: 0.5s; }
.form-group:nth-child(10) { animation-delay: 0.55s; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
}

input,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

input:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-message {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  animation: successEnter 0.5s ease-out;
}

@keyframes successEnter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkmark 0.6s ease-out 0.2s forwards;
}

@keyframes checkmark {
  to {
    stroke-dashoffset: 0;
  }
}

.error-message {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  color: #ff6b6b;
  animation: shake 0.4s ease-out;
  margin-top: 1rem;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.inline-result {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  animation: slideDown 0.3s ease-out;
}

.inline-result.success {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.inline-result.error {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ff6b6b;
}

.table-container {
  overflow-x: auto;
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  animation: fadeIn 0.5s ease-out;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

th {
  padding: 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

tbody tr:nth-child(1) { animation-delay: 0.05s; }
tbody tr:nth-child(2) { animation-delay: 0.1s; }
tbody tr:nth-child(3) { animation-delay: 0.15s; }
tbody tr:nth-child(4) { animation-delay: 0.2s; }
tbody tr:nth-child(5) { animation-delay: 0.25s; }

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

td {
  padding: 1rem;
  font-size: 0.875rem;
}

.page-header {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-description {
  color: var(--gray);
  font-size: 1.1rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.3s forwards;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  opacity: 0.3;
}

.guide {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.2s forwards;
}

.guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.guide-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.guide-toggle {
  transition: transform 0.3s ease;
}

.guide-toggle.open {
  transform: rotate(180deg);
}

.guide-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.guide-content.open {
  max-height: 1000px;
  margin-top: 1.5rem;
}

.guide-step {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.guide-step:last-child {
  border-bottom: none;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.info-value {
  font-size: 1rem;
  font-weight: 600;
  word-break: break-all;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.verify-header {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.verify-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.verify-server {
  color: var(--gray);
  font-size: 1.1rem;
}

.verify-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.3s forwards;
}

.turnstile-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .navbar {
    padding: 1rem;
  }

  .container {
    padding: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .table-container {
    font-size: 0.75rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
  }

  .button-group {
    flex-direction: column;
  }

  .button-group .btn {
    width: 100%;
    justify-content: center;
  }
}
