:root {
  --em: #38bdf8;
  --bg: #081320;
}

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

html, body {
  background: var(--bg);
  color: #eef2f0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(56, 189, 248, 0.22), rgba(8, 19, 32, 0) 65%);
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 18px 60px;
}

/* LOGO */
.logo {
  font-family: 'Arial Black', -apple-system, sans-serif;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-size: 28px;
  color: #f0f0f0;
  text-align: center;
  display: block;
  text-decoration: none;
}

.logo .o {
  color: var(--em);
}

.sub {
  text-align: center;
  color: #9aa6a0;
  margin: 6px 0 24px;
  font-size: 15px;
}

/* CARDS */
.card {
  background: rgba(20, 20, 20, 0.94);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card.card-located {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(12, 25, 42, 0.95);
}

.located-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.located-head h2 {
  font-size: 19px;
  color: #fff;
  margin: 0;
  font-weight: 700;
}

.icon-check {
  font-size: 18px;
}

.mac-line {
  color: #9aa6a0;
  font-size: 14px;
  margin-bottom: 14px;
}

.mac-line strong {
  color: #fff;
}

/* SERVER CODE BOX */
.server-code-box {
  background: #0d1612;
  border: 1px solid #1a3326;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sc-label {
  color: #6f8078;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
}

.sc-code {
  color: var(--em);
  font-size: 22px;
  font-weight: 800;
}

.sc-tag {
  color: #9aa6a0;
  font-size: 16px;
  font-weight: 700;
}

.sc-hint {
  color: #9aa6a0;
  font-size: 13.5px;
  margin-bottom: 12px;
}

.link-change {
  color: var(--em);
  font-size: 13.5px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.link-change:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* FORM ELEMENTS */
h2 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 700;
}

.hint {
  color: #9aa6a0;
  font-size: 13.5px;
  margin-bottom: 18px;
  line-height: 1.5;
}

label {
  display: block;
  color: #cdd5d1;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.opt-label {
  color: #6f8078;
  font-weight: 400;
  font-size: 13px;
}

.input-subnote {
  color: #6f8078;
  font-size: 12.5px;
  margin: -8px 0 16px;
  line-height: 1.4;
}

input[type=text],
input[type=password] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #2a2a2a;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus {
  border-color: var(--em);
  outline: none;
}

input[type=file] {
  margin-top: 6px;
  color: #9aa6a0;
  font-size: 14px;
}

.file-label {
  margin-bottom: 20px;
}

.btn {
  width: 100%;
  padding: 14px;
  background: var(--em);
  color: #04231a;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: #34d399;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5f6b66;
  font-size: 12px;
  text-transform: uppercase;
  margin: 14px 0 14px;
  font-weight: 600;
}

.or::before,
.or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ALERTS */
.alert {
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 16px;
  border: 1px solid;
  font-size: 14.5px;
  font-weight: 500;
}

.alert.ok {
  border-color: var(--em);
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
}

.alert.err {
  border-color: #ef4444;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
}

/* M3U PREVIEW TAGS */
.m3u-tag-box {
  background: #0c1c2e;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  margin: -6px 0 16px;
  font-size: 13px;
}

.tag-title {
  display: block;
  color: var(--em);
  font-weight: 700;
  margin-bottom: 4px;
}

.tag-val {
  display: inline-block;
  color: #cdd5d1;
  margin-right: 14px;
}
