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

:root{color-scheme:light;--bg:#f6f1ea;--surface:#fffcf8;--soft:#eee6db;--ink:#30271f;--muted:#7a6b5e;--line:#e3d7c8;--orange:#388bfd;--orange-dark:#1f6feb;--orange-soft:#ddedff;--orange-ink:#ffffff;--accent:#388bfd;--shadow:0 16px 50px #1833500b;--header:#fffcf8ed}
:root[data-theme=dark]{color-scheme:dark;--bg:#151515;--surface:#202020;--soft:#292929;--ink:#f5f1ed;--muted:#aaa39d;--line:#3a3a3a;--orange:#70b3ff;--orange-dark:#8ec5fc;--orange-soft:#17263c;--orange-ink:#0b1728;--accent:#70b3ff;--shadow:0 16px 50px #00000055;--header:#202020ed}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:120px}body{margin:0;min-width:320px;background:var(--bg);color:var(--ink);font:16px/1.6 'Golos Text',Arial,sans-serif;-webkit-font-smoothing:antialiased;transition:background-color .25s,color .25s}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}button{border:0}img{display:block;max-width:100%}button,a,input{outline-offset:5px}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--orange)}h1,h2,h3,.logo{font-family:'Unbounded','Golos Text',sans-serif;font-weight:500}h1,h2,h3{text-wrap:balance}.material-symbols-rounded{font-family:'Material Symbols Rounded';font-size:24px;font-weight:500;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:'liga';font-variation-settings:'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 24}.section-wrap{width:min(1280px,calc(100% - 64px));margin-inline:auto}
.site-header{position:sticky;z-index:20;top:18px;width:min(1280px,calc(100% - 48px));margin:18px auto 0;border:1px solid var(--line);border-radius:22px;background:var(--header);backdrop-filter:blur(18px);box-shadow:var(--shadow)}.header-inner{display:flex;align-items:center;gap:24px;min-height:80px;padding:12px 24px}.logo{display:inline-flex;align-items:center;gap:12px;font-size:20px;letter-spacing:-.05em}.logo img{width:38px;height:38px;border-radius:12px}.site-header nav{display:flex;gap:24px;margin:auto;font-size:14px}.site-header nav a{color:var(--muted);transition:color .2s}.site-header nav a:hover{color:var(--orange-dark)}.header-actions{display:flex;align-items:center;gap:8px}.server-pill,.theme-toggle,.menu-toggle{display:flex;align-items:center;justify-content:center;gap:10px;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.server-pill{font-size:12px;transition:background .25s,color .25s,border-color .25s}.server-pill.copied{background:var(--orange-soft);border-color:var(--orange);color:var(--orange-dark);animation:none!important;transform:none!important}.copy-icon{transition:opacity .2s}.server-pill.copied .copy-icon{transform:none}.server-pill .material-symbols-rounded{font-size:18px}.theme-toggle,.menu-toggle{width:44px;padding:0}.menu-toggle{display:none}.online-dot{width:7px;height:7px;border-radius:50%;background:#60ad77}
.hero-section{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:56px;padding:100px 0 112px}.label{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:.07em;font-weight:600;color:var(--muted)}.label-line{width:28px;height:2px;background:var(--orange)}.orange-label{color:var(--orange-dark)}.hero-copy h1{margin:24px 0;font-size:clamp(36px,4.3vw,62px);line-height:1.2;letter-spacing:-.065em}.hero-copy h1 span,.section-heading h2 span,.community-card h2 span{color:var(--orange)}.hero-copy>p{max-width:520px;font-size:18px;line-height:1.8;color:var(--muted)}.hero-buttons{display:flex;gap:12px;margin-top:32px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:12px 20px;border-radius:14px;font-size:15px;font-weight:600;transition:transform .65s cubic-bezier(.16,1,.3,1),background .3s,box-shadow .65s,border-color .3s}.button-orange{background:var(--orange);color:var(--orange-ink,#0b1728)}.button-orange:hover{transform:scale(1.018);box-shadow:0 8px 24px rgba(112,179,255,.35)}.button-ghost{background:var(--surface);border:1px solid var(--line)}.button-ghost:hover{border-color:var(--orange);transform:scale(1.018)}[data-copy-auth-command],[data-copy-auth-command]:hover{transform:none!important}.hero-stats{display:flex;gap:24px;margin-top:38px}.hero-stats div{display:flex;flex-direction:column;gap:4px}.hero-stats div+div{padding-left:24px;border-left:1px solid var(--line)}.hero-stats b{font-size:18px}.hero-stats span{font-size:13px;color:var(--muted)}
.hero-gallery{padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);animation:arrive .7s both}.gallery-main{position:relative;aspect-ratio:1.15;overflow:hidden;border-radius:16px;background:var(--soft)}.gallery-main img{width:100%;height:100%;object-fit:cover}.gallery-number{position:absolute;top:16px;left:16px;padding:5px 10px;border-radius:8px;background:#20150b8c;color:white;font-size:12px}.gallery-next{position:absolute;right:16px;bottom:16px;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--surface);transition:transform .2s}.gallery-next:hover{transform:translateX(3px)}.gallery-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 6px 6px}.gallery-caption span,.gallery-caption small{display:block}.gallery-caption span{font-weight:600;font-size:16px}.gallery-caption small{font-size:12px;color:var(--muted);margin-top:4px}.gallery-dots{display:flex;gap:6px}.gallery-dot{width:9px;height:9px;padding:0;border-radius:20px;background:var(--line);transition:width .25s}.gallery-dot.active{width:24px;background:var(--orange)}
.section-heading{display:grid;grid-template-columns:1.3fr .8fr;align-items:end;gap:60px;margin-bottom:40px}.section-heading h2{margin-top:18px;font-size:clamp(28px,3.5vw,46px);line-height:1.25;letter-spacing:-.055em}.section-heading>p{max-width:440px;color:var(--muted);font-size:17px;line-height:1.8}.about-section{padding:88px 0 104px;border-top:1px solid var(--line)}.about-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.about-grid article{padding:30px;border:1px solid var(--line);border-radius:20px;background:var(--surface);transition:transform .25s,box-shadow .25s}.about-grid article:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.feature-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;margin-bottom:28px;background:var(--orange-soft);color:var(--orange-dark)}.feature-icon.purple{color:#9e82dc}.feature-icon.green{color:#50a376}.about-grid small{color:var(--muted);font-size:11px;letter-spacing:.08em}.about-grid h3{font-size:19px;line-height:1.5;margin:10px 0 12px;letter-spacing:-.04em}.about-grid p{font-size:15px;color:var(--muted);line-height:1.8}.features-section{padding-bottom:110px}.feature-layout{display:grid;grid-template-columns:250px 1fr;gap:16px;padding:12px;border-radius:24px;background:var(--soft);border:1px solid var(--line)}.feature-menu{display:flex;flex-direction:column;gap:8px}.feature-tab{display:grid;grid-template-columns:24px 1fr 24px;align-items:center;gap:8px;min-height:64px;padding:12px;border-radius:14px;background:transparent;color:var(--muted);text-align:left;transition:background .2s,color .2s}.feature-tab b{font-size:14px;font-weight:500}.feature-tab span:first-child{font-size:12px}.feature-tab.active{background:var(--surface);color:var(--ink)}.feature-tab.active .material-symbols-rounded{color:var(--orange)}.feature-detail{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border-radius:16px;background:var(--surface)}.feature-detail-image{min-height:420px}.feature-detail-image img{width:100%;height:100%;object-fit:cover}.feature-detail-copy{padding:30px;align-self:center}.feature-detail-copy h3{font-size:25px;line-height:1.35;letter-spacing:-.045em;margin:16px 0}.feature-detail-copy p{font-size:15px;color:var(--muted)}.feature-detail-copy ul{display:grid;gap:12px;padding:22px 0 0;margin:24px 0 0;border-top:1px solid var(--line);list-style:none}.feature-detail-copy li{display:flex;gap:10px;align-items:center;font-size:14px}.feature-detail-copy li span{font-size:19px;color:var(--orange)}
.shop-section{padding:90px 0 100px;background:var(--soft);border-block:1px solid var(--line)}.shop-tabs{display:flex;gap:6px;width:100%;padding:6px;margin:0 0 32px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.shop-tab{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;min-height:44px;padding:10px 20px;border-radius:12px;background:transparent;color:var(--muted);font-size:15px;font-weight:600;transition:background .2s,color .2s}.shop-tab.active{background:var(--orange);color:var(--orange-ink,#0b1728)}.shop-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.store-card{display:flex;flex-direction:column;min-width:0;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--surface);animation:arrive .45s both;animation-delay:var(--delay);transition:transform .25s,border-color .25s,box-shadow .25s}.store-card:hover{transform:translateY(-6px);border-color:var(--accent);box-shadow:var(--shadow)}:root:not([data-theme=dark]) .store-card{background:linear-gradient(145deg,#f0f7ff 0%,#e1efff 100%);border-color:#c8e1ff;color:#1e293b;box-shadow:0 14px 35px rgba(59,130,246,0.08)}:root:not([data-theme=dark]) .store-card:hover{border-color:#93c5fd;box-shadow:0 18px 42px rgba(59,130,246,0.14)}:root:not([data-theme=dark]) .store-card .store-icon{background:#dbeafe;color:#2563eb}:root:not([data-theme=dark]) .store-card .store-tag,:root:not([data-theme=dark]) .store-card>p{color:#475569}:root:not([data-theme=dark]) .store-card .card-durations{background:#bfdbfe40}:root:not([data-theme=dark]) .store-card .card-durations button{color:#334155}:root:not([data-theme=dark]) .store-card .card-durations button[aria-pressed=true]{background:#ffffff;color:#0f172a}:root:not([data-theme=dark]) .store-card .card-bonus{color:#1d4ed8}:root:not([data-theme=dark]) .store-card .store-card-bottom{border-color:#bfdbfe}:root:not([data-theme=dark]) .store-card .store-card-bottom .button-orange{background:var(--orange);color:var(--orange-ink,#ffffff);box-shadow:none}:root:not([data-theme=dark]) .store-card .store-card-bottom .button-orange:hover{background:var(--orange-dark)}.store-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:28px}.store-icon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border-radius:15px;color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--surface));font-size:27px}.store-tag{font-size:11px;color:var(--muted);text-align:right}.store-card h3{font-size:22px;line-height:1.4;letter-spacing:-.035em;white-space:nowrap}.store-card>p{font-size:13px;color:var(--muted);margin:8px 0 24px}.card-durations{display:flex;padding:4px;border-radius:10px;background:var(--soft);gap:2px;margin-top:auto}.card-durations button{flex:1;white-space:nowrap;padding:8px 2px;font-size:10px;border-radius:7px;background:transparent;color:var(--muted);transition:background .2s,color .2s}.card-durations button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 2px 6px #0000000a}.card-bonus{display:flex;align-items:center;gap:8px;min-height:44px;margin-top:auto;color:var(--orange-dark);font-size:12px}.card-bonus span{font-size:20px}.store-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.store-card-bottom>strong{font-size:22px;white-space:nowrap}.store-card-bottom small{font-size:15px;color:var(--muted);font-weight:400}.store-card-bottom .button{padding:10px 12px;font-size:13px;min-height:44px;border-radius:11px}.store-card-bottom .material-symbols-rounded{font-size:18px}
.community-section{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;padding:110px 0}.community-card{display:flex;flex-direction:column;justify-content:space-between;gap:36px;padding:40px;border:1px solid var(--line);border-radius:24px;background:var(--surface)}.community-card h2{font-size:44px;letter-spacing:-.055em;line-height:1.2;margin:20px 0}.community-card p{max-width:440px;color:var(--muted)}.community-ip{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--soft);padding:16px;border-radius:13px}.community-ip>span{font-size:10px;color:var(--muted)}.community-ip button{display:flex;align-items:center;gap:10px;background:none;color:var(--orange-dark);font-size:15px;transition:color .25s}.community-ip button.copied{color:var(--orange);animation:none!important}.community-ip button.copied .copy-icon{transform:none}.social-cards{display:grid;gap:20px}.social-cards a{display:grid;grid-template-columns:56px 1fr 24px;align-items:center;gap:20px;padding:30px;border:1px solid var(--line);border-radius:24px;background:var(--surface);transition:transform .25s,border-color .25s}.social-cards a:hover{transform:translateY(-4px);border-color:var(--orange)}.social-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:17px;background:var(--soft)}.social-icon svg{width:30px;height:30px;fill:currentColor}.discord{color:#9286ef}.telegram{color:#43a6d9}.social-cards small,.social-cards b{display:block}.social-cards small{font-size:12px;color:var(--muted);letter-spacing:.06em;margin-bottom:8px}.social-cards b{font-size:18px;font-weight:500}.site-footer{width:min(1280px,calc(100% - 48px));margin:0 auto 24px;padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--surface)}.footer-inner{width:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}.footer-inner>span{color:var(--muted);font-size:12px}.footer-inner>a:last-child{display:flex;align-items:center;gap:10px;font-size:14px}
.toast{position:fixed;z-index:120;right:24px;bottom:24px;padding:16px 22px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);opacity:0;transform:translateY(12px);pointer-events:none;transition:.25s}.toast.show{opacity:1;transform:none}.drawer-open{overflow:hidden}.checkout-overlay{position:fixed;z-index:100;inset:0;display:flex;justify-content:flex-end;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .25s,visibility .25s;background:#160d0866;backdrop-filter:blur(6px)}.checkout-overlay.open{visibility:visible;opacity:1;pointer-events:auto}.checkout-backdrop{position:absolute;inset:0;background:transparent}.checkout-drawer{position:relative;width:min(480px,100%);height:100%;overflow:auto;padding:32px;background:var(--surface);transform:translateX(100%);transition:transform .35s cubic-bezier(.2,.8,.2,1)}.checkout-overlay.open .checkout-drawer{transform:none}.checkout-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:24px;border-bottom:1px solid var(--line)}.checkout-head small{font-size:11px;color:var(--orange-dark)}.checkout-head h2{font-size:23px;margin-top:8px;letter-spacing:-.045em}.close-checkout{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.checkout-drawer form{display:flex;flex-direction:column;gap:22px;padding-top:26px}.checkout-product{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;padding:16px;border-radius:14px;background:var(--soft)}.checkout-icon{color:var(--orange)}.checkout-product b,.checkout-product small{display:block}.checkout-product b{font-size:14px}.checkout-product small{font-size:12px;color:var(--muted);margin-top:4px}.checkout-product>strong{font-size:16px;white-space:nowrap}.checkout-drawer label{display:flex;flex-direction:column;gap:8px;font-size:14px}.checkout-drawer label em{font-style:normal;color:var(--muted);font-size:12px}.checkout-drawer input{width:100%;height:52px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);font-size:16px}.checkout-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:24px}.checkout-total b{font-size:26px}.checkout-submit{width:100%}
@keyframes copy-pop{0%{transform:none}100%{transform:none}}@keyframes arrive{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}.hero-copy{animation:arrive .65s both}.reveal{opacity:0;translate:0 24px;transition:opacity .65s,translate .65s}.reveal.is-visible{opacity:1;translate:0 0}
@media(max-width:1150px){.site-header nav{gap:16px;font-size:13px}.server-pill{display:none}.header-actions{margin-left:auto}.hero-section{gap:32px}.hero-buttons{flex-wrap:wrap}.shop-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.feature-layout{grid-template-columns:210px 1fr}.feature-detail-copy{padding:24px}.feature-detail-copy h3{font-size:21px}.community-ip{align-items:flex-start;flex-direction:column}}
@media(max-width:850px){.section-wrap{width:calc(100% - 40px)}.site-header{top:10px;width:calc(100% - 24px);margin-top:10px;border-radius:18px}.header-inner{min-height:68px;padding:10px 16px}.site-header nav{position:absolute;top:calc(100% + 10px);left:0;right:0;display:none;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.site-header nav.open{display:flex;flex-direction:column;gap:0}.site-header nav a{padding:12px;font-size:16px}.menu-toggle{display:flex}.hero-section{grid-template-columns:1fr;padding:64px 0 72px;gap:40px}.hero-copy h1{font-size:clamp(36px,6.5vw,56px)}.hero-copy>p{max-width:600px}.hero-gallery{max-width:620px;width:100%;margin:auto}.gallery-main{aspect-ratio:1.55}.section-heading{grid-template-columns:1fr;gap:24px}.section-heading>p{max-width:600px}.about-section{padding:64px 0 80px}.about-grid{grid-template-columns:1fr;gap:14px}.about-grid article{padding:28px}.feature-icon{margin-bottom:18px}.feature-layout{grid-template-columns:1fr}.feature-menu{display:grid;grid-template-columns:repeat(3,1fr)}.feature-tab{display:flex;justify-content:center;padding:10px;min-height:52px}.feature-tab span{display:none}.feature-detail-image{min-height:350px}.features-section{padding-bottom:80px}.shop-section{padding:64px 0 72px}.shop-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.community-section{grid-template-columns:1fr;padding:80px 0}.social-cards{grid-template-columns:1fr 1fr}.social-cards a{grid-template-columns:44px 1fr;padding:24px 18px;gap:14px}.social-cards a>.material-symbols-rounded{display:none}.social-icon{width:44px;height:44px}.social-cards b{font-size:15px}.community-card{padding:30px}.community-ip{flex-direction:row;align-items:center}.site-footer{width:calc(100% - 24px);padding:24px}.footer-inner{flex-wrap:wrap}.footer-inner>span{order:3;flex-basis:100%}.footer-inner>a:last-child{margin-left:auto}}
@media(max-width:540px){.logo{font-size:17px}.logo img{width:32px;height:32px}.header-inner{gap:10px}.theme-toggle,.menu-toggle{width:40px;height:40px}.hero-copy h1{font-size:clamp(29px,7.8vw,42px);letter-spacing:-.065em}.hero-copy>p{font-size:16px}.hero-buttons{display:grid;grid-template-columns:1fr}.hero-stats{gap:16px}.hero-stats div+div{padding-left:16px}.hero-stats b{font-size:16px}.hero-stats span{font-size:11px}.gallery-caption small{font-size:10px}.gallery-caption span{font-size:14px}.section-heading h2{font-size:clamp(24px,6vw,32px)}.section-heading>p{font-size:16px}.feature-menu{gap:4px}.feature-tab b{font-size:11px}.feature-detail{grid-template-columns:1fr}.feature-detail-image{min-height:0;height:230px}.feature-detail-copy{padding:26px 22px}.shop-tabs{width:100%}.shop-tab{padding:14px;font-size:15px}.shop-cards{grid-template-columns:1fr;gap:16px}.store-card{padding:26px}.store-card-top{margin-bottom:22px}.store-card h3{font-size:26px}.store-card>p{font-size:15px}.store-tag{font-size:13px}.card-durations button{font-size:13px;padding:10px 4px}.card-bonus{font-size:14px}.store-card-bottom>strong{font-size:27px}.store-card-bottom .button{min-height:48px;font-size:15px;padding:12px 18px}.community-card{padding:26px}.community-card h2{font-size:34px}.community-ip{flex-direction:column;align-items:flex-start}.social-cards{grid-template-columns:1fr;gap:14px}.social-cards a{padding:24px}.checkout-drawer{padding:24px}.checkout-head h2{font-size:20px}.checkout-product{padding:12px;gap:8px;grid-template-columns:28px 1fr auto}.checkout-product b{font-size:12px}.checkout-product>strong{font-size:14px}.toast{left:16px;right:16px;bottom:16px;font-size:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.reveal{opacity:1;translate:none}}





.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-shell > main {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto !important;
}

.site-header {
  box-shadow: none !important;
}


.demo-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--orange);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  backdrop-filter: blur(12px);
  animation: arrive 0.5s ease;
}

.demo-bar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--orange-dark);
  white-space: nowrap;
}

.demo-bar-label .material-symbols-rounded {
  font-size: 18px;
}

.demo-bar-roles {
  display: flex;
  background: var(--soft);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.demo-role-btn {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--muted);
  transition: all 0.2s;
  white-space: nowrap;
}

.demo-role-btn.active {
  background: var(--orange);
  color: #281b12;
  font-weight: 600;
}

.demo-pages-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  transition: color 0.2s;
}

.demo-pages-link:hover {
  color: var(--orange);
}


.header-login-btn {
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 13px;
}

.header-user-menu {
  position: relative;
}

.header-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: all 0.2s;
}

.header-user-btn:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(237, 121, 47, 0.15);
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--soft);
  object-fit: cover;
}

.header-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

.header-user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

.header-user-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.header-user-badge.badge-admin {
  background: #fde8e8;
  color: #c81e1e;
}
:root[data-theme="dark"] .header-user-badge.badge-admin {
  background: #4e1a1a;
  color: #f87171;
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.header-user-menu.open .header-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-head {
  padding: 12px;
  border-radius: 12px;
  background: var(--soft);
  margin-bottom: 6px;
}

.dropdown-head-nick {
  font-weight: 600;
  font-size: 14px;
}

.dropdown-head-balance {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.15s;
}

.dropdown-item:hover {
  background: var(--soft);
  color: var(--orange-dark);
}

.dropdown-item .material-symbols-rounded {
  font-size: 20px;
  color: var(--muted);
  transition: color 0.15s;
}

.dropdown-item:hover .material-symbols-rounded {
  color: var(--orange);
}

.dropdown-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.dropdown-badge.badge-admin {
  background: #fde8e8;
  color: #c81e1e;
}
:root[data-theme="dark"] .dropdown-badge.badge-admin {
  background: #4e1a1a;
  color: #f87171;
}

.dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.dropdown-item.dropdown-logout {
  color: #dc2626;
}
.dropdown-item.dropdown-logout .material-symbols-rounded {
  color: #dc2626;
}
.dropdown-item.dropdown-logout:hover {
  background: rgba(220, 38, 38, 0.08);
}


.page-container {
  padding: 40px 0 90px;
}

.auth-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.auth-method-tab {
  padding: 10px 8px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.auth-method-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.auth-method-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-method-pane[hidden] {
  display: none;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.auth-field input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px 12px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input-wrap:focus-within {
  border-color: var(--orange);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.auth-input-icon {
  flex: 0 0 20px;
  margin-left: 14px;
  color: var(--muted);
  font-size: 20px;
}

.auth-field input::placeholder {
  color: var(--muted);
  opacity: .75;
}

.auth-password-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-right: 3px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}

.auth-password-toggle:hover {
  background: var(--soft);
  color: var(--ink);
}

.auth-password-toggle .material-symbols-rounded {
  font-size: 20px;
}

.auth-password-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-password-status {
  min-height: 20px;
  margin: -2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.auth-password-status:empty {
  visibility: hidden;
}

.auth-password-status[data-error="true"] {
  color: #d7545a;
}

.auth-password-status[data-error="false"] {
  color: var(--muted);
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-submit-icon {
  font-size: 19px;
}

.auth-password-form button:disabled {
  opacity: .6;
  cursor: wait;
}

.page-header-block {
  margin-bottom: 36px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.page-breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}

.page-breadcrumb a:hover {
  color: var(--orange);
}

.page-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.05em;
  font-family: 'Unbounded', 'Golos Text', sans-serif;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 620px;
}


.auth-wrapper {
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
}

body[data-auth-page] .page-container {
  padding: 42px 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(100%, 456px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.auth-card-header {
  margin-bottom: 28px;
  text-align: center;
}

.auth-card h1 {
  margin-bottom: 10px;
  font-size: 26px;
  letter-spacing: -.04em;
}

.auth-card .auth-card-intro {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

body[data-auth-page] .auth-password-form {
  text-align: left;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-submit-icon {
  font-size: 19px;
}

@media (max-width: 600px) {
  body[data-auth-page] .page-container {
    padding: 28px 0 52px;
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .auth-card h1 {
    font-size: 22px;
  }
}

.auth-command-box {
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.auth-command-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-command-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  gap: 12px;
}

.auth-command-code {
  font-family: 'DM Mono', monospace, Consolas, Courier;
  font-size: 20px;
  font-weight: 700;
  color: var(--orange-dark);
  letter-spacing: 0.05em;
  user-select: all;
}

.auth-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.auth-copy-btn:hover {
  background: var(--orange);
  color: #281b12;
}

.auth-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding: 0 4px;
}

.auth-timer-time {
  font-weight: 600;
  color: var(--ink);
}

.auth-verify-btn {
  width: 100%;
  height: 48px;
  min-height: 48px;
  font-size: 15px;
  margin-bottom: 16px;
}

.auth-steps {
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.auth-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.auth-step-item b {
  color: var(--ink);
}

.auth-demo-options {
  margin-top: 24px;
  padding: 16px;
  background: var(--soft);
  border-radius: 14px;
  font-size: 13px;
}

.auth-demo-options p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.auth-demo-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}


.profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
}

.profile-card-user {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: var(--user-opacity, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: fit-content;
}

.profile-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: var(--soft);
  border: 2px solid var(--line);
  object-fit: cover;
}

.avatar-upload-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
  font-size: 11px;
  font-weight: 600;
}

.avatar-upload-btn:hover {
  opacity: 1;
}

.profile-avatar-wrap:hover .avatar-upload-btn {
  opacity: 1;
}

.avatar-upload-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.avatar-reset-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
}

.profile-avatar-wrap:hover .avatar-reset-btn {
  opacity: 1;
}

.avatar-reset-btn:hover {
  background: rgba(239,68,68,0.85);
}

.avatar-reset-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (hover: none) {
  .avatar-upload-btn {
    opacity: 1;
    width: 36px;
    height: 36px;
    top: auto;
    bottom: -6px;
    right: -6px;
    left: auto;
    border-radius: 50%;
    background: var(--orange);
    color: var(--orange-ink);
    flex-direction: row;
    gap: 0;
  }

  .avatar-upload-btn span:last-child {
    display: none;
  }

  .avatar-upload-btn .material-symbols-rounded {
    font-size: 20px !important;
  }

  .avatar-upload-btn:disabled {
    opacity: 0.6;
  }

  .avatar-reset-btn {
    opacity: 1;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.customize-nav-link {
  width: 100%;
  font-family: inherit;
  text-align: left;
  border: none;
  cursor: pointer;
}

.profile-loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 340px;
  color: var(--muted);
  font-size: 14px;
}

.profile-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.profile-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  opacity: var(--user-opacity, 1);
}

body[data-profile-page] .site-header {
  background: var(--header);
  opacity: var(--user-opacity, 1);
}

body[data-profile-page] .site-footer {
  background: var(--surface);
  opacity: var(--user-opacity, 1);
}

body[data-profile-page] .button-orange {
  background: var(--orange);
}

body[data-profile-page] .profile-social-btn:hover {
  border-color: var(--orange);
}

body[data-profile-page] .customize-main-tab:hover:not(.active) {
  color: var(--ink);
}

body[data-profile-page] .profile-nav-link .material-symbols-rounded {
  color: var(--orange);
}

.profile-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.social-icon-svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-icon-svg.discord {
  color: #5865f2;
}

.social-icon-svg.telegram {
  color: #0088cc;
}

.social-input-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-input-icon.discord {
  color: #5865f2;
}

.social-input-icon.telegram {
  color: #0088cc;
}

.profile-social-btn:hover {
  border-color: var(--orange);
}

.profile-social-discord:hover {
  background: #5865f2;
  color: #fff;
  border-color: #5865f2;
}

.profile-social-discord:hover .social-icon-svg {
  fill: #fff;
}

.profile-social-telegram:hover {
  background: #0088cc;
  color: #fff;
  border-color: #0088cc;
}

.profile-social-telegram:hover .social-icon-svg {
  fill: #fff;
}

.profile-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.35);
  pointer-events: none;
}

.profile-bg-overlay ~ * {
  position: relative;
  z-index: 1;
}


.profile-page-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.profile-page-header h1,
.profile-page-header p {
  flex: 1 1 auto;
}

.customize-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  padding: 20px;
}

.customize-modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.customize-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.customize-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.customize-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  cursor: pointer;
  color: var(--muted);
}

.customize-close:hover {
  color: var(--ink);
  border-color: var(--orange);
}

.customize-section {
  margin-bottom: 24px;
}

.customize-section:last-child {
  margin-bottom: 0;
}

.customize-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.customize-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.customize-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.customize-colors {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customize-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customize-color-row span {
  font-size: 14px;
  min-width: 130px;
}

.customize-color-row input[type="color"] {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  padding: 2px;
}

.customize-hex-input {
  width: 80px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-family: monospace;
}

.customize-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.customize-main-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
}

.customize-main-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.customize-main-tab.active {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.customize-main-tab:hover:not(.active) {
  color: var(--ink);
}

.customize-text-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
}

.customize-tab {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.customize-tab.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.customize-tab:hover:not(.active) {
  color: var(--ink);
  border-color: var(--orange);
}

.customize-select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}

.customize-num-input {
  width: 60px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
}

.angle-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.angle-dial {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--soft);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.angle-dial-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--orange);
  transform-origin: 0 50%;
  border-radius: 1px;
}

.angle-dial-pointer::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.customize-range {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  appearance: none;
  cursor: pointer;
}

.customize-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
}

