@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --pink: #ff79b8;
  --pink2: #ffb6d9;
  --pink3: #ffe1ef;
  --hot: #ff4fa3;
  --bg: #fff7fb;
  --card: rgba(255,255,255,.88);
  --ink: #4d3142;
  --muted: #927486;
  --line: #f6cfe2;
  --shadow: 0 18px 50px rgba(221,104,159,.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;

  color: var(--ink);
  font: 15px/1.6 'Nunito', system-ui, sans-serif;

  background:
    radial-gradient(
      circle at 8% 8%,
      #ffd9eb 0 8%,
      transparent 28%
    ),
    radial-gradient(
      circle at 92% 20%,
      #ffe8f3 0 7%,
      transparent 27%
    ),
    linear-gradient(
      135deg,
      #fff8fc,
      #fff2f8
    );
}

/* Cute decoration */
body:before {
  content: "♡  ✦  ♡  ✧  ♡";

  position: fixed;
  left: 0;
  right: 0;
  bottom: 8px;

  width: 100%;

  text-align: center;

  color: #ffc1dc;
  letter-spacing: 28px;
  font-size: 16px;

  pointer-events: none;
  z-index: 0;
}

a {
  color: #e44f98;
  text-decoration: none;
}

a:hover {
  color: #c9347c;
}

/* =========================
   HEADER
========================= */

.top {
  width: 100%;
  min-height: 74px;

  display: flex;
  align-items: center;

  gap: 16px;

  padding:
    12px
    max(18px, calc((100% - 1180px) / 2));

  position: sticky;
  top: 0;

  z-index: 20;

  background: rgba(255,249,253,.88);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid #f5d6e5;

  box-shadow:
    0 6px 25px rgba(215,103,157,.08);
}

.brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;

  color: #ed4d9a;

  white-space: nowrap;
}

/* Prevent duplicate heart */
.brand:after {
  content: "";
}

.search {
  display: flex;
  align-items: center;

  gap: 8px;

  flex: 1;
  max-width: 650px;

  margin: auto;
}

.search input {
  flex: 1;
  margin: 0;
}

.search button {
  border: 0;
  border-radius: 999px;

  padding: 10px 17px;

  background:
    linear-gradient(
      135deg,
      #ff77b6,
      #ff4fa3
    );

  color: white;

  font-family: inherit;
  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 7px 18px rgba(237,79,155,.18);

  transition: .18s ease;
}

.search button:hover {
  transform: translateY(-1px);
}

/* =========================
   MAIN
========================= */

.wrap {
  position: relative;
  z-index: 1;

  width: min(1180px, calc(100% - 30px));

  margin:
    35px auto
    70px;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  overflow: hidden;

  padding: 48px 38px;

  margin-bottom: 22px;

  border: 1px solid #f7cee2;

  border-radius: 30px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.94),
      rgba(255,230,242,.78)
    );

  box-shadow: var(--shadow);
}

.hero:after {
  content: "🌸  ♡  ✨";

  position: absolute;

  right: 30px;
  top: 25px;

  font-size: 35px;

  opacity: .6;

  pointer-events: none;
}

.badge {
  display: inline-block;

  padding: 7px 13px;

  border-radius: 999px;

  background: #fff;

  border: 1px solid #f6c6dd;

  color: #e84f98;

  font-size: 11px;

  font-weight: 900;

  letter-spacing: 1.5px;
}

.hero h1,
.toolhead h1 {
  font-family: 'Fredoka', sans-serif;

  line-height: 1.05;

  color: #633c52;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 66px);

  margin:
    13px
    0
    10px;
}

.hero p {
  max-width: 680px;

  margin: 0;

  color: #8e6d7e;

  font-size: 17px;
}

/* =========================
   CATEGORY
========================= */

.chips {
  display: flex;

  gap: 8px;

  flex-wrap: wrap;

  margin:
    18px
    0
    24px;
}

.chips a,
.adminnav a {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 9px 13px;

  border: 1px solid #f3d1e1;

  border-radius: 999px;

  background: rgba(255,255,255,.8);

  color: #a15b7d;

  font-weight: 800;

  transition: .18s ease;
}

.chips a:hover,
.chips a.active,
.adminnav a.active {
  background: #ffe0ef;

  color: #df428d;

  transform: translateY(-1px);
}

/* =========================
   TOOLS GRID
========================= */

.grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(250px, 1fr)
    );

  gap: 15px;
}

