:root {
  --bg: #f4f8fc;
  --card: #ffffff;
  --ink: #07152f;
  --muted: #718096;
  --line: #dbe6f1;
  --navy: #08285f;
  --navy-2: #0c397b;
  --blue: #1d72d2;
  --ice: #e8f6ff;
  --teal: #18b8c7;
  --silver: #eef3f8;
  --danger: #d63838;
  --ok: #0b8f74;
  --shadow: 0 12px 28px rgba(10, 36, 80, .12);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: #eaf0f6;
}

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

body.app-shell,
body.auth-shell,
body.admin-shell {
  animation: page-in .38s var(--ease-out) both;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background:
    linear-gradient(180deg, rgba(232, 246, 255, .78), rgba(244, 248, 252, 0) 260px),
    var(--bg);
  box-shadow: 0 0 0 1px rgba(8, 40, 95, .06), 0 20px 60px rgba(7, 21, 47, .08);
}

.screen {
  min-height: 100vh;
  padding: 74px 14px 104px;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100%, 430px);
  height: 58px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 0 12px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(24, 184, 199, .45), transparent 36%),
    linear-gradient(135deg, #061836, #0b3777 76%, #129fb1);
  box-shadow: 0 12px 26px rgba(8, 40, 95, .20);
  animation: topbar-in .42s var(--ease-out) both;
}

.topbar strong {
  text-align: center;
  font-size: 16px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.17);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .18s ease, background .18s ease;
}

.icon-btn:hover {
  background: rgba(255,255,255,.24);
  transform: translateY(-1px);
}

.svg-icon {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 50%;
  width: min(100%, 430px);
  height: 74px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 8px 12px 10px;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -16px 34px rgba(10, 36, 80, .12);
  backdrop-filter: blur(10px);
  animation: bottom-nav-in .42s var(--ease-out) both;
}

.bottom-nav a {
  min-width: 0;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #9ba9b8;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.nav-icon .svg-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.85;
}

.nav-label {
  line-height: 1;
}

.bottom-nav a.active {
  color: var(--blue);
  background: transparent;
}

.bottom-nav a.active .nav-icon {
  color: var(--blue);
  background: transparent;
  box-shadow: none;
}

.bottom-nav a.active .nav-icon .svg-icon {
  stroke-width: 2.35;
  animation: nav-pop .32s var(--ease-out) both;
}

