* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #d1d5db;
  color: #333;
}

/* --- HERO / HEADER SECTION --- */
.hero-container {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://omnipvp.xyz/uploads/announcements/7B96A8ACF7-52CA-4E4B-BA9E-0628384989F67D.png') center/cover no-repeat;
  filter: blur(8px) brightness(0.85);
  transform: scale(1.08);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.navbar {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1300px;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 12px 6px 30px;
  color: #fff;
  font-size: 0.7rem;
  outline: none;
  width: 160px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 600;
}

.search-box i {
  position: absolute;
  left: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
}

.login-btn {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 15px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-chip {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0,0,0,0.25);
  padding: 6px 12px;
  border-radius: 15px;
}

.logo-container {
  position: relative;
  z-index: 3;
  margin-bottom: 25px;
  text-align: center;
}

.logo-img {
  width: 320px;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

/* --- MAIN CONTENT LAYOUT --- */
.main-wrapper {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 25px;
}

.main-wrapper--single {
  grid-template-columns: 1fr;
}

/* --- POSTS SECTION --- */
.posts-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-height: 220px;
}

.featured-img {
  width: 45%;
  object-fit: cover;
}

.featured-content {
  width: 55%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.badge-latest {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #900;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.featured-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin-top: 10px;
}

.featured-subtitle {
  font-size: 1.25rem;
  font-weight: 900;
  color: #cc2222;
  line-height: 1.2;
  margin-top: 5px;
  text-transform: uppercase;
}

.featured-desc {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.4;
  margin-top: 10px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.author-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d32f2f;
}

.post-date {
  font-size: 0.7rem;
  color: #aaa;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.post-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.post-card-content {
  padding: 15px;
  text-align: center;
}

.post-card-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
}

.post-card-sub {
  font-size: 1rem;
  font-weight: 900;
  color: #cc2222;
  margin-top: 5px;
}

/* --- ANNOUNCEMENT LINKS --- */
.featured-card-link,
.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.post-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.featured-card-link:focus,
.post-card-link:focus {
  outline: 2px solid #b00000;
  outline-offset: 2px;
}

/* --- SIDEBAR --- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.widget-ip {
  background: #b00000;
  border-radius: 8px;
  padding: 12px 15px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.ip-text {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.online-count {
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
}

.online-count.online {
  background: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.online-count.offline {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.server-motd {
  font-size: 0.6rem;
  opacity: 0.8;
  margin-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.widget-discord {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.discord-header {
  background: #5865f2;
  color: #fff;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.discord-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.discord-count {
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}

.discord-body {
  padding: 12px 15px;
  background: #fafafa;
}

.members-label {
  font-size: 0.75rem;
  color: #888;
  font-weight: 600;
  margin-bottom: 10px;
}

.discord-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discord-member {
  position: relative;
  width: 36px;
  height: 36px;
}

.discord-member img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.discord-member .member-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.discord-member .member-status.online { background: #3ba55c; }
.discord-member .member-status.idle { background: #faa61a; }
.discord-member .member-status.dnd { background: #ed4245; }
.discord-member .member-status.offline { background: #747f8d; }

.discord-member.more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  font-size: 0.7rem;
  font-weight: 800;
  color: #888;
}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 200px 0;
    width: 100%;
}

.site-footer p {
    margin: 0;
}

.discord-footer {
  border-top: 1px solid #eee;
  padding: 8px 15px;
  font-size: 0.65rem;
  color: #aaa;
  background: #fff;
}
  font-size: 0.65rem;
  color: #999;
  font-weight: 700;
  text-transform: uppercase;
}

.discord-footer {
  border-top: 1px solid #eee;
  padding: 8px 15px;
  font-size: 0.65rem;
  color: #aaa;
  background: #fff;
}

/* --- BREADCRUMB / IP ROW (leaderboard, staff, etc) --- */
.breadcrumb-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.breadcrumb-card {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.breadcrumb-card span, .breadcrumb-card a {
  color: #cc2222;
  text-decoration: none;
}

.breadcrumb-row .widget-ip {
  width: 260px;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #555;
  margin: 25px 0 12px;
}

/* --- TOP PLAYER CARDS --- */
.top-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.top-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.top-card img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

.top-card-name {
  font-weight: 800;
  color: #d38b1d;
  font-size: 1rem;
}

.tag {
  display: inline-block;
  background: #fbbf24;
  color: #78350f;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  margin-top: 4px;
}

/* --- LEADERBOARD TABS --- */
.tabs-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tabs-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  color: #999;
  background: #f2f2f2;
  text-transform: uppercase;
}

.tab-btn--active {
  background: #b00000;
  color: #fff;
}

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

.kdr-col h3 {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #333;
}

.rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f8f8f8;
}

