/* SOKAC DEVELOPMENT - Dark Matte & Crimson Gaming Aesthetics */

:root {
  --bg-dark: #08080b;
  --bg-card: #0f0f14;
  --bg-card-hover: #161620;
  --bg-input: #12121a;
  
  --red-primary: #e50914;
  --red-bright: #ff2a3d;
  --red-glow: rgba(255, 42, 61, 0.35);
  
  --text-main: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-red: rgba(255, 42, 61, 0.3);
  
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #20202d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-primary);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--red-glow));
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
}

.brand-name span {
  color: var(--red-bright);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover, .nav-link.active {
  color: var(--red-bright);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
}

.btn-red {
  background: linear-gradient(135deg, var(--red-bright), var(--red-primary));
  color: #fff;
  box-shadow: 0 4px 14px var(--red-glow);
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 42, 61, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
}

.btn-discord:hover {
  background: #4752C4;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

.btn-modal-secondary {
  width: 100%;
  padding: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-modal-secondary:hover {
  background: rgba(255, 42, 61, 0.1);
  border-color: var(--border-red);
  color: #fff;
}

/* HERO SECTION */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 42, 61, 0.1);
  border: 1px solid var(--border-red);
  color: var(--red-bright);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-title span {
  color: var(--red-bright);
  text-shadow: 0 0 25px var(--red-glow);
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* STATS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
}

.stat-val span {
  color: var(--red-bright);
}

.stat-lbl {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* PAGE SECTION */
.page-section {
  padding: 50px 0;
  flex-grow: 1;
}

.section-head {
  margin-bottom: 40px;
}

.section-tag {
  color: var(--red-bright);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}

/* SEARCH & FILTERS */
.search-field {
  position: relative;
}

.search-field input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-field input:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 12px var(--red-glow);
}

.search-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  margin-top: 24px;
}

.filter-btn {
  background: #12121c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  background: rgba(255, 42, 61, 0.12);
  border-color: var(--border-red);
  color: #fff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--red-primary), #b91c1c);
  border-color: var(--red-bright);
  color: #fff;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
}

/* CATEGORIES GRID */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-red);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #1a1012;
  color: var(--red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 42, 61, 0.2);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cat-card:hover .cat-icon {
  background: rgba(255, 42, 61, 0.12);
  border-color: rgba(255, 42, 61, 0.4);
}

.cat-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.cat-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  flex-grow: 1;
  margin-bottom: 18px;
}

.cat-action {
  position: relative;
  display: inline-flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #ff3a4d 0%, var(--red-primary) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 12px rgba(229, 9, 20, 0.28);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.cat-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
  pointer-events: none;
}

.cat-action > span,
.cat-action i {
  position: relative;
  z-index: 1;
}

.cat-action i {
  font-size: 0.78rem;
  transition: transform 0.25s ease;
}

.cat-card:hover .cat-action {
  background: linear-gradient(180deg, #ff5263 0%, #ff2a3d 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 16px rgba(255, 42, 61, 0.35);
  transform: translateY(-1px);
}

.cat-card:hover .cat-action::before {
  transform: translateX(120%);
}

.cat-card:hover .cat-action i {
  transform: translateX(4px);
}

/* RESOURCES GRID & CARDS */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.resource-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
}

.resource-thumb {
  width: 100%;
  height: 180px;
  position: relative;
  background: #181824;
  overflow: hidden;
}

.resource-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.resource-card:hover .resource-img {
  transform: scale(1.05);
}

.resource-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 8, 11, 0.8);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red-bright);
  border: 1px solid var(--border-red);
}

.resource-body {
  padding: 20px;
}

.resource-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.resource-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.resource-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* TICKET CHAT */
.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.ticket-form-card, .chat-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  outline: none;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red-bright);
}

.chat-panel {
  display: flex;
  flex-direction: column;
  height: 480px;
}

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

.chat-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.chat-msg.admin {
  background: #1c1c28;
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
}

.chat-msg.user {
  background: rgba(255, 42, 61, 0.15);
  border: 1px solid var(--border-red);
  align-self: flex-end;
}

.msg-name {
  font-size: 0.75rem;
  color: var(--red-bright);
  font-weight: 700;
  margin-bottom: 4px;
}

.chat-foot {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
}

