:root{
  --bg: #170c29;
  --text: #ffffff;
  --accent: rgb(254, 122, 188);
  --headline: #DD9517;
  
  --card: rgba(255,255,255,0.06);
  --cardBorder: rgba(255,255,255,0.12);

  --btn: rgba(255,255,255,0.14);
  --btnHover: rgba(255,255,255,0.22);
  --btnActive: rgba(255,255,255,0.28);

  --shadow: 0 18px 60px rgba(0,0,0,0.40);
  
  --profile-paper: #170c29;
  --profile-panel: #23143a;
  --profile-ink: #fff7df;
  --profile-muted: #b9a9c8;
  --profile-line: #4a2c68;
  --profile-yellow: #ffe600;
  --profile-pink: #ff4f9a;
}

/* Base */
* { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

li {
  margin-bottom: 1em;
}

li:last-child {
  margin-bottom: 0;
}

/* Centered layout wrapper (use on simple landing pages) */
.hs-center {
    min-height: 100dvh;
    display: grid;
    justify-items: center;
    align-items: start;
    padding: 18px;
}

/* Container for content */
.hs-wrap{
  width: min(900px, 100%);
  display: grid;
  gap: 20px;
  align-items: center;
  justify-items: center;
}

/* Glass card */
.hs-card{
  width: 100%;
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3.5vw, 32px);
  backdrop-filter: blur(6px);
}

/* Text helpers */
.hs-title{
  margin: 0 0 10px 0;
  font-size: clamp(20px, 4vw, 30px);
  line-height: 1.15;
  color: var(--headline);
}

.hs-text{
  margin: 10px 0;
  font-size: clamp(14px, 2.8vw, 17px);
  line-height: 1.45;
  opacity: 0.95;
}

.hs-muted{ opacity: 0.80; }

.hs-list{
  margin: 10px auto;
  padding-left: 18px;
  max-width: 520px;
  font-size: clamp(14px, 2.8vw, 17px);
  line-height: 1.5;
}

/* Logo */
.hs-logo{
  display: block;
  margin: 0 auto 10px auto;
  width: clamp(220px, 70%, 420px);
  max-width: 100%;
  height: auto;
}

.hs-upload-link {
    text-decoration: none;
}

/* REPLAY neon */
.hs-replay{
  text-align: center;
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent);
  margin: 0 0 20px 0;

  text-shadow:
    0 0 6px rgba(254,122,188,0.90),
    0 0 12px rgba(254,122,188,0.70),
    0 0 24px rgba(254,122,188,0.50),
    0 0 40px rgba(254,122,188,0.35);
}

/* Optional: pulsing glow */
@keyframes hsReplayGlow{
  0% {
    text-shadow:
      0 0 6px rgba(254,122,188,0.70),
      0 0 14px rgba(254,122,188,0.45),
      0 0 28px rgba(254,122,188,0.30);
  }
  50% {
    text-shadow:
      0 0 12px rgba(254,122,188,0.95),
      0 0 28px rgba(254,122,188,0.70),
      0 0 48px rgba(254,122,188,0.45);
  }
  100% {
    text-shadow:
      0 0 6px rgba(254,122,188,0.70),
      0 0 14px rgba(254,122,188,0.45),
      0 0 28px rgba(254,122,188,0.30);
  }
}

/* Add this class if you want the pulsing glow */
.hs-replay--pulse{
  animation: hsReplayGlow 2.5s ease-in-out infinite;
}

