*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

:root {
  --bg:          #0c0a13;
  --bg-card:     rgba(15, 13, 22, 0.92);
  --accent:      #c7bedf;
  --text:        #dfd9f0;
  --muted:       rgba(223, 217, 240, 0.58);
  --border:      #1e1c25;
  --border-btn:  #d0c8e5;
  --font:        'Geist', system-ui, sans-serif;
  --grad-text:   linear-gradient(108deg, #c7bedf 0%, #7b7296 100%);
  --grad-btn:    linear-gradient(180deg, #c7bedf 0%, #a399c0 100%);
  --nav-h:       76px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
@media (max-width: 680px) {
  body { padding-bottom: 72px; }
}

.page-wrapper {
  position: relative;
  min-height: 100vh;
}

.orb {
  position: fixed;
  border-radius: 50%;
  background: rgba(199, 190, 223, 0.55);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn-solid,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 36px;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  transition: opacity .2s, background .2s, box-shadow .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-solid {
  background: var(--grad-btn);
  border: 1px solid var(--border-btn);
  color: #0f0d16;
}
.btn-solid:hover { opacity: .88; }

.btn-glow {
  box-shadow: 0 0 24px rgba(199, 190, 223, 0);
  transition: opacity .2s, box-shadow .3s;
}
.btn-glow:hover {
  opacity: .9;
  box-shadow: 0 0 32px rgba(199, 190, 223, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(33, 31, 40, .5); }

.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 16px 16px 0;
}
.navbar {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(15, 13, 22, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  border-top: 1.5px solid rgba(199, 190, 223, .08);
  pointer-events: none;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item {
  padding: 5px 11px;
  border-radius: 18px;
  font-size: .9rem;
  font-weight: 400;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.nav-item.active,
.nav-item:hover {
  background: rgba(33, 31, 40, .55);
  color: var(--text);
}
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .nav-links  { display: none; }
  .nav-buttons { display: none; }
}

.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.sec-label {
  text-align: center;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  opacity: .9;
}

.hero {
  position: relative;
  z-index: 1;
  padding-top: 165px;
  padding-bottom: 60px;
}
.hero-wrap {
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
@media (max-width: 860px) {
  .hero-wrap { flex-direction: column; align-items: flex-start; gap: 40px; }
  .hero { padding-top: 130px; }
}

.hero-left { flex-shrink: 0; max-width: 390px; }
@media (max-width: 860px) { .hero-left { max-width: 100%; } }

.hero-heading {
  font-size: clamp(54px, 7vw, 74px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -1.5px;
  background: linear-gradient(153deg, #dfd9f0 0%, #9b93bc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted);
  margin-left: 1px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
.social-icon {
  display: flex;
  align-items: center;
  width: 36px; height: 36px;
  justify-content: center;
  color: var(--muted);
  transition: color .2s, transform .2s;
}
.social-icon:hover {
  color: var(--text);
  transform: scale(1.15);
}

.hero-right {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 540px;
}
@media (max-width: 860px) { .hero-right { max-width: 100%; } }

.hero-glow {
  position: absolute;
  width: 440px; height: 440px;
  top: 50px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(199, 190, 223, 0.3);
  filter: blur(260px);
  pointer-events: none;
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: heroFloat 2s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  from { transform: translateY(0px);  }
  to   { transform: translateY(-12px); }
}

.animate-hero-left {
  animation: slideInLeft .9s cubic-bezier(.16,1,.3,1) both;
}
.animate-hero-right {
  animation: slideInRight .9s cubic-bezier(.16,1,.3,1) .15s both;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 1;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .1s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .2s; }

.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.features-row--center {
  grid-template-columns: repeat(2, 1fr);
  max-width: calc(66.66% + 6px);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .features-row,
  .features-row--center { grid-template-columns: 1fr; max-width: 100%; }
}

.feat-card {
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feat-card:hover {
  border-color: rgba(30, 28, 37, 1);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.feat-inner {
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(136deg, rgba(199,190,223,.035) 0%, transparent 100%);
}
.feat-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.feat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  background-color: rgba(199, 190, 223, 0.1);
  border: 1px solid rgba(199, 190, 223, 0.2);
  border-radius: 8px;
  margin-top: 1px;
}
.feat-head h3 {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  padding-top: 6px;
  line-height: 1.25;
}
.feat-inner p {
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

.pricing-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
}
@media (max-width: 700px) {
  .pricing-row { grid-template-columns: 1fr; }
}

.price-card {
  position: relative;
  width: 100%;
  max-width: 276px;
  min-height: 320px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
@media (max-width: 700px) {
  .price-card { max-width: 100%; }
}
.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(136deg, rgba(199,190,223,.035) 0%, transparent 100%);
  pointer-events: none;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.price-card--hot {
  border-color: rgba(223, 217, 240, .42);
}
.price-card--hot:hover {
  border-color: rgba(199, 190, 223, .7);
  box-shadow: 0 12px 40px rgba(199,190,223,.12);
}

.price-name {
  padding: 30px 24px 0;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text);
}
.price-tag {
  display: flex;
  align-items: flex-start;
  padding: 24px 24px 0;
}
.price-big {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.price-dec {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 12px;
  margin-left: 1px;
}
.price-key {
  padding: 10px 24px 0;
  font-size: .8125rem;
  color: var(--muted);
}
.price-hr {
  margin: 24px 32px 0;
  border: none;
  border-top: 1px solid var(--border);
}
.price-desc {
  padding: 18px 22px 0;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  flex: 1;
}
.price-action {
  display: flex;
  justify-content: center;
  padding: 18px 22px 22px;
}
.price-btn { min-width: 140px; }

.showcase-wrap { max-width: 900px; }

.carousel { position: relative; }
.carousel-viewport {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.carousel-slide { flex: 0 0 100%; }
.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.car-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 20px;
  background: rgba(12, 10, 19, .65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.06);
}
.car-btn:hover {
  background: rgba(12, 10, 19, .9);
  transform: translateY(-50%) scale(1.07);
}
.car-prev { left: 18px; }
.car-next { right: 18px; }

.reviews-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
}
@media (max-width: 700px) {
  .reviews-row { grid-template-columns: 1fr; }
}

.rev-card {
  position: relative;
  width: 100%;
  max-width: 276px;
  min-height: 210px;
  border-radius: 30px;
  overflow: hidden;
  transition: transform .25s;
}
.rev-card:hover { transform: translateY(-3px); }
@media (max-width: 700px) { .rev-card { max-width: 100%; } }

.rev-bg {
    position: absolute;
    inset: 0;
    border-radius: 30px;

    background: rgba(15, 13, 22, 0.90);

    border: 1px solid rgba(199, 190, 223, 0.08);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    overflow: hidden;
}

.rev-bg::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -100px;
    right: -60px;
    border-radius: 50%;
    background: rgba(15, 13, 22, 0.9);
    filter: blur(80px);
    pointer-events: none;
}

.rev-bg::after {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: inherit;

    background: linear-gradient(150deg, rgba(199, 190, 223, 0.05) 20%, rgba(0, 0, 0, 0) 60%);

    pointer-events: none;
}

.rev-content {
    position: relative;
    z-index: 2;

    padding: 18px 20px 20px;

    display: flex;
    flex-direction: column;

    height: 100%;
}

.rev-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.rev-user {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rev-avatar {
    width: 35px;
    height: 35px;

    border-radius: 50%;

    border: 1.5px solid rgba(199, 190, 223, .35);

    object-fit: cover;

    margin-top: 2px;

    flex-shrink: 0;
}

.rev-name {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}

.rev-role {
    font-size: .8rem;
    color: var(--muted);
    margin-top: 2px;
}

.rev-quote-icon {
    flex-shrink: 0;
    width: 17px;
    height: 12px;
    margin-top: 3px;
    opacity: .8;
}

.rev-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 14px;
}

.rev-stars img {
    display: inline-block;
}

.star-dim {
    opacity: .25;
}

.rev-text {
    margin-top: 12px;

    font-size: .8125rem;
    line-height: 1.6;

    color: var(--muted);
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1px solid rgba(30, 28, 37, .8);
  background: rgba(10, 8, 18, .98);
}
.footer-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(199,190,223,.05) 0%, transparent 60%);
  pointer-events: none;
}

.footer-top { padding: 56px 0 40px; }
.footer-top-inner {
  max-width: 1060px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 720px) {
  .footer-top-inner { grid-template-columns: 1fr; gap: 40px; }
}

.footer-brand {}
.footer-logo {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: .8375rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 13, 22, .7);
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social-btn:hover {
  color: var(--text);
  border-color: rgba(199, 190, 223, .3);
  background: rgba(199, 190, 223, .06);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
.fcol-title {
  font-size: .9375rem;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.fcol-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fcol-list a {
  font-size: .875rem;
  color: var(--muted);
  transition: color .2s, padding-left .2s;
}
.fcol-list a:hover {
  color: var(--text);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(30, 28, 37, .6);
  padding: 16px 0;
}
.footer-bottom-inner {
  max-width: 1060px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy,
.footer-note {
  font-size: .8rem;
  color: rgba(223, 217, 240, .35);
}

.bottom-tabs {
  display: none;
}
@media (max-width: 680px) {
  .navbar {
    max-width: 116px;
    min-height: 40px;
  }

  .hero { padding-top: 90px; }

  .bottom-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(12px + env(safe-area-inset-bottom));

    display: flex;
    justify-content: center;

    z-index: 300;
  }

  .tabs-inner {
    display: flex;
    align-items: center;

    gap: 0px;

    width: fit-content;
    max-width: 92%;

    padding: 10px 12px;

    border-radius: 50px;

    background: rgba(15, 13, 22, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border: 1px solid rgba(199, 190, 223, 0.14);

    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  }

  .tab-item {
    flex: 0 0 auto;
    width: 54px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    font-size: 10px;
    color: rgba(223, 217, 240, 0.45);

    position: relative;

    transition: transform .1s ease, color .2s ease;
  }

  .tab-item svg {
    width: 20px;
    height: 20px;
  }

  .tab-item:active {
    transform: scale(0.8);
  }

  .tab-item.active {
    color: #c7bedf;
    background: rgba(33, 31, 40, .55);
    border-radius: 50px;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 6, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.modal-open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  border: 1px solid rgba(199, 190, 223, 0.12);
  background: rgba(14, 12, 22, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(18px) scale(0.97);
  transition: transform .28s cubic-bezier(.16,1,.3,1), opacity .25s ease;
  opacity: 0;
}
.modal-overlay.modal-open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 0;
}
.modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}
.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.modal-close:hover {
  background: rgba(199, 190, 223, 0.08);
  color: var(--text);
}

.modal-body {
  padding: 20px 24px 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 420px) {
  .modal-row { grid-template-columns: 1fr; }
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text);
}

.modal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.modal-input-wrap .modal-input {
  padding-right: 42px;
}

.modal-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 50px;
  border: 1px solid rgba(30, 28, 37, 0.7);
  background: rgba(15, 13, 2, 0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: .875rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.modal-input::placeholder { color: rgba(223, 217, 240, 0.3); }
.modal-input:focus {
  border-color: rgba(199, 190, 223, 0.6);
  background: rgba(15, 13, 2, 0.04);
}
.modal-input--mono {
  font-family: 'Courier New', monospace;
  letter-spacing: .04em;
}

.modal-eye {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: color .15s;
}
.modal-eye:hover { color: var(--text); }

.modal-switch-text {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: -2px;
}
.modal-switch-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: inherit;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: opacity .15s;
}
.modal-switch-link:hover { opacity: .75; }

.modal-error {
  font-size: .8125rem;
  color: #f87171;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.modal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 24px;
}
.modal-btn-primary {
  flex: 1;
  height: 42px;
  font-size: .9375rem;
  font-weight: 600;
}
.modal-btn-cancel {
  flex: 1;
  height: 42px;
  font-size: .9375rem;
}

.panel-section {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.panel-wrap {
  max-width: 720px;
}

.panel-header {
  text-align: center;
  margin-bottom: 40px;
}

.panel-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(153deg, #dfd9f0 0%, #9b93bc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.panel-subtitle {
  font-size: .9375rem;
  color: var(--muted);
}

.panel-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 16px;
}

.panel-card-inner {
  padding: 24px;
  border-radius: inherit;
  background: linear-gradient(136deg, rgba(199,190,223,.035) 0%, transparent 100%);
}

.panel-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(199, 190, 223, 0.1);
  border: 1px solid rgba(199, 190, 223, 0.2);
  border-radius: 12px;
  color: var(--accent);
}

.panel-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.panel-card-desc {
  font-size: .8125rem;
  color: var(--muted);
}

.panel-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 520px) {
  .panel-info-grid { grid-template-columns: 1fr; }
}

.panel-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(12, 10, 19, 0.5);
  border: 1px solid rgba(30, 28, 37, 0.5);
}

.panel-info-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.panel-info-value {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.panel-badge--active {
  background: rgba(199, 190, 223, 0.2);
  border: 1px solid rgba(199, 190, 223, 0.3);
  color: var(--accent);
}

.panel-badge--inactive {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #f87171;
}

.panel-badge--muted {
  background: rgba(223, 217, 240, 0.08);
  border: 1px solid rgba(223, 217, 240, 0.15);
  color: var(--muted);
}

.panel-actions-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .panel-actions-row { grid-template-columns: 1fr; }
}

.panel-action-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}

.panel-action-btn:hover {
  border-color: rgba(199, 190, 223, 0.25);
  background: rgba(199, 190, 223, 0.06);
  transform: translateY(-2px);
}

.panel-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(199, 190, 223, 0.1);
  color: var(--accent);
}

.panel-action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.panel-action-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.panel-action-desc {
  font-size: .75rem;
  color: var(--muted);
}

.panel-key-form {
  margin-top: 8px;
}

.panel-key-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 520px) {
  .panel-key-input-wrap { flex-direction: column; }
  .panel-key-input-wrap > * { width: 100%; }
}

.panel-key-input {
  flex: 1;
  height: 46px;
  padding: 0 18px;
  border-radius: 50px;
  border: 1px solid rgba(30, 28, 37, 0.7);
  background: rgba(15, 13, 22, 0.6);
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: .9375rem;
  letter-spacing: .03em;
  outline: none;
  transition: border-color .2s, background .2s;
}

.panel-key-input::placeholder {
  color: rgba(223, 217, 240, 0.28);
  font-family: var(--font);
}

.panel-key-input:focus {
  border-color: rgba(199, 190, 223, 0.6);
  background: rgba(15, 13, 22, 0.8);
}

.panel-key-btn {
  height: 46px;
  padding: 0 24px;
  font-size: .9375rem;
  font-weight: 600;
}

.panel-key-hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 10px;
  opacity: .7;
}

.panel-key-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #f87171;
  font-size: .8125rem;
}

.panel-key-success {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
  font-size: .8125rem;
}

.panel-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.panel-sub-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(12, 10, 19, 0.5);
  border: 1px solid rgba(30, 28, 37, 0.5);
}

.panel-sub-label {
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.panel-sub-value {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}

.panel-sub-value--mono {
  font-family: 'Courier New', monospace;
  font-size: .8rem;
}

.panel-sub-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 420px) {
  .panel-sub-actions { flex-direction: column; }
  .panel-sub-actions > * { width: 100%; }
}

.panel-sub-btn {
  min-width: 140px;
  height: 40px;
}

.modal-box--wide {
  max-width: 480px;
}

.modal-hint {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.modal-success {
  font-size: .8125rem;
  color: #4ade80;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.modal-input--center {
  text-align: center;
}

.modal-input--code {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  letter-spacing: .3em;
  text-align: center;
}

.tfa-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(12, 10, 19, 0.6);
}

.tfa-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
  text-align: center;
}

