@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif; font-size: 17px; line-height: 1.6; background:#05070b; color:#e8eef7; }
body:not(.subpage) { overflow: hidden; }
body.subpage { overflow-y: auto; overflow-x: hidden; }
a { color:#d8e7ff; text-decoration: none; }
.topbar { position: fixed; top:0; left:0; right:0; z-index:9999; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 24px; background:rgba(7,10,14,.55); backdrop-filter: blur(10px); border-bottom:1px solid rgba(255,255,255,.08); }
.topbar nav { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.topbar nav a,
.topbar nav button {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}
.topbar nav a,
.topbar nav button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #d9d6ce;
  border: 1px solid rgba(133, 133, 133, .32);
  background: rgba(33,33,33,.75);
  clip-path: polygon(4% 8%, 98% 2%, 96% 20%, 100% 34%, 97% 52%, 100% 70%, 96% 88%, 98% 98%, 4% 95%, 0 80%, 2% 61%, 0 42%, 3% 24%, 0 10%);
  overflow: hidden;
  letter-spacing: .4px;
  transition: color .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.topbar nav a::before,
.topbar nav a::after,
.topbar nav button::before,
.topbar nav button::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.topbar nav a::before,
.topbar nav button::before {
  inset: 0;
  background: #a10000;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .58s cubic-bezier(.2,.78,.22,1);
  z-index: -2;
}
.topbar nav a::after,
.topbar nav button::after {
  top: -15%;
  bottom: -15%;
  left: 108%;
  width: 34%;
  background: #b30000;
  transform: skewX(-12deg);
  clip-path: polygon(0 8%, 100% 0, 93% 14%, 100% 27%, 91% 43%, 100% 57%, 92% 73%, 100% 90%, 97% 100%, 0 93%, 8% 77%, 0 59%, 9% 41%, 0 23%);
  opacity: 0;
  z-index: -1;
}
.topbar nav a:hover,
.topbar nav button:hover {
  color: #fff;
  border-color: rgba(185, 42, 42, .82);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 8px 20px rgba(0,0,0,.45);
}
.topbar nav a:hover::before,
.topbar nav button:hover::before { transform: scaleX(1); }
.topbar nav a:hover::after,
.topbar nav button:hover::after {
  opacity: .95;
  animation: brushSweepRTL .62s cubic-bezier(.2,.78,.22,1) forwards;
}
.topbar nav a span,
.topbar nav a,
.topbar nav button span,
.topbar nav button { z-index: 2; }
.brand {
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow:
    0 1px 0 rgba(255,255,255,.18),
    0 6px 18px rgba(0,0,0,.55);
  filter: saturate(.85) contrast(1.02);
}
.auth-actions { display:flex; gap:10px; align-items:center; }
.btn-outline, .btn-solid {
  position: relative;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 0;
  border:1px solid rgba(133, 133, 133, .32);
  background: rgba(33,33,33,.75);
  color:#e6e0d5;
  clip-path: polygon(4% 8%, 98% 2%, 96% 20%, 100% 34%, 97% 52%, 100% 70%, 96% 88%, 98% 98%, 4% 95%, 0 80%, 2% 61%, 0 42%, 3% 24%, 0 10%);
  transition: color .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
.btn-outline:hover, .btn-solid:hover {
  color:#fff;
  border-color: rgba(185, 42, 42, .82);
  background:#8e0000;
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
}
.btn-solid { background: rgba(33,33,33,.75); }

.section { position:relative; background-size: cover; background-position: center; }
.overlay { position:absolute; inset:0; background: radial-gradient(circle at 20% 10%, rgba(126,206,255,.14), rgba(0,0,0,.82)); }
.hero { background: #000 url('/assets/bg1.svg') center / cover no-repeat !important; }
.hero .overlay {
  background:
    radial-gradient(80% 60% at 50% 15%, rgba(126, 34, 34, .2), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.72) 70%, rgba(0,0,0,.86) 100%);
  z-index:1;
}
.hero-visual {
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
  overflow:hidden;
}
.hero-light {
  position:absolute;
  inset:-25%;
  background:
    radial-gradient(circle at 62% 32%, rgba(255, 72, 42, .2), transparent 32%),
    radial-gradient(circle at 38% 46%, rgba(180, 18, 18, .16), transparent 34%);
  mix-blend-mode: screen;
  filter: blur(18px);
  animation: heroPulse 7.2s ease-in-out infinite;
  z-index: 1;
}
.hero-dust {
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.3px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 20px 30px;
  opacity:.16;
  animation: dustDrift 16s linear infinite;
  z-index: 2;
}
.hero-image {
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  width: 543px;
  height: 250px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 220px);
  object-fit: contain;
  image-rendering: auto;
  filter: none;
  animation: none;
  z-index: 6;
}
.content { position:relative; z-index:2; text-align:center; padding:0 16px; }
.content h1 { font-size: clamp(2rem, 6vw, 5rem); margin: 0 0 12px; text-shadow:0 10px 30px #000; }
.content h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 12px; }
.content p { font-size: clamp(1rem, 2vw, 1.3rem); color:#c8d8eb; }
.panel { background:rgba(5,9,15,.55); border:1px solid rgba(139,197,255,.25); border-radius:20px; padding:32px; max-width:800px; margin:auto; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.logo { width:92px; height:92px; margin-bottom:10px; filter: drop-shadow(0 0 14px rgba(139,197,255,.5)); }

.hero-actions {
  height: calc(100vh - 84px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(56px, 8vh, 96px);
}
.social-buttons {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 340px));
  gap: 20px;
  pointer-events: auto;
}
.cine-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 30px;
  border: 1px solid rgba(128, 128, 128, 0.36);
  overflow: hidden;
  color: #e7e2d8;
  font-weight: 700;
  letter-spacing: .6px;
  background: #262626;
  clip-path: polygon(3% 5%, 98% 2%, 96% 15%, 100% 28%, 97% 42%, 100% 58%, 96% 74%, 99% 93%, 3% 96%, 0 84%, 2% 67%, 0 48%, 3% 30%, 0 12%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 8px 20px rgba(0,0,0,.44);
  transition: color .32s ease, border-color .32s ease, box-shadow .32s ease;
}
.cine-btn img {
  width: 20px;
  height: 20px;
  opacity: .9;
  filter: grayscale(1) contrast(1.05) brightness(1.06);
}
.cine-btn::before,
.cine-btn::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
/* 残留层：默认 KOOK 方向（右->左刷入，左->右回退） */
.cine-btn::before {
  inset: 0;
  z-index: 0;
  background: #b30000;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .72s cubic-bezier(.2,.78,.22,1);
}
/* 笔刷头：默认 KOOK 方向（右->左） */
.cine-btn::after {
  top: -18%;
  bottom: -18%;
  left: 108%;
  width: 34%;
  z-index: 1;
  background: #b30000;
  transform: skewX(-12deg);
  clip-path: polygon(0 8%, 100% 0, 93% 14%, 100% 27%, 91% 43%, 100% 57%, 92% 73%, 100% 90%, 97% 100%, 0 93%, 8% 77%, 0 59%, 9% 41%, 0 23%);
  opacity: 0;
}
.cine-btn span,
.cine-btn img {
  position: relative;
  z-index: 2;
}
.cine-btn:hover {
  color: #fff;
  border-color: rgba(185, 42, 42, .86);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 10px 24px rgba(0,0,0,.52);
}
.cine-btn:hover::before {
  transform: scaleX(1);
}
.cine-btn:hover::after {
  opacity: .98;
  animation: brushSweepRTL .72s cubic-bezier(.2,.78,.22,1) forwards;
}
/* 默认 KOOK 回退：右->左 */
.cine-btn:not(:hover)::before {
  transform-origin: right center;
}
.cine-btn:active {
  filter: brightness(.94);
}
.cine-btn.qq {
  clip-path: polygon(2% 7%, 98% 3%, 96% 17%, 100% 31%, 95% 47%, 100% 61%, 96% 77%, 98% 94%, 4% 97%, 0 82%, 2% 66%, 0 49%, 3% 33%, 0 14%);
}
.cine-btn.qq::before {
  transform-origin: left center;
}
.cine-btn.qq:hover::after {
  animation: brushSweepLTR .72s cubic-bezier(.2,.78,.22,1) forwards;
}
.cine-btn.qq:not(:hover)::before {
  transform-origin: left center;
}
.cine-btn.kook {
  clip-path: polygon(4% 4%, 99% 1%, 97% 18%, 100% 34%, 96% 49%, 99% 65%, 95% 81%, 100% 96%, 2% 95%, 0 79%, 4% 62%, 0 45%, 5% 28%, 1% 10%);
}

@keyframes brushSweepRTL {
  0% {
    left: 108%;
    opacity: .98;
  }
  76% {
    left: -8%;
    opacity: .98;
  }
  100% {
    left: -8%;
    opacity: 0;
  }
}

@keyframes brushSweepLTR {
  0% {
    left: -42%;
    opacity: .98;
  }
  76% {
    left: 74%;
    opacity: .98;
  }
  100% {
    left: 74%;
    opacity: 0;
  }
}

@keyframes brushSweepLTR {
  0% {
    left: -42%;
    opacity: .98;
  }
  76% {
    left: 74%;
    opacity: .98;
  }
  100% {
    left: 74%;
    opacity: 0;
  }
}

@keyframes heroPulse {
  0%, 100% { opacity: .48; transform: scale(1); }
  50% { opacity: .72; transform: scale(1.06); }
}

@keyframes dustDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-18px, 22px, 0); }
}

