:root {--light-secondary: #1d2330; --btn-loading-primary: #7289da; --light-third-border: rgba(255,255,255,0.1); --white-text: #f8f9fa;}

.auth-home-root {position: absolute; inset: 0; background: #0a0e17; color: #fff; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; overflow: hidden; line-height: 1.5; -webkit-font-smoothing: antialiased;}
.auth-floating-logos {position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;}
.auth-bg-logo {position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); animation: float var(--duration) var(--delay) infinite linear; user-select: none; opacity: var(--opacity); filter: grayscale(100%) brightness(0.5);}
.auth-home-content {position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 4rem 2rem; text-align: center; margin: 0 auto; max-width: 1200px;}
.auth-home-main-logo {width: 120px; height: 120px; margin-bottom: 2rem; filter: drop-shadow(0 0 12px rgba(110, 69, 226, 0.7)); transition: transform 0.3s ease;}
.auth-home-main-logo:hover {transform: scale(1.05);}
.auth-home-welcome-box {max-width: 800px; margin: 0 auto 3rem;}
.auth-home-welcome-title {font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; margin: 0 0 1.5rem; line-height: 1.1; letter-spacing: -0.03em; background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-transform: uppercase; text-shadow: 0 2px 10px rgba(110, 69, 226, 0.3);}
.auth-home-welcome-desc {font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255, 255, 255, 0.85); line-height: 1.6; margin: 0 auto 2.5rem; max-width: 600px; font-weight: 400;}
.auth-home-features-box {display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 2.5rem 0 3.5rem;}
.auth-home-feature {background: rgba(255, 255, 255, 0.05); padding: 0.75rem 1.5rem; border-radius: 100px; font-size: clamp(0.9rem, 1.5vw, 1rem); border: 1px solid rgba(110, 69, 226, 0.3); backdrop-filter: blur(5px); transition: all 0.3s ease;}
.auth-home-feature:hover {background: rgba(110, 69, 226, 0.15); transform: translateY(-2px);}
.auth-home-btn-box {width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1rem;}
.auth-home-create-btn {background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%) !important; color: #fff !important; font-weight: 700 !important; border-radius: 12px !important; padding: 1rem !important; border: none !important; font-size: 1rem !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; transition: all 0.3s ease !important; box-shadow: 0 4px 20px rgba(110, 69, 226, 0.3) !important;}
.auth-home-create-btn:hover {transform: translateY(-2px) !important; box-shadow: 0 6px 25px rgba(110, 69, 226, 0.4) !important;}
.auth-home-btn-divider {position: relative; margin: 0.5rem 0; color: rgba(255, 255, 255, 0.4); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;}
.auth-home-btn-divider::before {content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(110, 69, 226, 0.5), transparent); z-index: 0;}
.auth-home-btn-divider span {background: #0a0e17; padding: 0 1rem; position: relative; z-index: 1;}
.auth-home-login-btn {background: rgba(255, 255, 255, 0.05) !important; color: #fff !important; border: 1px solid rgba(110, 69, 226, 0.5) !important; border-radius: 12px !important; padding: 1rem !important; font-size: 1rem !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; transition: all 0.3s ease !important;}
.auth-home-login-btn:hover {background: rgba(110, 69, 226, 0.1) !important; transform: translateY(-2px) !important;}
.auth-home-modal-header {padding: 1.5rem; border-bottom: 1px solid rgba(110, 69, 226, 0.3); background: #0a0e17;}
.auth-home-modal-title {font-weight: 700; font-size: 1.5rem; color: #fff; text-align: center; text-transform: uppercase; letter-spacing: 0.5px;}
.auth-home-modal-content {padding: 2rem; background: #0a0e17;}
.auth-home-modal-text {margin: 0 0 1rem; color: rgba(255, 255, 255, 0.8); font-size: 1rem; line-height: 1.6; text-align: center;}
.auth-home-modal-footer {padding: 1.5rem; border-top: 1px solid rgba(110, 69, 226, 0.3); display: flex; justify-content: center; background: #0a0e17;}
.auth-home-modal-btn {background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%) !important; color: #fff !important; font-weight: 600 !important; border-radius: 8px !important; padding: 0.75rem 2rem !important; border: none !important; font-size: 1rem !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; transition: all 0.3s ease !important;}
.auth-home-modal-btn:hover {transform: translateY(-2px) !important; box-shadow: 0 4px 15px rgba(110, 69, 226, 0.3) !important;}
.auth-root {position: absolute; inset: 0; background: #0a0e17; color: #fff; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center;}
.auth-bg {position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;}
.auth-bg-logo { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); animation: float var(--duration) var(--delay) infinite linear; user-select: none; opacity: var(--opacity); filter: grayscale(100%) brightness(0.5);}
.auth-container { position: relative; z-index: 10; width: 100%; max-width: 420px; background: rgba(10, 14, 23, 0.8); border: 1px solid rgba(110, 69, 226, 0.3); border-radius: 16px; padding: 2.5rem; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);}
.auth-logo {text-align: center; margin-bottom: 2rem;}
.auth-logo img {width: 80px; height: 80px; filter: drop-shadow(0 0 10px rgba(110, 69, 226, 0.5));}
.auth-tabs {display: flex; gap: 1px; background: rgba(110, 69, 226, 0.2); border-radius: 8px; margin-bottom: 1.5rem;}
.auth-tab {flex: 1; padding: 0.8rem; background: transparent; border: none; color: rgba(255, 255, 255, 0.7); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease;}
.auth-tab--active {background: rgba(110, 69, 226, 0.4); color: #fff; border-radius: 6px;}
.auth-privacy {font-size: 0.7rem; text-align: center; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.5px; margin-bottom: 2rem; text-transform: uppercase;}
.auth-form {display: flex; flex-direction: column; gap: 1.5rem;}
.auth-input-group {display: flex; flex-direction: column; gap: 0.3rem;}
.auth-input {background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(110, 69, 226, 0.3); border-radius: 8px; padding: 0.9rem 1.2rem; color: #fff; font-size: 0.9rem; letter-spacing: 0.3px; text-transform: uppercase; transition: all 0.3s ease;}
.auth-input::placeholder {color: rgba(255, 255, 255, 0.4); text-transform: uppercase;}
.auth-input:focus {outline: none; border-color: rgba(110, 69, 226, 0.6); box-shadow: 0 0 0 2px rgba(110, 69, 226, 0.2);}
.auth-error {color: #ff6b6b; font-size: 0.75rem; padding-left: 0.5rem;}
.auth-submit {background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%) !important; color: #fff !important; font-weight: 600 !important; border-radius: 8px !important; padding: 1rem !important; border: none !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; margin-top: 1rem !important; transition: all 0.3s ease !important; box-shadow: 0 4px 15px rgba(110, 69, 226, 0.3) !important;}
.auth-submit:hover {transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(110, 69, 226, 0.4) !important;}
.auth-submit--loading {opacity: 0.8 !important; cursor: not-allowed !important;}
.auth-footer {display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; font-size: 0.8rem;}
.auth-footer-link {color: rgba(255, 255, 255, 0.6); text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.3s ease;}
.auth-footer-link:hover {color: rgba(255, 255, 255, 0.9);}
.auth-footer-separator {color: rgba(255, 255, 255, 0.3);}
.auth-slogan {position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.5px; z-index: 10;}
.auth-celebrate {animation: pulse 1.5s infinite alternate;}
.main-loader-root {position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 9999; overflow: hidden;}
.main-loader-bg {position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 20% 30%, rgba(110, 69, 226, 0.1) 0%, transparent 25%), radial-gradient(circle at 80% 70%, rgba(136, 211, 206, 0.1) 0%, transparent 25%), radial-gradient(circle at center, #0a0e17 0%, #06080f 100%);}
.main-loader-content {position: relative; z-index: 10; width: 100%; max-width: 500px; padding: 2rem;}
.main-loader-card {background: rgba(10, 14, 23, 0.8); border: 1px solid rgba(110, 69, 226, 0.3); border-radius: 16px; padding: 3rem 2rem; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2rem;}
.main-loader-spinner {position: relative; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;}
.main-loader-spinner-icon {color: #6e45e2 !important; animation: main-loader-spin 1.5s linear infinite; filter: drop-shadow(0 0 8px rgba(110, 69, 226, 0.5));}
.main-loader-message {display: flex; flex-direction: column; gap: 0.5rem;}
.main-loader-title {font-size: 1.3rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.95);}
.main-loader-subtitle {font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); line-height: 1.5; letter-spacing: 0.3px;}
.main-loader-error {font-size: 1.1rem; font-weight: 500; color: #ff6b6b; text-transform: uppercase; letter-spacing: 0.5px; padding: 1rem; border-radius: 8px; background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.3);}
.main-loader-light .main-loader-bg {background: radial-gradient(circle at 20% 30%, rgba(110, 69, 226, 0.05) 0%, transparent 25%),radial-gradient(circle at 80% 70%, rgba(136, 211, 206, 0.05) 0%, transparent 25%),radial-gradient(circle at center, #f8f9fa 0%, #e9ecef 100%);}
.main-loader-light .main-loader-card {background: rgba(248, 249, 250, 0.9); border: 1px solid rgba(206, 212, 218, 0.5);}
.main-loader-light .main-loader-title {color: rgba(0, 0, 0, 0.9);}
.main-loader-light .main-loader-subtitle {color: rgba(0, 0, 0, 0.6);}
.server-side-panel {width: 100%; max-width: 420px; width: 94vw; display: flex; background: #111827; overflow-x: hidden;}
.server-side-container {width: 76px; height: 100%; display: flex; flex-direction: column; align-items: center; padding: 16px 0; overflow-y: auto; scrollbar-width: none;}
.server-side-container::-webkit-scrollbar {display: none;}
.server-side-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-bottom: 8px;
  }
  
  /* Action buttons (home, shop, create, settings) */
  .server-side-home-action,
  .server-side-shop-action,
  .server-side-create-action,
  .server-side-settings-action {
    width: 48px;
    height: 48px;
    border-radius: 14px; /* Restored original rounded style */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .server-side-home-action:hover,
  .server-side-shop-action:hover,
  .server-side-create-action:hover,
  .server-side-settings-action:hover {
    background: #222327;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .server-side-home-action:active,
  .server-side-shop-action:active,
  .server-side-create-action:active,
  .server-side-settings-action:active {
    transform: scale(0.98);
  }
  
  /* Symbols inside action buttons */
  .server-side-home-symbol,
  .server-side-shop-symbol,
  .server-side-create-symbol,
  .server-side-settings-symbol {
    width: 26px;
    height: 26px;
    color: #d1d5db;
    transition: color 0.2s ease;
  }
  
  .server-side-home-action:hover .server-side-home-symbol,
  .server-side-shop-action:hover .server-side-shop-symbol,
  .server-side-create-action:hover .server-side-create-symbol,
  .server-side-settings-action:hover .server-side-settings-symbol {
    color: #ffffff;
  }
  
  /* Notification dot */
  .server-side-notify-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 10; /* Ensure it stays visible */
  }
  
  /* Divider */
  .server-side-divider {
    width: 40px;
    height: 2px;
    margin: 12px 0;
    background: linear-gradient(90deg, transparent, #6b7280, transparent);
  }
  
  /* Content area */
  .server-side-content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
  }
  
  /* Footer */
  .server-side-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 8px;
  }
  
  /* Modal overlay */
  .server-side-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
  }
  
  /* Modal */
  .server-side-modal {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.15);
    max-height: 90vh;
    overflow-y: auto;
  }
  
  /* Modal content */
  .server-side-modal-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  /* Modal title */
  .server-side-modal-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
  }
  
  /* Modal input */
  .server-side-modal-input {
    width: 100%;
    padding: 12px 16px;
    background: #374151;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 8px;
    color: #d1d5db;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
  }
  
  .server-side-modal-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.3);
  }
  
  /* Modal button */
  .server-side-modal-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8b5cf6, #d8b4fe);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
  }
  
  .server-side-modal-btn:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  }
  
  .server-side-modal-btn:disabled {
    background: #4b5563;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  
  /* Modal close button */
  .server-side-modal-close {
    width: 100%;
    padding: 12px;
    background: #374151;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 8px;
    color: #d1d5db;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
  }
  
  .server-side-modal-close:hover {
    background: #4b5563;
    border-color: #8b5cf6;
    transform: translateY(-2px);
  }
  
  /* Modal error */
  .server-side-modal-error {
    color: #ef4444;
    font-size: 14px;
    text-align: center;
    margin-top: -8px;
  }
  
  /* Server item */
  .server-side-server-item {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6px;
  }
  
  .server-side-server-item-active {
    width: 90px;
    background: rgba(139, 92, 246, 0.05);
  }
  
  /* Server icon */
  .server-side-server-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #1e293b;
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Ensure positioning context for dot */
    transition: all 0.2s ease;
  }
  
  .server-side-server-icon:hover {
    background: #393363;
    border-color: #8b5cf6;
    transform: scale(1.03);
  }
  
  .server-side-server-icon-active {
    background: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
  }
  
  /* Server image */
  .server-side-server-image {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
  }
  
  /* Server fallback (no image) */
  .server-side-server-fallback {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.25);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
  }
  
  /* Selected server */
  .server-side-server-selected {
    transform: scale(1.03);
  }
  
  /* Server marker (active indicator) */
  .server-side-server-marker {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    border-radius: 0 4px 4px 0;
    background: transparent;
    transition: all 0.2s ease;
  }
  
  .server-side-server-marker-active {
    background: #8b5cf6;
  }
  
  /* Mention dot */
  .server-side-mention-dot {
    background: #facc15;
  }
  
  /* Live pulse */
  .server-side-live-pulse {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 1.5s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.5);
      opacity: 0.7;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Live symbol */
  .server-side-live-symbol {
    width: 8px;
    height: 8px;
  }
  
  /* Tooltip */
  .server-side-tooltip-label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(17, 24, 39, 0.95);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  /* Mobile responsiveness */
  @media (max-width: 768px) {
  
    .server-side-modal {
      max-width: 90%;
    }
  
    .server-side-home-action,
    .server-side-shop-action,
    .server-side-create-action,
    .server-side-settings-action,
    .server-side-server-icon {
      width: 48px;
      height: 48px;
    }
  
    .server-side-server-image,
    .server-side-server-fallback {
      width: 44px;
      height: 44px;
    }
  }
.channel-footer-bar {display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 12px; transition: background 0.3s ease;}
.channel-footer-profile {display: flex; align-items: center; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: all 0.3s ease;}
.channel-footer-profile:hover {border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);}
.channel-footer-profile[data-active="true"] {border-color: #a78bfa;}
.channel-footer-avatar {position: relative; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; margin-right: 10px; transition: transform 0.2s ease;}
.channel-footer-avatar:hover {transform: scale(1.05);}
.channel-footer-badge {position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: #f87171; color: #ffffff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #1f2937; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);}
.channel-footer-info {display: flex; flex-direction: column; gap: 2px;}
.channel-footer-info > * {color: #ffffff; font-size: 14px; font-weight: 600; line-height: 1.2; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.channel-footer-status {color: #9ca3af; font-size: 12px; line-height: 1.2; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.channel-footer-wallet {padding: 6px 10px; background: rgba(139, 92, 246, 0.1); border-radius: 8px; cursor: pointer; transition: all 0.3s ease;}
.channel-footer-wallet:hover {filter: brightness(1.25); transform: scale(1.03); box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);}
.channel-footer-tooltip {background: #1f2937; padding: 12px; border-radius: 8px; color: #e5e7eb; font-size: 13px; text-align: center; border: 1px solid rgba(139, 92, 246, 0.2); max-width: 200px;}
.channel-footer-tooltip-spacer {height: 8px;}
.channel-footer-settings-container {
    display: flex;
    align-items: center;
    gap: 2px; /* Reduced from 4px for closer icons */
    margin-left: auto; /* Pushes the container to the far right */
}

.channel-footer-status-edit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px; /* Reduced from 6px for smaller icons */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Matches channel-footer-profile */
    transition: all 0.3s ease; /* Matches channel-footer-profile */
}

.channel-footer-status-edit:hover {
    background: rgba(139, 92, 246, 0.1); /* Matches channel-footer-settings hover */
    transform: scale(1.05); /* Matches channel-footer-settings hover */
}

.channel-footer-status-edit svg {
    color: #9ca3af; /* Matches channel-footer-status color */
    width: 16px; /* Reduced from 20px */
    height: 16px; /* Reduced from 20px */
}

.channel-footer-status-edit:hover svg {
    color: #ffffff; /* Matches channel-footer-info text on hover */
}

.channel-footer-settings {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px; /* Reduced from 6px for smaller icons */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Matches channel-footer-profile */
    transition: all 0.3s ease; /* Matches channel-footer-profile */
}

.channel-footer-settings:hover {
    background: rgba(139, 92, 246, 0.1); /* Matches channel-footer-wallet hover */
    transform: scale(1.05); /* Matches channel-footer-avatar hover */
}

.channel-footer-settings svg {
    color: #9ca3af; /* Matches channel-footer-status color */
    width: 16px; /* Reduced from 20px */
    height: 16px; /* Reduced from 20px */
}

.channel-footer-settings:hover svg {
    color: #ffffff; /* Matches channel-footer-info text color on hover */
}

.modern-channel-layout {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: var(--inset-top, 0);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.channel-menu-wrapper {
    padding: 20px 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
}

.channel-menu-wrapper::-webkit-scrollbar {
    width: 8px;
}

.channel-menu-wrapper::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

.channel-menu-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.channel-action-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-action-button {
    width: 100%;
    padding: 12px 16px;
    background: rgba(75, 85, 99, 0.8);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.channel-action-button:hover {
    background: rgba(107, 114, 128, 0.9);
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.channel-action-button:active {
    transform: scale(0.97);
}

.channel-action-button[active="true"] {
    background: rgba(139, 92, 246, 0.15);
    border-color: #a78bfa;
}

.channel-action-indicator {
    margin-left: 8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 50%;
    background: #f87171;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2d3748;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.channel-menu-separator {
    width: 80%;
    height: 1px;
    margin: 20px auto;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.4), transparent);
}

.channel-event-card {
    margin: 16px;
    padding: 12px;
    background: rgba(55, 65, 81, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.channel-content-flow {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    padding-bottom: 120px; /* Space for footer */
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
}

.channel-content-flow::-webkit-scrollbar {
    width: 8px;
}

.channel-content-flow::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

.channel-content-flow::-webkit-scrollbar-track {
    background: transparent;
}

.channel-category-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.channel-category-header {
    width: 100%;
    padding: 8px 12px;
    margin: 12px 0 4px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
    outline: none;
}

.channel-category-header:hover {
    color: #e5e7eb;
}

.channel-collapse-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.channel-collapse-icon--collapsed {
    transform: rotate(-90deg);
}

.channel-button {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 4px;
    color: #8e9297;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
  }
  .channel-button:hover {
    background-color: #313131;
  }
  .channel-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    position: relative;
    z-index: 20;
    transition: all 0.3s ease;
}

.channel-header-content {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
}

.channel-header-left {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #e5e7eb;
}

.channel-header-left-items {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-header-left-items > span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #e5e7eb;
    transition: color 0.3s ease;
}

.channel-header-left-items > span:hover {
    color: #ffffff;
}

.channel-header-left-items svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.channel-header-left-items:hover svg {
    color: #d1d5db;
}

.channel-header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(75, 85, 99, 0.8);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 50%;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.channel-header-search-btn:hover {
    background: rgba(107, 114, 128, 0.9);
    border-color: rgba(167, 139, 250, 0.5);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.channel-header-search-btn:active {
    transform: scale(0.95);
}

.channel-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-header-right .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(75, 85, 99, 0.8);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 50%;
    color: #e5e7eb;
    transition: all (°C0.3s ease);
}

.channel-header-right .btn:hover {
    background: rgba(107, 114, 128, 0.9);
    border-color: rgba(167, 139, 250, 0.5);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.channel-header-right .btn:active {
    transform: scale(0.95);
}

.channel-header-right .btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .channel-header-left-items > .btn-circle {
        display: flex; /* Ensure menu button is visible on smaller screens */
    }
}

.server-message-entry {
    margin: 24px auto;
    padding: 24px;
    background: #2d3748; /* Matches lighter channel theme */
    border-radius: 16px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.server-message-entry::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(167, 139, 250, 0.1));
    border-radius: 18px;
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.server-message-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.server-message-entry:hover::before {
    opacity: 1;
}

.message-entry-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 26px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 12px;
    line-height: 1.2;
    flex-wrap: wrap; /* Added for mobile wrapping if name is long */
}

.message-entry-title > *:first-child {
    color: #a3bffa; /* Lighter purple for symbol */
    font-size: 30px;
    font-weight: 800;
}

.message-entry-content {
    color: #d1d5db;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .server-message-entry {
        margin: 16px auto;
        padding: 16px;
        max-width: 90%; /* Flexible width for smaller screens */
        border-radius: 12px;
    }

    .server-message-entry::before {
        border-radius: 14px; /* Match smaller border-radius */
    }

    .message-entry-title {
        font-size: 20px;
        gap: 4px;
        margin-bottom: 8px;
    }

    .message-entry-title > *:first-child {
        font-size: 24px;
    }

    .message-entry-content {
        font-size: 14px;
        line-height: 1.3;
    }

    /* Disable hover effects on mobile to avoid confusion */
    .server-message-entry:hover {
        transform: none;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    }

    .server-message-entry:hover::before {
        opacity: 0.8;
    }
}

/* Extra small screens (e.g., very narrow phones) */
@media (max-width: 480px) {
    .server-message-entry {
        padding: 12px;
        max-width: 95%;
    }

    .message-entry-title {
        font-size: 18px;
    }

    .message-entry-title > *:first-child {
        font-size: 20px;
    }

    .message-entry-content {
        font-size: 13px;
    }
}

.date-section {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 16px;
    padding-bottom: 8px;
    text-align: center;
    background: transparent; /* Ensures it blends with your app's #2d3748 */
}

.date-section-line-left {
    display: inline-block;
    width: 40%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(167, 139, 250, 0.3),
        transparent
    );
    vertical-align: middle;
    margin-right: 12px;
}

.date-section-line-right {
    display: inline-block;
    width: 40%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(167, 139, 250, 0.3),
        transparent
    );
    vertical-align: middle;
    margin-left: 12px;
}

.date-section-text {
    display: inline-block;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db; /* Light gray text */
    background: rgba(55, 65, 81, 0.9); /* Dark gray background */
    border-radius: 9999px; /* Circular shape */
    border: 1px solid rgba(167, 139, 250, 0.2); /* Subtle purple border */
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.1); /* Light shadow */
    vertical-align: middle;
    transition: all 0.3s ease;
}

.date-section-text:hover {
    background: rgba(75, 85, 99, 0.9); /* Lighter on hover */
    color: #e5e7eb;
    border-color: rgba(167, 139, 250, 0.4); /* Stronger border */
    box-shadow: 0 3px 6px rgba(139, 92, 246, 0.15); /* Enhanced shadow */
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .date-section {
        padding-top: 12px;
        padding-bottom: 6px;
        padding-left: 8px; /* Prevent overflow on narrow screens */
        padding-right: 8px;
    }

    .date-section-line-left,
    .date-section-line-right {
        width: 30%; /* Shorter lines to fit smaller screens */
        margin-right: 8px; /* Reduced spacing */
        margin-left: 8px;
    }

    .date-section-text {
        font-size: 12px; /* Smaller text for mobile */
        padding: 3px 10px; /* Compact padding */
        border-radius: 16px; /* Slightly less extreme rounding for balance */
    }
}

/* Extra small screens (e.g., very narrow phones) */
@media (max-width: 480px) {
    .date-section {
        padding-top: 10px;
        padding-bottom: 4px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .date-section-line-left,
    .date-section-line-right {
        width: 25%; /* Even shorter lines */
        margin-right: 6px;
        margin-left: 6px;
    }

    .date-section-text {
        font-size: 11px; /* Minimum readable size */
        padding: 2px 8px; /* Minimal padding */
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(139, 92, 246, 0.1); /* Reduced shadow */
    }

    .date-section-text:hover {
        box-shadow: 0 2px 4px rgba(139, 92, 246, 0.15); /* Adjusted hover shadow */
    }
}

/* Main message container */
.message-pod {
    display: block;
    width: 100%;
    position: relative;
    padding-right: 16px;
    transition: all 0.3s ease;
    overflow: hidden; /* Clear floats */
}

.message-pod-start {
    padding-top: 12px;
}

.message-pod-end {
    padding-bottom: 8px;
}

.message-pod-pending {
    opacity: 0.5;
}

.message-pod-highlighted {
    background: rgba(139, 92, 246, 0.05);
}

/* Avatar area (only for start of group) */
.message-pod-avatar-area {
    display: block;
    float: left;
    width: 60px;
    margin-left: .75rem;
    text-align: center;
    padding-top: 8px; /* Aligns avatar with bubble top */
}

/* Avatar */
.message-pod-avatar {
    display: block;
    cursor: pointer;
}

/* Main bubble content */
.message-pod-main {
    display: block;
    width: calc(100% - 80px);
    padding: 8px 12px;
    margin-left: 68px; /* Offset matches avatar width + spacing */
    margin-bottom: 2px;
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Hover effect */
.message-pod-main:hover {
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.message-pod-highlighted .message-pod-main {
    border-color: rgba(139, 92, 246, 0.5);
}

/* Header (username, time, edited) */
.message-pod-top {
    display: block;
    margin-bottom: 4px;
}

/* Username */
.message-pod-username {
    display: inline;
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    cursor: pointer;
    text-decoration: none;
}

.message-pod-username:hover {
    text-decoration: underline;
}

/* Timestamp in header */
.message-pod-time {
    display: inline;
    font-size: 10px;
    color: #9ca3af;
    margin-left: 12px;
    padding-top: 2px;
    cursor: default;
}

/* Edited indicator */
.message-pod-edited {
    display: inline;
    font-size: 10px;
    color: #9ca3af;
    margin-left: 4px;
    cursor: default;
}

/* Hover timestamp */
.message-pod-timestamp {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    opacity: 0;
    margin-top: 2px;
    cursor: default;
}

.message-pod:hover .message-pod-timestamp {
    opacity: 0.5;
}

/* Message text */
.message-pod-text {
    display: block;
    font-size: 14px;
    color: #d1d5db;
    word-break: break-word;
}

/* Embed wrapper */
.message-pod-embed {
    display: block;
    margin-top: 8px;
}

/* Reactions */
.message-pod-reactions {
    display: block;
    margin-top: 4px;
}

/* Focus indicator */
.message-pod-focus {
    display: block;
    position: absolute;
    top: -16px;
    right: 16px;
}

/* Reply preview */
.message-reply-pod {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    border-left: 4px solid #a78bfa;
    border-radius: 4px;
    background: rgba(55, 65, 81, 0.7);
    cursor: pointer;
    transition: background 0.3s ease;
}

.message-reply-pod:hover {
    background: rgba(75, 85, 99, 0.2);
}

/* Reply image */
.message-reply-image {
    display: inline-block;
    height: 40px;
    width: auto;
    margin-right: 8px;
    border-radius: 4px;
}

/* Reply text wrapper */
.message-reply-body {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 48px);
    margin: 2px 0;
}

/* Reply username */
.message-reply-username {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #a78bfa;
    text-align: left;
}

/* Reply content wrapper */
.message-reply-text-area {
    display: block;
    height: 24px;
    overflow: hidden;
    text-align: left;
}

/* Reply content */
.message-reply-text {
    display: block;
    font-size: 12px;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .message-pod {
        padding-right: 8px;
    }

    .message-pod-avatar-area {
        width: 50px;
    }

    .message-pod-main {
        width: calc(100% - 66px);
        padding: 6px 10px;
        margin-left: 58px;
        border-radius: 6px;
    }

    .message-pod-username,
    .message-pod-text {
        font-size: 13px;
    }

    .message-reply-pod {
        padding: 6px;
    }

    .message-reply-image {
        height: 32px;
    }

    .message-reply-body {
        width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .message-pod-avatar-area {
        width: 40px;
    }

    .message-pod-main {
        width: calc(100% - 52px);
        padding: 4px 8px;
        margin-left: 48px;
    }

    .message-pod-username,
    .message-pod-text {
        font-size: 12px;
    }

    .message-reply-pod {
        padding: 4px;
    }
}

.server-invite-embed {
    display: flex;
    align-items: center;
    height: 65px;
    width: 100%;
    max-width: 480px;
    border-left: 4px solid #a78bfa;
    border-radius: 6px;
    transition: all 0.3s ease;
    padding: 8px;
}

.server-invite-embed:hover {
    border-left-color: rgba(167, 139, 250, 0.6);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.server-invite-embed-wide {
    max-width: 400px;
    margin-top: 2px;
}

.server-invite-embed-compact {
    max-width: 100%;
    padding: 6px;
}

.server-invite-embed-default {
    max-width: 480px;
    padding: 8px;
}

.server-invite-icon-area {
    margin-right: 10px;
}

.server-invite-info {
    display: flex;
    align-items: center;
    flex: 1;
    column-gap: 12px;
}

.server-invite-name {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.server-invite-name-compact {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-invite-stats {
    font-size: 11px;
    color: #d1d5db;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.server-invite-member-stats {
    display: flex;
    align-items: center;
}

.server-invite-member-icon {
    margin-right: 4px;
}

.server-invite-button {
    margin-left: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .server-invite-embed {
        height: 65px;
        padding: 6px;
        border-radius: 5px;
    }

    .server-invite-embed-default {
        max-width: 100%;
        padding: 6px;
    }

    .server-invite-embed-compact {
        padding: 4px;
    }

    .server-invite-name {
        font-size: 13px;
    }

    .server-invite-stats {
        font-size: 10px;
    }

    .server-invite-icon-area {
        margin-right: 8px;
    }

    .server-invite-info {
        column-gap: 8px;
    }
}

@media (max-width: 480px) {
    .server-invite-embed {
        height: 65px;
        padding: 4px;
        border-radius: 4px;
    }

    .server-invite-embed-default {
        padding: 4px;
    }

    .server-invite-embed-compact {
        padding: 3px;
    }

    .server-invite-name {
        font-size: 12px;
    }

    .server-invite-stats {
        font-size: 9px;
    }

    .server-invite-icon-area {
        margin-left: .25rem
    }

    .server-invite-info {
        margin-left: .25rem;
        column-gap: 6px;
    }

    .server-invite-button {
        margin-right: .25rem
    }
}

.msg-hover_tippy {
    display: flex;
    align-items: center;
    height: 45px;
    padding-right: 4px;
    border-radius: 6px;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(167, 139, 250, 0.15);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition-property: all;
    transition-duration: 150ms;
    transition-timing-function: ease-in-out;
}

.message-actions-hover-shadow:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.emoji-reaction-bar {
    display: flex;
    gap: 4px;
    cursor: default;
    border-radius: 0px;
    padding: 4px;
    border-width: 0px;
    border-style: solid;
    border-color: rgba(167, 139, 250, 0.15);;
}

.chat-input-wrapper {
    position: relative;
    min-height: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - 32px); /* Match chat-input-field width, accounting for padding */
    margin: 0 16px; /* Center it within the parent container */
}

.chat-input-wrapper:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.chat-input-wrapper-disabled {
    opacity: 0.85;
    box-shadow: none;
}

.chat-input-progress-bar {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.chat-input-progress-bar::-webkit-progress-value {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    transition: width 0.3s ease;
}

.chat-input-field {
    position: absolute;
    left: 0;
    top: 0;
    padding: 12px 16px;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    resize: none;
    color: #f3f4f6;
    line-height: 1.6;
    border-radius: 16px;
    transition: box-shadow 0.2s ease;
    width: 100%; 
}

.chat-input-field:focus {
    box-shadow: inset 0 0 0 2px #42306e;
}

.chat-input-field-disabled {
    cursor: not-allowed;
    color: #9ca3af;
}

.chat-input-autocomplete {
    position: absolute;
    bottom: 100%;
    margin-bottom: 12px;
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-controls {
    position: absolute;
    right: 8px; /* Position on the far right */
    top: 50%; /* Vertically center within the parent */
    transform: translateY(-50%); /* Adjust for vertical centering */
    display: flex;
    align-items: center;
    width: 30px;
    padding: 0;
    margin: 0; /* Remove margin to avoid extra spacing */
}

.chat-input-media-panel {
    position: absolute;
    bottom: 56px;
    right: 0;
    background: #1e293b;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
}

@media (min-width: 640px) {
    .chat-input-media-panel {
        right: 16px;
    }
}

.chat-input-media-toggle {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat цене-input-media-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.chat-input-media-toggle:active {
    transform: scale(0.95);
}

.server-header-section {
    height: 55px;
    padding: 10px 16px;
}
.server-header-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.server-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.server-icon-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.server-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #5865f2;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
}
.server-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-older-messages-notice {
    height: 42px; /* Increased from 28px */
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px; /* Gap between text and button */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    user-select: none;
    font-size: 13px;
    font-weight: 500;
    position: absolute;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #dcddde;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

/* Xen: Unread notice (top) */
.chat-unread-notice {
    top: 0;
    left: 0;
    right: 0;
}

.chat-unread-notice-visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-unread-notice-hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.chat-unread-text {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center; /* Center text vertically */
}

.chat-unread-action {
    display: flex;
    align-items: center; /* Center content vertically */
    gap: 6px;
}

.chat-unread-icon {
    margin-left: 4px;
    color: #dcddde;
    transition: color 0.2s ease;
}

/* Zen: Older messages notice (bottom) */
.chat-older-messages-notice-active {
    bottom: calc(var(--input-height, 44px) + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 80%;
}

.chat-older-messages-notice-visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.chat-older-messages-notice-hidden {
    opacity: 0;
    transform: translateX(-50%) scale(0.95);
    pointer-events: none;
}

.chat-older-messages-text {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center; /* Center text vertically */
}

.chat-older-messages-action {
    display: flex;
    align-items: center; /* Center content vertically */
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px; /* Rounded button */
    color: #dcddde;
    transition: background 0.2s ease, transform 0.1s ease;
}

.chat-older-messages-action:hover {
    background: #393363; 
    transform: scale(1.05);
}

.chat-older-messages-icon {
    margin-left: 4px;
    color: #dcddde;
    transition: color 0.2s ease;
}

.chat-older-messages-notice-active:hover .chat-older-messages-action {
    color: #ffffff;
}

.chat-older-messages-notice-active:hover .chat-older-messages-icon {
    color: #ffffff;
}

/* Hover effects for Xen */
.chat-unread-notice:hover {
    background: linear-gradient(135deg, #3a3c42, #2a2c31);
}

.chat-unread-notice:hover .chat-unread-icon {
    color: #5865f2;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-older-messages-notice {
        font-size: 12px;
        padding: 5px 10px;
        max-width: 90%;
    }
    .chat-older-messages-action {
        padding: 3px 6px;
    }
}

.tms-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-bg-logo {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    animation: float var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.tms-content {
    position: relative;
    z-index: 1001;
    max-width: 640px;
    width: 92%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
}

.tms-card {
    background: #1f2937;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    color: #e5e7eb;
    -ms-overflow-style: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.tms-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(167, 139, 250, 0.1));
    border-radius: 14px;
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tms-card:hover::before {
    opacity: 1;
}

.tms-card::-webkit-scrollbar {
    width: 8px;
}

.tms-card::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

.tms-card::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 480px) {
    .tms-content {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        align-items: stretch;
    }
    .tms-card {
        width: 100vw;
        height: 100vh;
        max-width: none;
        border-radius: 0;
        padding: 20px;
        border: none;
        box-shadow: none;
        background: #1f2937;
        backdrop-filter: none;
    }
    .tms-card::before {
        display: none;
    }
    .auth-floating-logos {
        display: none;
    }
}

.tms-light .tms-card {
    background: #f3f4f6;
    color: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.tms-light .tms-card::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.05));
}

@media (max-width: 480px) {
    .tms-light .tms-card {
        background: #ffffff;
    }
}

.tms-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tms-light .tms-header {
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

@media (max-width: 480px) {
    .tms-header {
        min-height: 80px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
}

.tms-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
    letter-spacing: -0.02em;
    color: #ffffff;
    background: linear-gradient(90deg, #a3bffa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.tms-light .tms-title {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 480px) {
    .tms-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
}

.tms-subtext {
    font-size: 15px;
    color: #9ca3af;
    text-align: center;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

.tms-light .tms-subtext {
    color: #6b7280;
}

@media (max-width: 480px) {
    .tms-subtext {
        font-size: 13px;
    }
}

.tms-session-count-wrapper {
    margin-bottom: 24px;
}

.tms-session-count {
    font-size: 16px;
    font-weight: 600;
    color: #a78bfa;
    text-align: left;
    transition: color 0.3s ease;
}

.tms-light .tms-session-count {
    color: #8b5cf6;
}

@media (max-width: 480px) {
    .tms-session-count {
        font-size: 14px;
    }
}

.tms-session-count-subtext {
    font-size: 14px;
    color: #9ca3af;
    text-align: left;
    margin-top: 6px;
    font-weight: 400;
}

.tms-light .tms-session-count-subtext {
    color: #6b7280;
}

@media (max-width: 480px) {
    .tms-session-count-subtext {
        font-size: 12px;
    }
}

.tms-spinner {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.tms-spinner-icon {
    color: #a78bfa;
    animation: spin 1s linear infinite;
}

.tms-light .tms-spinner-icon {
    color: #8b5cf6;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.tms-loading-text {
    text-align: center;
    font-size: 15px;
    color: #9ca3af;
    font-weight: 400;
}

.tms-light .tms-loading-text {
    color: #6b7280;
}

@media (max-width: 480px) {
    .tms-loading-text {
        font-size: 13px;
    }
}

.tms-error {
    text-align: center;
    font-size: 15px;
    padding: 12px;
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.tms-light .tms-error {
    color: #dc2626;
    background: rgba(248, 113, 113, 0.2);
}

@media (max-width: 480px) {
    .tms-error {
        font-size: 13px;
    }
}

.tms-empty {
    text-align: center;
    font-size: 15px;
    color: #9ca3af;
    padding: 24px;
    font-weight: 400;
}

.tms-light .tms-empty {
    color: #6b7280;
}

@media (max-width: 480px) {
    .tms-empty {
        font-size: 13px;
    }
}

.tms-session-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tms-session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: rgba(55, 65, 81, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
    animation-delay: calc(var(--index, 0) * 0.05s);
}

.tms-session-item-first {
    --index: 0;
}

.tms-session-item:not(.tms-session-item-first) {
    --index: 1;
}

.tms-session-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.tms-light .tms-session-item {
    background: rgba(209, 213, 219, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.tms-light .tms-session-item:hover {
    background: rgba(209, 213, 219, 0.5);
}

@media (max-width: 480px) {
    .tms-session-item {
        background: rgba(55, 65, 81, 0.9);
        border: none;
        border-radius: 8px;
    }
    .tms-light .tms-session-item {
        background: rgba(209, 213, 219, 0.4);
    }
    .tms-session-item:hover {
        transform: none;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tms-session-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.tms-session-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tms-session-name {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
}

@media (max-width: 480px) {
    .tms-session-name {
        font-size: 14px;
    }
}

.tms-session-id {
    font-size: 12px;
    color: #9ca3af;
    word-break: break-all;
    font-weight: 400;
}

.tms-light .tms-session-id {
    color: #6b7280;
}

@media (max-width: 480px) {
    .tms-session-id {
        font-size: 11px;
    }
}

.tms-current-device {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 16px;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tms-light .tms-current-device {
    background: #8b5cf6;
    border: 2px solid #f3f4f6;
}

@media (max-width: 480px) {
    .tms-current-device {
        font-size: 11px;
        padding: 3px 10px;
    }
    .tms-current-device:hover {
        transform: none;
    }
}

.tms-logout-button {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    touch-action: manipulation;
}

.tms-logout-button:hover {
    background: linear-gradient(135deg, #ef4444, #f87171);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
}

.tms-logout-button:active {
    transform: scale(0.97);
}

.tms-logout-button:disabled {
    background: #4b5563;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 480px) {
    .tms-logout-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    .tms-logout-button:hover {
        transform: none;
    }
}

.error-page-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.error-page-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.6));
    backdrop-filter: blur(12px);
}

.error-page-background-logo {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    animation: float var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.error-page-container {
    position: relative;
    z-index: 1001;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    display: flex;
    justify-content: center;
}

.error-page-card {
    background: #1f2937;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    color: #e5e7eb;
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.error-page-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(167, 139, 250, 0.1));
    border-radius: 14px;
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.error-page-card:hover::before {
    opacity: 1;
}

.error-page-card::-webkit-scrollbar {
    width: 8px;
}

.error-page-card::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

.error-page-card::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 480px) {
    .error-page-container {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        align-items: stretch;
    }
    .error-page-card {
        width: 100vw;
        height: 100vh;
        max-width: none;
        border-radius: 0;
        padding: 20px;
        border: none;
        box-shadow: none;
        background: #1f2937;
        backdrop-filter: none;
    }
    .error-page-card::before {
        display: none;
    }
    .error-page-background {
        display: none;
    }
}

.error-page-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 480px) {
    .error-page-header {
        min-height: 80px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
}

.error-page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
    letter-spacing: -0.02em;
    color: #ffffff;
    background: linear-gradient(90deg, #a3bffa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .error-page-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
}

.error-page-message {
    font-size: 15px;
    color: #9ca3af;
    text-align: center;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .error-page-message {
        font-size: 13px;
    }
}

.error-page-details-section {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(55, 65, 81, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

@media (max-width: 480px) {
    .error-page-details-section {
        padding: 12px;
        border-radius: 8px;
        border: none;
    }
}

.error-page-details-title {
    font-size: 16px;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 8px;
    text-align: left;
}

@media (max-width: 480px) {
    .error-page-details-title {
        font-size: 14px;
    }
}

.error-page-details-text {
    font-size: 14px;
    color: #e5e7eb;
    text-align: left;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

@media (max-width: 480px) {
    .error-page-details-text {
        font-size: 12px;
    }
}

.error-page-privileged-info {
    font-size: 14px;
    color: #f87171;
    text-align: left;
    margin-top: 12px;
    padding: 10px;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

@media (max-width: 480px) {
    .error-page-privileged-info {
        font-size: 12px;
        padding: 8px;
    }
}

.error-page-retry-button {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.error-page-retry-button:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.error-page-retry-button:active {
    transform: scale(0.97);
}

@media (max-width: 480px) {
    .error-page-retry-button {
        padding: 10px 20px;
        font-size: 14px;
        max-width: 180px;
    }
    .error-page-retry-button:hover {
        transform: none;
    }
}

.bot-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 22px;
    margin-left: 4px;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    user-select: none;
    transition: all 0.3s ease;
}

.bot-badge-container:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(139, 92, 246, 0.3);
}

@media (max-width: 480px) {
    .bot-badge-container {
        height: 20px;
        font-size: 11px;
        padding: 0 3px;
        margin-left: 3px;
    }
    .bot-badge-container:hover {
        transform: none;
    }
}

.down-page {
    min-height: 100vh;
    background: #111827;
    color: #e5e7eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

.down-page--attack {
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.1), #111827 30%);
}

.down-page-header {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    margin-bottom: 30px;
}

.down-page--attack .down-page-header {
    border-bottom: 1px solid rgba(248, 113, 113, 0.3);
}

.down-page-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(90deg, #a3bffa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    text-transform: uppercase;
}

.down-page-title--attack {
    background: linear-gradient(90deg, #f87171, #fe8282);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.down-page-content {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.down-page-message {
    font-size: 18px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.6;
    max-width: 600px;
}

.down-page-details {
    background: #1f2937;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.down-page--attack .down-page-details {
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.down-page-details-title {
    font-size: 20px;
    font-weight: 600;
    color: #a78bfa;
    margin: 0 0 15px 0;
}

.down-page--attack .down-page-details-title {
    color: #f87171;
}

.down-page-details-text {
    font-size: 16px;
    color: #e5e7eb;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.down-page-privileged-info {
    font-size: 14px;
    color: #f87171;
    margin-top: 10px;
    padding: 10px;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.down-page-loader {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    position: relative;
}

.down-page-loader::before,
.down-page-loader::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #a78bfa;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.down-page-loader::after {
    animation-delay: 0.75s;
}

.down-page-loader--attack::before,
.down-page-loader--attack::after {
    background: #f87171;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.5);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .down-page {
        padding: 20px 15px;
    }
    .down-page-title {
        font-size: 28px;
    }
    .down-page-message {
        font-size: 16px;
    }
    .down-page-details {
        padding: 15px;
    }
    .down-page-details-title {
        font-size: 18px;
    }
    .down-page-details-text {
        font-size: 14px;
    }
    .down-page-loader {
        width: 50px;
        height: 50px;
    }
    .down-page-loader::before,
    .down-page-loader::after {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .down-page-title {
        font-size: 24px;
    }
    .down-page-message {
        font-size: 14px;
    }
    .down-page-details {
        border-radius: 8px;
    }
    .down-page-privileged-info {
        font-size: 12px;
        padding: 8px;
    }
    .down-page-loader {
        width: 40px;
        height: 40px;
    }
    .down-page-loader::before,
    .down-page-loader::after {
        width: 12px;
        height: 12px;
    }
}

.input-1 {width: 100%; padding: 0.875rem; border: 1px solid #2d3748; border-radius: 8px; color: #f8fafc;}

.auth-submit_btn--loading {opacity: 0.8; background: linear-gradient(135deg, var(--btn-loading-primary), var(--btn-loading-primary));}
.modal-submit_btn {width: 100%; padding: 1rem; background: #4ade80; color: #0f172a; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease;}
.modal-submit_btn:hover {background: #3ecf78; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);}
.modal-submit_btn:active {transform: translateY(0);}

.dark-primary {background-color: #121214}
.bg-test {
    background-color: #0f0f0f
}
.light-primary {background-color: #1a1a1e}
.purple-primary {background-color: #393363}
.light-secondary {background-color: #1d2330}
.purple-secondary {background-color: #42306e}
.light-3 {background-color: #313131}
.neon-green {background-color: #4ade80}
.neon-yellow {background-color: #eab308}
.neon-red {background-color: #ef4444}
.bg-input-dark {background-color: #0a0e17}
.bg-msg_box {background-color: #222327}
.bg-active_box {background-color: #222327}