.bottom-nav a:active,
.quick-grid a:active,
.btn:active {
  transform: translateY(1px);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 22px 0;
  background: linear-gradient(180deg, #eaf2fb, #f9fbfd);
}

.auth-card {
  width: min(100%, 430px);
  min-height: calc(100vh - 36px);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  animation: card-rise .48s var(--ease-out) both;
}

.auth-card.user-auth {
  width: min(calc(100% - 28px), 396px);
  min-height: auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.auth-hero {
  height: 170px;
  background: center / cover no-repeat;
}

.user-auth .auth-hero {
  position: relative;
  z-index: 1;
  height: 188px;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 14px 32px rgba(8, 40, 95, .15);
  animation: soft-zoom-in .7s var(--ease-out) both;
}

.auth-panel {
  position: relative;
  z-index: 2;
  min-height: 430px;
  margin-top: -28px;
  padding-top: 1px;
  overflow: visible;
  border-radius: 30px 30px 8px 8px;
  background:
    radial-gradient(circle at 50% -26px, rgba(29, 114, 210, .08), transparent 96px),
    #fff;
  box-shadow: 0 -10px 28px rgba(8, 40, 95, .12), 0 18px 42px rgba(8, 40, 95, .10);
  animation: panel-up .5s var(--ease-out) .08s both;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
}

.auth-logo {
  width: 104px;
  height: 104px;
  margin: -52px auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
}

.user-auth .auth-logo {
  position: relative;
  z-index: 3;
  width: 98px;
  height: 98px;
  margin: -50px auto 12px;
  border: 10px solid #fff;
  box-shadow: 0 14px 30px rgba(8, 40, 95, .18);
  animation: logo-pop .54s var(--ease-out) .14s both;
}

.auth-logo img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.user-auth .auth-logo img {
  width: 76px;
  height: 76px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 30px 20px;
  text-align: center;
}

.user-auth .tabs {
  padding: 0 24px 20px;
}

.tabs a,
.tabs span {
  padding: 10px;
  color: #98a2ad;
  font-size: 18px;
  font-weight: 800;
  border-bottom: 3px solid transparent;
}

.tabs .active {
  color: var(--ink);
  border-color: var(--teal);
}

.form {
  display: grid;
  gap: 14px;
  padding: 0 24px 28px;
}

.user-auth .form {
  padding: 0 24px 30px;
}

.field {
  position: relative;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: #eef3f8;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.field textarea {
  padding: 14px 16px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #9bdcea;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(24, 184, 199, .15);
  transform: translateY(-1px);
}

.field .prefix {
  position: absolute;
  top: 0;
  left: 16px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
}

.field.has-prefix input {
  padding-left: 62px;
}

.field .toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 56px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  font-weight: 800;
}

.field .eye-toggle {
  min-width: 38px;
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #8b9aac;
  background: #fff;
  box-shadow: 0 3px 10px rgba(8, 40, 95, .08);
  transition: color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.field .eye-toggle:hover {
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(8, 40, 95, .12);
}

.eye-toggle .svg-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

.eye-toggle .eye-off {
  display: none;
}

.eye-toggle.is-visible .eye-on {
  display: none;
}

.eye-toggle.is-visible .eye-off {
  display: block;
}

.hint {
  color: var(--muted);
  font-size: 12px;
}

.btn {
  width: 100%;
  min-height: 52px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0a2d68, #1d72d2 70%, #18b8c7);
  box-shadow: 0 12px 20px rgba(29, 114, 210, .22);
  font-weight: 900;
  letter-spacing: .4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -72%;
  width: 54%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.34), transparent);
  transform: skewX(-18deg);
  transition: transform .58s ease;
}

.btn:hover {
  filter: saturate(1.06);
  transform: translateY(-1px);
  box-shadow: 0 15px 25px rgba(29, 114, 210, .28);
}

.btn:hover::after {
  transform: translateX(330%) skewX(-18deg);
}

.btn.secondary {
  color: var(--navy);
  background: var(--ice);
  box-shadow: none;
}

.btn.secondary:hover {
  box-shadow: 0 9px 18px rgba(10, 36, 80, .08);
}

.btn.is-copied {
  background: linear-gradient(135deg, #0b8f74, #16b6a5);
  animation: nav-pop .28s var(--ease-out) both;
}

.btn.danger {
  background: var(--danger);
}

.btn.small {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.btn:disabled {
  cursor: not-allowed;
}

.alert,
.notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #0c4f45;
  background: #e8faf7;
  border: 1px solid #bceee5;
  font-size: 13px;
  font-weight: 700;
  animation: notice-in .32s var(--ease-out) both;
}

.alert.error {
  color: #7f1d1d;
  background: #fff0f0;
  border-color: #ffd2d2;
}

.welcome-modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 21, 47, .54);
  backdrop-filter: blur(5px);
  animation: fade-in .18s ease both;
}

.welcome-modal-backdrop.is-closing {
  animation: fade-out .18s ease both;
}

.welcome-modal {
  width: min(100%, 360px);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(5, 17, 42, .30);
  animation: modal-up .26s var(--ease-out) both;
}

.welcome-modal-backdrop.is-closing .welcome-modal {
  animation: modal-down .18s ease both;
}

.welcome-modal-head {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 20px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(24, 184, 199, .45), transparent 34%),
    linear-gradient(135deg, #071b42, #0b3f84 76%, #13aabc);
}

.welcome-modal-head strong {
  min-width: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.welcome-modal-head button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.18);
  cursor: pointer;
}