/* Form layout */
.form-field{
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.form-field label{
  color: var(--text);
  opacity: 0.9;
  font-size: 0.95rem;
}

.form-control,
.form-field input,
.form-field textarea{
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  /* background: rgba(255,255,255,0.08); */
  background: var(--bg);
  /* background-color: rgba(255,255,255,0.08); */
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field select{
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus,
.form-field input:focus,
.form-field textarea:focus{
  border-color: rgba(254,122,188,0.85);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px rgba(254,122,188,0.12);
}

.form-field select:focus{
  border-color: rgba(254,122,188,0.85);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(254,122,188,0.12);
}

.form-control[type="file"]{
  padding: 12px 14px;
}

.form-error{
  margin: 0;
  color: #ff6b6b;
  font-size: 0.95rem;
}

/* Button (use <a class="hs-btn" href="...">...) */
.hs-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: var(--btn);
  color: var(--text);
  font-weight: 700;
  font-size: clamp(15px, 3vw, 18px);
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.hs-btn:hover{ background: var(--btnHover); }
.hs-btn:active{ background: var(--btnActive); transform: translateY(1px); }

/* Footer */
.hs-footer{
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* Small screens */
@media (max-width: 380px){
  .hs-center { padding: 12px; }
  .hs-card { border-radius: 16px; }
  .hs-btn { border-radius: 12px; }
}
/* remove unnecessary dots */
.hs-list-unstyled {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    padding: 14px 28px 18px;
    background: var(--profile-paper);
    font-family: Arial, Helvetica, sans-serif;
}

.navbar * {
    box-sizing: border-box;
}


/* Main navbar box */

.navbar ul {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px;

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

    list-style: none;

    background: var(--profile-panel);

    border: 2px solid var(--profile-line);
    border-radius: 0;

    box-shadow: 7px 7px 0 #07030d;
}


/* All navbar items */

.navbar ul li {
    display: flex;
    align-items: stretch;
    margin: 0;
}


/* =========================================================
   STANDARD LINKS
   ========================================================= */

.navbar ul li a {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 16px;

    color: var(--profile-ink);
    background: transparent;

    border-radius: 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color .15s ease,
        color .15s ease;
}


/* Hover */

.navbar ul li a:hover:not(.active) {
    color: #191919;
    background: var(--profile-pink);
}


/* Active page */

.navbar ul li a.active {
    color: #191919;
    background: var(--profile-yellow);

    border-radius: 0;
    box-shadow: inset 0 0 0 2px #ffffff44;
}


/* =========================================================
   USER AREA
   ========================================================= */

.navbar ul li.user-text {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: 12px;
    padding: 0 16px;

    color: var(--profile-pink);

    border-left: 1px solid var(--profile-line);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;

    white-space: nowrap;
}

.navbar ul li.user-text span {
    color: var(--profile-ink);
}


/* Username */

.navbar ul li.user-text a {
    display: inline-flex;
    align-items: center;

    padding: 0;
    margin: 0;

    color: var(--profile-pink);
    background: transparent;

    border-radius: 0;

    font: inherit;
    text-decoration: none;
}

.navbar ul li.user-text a:hover {
    color: var(--profile-pink);
    background: transparent;
}


/* =========================================================
   LOGIN "ODER"
   ========================================================= */

.navbar ul li.nav-or {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;

    color: var(--profile-ink);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;

    white-space: nowrap;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.navbar form {
    display: flex;
    align-items: stretch;

    margin: 0;
    padding: 0;
}

.navbar .hs-link {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 16px;

    color: var(--profile-ink);
    background: transparent;

    border: 0;
    border-radius: 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;

    cursor: pointer;
    white-space: nowrap;

    transition:
        background-color .15s ease,
        color .15s ease;
}

.navbar .hs-link:hover {
    color: #191919;
    background: var(--profile-pink);
}


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

@media (max-width: 900px) {

    .navbar {
        padding: 12px 14px 16px;
    }

    .navbar ul {
        justify-content: flex-start;
        overflow-x: auto;

        scrollbar-width: thin;
    }

    .navbar ul li {
        flex: 0 0 auto;
    }

    .navbar ul li.user-text {
        margin-left: 8px;
    }
}


@media (min-width: 769px) and (max-width: 900px) {

    .navbar {
        padding: 12px 14px 16px;
    }

    .navbar ul {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .navbar ul li {
        flex: 0 0 auto;
    }

    .navbar ul li.user-text {
        margin-left: 8px;
    }
}
/* =========================================
   RESPONSIVE NAVIGATION
   ========================================= */

.desktop-navbar {
    display: block;
}

.mobile-topbar,
.mobile-bottom-nav {
    display: none;
}


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

@media (max-width: 768px) {

    /*
     * Desktop navbar disappears completely.
     */
    .desktop-navbar {
        display: none;
    }


    /* =====================================
       MOBILE TOP BAR
       ===================================== */

    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;

        position: sticky;
        top: 0;

        width: 100%;
        min-height: 55px;

        padding: 8px 14px;

        background: var(--profile-panel);
        border-bottom: 2px solid var(--profile-line);

        box-shadow: 0 5px 0 #07030d;

        font-family: Arial, Helvetica, sans-serif;

        z-index: 1000;
    }


    .mobile-logo {
        display: flex;
        align-items: center;

        color: var(--profile-yellow);

        font-size: 15px;
        font-weight: 800;
        letter-spacing: .02em;

        text-decoration: none;
    }


    .mobile-account {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-account form {
        margin: 0;
    }

    .mobile-logout {
        font-size: 0.9rem;
    }

    .mobile-account a {
        display: flex;
        align-items: center;
        justify-content: center;

        padding: 10px 12px;

        color: var(--profile-ink);
        background: transparent;

        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .02em;

        text-decoration: none;

        transition:
            background-color .15s ease,
            color .15s ease;
    }


    .mobile-account a:hover {
        color: #191919;
        background: var(--profile-pink);
    }


    /*
     * Logged-in profile link can use the same
     * pink accent as the desktop username.
     */
    .mobile-profile-link {
        color: var(--profile-pink) !important;
    }


    .mobile-profile-link:hover {
        color: #191919 !important;
    }



    /* =====================================
       MOBILE BOTTOM NAVIGATION
       ===================================== */

    .mobile-bottom-nav {
        display: flex;

        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        align-items: stretch;
        justify-content: space-around;

        min-height: 66px;

        padding:
            6px
            6px
            calc(6px + env(safe-area-inset-bottom));

        background: var(--profile-panel);

        border-top: 2px solid var(--profile-line);

        box-shadow: 0 -5px 0 #07030d;

        font-family: Arial, Helvetica, sans-serif;

        z-index: 1000;
    }


    .mobile-bottom-nav a {
        display: flex;
        flex: 1;

        flex-direction: column;

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

        gap: 4px;

        padding: 8px 4px;

        color: var(--profile-ink);
        background: transparent;

        font-weight: 800;
        letter-spacing: .02em;

        text-decoration: none;

        -webkit-tap-highlight-color: transparent;

        transition:
            background-color .15s ease,
            color .15s ease;
    }


    .mobile-bottom-nav a:hover:not(.active) {
        color: #191919;
        background: var(--profile-pink);
    }


    /*
     * Same yellow active state as desktop navbar.
     */
    .mobile-bottom-nav a.active {
        color: #191919;

        background: var(--profile-yellow);

        box-shadow: inset 0 0 0 2px #ffffff44;
    }


    .mobile-bottom-nav i {
        font-size: 1.35rem;
        line-height: 1;
    }


    .mobile-bottom-nav span {
        font-size: 11px;
        line-height: 1;
    }


    /*
     * Prevent content from disappearing underneath
     * the fixed bottom navigation.
     */
    body {
        padding-bottom:
            calc(78px + env(safe-area-inset-bottom));
    }
}
