/* ==========================================================================
   SECTION 1: VARIABLES & RESET BASE UTILITIES
   ========================================================================== */
:root {
  --bg-black: #000000;
  --panel-bg: #0c0f17;
  --panel-border: #161f30;

  --accent-blue: #0072ce;
  --accent-cyan: #00d2ff;
  --color-free-rebels: #ff3344;
  --color-ct-force: #0072ce;

  --text-main: #ffffff;
  --text-dim: #8a99ad;
  --text-gm: #ffae00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    sans-serif;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-black);
  color: var(--text-main);
  padding: 30px 60px;
}

main {
  flex: 1 0 auto;
  margin-bottom: 40px;
  padding-bottom: 5px;
  position: relative;
  z-index: 1;
}

/* --- Utility Text Color & Highlights --- */
.text-red {
  color: var(--color-free-rebels) !important;
  text-shadow: 0 0 15px rgba(255, 51, 68, 0.4);
}

.text-blue {
  color: var(--color-ct-force) !important;
  text-shadow: 0 0 15px rgba(0, 114, 206, 0.4);
}

.text-gm {
  color: var(--text-gm) !important;
}

.text-cyan {
  color: var(--accent-cyan) !important;
}

.text-gold {
  color: #ffae00 !important;
}

.text-orange {
  color: #ff9900 !important;
}

.text-green {
  color: #00ff88 !important;
}

.text-white {
  color: #ffffff !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

/* ==========================================================================
   SECTION 2: NAVBAR STRUCTURE, DROPDOWN & TICKER ANNOUNCEMENT
   ========================================================================== */
.navbar-wrapper {
  width: 100%;
  background: transparent;
  margin-bottom: 30px;
  position: relative;
  z-index: 99999 !important;
}

.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 16px 0;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  color: #ffffff;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(0, 210, 255, 0.08);
}

/* --- Dropdown System --- */
.nav-dropdown {
  position: relative;
  z-index: 100000 !important;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex !important;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 14, 23, 0.98);
  border: 1px solid var(--panel-border);
  border-top: 2px solid var(--accent-cyan);
  border-radius: 0 0 8px 8px;
  min-width: 180px;
  list-style: none;
  flex-direction: column;
  padding: 6px 0;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.95),
    0 0 15px rgba(0, 114, 206, 0.3);
  z-index: 100001 !important;
  backdrop-filter: blur(12px);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.12);
  padding-left: 22px;
}

/* --- Ticker Announcement Bar --- */
.nav-bottom {
  display: flex;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(12, 15, 23, 0.9),
    rgba(6, 8, 14, 0.95)
  );
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 114, 206, 0.1);
  overflow: hidden;
}

.notice-badge {
  background: linear-gradient(135deg, #0072ce, #00a2ff);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 10px 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  animation: tickerAnimation 60s linear infinite;
}

@keyframes tickerAnimation {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* --- Auth Header Buttons --- */
.btn-auth {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.25s ease;
}

.btn-login {
  background: linear-gradient(135deg, #0072ce, #00a2ff);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 114, 206, 0.4);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
  background: linear-gradient(135deg, #0082ee, #00d2ff);
}

.btn-register {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: #ffffff;
}

.btn-register:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-logout {
  background: rgba(255, 51, 68, 0.1);
  border: 1px solid rgba(255, 51, 68, 0.3);
  color: var(--color-free-rebels);
}

.btn-logout:hover {
  background: var(--color-free-rebels);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 51, 68, 0.4);
}

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  z-index: 999999 !important;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Pembungkus Spinner & Logo */
.loader-content-box {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Lingkaran Spinner Muter */
.loader-spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(0, 210, 255, 0.15);
  border-top: 3px solid #00d2ff;
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
}

/* Gambar Logo dengan Animasi Berdenyut */
.loader-logo-img {
  width: 150px;
  height: auto;
  object-fit: contain;
  z-index: 2;
  /* Menerapkan Animasi Pulse / Berdenyut */
  animation: logoPulse 1.5s ease-in-out infinite alternate;
}

/* Teks Loading */
.loader-text {
  color: #00d2ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Keyframes Muter Spinner */
@keyframes spinLoader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Keyframes Efek Berdenyut & Glow Logo */
@keyframes logoPulse {
  0% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 2px rgba(0, 210, 255, 0.4));
  }

  100% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.9));
  }
}