.customize-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  cursor: pointer;
}

.customize-color-pick {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  padding: 2px;
}

.customize-mini-btn {
  padding: 6px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  margin-top: 8px;
}

.profile-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.35);
  z-index: 0;
  pointer-events: none;
}

.profile-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  border: 3px solid var(--surface);
}

.profile-user-nick {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-family: 'Unbounded', sans-serif;
  margin: 0;
}

.profile-user-status {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-mini-stat {
  padding: 12px;
  background: var(--soft);
  border-radius: 14px;
  text-align: left;
  opacity: var(--user-opacity, 1);
}

.profile-mini-stat span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.profile-mini-stat b {
  font-size: 16px;
  color: var(--ink);
}

.profile-side-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.profile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.profile-nav-link:hover {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.profile-nav-link .material-symbols-rounded {
  font-size: 18px;
}


.profile-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.privilege-banner {
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  opacity: var(--user-opacity, 1);
}

.privilege-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privilege-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.privilege-badge-lg {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  letter-spacing: 0.05em;
}

.privilege-status-label {
  font-size: 13px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.privilege-expiry {
  font-size: 14px;
  color: var(--muted);
}

.privilege-expiry b {
  color: var(--ink);
}

.privilege-progress-bar {
  max-width: 280px;
  width: 100%;
  height: 6px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.privilege-progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
  width: 68%;
}

.privilege-actions {
  display: flex;
  gap: 10px;
}


.punishments-card {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: var(--user-opacity, 1);
}

.punishments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.punishments-head h3 {
  font-size: 19px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.punishments-tabs {
  display: flex;
  gap: 6px;
  background: var(--soft);
  padding: 4px;
  border-radius: 10px;
}

.punishment-tab {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--muted);
  transition: all 0.2s;
}

.punishment-tab.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.punishment-item {
  padding: 18px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.punishment-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.punishment-type {
  font-weight: 700;
  font-size: 14px;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 6px;
}

.punishment-item.warning .punishment-type {
  color: #f59e0b;
}

.punishment-time-left {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.punishment-reason {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}

.punishment-meta {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
}

.punishment-clean-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
}

.punishment-clean-state .material-symbols-rounded {
  font-size: 48px;
  color: #10b981;
  margin-bottom: 10px;
}

.punishment-clean-state h4 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}


.chat-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  height: 640px;
}

.chat-main {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.chat-server-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-server-name {
  font-weight: 600;
  font-size: 15px;
}

.chat-players-toggle-btn {
  display: none;
}

.chat-sidebar-close-btn {
  display: none;
}

.chat-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 11px;
  font-weight: 600;
}

.chat-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.6s infinite;
}

.chat-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-control-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  transition: all 0.2s;
}

