/* Greetlio premium skin - lightweight, mobile-first */
:root {
  color-scheme: light;
  --bg: #0f1116;
  --surface: #161922;
  --muted: #8a92a6;
  --text: #f6f7fb;
  --accent: linear-gradient(135deg, #ff7eb6, #7bd5ff);
  --accent-solid: #ff7eb6;
  --radius: 18px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  --max-width: 1200px;
  --card-gap: 18px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 126, 182, 0.15), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(123, 213, 255, 0.2), transparent 30%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 17, 22, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 12px;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 18px rgba(255, 126, 182, 0.6);
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background-image: var(--accent);
  color: #0b0d12;
  font-weight: 700;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
}

.cta:hover { transform: translateY(-2px); }

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 18px 60px;
}

.hero {
  padding: 70px 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.hero-card {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 126, 182, 0.16), rgba(123, 213, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
  from { transform: translateY(0px); }
  to { transform: translateY(-6px); }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  margin: 32px 0 16px;
  letter-spacing: -0.01em;
}

.section-title::before {
  content: "";
  width: 10px;
  height: 24px;
  border-radius: 8px;
  background-image: var(--accent);
  box-shadow: 0 10px 25px rgba(255, 126, 182, 0.35);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--card-gap);
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 126, 182, 0.08), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(123, 213, 255, 0.12), transparent 30%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card:hover::after { opacity: 1; }

.muted { color: var(--muted); font-size: 14px; }

.message-body {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 12px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.2); }
.btn.filled { background-image: var(--accent); color: #0b0d12; border: none; }

.badge {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.toc {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toc a {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
}

.search {
  position: relative;
  min-width: 220px;
}

.search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.search-results {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: #0f1116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow: auto;
  display: none;
}

.search-results.show { display: block; }

.search-results a {
  padding: 10px 12px;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 18px 40px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

form {
  display: grid;
  gap: 14px;
}

label { font-weight: 600; font-size: 14px; }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
}

.inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sticky-actions {
  position: sticky;
  bottom: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-like {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.category-chip {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-preview {
  background: linear-gradient(135deg, rgba(255, 126, 182, 0.28), rgba(123, 213, 255, 0.22));
  border-radius: 24px;
  padding: 28px;
  min-height: 260px;
  display: grid;
  align-content: space-between;
  color: #0b0d12;
  box-shadow: var(--shadow);
}

.template-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }

.template {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.template.selected {
  border-color: rgba(255,126,182,0.6);
  transform: translateY(-2px);
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(123, 213, 255, 0.1);
  border: 1px solid rgba(123, 213, 255, 0.25);
  color: var(--text);
}

@media (max-width: 720px) {
  .nav { padding: 12px; }
  .hero { padding: 50px 0 30px; }
  .grid { grid-template-columns: 1fr; }
  .nav-links { gap: 8px; }
}

