:root {
  --bg-primary: #040914;
  --bg-secondary: #0b1221;
  --bg-tertiary: #151e32;

  --primary-blue: #3b82f6;
  --primary-blue-rgb: 59, 130, 246;
  --primary-purple: #8b5cf6;
  --success-green: #10b981;
  --warning-orange: #f59e0b;
  --danger-red: #ef4444;

  --glass-bg: rgba(20, 20, 25, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --glass-blur: blur(12px);

  --border-primary: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgb(126, 126, 126);

  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --gradient-glow: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --app-height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

.stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 160px 120px, rgba(255, 255, 255, 0.7), transparent);
  background-size: 550px 550px;
  opacity: 0.4;
  z-index: -2;
  pointer-events: none;
  animation: starsMove 150s linear infinite;
}

@keyframes starsMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -550px -550px;
  }
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/SpaceGrotesk-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/SpaceGrotesk-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/SpaceGrotesk-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/SpaceGrotesk-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 0;
  transition: var(--transition-normal);
  width: 100%;
}

@media (min-width: 992px) {
  .main-content {
    margin-left: 280px !important;
  }
}

.content-wrapper {
  padding: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  flex: 1;
}

@media (min-width: 992px) {
  .content-wrapper {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.sidebar {
  width: 280px;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(4, 9, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

@media (min-width: 992px) {
  .sidebar {
    transform: translateX(0);
    background: rgba(10, 14, 23, 0.4);
  }
}

.sidebar.show {
  transform: translateX(0);
}

.sidebar-header {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1rem;
}

@media (min-width: 992px) {
  .sidebar-content {
    overflow-y: hidden;
  }
}

.nav-section {
  margin-bottom: 1rem;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(59, 130, 246, 0.1),
      transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--text-primary);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.05));
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.1),
    inset 0 0 30px rgba(59, 130, 246, 0.03);
}

.nav-link:hover .nav-icon {
  color: var(--primary-blue);
  transform: scale(1.15);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  color: var(--primary-blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.15),
    0 0 40px rgba(59, 130, 246, 0.05),
    inset 0 0 30px rgba(59, 130, 246, 0.05);
}

.nav-link.active .nav-icon {
  color: var(--primary-blue);
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.nav-link.active:hover {
  box-shadow:
    0 0 25px rgba(59, 130, 246, 0.2),
    0 0 50px rgba(59, 130, 246, 0.08),
    inset 0 0 30px rgba(59, 130, 246, 0.05);
}

.nav-icon {
  width: 20px;
  text-align: center;
  margin-right: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--glass-border);
}

