:root {
  --blood-red: #00f2ff;
  --neon-blue: #00f2ff;
  --blood-dark-red: #8a0000;
  --tactical-orange: #ff6b00;
  --ammo-gold: #ffcc00;
  --urban-gray: #2a2a2a;
  --dark-urban: #1a1a1a;
  --darker-bg: #0f0f0f;
  --panel-bg: #222222;
  --border-color: #444444;
  --text-color: #ffffff;
  --text-muted: #aaaaaa;
  --highlight-yellow: #ffff00;
  --shadow-neon: 0 0 15px rgba(0, 242, 255, 0.5);

  --gradient-blood: linear-gradient(135deg, #ff2a2a, #8a0000);
  --gradient-tactical: linear-gradient(135deg, #ff6b00, #ff2a2a);
  --gradient-ammo: linear-gradient(135deg, #ffcc00, #ff6b00);
  --gradient-primary: linear-gradient(135deg, #00f2ff, #b967ff);
  --gradient-secondary: linear-gradient(135deg, #ff2a6d, #b967ff);

  --shadow-blood: 0 0 15px rgba(255, 42, 42, 0.7);
  --shadow-tactical: 0 0 10px rgba(255, 107, 0, 0.5);
  --transition-normal: 0.3s ease;

  /* Tactical fonts */
  --font-tactical: "Orbitron", "Segoe UI", sans-serif;
  --font-military: "Rajdhani", "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-military);
}

body {
  background-color: var(--darker-bg);
  color: var(--text-color);
  min-height: 100vh;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(42, 191, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(0, 255, 234, 0.1) 0%,
      transparent 50%
    );
  position: relative;
  overflow-x: hidden;
}

.blood-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M20,20 Q40,5 60,20 T100,20" fill="none" stroke="rgba(255,42,42,0.03)" stroke-width="0.5"/></svg>');
  pointer-events: none;
  z-index: 0;
}

.tactical-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 42, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 42, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: rgba(26, 26, 26, 0.95);
  border-bottom: 1px solid var(--neon-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
.nav-link {
  text-decoration: none;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--neon-blue);
  padding: 3px;
  animation: tactical-pulse 2s infinite;
  position: relative;
  overflow: hidden;
  /* border: 2px solid var(--blood-red); */
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.5);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: brightness(1.1);
  transition: transform 0.3s ease;
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
}

/* Update the pulse animation for circle */
@keyframes tactical-pulse {
  0%,
  100% {
    box-shadow:
      0 0 10px var(--neon-blue),
      0 0 20px rgba(0, 217, 255, 0.3);
  }
  50% {
    box-shadow:
      0 0 20px var(--neon-blue),
      0 0 40px rgba(0, 191, 255, 0.5);
  }
}

.nav-title {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-tactical);
  letter-spacing: 2px;
}

.title-tactical {
  background: var(--neon-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 5px;
}

.btn {
  padding: 12px 30px;
  border-radius: 0;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  font-family: var(--font-tactical);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-login {
  background: transparent;
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
  /* Angled corners on top-left and bottom-right */
  clip-path: polygon(15% 0%, 100% 0%, 100% 70%, 85% 100%, 0% 100%, 0% 30%);
  padding: 10px 25px;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
}

.btn-login:hover {
  background: rgba(0, 242, 255, 0.1);
  box-shadow:
    inset 0 0 10px rgba(0, 242, 255, 0.2),
    var(--shadow-neon);
  transform: translateY(-2px);
}

.btn-register {
  background: var(--gradient-primary);
  color: #000; /* Dark text for better contrast on neon background */
  border: none;
  /* Reverse angled corners */
  clip-path: polygon(0% 0%, 85% 0%, 100% 30%, 100% 100%, 15% 100%, 0% 70%);
  padding: 10px 28px;
  font-weight: 900;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.btn-register:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(185, 103, 255, 0.6);
}

.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--blood-red);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(255, 42, 42, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(255, 107, 0, 0.1) 0%,
      transparent 50%
    );
}

.scope-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 42, 42, 0.3);
  border-radius: 50%;
}

.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background:
    linear-gradient(
      0deg,
      transparent 45%,
      var(--blood-red) 45%,
      var(--blood-red) 55%,
      transparent 55%
    ),
    linear-gradient(
      90deg,
      transparent 45%,
      var(--blood-red) 45%,
      var(--blood-red) 55%,
      transparent 55%
    );
}

.hero-content {
  max-width: 1200px;
  text-align: center;
  z-index: 2;
  background: rgba(15, 15, 15, 0.8);
  padding: 40px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: 5rem;
  margin-bottom: 1rem;
  line-height: 1;
  font-family: var(--font-tactical);
}