.tool {
  min-width: 0;

  display: flex;

  gap: 14px;

  padding: 19px;

  background: var(--card);

  border: 1px solid #f4d4e3;

  border-radius: 22px;

  box-shadow:
    0 9px 30px rgba(217,108,160,.08);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.tool:hover {
  transform:
    translateY(-4px)
    rotate(-.2deg);

  box-shadow:
    0 16px 35px rgba(217,108,160,.15);

  border-color: #f2a9cb;
}

.toolicon {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  flex: 0 0 48px;

  border-radius: 17px;

  background:
    linear-gradient(
      135deg,
      #ffe3ef,
      #fff
    );

  font-size: 27px;

  border: 1px solid #f7d1e2;
}

.tool h3 {
  margin:
    0
    0
    5px;

  font-family: 'Fredoka', sans-serif;

  color: #613b50;

  font-size: 19px;

  overflow-wrap: anywhere;
}

.tool p {
  margin:
    0
    0
    10px;

  color: #927487;
}

.tool small {
  color: #df5798;

  font-weight: 800;
}

/* =========================
   CARD
========================= */

.card {
  background: var(--card);

  border: 1px solid #f3d1e1;

  border-radius: 24px;

  padding: 24px;

  box-shadow: var(--shadow);
}

.center {
  min-height: 100vh;

  display: grid;

  place-items: center;

  padding: 20px;
}

.login,
.setup {
  width: min(440px, 100%);
}

.login .brand,
.setup .brand {
  display: block;

  text-align: center;

  margin-bottom: 8px;
}

.formcard {
  max-width: 850px;

  margin: auto;
}

/* =========================
   FORMS
========================= */

input,
textarea,
select {
  display: block;

  width: 100%;

  margin:
    7px
    0
    18px;

  background: #fff;

  color: var(--ink);

  border: 1px solid #efc9dc;

  border-radius: 13px;

  padding:
    12px
    13px;

  outline: none;

  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #ee75ae;

  box-shadow:
    0 0 0 4px #ffe3f0;
}

textarea {
  resize: vertical;
}

.code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  min-height: 160px;
}

label {
  display: block;

  color: #80576b;

  font-weight: 900;
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  border: 0;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #ff77b6,
      #ff4fa3
    );

  color: #fff;

  font-weight: 900;

  padding:
    11px
    18px;

  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(237,79,155,.2);

  font: inherit;

  transition: .18s ease;
}

.btn:hover {
  transform: translateY(-1px);

  color: #fff;
}

.secondary {
  background: #ffe2ef;

  color: #d84d91;

  box-shadow: none;
}

/* =========================
   ALERT
========================= */

.err,
.ok {
  padding: 13px;

  border-radius: 14px;

  margin:
    12px
    0;
}

.err {
  background: #fff0f3;

  color: #c83e69;

  border: 1px solid #f6c2d1;
}

.ok {
  background: #edfff6;

  color: #2f8a62;

  border: 1px solid #bcebd3;
}

.muted {
  color: #a08291;
}

/* =========================
   ADMIN
========================= */

.adminnav {
  display: flex;

  gap: 8px;

  flex-wrap: wrap;

  margin-bottom: 25px;
}

.stats {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 13px;

  margin-bottom: 20px;
}

.stat {
  padding: 20px;

  background: rgba(255,255,255,.85);

  border: 1px solid #f3d1e1;

  border-radius: 20px;

  box-shadow:
    0 8px 25px rgba(217,108,160,.07);
}

.stat small {
  color: #a1798c;

  font-weight: 800;
}

.stat strong {
  display: block;

  font-family: 'Fredoka', sans-serif;

  font-size: 34px;

  color: #e45197;
}

.rowhead {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 15px;
}

.rowhead h1,
.formcard h1,
.card h2 {
  font-family: 'Fredoka', sans-serif;

  color: #633c52;
}

/* =========================
   TABLE
========================= */

.tablewrap {
  width: 100%;

  overflow-x: auto;

  border: 1px solid #f2d1e0;

  border-radius: 18px;

  background: #fff;

  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;

  min-width: 700px;

  border-collapse: collapse;
}

th,
td {
  text-align: left;

  padding: 13px;

  border-bottom: 1px solid #f5e0e9;

  white-space: nowrap;
}

th {
  color: #a15b7d;

  background: #fff5fa;
}

td {
  color: #68495a;
}

/* =========================
   TOOL PAGE
========================= */

.toolhead {
  margin-bottom: 22px;
}

.toolhead h1 {
  font-size: 42px;

  margin:
    12px
    0
    5px;
}

.check {
  display: flex;

  gap: 8px;

  align-items: center;

  margin-bottom: 18px;
}

.check input {
  width: auto;

  margin: 0;
}

.toolcontent {
  width: 100%;

  overflow-x: auto;
}

pre {
  white-space: pre-wrap;

  word-break: break-word;
}

/* =========================
   SEARCH RESULT
========================= */

.result-info {
  margin:
    10px
    0
    18px;

  padding:
    10px
    14px;

  border-radius: 14px;

  background: rgba(255,255,255,.7);

  border: 1px solid #f3d1e1;

  color: #9a7184;
}

