/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html, body {
background:#101820 !important;
}

/* Root Variables - Logo Based Theme */
:root {
    --bg-primary: #0b0f14;
    --bg-secondary: #0f1720;
    --bg-card: rgba(15, 23, 32, 0.75);

    --accent-primary: #00e0a4;
    --accent-secondary: #00b894;
    --accent-glow: rgba(0, 224, 164, 0.35);

    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
}

::selection {
  background: #00e0a4;
  color: #000;
  text-shadow: 0 0 5px rgba(0,224,164,0.6);
}

::-moz-selection {
  background: rgba(0, 224, 164, 0.8);
  color: #000;
}

body {
    background: radial-gradient(circle at top, #101820 0%, #0b0f14 60%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.hidden-opacity{
  opacity:0;
  pointer-events:none;
}

/* Placeholder */
::placeholder {
    color: var(--text-secondary);
    opacity: 1;
}

/* Gradient Glow Section */
.gradient-glow {
    background: linear-gradient(135deg, #0f1720 0%, #0b0f14 100%);
    box-shadow: 0 0 60px var(--accent-glow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0b0f14;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-3px);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 224, 164, 0.08);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Feature Card */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    transition: 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 35px rgba(0, 224, 164, 0.15);
    transform: translateY(-6px);
}

/* Stat Card */
.stat-card {
    background: rgba(0, 224, 164, 0.05);
    border: 1px solid rgba(0, 224, 164, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

/* Section Title */
.section-title {
    background: linear-gradient(90deg, #ffffff, var(--accent-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Step Number */
.step-number {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: #0b0f14;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Command Card */
.command-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    transition: 0.3s ease;
}

.command-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px rgba(0, 224, 164, 0.15);
}

/* Category Badge */
.category-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0b0f14;
    font-weight: 600;
}

/* Permission Badge */
.permission-badge {
    background: rgba(255, 59, 59, 0.15);
    border: 1px solid rgba(255, 59, 59, 0.4);
    color: #ff6b6b;
}

.copy-command {
    position: relative;
    transition: text-shadow 0.2s ease, transform 0.15s ease;
}

.copy-command::after {
    content: "Kliknij aby skopiować";
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 32, 0.95);
    color: #00e0a4;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(0,224,164,.3);
    transition: opacity .15s ease, transform .15s ease;
}

.copy-command:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.copy-command.glow {
    text-shadow:
        0 0 6px rgba(0,224,164,.8),
        0 0 14px rgba(0,224,164,.6),
        0 0 24px rgba(0,224,164,.4);
    transform: scale(1.03);
}

.dev-progress {
    position: absolute;
    bottom: 0;
    left: -40%;
    height: 3px;
    width: 40%;
    background: linear-gradient(
        90deg,
        transparent,
        #00e0a4,
        transparent
    );
    animation: devLoad 1.6s infinite ease-in-out;
}

@keyframes devLoad {
    0% { left: -40%; }
    100% { left: 100%; }
}

.flip-card { perspective: 1200px; }

.flip-inner {
    transition: transform .65s cubic-bezier(.4,.2,.2,1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-face { backface-visibility: hidden; }

.flip-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
}

.flip-card.flash {
    box-shadow:
        0 0 14px rgba(0,224,164,.7),
        0 0 35px rgba(0,224,164,.45);
}

[data-category] {
    transition: opacity .2s ease, transform .2s ease;
}

mark {
    font-weight: 600;
    background:rgba(0,224,164,.25);
    padding:2px 4px;
    border-radius:4px;
    color:white;
}

/* ===== PREMIUM LINK OVERRIDE ===== */

/* ===== PREMIUM LINK FULL ===== */

.premium-link {
  position: relative;
  display: inline-flex;
  transition: color .25s ease, text-shadow .25s ease;
}

/* underline base (center) */
.premium-link::after {
  content: "";
  position: absolute;

  left: 50%;
  bottom: -4px;

  width: 0%;
  height: 2px;

  transform: translateX(-50%);

  background: linear-gradient(
    90deg,
    #9ca3af,
    #facc15
  );

  transition: width .35s ease;
}

/* hover text */
.premium-link:hover {
  color: #facc15;

  text-shadow:
    0 0 8px rgba(250,204,21,.9),
    0 0 20px rgba(250,204,21,.5);
}

/* underline hover */
.premium-link:hover::after {
  width: 100%;

  animation: premiumGlow 1.2s ease-in-out infinite alternate;

  background: linear-gradient(
    90deg,
    #facc15,
    #fde68a,
    #facc15
  );

  box-shadow:
    0 0 8px rgba(250,204,21,.7),
    0 0 16px rgba(250,204,21,.45);
}

/* glow animation */
@keyframes premiumGlow {
  from {
    box-shadow: 0 0 6px rgba(250,204,21,.5);
  }
  to {
    box-shadow: 0 0 16px rgba(250,204,21,.9);
  }
}

#scrollTopBtn{
  box-shadow:
    0 0 8px rgba(0,224,164,.4),
    0 0 16px rgba(0,224,164,.2);
  transition: box-shadow .25s ease, transform .2s ease;
}

#scrollTopBtn:hover{
  box-shadow:
    0 0 12px rgba(0,224,164,.7),
    0 0 24px rgba(0,224,164,.4);

  transform: translateY(-2px) scale(1.05);
}

/* ===== SCROLL ARROW (CLEAN) ===== */

.scroll-arrow{
  transition: transform .25s ease;
}

/* hover – zostaje efekt */
#scrollTopBtn:hover .scroll-arrow{
  transform: translateY(-4px) scale(1.08);
}

