.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(135deg,#05060a 0%,#0b0d12 100%);
  overflow-x: hidden;
  transition: 0.32s ease;
  box-shadow: 28px 0 55px rgba(3,4,8,0.65);
  z-index: 1000;
}

.sidenav.open {
  width: var(--sidenav-width);
}

.sidenav-header {
  position: relative;
  padding: 1.15rem 0.85rem 1rem 0.55rem;
  background: linear-gradient(180deg,rgba(11,13,18,0.95) 0%,rgba(8,10,14,0.95) 100%);
  border-bottom: 1px solid rgba(143,156,255,0.14);
  text-align: left;
}

.sidenav-logo-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.sidenav-logo-link:hover {
  opacity: 0.8;
}

.sidenav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
}

.bosint-title {
  font-family: 'Neo Tech Std', var(--ui-font);
  color: var(--text-color);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
  margin-bottom: 0.1rem;
  text-transform: lowercase;
}

.platform-subtitle {
  color: var(--text-color-dimmed);
  font-size: 0.55rem;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
}

.sidenav-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143,156,255,0.65), transparent);
  animation: glow 6s ease-in-out infinite;
}

.tabs-container {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0.35rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--text-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 50%,rgba(143,156,255,0.16) 0%,rgba(143,156,255,0) 70%);
}

.menu-toggle:hover {
  color: var(--primary);
  background: radial-gradient(circle at 50% 50%,rgba(143,156,255,0.25) 0%,rgba(143,156,255,0) 70%);
  box-shadow: 0 0 20px rgba(143,156,255,0.35);
}

.container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  transition: margin-left 0.32s ease;
  max-width: 100%;
}

.container.shifted {
  margin-left: var(--sidenav-width);
  width: calc(100% - var(--sidenav-width));
  max-width: calc(100% - var(--sidenav-width));
  filter: drop-shadow(0 0 22px rgba(12,15,23,0.4));
}

header {
  display: flex;
  align-items: center;
  padding: 1.25rem 0;
  background: transparent;
  border-bottom: 1px solid rgba(143,156,255,0.12);
  height: 62px;
  position: relative;
  gap: 1.25rem;
}

@media (min-width: 769px) {
  header {
    border-bottom: none;
    height: auto;
    padding: 0;
  }
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: flex-start;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: 0.45rem;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.58rem;
  color: var(--text-color-dimmed);
  letter-spacing: 0.36rem;
  text-transform: uppercase;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: linear-gradient(180deg,var(--primary) 0%,rgba(70,82,200,0.9) 100%);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(136,148,255,0.65);
  animation: pulse 2.6s ease-in-out infinite;
}

.status-text {
  font-size: 0.68rem;
  letter-spacing: 0.18rem;
  color: var(--text-color-dimmed);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-top: -6px;
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-right: 1px solid var(--loading-border);
  border-bottom: 1px solid var(--loading-border);
  border-left: 1px solid var(--loading-border);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 769px) {
  .main-content {
    margin-top: 0;
  }
}

footer {
  padding: 0.5rem 0;
  border-top: none;
  text-align: center;
  min-height: 35px;
  max-height: 35px;
  width: 100%;
  margin-top: auto;
}

.footer-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 1px;
  opacity: 0.7;
}

.separator {
  color: var(--primary);
}