/* ==========================================================================
   SECTION 3: HOME PAGE MAIN CONTENT
   ========================================================================== */
main.home-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.home-left,
.home-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-box .hero-tag {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-cyan);
}

.welcome-box .hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 8px 0 14px 0;
}

.welcome-box .hero-title span {
  background: linear-gradient(135deg, #00d2ff, #0072ce);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-box .hero-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  border-left: 3px solid var(--accent-blue);
  padding-left: 14px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(22, 31, 48, 0.8);
  padding-bottom: 8px;
}

.link-more {
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.link-more:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--accent-cyan);
}

.mini-rank-badge {
  height: 22px;
  width: 26px;
  object-fit: contain;
  display: inline-block;
  text-align: center;
  flex-shrink: 0;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.rank-item .name {
  flex: 1;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-item {
  color: var(--text-dim);
  font-size: 0.8rem;
  justify-content: center;
}

.server-status-card,
.quick-action-card,
.top-players-card {
  background: linear-gradient(
    180deg,
    rgba(12, 15, 23, 0.9),
    rgba(6, 8, 14, 0.95)
  );
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(22, 31, 48, 0.8);
  padding-bottom: 10px;
}

.status-header h3,
.quick-action-card h3,
.top-players-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.badge-online {
  color: #00ff88;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.command-center-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.command-center-table th,
.command-center-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(22, 31, 48, 0.6);
  font-size: 0.85rem;
}

.command-center-table th {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-dim);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.command-center-table td {
  color: var(--text-main);
  font-weight: 700;
}

.command-center-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-badge.is-connected,
.status-badge.is-active {
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.status-badge.is-unavailable,
.status-badge.is-error {
  background: rgba(255, 51, 68, 0.1);
  color: var(--color-free-rebels);
  border: 1px solid rgba(255, 51, 68, 0.3);
}

.quick-action-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 8px 0 16px 0;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-launch {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0072ce, #00a2ff);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 114, 206, 0.4);
  transition: all 0.25s ease;
}

.btn-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
}

.btn-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   SECTION 4: PERSONAL & CLAN RANKING STYLING
   ========================================================================== */
.rank-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rank-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.rank-header .hero-tag {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-cyan);
}

.rank-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 4px;
}