.title-line {
  display: block;
  margin-bottom: 10px;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(42, 212, 255, 0.5);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--neon-blue);
  margin-bottom: 2rem;
  font-family: var(--font-tactical);
  letter-spacing: 3px;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* HERO BUTTONS */
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 3rem 0;
}

.btn-tactical {
  padding: 20px 50px;
  font-size: 1.2rem;
  font-weight: 900;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-tactical);
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-width: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  clip-path: polygon(
    15px 0,
    calc(100% - 15px) 0,
    100% 50%,
    calc(100% - 15px) 100%,
    15px 100%,
    0 50%
  );
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 217, 255, 0.1);
  filter: brightness(1.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  clip-path: polygon(
    15px 0,
    calc(100% - 15px) 0,
    100% 50%,
    calc(100% - 15px) 100%,
    15px 100%,
    0 50%
  );
}

.btn-secondary:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: var(--shadow-neon);
}

.btn-ammo,
.btn-stats {
  background: var(--ammo-gold);
  color: var(--dark-urban);
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 900;
  margin-left: 10px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(42, 42, 42, 0.8);
  border-left: 3px solid var(--neon-blue);
  min-width: 250px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-tactical);
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* FEATURES SECTION */
.features {
  padding: 100px 5%;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: var(--font-tactical);
  background: var(--neon-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 25%;
  width: 50%;
  height: 3px;
  background: var(--gradient-primary);
}

/* FOOTER */
.footer {
  background: var(--dark-urban);
  padding: 50px 5% 20px;
  border-top: 2px solid var(--blood-red);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-tactical);
  letter-spacing: 2px;
}

.footer-tactical {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  color: var(--text-muted);
  font-family: var(--font-tactical);
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  color: var(--blood-red);
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-family: var(--font-tactical);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section ul li a:hover {
  color: var(--blood-red);
}

.comms-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.comms-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.discord {
  background: #5865f2;
  color: white;
}
.twitter {
  background: #1da1f2;
  color: white;
}
.youtube {
  background: #ff0000;
  color: white;
}

/* Facebook */
.facebook {
  background: #1877f2;
  color: #ffffff;
}

/* TikTok */
.tiktok {
  background: linear-gradient(135deg, #25f4ee, #000000, #fe2c55);
  color: #ffffff;
}

.comms-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.members-list-view {
  max-width: 1200px;
  margin: 0 auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.members-grid-view {
  display: none;
}

.list-table-container {
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid var(--neon-blue);
  border-radius: 0;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 30px rgba(0, 242, 255, 0.2),
    inset 0 0 20px rgba(0, 242, 255, 0.1);
  position: relative;
  margin-bottom: 40px;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
  position: relative;
}

.members-table thead {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(5px);
}

.members-table th::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 242, 255, 0.1);
}

.members-table tbody tr {
  background: rgba(34, 34, 34, 0.7);
  border-bottom: 1px solid rgba(0, 242, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.members-table tbody tr:hover {
  background: rgba(0, 242, 255, 0.08);
  transform: translateX(10px);
  box-shadow:
    -5px 0 0 var(--neon-blue),
    0 5px 15px rgba(0, 242, 255, 0.1);
}

.members-table tbody tr:last-child {
  border-bottom: none;
}

.members-table td {
  padding: 10px;
  border: none;
  position: relative;
}

.rank-col {
  width: 100px;
  text-align: center;
}

.rank-badge {
  width: 35px;
  height: 35px;
  background: transparent;
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  font-family: var(--font-tactical);
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: inset 0 0 10px rgba(0, 242, 255, 0.2);
}

.member-col {
  width: 180px;
  min-width: 180px;
}

.member-list-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.list-avatar {
  width: 45px;
  height: 45px;
  border-radius: 4px; /* Square with slight round for military look */
  border: 1px solid var(--border-color);
  object-fit: cover;
  background: var(--dark-urban);
  transition: transform 0.3s ease;
}

.member-row:hover .list-avatar {
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.list-name {
  color: #fff;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.list-badge {
  color: var(--neon-blue);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.list-badge i {
  font-size: 0.6rem;
}

.role-col {
  width: 100px;
  min-width: 100px;
}

.role-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--ammo-gold);
  font-size: 0.8rem;
  border: 1px solid rgba(255, 204, 0, 0.2);
}

.leader-row {
  border-left: 4px solid var(--neon-blue) !important;
  background: rgba(0, 242, 255, 0.03) !important;
}

.leader-row .list-name {
  color: var(--neon-blue);
  font-weight: 900;
}

.list-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}

.list-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-nav {
  width: 40px;
  height: 40px;
  background: var(--panel-bg);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-nav:hover:not(:disabled) {
  color: var(--blood-red);
  border-color: var(--blood-red);
}

.page-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 5px;
}

.page-number {
  width: 40px;
  height: 40px;
  background: var(--panel-bg);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-military);
  font-weight: 600;
}

.page-number:hover {
  color: var(--blood-red);
  border-color: var(--blood-red);
}

.page-number.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.page-ellipsis {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.highlight-count {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 5px;
}
.members-list-view,
.members-grid-view {
  display: none;
}

.members-list-view.active,
.members-grid-view.active {
  display: block;
}

.members-grid-view.active {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.members-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.grid-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.grid-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.leader-badge {
  background: var(--gradient-primary);
  color: white;
}

.co-leader-badge {
  background: var(--gradient-secondary);
  color: white;
}

.grid-avatar-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
}

.grid-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--gradient-primary);
  padding: 3px;
  background: var(--darker-bg);
  object-fit: cover;
}