.rank-num {
  color: #aaa;
  font-weight: 700;
  width: 16px;
}

.rank-avatar {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.rank-name {
  flex: 1;
  font-weight: 700;
  color: #d38b1d;
}

.rank-value {
  background: #fbbf24;
  color: #78350f;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
}

.rank-empty {
  color: #aaa;
  font-size: 0.75rem;
  text-align: center;
  padding: 10px;
}

/* --- STAFF PAGE --- */
.rank-group-header {
  background: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 20px 0 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 10px;
}

.staff-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.staff-name {
  font-weight: 700;
  margin-bottom: 10px;
}

.staff-badge {
  display: inline-block;
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 6px 20px;
  border-radius: 20px;
}

/* --- FORMS --- */
.form-card-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0 50px;
}

.form-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  max-width: 420px;
  width: 100%;
  margin-bottom: 20px;
}

.form-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-card-subtitle {
  font-size: 0.8rem;
  color: #888;
  margin: 6px 0 20px;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stack-form label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  margin-top: 8px;
}

.stack-form input[type="text"],
.stack-form input[type="password"],
.stack-form input[type="number"],
.stack-form input[type="email"],
.stack-form select,
.stack-form textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus {
  border-color: #b00000;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  text-transform: none;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  background: #fafafa;
  padding: 12px;
  border-radius: 8px;
}