.tfa-tab:hover {
  color: var(--text);
}

.tfa-tab.active {
  background: rgba(199, 190, 223, 0.15);
  color: var(--text);
}

.tfa-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tfa-intro {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.tfa-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.tfa-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 160px;
  height: 160px;
  border-radius: 16px;
  background: rgba(12, 10, 19, 0.6);
  border: 1px solid rgba(30, 28, 37, 0.7);
  color: var(--muted);
  font-size: .75rem;
}

.tfa-qr-image {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  border: 1px solid rgba(30, 28, 37, 0.7);
}

.tfa-secret-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tfa-secret-label {
  font-size: .75rem;
  color: var(--muted);
}

.tfa-secret-code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(12, 10, 19, 0.6);
  border: 1px solid rgba(30, 28, 37, 0.7);
}

.tfa-secret-code code {
  font-family: 'Courier New', monospace;
  font-size: .875rem;
  color: var(--text);
  letter-spacing: .05em;
}

.tfa-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color .15s, background .15s;
}

.tfa-copy-btn:hover {
  color: var(--text);
  background: rgba(199, 190, 223, 0.1);
}

.admin-body {
  overflow-x: hidden;
  background: var(--bg);
}

.admin-body .orb {
  position: fixed;
  border-radius: 50%;
  background: rgba(199, 190, 223, 0.25);
  pointer-events: none;
  z-index: 0;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  background: rgba(12, 10, 19, 0.95);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 12px;
}