@media (min-width: 769px) {
  .sidenav {
    width: var(--sidenav-width);
  }
  
  .container {
    margin-left: var(--sidenav-width);
    width: calc(100% - var(--sidenav-width));
    max-width: calc(100% - var(--sidenav-width));
    padding-left: 0;
    padding-right: 16px;
  }
  
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(160deg,rgba(18,21,29,0.98) 0%,rgba(16,19,27,1) 100%) !important;
  }

  .container {
    min-height: 100vh;
    background: linear-gradient(160deg,rgba(18,21,29,0.98) 0%,rgba(16,19,27,1) 100%) !important;
  }

  .container,
  .main-content,
  .tab-content,
  .tab-pane {
    height: auto;
  }

  .main-content,
  .tab-content,
  .tab-pane {
    overflow: visible;
  }

  .results {
    overflow-y: visible;
    overflow-x: auto;
    background: transparent !important;
    min-height: 320px;
    border: none !important;
    box-shadow: none !important;
  }

  .placeholder-text {
    width: calc(100% - 2.5rem);
    max-width: 100%;
    padding: 0 1.25rem;
    letter-spacing: 0.08rem;
    line-height: 1.5;
  }

  .main-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .tab-content {
    backdrop-filter: none !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .tab-pane {
    border-radius: 0 !important;
  }

  .sidenav {
    border-right: none !important;
  }
  
  .tab-pane, .results {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .tab-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }
  
  .search-container {
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
  }
  
  .search-input {
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  .search-btn, .search-input {
    width: 100%;
  }
  
  .search-btn {
    padding: 12px 27px;
    font-size: 12px;
    min-height: 41px;
  }
  
  .search-input {
    padding: 0.43rem;
  }
  
  h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .tab-pane.active h2 {
    display: none;
  }
  
  .tab-pane {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  .results {
    border: none !important;
  }
  
  .container {
    padding: 0 !important;
  }
  
  footer {
    display: none !important;
  }
  
  .logo-text { font-size: 1.4rem; }
  .logo-sub { font-size: 0.5rem; }
  
  .item-key { flex: 0 0 120px; }
  .redirect-item { padding: 10px; }
  .redirect-url { font-size: 12px; }
  .result-section h3 { padding: 12px; font-size: 13px; }
  .result-content { padding: 12px; }
  .main-content { margin-top: 0; }
  
  .bg-grid {
    display: none;
  }

  .bg-glow {
    display: none;
  }

  header {
    padding: 0.5rem 0;
    min-height: 50px;
    max-height: 50px;
  }
  
  .discord-login {
    margin-right: 10px;
  }
  
  .discord-login-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    gap: 6px;
  }
  
  .discord-login-btn i {
    font-size: 16px;
  }
  
  .discord-user-avatar {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }
  
  .menu-toggle {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  
  footer {
    padding: 0.8rem 0;
    min-height: 40px;
    max-height: 40px;
    width: 100%;
  }
  
  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
  }
  
  .overlay.active {
    display: block;
  }
  
  .terminal-line {
    flex-direction: column;
  }
  
  .terminal-prompt {
    margin-bottom: 5px;
  }
  
  .terminal-text {
    width: 100%;
  }
  
  .password-table-row {
    flex-direction: column;
  }
  
  .password-rank,
  .password-value,
  .password-risk {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
  }
  
  .username-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }
  
  .username-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
  }
  
  .stat-card {
    min-width: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
  }
  
  .stat-found .stat-value {
    color: #4CAF50;
    display: flex;
    align-items: center;
  }
  
  .stat-found .stat-value::before {
    content: "✓";
    margin-right: 5px;
    font-size: 16px;
  }
  
  .stat-not-found .stat-value {
    color: #f44336;
    display: flex;
    align-items: center;
  }
  
  .stat-not-found .stat-value::before {
    content: "✗";
    margin-right: 5px;
    font-size: 16px;
  }
  
  .profiles-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid,
  .metrics-grid-stats {
    grid-template-columns: 1fr;
  }
  
  .file-input-label {
    width: 100%;
    margin-right: 0;
    box-sizing: border-box;
    padding: 0.40rem;
  }
  
  .file-upload-container {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 !important;
  }
  
  .tab-pane {
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }
  
  .results {
    padding: 0.8rem;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 280px;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  
  .placeholder-text {
    width: calc(100% - 2rem);
    max-width: 100%;
    padding: 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.08rem;
    line-height: 1.4;
  }

  .main-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .tab-content {
    backdrop-filter: none !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .tab-pane {
    border-radius: 0 !important;
  }
  
  .tab-btn {
    padding: 0.4rem 0.6rem;
  }
  
  .result-item {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .item-key {
    flex: none;
    width: 100%;
  }
  
  .username-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 12px 8px;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .stat-value {
    font-size: 18px;
    margin-bottom: 0;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  * {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
  }
}


.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
  
  .discord-login.desktop-only {
    position: absolute;
    top: 20px;
    right: 22px;
    margin: 0;
    z-index: 10;
  }
}
