/* =========================================================
   ANIMEXSTREAM PROFILE
   Responsive / Mobile First / Glass UI
   ========================================================= */

:root {

  --bg: #07070b;
  --bg-2: #0c0c12;
  --card: rgba(255,255,255,.045);

  --border: rgba(255,255,255,.085);
  --border-strong: rgba(255,255,255,.14);

  --text: #f5f5f7;
  --text-2: #aaaab7;
  --text-3: #777784;

  --purple: #7c3aed;
  --purple-light: #a78bfa;

  --radius: 18px;
  --radius-lg: 24px;

  --header-height: 70px;
  --bottom-height: 78px;

  --safe-bottom: env(
    safe-area-inset-bottom,
    0px
  );

  --font:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

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


html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}


body {
  min-height: 100vh;
  min-height: 100dvh;

  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 85% 0%,
      rgba(124,58,237,.15),
      transparent 32%
    ),
    radial-gradient(
      circle at 0% 35%,
      rgba(255,23,61,.06),
      transparent 30%
    ),
    var(--bg);

  color: var(--text);

  font-family: var(--font);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


button,
input {
  font: inherit;
}


button {
  border: 0;
}


a {
  color: inherit;
  text-decoration: none;
}


svg {
  display: block;
}


/* =========================================================
   APP SHELL
   ========================================================= */

.app-shell {
  min-height: 100dvh;
  padding-bottom:
    calc(
      var(--bottom-height) +
      var(--safe-bottom) +
      18px
    );
}


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

.profile-header {

  position: sticky;
  top: 0;

  z-index: 100;

  height: var(--header-height);

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

  padding:
    0
    max(18px, 4vw);

  border-bottom:
    1px solid var(--border);

  background:
    rgba(7,7,11,.78);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}


.brand {

  font-size: 24px;
  font-weight: 900;

  letter-spacing: 1px;

  white-space: nowrap;
}


.brand span {
  color: var(--purple-light);
}


.header-home {

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border:
    1px solid var(--border);

  border-radius: 50%;

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

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


.header-home svg {

  width: 20px;
  height: 20px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.8;

  stroke-linecap: round;
  stroke-linejoin: round;
}


.header-home:hover {

  background:
    rgba(124,58,237,.13);

  border-color:
    rgba(167,139,250,.35);

  transform:
    translateY(-1px);
}


.header-home:active {
  transform: scale(.94);
}


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

.profile-main {

  width:
    min(
      100%,
      900px
    );

  margin: 0 auto;

  padding:
    54px
    max(18px, 4vw)
    30px;
}


/* =========================================================
   INTRO
   ========================================================= */

.profile-intro {

  text-align: center;

  max-width: 680px;

  margin:
    0 auto 34px;
}


.profile-avatar {

  width: 84px;
  height: 84px;

  display: grid;
  place-items: center;

  margin:
    0 auto 22px;

  border:
    1px solid rgba(167,139,250,.28);

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 25%,
      rgba(167,139,250,.35),
      rgba(124,58,237,.12)
    );

  box-shadow:
    0 15px 45px rgba(124,58,237,.17);

  color: var(--purple-light);
}


.profile-avatar svg {

  width: 43px;
  height: 43px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.5;

  stroke-linecap: round;
}


.eyebrow {

  margin-bottom: 8px;

  color:
    var(--purple-light);

  font-size: 11px;

  font-weight: 900;

  letter-spacing: 2px;
}


.profile-intro h1 {

  font-size:
    clamp(
      34px,
      6vw,
      52px
    );

  line-height: 1;

  letter-spacing:
    -1.5px;
}


.profile-intro p {

  max-width: 560px;

  margin:
    14px auto 0;

  color: var(--text-2);

  font-size:
    clamp(
      14px,
      2vw,
      17px
    );

  line-height: 1.6;
}


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

.auth-card,
.account-card {

  width: 100%;

  padding:
    clamp(20px,4vw,34px);

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.018)
    );

  box-shadow:
    0 25px 80px rgba(0,0,0,.28);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}


/* =========================================================
   AUTH TABS
   ========================================================= */

.auth-tabs {

  display: grid;

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

  gap: 5px;

  padding: 4px;

  margin-bottom: 25px;

  border:
    1px solid var(--border);

  border-radius: 13px;

  background:
    rgba(0,0,0,.22);
}


.auth-tab {

  min-height: 40px;

  border-radius: 9px;

  background: transparent;

  color: var(--text-3);

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}