.welcome-modal-head button .svg-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.welcome-modal-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.welcome-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  border: 1px solid #e3eef7;
  border-radius: 8px;
  background: #f3f9fc;
}

.welcome-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
}

.welcome-icon .svg-icon {
  width: 19px;
  height: 19px;
}

.welcome-row span:not(.welcome-icon) {
  min-width: 0;
  color: #26384e;
  font-size: 13px;
  font-weight: 800;
}

.welcome-row b {
  max-width: 142px;
  color: #0b4f91;
  text-align: right;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.welcome-channel {
  min-height: 52px;
  margin-top: 6px;
  grid-auto-flow: column;
  justify-content: center;
  gap: 8px;
}

.welcome-channel .svg-icon {
  width: 18px;
  height: 18px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modal-up {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-img,
.card-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.hero-img {
  height: 166px;
  box-shadow: 0 10px 24px rgba(10, 36, 80, .10);
  animation: hero-in .58s var(--ease-out) both;
}

.card,
.quick-panel,
.plan-card {
  border: 1px solid rgba(219, 230, 241, .8);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover,
.quick-panel:hover,
.plan-card:hover {
  border-color: rgba(24, 184, 199, .34);
  box-shadow: 0 16px 34px rgba(10, 36, 80, .14);
  transform: translateY(-2px);
}

.balance-card {
  margin-top: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 96px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(135deg, #071b42, #0c4d93 68%, #16b6c6);
  box-shadow: var(--shadow);
  animation: card-rise .5s var(--ease-out) .08s both;
  isolation: isolate;
  position: relative;
}

.balance-card::before,
.profile-balance::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.12) 42%, transparent 64%);
  transform: translateX(-120%);
  animation: soft-sheen 4.8s ease-in-out 1.1s infinite;
}

.balance-card img {
  width: 112px;
  margin-right: -12px;
  animation: float-soft 4.2s ease-in-out infinite;
}

.balance-card small {
  color: rgba(255,255,255,.72);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.balance-card strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
}

.quick-grid {
  margin: 12px 0 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-grid a {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f8fbfe);
  border: 1px solid rgba(219, 230, 241, .95);
  box-shadow: 0 8px 18px rgba(10, 36, 80, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: item-rise .42s var(--ease-out) both;
}

.quick-grid a:nth-child(2) {
  animation-delay: .05s;
}

.quick-grid a:nth-child(3) {
  animation-delay: .1s;
}

.quick-grid a:nth-child(4) {
  animation-delay: .15s;
}

.quick-grid a:hover {
  border-color: rgba(24, 184, 199, .36);
  box-shadow: 0 12px 22px rgba(10, 36, 80, .10);
  transform: translateY(-2px);
}

.quick-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.30), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--blue) 72%, var(--teal));
  box-shadow: 0 9px 18px rgba(29, 114, 210, .20);
  transition: transform .2s ease;
}

.quick-grid a:hover .quick-icon {
  transform: translateY(-1px) scale(1.04);
}

.quick-icon .svg-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.section-title {
  margin: 18px 2px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 16px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 14px 0;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(10, 36, 80, .06);
}

.segmented a {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.segmented a.active {
  color: #fff;
  background: var(--navy);
  animation: segment-in .28s var(--ease-out) both;
}

.plans {
  display: grid;
  gap: 14px;
}

.plan-card {
  overflow: hidden;
  animation: item-rise .44s var(--ease-out) both;
}

.plan-card:nth-child(2) {
  animation-delay: .06s;
}

.plan-card:nth-child(3) {
  animation-delay: .12s;
}

.plan-card:nth-child(4) {
  animation-delay: .18s;
}

.plan-card .media {
  height: 138px;
  background: center / cover no-repeat;
  transition: transform .45s var(--ease-out);
}

.plan-card:hover .media {
  transform: scale(1.035);
}

.plan-body {
  padding: 14px;
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--ice);
  font-size: 11px;
  font-weight: 900;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0;
}