.inline-info{
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.inline-info-dot{
    width:16px;
    height:16px;
    border-radius:50%;
    background:#00e0a4;
    color:#06261e;
    font-size:11px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    position:relative; /* anchor */
}

.inline-tooltip{
    position:absolute;
    bottom:-10px;
    left:50%;
    transform:translate(-50%, 100%) scale(.95);

    width:190px;
    background:#0b0f14;
    color:#e5e7eb;

    font-size:10.5px;        /* mniejszy */
    font-weight:400;        /* bez pogrubienia */
    line-height:1.45;       /* lepszy flow */

    padding:7px 10px;
    border-radius:8px;
    border:1px solid rgba(0,224,164,.35);
    box-shadow:0 12px 26px rgba(0,0,0,.6);

    opacity:0;
    pointer-events:none;
    transition:.18s ease;
    z-index:80;
}

.inline-tooltip strong{
  color:#00e0a4;
  font-weight:500;
}

/* arrow */
.inline-tooltip::before{
    content:"";
    position:absolute;
    top:-5px;
    left:50%;
    transform:translateX(-50%) rotate(45deg);
    width:8px;
    height:8px;
    background:#0b0f14;
    border-left:1px solid rgba(0,224,164,.35);
    border-top:1px solid rgba(0,224,164,.35);
}

/* show with float in */
.inline-info-dot:hover .inline-tooltip,
.inline-info-dot.active .inline-tooltip{
    opacity:1;
    transform:translate(-50%, 110%) scale(1);
    pointer-events:auto;
}

.faq-answer{
max-height:0;
overflow:hidden;
opacity:0;
transition:max-height .35s ease,opacity .25s ease;
}

.faq-item.active .faq-answer{
max-height:300px;
opacity:1;
}

.faq-item.active{
border-color:#00e0a4;
box-shadow:0 0 12px rgba(0,224,164,.35),0 0 24px rgba(0,224,164,.15);
}

.faq-question span:last-child{
transition:transform .3s ease;
}

.faq-item.active .faq-question span:last-child{
transform:rotate(180deg);
}

.faq-item{
    transition: transform .25s ease, box-shadow .25s ease;
}

.faq-item:hover{
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(0,224,164,.15);
}

/* ===== DISCORD BUTTON CLEAN ===== */

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 24px;          /* px-6 py-2 */
  border-radius: 8px;         /* rounded-lg */

  font-size: 0.875rem;        /* text-sm */
  font-weight: 500;           /* font-medium */
  color: white;

  background: #5865F2;
  border: none;

  transition: all .2s ease;
}

.discord-btn:hover {
  background: #4752C4;
  box-shadow: 0 0 15px rgba(88,101,242,.35);
  transform: translateY(-2px);
}

.discord-btn:active {
  transform: scale(.97);
}

.discord-btn-icon {
  width: 16px;
  height: 16px;
  transition: transform .25s ease, filter .25s ease;
}

.discord-btn:hover .discord-btn-icon {
  transform: rotate(-8deg) scale(1.08);
  filter: drop-shadow(0 0 6px rgba(255,255,255,.4));
}