.auth-tab.active {

  background:
    rgba(124,58,237,.82);

  color: #fff;

  box-shadow:
    0 6px 18px rgba(124,58,237,.18);
}


.auth-tab:active {
  transform: scale(.98);
}


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

.auth-form {

  display: grid;

  gap: 18px;
}


.field {

  display: grid;

  gap: 8px;
}


.field label {

  color: var(--text);

  font-size: 13px;

  font-weight: 750;
}


.field input {

  width: 100%;

  min-height: 48px;

  padding:
    0
    14px;

  border:
    1px solid var(--border);

  border-radius: 12px;

  outline: none;

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

  color: var(--text);

  font-size: 14px;

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


.field input::placeholder {
  color: #666673;
}


.field input:focus {

  border-color:
    rgba(167,139,250,.58);

  background:
    rgba(124,58,237,.055);

  box-shadow:
    0 0 0 3px
    rgba(124,58,237,.10);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.primary-button {

  width: 100%;

  min-height: 50px;

  margin-top: 3px;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      #7c3aed,
      #6824d8
    );

  color: #fff;

  font-size: 14px;
  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 12px 28px
    rgba(124,58,237,.23);

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


.primary-button:hover {

  filter:
    brightness(1.08);

  transform:
    translateY(-1px);

  box-shadow:
    0 16px 34px
    rgba(124,58,237,.28);
}


.primary-button:active {
  transform: scale(.98);
}


.primary-button:disabled {
  opacity: .6;
  cursor: wait;
}


.secondary-button {

  min-height: 46px;

  padding:
    0 20px;

  border:
    1px solid var(--border-strong);

  border-radius: 12px;

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

  color: #fff;

  font-weight: 800;

  cursor: pointer;

  transition:
    background .2s ease,
    transform .2s ease;
}


.secondary-button:hover {
  background:
    rgba(255,255,255,.075);
}


.secondary-button:active {
  transform: scale(.97);
}


/* =========================================================
   AUTH MESSAGE
   ========================================================= */

.auth-message {

  min-height: 18px;

  margin-top: 12px;

  color:
    var(--text-2);

  font-size: 12px;

  line-height: 1.5;

  text-align: center;
}


.auth-message.error {
  color: #ff7188;
}


.auth-message.success {
  color: #67e8a5;
}


/* =========================================================
   ACCOUNT DIVIDER
   ========================================================= */

.auth-divider {

  display: flex;

  align-items: center;

  gap: 12px;

  margin:
    22px 0 17px;

  color: var(--text-3);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 2px;
}


.auth-divider::before,
.auth-divider::after {

  content: "";

  flex: 1;

  height: 1px;

  background:
    var(--border);
}


/* =========================================================
   SWITCH
   ========================================================= */

.auth-switch {

  text-align: center;

  color: var(--text-2);

  font-size: 13px;
}


.auth-switch button {

  background: transparent;

  color:
    var(--purple-light);

  font-weight: 850;

  cursor: pointer;
}


.auth-switch button:hover {
  text-decoration: underline;
}


.auth-note {

  max-width: 560px;

  margin:
    22px auto 0;

  color:
    var(--text-3);

  font-size: 11px;

  line-height: 1.6;

  text-align: center;
}


/* =========================================================
   ACCOUNT
   ========================================================= */

.account-top {

  display: flex;

  align-items: center;

  gap: 15px;
}


.account-avatar {

  flex:
    0 0 58px;

  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #7c3aed,
      #a78bfa
    );

  color: #fff;

  font-size: 20px;
  font-weight: 900;
}


.account-label {

  color:
    #67e8a5;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 1.5px;
}


.account-top h2 {

  margin-top: 3px;

  font-size: 20px;
}


.account-top p {

  margin-top: 2px;

  color:
    var(--text-2);

  font-size: 12px;

  word-break: break-word;
}


.account-actions {

  margin-top: 25px;

  display: flex;

  justify-content: flex-end;
}


/* =========================================================
   SKELETON
   ========================================================= */

.profile-skeleton {

  display: flex;

  flex-direction: column;

  align-items: center;
}


.skeleton-avatar {

  width: 84px;
  height: 84px;

  margin-bottom: 22px;

  border-radius: 50%;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.095),
      rgba(255,255,255,.045)
    );

  background-size: 200% 100%;

  animation:
    skeleton-shimmer 1.35s
    linear infinite;
}


.skeleton-line {

  border-radius: 8px;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.095),
      rgba(255,255,255,.045)
    );

  background-size: 200% 100%;

  animation:
    skeleton-shimmer 1.35s
    linear infinite;
}