.result-info strong {
  color: #df5798;
}

/* =========================
   EMPTY STATE
========================= */

.empty {
  grid-column: 1 / -1;

  text-align: center;

  padding:
    50px
    25px;

  background: rgba(255,255,255,.82);

  border: 1px solid #f3d1e1;

  border-radius: 25px;

  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 42px;

  margin-bottom: 8px;
}

.empty h3 {
  margin:
    0
    0
    5px;

  font-family: 'Fredoka', sans-serif;

  font-size: 25px;

  color: #633c52;
}

.empty p {
  color: #927486;

  margin-bottom: 20px;
}

/* =========================
   FOOTER
========================= */

footer {
  position: relative;

  z-index: 2;

  width: 100% !important;

  max-width: 100% !important;

  min-width: 0;

  display: block !important;

  margin:
    0 auto !important;

  padding:
    24px
    16px
    32px !important;

  text-align: center !important;

  color: #b47c99;

  font-family: 'Nunito', sans-serif;

  font-size: 16px;

  font-weight: 800;

  line-height: 1.6;

  box-sizing: border-box;

  overflow: hidden;

  left: auto !important;
  right: auto !important;

  transform: none !important;
}

footer * {
  text-align: center !important;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

  body {
    font-size: 14px;
  }

  body:before {
    letter-spacing: 16px;

    font-size: 14px;

    bottom: 5px;
  }

  /* HEADER */

  .top {
    min-height: 66px;

    padding:
      10px
      12px;

    gap: 9px;
  }

  .top .brand {
    font-size: 19px;
  }

  .search {
    display: none;
  }

  /* MAIN */

  .wrap {
    width: calc(100% - 20px);

    margin:
      22px
      auto
      45px;
  }

  /* HERO */

  .hero {
    padding:
      32px
      22px;

    border-radius: 24px;
  }

  .hero:after {
    right: 16px;

    top: 17px;

    font-size: 23px;
  }

  .hero h1 {
    max-width: 100%;

    font-size: 42px;

    line-height: 1.04;

    overflow-wrap: anywhere;
  }

  .hero p {
    font-size: 16px;

    line-height: 1.65;
  }

  /* CHIPS */

  .chips {
    gap: 7px;

    margin:
      15px
      0
      20px;
  }

  .chips a {
    padding:
      8px
      11px;

    font-size: 13px;
  }

  /* TOOLS */

  .grid {
    grid-template-columns: 1fr;

    gap: 13px;
  }

  .tool {
    padding: 16px;

    gap: 13px;

    border-radius: 20px;
  }

  .toolicon {
    width: 46px;
    height: 46px;

    flex-basis: 46px;

    font-size: 25px;
  }

  .tool h3 {
    font-size: 18px;
  }

  .tool p {
    font-size: 14px;
  }

  /* STATS */

  .stats {
    grid-template-columns:
      repeat(2, 1fr);

    gap: 10px;
  }

  .stat {
    padding: 15px;
  }

  .stat strong {
    font-size: 28px;
  }

  /* ADMIN */

  .rowhead {
    align-items: flex-start;

    flex-direction: column;
  }

  .adminnav {
    gap: 6px;
  }

  .adminnav a {
    font-size: 13px;

    padding:
      8px
      11px;
  }

  /* TOOL PAGE */

  .toolhead h1 {
    font-size: 32px;
  }

  /* CARD */

  .card {
    padding: 19px;

    border-radius: 21px;
  }

  /* FOOTER */

  footer {
    width: 100% !important;

    max-width: 100% !important;

    margin:
      0 auto !important;

    padding:
      22px
      12px
      35px !important;

    text-align: center !important;

    display: block !important;

    justify-content: initial !important;

    align-items: initial !important;
  }
}

/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 380px) {

  .top .brand {
    font-size: 17px;
  }

  .hero {
    padding:
      27px
      18px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 15px;
  }

  .tool {
    padding: 14px;
  }

  footer {
    width: 100% !important;

    padding:
      22px
      10px
      32px !important;

    text-align: center !important;

    font-size: 14px;
    
    .site-footer {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    box-sizing: border-box;
}

.site-footer footer {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto !important;
    padding: 24px 16px 32px !important;

    display: block !important;

    text-align: center !important;

    color: #b47c99;

    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;

    line-height: 1.6;

    box-sizing: border-box;
}

.site-footer footer span {
    display: block;

    width: 100%;

    text-align: center !important;

    margin: 0 auto;
}

@media (max-width: 700px) {

    .site-footer {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .site-footer footer {
        width: 100%;
        max-width: 100%;

        padding:
            22px
            12px
            35px !important;

        margin: 0 auto !important;

        text-align: center !important;
    }

    .site-footer footer span {
        width: 100%;
        text-align: center !important;
  }
}