/* ===== USER PANEL GLASS + SUBTLE UNIX BORDER ===== */

#user-panel {
  position: absolute;
  overflow: hidden;

  background: #1a222c;
  border-radius: 12px;

  border: 1px solid #2a3542;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

/* 🔥 subtle unix glow */
#user-panel:hover {
  border-color: rgba(0,224,164,0.25);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.65),
    0 0 12px rgba(0,224,164,0.12),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.user-arrow {
  position: absolute;

  top: 50px; /* 🔥 wysokość pod avatar */
  right: 16px; /* 🔥 dopasowanie do avatara */

  width: 12px;
  height: 12px;

  background: #1a222c;

  transform: rotate(45deg);

  border-left: 1px solid #2a3542;
  border-top: 1px solid #2a3542;

  box-shadow: -2px -2px 8px rgba(0,0,0,.5);

  z-index: 60;
}

.mobile-user-arrow {
  position: absolute;

  top: 50px; /* 🔥 wysokość pod avatar */
  right: 24px; /* 🔥 dopasowanie do avatara */

  width: 12px;
  height: 12px;

  background: #1a222c;

  transform: rotate(45deg);

  border-left: 1px solid #2a3542;
  border-top: 1px solid #2a3542;

  box-shadow: -2px -2px 8px rgba(0,0,0,.5);

  z-index: 60;
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-10px);

  transition:
    max-height .35s ease,
    opacity .25s ease,
    transform .25s ease;
}

/* OPEN */
#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE USER PANEL ===== */

#mobile-user-panel {
  position: absolute;
  overflow: hidden;

  background: #1a222c;
  border-radius: 12px;

  border: 1px solid #2a3542;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

/* hover mobile */
#mobile-user-panel:hover {
  border-color: rgba(0,224,164,0.25);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.65),
    0 0 12px rgba(0,224,164,0.12),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

/* header divider (zostawiamy bo ładne) */
#mobile-user-panel > div:first-child {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#lang-toggle.active {
  box-shadow:
    0 0 8px rgba(0,224,164,.25),
    0 0 18px rgba(0,224,164,.15);
  animation: langPulse 3s ease-in-out infinite;
}

@keyframes langPulse {
  0%,100% { box-shadow: 0 0 6px rgba(0,224,164,.25); }
  50% { box-shadow: 0 0 14px rgba(0,224,164,.45); }
}

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

.maintenance-toggle {
position: relative;
display: inline-block;
width: 46px;
height: 26px;
}

.maintenance-toggle input {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}

.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #334155;
border-radius: 30px;
transition: 0.3s;
}

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

.maintenance-toggle input:checked + .toggle-slider {
background: #00e0a4;
box-shadow: 0 0 8px #00e0a4;
}

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

/* ===== Maintenance Buttons ===== */