.skeleton-title {

  width:
    min(300px,75%);

  height: 42px;
}


.skeleton-subtitle {

  width:
    min(420px,90%);

  height: 18px;

  margin-top: 14px;
}


.skeleton-card {

  width: 100%;

  max-width: 900px;

  margin-top: 34px;

  padding: 30px;

  border:
    1px solid var(--border);

  border-radius: 24px;

  background:
    rgba(255,255,255,.025);
}


.skeleton-small {

  width: 80px;
  height: 13px;

  border-radius: 6px;

  background:
    rgba(255,255,255,.07);
}


.skeleton-small.center {

  width: 180px;

  margin:
    20px auto 0;
}


.skeleton-input {

  width: 100%;
  height: 48px;

  margin:
    9px 0 20px;

  border-radius: 12px;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.095),
      rgba(255,255,255,.045)
    );

  background-size: 200% 100%;

  animation:
    skeleton-shimmer 1.35s
    linear infinite;
}


.skeleton-button {

  width: 100%;
  height: 50px;

  margin-top: 4px;

  border-radius: 13px;

  background:
    linear-gradient(
      90deg,
      rgba(124,58,237,.20),
      rgba(167,139,250,.30),
      rgba(124,58,237,.20)
    );

  background-size: 200% 100%;

  animation:
    skeleton-shimmer 1.35s
    linear infinite;
}


@keyframes skeleton-shimmer {

  0% {
    background-position:
      200% 0;
  }

  100% {
    background-position:
      -200% 0;
  }

}


/* =========================================================
   BOTTOM NAV
   ========================================================= */

.bottom-nav {

  position: fixed;

  left: 50%;

  bottom:
    calc(
      10px +
      var(--safe-bottom)
    );

  transform:
    translateX(-50%);

  z-index: 200;

  width:
    min(
      calc(100% - 20px),
      650px
    );

  min-height:
    var(--bottom-height);

  display: grid;

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

  align-items: center;

  padding:
    7px 8px;

  border:
    1px solid var(--border);

  border-radius: 24px;

  background:
    rgba(8,8,13,.82);

  box-shadow:
    0 18px 60px rgba(0,0,0,.38);

  backdrop-filter:
    blur(22px);

  -webkit-backdrop-filter:
    blur(22px);
}


.bottom-nav-item {

  position: relative;

  min-width: 0;

  min-height: 62px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 4px;

  color:
    #777784;

  font-size: 9px;

  font-weight: 800;

  transition:
    color .2s ease,
    transform .2s ease;
}


.bottom-nav-item svg {

  width: 21px;
  height: 21px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.7;

  stroke-linecap: round;

  stroke-linejoin: round;
}


.bottom-nav-item.active {

  color:
    var(--purple-light);
}


.bottom-nav-item.active::before {

  content: "";

  position: absolute;

  top: -7px;

  width: 26px;
  height: 3px;

  border-radius: 99px;

  background:
    var(--purple-light);

  box-shadow:
    0 0 14px
    rgba(167,139,250,.65);
}


.bottom-nav-item:active {
  transform: scale(.94);
}


/* =========================================================
   UTILITY
   ========================================================= */

.is-hidden {
  display: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 700px) {

  :root {
    --header-height: 76px;
    --bottom-height: 82px;
  }

  .profile-main {

    padding-top:
      72px;

    padding-bottom:
      45px;
  }

  .profile-avatar {

    width: 92px;
    height: 92px;
  }

  .auth-card,
  .account-card {

    padding:
      36px;
  }

}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1000px) {

  .profile-main {

    width:
      min(
        920px,
        92%
      );
  }

  .profile-header {

    padding:
      0
      max(28px, 5vw);
  }

  .bottom-nav {

    width:
      600px;

    bottom:
      22px;
  }

}


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

@media (max-width: 380px) {

  .brand {
    font-size: 21px;
  }

  .profile-main {
    padding-top: 38px;
  }

  .profile-intro h1 {
    font-size: 31px;
  }

  .auth-card {
    padding: 17px;
  }

  .bottom-nav {
    width:
      calc(100% - 12px);

    bottom:
      calc(
        6px +
        var(--safe-bottom)
      );

    border-radius: 20px;
  }

  .bottom-nav-item {
    min-height: 59px;
  }

  .bottom-nav-item span {
    font-size: 8px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {

    animation-duration:
      .01ms !important;

    animation-iteration-count:
      1 !important;

    scroll-behavior:
      auto !important;

    transition-duration:
      .01ms !important;
  }

}