/* Control panel + support — doplňuje panel-body-host */

.panel-shell-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-shell-header h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.panel-shell-header p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #64748b;
}

.panel-quick-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .panel-quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.panel-quick-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.45);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.panel-quick-link:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(30, 41, 59, 0.55);
  transform: translateY(-1px);
}

.panel-quick-link__icon {
  font-size: 1.1rem;
  opacity: 0.85;
}

.panel-quick-link__label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #f1f5f9;
}

.panel-quick-link__hint {
  font-size: 0.625rem;
  color: #64748b;
}

.panel-empty {
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
  background: rgba(15, 23, 42, 0.3);
}

.panel-empty p {
  font-size: 0.875rem;
  color: #64748b;
}

.panel-alert-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(15, 23, 42, 0.5));
}

/* Support portal */
.support-body {
  min-height: 100vh;
  background: #0a0a0a;
  color: #cbd5e1;
}

.support-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.85);
  font-size: 0.6875rem;
  color: #64748b;
}

.support-topbar a {
  color: #94a3b8;
  text-decoration: none;
}

.support-topbar a:hover {
  color: #fb923c;
}

.support-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #111827;
  padding: 1.5rem 1rem;
  text-align: center;
}

.support-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #fff;
  text-decoration: none;
}

.support-tagline {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #f97316;
}

.support-main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.support-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .support-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.support-card {
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.55);
  padding: 1.5rem;
}

.support-card h2 {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
}

.support-card__lead {
  margin-top: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748b;
}

.support-help-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.support-help-link + .support-help-link {
  margin-top: 0.5rem;
}

.support-help-link:hover {
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.06);
}

.support-help-link strong {
  display: block;
  font-size: 0.8125rem;
  color: #f1f5f9;
}

.support-help-link span {
  font-size: 0.6875rem;
  color: #64748b;
}

.support-help-link em {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fb923c;
}

.support-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.6875rem;
  color: #475569;
}

.support-footer a {
  color: #64748b;
  text-decoration: none;
}

.support-footer a:hover {
  color: #fb923c;
}

/* ── Client panel v2 ── */

.panel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.panel-filter {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.panel-filter:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
}

.panel-filter--active {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

.panel-empty-state {
  padding: 3rem 1.5rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.35);
  text-align: center;
}

.panel-empty-state__icon {
  display: block;
  font-size: 2.25rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.panel-empty-state__title {
  font-size: 1.125rem;
  font-weight: 900;
  color: #fff;
}

.panel-empty-state__text {
  margin-top: 0.5rem;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

.panel-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.panel-resource {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.4rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
  overflow: hidden;
}

.panel-resource::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 3px;
  border-radius: 2px;
  background: #f97316;
}

.panel-resource--game::before { background: #34d399; }
.panel-resource--web::before { background: #38bdf8; }
.panel-resource--vps::before { background: #a78bfa; }
.panel-resource--domain::before { background: #fbbf24; }
.panel-resource--dedi::before { background: #f97316; }

.panel-resource__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel-resource__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.panel-resource__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.15rem;
}

.panel-resource__title {
  font-size: 1rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.25;
  word-break: break-word;
}

.panel-resource__subtitle {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #64748b;
}

.panel-resource__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-resource__meta dt {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.panel-resource__meta dd {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
}

.panel-resource__foot {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-order {
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
  overflow: hidden;
}

.panel-order--pending {
  border-color: rgba(251, 191, 36, 0.25);
}

.panel-order__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.panel-order__id {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.panel-order__amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
}

.panel-order__body {
  padding: 0 1.25rem;
}

.panel-order__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
}

.panel-order__item:last-child {
  border-bottom: none;
}

.panel-order__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.1);
}

.panel-ticket {
  padding: 1rem 1.15rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.panel-ticket + .panel-ticket {
  margin-top: 0.65rem;
}

.panel-ticket__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel-ticket__subject {
  font-size: 0.875rem;
  font-weight: 800;
  color: #f1f5f9;
}

.panel-ticket__date {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: #64748b;
}

.panel-ticket__preview {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-section-title h2 {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
}

.panel-topbar-account {
  display: none;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

@media (min-width: 640px) {
  .panel-topbar-account {
    display: block;
  }
}

.panel-login-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.65);
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.panel-stat-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .panel-stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Server panel (Pterodactyl-style) ── */

.panel-resource--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.panel-resource--link:hover {
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.server-console__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.server-console__back {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f97316;
  text-decoration: none;
}

.server-console__back:hover {
  color: #fb923c;
}

.server-console__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.server-console__title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

.server-console__sub {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #64748b;
}

.server-console__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #475569;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.25);
}

.server-console__dot--on {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.server-console__power {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.server-console__danger {
  border-color: rgba(248, 113, 113, 0.25);
}

.server-console__reinstall-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  cursor: pointer;
}

.server-console__reinstall-check input {
  margin-top: 0.15rem;
  accent-color: #f87171;
}

.server-console__toast {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
  font-size: 0.875rem;
}

.server-console__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .server-console__grid {
    grid-template-columns: 1fr 280px;
  }
}

.server-console__main {
  min-width: 0;
}

.server-console__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.server-console__tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.server-console__tab {
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  cursor: pointer;
}

.server-console__tab--active {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
}

.server-console__panel {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.server-console__panel.hidden {
  display: none;
}

.server-console__log-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.server-console__log {
  margin: 0;
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #a7f3d0;
  background: #0a0f18;
  white-space: pre-wrap;
  word-break: break-word;
}

.server-console__connect {
  word-break: break-all;
}

.server-console__cmd {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

.server-console__cmd .input {
  flex: 1;
}

.server-console__files-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.server-console__files-list {
  max-height: 360px;
  overflow: auto;
}

.profile-billing-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
}

.profile-billing-type input {
  accent-color: #f97316;
}

.profile-billing-type--active {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.1);
  color: #fdba74;
}

.server-files__row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
}

.server-files__toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.server-files__open {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f97316;
  background: none;
  border: none;
  cursor: pointer;
}

.server-files__open:hover {
  color: #fb923c;
}

.server-console__file-editor {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.server-plugins__grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .server-plugins__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.server-plugins__card {
  padding: 0.85rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.server-plugins__item {
  font-size: 0.8125rem;
}