@keyframes heroFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

@keyframes heroGlow {
  0%, 100% { filter: drop-shadow(0 24px 60px rgba(0,0,0,.75)) drop-shadow(0 0 0 rgba(120,195,255,0)); }
  50% { filter: drop-shadow(0 24px 60px rgba(0,0,0,.75)) drop-shadow(0 0 24px rgba(120,195,255,.24)); }
}

.app-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
}
.app-dialog-root.is-open,
.app-dialog-root.is-closing {
  display: block;
}
.app-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .24s ease;
}
.app-dialog {
  position: absolute;
  top: 8vh;
  left: 50%;
  transform: translate(-50%, -18px) scale(.96);
  width: min(560px, calc(100vw - 28px));
  border: 1px solid rgba(158, 158, 158, .36);
  background: linear-gradient(165deg, rgba(28,28,28,.96), rgba(16,16,16,.97));
  color: #ece9e1;
  clip-path: polygon(2% 4%, 98% 1%, 97% 16%, 100% 33%, 96% 49%, 100% 66%, 96% 84%, 98% 97%, 2% 96%, 0 80%, 3% 62%, 0 45%, 3% 27%, 0 9%);
  box-shadow: 0 22px 48px rgba(0,0,0,.58);
  padding: 18px 18px 16px;
  opacity: 0;
  transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
}
.app-dialog-ink {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(180px 70px at 85% 10%, rgba(179,0,0,.18), transparent 70%),
    radial-gradient(120px 44px at 14% 76%, rgba(180,180,180,.12), transparent 72%);
}
.app-dialog-title {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.app-dialog-message {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.75;
  color: #d7d2c8;
  white-space: pre-wrap;
}
.app-dialog-actions {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.app-dialog-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(136,136,136,.4);
  background: rgba(37,37,37,.92);
  color: #ece8de;
  cursor: pointer;
}
.app-dialog-btn.primary {
  border-color: rgba(179,0,0,.78);
  background: #7f0000;
  color: #fff;
}
.app-dialog-root.is-open .app-dialog-backdrop { opacity: 1; }
.app-dialog-root.is-open .app-dialog { opacity: 1; transform: translate(-50%, 0) scale(1); }
.app-dialog-root.is-closing .app-dialog-backdrop { opacity: 0; }
.app-dialog-root.is-closing .app-dialog { opacity: 0; transform: translate(-50%, -14px) scale(.97); }

.rights-split .split-wrap { position:relative; z-index:2; display:grid; grid-template-columns: 1fr 1fr; height:100%; width:100%; }
.rights-split .split-side { display:flex; align-items:center; justify-content:center; padding:120px 44px 44px; }
.rights-split .split-side.left { border-right:1px solid rgba(255,255,255,.15); }
.rights-block { width: min(560px, 100%); display:flex; flex-direction:column; align-items:center; text-align:center; }
.rights-block .logo { align-self:center; margin-bottom:14px; }
.rights-block h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 0 0 12px; text-align:center; text-shadow: 0 8px 24px rgba(0,0,0,.6); color:#c2c7d1; }
.rights-title-main { display:block; color:#c8ccd4; font-weight:700; letter-spacing:.4px; }
.rights-title-sub { display:block; margin-top:6px; font-size: clamp(0.95rem, 1.4vw, 1.15rem); color:#8992a1; font-weight:500; letter-spacing:.2px; }
.rights-text { width: 100%; color:#dbe9f9; text-align:center; overflow: hidden; transition: max-height .42s ease, opacity .28s ease, margin-top .28s ease; }
.rights-text.is-collapsed { max-height: 0; opacity: 0; margin-top: 0; }
.rights-text:not(.is-collapsed) { max-height: 1200px; opacity: 1; margin-top: 8px; }
.rights-toggle {
  width: auto;
  align-self: center;
  margin-top: 4px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(180, 197, 220, .45);
  background: rgba(8, 14, 24, .62);
  color: #eaf3ff;
  font-size: 15px;
  letter-spacing: .4px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.rights-toggle:hover {
  background: rgba(24, 41, 63, .72);
  border-color: rgba(159, 205, 255, .75);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.rights-meta { margin: 0 0 8px; text-align:center; font-weight:700; color:#eef5ff; letter-spacing:.3px; }
.rights-list { list-style-position: inside; margin: 8px auto 0; padding: 0; display:grid; grid-template-columns: 1fr; gap: 8px; text-align:center; }
.rights-list li { line-height: 1.7; color:#dbe9f9; }

.scroll-tip { position:absolute; z-index:3; bottom:28px; left:50%; transform:translateX(-50%); text-align:center; color:#d5e8ff; animation: upDown 1.8s ease-in-out infinite; }
.arrow { width:18px; height:18px; margin:8px auto 0; border-right:2px solid #d5e8ff; border-bottom:2px solid #d5e8ff; transform: rotate(45deg); }
@keyframes upDown { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

.server-wrap, .auth-wrap, .single-content { max-width:1200px; margin:0 auto; padding:120px 24px 48px; }
.server-panel { max-width: 1080px; width: min(1080px, calc(100vw - 48px)); margin: 0 auto; }
#servers { display:flex; align-items:center; justify-content:center; }
#servers .content { width:100%; text-align:center; }
#servers .cards {
  justify-content: center;
  grid-template-columns: repeat(2, minmax(260px, 320px));
}
.shop-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
}
.donate-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.donate-balance {
  font-size: 18px;
  color: #e7f2ff;
  font-weight: 700;
}
.records-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .56);
  backdrop-filter: blur(3px);
  z-index: 15000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.records-modal.show { display: flex; }
.records-panel {
  width: min(760px, 100%);
  max-height: min(82vh, 820px);
  overflow: auto;
  border: 1px solid rgba(140, 190, 255, .32);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(13, 16, 24, .97), rgba(8, 10, 16, .98));
  box-shadow: 0 24px 64px rgba(0,0,0,.62);
  padding: 16px;
}
.records-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.records-head h3 { margin: 0; }
.records-close {
  border: 1px solid rgba(150, 202, 255, .46);
  background: rgba(12, 19, 30, .85);
  color: #e9f5ff;
  padding: 6px 12px;
  cursor: pointer;
}
.records-list {
  display: grid;
  gap: 10px;
}
.record-row {
  border: 1px solid rgba(130, 175, 232, .22);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(12, 16, 24, .8);
}
.record-title { font-weight: 700; color: #fff; }
.record-meta, .record-time { color: #c9d7ea; font-size: 14px; }
.records-empty { color: #c9d7ea; text-align: center; }
.shop-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(16, 20, 30, .95), rgba(10, 12, 18, .96));
  border: 1px solid rgba(138, 194, 255, .24);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .4s ease;
}
.shop-card:hover {
  border-color: rgba(170, 226, 255, .75);
  box-shadow: 0 24px 54px rgba(0,0,0,.62), 0 8px 26px rgba(52, 145, 230, .24);
  transform: perspective(1200px) translateY(-12px) rotateX(6deg) rotateY(-4deg) scale(1.02);
}
.shop-card img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  transform: translateZ(24px);
}
.shop-image-wrap {
  position: relative;
}
.shop-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
}
.shop-eye-btn {
  position: static;
  width: 34px;
  height: 34px;
  margin: 0;
  margin-left: auto;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(170, 226, 255, .65);
  background: rgba(8, 16, 28, .78);
  color: #e8f5ff;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  flex: 0 0 auto;
}
.shop-eye-btn:hover {
  border-color: rgba(200, 240, 255, .95);
  box-shadow: 0 0 0 3px rgba(114, 201, 255, .18);
}
.shop-desc {
  margin: 0 0 12px;
  color: #bcd2e6;
  font-size: 14px;
  min-height: 22px;
}
.shop-detail-tip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate3d(0,0,0);
  width: min(320px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(156, 210, 255, .52);
  border-radius: 10px;
  background: rgba(6, 10, 16, .95);
  box-shadow: 0 16px 42px rgba(0,0,0,.56);
  color: #e8f3ff;
  pointer-events: none;
  opacity: 0;
  z-index: 17000;
  transition: opacity .14s ease;
}
.shop-detail-tip.show { opacity: 1; }
.shop-detail-title { font-weight: 700; margin-bottom: 4px; }
.shop-detail-text { color: #c9dced; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.shop-card h3 {
  margin: 6px 0 8px;
  transform: translateZ(18px);
}
.donate-price {
  margin: 0;
  color: #cfe9ff;
  font-weight: 700;
  letter-spacing: .4px;
}
.buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 140px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(154, 214, 255, .52);
  border-radius: 10px;
  background: rgba(11, 19, 30, .85);
  color: #e9f5ff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.buy-now:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 235, 255, .86);
  box-shadow: 0 10px 24px rgba(0,0,0,.45), 0 0 18px rgba(124,214,255,.25);
}
.form-error {
  min-height: 24px;
  margin-top: 8px;
  color: #ff6b6b;
  font-weight: 700;
}
.input-error {
  border-color: #ff4d4f !important;
  box-shadow: 0 0 0 2px rgba(255,77,79,.25);
}

.cards { display:grid; gap:18px; width:100%; justify-content:center; }
.server-card { background:rgba(10,15,24,.75); border:1px solid rgba(139,197,255,.2); border-radius:14px; padding:14px; text-align:left; }
.server-card img { width:100%; height:130px; object-fit:cover; border-radius:10px; margin-bottom:8px; }
.auth-wrap { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:18px; }
.auth-card { background:rgba(10,15,24,.75); border:1px solid rgba(139,197,255,.2); border-radius:14px; padding:18px; }
.auth-single { max-width:460px; margin:0 auto; }
input, textarea, button { width:100%; margin-top:10px; background:#0d1522; color:#e7f1ff; border:1px solid #2a425f; border-radius:8px; padding:10px; font-size:15px; }
button { cursor:pointer; background: linear-gradient(135deg, #2e6ea6, #1f3f73); }
.subpage { background:#05070b; }
.admin section { margin-bottom:26px; background:rgba(10,15,24,.75); border:1px solid rgba(139,197,255,.2); border-radius:14px; padding:16px; }
table { width:100%; border-collapse: collapse; }
th, td { border:1px solid #2a425f; padding:8px; font-size:15px; }
.row { display:flex; justify-content:space-between; align-items:center; margin:8px 0; gap:10px; }

.admin-shop-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-shop-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-shop-del-btn {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  height: 36px;
  margin-top: 0;
  margin-left: auto;
  padding: 0;
  flex: 0 0 88px;
}

.app-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: block;
  pointer-events: none;
}
.app-dialog-shell {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.app-dialog-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(2, 4, 8, 0.62);
  backdrop-filter: blur(2px);
  opacity: 0;
}
.app-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(92vw, 520px);
  margin: 0;
  border: 1px solid rgba(162, 165, 169, 0.36);
  background: linear-gradient(170deg, rgba(26, 26, 27, 0.96), rgba(17, 17, 18, 0.98));
  color: #ece7dc;
  padding: 18px 18px 14px;
  clip-path: polygon(3% 5%, 98% 2%, 96% 16%, 100% 30%, 97% 45%, 100% 61%, 96% 78%, 99% 95%, 3% 98%, 0 84%, 2% 66%, 0 49%, 3% 31%, 0 13%);
  box-shadow: 0 24px 64px rgba(0,0,0,.58), inset 0 0 0 1px rgba(255,255,255,.03);
  transform-origin: 50% 0%;
  transform: translate3d(-50%, calc(-50% - 26px), 0) rotateX(-16deg) scale(.96);
  opacity: 0;
  pointer-events: auto;
}
.app-dialog-ink {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120px 44px at 86% 14%, rgba(170, 36, 36, .15), transparent 72%),
    radial-gradient(140px 60px at 12% 82%, rgba(128, 128, 128, .12), transparent 70%);
}
.app-dialog-title {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f6f2e8;
}
.app-dialog-message {
  position: relative;
  z-index: 1;
  color: #d8d1c3;
  line-height: 1.75;
  white-space: pre-wrap;
}
.app-dialog-actions {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.app-dialog-btn {
  width: auto;
  min-width: 86px;
  padding: 8px 14px;
  border: 1px solid rgba(142, 142, 142, .46);
  background: rgba(42,42,42,.9);
  color: #e7e1d5;
  border-radius: 6px;
  cursor: pointer;
}
.app-dialog-btn.primary {
  border-color: rgba(177, 53, 53, .72);
  background: #8f0f0f;
  color: #fff;
}

.app-dialog-root.is-open {
  pointer-events: auto;
}
.app-dialog-root.is-open .app-dialog-backdrop {
  animation: dialogFadeIn .28s ease forwards;
}
.app-dialog-root.is-open .app-dialog {
  animation: dialogCardIn .46s cubic-bezier(.18,.78,.2,1) forwards;
}
.app-dialog-root.is-closing {
  pointer-events: auto;
}
.app-dialog-root.is-closing .app-dialog-backdrop {
  animation: dialogFadeOut .26s ease forwards;
}
.app-dialog-root.is-closing .app-dialog {
  animation: dialogCardOut .3s cubic-bezier(.5,.1,.7,.4) forwards;
}

@keyframes dialogFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dialogFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes dialogCardIn {
  0% {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% - 34px), 0) rotateX(-24deg) scale(.94);
  }
  60% {
    opacity: 1;
    transform: translate3d(-50%, calc(-50% + 8px), 0) rotateX(6deg) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotateX(0deg) scale(1);
  }
}

.single-content {
  max-width: 1100px;
  margin: 108px auto 28px;
  padding: 0 16px;
}

.guide-layout {
  display: grid;
  gap: 16px;
}

.guide-tabs-wrap,
.guide-content-wrap {
  background: rgba(10, 15, 24, .75);
  border: 1px solid rgba(139, 197, 255, .2);
  border-radius: 14px;
  padding: 16px;
}

.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-tab {
  position: relative;
  isolation: isolate;
  width: auto;
  min-width: 130px;
  margin: 0;
  min-height: 38px;
  padding: 0 14px;
  color: #d9d6ce;
  border: 1px solid rgba(133, 133, 133, .32);
  background: rgba(33,33,33,.75);
  clip-path: polygon(4% 8%, 98% 2%, 96% 20%, 100% 34%, 97% 52%, 100% 70%, 96% 88%, 98% 98%, 4% 95%, 0 80%, 2% 61%, 0 42%, 3% 24%, 0 10%);
  overflow: hidden;
  letter-spacing: .4px;
  transition: color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.guide-tab::before,
.guide-tab::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.guide-tab::before {
  inset: 0;
  background: #a10000;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .58s cubic-bezier(.2,.78,.22,1);
  z-index: -2;
}

.guide-tab::after {
  top: -15%;
  bottom: -15%;
  left: 108%;
  width: 34%;
  background: #b30000;
  transform: skewX(-12deg);
  clip-path: polygon(0 8%, 100% 0, 93% 14%, 100% 27%, 91% 43%, 100% 57%, 92% 73%, 100% 90%, 97% 100%, 0 93%, 8% 77%, 0 59%, 9% 41%, 0 23%);
  opacity: 0;
  z-index: -1;
}

.guide-tab:hover {
  color: #fff;
  border-color: rgba(185, 42, 42, .82);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 8px 20px rgba(0,0,0,.45);
}

.guide-tab:hover::before { transform: scaleX(1); }
.guide-tab:hover::after {
  opacity: .95;
  animation: brushSweepRTL .62s cubic-bezier(.2,.78,.22,1) forwards;
}

.guide-tab.is-active {
  color: #fff;
  border-color: rgba(185, 42, 42, .9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 8px 20px rgba(0,0,0,.45);
}

.guide-tab.is-active::before {
  transform: scaleX(1);
}


#guideContent img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.guide-admin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.guide-admin-toolbar button {
  width: auto;
  min-width: 120px;
  margin-top: 0;
}

.guide-sections-editor {
  display: grid;
  gap: 12px;
}

.guide-section-item {
  border: 1px solid rgba(130, 175, 232, .24);
  border-radius: 10px;
  padding: 10px;
  background: rgba(12, 16, 24, .8);
}

.guide-section-item.is-active {
  border-color: rgba(185, 235, 255, .76);
}

.guide-section-head {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.guide-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(139, 197, 255, .34);
  border-radius: 999px;
  color: #d9ebff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
}

.guide-section-head input {
  margin-top: 0;
  flex: 1;
}

.guide-section-head button {
  width: auto;
  margin-top: 0;
}

@keyframes dialogCardOut {
  0% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotateX(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% - 26px), 0) rotateX(-20deg) scale(.95);
  }
}

@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; }
  .auth-actions { width: 100%; justify-content: flex-end; }
  .social-buttons { grid-template-columns: 1fr; width: min(90vw, 420px); }
  .hero-actions { padding-bottom: 96px; }
  .rights-split .split-wrap { grid-template-columns: 1fr; }
  .rights-split .split-side.left { border-right: 0; border-bottom:1px solid rgba(255,255,255,.12); }
  .rights-split .split-side { padding:110px 24px 30px; }
  .rights-block { width: min(640px, 100%); }
  .rights-list { padding-left: 20px; gap: 6px; }
  #servers .cards { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
}

#fp-nav ul li a span,
.fp-slidesNav ul li a span {
  background: #8bc5ff;
}