.btn-primary {
  margin-top: 15px;
  background: #b00000;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.btn-primary:hover { background: #900; }

.btn-secondary {
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-secondary-sm, .btn-danger-sm {
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
}

.btn-secondary-sm { background: #eee; color: #333; }
.btn-danger-sm { background: #cc2222; color: #fff; }

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.alert-error {
  background: #fde2e2;
  color: #a10000;
  border: 1px solid #f5b5b5;
}

.empty-state {
  background: #fff;
  border-radius: 10px;
  padding: 60px 20px;
  text-align: center;
  color: #999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  color: #ccc;
}

.muted-text {
  color: #999;
  font-size: 0.75rem;
}

/* --- SUPPORT / TICKETS --- */
.two-col-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 25px;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-row {
  background: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-size: 0.8rem;
  font-weight: 700;
}

.ticket-status {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 10px;
  text-transform: uppercase;
}

.ticket-status--open { background: #dcfce7; color: #166534; }
.ticket-status--closed { background: #f1f1f1; color: #888; }

.ticket-category {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  margin-right: 8px;
}

.ticket-category--soporte { background: #dbeafe; color: #1e40af; }
.ticket-category--tienda { background: #fef3c7; color: #92400e; }
.ticket-category--reportes { background: #fee2e2; color: #991b1b; }
.ticket-category--apelaciones { background: #fce7f3; color: #9d174d; }
.ticket-category--media { background: #e0e7ff; color: #3730a3; }
.ticket-category--rollbacks { background: #f3f4f6; color: #374151; }

.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.ticket-msg {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 0.82rem;
}

.ticket-msg--staff {
  background: #fdecec;
  border-left: 3px solid #b00000;
}

.ticket-msg-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.7rem;
}

.rank-badge {
  display: inline-block;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.announcement-code {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  font-family: monospace;
  letter-spacing: 1px;
}

.ticket-attachment {
  margin-top: 10px;
}

.attachment-img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: zoom-in;
  transition: transform 0.2s;
}

.attachment-img:hover {
  transform: scale(1.02);
}

/* --- PANEL TICKETS FILTER --- */
.ticket-filters {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filter-form {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-form label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
}

.filter-form select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.78rem;
  background: #fff;
}

/* --- PANEL (STAFF) --- */
.panel-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 25px;
}

.panel-sidebar {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  height: fit-content;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.panel-sidebar-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: #aaa;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.panel-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 6px;
  color: #444;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.panel-link:hover { background: #f5f5f5; color: #b00000; }

.panel-content {
  min-width: 0;
}

.panel-header {
  margin-bottom: 20px;
}

.panel-header h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 4px;
}

.panel-header .subtitle {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}

.panel-section {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.panel-section h2 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #555;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #b00000;
}

.form-group small {
  font-size: 0.65rem;
  color: #999;
}

.checkbox-group .checkbox-label {
  margin-top: 4px;
}

.form-actions {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.btn {
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: #b00000;
  color: #fff;
}

.btn-primary:hover { background: #900; }

.btn-danger-sm {
  background: #cc2222;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  border: none;
}

.btn-danger-sm:hover { background: #a00; }

.table-responsive {
  overflow-x: auto;
}

.tag-red { background: #fee2e2; color: #991b1b; padding: 3px 8px; border-radius: 10px; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.tag-blue { background: #dbeafe; color: #1e40af; padding: 3px 8px; border-radius: 10px; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.tag-green { background: #dcfce7; color: #166534; padding: 3px 8px; border-radius: 10px; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.tag-gray { background: #f1f1f1; color: #888; padding: 3px 8px; border-radius: 10px; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }

.rank-badge {
  display: inline-block;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #6366f1;
}

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.alert-error {
  background: #fde2e2;
  color: #a10000;
  border: 1px solid #f5b5b5;
}

.empty-state {
  background: #fff;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  color: #999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  color: #ddd;
}

.muted-text {
  color: #999;
  font-size: 0.75rem;
}

.inline-form {
  display: inline;
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
  .panel-layout {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --- ANNOUNCEMENT DETAIL /a/:code --- */
.announcement-article {
  max-width: 800px;
  margin: 0 auto;
}

.announcement-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.announcement-rank {
  display: inline-block;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.author-link {
  font-weight: 800;
  font-size: 1.1rem;
  color: #222;
  text-decoration: none;
}

.announcement-date {
  color: #888;
  font-size: 0.8rem;
}

.announcement-code-display {
  font-size: 0.7rem;
  color: #666;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 8px;
}

.announcement-image {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.announcement-image img {
  width: 100%;
  height: auto;
  display: block;
}

.announcement-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.announcement-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.announcement-subtitle {
  font-size: 1.2rem;
  font-weight: 800;
  color: #b00000;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcement-content p {
  margin-bottom: 1rem;
}

.announcement-content img {
  max-width: 100%;
  border-radius: 8px;
}

/* --- USER PROFILE /u/:username --- */
.profile-header {
  display: flex;
  gap: 24px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 24px;
  align-items: center;
}

.profile-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #f0f0f0;
}

.profile-info {
  flex: 1;
}

.profile-username {
  font-size: 1.5rem;
  font-weight: 900;
  color: #111;
  margin-bottom: 8px;
}

.profile-rank {
  display: inline-block;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}

.stat-box {
  text-align: center;
  padding: 16px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #eee;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #b00000;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.profile-leaderboards {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.leaderboard-card {
  background: #fafafa;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #eee;
}

.leaderboard-card-header h3 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #b00000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.leaderboard-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.stat-row .stat-icon {
  color: #b00000;
  width: 20px;
  text-align: center;
}

.stat-row .stat-number {
  font-weight: 900;
  font-size: 1.1rem;
  color: #111;
  min-width: 50px;
}

.stat-row .stat-name {
  color: #666;
  font-weight: 600;
}

.leaderboard-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b00000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leaderboard-link:hover {
  text-decoration: underline;
}

.announcement-code {
  font-family: monospace;
  font-size: 0.7rem;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 6px;
  color: #555;
}

/* --- EMPTY STATE --- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  color: #ddd;
}