.chat-control-btn:hover {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.chat-control-btn.active {
  color: var(--orange-dark);
}


.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

:root[data-theme="dark"] .chat-messages {
  background: #111111;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  transition: background 0.15s;
}

.chat-message:hover {
  background: var(--soft);
}

.chat-msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  image-rendering: pixelated;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-msg-time {
  font-size: 11px;
  color: var(--muted);
  margin-right: 4px;
  font-family: monospace;
}

.chat-msg-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
  display: inline-block;
}

.badge-web {
  background: #3b82f6;
  color: #fff;
}

.badge-vip {
  background: #10b981;
  color: #fff;
}

.badge-truemod {
  background: #ec4899;
  color: #fff;
}

.badge-admin-chat {
  background: #ef4444;
  color: #fff;
}

.badge-clan {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.chat-msg-sender {
  font-weight: 600;
  margin-right: 6px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.15s;
}

.chat-msg-sender:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.chat-msg-content {
  color: var(--ink);
  word-break: break-word;
}


.chat-message.system-announcement {
  background: rgba(237, 121, 47, 0.08);
  border: 1px dashed var(--orange);
  color: var(--orange-dark);
}

.chat-message.death-message {
  color: #9ca3af;
  font-style: italic;
  font-size: 13px;
}

.chat-message.death-message .material-symbols-rounded {
  font-size: 16px;
  vertical-align: middle;
  color: #ef4444;
}

.chat-message.chat-system-notice {
  background: transparent;
  padding: 4px 6px;
}
.chat-message.chat-system-notice:hover {
  background: transparent;
}


.chat-input-bar {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-input-row {
  display: flex;
  gap: 10px;
}

.chat-input-field {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}

.chat-send-btn {
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
}

.chat-input-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.chat-color-helpers {
  display: flex;
  gap: 6px;
}

.chat-color-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.chat-color-btn:hover {
  transform: scale(1.15);
}


.chat-sidebar {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-sidebar-head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-players-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-player-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.chat-player-item:hover {
  background: var(--soft);
}

.chat-player-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.chat-player-rank {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1.2;
}

.chat-player-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}


.history-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.history-stat-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: none;
}

.history-stat-card span {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.history-stat-card b {
  font-size: 24px;
  font-family: 'Unbounded', 'Golos Text', sans-serif;
  color: var(--ink);
}

.history-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.history-search-input {
  width: 280px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.history-category-tabs {
  display: flex;
  gap: 6px;
  background: var(--soft);
  padding: 4px;
  border-radius: 12px;
}

.history-cat-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--muted);
  transition: all 0.2s;
}

.history-cat-tab.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}


