:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --chip: #f1f5f9;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --green: #1dbf73;
  --green-dark: #14985a;
  --soft: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: radial-gradient(1200px 800px at 15% 0%, #eafff6 0%, rgba(234, 255, 246, 0) 55%),
    radial-gradient(1200px 800px at 85% 0%, #eef5ff 0%, rgba(238, 245, 255, 0) 55%),
    var(--bg);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  z-index: 10;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #39d98a);
  box-shadow: 0 8px 18px rgba(29, 191, 115, 0.28);
}

.logo-text {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.pill {
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
}

.hero {
  padding: 56px 0 18px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 54ch;
}

.search {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
}

.search input {
  border: 0;
  outline: none;
  flex: 1;
  font-size: 14px;
  padding: 8px 10px;
}

.search button {
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.search button:hover {
  background: var(--green-dark);
}

.quick {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.chip {
  text-decoration: none;
  color: var(--text);
  background: var(--chip);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.cta-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn.primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.joinbox {
  margin-top: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--soft);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.join-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(29, 191, 115, 0.16);
}

.join-title {
  font-weight: 900;
}

.join-sub {
  color: var(--muted);
  font-size: 13px;
}

.copy {
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.copy:hover {
  border-color: #cbd5e1;
}

.panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--soft);
  box-shadow: var(--shadow);
  padding: 14px;
}

.panel.mini {
  margin-top: 12px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-title {
  font-weight: 900;
}

.badge {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  background: #eafff6;
  border: 1px solid rgba(29, 191, 115, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
}

.featured-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--soft);
  background: #fff;
  padding: 14px;
}

.fc-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #334155);
}

.server-icon.small {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.fc-name {
  font-weight: 900;
}

.fc-ip {
  color: var(--muted);
  font-size: 13px;
}

.tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}

.fc-bottom {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 800;
}

.status {
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  width: fit-content;
}

.status.online {
  color: #0b6b3a;
  background: #eafff6;
  border-color: rgba(29, 191, 115, 0.25);
}

.status.offline {
  color: #7c2d12;
  background: #fff7ed;
  border-color: rgba(251, 146, 60, 0.25);
}

.section {
  padding: 44px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
  font-weight: 650;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.filter.active {
  border-color: rgba(29, 191, 115, 0.35);
  background: #eafff6;
}

.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--soft);
  box-shadow: var(--shadow);
  padding: 14px;
}

.card-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.right {
  margin-left: auto;
  text-align: right;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.card-title {
  font-weight: 900;
}

.card-sub {
  color: var(--muted);
  font-size: 13px;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-card {
  display: grid;
  place-items: center;
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.ghost-inner {
  text-align: center;
  padding: 18px;
}

.ghost-title {
  font-weight: 950;
  font-size: 18px;
}

.pricing {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.price {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--soft);
  box-shadow: var(--shadow);
  padding: 14px;
}

.price.featured {
  border-color: rgba(29, 191, 115, 0.35);
  background: rgba(234, 255, 246, 0.7);
}

.price-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.price-name {
  font-weight: 950;
}

.price-num {
  font-weight: 950;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.price-num span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
}

.price ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.footer {
  padding-bottom: 70px;
}

.footer-inner {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 38px;
  }
}
.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 72px auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--soft);
  box-shadow: var(--shadow);
  padding: 16px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-title {
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.modal-sub {
  margin-top: 4px;
  font-size: 13px;
}

.modal-x {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-weight: 900;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-weight: 900;
  font-size: 13px;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
}

.field input:focus,
.field select:focus {
  border-color: rgba(29, 191, 115, 0.5);
}

.form-error {
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: #fff7ed;
  color: #7c2d12;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 800;
  font-size: 13px;
  outline: none;
}
.field textarea {
  width: 100%;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
  resize: vertical;
  min-height: 120px;
}

.field textarea:focus {
  border-color: rgba(29, 191, 115, 0.5);
}
.market {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 920px) {
  .market {
    grid-template-columns: 1fr;
  }
}

.cover {
  border: 1px solid var(--line);
  border-radius: var(--soft);
  overflow: hidden;
  background: rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}

.cover-img {
  height: 220px;
  background: linear-gradient(180deg, rgba(2,6,23,0.04), rgba(2,6,23,0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(2,6,23,0.55);
  font-weight: 900;
}

.cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill-mini {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 12px;
}

.desc {
  margin-top: 12px;
  line-height: 1.6;
  font-size: 14px;
  color: rgba(2,6,23,0.85);
}

.package {
  position: sticky;
  top: 80px;
  border: 1px solid var(--line);
  border-radius: var(--soft);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  padding: 14px;
}

.package-title {
  font-weight: 950;
  letter-spacing: -0.02em;
}

.package-price {
  font-weight: 950;
  font-size: 22px;
  margin-top: 6px;
}

.package ul {
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: rgba(2,6,23,0.8);
  font-size: 13px;
}

.package .btn {
  width: 100%;
  margin-top: 12px;
}

.small-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(2,6,23,0.55);
}
.field textarea {
  width: 100%;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
  resize: vertical;
  min-height: 120px;
}

.field textarea:focus {
  border-color: rgba(29, 191, 115, 0.5);
}

.cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
button.pill-mini {
  cursor: pointer;
}
button.pill-mini:active {
  transform: translateY(1px);
}