.stat {
  min-width: 0;
  padding: 10px 4px;
  text-align: center;
  border-radius: 8px;
  background: #f5f8fb;
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.stat span {
  color: var(--muted);
  font-size: 10px;
}

.list {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  animation: card-rise .42s var(--ease-out) both;
}

.list a,
.list-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease, transform .18s ease;
  animation: item-rise .38s var(--ease-out) both;
}

.list a:hover,
.list-row:hover {
  background: #f8fbfe;
}

.list a:last-child,
.list-row:last-child {
  border-bottom: 0;
}

.list .badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: linear-gradient(180deg, #eff9ff, #e8f2fb);
  font-weight: 900;
}

.list .badge .svg-icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.15;
}

.list small {
  color: var(--muted);
}

.profile-hero {
  position: relative;
  margin-top: -4px;
}

.profile-cover {
  height: 142px;
  border-radius: 8px;
  background: center / cover no-repeat;
  box-shadow: 0 12px 26px rgba(10, 36, 80, .10);
  animation: soft-zoom-in .62s var(--ease-out) both;
}

.profile-card {
  position: relative;
  margin: -34px 8px 0;
  padding: 16px;
  border: 1px solid rgba(219, 230, 241, .88);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 36px rgba(10, 36, 80, .13);
  backdrop-filter: blur(8px);
  animation: panel-up .48s var(--ease-out) .08s both;
}

.profile-top {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #eef7ff);
  box-shadow: inset 0 0 0 1px rgba(219, 230, 241, .8), 0 10px 20px rgba(10, 36, 80, .12);
  animation: logo-pop .5s var(--ease-out) .18s both;
}

.profile-avatar img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.profile-id {
  min-width: 0;
}

.profile-id span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.profile-id h2 {
  margin: 3px 0;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.profile-id p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.vip-chip {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue) 74%, var(--teal));
  box-shadow: 0 8px 18px rgba(29, 114, 210, .24);
  font-size: 12px;
  white-space: nowrap;
}

.profile-balance {
  margin-top: 16px;
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr 96px;
  align-items: center;
  padding: 18px 14px 18px 18px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(24, 184, 199, .34), transparent 36%),
    linear-gradient(135deg, #061936, #0b3b7c 78%, #12aabb);
  isolation: isolate;
  position: relative;
}

.profile-balance small {
  color: rgba(255,255,255,.74);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.profile-balance strong {
  display: block;
  margin-top: 6px;
  font-size: 27px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profile-balance img {
  width: 112px;
  margin-right: -22px;
  animation: float-soft 4.4s ease-in-out infinite;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.profile-actions a {
  min-height: 48px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue) 74%, var(--teal));
  box-shadow: 0 10px 18px rgba(29, 114, 210, .18);
  font-size: 13px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}

.profile-actions a:nth-child(2) {
  color: var(--navy);
  background: #eef7ff;
  box-shadow: none;
}

.profile-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 22px rgba(29, 114, 210, .22);
}

.profile-actions .svg-icon {
  width: 19px;
  height: 19px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0;
}

.profile-stats div {
  min-width: 0;
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid rgba(219, 230, 241, .88);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10, 36, 80, .06);
  text-align: center;
  animation: item-rise .4s var(--ease-out) both;
}

.profile-stats div:nth-child(2) {
  animation-delay: .05s;
}

.profile-stats div:nth-child(3) {
  animation-delay: .1s;
}

.profile-stats div:nth-child(4) {
  animation-delay: .15s;
}

.profile-stats strong {
  color: var(--blue);
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.profile-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.vip-status,
.invite-mini {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(219, 230, 241, .9);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: card-rise .42s var(--ease-out) both;
}

.vip-status-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.vip-status h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.vip-status p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.vip-status-head > strong {
  color: var(--blue);
  font-size: 13px;
  white-space: nowrap;
}

.vip-progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f9;
}

