@font-face {
  font-family: 'Fixedsys';
  src: url('./fonts/FSEX302.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --c-bg: #080808;
  --c-accent: #1A1A1A;
  --c-text: #FFFFFF;
  --c-border: #FFFFFF;
  --c-success: #00FF00;
  --c-error: #FF0000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: 'Fixedsys', monospace;
  -webkit-font-smoothing: none;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(15deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
  pointer-events: none;
  z-index: 1;
}

body > * {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background-color: var(--c-bg);
  border-bottom: 2px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--c-text);
}

.logo {
  height: 40px;
  width: 40px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--c-text);
  cursor: pointer;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-text);
  transition: width 0.3s ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-link-disabled:hover {
  opacity: 0.3;
}

.nav-link-disabled::after {
  display: none;
}

/* MAIN SECTION */
#header-wrapper {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.modal {
  width: 600px;
  max-width: 100%;
  background: var(--c-accent);
  padding: 32px 40px;
  margin: auto;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.modal-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 70px;
  height: 2px;
  background: var(--c-text);
}

/* STATUS */
.status {
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  min-height: 22px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#status-text {
  opacity: 0.8;
}

.status.ok {
  color: var(--c-success);
}

.status.ok #status-text {
  opacity: 1;
}

.status.err {
  color: var(--c-error);
}

.status.err #status-text {
  opacity: 1;
}

/* SPINNER */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--c-text);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* CHECK ICON */
.check {
  width: 28px;
  height: 28px;
}

.check svg {
  width: 28px;
  height: 28px;
  stroke: var(--c-success);
  stroke-width: 3;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.check.animate {
  animation: pop 200ms ease-out;
}

@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* INPUT */
.input {
  height: 56px;
  padding: 0 20px;
  border: 2px solid var(--c-border);
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.input:focus-within {
  border-color: var(--c-text);
  box-shadow: 0 0 0 1px var(--c-text);
}

.input input {
  width: 100%;
  height: 100%;
  border: none;
  font-family: 'Fixedsys', monospace;
  font-size: 16px;
  color: var(--c-text);
  background: transparent;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

/* BUTTON */
.btn-submit {
  font-family: 'Fixedsys', monospace;
  padding: 12px 28px;
  font-size: 14px;
  background: var(--c-text);
  color: var(--c-bg);
  border: 2px solid var(--c-text);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--c-bg);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-submit:hover::before {
  left: 0;
}

.btn-submit:hover {
  color: var(--c-text);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-submit:disabled:hover {
  transform: none;
}

/* BUTTON ROW */
.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.help {
  font-size: 13px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#product {
  font-weight: bold;
}

#queue {
  font-weight: bold;
}

/* NOTE */
.note {
  margin: 12px 0;
  padding: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* DOWNLOAD LINK */
.download-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 2px solid var(--c-border);
  background: transparent;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--c-text);
  transition: all 0.3s ease;
  margin: 12px 0;
  font-weight: bold;
}

.download-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* INFO ROW */
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 12px 0 0 0;
}

/* MOBILE WARNING */
.mobile-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--c-bg);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.mobile-warning-content {
  max-width: 400px;
}

.mobile-warning h2 {
  font-size: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-warning p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .mobile-warning {
    display: flex;
  }
  
  body > *:not(.mobile-warning) {
    display: none !important;
  }
}