.history-table-wrap {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.history-table th {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--soft);
}

.history-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.history-table tr:last-child td {
  border-bottom: 0;
}

.history-table tr:hover td {
  background: rgba(237, 121, 47, 0.03);
}

.history-id-code {
  font-family: monospace;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}

.history-item-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  display: grid;
  place-items: center;
}

.history-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.status-success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.status-expired {
  background: rgba(156, 163, 175, 0.15);
  color: #6b7280;
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.history-receipt-btn {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
}

.history-receipt-btn:hover {
  background: var(--orange-soft);
  color: var(--orange-dark);
}


.admin-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fde8e8;
  color: #c81e1e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

:root[data-theme="dark"] .admin-badge-top {
  background: #4e1a1a;
  color: #f87171;
}

.admin-nav-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  overflow-x: auto;
}

.admin-nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-nav-tab.active {
  background: var(--surface);
  color: var(--orange-dark);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.admin-panel-section {
  display: none;
}

.admin-panel-section.active {
  display: block;
}


.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.admin-product-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-prod-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-prod-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-prod-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.admin-prices-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  background: var(--soft);
  border-radius: 12px;
  font-size: 12px;
  text-align: center;
}

.admin-prices-list span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.admin-prices-list b {
  font-size: 14px;
  color: var(--ink);
}