.vip-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform-origin: left;
  animation: progress-grow .72s var(--ease-out) .2s both;
}

.invite-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.invite-mini small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.invite-mini strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  letter-spacing: .6px;
}

.invite-mini .btn {
  grid-auto-flow: column;
  gap: 7px;
}

.invite-mini .svg-icon {
  width: 16px;
  height: 16px;
}

.profile-section-title {
  margin-top: 18px;
}

.profile-menu {
  display: grid;
  gap: 10px;
}

.profile-menu a {
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(219, 230, 241, .9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10, 36, 80, .06);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: item-rise .38s var(--ease-out) both;
}

.profile-menu a:nth-child(2) {
  animation-delay: .04s;
}

.profile-menu a:nth-child(3) {
  animation-delay: .08s;
}

.profile-menu a:nth-child(4) {
  animation-delay: .12s;
}

.profile-menu a:nth-child(5) {
  animation-delay: .16s;
}

.profile-menu a:nth-child(6) {
  animation-delay: .2s;
}

.profile-menu a:active {
  transform: translateY(1px);
}

.profile-menu a:hover {
  box-shadow: 0 12px 24px rgba(10, 36, 80, .09);
}

.profile-menu a > div {
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
}

.profile-menu small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-menu i {
  display: grid;
  place-items: center;
  color: #a4b0bd;
  font-style: normal;
}

.profile-menu i .svg-icon {
  width: 18px;
  height: 18px;
}

.profile-menu .danger-row .badge {
  color: #d63838;
  background: #fff2f2;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.amount-grid label {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.amount-grid label:hover {
  border-color: rgba(24, 184, 199, .44);
  box-shadow: 0 8px 16px rgba(10, 36, 80, .07);
  transform: translateY(-1px);
}

.amount-grid input {
  display: none;
}

.amount-grid input:checked + span {
  color: var(--teal);
  animation: nav-pop .28s var(--ease-out) both;
}

.share-card {
  padding: 14px;
}

.share-card img {
  width: 100%;
  border-radius: 8px;
  animation: soft-zoom-in .58s var(--ease-out) both;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #f6f9fc;
}

.action-hero,
.team-hero {
  min-height: 156px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(135deg, #061936, #0c397b 70%, #18b8c7);
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
  animation: hero-in .58s var(--ease-out) both;
}

.withdraw-hero {
  background:
    radial-gradient(circle at 88% 14%, rgba(255,255,255,.18), transparent 35%),
    linear-gradient(135deg, #0b233d, #0c4d93 70%, #0b8f74);
}

.bank-hero {
  grid-template-columns: minmax(0, 1fr) 66px;
}

.action-hero::before,
.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.13) 42%, transparent 64%);
  transform: translateX(-120%);
  animation: soft-sheen 4.8s ease-in-out .8s infinite;
}

