*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #151515 0%, #020312 45%, #000000 100%);
  color: #f9fafb;
}

/* Top nav */

.topbar-wrapper {
  background: linear-gradient(90deg, #050716 0%, #020308 100%);
  box-shadow: 0 0 30px rgba(0,0,0,.8);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 26px;
  color: #ff4040;
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
}

.logo img {
  height: 30px;
  margin-right: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.main-nav a {
  color: #e5e7eb;
  text-decoration: none;
  padding-bottom: 2px;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a.active {
  color: #ffffff;
  border-bottom: 2px solid #f97373;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

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

.nav-user-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.nav-user-name {
  font-size: 13px;
  font-weight: 600;
}


.rank-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.rank-admin {
  background: #b91c1c;
  color: #fee2e2;
}

.rank-vip {
  background: #4f46e5;
  color: #e0e7ff;
}

.rank-user {
  background: #374151;
  color: #e5e7eb;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: #ef4444;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease-out, box-shadow .08s ease-out, background .08s ease-out;
  box-shadow: 0 8px 25px rgba(239, 68, 68, .45);
}

.btn:hover {
  transform: translateY(-1px);
  background: #f97373;
}

.btn-secondary {
  background: #374151;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-small {
  padding: 5px 14px;
  font-size: 12px;
  box-shadow: none;
}

/* Layout */

.page-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 32px 40px;
}

/* Hero bar & latest section (górny pasek) */

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 2fr);
  gap: 18px;
  margin-bottom: 22px;
}

.hero-main {
  background: radial-gradient(circle at top left, #7f1d1d, #1a0508 42%, #020308 100%);
  border-radius: 18px;
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.8);
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 120% -10%, rgba(255,255,255,.12), transparent 60%);
  mix-blend-mode: screen;
  opacity: .8;
  pointer-events: none;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(248,113,113,.7);
  color: #fecaca;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 13px;
  max-width: 420px;
  color: #fee2e2;
}

.hero-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}

.hero-badge {
  background: rgba(15,23,42,.9);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-badge span:first-child {
  padding: 2px 7px;
  border-radius: 999px;
  background: #111827;
}

.hero-cta {
  margin-top: 18px;
}

/* Latest panel */

.latest-panel {
  background: radial-gradient(circle at top, #020617, #020617 60%, #000000 100%);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.7);
  display: flex;
  flex-direction: column;
}

.latest-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #9ca3af;
  margin-bottom: 12px;
}

.latest-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 10px;
}

.latest-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
  min-height: 76px;
  cursor: pointer;
}

.latest-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(.8);
  transform: scale(1.06);
}

.latest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,.85), rgba(15,23,42,.1));
}

.latest-card-content {
  position: relative;
  padding: 10px 12px;
  font-size: 12px;
}

/* Content cards */

.content-card {
  background: radial-gradient(circle at top left, #020617, #020617 50%, #020014 100%);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.75);
  margin-bottom: 18px;
}

.card-title {
  font-weight: 600;
  margin-bottom: 10px;
}

/* Dyski */

.disks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.disk-card {
  background: radial-gradient(circle at top, #020617, #000000 100%);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 32px rgba(0,0,0,.85);
}

.disk-poster {
  width: 100%;
  padding-top: 145%;
  background-color: #020617;
  background-size: cover;
  background-position: center;
}

.disk-body {
  padding: 9px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.disk-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 34px;
}

.disk-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #9ca3af;
}

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

.vote-group {
  display: inline-flex;
  gap: 6px;
}

.vote-btn {
  border-radius: 999px;
  border: 1px solid #111827;
  background: #020617;
  padding: 2px 8px;
  font-size: 11px;
  color: #e5e7eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vote-btn:hover {
  background: #111827;
}

/* Chat */

.chat-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 10px;
}

.chat-tabs a {
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  background: #111827;
  color: #e5e7eb;
  text-decoration: none;
}

.chat-tabs a.active {
  background: #4f46e5;
}

.chat-box {
  background: #020617;
  border-radius: 14px;
  padding: 10px 12px;
  max-height: 260px;
  overflow-y: auto;
  font-size: 13px;
}

/* Forms */

label {
  font-size: 12px;
  color: #9ca3af;
  display: block;
  margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  border-radius: 12px;
  background: #020617;
  border: 1px solid #111827;
  padding: 8px 10px;
  color: #f9fafb;
  font-size: 13px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.flash {
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 10px;
}

.flash-success {
  background: rgba(22,163,74,.12);
  border: 1px solid rgba(34,197,94,.7);
}

.flash-error {
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(248,113,113,.8);
}

/* Login page */

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(380px, 1fr);
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 48px;
  gap: 40px;
}

.login-hero-title {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.login-hero-sub {
  font-size: 16px;
  max-width: 460px;
  color: #e5e7eb;
}

.login-hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: #9ca3af;
}

.login-card-wrap {
  display: flex;
  justify-content: flex-end;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at top, #020617, #020617 60%, #000000 100%);
  border-radius: 18px;
  padding: 22px 20px 20px;
  box-shadow: 0 18px 45px rgba(0,0,0,.85);
}

.login-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.login-discord-btn {
  width: 100%;
  justify-content: center;
  background: #4f46e5;
  box-shadow: none;
  margin-top: 10px;
}

.login-discord-btn:hover {
  background: #6366f1;
}

/* Tables (admin) */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(31,41,55,.85);
  text-align: left;
}

th {
  color: #9ca3af;
  font-weight: 500;
}

/* Responsive */

@media (max-width: 1100px) {
  .hero-row {
    grid-template-columns: 1fr;
  }
  .login-layout {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 30px;
  }
  .login-card-wrap {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding-inline: 16px;
  }
  .page-wrap {
    padding-inline: 16px;
  }
  .main-nav {
    display: none;
  }
}


.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  margin-right: 8px;
}


.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-bubble {
  background: rgba(15,23,42,0.9);
  border-radius: 10px;
  padding: 4px 8px 6px 8px;
  max-width: 600px;
}

.chat-meta {
  font-size: 11px;
  color: #9ca3af;
}

.chat-delete-btn {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 11px;
  cursor: pointer;
  padding: 0 0 0 6px;
}

.chat-delete-btn:hover {
  color: #f97373;
}


.alert {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}

.alert.error {
  background: rgba(127, 29, 29, 0.8);
  color: #fee2e2;
}


.flash {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.flash-success {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.5);
  color: #a7f3d0;
}

.flash-error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.6);
  color: #fecaca;
}

.profile-card {
  max-width: 900px;
  margin: 24px auto;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.profile-header-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
}

.profile-login {
  font-size: 12px;
  color: #9ca3af;
}

.profile-header-meta {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.meta-label {
  color: #e5e7eb;
  font-weight: 500;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
  margin-top: 20px;
}

.profile-grid form label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.profile-grid input[type="text"],
.profile-grid input[type="password"] {
  width: 100%;
  margin-top: 4px;
}


.logs-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 520px;
  overflow-y: auto;
}

.log-card {
  background: #020617;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid #111827;
  font-size: 13px;
}

.log-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.log-type-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #1f2937;
}

.log-date {
  font-size: 11px;
  color: #6b7280;
}

.log-card-body {
  color: #e5e7eb;
  white-space: pre-wrap;
}