.admin-prod-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.admin-prod-actions .button {
  flex: 1;
  min-height: 40px;
  font-size: 13px;
  padding: 8px;
}


.admin-settings-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: 780px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.admin-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.admin-form-group small {
  font-size: 12px;
  color: var(--muted);
}

.admin-form-input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}


.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  image-rendering: pixelated;
}

.admin-user-del-btn {
  color: #ef4444;
  background: transparent;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.admin-user-del-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}


.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.modal-close-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--orange-soft);
  color: var(--orange-dark);
}


.receipt-box {
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.receipt-row span {
  color: var(--muted);
}

.receipt-row b {
  color: var(--ink);
}

.receipt-total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 16px;
}

.receipt-total b {
  font-size: 20px;
  color: var(--orange-dark);
}


@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  
  .chat-container {
    grid-template-columns: 1fr;
    height: 580px;
    position: relative;
    overflow: hidden;
  }

  .chat-players-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: all 0.2s;
  }

  .chat-players-toggle-btn:hover {
    background: var(--orange-soft);
    color: var(--orange-dark);
    border-color: var(--orange);
  }

  .chat-online-count-badge {
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
  }

  .chat-sidebar {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  }

  .chat-sidebar.mobile-open,
  .chat-sidebar.open {
    transform: translateX(0) !important;
  }

  .chat-sidebar-close-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--muted);
    border: 0;
    cursor: pointer;
    transition: all 0.2s;
  }

  .chat-sidebar-close-btn:hover {
    background: var(--orange-soft);
    color: var(--orange-dark);
  }

  .history-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-container {
    padding: 20px 0 70px;
  }

  .page-header-block {
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-subtitle {
    font-size: 14px;
  }

  
  .auth-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .auth-card h1 {
    font-size: 22px;
  }

  .auth-command-inner {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: center;
  }

  .auth-command-code {
    font-size: 19px;
  }

  .auth-copy-btn {
    width: 100%;
    justify-content: center;
    height: 40px;
  }

  
  .chat-container {
    height: calc(100dvh - 230px);
    min-height: 470px;
    max-height: 600px;
    border-radius: 18px;
  }

  .chat-header {
    padding: 12px 14px;
  }

  .chat-server-name {
    font-size: 14px;
  }

  .chat-messages {
    padding: 12px 10px;
    gap: 8px;
  }

  .chat-message {
    padding: 6px 8px;
    font-size: 13px;
    gap: 8px;
  }

  .chat-msg-avatar {
    width: 22px;
    height: 22px;
  }

  .chat-input-bar {
    padding: 12px 10px;
    gap: 8px;
  }

  .chat-input-field {
    height: 44px;
    font-size: 13px;
    padding: 0 12px;
  }

  .chat-send-btn {
    height: 44px;
    padding: 0 16px;
  }

  .chat-input-meta {
    font-size: 11px;
    text-align: center;
  }

  
  .profile-card-user {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .profile-stats-mini {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .profile-mini-stat {
    padding: 10px;
  }

  .profile-mini-stat span {
    font-size: 11px;
  }

  .profile-mini-stat b {
    font-size: 13px;
  }

  .privilege-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
    border-radius: 20px;
    gap: 16px;
  }

  .privilege-actions {
    width: 100%;
  }

  .privilege-actions .button {
    width: 100%;
    justify-content: center;
  }

  .punishments-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .punishments-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .punishments-tabs {
    width: 100%;
    display: flex;
    gap: 4px;
  }

  .punishment-tab {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
    font-size: 11px;
  }

  .punishment-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .punishment-meta {
    flex-direction: column;
    gap: 4px;
  }

  
  .history-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .history-stat-card {
    padding: 16px;
    border-radius: 14px;
  }

  .history-stat-card b {
    font-size: 20px;
  }

  .history-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .history-category-tabs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
  }

  .history-cat-tab {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }

  .history-search-input {
    width: 100%;
    height: 42px;
    font-size: 13px;
  }

  .history-table th,
  .history-table td {
    padding: 12px 14px;
    font-size: 13px;
  }

  .history-item-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  
  .admin-nav-tabs {
    gap: 6px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-nav-tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  .admin-products-grid {
    grid-template-columns: 1fr;
  }

  .admin-product-card {
    padding: 18px;
  }

  .admin-settings-card {
    padding: 20px 16px;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  
  .demo-bar {
    bottom: 8px;
    padding: 6px 10px;
    font-size: 11px;
    gap: 6px;
    width: calc(100% - 20px);
    max-width: 440px;
  }

  .demo-bar-label {
    display: none;
  }

  .demo-bar-roles {
    gap: 2px;
  }

  .demo-role-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .chat-send-btn span:not(.material-symbols-rounded) {
    display: none;
  }

  .chat-send-btn {
    padding: 0 14px;
  }

  .chat-players-toggle-btn span:not(.material-symbols-rounded):not(.chat-online-count-badge) {
    display: none;
  }
}



.shop-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--card-bg) !important;
  color: #ffffff !important;
  border: none !important;
  outline: none !important;
  overflow: hidden;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 12px 30px -4px var(--card-glow, rgba(0, 0, 0, 0.18)) !important;
  animation: arrive 0.45s both;
  animation-delay: var(--delay, 0ms);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.store-card:hover {
  transform: scale(1.018);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 18px 42px -4px var(--card-glow, rgba(0, 0, 0, 0.3)) !important;
}

:root:not([data-theme=dark]) .store-card,
:root:not([data-theme=dark]) .store-card:hover {
  border: none !important;
}


.store-card.is-light-card {
  color: #ffffff !important;
}

.store-card.is-light-card .store-kicker,
.store-card.is-light-card .store-card-title,
.store-card.is-light-card .store-price,
.store-card.is-light-card .store-period {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.store-card.is-light-card .store-badge {
  background: rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
}

.store-card.is-light-card .duration-opt {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.store-card.is-light-card .duration-opt:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.store-card.is-light-card .duration-opt.active {
  background: #ffffff !important;
  color: #0b1728 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.store-card.is-light-card .store-buy-btn {
  background: #ffffff !important;
  color: #0b1728 !important;
  text-shadow: none !important;
}

.store-card.is-light-card .store-buy-btn:hover {
  background: #f8fafc !important;
}


.store-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.store-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.store-card-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(26px, 2.5vw, 32px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin: 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}


.store-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.store-chip .material-symbols-rounded {
  font-size: 15px;
}


.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.store-card.is-light-card .store-card-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.store-pricing-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.store-price {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.store-price-old {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 0.4;
  line-height: 1;
}

.store-discount-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
  line-height: 1.4;
}

.store-period {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}


.store-durations-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.duration-opt {
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.duration-opt:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.duration-opt.active {
  background: #ffffff;
  color: #0b1728;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


.store-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 13px;
  background: #ffffff;
  color: #0b1728;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform .65s cubic-bezier(.16, 1, .3, 1), background .3s, box-shadow .65s;
}

.store-buy-btn:hover {
  transform: scale(1.025);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  background: #f8fafc;
}

.store-subtext-pill,
.shard-bonus-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}


@media (max-width: 900px) {
  .shop-cards {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 540px) {
  .store-card {
    padding: 18px 20px;
    min-height: auto;
  }

  .store-card-title {
    font-size: 24px;
  }

  .store-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .store-pricing-block {
    justify-content: space-between;
  }

  .store-buy-btn {
    width: 100%;
  }
}


.checkout-overlay {
  position: fixed !important;
  z-index: 1000 !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(10, 15, 28, 0.76) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: opacity .35s ease, visibility .35s ease !important;
}

.checkout-overlay.open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.checkout-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
}

.checkout-drawer {
  position: relative !important;
  width: min(480px, 100%) !important;
  max-height: min(92vh, 760px) !important;
  height: auto !important;
  overflow-y: auto !important;
  padding: 30px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  transform: scale(0.92) !important;
  opacity: 0 !important;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .3s ease !important;
}

.checkout-overlay.open .checkout-drawer {
  transform: scale(1) !important;
  opacity: 1 !important;
}

.checkout-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid var(--line) !important;
}

.checkout-head small {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: var(--orange-dark) !important;
  text-transform: uppercase !important;
}

.checkout-head h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  margin: 4px 0 0 !important;
}

.close-checkout {
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: var(--soft) !important;
  color: var(--ink) !important;
  cursor: pointer !important;
  transition: background .2s, border-color .2s !important;
}

.close-checkout:hover {
  background: var(--line) !important;
}


.checkout-product {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 16px 20px !important;
  border-radius: 18px !important;
  border: none !important;
  outline: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 24px -4px var(--card-glow, rgba(0, 0, 0, 0.22)) !important;
  color: #ffffff !important;
  overflow: hidden !important;
}

.checkout-product.is-light-card {
  color: #ffffff !important;
}

.checkout-product-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.checkout-product-badge {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 2px !important;
}

.checkout-product.is-light-card .checkout-product-badge {
  background: rgba(0, 0, 0, 0.12) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}

.checkout-product b {
  font-family: 'Unbounded', sans-serif !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  color: inherit !important;
}

.checkout-product small {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.checkout-product.is-light-card small {
  color: rgba(15, 23, 42, 0.75) !important;
}

.checkout-product-price {
  font-family: 'Unbounded', sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  color: inherit !important;
  white-space: nowrap !important;
}

.checkout-drawer input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.2);
}