.action-hero small,
.team-hero small {
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.action-hero strong,
.team-hero strong {
  display: block;
  margin-top: 5px;
  font-size: 27px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.action-hero p,
.team-hero p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.action-hero img {
  width: 126px;
  margin-right: -20px;
  animation: float-soft 4.2s ease-in-out infinite;
}

.hero-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.hero-badge .svg-icon {
  width: 30px;
  height: 30px;
}

.mini-stats,
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.mini-stats div,
.level-grid div {
  min-width: 0;
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px 6px;
  border: 1px solid rgba(219, 230, 241, .9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10, 36, 80, .06);
  text-align: center;
  animation: item-rise .4s var(--ease-out) both;
}

.mini-stats div:nth-child(2),
.level-grid div:nth-child(2) {
  animation-delay: .05s;
}

.mini-stats div:nth-child(3),
.level-grid div:nth-child(3) {
  animation-delay: .1s;
}

.mini-stats span,
.level-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-stats strong,
.level-grid strong {
  color: var(--blue);
  font-size: 14px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.premium-form {
  margin-top: 14px;
  padding: 16px;
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-head b {
  min-width: 0;
  font-size: 15px;
}

.form-head.compact {
  margin-top: 6px;
}

.form-head a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.status-chip {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--ice);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-chip.pending {
  color: #9a6500;
  background: #fff6df;
}

.status-chip.approved,
.status-chip.paid {
  color: #08715f;
  background: #e8faf7;
}

.status-chip.rejected {
  color: #b32626;
  background: #fff0f0;
}

.amount-status {
  min-width: 82px;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.amount-status b {
  color: var(--blue);
  font-size: 13px;
  white-space: nowrap;
}

.settlement-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.settlement-preview span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #32516f;
  background: #f3f9fc;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.transaction-list .list-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.team-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.team-hero .btn {
  width: auto;
  min-width: 110px;
  grid-auto-flow: column;
  gap: 7px;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.team-hero .btn .svg-icon {
  width: 16px;
  height: 16px;
}

.team-stats {
  grid-template-columns: 1.2fr 1.2fr .8fr;
}

.level-grid div {
  min-height: 82px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 12%, rgba(255,255,255,.22), transparent 32%),
    linear-gradient(135deg, #092454, #1d72d2 78%, #18b8c7);
}

.level-grid b {
  font-size: 12px;
}

.level-grid strong {
  color: #fff;
  font-size: 24px;
}

.level-grid span {
  color: rgba(255,255,255,.78);
}

.team-list {
  display: grid;
  gap: 10px;
}

.member-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(219, 230, 241, .9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10, 36, 80, .06);
  animation: item-rise .38s var(--ease-out) both;
  transition: transform .18s ease, box-shadow .18s ease;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(10, 36, 80, .1);
}

.member-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue) 74%, var(--teal));
  font-weight: 900;
}

.member-card div {
  min-width: 0;
}

.member-card b {
  display: block;
  overflow-wrap: anywhere;
}

.member-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.member-meta {
  justify-items: end;
  text-align: right;
}

.member-meta span {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--ice);
  font-size: 10px;
  font-weight: 900;
}

.member-meta strong {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 12px;
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bank-cell {
  min-width: 190px;
}

.bank-cell small {
  color: var(--muted);
}

.empty {
  padding: 44px 20px;
  color: var(--muted);
  text-align: center;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #f5f7fb;
}

.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  color: #fff;
  background: #071b42;
  animation: admin-side-in .42s var(--ease-out) both;
}

.admin-side img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.admin-side a {
  padding: 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.78);
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.admin-side a.active,
.admin-side a:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
  transform: translateX(2px);
}

.admin-main {
  padding: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-card {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: item-rise .4s var(--ease-out) both;
  transition: transform .2s ease, box-shadow .2s ease;
}

.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 36, 80, .13);
}

.table-wrap {
  overflow: auto;
  margin-top: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: card-rise .42s var(--ease-out) both;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
}

td input,
td select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

td input:focus,
td select:focus,
.inline-form input:focus,
.inline-form select:focus {
  outline: 0;
  border-color: #9bdcea;
  box-shadow: 0 0 0 3px rgba(24, 184, 199, .13);
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes topbar-in {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes bottom-nav-in {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.985);
    filter: saturate(.86);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes item-rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-zoom-in {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logo-pop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(.86);
  }
  70% {
    transform: translateY(0) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nav-pop {
  0% {
    transform: scale(.9);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes segment-in {
  from {
    transform: scale(.96);
  }
  to {
    transform: scale(1);
  }
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-down {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
}

@keyframes float-soft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes soft-sheen {
  0%, 38% {
    transform: translateX(-120%);
  }
  58%, 100% {
    transform: translateX(120%);
  }
}

@keyframes progress-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes admin-side-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 800px) {
  .admin-shell {
    display: block;
  }

  .admin-side {
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
  }

  .admin-side strong {
    display: none;
  }

  .admin-main {
    padding: 14px;
  }

  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