/* USER PROFILE WIDGET & MINIMAL DROPDOWN */
.user-profile-wrapper {
  position: relative;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px 6px 8px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.user-profile-wrapper.open .user-profile-widget {
  border-color: rgba(255, 255, 255, 0.25);
  background: #13131a;
}

.user-profile-wrapper.open .dropdown-arrow {
  transform: rotate(180deg);
  color: #fff;
}

.user-profile-widget:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.dropdown-arrow {
  transition: transform 0.3s ease, color 0.3s ease;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red-bright);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid var(--red-bright);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.user-role-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.badge-owner {
  background: rgba(255, 42, 61, 0.2);
  border: 1px solid var(--red-bright);
  color: #ff2a3d;
  box-shadow: 0 0 10px rgba(255, 42, 61, 0.35);
}

.badge-admin {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid #3b82f6;
  color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.badge-mod {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid #eab308;
  color: #facc15;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.35);
}

.badge-dev {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #a855f7;
  color: #c084fc;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}

.badge-helper {
  background: rgba(20, 184, 166, 0.2);
  border: 1px solid #14b8a6;
  color: #2dd4bf;
}

.badge-leaker {
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid #3b82f6;
  color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.badge-member {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
}

/* MINIMAL CLEAN DROPDOWN CARD WITHOUT RED BORDER */
.profile-dropdown-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: #0f0f15;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
  padding: 14px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.2s ease;
}

.profile-dropdown-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.item-label {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-value {
  color: #fff;
  font-weight: 600;
}

.profile-dropdown-footer {
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.btn-logout-full {
  width: 100%;
  padding: 9px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: #ef4444;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.btn-logout-full:hover {
  background: #ef4444;
  color: #fff;
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 4px;
  font-size: 0.85rem;
}

.btn-logout:hover {
  color: var(--red-bright);
}

/* DISCORD & WARNING MODALS - NO RED BORDER ON GUILD WARNING MODAL */
.discord-modal-overlay, .modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 8, 11, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.discord-modal-overlay.active, .modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.discord-oauth-card, .modal-box {
  background: #0f0f15;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 42, 61, 0.2);
  border-color: var(--red-bright);
  color: #fff;
}

.discord-header {
  padding: 24px 24px 16px;
  text-align: center;
  background: #2b2d31;
}

.discord-app-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.discord-app-logo {
  width: 48px;
  height: 48px;
}

.discord-link-icon {
  color: #949ba4;
  font-size: 1.2rem;
}

.discord-user-avatar-prev {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #5865F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
}

.discord-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 4px;
}

.discord-subtitle {
  font-size: 0.85rem;
  color: #949ba4;
}

.discord-body {
  padding: 20px 24px;
}

.discord-perm-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #949ba4;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.discord-perm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.discord-perm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #dbdee1;
}

.discord-perm-item i {
  color: #23a55a;
}

.discord-user-input-group {
  margin-top: 16px;
}

.discord-user-input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #b5bac1;
  margin-bottom: 6px;
}

.discord-user-input-group input {
  width: 100%;
  padding: 10px 12px;
  background: #1e1f22;
  border: 1px solid #1e1f22;
  border-radius: 4px;
  color: #f2f3f5;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.discord-user-input-group input:focus {
  border-color: #5865F2;
}

.discord-footer {
  padding: 16px 24px;
  background: #2b2d31;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.btn-discord-cancel {
  background: transparent;
  border: none;
  color: #f2f3f5;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-discord-cancel:hover {
  text-decoration: underline;
}

.btn-discord-authorize {
  background: #5865F2;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-discord-authorize:hover {
  background: #4752C4;
}

/* TOAST */
.toast-area {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  margin-top: auto;
  background: #060608;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .categories-grid, .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ticket-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .categories-grid, .stats-row, .resources-grid {
    grid-template-columns: 1fr;
  }

/* INFINITE MARQUEE CAROUSEL FOR PARTNER DISCORD SERVERS */
.partners-marquee-section {
  padding: 30px 0 10px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.partners-marquee-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.partners-marquee-title::before,
.partners-marquee-title::after {
  content: '';
  width: 50px;
  height: 1px;
  background: var(--border-subtle);
}

.partners-marquee-wrapper {
  display: flex !important;
  flex-direction: row !important;
  overflow: hidden !important;
  width: 100% !important;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-marquee-content {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 20px !important;
  animation: marqueeScroll 20s linear infinite !important;
  white-space: nowrap !important;
  padding: 8px 0 !important;
  flex-shrink: 0 !important;
}

.partners-marquee-wrapper:hover .partners-marquee-content {
  animation-play-state: paused !important;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-server-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: rgba(18, 18, 26, 0.8) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  height: 90px !important;
  min-height: 90px !important;
  max-height: 90px !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.partner-server-card:hover {
  border-color: var(--border-red) !important;
  background: rgba(255, 42, 61, 0.1) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 18px rgba(255, 42, 61, 0.25) !important;
}

.partner-server-card img,
.partner-server-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--border-subtle) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
}

.partner-server-card:hover img,
.partner-server-card:hover .partner-server-icon {
  border-color: var(--red-bright) !important;
  box-shadow: 0 0 12px var(--red-glow) !important;
}

/* PREMIUM TICKET CARDS GRID */
.tickets-grid-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-top: 24px !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  .tickets-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .tickets-grid-container {
    grid-template-columns: 1fr !important;
  }
}

.ticket-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 14px !important;
  position: relative !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
}

.ticket-card:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-red) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(255, 42, 61, 0.18) !important;
}

.ticket-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.ticket-user-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ticket-user-avatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid var(--red-bright) !important;
  box-shadow: 0 0 10px rgba(255, 42, 61, 0.2) !important;
  flex-shrink: 0 !important;
}

.ticket-username {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ticket-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ticket-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1;
}

.ticket-status-pill.open {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.ticket-status-pill.answered {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.ticket-status-pill.closed {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.ticket-cat-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red-bright);
  background: rgba(255, 42, 61, 0.1);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-red);
  margin-bottom: 8px;
}

.ticket-subject-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticket-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ticket-card:hover .ticket-card-footer i.fa-arrow-right {
  transform: translateX(4px);
  color: var(--red-bright);
}