.admin-logo {
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .02em;
  padding: 0 8px;
  margin-bottom: 28px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: background .2s, color .2s;
  cursor: pointer;
}

.admin-nav-item:hover {
  background: rgba(199, 190, 223, 0.08);
  color: var(--text);
}

.admin-nav-item.active {
  background: rgba(199, 190, 223, 0.15);
  color: var(--text);
}

.admin-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-nav-text {
  flex: 1;
}

.admin-nav-badge {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(199, 190, 223, 0.15);
  color: var(--accent);
}

.admin-nav-badge--active {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .admin-sidebar {
    width: 72px;
  }
  .admin-nav-text,
  .admin-nav-badge,
  .admin-sidebar-footer .admin-nav-text {
    display: none;
  }
  .admin-nav-item {
    justify-content: center;
    padding: 12px;
  }
  .admin-logo {
    text-align: center;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .admin-sidebar {
    display: none;
  }
}

.admin-main {
  flex: 1;
  margin-left: 240px;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .admin-main {
    margin-left: 72px;
  }
}

@media (max-width: 640px) {
  .admin-main {
    margin-left: 0;
  }
}

.admin-content {
  padding: 24px 32px;
}

@media (max-width: 900px) {
  .admin-content {
    padding: 20px;
  }
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-header-left {}

.admin-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.admin-page-desc {
  font-size: .875rem;
  color: var(--muted);
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.admin-header-btn:hover {
  background: rgba(199, 190, 223, 0.08);
  color: var(--text);
}

.admin-notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 50px;
  background: rgba(15, 13, 22, 0.8);
  border: 1px solid var(--border);
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(199, 190, 223, 0.3), rgba(199, 190, 223, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}

.admin-user-info {
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text);
}

.admin-user-role {
  font-size: .7rem;
  color: var(--muted);
}

@media (max-width: 420px) {
  .admin-user-info {
    display: none;
  }
}

.admin-section {
  display: none;
  animation: fadeInUp .3s ease;
}

.admin-section--active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(199, 190, 223, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.admin-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(199, 190, 223, 0.1);
  border: 1px solid rgba(199, 190, 223, 0.15);
  color: var(--accent);
}

.admin-stat-icon--users {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.admin-stat-icon--sessions {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

.admin-stat-icon--subs {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.admin-stat-icon--revenue {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.2);
  color: #a78bfa;
}

.admin-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.admin-stat-label {
  font-size: .8rem;
  color: var(--muted);
}

.admin-stat-trend {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 600;
}

.admin-stat-trend--up {
  color: #4ade80;
}

.admin-stat-trend--down {
  color: #f87171;
}

.admin-stat-live {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 500;
  color: #34d399;
}

.admin-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.admin-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 800px) {
  .admin-charts-row {
    grid-template-columns: 1fr;
  }
}

.admin-chart-card {
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.admin-chart-title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
}

.admin-chart-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .8125rem;
  font-family: var(--font);
  cursor: pointer;
}

.admin-chart-body {
  padding: 20px;
  height: 180px;
}

.admin-chart-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.admin-chart-bar {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(199, 190, 223, 0.4), rgba(199, 190, 223, 0.15));
  transition: height .3s ease;
}

.admin-chart-labels {
  display: flex;
  gap: 12px;
}

.admin-chart-labels span {
  flex: 1;
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
}

.admin-chart-placeholder--line {
  padding: 0;
}

.admin-line-chart {
  width: 100%;
  height: 100%;
}

.admin-table-card {
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.admin-table-title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
}

.admin-table-link {
  font-size: .8125rem;
  color: var(--accent);
  cursor: pointer;
  transition: opacity .2s;
}

.admin-table-link:hover {
  opacity: .75;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  font-size: .875rem;
  color: var(--text);
  border-bottom: 1px solid rgba(30, 28, 37, 0.5);
  white-space: nowrap;
}

.admin-table-row--hover:hover {
  background: rgba(199, 190, 223, 0.04);
}

.admin-table-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-table-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(199, 190, 223, 0.25), rgba(199, 190, 223, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.admin-table-username {
  font-weight: 500;
}

.admin-table-subtext {
  display: block;
  font-size: .75rem;
  color: var(--muted);
}

.admin-table-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
}

.admin-table-badge--success {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ade80;
}

.admin-table-badge--danger {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #f87171;
}

.admin-table-badge--warning {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}

.admin-table-badge--muted {
  background: rgba(223, 217, 240, 0.08);
  border: 1px solid rgba(223, 217, 240, 0.15);
  color: var(--muted);
}

.admin-sub-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.admin-sub-badge--lifetime {
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #a78bfa;
}

.admin-sub-badge--monthly {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.admin-sub-badge--weekly {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.admin-sub-badge--expired {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.admin-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.admin-status-dot--active {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.admin-status-dot--inactive {
  background: #6b7280;
}

.admin-status-dot--idle {
  background: #fbbf24;
}

.admin-table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.admin-action-btn:hover {
  background: rgba(199, 190, 223, 0.1);
  color: var(--text);
  border-color: rgba(199, 190, 223, 0.3);
}

.admin-action-btn--danger:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

.admin-code {
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(12, 10, 19, 0.6);
  border: 1px solid rgba(30, 28, 37, 0.7);
}

.admin-code--small {
  font-size: .7rem;
}

.admin-code--key {
  font-size: .75rem;
  letter-spacing: .02em;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.admin-pagination-info {
  font-size: .8125rem;
  color: var(--muted);
}

.admin-pagination-btns {
  display: flex;
  gap: 6px;
}

.admin-pagination-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .8125rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.admin-pagination-btn:hover:not(:disabled) {
  background: rgba(199, 190, 223, 0.1);
  color: var(--text);
  border-color: rgba(199, 190, 223, 0.3);
}

.admin-pagination-btn--active {
  background: rgba(199, 190, 223, 0.2);
  color: var(--text);
  border-color: rgba(199, 190, 223, 0.4);
}

.admin-pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-search {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.admin-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 42px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: .875rem;
  outline: none;
  transition: border-color .2s;
}

.admin-search-input::placeholder {
  color: var(--muted);
}

.admin-search-input:focus {
  border-color: rgba(199, 190, 223, 0.5);
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-filter-select {
  height: 42px;
  padding: 0 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: .875rem;
  font-family: var(--font);
  cursor: pointer;
}

.admin-toolbar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  font-size: .875rem;
}

.admin-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
}

.admin-toolbar-btn--danger {
  background: rgba(248, 113, 113, 0.9);
  border-color: transparent;
}

.admin-logs-card {
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-logs-list {
  max-height: 500px;
  overflow-y: auto;
}

.admin-log-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(30, 28, 37, 0.5);
  font-size: .8125rem;
  font-family: 'Courier New', monospace;
  transition: background .15s;
}

.admin-log-item:hover {
  background: rgba(199, 190, 223, 0.04);
}

.admin-log-time {
  color: var(--muted);
  flex-shrink: 0;
}

.admin-log-level {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.admin-log-level--info {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.admin-log-level--warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.admin-log-level--error {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.admin-log-user {
  color: var(--accent);
  flex-shrink: 0;
  min-width: 100px;
}

.admin-log-action {
  color: var(--text);
  flex: 1;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }
}

.admin-settings-card {
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-settings-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.admin-settings-title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.admin-settings-desc {
  font-size: .8125rem;
  color: var(--muted);
}

.admin-settings-body {
  padding: 8px 20px 20px;
}

.admin-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(30, 28, 37, 0.4);
}

.admin-setting-row:last-child {
  border-bottom: none;
}

.admin-setting-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-setting-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
}

.admin-setting-desc {
  font-size: .75rem;
  color: var(--muted);
}

.admin-setting-select {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: .8125rem;
  font-family: var(--font);
  cursor: pointer;
  min-width: 140px;
}

.admin-setting-input {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: .8125rem;
  font-family: var(--font);
  outline: none;
  min-width: 200px;
  transition: border-color .2s;
}

.admin-setting-input:focus {
  border-color: rgba(199, 190, 223, 0.5);
}

.admin-setting-input--small {
  min-width: 100px;
}

.admin-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-toggle-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
  margin: 0;
}

.admin-toggle-slider {
  position: absolute;
  inset: 0;
  width: 46px;
  height: 26px;
  border-radius: 26px;
  background: rgba(30, 28, 37, 0.9);
  border: 1px solid var(--border);
  transition: background .25s, border-color .25s;
  pointer-events: none;
}

.admin-toggle-slider::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #6b7280;
  transition: transform .25s cubic-bezier(.4,0,.2,1), background .25s;
}

.admin-toggle-input:hover + .admin-toggle-slider {
  border-color: rgba(199, 190, 223, 0.3);
}

.admin-toggle-input:checked + .admin-toggle-slider {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
}

.admin-toggle-input:checked + .admin-toggle-slider::before {
  transform: translateX(20px);
  background: #4ade80;
}

.admin-toggle-input:focus-visible + .admin-toggle-slider {
  box-shadow: 0 0 0 2px rgba(199, 190, 223, 0.3);
}

.admin-settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.admin-mobile-tabs {
  display: none;
}

@media (max-width: 900px) {
  .admin-mobile-tabs {
    left: 0;
    right: 0;
    bottom: calc(8px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    z-index: 400;
  }

  .admin-mobile-tabs-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 6px;
    border-radius: 50px;
    background: rgba(12, 10, 19, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(199, 190, 223, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  }

  .admin-mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 40px;
    border: none;
    background: transparent;
    color: rgba(223, 217, 240, 0.45);
    font-size: 10px;
    font-family: var(--font);
    cursor: pointer;
    transition: color .2s, background .2s, transform .1s;
  }

  .admin-mobile-tab svg {
    width: 18px;
    height: 18px;
  }

  .admin-mobile-tab:active {
    transform: scale(0.92);
  }

  .admin-mobile-tab:hover {
    color: rgba(223, 217, 240, 0.75);
  }

  .admin-mobile-tab.active {
    color: #c7bedf;
    background: rgba(199, 190, 223, 0.12);
  }

  .admin-mobile-tab span {
    font-weight: 500;
    letter-spacing: .02em;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-content {
    padding: 16px 16px 100px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .admin-stat-card {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-stat-value {
    font-size: 1.2rem;
  }

  .admin-stat-trend,
  .admin-stat-live {
    position: static;
    margin-top: 4px;
  }

  .admin-charts-row {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search {
    max-width: 100%;
  }

  .admin-toolbar-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-filter-select {
    flex: 1;
    min-width: 0;
  }

  .admin-add-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: .8rem;
  }

  .admin-table-actions {
    gap: 4px;
  }

  .admin-action-btn {
    width: 28px;
    height: 28px;
  }

  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-setting-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .admin-setting-select,
  .admin-setting-input {
    width: 100%;
    min-width: 0;
  }

  .admin-settings-actions {
    flex-direction: column;
  }

  .admin-settings-actions button {
    width: 100%;
    justify-content: center;
  }

  .admin-log-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-log-time {
    width: 100%;
    order: 2;
    font-size: .7rem;
  }

  .admin-log-level {
    order: 0;
  }

  .admin-log-user {
    order: 1;
    min-width: auto;
  }

  .admin-log-action {
    width: 100%;
    order: 3;
  }
}

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-mobile-tabs-inner {
    width: calc(100% - 24px);
    justify-content: space-around;
  }

  .admin-mobile-tab {
    padding: 8px 10px;
    font-size: 9px;
  }

  .admin-mobile-tab svg {
    width: 16px;
    height: 16px;
  }
}