.rank-header h1 span {
  background: linear-gradient(135deg, #00d2ff, #0072ce);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rank-search input {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 10px 18px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  min-width: 260px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.rank-search input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

.rank-table-card {
  background: linear-gradient(
    180deg,
    rgba(12, 15, 23, 0.9),
    rgba(6, 8, 14, 0.95)
  );
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
}

.rank-table th,
.rank-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(22, 31, 48, 0.6);
  font-size: 0.88rem;
  vertical-align: middle;
}

.rank-table th {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-dim);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.rank-table tbody tr {
  transition: background 0.2s ease;
}

.rank-table tbody tr:hover {
  background: rgba(0, 210, 255, 0.05);
}

.rank-table tbody tr:last-child td {
  border-bottom: none;
}

.pos-num {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.rank-badge-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.rank-badge-img {
  height: 24px;
  width: 28px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-name-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}

.player-name {
  color: #ffffff;
  letter-spacing: 0.5px;
}

.exp-value {
  color: var(--accent-cyan);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.rank-gold {
  background: rgba(255, 174, 0, 0.05) !important;
}

.rank-silver {
  background: rgba(192, 192, 192, 0.04) !important;
}

.rank-bronze {
  background: rgba(205, 127, 50, 0.04) !important;
}

.rank-gold .player-name {
  color: #ffae00;
}

.rank-silver .player-name {
  color: #e0e0e0;
}

.rank-bronze .player-name {
  color: #cd7f32;
}

/* ==========================================================================
   SECTION 5: ABOUT & FEATURES PAGE STYLING
   ========================================================================== */
.about-card {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 12px;
  letter-spacing: 0.5px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-content p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
}

.highlight-cyan {
  color: var(--accent-cyan);
  font-weight: 700;
}

.highlight-gold {
  color: #ffae00;
  font-weight: 700;
}

.about-cta-quote {
  background: rgba(0, 210, 255, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-weight: 700;
  color: #ffffff !important;
  margin-top: 8px;
}

.feat-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feat-item-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.feat-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.feat-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feat-title-flag {
  display: flex;
  align-items: center;
}

svg.feat-flag-icon,
.feat-flag-icon {
  width: 28px !important;
  height: 14px !important;
  min-width: 28px !important;
  min-height: 14px !important;
  max-width: 28px !important;
  max-height: 14px !important;
  flex-shrink: 0 !important;
  display: inline-block;
  vertical-align: middle;
}

.feat-card-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.feat-card-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.feat-footer-note {
  background: rgba(255, 174, 0, 0.05);
  border: 1px dashed rgba(255, 174, 0, 0.3);
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 10px;
}

.feat-footer-note p {
  color: #ffae00;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 6: SYSTEM REQUIREMENTS PAGE STYLING
   ========================================================================== */
.sysreq-sub-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 6px;
  line-height: 1.5;
}

.sysreq-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sysreq-card {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sysreq-card-rec {
  border-color: rgba(255, 174, 0, 0.3);
}

.sysreq-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.sysreq-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.title-gold {
  color: #ffae00;
}

.sysreq-badge-target {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-green {
  background: rgba(0, 255, 136, 0.1);
  border-color: #00ff88;
  color: #00ff88;
}

.sysreq-spec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-row {
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.spec-label {
  width: 90px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.spec-colon {
  margin-right: 12px;
  color: var(--text-dim);
}

.spec-value {
  color: #ffffff;
}

.highlight-orange {
  color: #ff9900;
}

.highlight-green {
  color: #00ff88;
}

.highlight-red {
  color: #ff4757;
}

.sysreq-proven-box {
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 10px;
}

.sysreq-proven-box p {
  color: #ffffff;
  font-size: 0.88rem;
}

/* ==========================================================================
   SECTION 7: STARTER PACK PAGE STYLING
   ========================================================================== */
.pack-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pack-card {
  position: relative;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.pack-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.pack-featured {
  border-color: rgba(255, 174, 0, 0.4) !important;
  background: radial-gradient(
    circle at top right,
    rgba(255, 174, 0, 0.05),
    transparent 70%
  ) !important;
}

.badge-featured {
  position: absolute;
  top: -2.5px;
  right: -2.5px;
  background: #ffae00;
  color: #000000;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.pack-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.pack-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-cyan);
}

.pack-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
  min-height: 38px;
}

.pack-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--panel-border);
  padding-top: 14px;
}

.pack-list li {
  font-size: 0.84rem;
  color: #ffffff;
  font-weight: 700;
}

.pack-note {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-top: auto;
}

.pack-note strong {
  color: #ffae00;
}

.pack-cta-card {
  margin-top: 10px;
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: radial-gradient(
    circle,
    rgba(0, 210, 255, 0.08) 0%,
    rgba(0, 0, 0, 0) 70%
  );
}

.pack-cta-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.pack-cta-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.btn-pack-wa {
  display: inline-block;
  background: #25d366;
  color: #ffffff;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.btn-pack-wa:hover {
  background: #1eb956;
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   SECTION 8: INSTALLATION PAGE STYLING
   ========================================================================== */
.inst-card {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inst-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.inst-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.inst-badge-status {
  background: rgba(255, 174, 0, 0.1);
  border: 1px solid #ffae00;
  color: #ffae00;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
}

.inst-spec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inst-spec-list .spec-label {
  width: 140px;
}

.inst-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid var(--accent-cyan);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.step-desc code,
.spec-value code {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.inst-solution-card {
  padding: 28px 32px;
  border-color: rgba(0, 255, 136, 0.3);
  background: radial-gradient(
    circle at top left,
    rgba(0, 255, 136, 0.05),
    transparent 70%
  );
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inst-sol-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.inst-sol-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inst-sol-content p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.inst-sol-highlight {
  color: #ffffff !important;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 14px 18px;
  border-radius: 6px;
}

.inst-sol-highlight strong {
  color: #00ff88;
}

.inst-badge-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.badge-sol-green {
  color: #00ff88;
  font-weight: 800;
  font-size: 0.85rem;
}

.badge-sol-cyan {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ==========================================================================
   SECTION 9: FAQ PAGE STYLING
   ========================================================================== */
.faq-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 10px;
  letter-spacing: 0.3px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.faq-note {
  background: rgba(0, 210, 255, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.5;
}

.note-red {
  background: rgba(255, 71, 87, 0.05);
  border-left-color: #ff4757;
}

.faq-bullet-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-bullet-list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.faq-answer code {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* ==========================================================================
   SECTION 10: GALLERY & LIGHTBOX POPUP STYLING
   ========================================================================== */
.gallery-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.gallery-img-box {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-img-box:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-img-box:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-video {
  width: 100%;
  height: 180px;
  border-radius: 6px;
  background: #000000;
  object-fit: contain;
}

.gallery-caption {
  font-size: 0.82rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 4px;
}

.gallery-empty-card {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
}

/* Lightbox Popup System */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 999999 !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
  animation: zoomIn 0.25s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--accent-cyan);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   SECTION 11: DOWNLOAD PAGE STYLING
   ========================================================================== */
.download-prot-card {
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-color: rgba(0, 210, 255, 0.3);
  background: radial-gradient(
    circle at top left,
    rgba(0, 210, 255, 0.05),
    transparent 70%
  );
}

.prot-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.prot-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.prot-content p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 6px;
}

.download-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.download-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dl-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-box-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.dl-badge {
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-orange {
  background: rgba(255, 153, 0, 0.15);
  border: 1px solid #ff9900;
  color: #ff9900;
}

.badge-cyan {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.dl-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-feature-list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 700;
}

.highlight-white {
  color: #ffffff;
}

/* ==========================================================================
   SECTION 12: AUTHENTICATION PAGES (LOGIN & REGISTER) STYLING
   ========================================================================== */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-card-header {
  text-align: center;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.auth-title span {
  color: var(--accent-cyan);
}

.title-gold span {
  color: #ffae00;
}

.title-green span {
  color: #00ff88;
}

/* Alert Notification Boxes */
.alert-box {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
}

.alert-danger {
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid #ff4757;
  color: #ff4757;
}

.alert-success {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid #00ff88;
  color: #00ff88;
}

.alert-warning {
  background: rgba(255, 174, 0, 0.15);
  border: 1px solid #ffae00;
  color: #ffae00;
}

/* Auth Form Controls */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.label-gold {
  color: #ffae00;
}

.form-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--panel-border);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.border-top-dashed {
  border-top: 1px dashed var(--panel-border);
  padding-top: 14px;
  margin-top: 4px;
}

.forgot-link-box {
  text-align: right;
  margin-top: -6px;
}

.forgot-link {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #ffffff;
}

.btn-auth-group {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-auth {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
}

.btn-submit-login {
  background: var(--accent-cyan);
  color: #000000;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

.btn-submit-login:hover {
  background: #00bfff;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.btn-submit-forgot {
  background: #ffae00;
  color: #000000;
  box-shadow: 0 0 12px rgba(255, 174, 0, 0.3);
}

.btn-submit-forgot:hover {
  background: #ffb822;
  box-shadow: 0 0 20px rgba(255, 174, 0, 0.5);
}

.btn-submit-reg {
  background: #00ff88;
  color: #000000;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.btn-submit-reg:hover {
  background: #10ff94;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   SECTION 13: DASHBOARD / TROOPER PROFILE STYLING
   ========================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dash-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-card-header {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-card-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.dash-welcome {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.header-battle {
  margin-top: 10px;
}

.dash-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-row-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.db-label {
  width: 130px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
}

.db-colon {
  width: 20px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.db-value {
  flex-grow: 1;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 8px;
}

.rank-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-icon-sm {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.rank-icon-xs {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.clan-logo-box {
  display: flex;
  align-items: center;
}

.clan-news-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--panel-border);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.no-clan-box {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.no-clan-icon {
  font-size: 2.5rem;
}

.no-clan-box p {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
}

.no-clan-sub {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Clan Members List Controls */
.clan-members-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-nickname {
  font-size: 0.85rem;
  font-weight: 700;
}

.role-badge {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
}

.role-master {
  background: rgba(255, 174, 0, 0.15);
  border: 1px solid #ffae00;
  color: #ffae00;
}

.role-staff {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.role-member {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-dim);
}

/* ==========================================================================
   SECTION 14: FOOTER BAR
   ========================================================================== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 60px;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(22, 31, 48, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 9999;
}

footer .footer-tag {
  color: var(--accent-cyan);
  font-weight: 800;
}

/* ==========================================================================
   SECTION 15: BGM AUDIO WIDGET STYLING
   ========================================================================== */
.bgm-player-widget {
  position: fixed;
  bottom: 100px;
  right: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 15, 23, 0.9);
  border: 1px solid var(--panel-border);
  padding: 8px 14px;
  border-radius: 30px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 210, 255, 0.2);
  backdrop-filter: blur(10px);
  z-index: 99999;
  transition: all 0.3s ease;
}

.bgm-player-widget:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.bgm-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.bgm-btn:hover {
  transform: scale(1.15);
}

.bgm-btn.playing #bgmIcon {
  animation: pulseIcon 1.5s infinite alternate;
}

.bgm-volume-wrapper {
  display: flex;
  align-items: center;
}

.bgm-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: var(--panel-border);
  outline: none;
  cursor: pointer;
  transition: width 0.3s ease;
}

.bgm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.bgm-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.bgm-title-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

/* Gaya Tombol Next Track BGM */
.bgm-next-btn {
  font-size: 0.95rem;
  opacity: 0.8;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.bgm-next-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

@keyframes pulseIcon {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

/* ==========================================================================
   SECTION 16: GLOBAL RESPONSIVE VIEWPORT (TABLET & HP/MOBILE)
   ========================================================================== */

/* --- TABLET / SMALL LAPTOP (<= 1100px) --- */
@media (max-width: 1100px) {
  .dashboard-grid,
  .pack-grid-container,
  .sysreq-grid-wrapper,
  .download-grid-wrapper {
    grid-template-columns: 1fr;
  }
}

/* --- LARGE MOBILE & TABLET PORTRAIT (<= 900px) --- */
@media (max-width: 900px) {
  body {
    padding: 20px 20px 90px 20px;
  }

  main.home-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .nav-top {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }

  footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.7rem;
  }

  .bgm-player-widget {
    bottom: 75px;
    right: 15px;
  }
}

/* --- KUNCI VIEWPORT HP / MOBILE (<= 600px) --- */
@media (max-width: 600px) {
  body {
    padding: 14px 14px 90px 14px !important;
  }

  /* 1. Header & Navigation */
  .brand-title {
    font-size: 1rem;
    text-align: left;
    display: block;
  }

  .nav-menu {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    justify-content: center;
  }

  .nav-link,
  .btn-auth {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }

  .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 180px !important;
  }

  /* 2. Ticker / Notice Bar Mobile */
  .nav-bottom {
    flex-direction: row;
  }

  .notice-badge {
    padding: 8px 12px;
    font-size: 0.68rem;
  }

  .ticker-text {
    font-size: 0.75rem;
  }

  /* 3. Titles & Headers */
  .welcome-box .hero-title,
  .rank-header h1,
  .auth-title {
    font-size: 1.7rem !important;
  }

  .rank-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rank-search,
  .rank-search input {
    width: 100% !important;
    min-width: 100% !important;
  }

  /* 4. Tables (Ranking, Dashboard & Command Center) */
  .rank-table-card,
  .server-status-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rank-table th,
  .rank-table td,
  .command-center-table th,
  .command-center-table td {
    padding: 10px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* 5. Dashboard Trooper Rows */
  .dash-card {
    padding: 18px 14px;
  }

  .dash-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px;
  }

  .db-label {
    width: 100%;
    font-size: 0.75rem;
    color: var(--accent-cyan);
  }

  .db-colon {
    display: none;
  }

  .db-value {
    padding-left: 0;
    font-size: 0.85rem;
    width: 100%;
  }

  /* 6. Feature, Starter Pack, & Download Cards */
  .feat-grid-container,
  .pack-grid-container,
  .sysreq-grid-wrapper,
  .download-grid-wrapper,
  .gallery-grid-wrapper {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .sysreq-card,
  .about-card,
  .inst-card,
  .download-box,
  .auth-card {
    padding: 20px 16px !important;
  }

  .sysreq-spec-list .spec-row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .spec-label {
    width: 100%;
  }

  .spec-colon {
    display: none;
  }

  /* 7. Gallery & Lightbox */
  .gallery-img-box,
  .gallery-video {
    height: 160px;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 75vh;
  }

  /* 8. BGM Floating Player Mobile */
  .bgm-player-widget {
    bottom: 70px;
    right: 10px;
    padding: 6px 10px;
    gap: 6px;
  }

  .bgm-slider {
    width: 45px;
  }
}
