/* Shared styles for all Listline server-rendered pages */

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

body {
  font-family: 'Inter', sans-serif;
  background: #0d1b4b;
  color: #fff;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

/* Force Inter on every form element — browser defaults override body inheritance */
input, textarea, select, button, optgroup, option {
  font-family: 'Inter', sans-serif;
}

/* ── Form elements ─────────────────────────────────────── */
label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8896b3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 10px 13px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: #4a5a80; }
input:focus, textarea:focus, select:focus { border-color: #06d6d4; }
select option { background: #1a2f6e; color: #fff; }
textarea { resize: vertical; min-height: 80px; }

/* ── Logo ──────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img { height: 34px; }
.logo span {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.logo span em { font-style: normal; color: #06d6d4; }

/* ── Nav ───────────────────────────────────────────────── */
nav {
  background: rgba(13,27,75,0.96);
  border-bottom: 1px solid rgba(6,214,212,0.12);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 40px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 32px; }
.nav-logo span { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: #fff; }
.nav-logo span em { font-style: normal; color: #06d6d4; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-name { color: #8896b3; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  display: block;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-sm {
  padding: 7px 16px;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #8896b3;
}
.btn-outline:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-cyan { background: #06d6d4; color: #0d1b4b; }
.btn-cyan:hover { background: #04b8b6; transform: translateY(-1px); }

.btn-primary {
  width: 100%;
  padding: 13px;
  background: #06d6d4;
  color: #0d1b4b;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.btn-primary:hover { background: #04b8b6; transform: translateY(-1px); }

.btn-delete {
  background: transparent;
  border: 1px solid rgba(239,68,68,0.3);
  color: rgba(239,68,68,0.7);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-delete:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.7); color: #f87171; }

.btn-edit {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #8896b3;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-edit:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ── Card ──────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  min-width: 0;
}

/* ── Utility ───────────────────────────────────────────── */
.row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 4px 0 22px; }
.hint { font-size: 0.78rem; color: #4a5a80; text-align: center; margin-top: 14px; line-height: 1.5; }

.error-box {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.85rem;
  padding: 10px 14px;
  margin-bottom: 20px;
}

/* ── Page layouts ──────────────────────────────────────── */
.page-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 24px;
}

h1.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.card-sub { font-size: 0.875rem; color: #8896b3; margin-bottom: 28px; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-wrap {
  max-width: 980px;
  margin: 60px auto;
  padding: 0 24px;
  flex: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.pricing-card {
  position: relative;
  border-radius: 20px;
  padding: 36px 32px;
  min-width: 0;
}

.pricing-card.featured {
  margin-top: -14px;
  padding-top: 52px;
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #06d6d4;
  color: #0d1b4b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-price .currency {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #8896b3;
}

.pricing-price .amount {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1;
}

.pricing-price .period {
  font-size: 0.85rem;
  color: #8896b3;
}

.pricing-desc {
  font-size: 0.82rem;
  color: #8896b3;
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-button {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 24px;
}

.pricing-button.enabled {
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
}

.pricing-button.featured {
  border: none;
  background: #06d6d4;
  color: #0d1b4b;
}

.pricing-button.disabled {
  cursor: not-allowed;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #94a3b8;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 0;
}

@media (max-width: 720px) {
  nav {
    padding: 12px 16px;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-logo {
    flex: 1 1 auto;
  }

  .nav-logo span {
    font-size: 1rem;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-right {
    display: none;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  nav.nav-open .nav-right {
    display: flex;
  }

  .btn-sm {
    min-height: 40px;
    padding: 8px 14px;
    justify-content: center;
  }

  .page-centered {
    padding: 20px 16px;
  }

  .card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .row,
  .row-3 {
    grid-template-columns: 1fr;
  }

  .hint {
    text-align: left;
  }

  .table-wrap table {
    min-width: 760px;
  }

  .pricing-wrap {
    margin: 32px auto;
    padding: 0 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card,
  .pricing-card.featured {
    padding: 24px 18px;
    margin-top: 0;
  }

  .pricing-card.featured {
    padding-top: 24px;
  }

  .pricing-badge {
    left: 18px;
    transform: none;
  }

  .pricing-price .amount {
    font-size: 2.4rem;
  }
}