@media (max-width: 540px) {
  .checkout-overlay {
    padding: 12px !important;
  }

  .checkout-drawer {
    padding: 22px 18px !important;
    border-radius: 20px !important;
  }

  .checkout-head h2 {
    font-size: 20px !important;
  }

  .checkout-product {
    padding: 14px 16px !important;
  }

  .checkout-product b {
    font-size: 16px !important;
  }

  .checkout-product-price {
    font-size: 18px !important;
  }
}


.admin-modal-wide {
  width: min(720px, 100%) !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  padding: 28px !important;
}

.admin-preview-section {
  padding: 16px 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 20px;
}

.admin-preview-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.admin-preview-container {
  display: flex;
  justify-content: center;
}

.admin-live-preview-card {
  width: 100%;
  max-width: 500px;
  min-height: 155px;
}

.admin-colors-picker-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-color-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-color-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-color-native {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

.admin-color-hex {
  flex: 1;
  font-family: monospace;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-palette-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.admin-palette-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.admin-palette-btn:hover {
  transform: scale(1.15);
  border-color: var(--ink);
}

.admin-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.admin-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--line);
  border-radius: 34px;
  transition: 0.3s;
}

.admin-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.admin-switch input:checked + .admin-slider {
  background: var(--orange);
}

.admin-switch input:checked + .admin-slider:before {
  transform: translateX(20px);
}