.grid-rank {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: var(--font-tactical);
  font-size: 0.8rem;
  border: 2px solid var(--panel-bg);
}

.grid-member-info {
  text-align: center;
  margin-bottom: 15px;
}

.grid-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
  font-family: var(--font-tactical);
  letter-spacing: 1px;
}

.grid-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--neon-blue);
  font-family: var(--font-tactical);
  font-size: 0.9rem;
  font-weight: 600;
}

.grid-role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
  padding: 8px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.grid-role i {
  color: var(--ammo-gold);
  font-size: 0.9rem;
}

.tactical-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(0, 242, 255, 0.2);
  border-radius: 8px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.tactical-controls::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

/* Left Controls */
.controls-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tactical-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-buttons {
  display: flex;
  gap: 5px;
  background: rgba(15, 15, 15, 0.8);
  padding: 3px;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 255, 0.1);
}

.tactical-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 3px;
  font-family: var(--font-tactical);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tactical-toggle-btn:hover {
  color: var(--neon-blue);
  background: rgba(0, 242, 255, 0.05);
}

.tactical-toggle-btn.active {
  background: rgba(0, 242, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 242, 255, 0.3);
}

.tactical-toggle-btn.active .toggle-indicator {
  width: 4px;
  height: 4px;
  background: var(--neon-blue);
  border-radius: 50%;
  position: absolute;
  top: 5px;
  right: 5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Right Controls */
.controls-right {
  display: flex;
  flex: 1;
  max-width: 800px;
  gap: 20px;
  flex-wrap: wrap;
}

/* Search */
.tactical-search {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 15px;
  color: var(--neon-blue);
  font-size: 0.9rem;
  z-index: 1;
}

.tactical-search-input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(0, 242, 255, 0.2);
  border-radius: 4px;
  color: var(--text-color);
  font-family: var(--font-military);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tactical-search-input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
  background: rgba(15, 15, 15, 0.95);
}

.tactical-search-input::placeholder {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* Filters */
.tactical-filters {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  position: relative;
  min-width: 150px;
}

.tactical-filter-select {
  width: 100%;
  padding: 12px 35px 12px 15px;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(0, 242, 255, 0.2);
  border-radius: 4px;
  color: var(--text-color);
  font-family: var(--font-military);
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.tactical-filter-select:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.filter-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neon-blue);
  pointer-events: none;
  font-size: 0.8rem;
}

.filter-clear-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: rgba(255, 42, 42, 0.1);
  border: 1px solid rgba(255, 42, 42, 0.3);
  border-radius: 4px;
  color: var(--blood-red);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-tactical);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-clear-btn:hover {
  background: rgba(255, 42, 42, 0.2);
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.2);
}

/* Container Spacing */
.members-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

/* Tactical Card Design */
.member-grid-card {
  background: rgba(34, 34, 34, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 242, 255, 0.15);
  border-radius: 0;
  clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%);
  padding: 30px 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.member-grid-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 242, 255, 0.05) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.member-grid-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--neon-blue);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
  background: rgba(42, 42, 42, 0.8);
}