.user-menu-toggle {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.user-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 0.75rem;
  border: 2px solid rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.user-name {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.user-menu-toggle[aria-expanded="true"] .user-menu-arrow {
  transform: rotate(0deg);
}

.user-menu-toggle[aria-expanded="false"] .user-menu-arrow,
.user-menu-toggle:not([aria-expanded]) .user-menu-arrow {
  transform: rotate(180deg);
}

.topbar {
  height: 70px;
  background: rgba(4, 9, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-right: 1rem;
}

.breadcrumb {
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--text-primary);
}

.breadcrumb-item.active {
  color: var(--text-primary);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--text-muted);
}

.btn {
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  font-weight: 500;
  transition: var(--transition-normal);
  font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-outline-light {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

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

.btn-primary-custom {
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  color: white;
}

.btn-primary-custom:active {
  transform: translateY(0);
}

.forum-status-indicator .status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.forum-status-indicator .status-label {
  color: white;
}

.forum-status-indicator .status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forum-status-indicator .status-icon {
  font-size: 0.5rem;
}

.forum-status-indicator .status-icon.online {
  color: var(--success-green);
}

.forum-status-indicator .status-icon.offline {
  color: var(--danger-red);
}

.forum-status-indicator .status-icon.unknown {
  color: var(--text-muted);
}

.forum-status-indicator .status-last-check {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.card,
.content-box {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  margin-bottom: 1.5rem;
}

.card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.dropdown-menu {
  background: rgba(15, 20, 30, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 0.5rem;
}

.dropdown-item {
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.dropdown-divider {
  border-top-color: var(--glass-border);
}

.badge-standard {
  background: rgba(108, 117, 125, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.badge-plus {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-large {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-admin {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 0.5rem;
}



.page-header {
  margin-bottom: 1rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.info-card,
.profile-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--glass-shadow);
  position: relative;
}

.info-card::before,
.profile-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0) 0%,
      rgba(59, 130, 246, 0.05) 50%,
      rgba(92, 159, 246, 0.05) 100%);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(8px);
}

.info-card:hover,
.profile-card:hover {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(59, 130, 246, 0.2),
    0 0 60px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.info-card:hover::before,
.profile-card:hover::before {
  opacity: 1;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-primary);
  background: rgba(59, 130, 246, 0.05);
}

.card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.card-body {
  padding: 1.5rem;
}

.profile-banner {
  height: 120px;
  background: var(--gradient-primary);
}

.profile-header-content {
  margin-top: -75px;
  position: relative;
  z-index: 1;
  padding-bottom: 1rem;
}

.profile-header {
  text-align: center;
  padding: 0;
  border-bottom: 1px solid var(--border-primary);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  margin: 0 auto;
}

.profile-avatar-large {
  width: 150px;
  height: 150px;
}

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

.avatar-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
}

.avatar-status.online {
  background-color: var(--success-green);
}

.avatar-status.offline {
  background-color: var(--text-muted);
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  line-height: 1;
}

.profile-badge i {
  font-size: 12px;
}

.badge-standard {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.15), rgba(148, 163, 184, 0.05));
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  box-shadow: 0 0 20px rgba(148, 163, 184, 0.15);
}

.badge-plus {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.badge-large {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
  border-color: rgba(255, 193, 7, 0.3);
  color: #ffc107;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.15);
}

.badge-tester {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.badge-admin {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(20, 184, 166, 0.05));
  border-color: rgba(20, 184, 166, 0.3);
  color: #14b8a6;
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.15);
}

.badge-suspended {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  padding: 1.5rem;
}

.achievement-link {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.achievement-link:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.achievement-link i {
  transition: all 0.2s ease;
}

.tippy-box[data-theme~='arz'] {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  backdrop-filter: blur(6px);
}

.tippy-box[data-theme~='arz'] .tippy-content {
  padding: 8px 10px;
}

.tippy-box[data-theme~='arz'][data-placement^='top']>.tippy-arrow::before {
  border-top-color: var(--bg-card);
}

.tippy-box[data-theme~='arz'][data-placement^='bottom']>.tippy-arrow::before {
  border-bottom-color: var(--bg-card);
}

.tippy-box[data-theme~='arz'][data-placement^='left']>.tippy-arrow::before {
  border-left-color: var(--bg-card);
}

.tippy-box[data-theme~='arz'][data-placement^='right']>.tippy-arrow::before {
  border-right-color: var(--bg-card);
}

.profile-stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 1rem !important;
  padding: 1.5rem;
}

.profile-stats .stat-item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.profile-stats .stat-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-stats .stat-item:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15),
    0 0 20px rgba(59, 130, 246, 0.1);
}

.profile-stats .stat-item:hover::before {
  width: 300px;
  height: 300px;
}

.profile-stats .stat-item:hover .stat-value {
  transform: scale(1.1);
  color: #60a5fa;
}

.profile-stats .stat-value {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.profile-stats .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.profile-actions {
  padding: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

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

.info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.api-key-section {
  max-width: 100%;
}

.api-key-input {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-color: var(--glass-border);
  color: var(--text-secondary);
}

.api-key-input:focus {
  background-color: var(--bg-primary);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
  color: var(--text-primary);
}

.api-key-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  transition: var(--transition-fast);
}

.activity-item:hover {
  border-color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.1);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 0.875rem;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

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

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.empty-state-animation {
  position: relative;
  height: 200px;
  margin-bottom: 2rem;
}

.floating-elements {
  position: relative;
  height: 100%;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  animation: floatElement 4s ease-in-out infinite;
}

.element-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.element-2 {
  top: 10%;
  right: 20%;
  animation-delay: 1.5s;
}

.element-3 {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 3s;
}

@keyframes floatElement {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-20px) rotate(90deg);
  }

  50% {
    transform: translateY(-10px) rotate(180deg);
  }

  75% {
    transform: translateY(-15px) rotate(270deg);
  }
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.empty-state-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.empty-state-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.empty-state-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.quick-actions {
  margin-top: 3rem;
}

.quick-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
  height: 100%;
}

.quick-action-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.quick-action-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: white;
}

.quick-action-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.quick-action-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

.form-control:focus {
  background-color: var(--bg-primary);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
  color: var(--text-primary);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.dropdown-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown-item.text-danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-red);
}

.modal-backdrop {
  transition: opacity 0.3s ease;
  z-index: 1040;
}

.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 1 !important;
}

.modal {
  z-index: 1050;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  color: var(--text-primary);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border-primary);
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.05);
}

.modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.modal-body {
  padding: 1.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.modal-footer {
  border-top: 1px solid var(--border-primary);
  padding: 1rem 1.5rem;
  background-color: rgba(15, 23, 42, 0.5);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal .btn-close {
  filter: invert(0.8) grayscale(100%) brightness(150%);
  transition: var(--transition-fast);
}

.modal .btn-close:hover {
  filter: invert(1) grayscale(100%) brightness(200%);
  transform: scale(1.1);
}

.modal.fade .modal-dialog {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s;
  transform: translateY(50px) scale(0.95);
  opacity: 0;
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal.fade.show .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.hiding .modal-dialog {
  transform: translateY(50px) scale(0.95) !important;
  opacity: 0 !important;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 992px) {
  .sidebar {
    transform: translateX(0);
  }


  .notification-dropdown {
    width: 500px !important;
  }

  .sidebar-toggle {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .main-content {
    margin-left: 0;
  }

  .breadcrumb-wrapper {
    display: none !important;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 200px;
  }

  .stats-row {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .tech-stack {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .api-key-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .empty-state-actions {
    flex-direction: column;
    align-items: center;
  }

  .empty-state-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
    padding-top: 100px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .tech-stack {
    grid-template-columns: 1fr;
  }

  .content-wrapper {
    padding: 1rem;
  }

  .page-title {
    font-size: 1rem;
  }

  .page-title i {
    margin-bottom: 0.5rem;
  }
}

.text-success {
  color: var(--success-green) !important;
}

.text-warning {
  color: var(--warning-orange) !important;
}

.text-danger {
  color: var(--danger-red) !important;
}

.bg-success {
  background-color: var(--success-green) !important;
}

.bg-primary {
  background-color: var(--primary-blue) !important;
}

.bg-info {
  background-color: var(--primary-purple) !important;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-primary);
  border-radius: 50%;
  border-top-color: var(--primary-blue);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media print {

  .sidebar,
  .topbar,
  .footer,
  .sidebar-overlay {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  .content-wrapper {
    padding: 0 !important;
  }
}

.brand-logo {
  height: 30px;
  margin-right: 10px;
}

.hero-logo {
  height: 80px;
}

.hero-visual .floating-card img {
  height: 40px;
  border-radius: 50%;
}

.quick-action-icon img {
  height: 24px;
}

.quick-action-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.error-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 2rem;
}

.error-container {
  max-width: 600px;
}

.error-code {
  font-size: clamp(4rem, 20vw, 8rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.error-message {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
}

.alert {
  padding: 1.1rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1.08rem;
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.alert-info {
  background: linear-gradient(135deg, var(--primary-blue) 60%, var(--primary-purple) 100%);
  color: var(--text-primary);
  border: 1px solid var(--primary-blue);
  box-shadow: 0 4px 24px 0 rgba(59, 130, 246, 0.10);
}

.forum-status-indicator {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 0.55rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.forum-status-indicator:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.forum-status-indicator.online {
  border-left-width: 4px;
  border-left-color: #28a745;
}

.forum-status-indicator.offline {
  border-left-width: 4px;
  border-left-color: #dc3545;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.status-label {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-icon {
  font-size: 8px;
  animation: pulse 2s ease-in-out infinite;
}

.status-icon.online {
  color: #28a745;
}

.status-icon.offline {
  color: #dc3545;
}

.status-icon.unknown {
  color: #6c757d;
}

.status-last-check {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.status-badge span {
  color: #e9ecef;
}

.recent-chats-list {
  list-style: none;
  padding-left: 25px;
  margin-left: 1.5rem;
  position: relative;
}

.recent-chat-item {
  position: relative;
  margin-bottom: 0 !important;
}

.recent-chat-item:not(:last-child)::before {
  content: '';
  position: absolute;
  background-color: var(--text-muted);
  left: -18px;
  top: 0;
  width: 2px;
  height: 100%;
  transition: background-color var(--transition-fast);
}

.recent-chat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  background-color: var(--text-muted);

  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;

  transition: background-color var(--transition-fast);
}

.recent-chat-item:last-child::before {
  content: '';
  position: absolute;

  left: -18px;
  top: 0;

  width: 12px;
  height: 50%;

  border-left: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);

  border-bottom-left-radius: 6px;

  transition: border-color var(--transition-fast);
}

.recent-chat-link {
  padding: 2px 8px !important;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-left: none !important;
  background-color: transparent !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  border-radius: 6px;
}

.recent-chat-link:hover {
  color: var(--text-primary);
}

.nav-link.recent-chat-link.active,
.nav-link.recent-chat-link.active:hover {
  color: var(--primary-blue);
  font-weight: 500;
  background-color: var(--bg-hover) !important;
}

.notification-wrapper {
  position: relative;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.notification-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background-color: #dc3545;
  border-radius: 50%;
  display: none;
}

.notification-badge.has-unread {
  display: block;
  animation: pulse-red 2s infinite;
}

.notification-dropdown {
  position: absolute;
  top: 120%;
  right: -10px;
  width: 340px;
  background: rgba(15, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  overflow: hidden;
}

@keyframes bell-glow {
  0% {
    color: var(--text-secondary);
    text-shadow: none;
  }

  50% {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  }

  100% {
    color: var(--text-secondary);
    text-shadow: none;
  }
}

.notification-btn.has-updates {
  animation: bell-glow 2s ease-in-out infinite;
}

.notification-btn.active.has-updates {
  animation: none;
}

.notification-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.notification-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  margin: 0;
}

.notification-tabs .tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.notification-tabs .tab-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.notification-tabs .tab-btn:hover:not(.active) {
  background: var(--primary-color);
  color: white;
}

.tab-badge {
  font-size: 0.7em;
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}

.notification-body {
  max-height: 400px;
  overflow-y: auto;
}

.notification-list {
  display: none;
}

.notification-list.active {
  display: block;
}

.notification-body::-webkit-scrollbar {
  width: 4px;
}

.notification-body::-webkit-scrollbar-track {
  background: transparent;
}

.notification-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--primary-color);
}

.notif-item.unread:hover {
  background: rgba(59, 130, 246, 0.12);
}

.notif-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary);
  display: flex;
  justify-content: flex-start;
  align-content: center;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
}

.notif-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  word-wrap: break-word;
}

.notif-text p {
  margin-bottom: 0.5rem;
}

.notif-text p:last-child {
  margin-bottom: 0;
}

.notif-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.notif-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chat-item {
  display: block;
}

.chat-card {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

.chat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.8);
}

.btn-rename-chat {
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all 0.2s;
}

.btn-rename-chat:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-open-chat {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.chat-card .quick-action-icon {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.chat-card .quick-action-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.chat-card .btn-favorite {
  opacity: 0;
  transform: scale(0.8);
}

.chat-card:hover .btn-favorite,
.chat-card .btn-favorite.active {
  opacity: 1;
  transform: scale(1);
}

.chat-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.chat-item-title {
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85%;
}

.chat-item-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat-item-preview {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.footer-big-logo {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.footer-ai-float {
  display: inline-block;
  margin-left: 4px;
  animation: textFloat 6s ease-in-out infinite;

  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes textFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-6px) rotate(2deg);
    filter: drop-shadow(0 10px 8px rgba(59, 130, 246, 0.3));
  }
}

.tippy-box[data-theme~='arz'] {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
}

.tippy-box[data-theme~='arz'] .tippy-content {
  padding: 8px 12px;
}

.tippy-box[data-theme~='arz'] .tippy-arrow {
  color: var(--bg-tertiary);
}

.tippy-box[data-theme~='arz'][data-placement^='top']>.tippy-arrow::before {
  border-top-color: var(--bg-tertiary);
}

.tippy-box[data-theme~='arz'][data-placement^='bottom']>.tippy-arrow::before {
  border-bottom-color: var(--bg-tertiary);
}

.tippy-box[data-theme~='arz'][data-placement^='left']>.tippy-arrow::before {
  border-left-color: var(--bg-tertiary);
}

.tippy-box[data-theme~='arz'][data-placement^='right']>.tippy-arrow::before {
  border-right-color: var(--bg-tertiary);
}

.chat-item.col {
  margin-bottom: 1.5rem;
}

.install-app-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.install-app-btn:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%);
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.install-app-btn i {
  font-size: 1rem;
  background: linear-gradient(135deg, #3b82f6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.install-app-modal {
  background: rgba(10, 14, 23, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.install-app-modal .modal-header {
  border-bottom: 1px solid var(--glass-border);
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.install-app-modal .modal-title {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.install-app-modal .modal-title i {
  background: linear-gradient(135deg, #3b82f6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.install-app-modal .modal-body {
  padding: 1.5rem;
}

.install-app-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.install-platform-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 12px;
}

.platform-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.platform-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.platform-tab.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.2));
  color: var(--text-primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.platform-tab i {
  font-size: 1.1rem;
}

.instruction-panel {
  display: none;
}

.instruction-panel.active {
  display: block;
}

.instruction-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.instruction-step:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(37, 99, 235, 0.2);
}

.step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #3b82f6);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.step-content strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

.step-content i {
  color: var(--primary-blue);
}

.install-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
}

.install-note i {
  color: var(--primary-blue);
  margin-top: 2px;
}