.maintenance-btn-primary{
display:flex;
align-items:center;
justify-content:center;

padding:12px 24px;
width:100%;

border-radius:10px;

background:linear-gradient(90deg,#00e0a4,#00b894);
color:black;
font-weight:600;

transition:all .25s ease;
}

.maintenance-btn-primary:hover{
transform:translateY(-2px) scale(1.05);
box-shadow:0 0 20px rgba(0,224,164,.35);
}

@keyframes maintenanceEnter{
0%{
opacity:0;
transform:translateY(20px) scale(.96);
}
100%{
opacity:1;
transform:translateY(0) scale(1);
}
}


/* support */

.maintenance-btn-secondary{
display:flex;
align-items:center;
justify-content:center;

padding:12px 24px;
width:100%;

border-radius:10px;

border:1px solid rgba(0,224,164,.4);
color:#00e0a4;

transition:all .25s ease;
}

.maintenance-btn-secondary:hover{
background:rgba(0,224,164,.08);
transform:translateY(-2px) scale(1.05);
box-shadow:0 0 18px rgba(0,224,164,.25);
}


/* discord login */

.maintenance-btn-discord{
display:flex;
align-items:center;
justify-content:center;
gap:8px;

padding:12px 24px;
width:100%;

border-radius:10px;

background:#5865F2;
color:white;
font-weight:600;

transition:all .25s ease;
}

.maintenance-btn-discord:hover{
background:#4752c4;
transform:translateY(-2px) scale(1.05);
box-shadow:0 0 20px rgba(88,101,242,.4);
}

/* ===== DISCORD ICON ANIMATION (MAINTENANCE ONLY) ===== */

.maintenance-btn-discord .discord-btn-icon{
  transition:transform .25s ease, filter .25s ease;
}

.maintenance-btn-discord:hover .discord-btn-icon{
  transform:rotate(-8deg) scale(1.08);
  filter:drop-shadow(0 0 6px rgba(255,255,255,.4));
}

/* ===== USER PANEL SUPPORT BUTTON (same as btn-secondary) ===== */

.panel-support-btn{
display:block;
width:100%;
text-align:center;

padding:8px 24px;

border-radius:8px;

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

background:transparent;
border:1px solid var(--accent-primary);
color:var(--accent-primary);

transition:0.3s ease;
}

.panel-support-btn:hover{
background:rgba(0,224,164,0.08);
box-shadow:0 0 15px var(--accent-glow);
}

/* ===== USER PANEL ITEMS ===== */

.panel-item{
display:flex;
align-items:center;
gap:10px;

width:100%;

padding:10px 14px;

border-radius:8px;

font-size:14px;

color:#d1d5db;

transition:all .25s ease;
}

.panel-item:hover{
background:#1e293b;
transform:translateX(4px);
}

.panel-item:not(.logout-item):hover{
background:#1e293b;
box-shadow:
0 0 8px rgba(255,255,255,.08),
inset 0 0 6px rgba(255,255,255,.04);
}

/* ===== ICON ===== */

.panel-icon{
width:16px;
height:16px;

filter:invert(1);

transition:transform .25s ease;
}

/* ===== LOGOUT ICON ===== */

.logout-icon{
width:16px;
height:16px;
min-width:16px;
min-height:16px;

display:block;
flex-shrink:0;

/* normalny kolor jak reszta ikon */
filter:invert(1);

transition:transform .25s ease, filter .25s ease;
}

/* animacja ikon */

.panel-item:hover .panel-icon{
transform:translateX(2px) scale(1.05);
}

/* wysunięcie + zmiana koloru */

.logout-item:hover .logout-icon{
transform:translateX(6px) scale(1.05);

/* czerwony */
filter:invert(18%) sepia(94%) saturate(5200%)
hue-rotate(350deg) brightness(110%) contrast(110%);
}

/* czerwony hover przycisku */

.logout-item:hover{
background:rgba(239,68,68,.08);
box-shadow:0 0 12px rgba(239,68,68,.04);
}

.nav-unix{
background: linear-gradient(
90deg,
#00e0a4,
#00b894,
#00e0a4
);

background-size: 200% 200%;

-webkit-background-clip: text;
background-clip: text;
color: transparent;

animation: unixGlowMove 4s linear infinite;

text-shadow:
0 0 6px rgba(0,224,164,0.5),
0 0 18px rgba(0,224,164,0.25);

transition: all .3s ease;

}

.nav-unix:hover{

text-shadow:
0 0 10px rgba(0,224,164,0.9),
0 0 30px rgba(0,224,164,0.6);

}

@keyframes unixGlowMove{

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

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

.footer-lang-option img{
transition: transform .2s ease;
}

.footer-lang-option:hover img{
transform: scale(1.15);
}

/* ===== UNIX LOGO GLOW PREMIUM ===== */

.nav-logo{
position:relative;
width:32px;
height:32px;
display:flex;
align-items:center;
justify-content:center;
}

/* miękki gradient glow pod logo */

.nav-logo::before{
content:"";
position:absolute;
inset:-6px;

background:radial-gradient(
circle at center,
rgba(0,224,164,.35),
transparent 65%
);

filter:blur(10px);
opacity:.6;
z-index:-1;

transition:.35s ease;
}

/* obraz logo */

.nav-logo-img{
width:100%;
height:100%;
object-fit:contain;

filter:
drop-shadow(0 0 6px rgba(0,224,164,.25));
transition:.3s ease;
}

/* hover */

.nav-logo:hover::before{
opacity:.9;
filter:blur(14px);
}

.nav-logo:hover .nav-logo-img{
transform:scale(1.06);
filter:
drop-shadow(0 0 8px rgba(0,224,164,.5))
drop-shadow(0 0 18px rgba(0,184,148,.35));
}

/* ===== NAVBAR LINK UNDERLINE (UNIX STYLE) ===== */

.nav-link {
  position: relative;
  display: inline-block;
  transition: color .35s ease, text-shadow .35s ease;
}

/* underline base (center start) */
.nav-link::after {
  content: "";
  position: absolute;

  left: 50%;
  bottom: -4px;

  width: 0%;
  height: 2px;

  transform: translateX(-50%);

  background: linear-gradient(
    90deg,
    #9ca3af,
    #00e0a4
  );

  transition: width .35s ease;
}

/* hover */
.nav-link:hover {
  color: #00e0a4;

  text-shadow:
    0 0 6px rgba(0,224,164,.5),
    0 0 14px rgba(0,224,164,.25);
}

/* slide from center */
.nav-link:hover::after {
  width: 100%;

background: linear-gradient(
    90deg,
    #00e0a4,
    #a3f3dd,
    #00e0a4
  );

  box-shadow:
    0 0 6px rgba(0, 224, 164, 0.5),
    0 0 12px rgba(0,224,164,.3);
}

/* smooth language switch */

html.lang-transition *{
transition:
color .15s ease,
background-color .15s ease,
border-color .15s ease,
fill .15s ease;
}

/* unix signature */

.unix-sign{
display:inline-block;
margin-top:6px;

font-weight:500;
letter-spacing:.08em;
font-size:.95em;

background:linear-gradient(90deg,#00e0a4,#00b894);
-webkit-background-clip:text;
background-clip:text;
color:transparent;

text-shadow:0 0 10px rgba(0,224,164,.25);
}

/* ===== FOOTER SOCIAL ICONS CLEAN ===== */

.footer-social{
display:inline-flex;
align-items:center;
justify-content:center;

width:18px;
height:18px;

transition:all .2s ease;
}

.footer-social img{
width:18px;
height:18px;

/* taki sam kolor jak tekst footer */
opacity:.65;

filter:invert(70%) sepia(8%) saturate(200%) hue-rotate(180deg);

transition:all .2s ease;
}

/* hover */

.footer-social:hover img{
opacity:1;

filter:
invert(100%)
drop-shadow(0 0 6px rgba(0,224,164,.35));
}

.cmd-box {
  background: #2b2d31;
  border-radius: 6px;

  padding: 7px 10px;   /* było większe */
  font-size: 13px;     /* było 14px */
  line-height: 1.4;

  font-family: monospace;
  display: block;

  transition: .2s;
}

/* kolory */
.cmd {
  color: #00e0a4;
  font-weight: 500;
}

.cmd-required {
  color: #ffffff;
}

.cmd-optional {
  color: #9ca3af;
}

.cmd-box:hover {
  box-shadow: 0 0 10px rgba(0,224,164,.12);
  transform: translateY(-1px);
}

.cmd-legend {
  position: relative;
  display: inline-block;
  margin-left: 16px;
}

/* HEADER */
.cmd-legend-header {
  background: none;
  border: none;
  padding: 0;

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

  color: #9ca3af;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 6px;

  transition: .2s;
}

.cmd-legend-header:hover {
  color: #00e0a4;
}

/* strzałka */
.cmd-legend-arrow {
  font-size: 12px;
  transition: transform .25s ease;
}

/* 🔥 DROPDOWN – TERAZ NORMALNY PANEL */
.cmd-legend-content {
  position: absolute;
  top: 140%;
  left: 8px; /* 👈 NA LEWO */

  width: 280px; /* 👈 KLUCZ: większe */
  padding: 14px 16px;

  background: #0b0f14;
  border-radius: 12px;

  box-shadow: 0 20px 50px rgba(0,0,0,.6);

  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition: .2s ease;
}

/* ACTIVE */
.cmd-legend.active .cmd-legend-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cmd-legend.active .cmd-legend-arrow {
  transform: rotate(180deg);
}

/* ITEM */
.cmd-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 13px;
  line-height: 1.5;
}

/* TEXT */
.cmd-legend-text {
  color: #9ca3af;
}

/* mini box */
.cmd-box-mini {
  background: #2b2d31;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}

#panel-role span,
#mobile-panel-role span{
text-shadow: 0 0 8px rgba(0,224,164,.25);
}

.role-dev { color: #ffffff; }
.role-friend { color: #3dcf2a; }
.role-partner { color: #3b82f6; }
.role-tester { color: #a855f7; }
.role-premium { color: #facc15; }
.role-supporter { color: #fa9616; }
.role-basic { color: #9ca3af; }

.role-dev img {
  filter: drop-shadow(0 0 6px #ffffff);
}

.role-friend img {
  filter: drop-shadow(0 0 6px #3dcf2a);
}

.role-partner img {
  filter: drop-shadow(0 0 6px #3b82f6);
}

.role-tester img {
  filter: drop-shadow(0 0 6px #a855f7);
}

.role-premium img {
  filter: drop-shadow(0 0 6px #facc15);
}

.role-supporter img {
  filter: drop-shadow(0 0 6px #fa9616);
}

.role-basic img {
  filter: drop-shadow(0 0 6px #9ca3af);
}

/* ===== PREMIUM CARD ===== */

.premium-card{
background:rgba(15,23,32,.7);
border:1px solid rgba(255,255,255,.08);

padding:24px;
border-radius:16px;

text-align:center;

transition:.3s ease;
}

.premium-card h3{
font-weight:600;
margin-bottom:6px;
}

.premium-card p{
font-size:14px;
color:#9ca3af;
}

.premium-card:hover{
transform:translateY(-6px);

border-color:#00e0a4;

box-shadow:
0 0 20px rgba(0,224,164,.2),
0 0 40px rgba(0,224,164,.1);
}

/* ===== PRICE BOX ===== */

.premium-price-box{
position:relative;

background:rgba(15,23,32,.75);
border:1px solid rgba(0,224,164,.25);

padding:40px 30px;
border-radius:20px;

width:320px;

text-align:center;

box-shadow:
0 0 30px rgba(0,224,164,.15),
inset 0 0 25px rgba(0,224,164,.05);
}

/* badge */

.premium-badge{
position:absolute;
top:-14px;
left:50%;
transform:translateX(-50%);

background:#facc15;
color:black;

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

padding:6px 12px;
border-radius:999px;

box-shadow:0 0 12px rgba(250,204,21,.5);
}

/* old price */

.premium-old-price{
text-decoration:line-through;
color:#6b7280;
font-size:14px;
}

/* new price */

.premium-price{
font-size:36px;
font-weight:700;

background:linear-gradient(90deg,#00e0a4,#00b894);
background-clip: text;
-webkit-background-clip: text;
color:transparent;

text-shadow:0 0 10px rgba(0,224,164,.4);
}

.premium-sub{
font-size:14px;
color:#9ca3af;
}

/* ===== BUTTON ===== */

.premium-buy-btn{
display:flex;
align-items:center;
justify-content:center;
gap:8px;

width:100%;
padding:14px 20px;

border-radius:12px;

font-weight:600;
font-size:15px;

background:linear-gradient(135deg,#00e0a4,#00b894);
color:#04241c;

opacity:.6;
cursor:not-allowed;

position:relative;
overflow:hidden;

transition:.25s ease;

box-shadow:
0 0 10px rgba(0,224,164,.25),
0 0 25px rgba(0,224,164,.1);
}

.premium-buy-btn::before{
content:"";
position:absolute;
inset:0;

background:linear-gradient(
120deg,
transparent,
rgba(255,255,255,.25),
transparent
);

transform:translateX(-120%);
}

.premium-buy-btn:hover::before{
transform:translateX(120%);
transition:.6s;
}

.premium-buy-btn::after{
content:"🔒";
position:absolute;
right:12px;
font-size:14px;
opacity:.7;
}

.premium-coming{
font-size:12px;
color:#064e3b;
opacity:.8;
}

.premium-hero-img{
filter:
drop-shadow(0 0 10px rgba(0,224,164,.5))
drop-shadow(0 0 25px rgba(0,224,164,.25));

animation: premiumFloat 4s ease-in-out infinite;
transition: .3s ease;
}

.premium-hero-img:hover{
transform: scale(1.08) rotate(-3deg);

filter:
drop-shadow(0 0 14px rgba(0,224,164,.8))
drop-shadow(0 0 40px rgba(0,224,164,.45));
}

@keyframes premiumFloat{
0%,100%{ transform: translateY(0); }
50%{ transform: translateY(-8px); }
}

.premium-scroll-btn{
display:flex;
align-items:center;
gap:8px;

padding:10px 18px;

border-radius:999px;

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

color:#00e0a4;

border:1px solid rgba(0,224,164,.35);

background:rgba(0,224,164,.08);

transition:.25s ease;
}

.premium-scroll-btn:hover{
transform:translateY(-2px);

box-shadow:
0 0 12px rgba(0,224,164,.35),
0 0 25px rgba(0,224,164,.15);

background:rgba(0,224,164,.12);
}

/* strzałka */

.premium-scroll-arrow{
transition:.25s ease;
}

.premium-scroll-btn:hover .premium-scroll-arrow{
transform:translateY(4px);
}

/* subtle bounce anim */

.premium-scroll-arrow{
animation: premiumArrowBounce 1.6s infinite;
}

@keyframes premiumArrowBounce{
0%,100%{ transform:translateY(0); }
50%{ transform:translateY(4px); }
}

.panel-layout {
  display: flex;
  min-height: 100vh;
}

.panel-sidebar {
  width: 220px;
  background: rgba(15,23,32,.85);
  border-right: 1px solid rgba(0,224,164,.2);
  padding: 20px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-sidebar button {
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  transition: .2s;
}

.panel-sidebar button:hover {
  background: rgba(0,224,164,.08);
  color: #00e0a4;
}

.panel-content {
  flex: 1;
  padding: 30px;
}

.panel-tab.hidden {
  display: none;
}

/* stats */
.stats-grid {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.stat-box {
  background: rgba(15,23,32,.7);
  border: 1px solid rgba(0,224,164,.2);
  padding: 20px;
  border-radius: 12px;
  width: 150px;
  text-align: center;
}

/* ===== BURGER ===== */

.burger {
  width: 26px;
  height: 20px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  cursor: pointer;
  z-index: 100;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;

  background: #9ca3af;
  border-radius: 2px;

  transition: all .35s cubic-bezier(.4,.2,.2,1);
}

/* HOVER */
.burger:hover span {
  background: #00e0a4;
  box-shadow: 0 0 6px rgba(0,224,164,.6);
}

/* ACTIVE (X) */
.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== PING STATUS ===== */

#ping-dot {
  background: #00e0a4;
  box-shadow: 0 0 6px rgba(0,224,164,.6);
  transition: .3s ease;
}

#ping-anim {
  background: #00e0a4;
  animation: pingPulse 1.5s infinite;
}

/* 🔴 OFFLINE */
.ping-offline #ping-dot {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239,68,68,.6);
}

.ping-offline #ping-anim {
  display: none;
}

/* 🟢 ONLINE */
.ping-online #ping-dot {
  background: #00e0a4;
}

.ping-online #ping-anim {
  display: block;
}

#ping-box.loading {
  opacity: 0.6;
  transition: opacity .2s ease;
}

/* animacja */
@keyframes pingPulse {
  0% {
    transform: scale(1);
    opacity: .7;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* ===== AVATAR TRIGGER CLEAN ===== */

.avatar-trigger {
  all: unset;
  cursor: pointer;

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

  border-radius: 50%;
  position: relative;
  z-index: 50;
}

.avatar-img {
  width: 44px;
  height: 44px;

  border-radius: 50%;
  display: block;
  object-fit: cover;

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

.buycoffee-mobile {
    width: 160px;
    height: auto;
    opacity: 0.95;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.buycoffee-mobile:hover {
    transform: scale(1.05);
    opacity: 1;
}

.coffee-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;

    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

/* pokazanie */
.coffee-float.show {
    opacity: 1;
    transform: translateY(0);
}

/* NIE zmieniamy wyglądu — tylko lekki hover */
.coffee-float img {
    width: 200px;
    height: auto;
    transition: transform 0.2s ease;
}

.coffee-float:hover img {
    transform: scale(1.05);
}

/* mobile off */
@media (max-width: 768px) {
    .coffee-float {
        display: none;
    }
}

.footer-coffee-btn {
    width: 180px;
    height: auto;
    opacity: 0.95;
    transition: all 0.2s ease;
}

.footer-coffee-btn:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* desktop większy */
@media (min-width: 768px) {
    .footer-coffee-btn {
        width: 220px;
    }
}

.footer-coffee-center-btn {
    width: 140px;
    height: auto;
    opacity: 0.95;
    transition: all 0.2s ease;
}

.footer-coffee-center-btn:hover {
    transform: scale(1.05);
    opacity: 1;
}