.admin-variations-toggle-block {
  padding: 14px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}


.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: 20px;
}

.admin-store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--card-bg) !important;
  color: #ffffff !important;
  border: none !important;
  outline: none !important;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 12px 30px -4px var(--card-glow, rgba(0, 0, 0, 0.18)) !important;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
  cursor: grab;
  user-select: none;
}

.admin-store-card:active {
  cursor: grabbing;
}

.admin-store-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 18px 42px -4px var(--card-glow, rgba(0, 0, 0, 0.3)) !important;
}

.admin-store-card.dragging {
  opacity: 0.35 !important;
  transform: scale(0.96) !important;
  box-shadow: 0 0 0 2px var(--orange) !important;
}

.admin-store-card.drag-over {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 0 0 2px #ffffff, 0 16px 36px var(--card-glow, rgba(255, 122, 0, 0.4)) !important;
}

.admin-card-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: grab;
  user-select: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.admin-card-drag-handle:hover {
  background: rgba(255, 255, 255, 0.32) !important;
  transform: scale(1.08);
}

.admin-card-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
  margin-top: 6px;
}

.admin-card-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card-btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 12px;
  background: #ffffff;
  color: #0b1728;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-card-btn-edit:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.admin-card-btn-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ff6b6b;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-card-btn-del:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}


.admin-variations-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-var-item-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-var-top-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.admin-var-col-name {
  flex: 1;
}

.admin-var-col-price {
  width: 130px;
}

.admin-var-delete-btn {
  height: 42px;
  width: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: #ef4444;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.admin-var-delete-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.admin-var-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-var-cmd-input {
  font-family: monospace;
  font-size: 12.5px;
  width: 100% !important;
}

.admin-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-filter-btn {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-filter-btn.active {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
}

.admin-prod-variations-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: var(--soft);
  border-radius: 12px;
}

.admin-prod-var-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
}

.admin-prod-var-chip b {
  color: var(--orange-dark);
}

.admin-prod-single-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--soft);
  border-radius: 12px;
  font-size: 13px;
}

.footer-disclaimer{font-size:12px;color:var(--muted);text-align:right;white-space:normal;overflow-wrap:anywhere}
.footer-docs{display:flex;flex-wrap:wrap;gap:12px 20px;min-width:0}
.footer-docs a{font-size:13px;color:var(--muted);text-decoration:none;transition:color .2s}
.footer-docs a:hover{color:var(--orange-dark)}

.admin-prod-single-chip b {
  font-size: 16px;
  font-family: 'Unbounded', sans-serif;
  color: var(--ink);
}

@media (max-width: 640px) {
  .admin-var-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-colors-picker-row {
    grid-template-columns: 1fr;
  }
}

                                                                                  
.profile-grid > *,
.profile-stats-mini > *,
.chat-main,
.chat-input-field,
.store-card-meta,
.store-card-title,
.admin-form-group,
.admin-color-item,
.admin-color-input-wrap,
.admin-var-col-name,
.history-user-info,
.history-user-details {
  min-width: 0;
}

.page-title,
.profile-user-nick,
.profile-mini-stat b,
.privilege-badge-lg,
.punishment-reason,
.store-card-title,
.store-subtext-pill,
.history-user-details h2 {
  overflow-wrap: anywhere;
}

.store-card-header {
  flex-wrap: wrap;
}

.store-card-meta {
  max-width: 100%;
}

.history-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.history-user-avatar {
  flex-shrink: 0;
}

.history-user-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

                  
* {
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--soft);
}

@supports selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: var(--soft);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--soft);
  border-radius: 999px;
  background: var(--orange);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-dark);
}

.profile-side-nav:empty,
.profile-punishment-notices:empty {
  display: none;
}

.profile-user-identity {
  width: 100%;
  min-width: 0;
}

.profile-punishment-notices {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: 12px;
}

.profile-punishment-notice {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #ef444466;
  border-radius: 12px;
  background: #ef444414;
  font-size: 12px;
  text-align: left;
  overflow-wrap: anywhere;
}

.profile-punishment-notice strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #ef4444;
}

.profile-punishment-notice .material-symbols-rounded {
  font-size: 17px;
}

.profile-wall {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 440px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: var(--user-opacity, 1);
}

.profile-wall [hidden] {
  display: none !important;
}

.wall-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.wall-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wall-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.wall-head .material-symbols-rounded {
  color: var(--orange-dark);
}

.wall-total {
  padding: 2px 9px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 12px;
  color: var(--muted);
}

.wall-total:empty {
  display: none;
}

.wall-messages {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 380px;
  min-height: 380px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.wall-message {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.wall-message:last-child {
  border-bottom: 0;
}

.wall-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft);
  object-fit: cover;
}

.wall-message-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 6px;
}

.wall-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-dark);
  overflow-wrap: anywhere;
}

.wall-date {
  color: var(--muted);
  font-size: 11px;
}

.wall-message-body {
  min-width: 0;
}

.wall-message-text {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 9.9em;
  overflow: hidden;
}

.wall-message-text.is-expanded {
  max-height: none;
}

.wall-action.wall-text-toggle {
  color: var(--orange-dark);
}

.wall-message-body.is-editing > .wall-text-toggle {
  display: none;
}

