:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
}

.main-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

.card {
  background: #020617;
  border-radius: 16px;
  padding: 24px 20px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid #1f2937;
}

.card h1 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  color: #f9fafb;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.logo {
  width: 120px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.card p.subtitle {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: center;
}

.row {
  display: flex;
  gap: 10px;
}

.field {
  margin-bottom: 12px;
  width: 100%;
}

.field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #9ca3af;
}

.field input,
.field select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  padding-right: 35px !important;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9ca3af;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.input-wrapper input:focus+.select-arrow {
  color: #22c55e;
}

.suggestions-dropdown {
  position: absolute !important;
  top: calc(100% + 5px) !important;
  left: 0 !important;
  right: 0 !important;
  background: #020617 !important;
  border: 1px solid #374151 !important;
  border-radius: 12px !important;
  max-height: 250px !important;
  overflow-y: auto !important;
  z-index: 20000 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
  display: flex !important;
  flex-direction: column !important;
}

.suggestion-item {
  display: block !important;
  width: 100% !important;
  padding: 10px 15px !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  color: #e5e7eb !important;
  background: transparent !important;
  transition: background 0.15s ease !important;
  border-bottom: 1px solid rgba(55, 65, 81, 0.4) !important;
  box-sizing: border-box !important;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #22c55e !important;
}


.suggestions-dropdown::-webkit-scrollbar {
  width: 6px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 10px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

.btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #04101e;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  margin: 4px 0 10px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(22, 163, 74, 0.3);
  opacity: 0.96;
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
  opacity: 0.9;
}

.results {
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #1f2937;
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.results h2 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: #f9fafb;
}

.results p {
  margin: 2px 0;
  color: #d1d5db;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  background: rgba(15, 118, 110, 0.15);
  border-radius: 999px;
  padding: 3px 8px;
  color: #67e8f9;
  margin-bottom: 10px;
}

.tag span.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.tag span.dot.error {
  background: #ef4444;
}

.tag span.dot.checking {
  background: #eab308;
}

.hint {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 4px;
}

.price-display {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #22c55e;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
}

#online-floating {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #4caf50;
  padding: 10px 15px;
  border-radius: 30px;
  border: 1px solid #333;
  z-index: 10000;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}



input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.video-section {
  max-width: 220px;
  width: 100%;
  margin-top: 16px;
  text-align: center;
}

.video-section h3 {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* Aspect Ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #1f2937;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(34, 197, 94, 0.1);
  background: #020617;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


@media (max-width: 480px) {
  body {
    padding-bottom: 80px;
    flex-direction: column;
    justify-content: center;
  }

  .row {
    flex-direction: column;
    gap: 8px;
  }

  .card {
    padding: 20px 16px;
    margin-bottom: 20px;
  }

  #online-floating {
    position: static !important;
    width: auto;
    display: table;
    margin: 0 auto 20px auto;
    transform: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
  }

  h1 {
    font-size: 1.25rem;
  }
}