/* Avatar Enhancements */
.grid-avatar-container {
  width: 100px;
  height: 100px;
  margin: 10px auto 20px;
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: var(--neon-blue);
  border-radius: 50%;
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-grid-card:hover .avatar-glow {
  opacity: 0.1;
}

.grid-avatar {
  border: 2px solid var(--neon-blue);
  padding: 4px;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

/* Role Box Styling */
.grid-role-box {
  background: rgba(0, 0, 0, 0.4);
  margin: 15px 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--neon-blue);
  font-family: var(--font-tactical);
  font-size: 0.85rem;
  letter-spacing: 2px;
  border-left: 3px solid var(--neon-blue);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tactical-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls-left,
  .controls-right {
    width: 100%;
  }

  .controls-right {
    flex-direction: column;
  }

  .tactical-search,
  .filter-group {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .tactical-controls {
    padding: 10px;
  }

  .toggle-buttons {
    justify-content: center;
  }

  .tactical-toggle-btn .toggle-text {
    display: none;
  }

  .tactical-toggle-btn {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .tactical-toggle {
    align-items: center;
  }

  .filter-clear-btn span {
    display: none;
  }

  .filter-clear-btn {
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .scope-overlay {
    width: 280px; /* Scale down the scope */
    height: 280px;
  }

  .hero-content {
    padding: 20px;
    margin: 10px;
    width: 95%;
  }

  .tactical-grid {
    background-size: 30px 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 3%;
    justify-content: space-between;
  }

  .nav-left {
    gap: 8px;
  }

  .nav-title {
    font-size: 1rem;
    letter-spacing: 0;
  }

  .nav-auth {
    gap: 5px;
  }

  .btn-login,
  .btn-register {
    clip-path: none;
    border-radius: 2px;
    padding: 8px 15px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-tactical {
    min-width: 100% !important;
    padding: 15px;
    font-size: 1rem;
  }

  .hero-stats {
    gap: 10px;
  }

  .stat {
    min-width: 100%;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .members-grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .members-table {
    display: table !important;
    width: 100% !important;
    min-width: 100%; /* Ensures it fills the container */
    table-layout: fixed; /* Prevents columns from jumping around */
  }
  /* 3. Set specific widths and min-widths */
  .rank-col {
    width: 40px !important; /* Fixed width for rank badge */
    min-width: 40px;
  }
  .role-col {
    width: 100px !important; /* Fixed width for role badge */
    min-width: 120px;
    text-align: right;
  }

  /* 4. Cleanup internal spacing for mobile */
  .member-list-info {
    gap: 8px;
    display: flex;
    align-items: center;
  }

  .list-avatar {
    width: 35px;
    height: 35px;
    flex-shrink: 0; /* Prevents avatar from being squashed */
  }

  .list-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
  }
  .members-table td {
    padding: 10px;
  }
  .section-header {
    text-align: center;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }
  .hero-buttons {
    margin: 1rem 0;
  }
  .btn-tactical {
    font-size: 1rem;
    font-weight: 300;
  }

  .title-tactical {
    margin-left: 0;
    font-size: 0.9rem;
  }
  .hero-description {
    font-size: 1rem;
    line-height: 1.2;
  }
  .nav-logo {
    width: 40px;
    height: 40px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
  }

  .btn-login,
  .btn-register {
    font-family: var(--font-military);
    clip-path: none;
    border-radius: 2px;
    margin-right: 5px;
  }
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-section h4 {
    justify-content: center;
  }

  .comms-links {
    justify-content: center;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-header {
    margin-bottom: 1rem;
  }
  .features {
    padding: 50px 5%;
    position: relative;
  }
}

@media (max-width: 480px) {
  .member-grid-card {
    padding: 12px 8px;
  }

  .grid-avatar-container {
    width: 60px;
    height: 60px;
  }

  .grid-name {
    font-size: 0.9rem;
  }

  .grid-id {
    font-size: 0.7rem;
  }

  .grid-role-box {
    font-size: 0.65rem;
    padding: 5px;
  }
  .members-table td {
    padding: 5px;
  }

  .hero-content {
    padding: 10px;
  }
}

/* =========================
   HERO – SMALL MOBILE FIX
   ========================= */
@media (max-width: 480px) {
  /* Hero container */
  .hero {
    height: auto;              /* remove fixed height */
    padding: 20px 10px 40px;   /* better breathing room */
  }

  /* Hero content box */
  .hero-content {
    padding: 12px;
    width: 100%;
    margin: 0;
  }

  /* Title */
  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .title-line {
    margin-bottom: 4px;
  }

  /* Subtitle */
  .hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  /* Description */
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  /* Buttons */
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
  }

  .btn-tactical {
    min-width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  /* Stats */
  .hero-stats {
    gap: 10px;
    margin-top: 16px;
  }

  .stat {
    min-width: 100%;
    padding: 10px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  /* Decorative elements – optional but recommended */
  .scope-overlay {
    width: 180px;
    height: 180px;
    opacity: 0.4;
  }

  .crosshair {
    width: 25px;
    height: 25px;
  }
}