.wall-message-actions,
.wall-delete-confirm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
}

.wall-action {
  background: transparent;
  padding: 6px 0;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}

.wall-action:hover {
  color: var(--orange-dark);
}

.wall-action.is-danger {
  color: #ef4444;
}

.wall-delete-confirm {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 12px;
}

.wall-empty {
  display: grid;
  place-items: center;
  flex: 1 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 8px;
}

.wall-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
}

.wall-pagination:empty {
  display: none;
}

.wall-page {
  min-width: 32px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  font-size: 13px;
}

.wall-page[aria-current="page"] {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.wall-page-gap {
  color: var(--muted);
}

.wall-feedback {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--orange-dark);
  overflow-wrap: anywhere;
  margin-top: 10px;
}

.wall-feedback:empty {
  display: none;
}

.wall-feedback.is-error {
  color: #ef4444;
}

.wall-composer {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.wall-composer label {
  font-size: 13px;
  font-weight: 600;
}

.wall-composer textarea,
.wall-edit-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  max-height: 160px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.wall-composer textarea:focus,
.wall-edit-input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.wall-composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.wall-composer .button {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 13px;
}

.wall-counter,
.wall-login {
  font-size: 11px;
  color: var(--muted);
}

.wall-login {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.wall-login a {
  color: var(--orange-dark);
}

.profile-wall button:disabled {
  opacity: .55;
  cursor: default;
}

@media (min-width: 901px) {
  .profile-content {
    min-height: 0;
    align-self: start;
  }

  .profile-content > .privilege-banner {
    flex-shrink: 0;
  }

  .profile-wall {
    flex: none;
    min-height: 0;
    padding: 18px;
  }

  .wall-messages {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
  }

  .wall-empty {
    padding: 12px 8px;
  }

  .wall-composer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .wall-composer label {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .wall-composer textarea {
    height: 56px;
    min-height: 56px;
    max-height: 80px;
  }

  .wall-composer-bottom {
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
  }
}

@media (max-width: 900px) {
  .wall-messages {
    flex: none;
    height: clamp(380px, 50svh, 520px);
  }
}

@media (max-width: 600px) {
  .profile-wall {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .wall-composer textarea,
  .wall-edit-input {
    font-size: 16px;
  }

  .wall-message {
    gap: 10px;
  }
}

.admin-form-input {
  min-width: 0;
  max-width: 100%;
}

.chat-main,
.chat-messages {
  min-height: 0;
}

.chat-header,
.chat-input-bar {
  flex-shrink: 0;
}

.footer-inner > * {
  min-width: 0;
}

.footer-docs a {
  overflow-wrap: anywhere;
}

@media (max-width: 1150px) {
  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-inner > .footer-docs {
    flex: 1 1 380px;
  }

  .footer-inner > .footer-disclaimer {
    flex-basis: 100%;
    text-align: left;
  }
}

@media (max-width: 850px) {
  .footer-inner {
    align-items: flex-start;
    gap: 20px;
  }

  .footer-inner > .footer-docs {
    flex-basis: 100%;
  }

  .footer-docs a {
    padding-block: 6px;
  }

  .site-header nav {
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }

  .shop-tabs {
    flex-wrap: wrap;
  }

  .shop-tab {
    flex: 1 1 160px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #promo-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .header-inner {
    gap: 8px;
    padding-inline: 12px;
  }

  .header-inner > .logo,
  .header-actions,
  .header-avatar,
  .theme-toggle,
  .menu-toggle {
    flex-shrink: 0;
  }

  .header-user-meta,
  .header-user-btn > .material-symbols-rounded {
    display: none;
  }

  .header-user-btn {
    width: 40px;
    height: 40px;
    padding: 3px;
    justify-content: center;
  }

  .header-login-btn {
    width: 40px;
    min-height: 40px;
    height: 40px;
    padding: 0;
  }

  .header-login-btn span:not(.material-symbols-rounded) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .header-dropdown {
    right: 12px;
    width: min(260px, calc(100vw - 32px));
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }

  .header-user-menu {
    position: static;
  }

  .dropdown-head-nick {
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding: 20px;
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .footer-docs {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .footer-disclaimer {
    line-height: 1.6;
  }

  .page-title {
    font-size: clamp(22px, 6vw, 26px);
  }

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

  .profile-user-nick {
    font-size: clamp(20px, 6vw, 28px);
  }

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

  .privilege-tag-row {
    flex-wrap: wrap;
  }

  .chat-container {
    height: clamp(320px, calc(100dvh - 210px), 600px);
    min-height: 0;
  }

  .chat-input-field,
  .history-search-input,
  .admin-form-input,
  .customize-text-input,
  .customize-hex-input,
  .customize-num-input,
  .customize-select {
    font-size: 16px;
  }

  .chat-input-meta {
    text-align: center;
    overflow-wrap: anywhere;
  }

  .history-table {
    min-width: 560px;
  }

  .history-table td > b,
  .history-id-code {
    white-space: nowrap;
  }

  .shop-tab {
    flex-basis: calc(50% - 6px);
    padding: 10px 8px;
    font-size: 13px;
  }

  .store-pricing-block,
  .store-durations-switch {
    max-width: 100%;
  }

  .store-durations-switch {
    flex-wrap: wrap;
  }

  .store-price-row {
    flex-wrap: wrap;
  }

  .customize-overlay,
  .modal-overlay {
    padding: 12px;
  }

  .customize-modal,
  .modal-box {
    min-width: 0;
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 20px 16px;
    border-radius: 18px;
    overflow-y: auto;
  }

  .customize-head,
  .modal-head {
    align-items: flex-start;
    gap: 12px;
  }

  .customize-head h2,
  .modal-head h2 {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .customize-close,
  .close-checkout {
    flex-shrink: 0;
  }

  .customize-color-row {
    flex-wrap: wrap;
  }

  .customize-color-row span {
    min-width: 0;
    flex: 1 1 100%;
  }

  .customize-text-input,
  .customize-range,
  .angle-picker-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .customize-main-tabs {
    flex-wrap: wrap;
  }

  .admin-modal-wide {
    max-height: calc(100dvh - 24px) !important;
    padding: 20px 16px !important;
  }

  .admin-store-card {
    min-width: 0;
    padding: 18px;
  }

  .admin-card-actions-bar {
    flex-wrap: wrap;
  }

  .admin-categories-card {
    padding: 20px 16px !important;
  }

  .admin-categories-card input {
    flex: 1;
    min-width: 0;
  }

  .admin-form-row,
  #promo-create-form,
  .donations-filter-grid,
  [data-admin-view="donations"] .history-stats-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-var-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: end;
  }

  .admin-var-col-name {
    grid-column: 1 / -1;
  }

  .admin-var-col-price {
    width: auto;
    min-width: 0;
  }

  .admin-preview-section {
    padding: 12px;
  }

  .admin-preview-container .store-card {
    padding: 16px;
  }

  .admin-preview-container .store-card-header > div {
    min-width: 0;
  }

  .admin-variations-block > div:first-child {
    flex-wrap: wrap;
    gap: 12px;
  }

  [data-product-modal] form > div:last-child {
    flex-direction: column;
  }

  .checkout-drawer {
    max-height: calc(100dvh - 24px) !important;
  }

  .checkout-product {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .checkout-product > strong {
    grid-column: 2;
  }

  .checkout-product b {
    overflow-wrap: anywhere;
  }

  #toast-container {
    left: 12px;
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  #toast-container > div {
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
}




