* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styles */
.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.auth-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Button Styles */
.auth-actions {
    display: grid;
    gap: 1rem;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-btn.primary {
    background: #3b82f6;
    color: white;
}

.auth-btn.primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.auth-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #1e293b;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-text {
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-close-btn {
    background: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-content {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}



// LOGIN SCREEN \\

/* New Login Form CSS */
.auth-portal__container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(145deg, #1a1a1e 0%, #24242b 100%);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.auth-portal__header {
    margin-bottom: 2rem;
    position: relative;
}

.auth-portal__backlink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #8c8c9e;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.auth-portal__backlink:hover {
    color: #fff;
}

.auth-portal__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 1.5rem 0;
    letter-spacing: -0.5px;
}

.auth-portal__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-field__group {
    position: relative;
    margin-bottom: 1rem;
}

.input-field__element {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.input-field__element:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

.validation-error__message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.auth-portal__utility-link {
    color: #8c8c9e;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.auth-portal__utility-link:hover {
    color: #6366f1;
}

.terms-agreement__container {
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.primary-action__button {
    width: 100%;
    padding: 14px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-action__button:hover {
    background: #4f46e5;
}

.primary-action__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Background Styles */
.auth-portal__outer-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    z-index: 1;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bt > div {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Sectional Dark Theme Design */
.nd-container {
    --nd-primary: #5865f2;
    --nd-online-bg: #1a2b3c;
    --nd-offline-bg: #2d2f33;
    --nd-pending-bg: #3a2e24;
    --nd-blocked-bg: #3c1a1f;
    --nd-card-bg: linear-gradient(145deg, #2b2d31 0%, #202225 100%);
    --nd-text-main: #ffffff;
    --nd-text-dim: #b9bbbe;
    --nd-online: #3ba55d;
    --nd-offline: #747f8d;
    --nd-border: rgba(255,255,255,0.08);
    --nd-radius: 12px;
    --nd-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nd-section-online {
    background: var(--nd-online-bg);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    margin: 12px 0;
    padding: 16px;
}

.nd-section-offline {
    background: var(--nd-offline-bg);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    margin: 12px 0;
    padding: 16px;
}

.nd-section-pending {
    background: var(--nd-pending-bg);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    margin: 12px 0;
    padding: 16px;
}

.nd-section-blocked {
    background: var(--nd-blocked-bg);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    margin: 12px 0;
    padding: 16px;
}

.nd-friend-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: var(--nd-card-bg);
    border-radius: 8px;
    transition: var(--nd-transition);
    position: relative;
}

.nd-friend-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nd-status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
    bottom: -2px;
    right: -2px;
    border: 2px solid var(--nd-card-bg);
}

.nd-status-online {
    background: var(--nd-online);
    box-shadow: 0 0 8px var(--nd-online);
}

.nd-status-offline {
    background: var(--nd-offline);
}

.nd-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nd-friend-card:hover .nd-actions {
    opacity: 1;
}

.nd-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: grid;
    place-items: center;
    transition: var(--nd-transition);
}

.nd-action-btn:hover {
    background: var(--nd-primary);
    transform: scale(1.1);
}

.nd-search {
    background: var(--nd-card-bg);
    border: 1px solid var(--nd-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--nd-text-main);
    margin-bottom: 16px;
    width: 100%;
}

.nd-empty-state {
    text-align: center;
    padding: 40px;
    color: var(--nd-text-dim);
    border: 2px dashed var(--nd-border);
    border-radius: var(--nd-radius);
    margin: 20px;
}

/* Modern container for the member search page */
.member-search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Title styling */
.member-search-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

/* Search input field */
.member-search-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.member-search-input:focus {
    border-color: #4f46e5;
}

/* Loading spinner */
.member-search-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Error message */
.member-search-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 12px;
}

/* Member list container */
.member-list {
    margin-top: 16px;
}

/* Individual member card */
.member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Member username */
.member-username {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Member ID */
.member-id {
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    transition: color 0.2s ease;
}

.member-id:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Icon styling */
.member-icon {
    width: 24px;
    height: 24px;
    color: #4a5568;
}

/* Modern loading page container */
.modern-loading-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    font-family: 'Inter', sans-serif;
}

/* Floating glass card for loading content */
.glass-loading-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    backdrop-filter: blur(10px); /* Frosted glass effect */
}

/* Smooth spinner animation */
.smooth-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading text */
.loading-text {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Error message styling */
.error-message {
    color: #ff6b6b;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.8);
}

.description-text {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1px;
}

/* Dark grey background with floating glass cubes */
.cube-moving-bg {
    position: absolute;
    inset: 0;
    background-color: #1a1a1a; /* Dark grey base color */
    overflow: hidden;
    z-index: -1; /* Ensure it stays behind the loading card */
}

/* Floating glass cubes */
.cube-moving-bg div {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1); /* Light glass grey */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px); /* Glass effect */
    animation: floatCubes 10s linear infinite;
}

/* Define positions and animation delays for each cube */
.cube-moving-bg div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.cube-moving-bg div:nth-child(2) {
    top: 20%;
    left: 70%;
    animation-delay: -1s;
}

.cube-moving-bg div:nth-child(3) {
    top: 50%;
    left: 30%;
    animation-delay: -3s;
}

.cube-moving-bg div:nth-child(4) {
    top: 70%;
    left: 80%;
    animation-delay: -5s;
}

.cube-moving-bg div:nth-child(5) {
    top: 90%;
    left: 20%;
    animation-delay: -7s;
}

.cube-moving-bg div:nth-child(6) {
    top: 40%;
    left: 60%;
    animation-delay: -9s;
}

@keyframes floatCubes {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(100px, 0) rotate(180deg);
    }
    75% {
        transform: translate(50px, 50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* CSS for Updates Screen */
.update-content-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
  
  .update-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    animation: gradient-pulse 12s ease infinite;
  }
  
  .update-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    text-align: center;
  }
  
  .update-status {
    margin-bottom: 2rem;
    color: #e6f1ff;
  }
  
  .update-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border: 4px solid rgba(230, 241, 255, 0.1);
    border-top-color: #64ffda;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
  }
  
  .progress-track {
    height: 4px;
    background: rgba(100, 255, 218, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 2rem 0;
  }
  
  .progress-bar {
    height: 100%;
    width: 45%;
    background: #64ffda;
    animation: progress-slide 2.5s ease-in-out infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  @keyframes gradient-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(2deg); }
  }
  
  @keyframes progress-slide {
    0%, 100% { transform: translateX(-25%); }
    50% { transform: translateX(125%); }
  }
  

  /* SECTION CONTAINERS */
  
  .welcome-ac {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f172a;
    position: relative;
    padding: 2rem;
}
  .mQFu4Da {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    overflow: hidden;
  }

  /* SECTION CONTENT GLASS BOXES */
  
  .p5AcQYm {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}



.under-attack-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    font-family: 'Segoe UI', system-ui, sans-serif;
    padding: 2rem;
}

.ua-content {
    max-width: 680px;
    margin: auto;
    text-align: center;
    position: relative;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.ua-status-indicator {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.ua-alert-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ff4757);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.ua-alert-text {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

.ua-alert-subtext {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-top: 1.5rem;
}

.ua-logo {
    width: 80px;
    height: 80px;
    animation: logoSpin 3s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.4));
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ua-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem auto;
    width: 60%;
    border-radius: 3px;
    overflow: hidden;
}

.ua-progress-bar {
    height: 100%;
    background: #ff4757;
    width: 45%;
    animation: progressSlide 2s ease-in-out infinite;
}

@keyframes progressSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}



/* Channel Button Styles */
.ch-btn {
    display: flex;
    align-items: center;
    height: 34px;
    background-color: #1a1a1a; /* Dark gray base */
    color: #b9bbbe;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0 8px;
    margin: 2px 0 2px 10px;
    width: calc(100% - 4px);
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
    font-size: 15px;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ch-btn:hover {
    background-color: #36393f; /* Slightly lighter on hover */
    color: #dcddde;
}

.ch-btn--active {
    background-color: rgba(255, 255, 255, 0.1); 
    color: #ffffff !important;
    border-color: #7289da;
}

.ch-btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0.85);
}

/* Keep other styles the same but adjust colors */
.ch-btn-unread {
    background: #dcddde;
    box-shadow: 0 0 0 2px #2f3136; /* Add outline for visibility */
}

.ch-btn-mentions {
    background: #ed4245;
    color: white;
}

/* Modern Onboarding Styles */
.nexus-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #0f172a, #020617);
    z-index: -1;
}

.nexus-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.nexus-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.nexus-content {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.nexus-header {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ff88, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2rem;
    text-align: center;
}

.nexus-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nexus-input {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nexus-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.nexus-button {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nexus-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.nexus-error {
    background: #ff4757;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: error-pulse 0.8s ease;
}

@keyframes error-pulse {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.nexus-subtext {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.nexus-ai-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 70vh;
  }
  
  .chat-header {
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .nexus-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  
  .nexus-title {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
  }
  
  .chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #0f0f0f;
  }
  
  .message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 12px;
    max-width: 70%;
    animation: messageAppear 0.3s ease-out;
  }
  
  .message.user {
    background: #2b5278;
    margin-left: auto;
  }
  
  .message.ai {
    background: #2d2d2d;
    margin-right: auto;
  }
  
  .message-content {
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .message-timestamp {
    color: #888;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-align: right;
  }
  
  .chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 0 0 12px 12px;
  }
  
  .chat-input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    resize: none;
    min-height: 50px;
    max-height: 150px;
  }
  
  .send-button {
    padding: 0.8rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .send-button:hover {
    background: #2563eb;
  }
  
  .typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    animation: typing 1.4s infinite ease-in-out;
  }
  
  .dot:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .dot:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes messageAppear {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); }
    40% { transform: scale(1); }
  }

  .notification-center {
    width: 420px;
    background: rgba(32, 33, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  .notification-item.unread {
    background: rgba(66, 133, 244, 0.1);
    border-left: 3px solid #4285f4;
  }
  
  .notification-item.follow {
    border-color: #34a853;
  }
  
  .notification-item.mention {
    border-color: #fbbc05;
  }
  
  .loading-spinner {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .error-alert {
    padding: 1rem;
    background: rgba(234, 67, 53, 0.1);
    border-radius: 8px;
    color: #ea4335;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .retry-button {
    background: rgba(234, 67, 53, 0.2);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
  }
  
  .message-preview {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-style: italic;
  }

/* Modern Account Settings */
.account-settings-container {
  display: flex;
  min-height: 100vh;
  background: #0f0f0f;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.account-settings-container.slide-in {
  transform: translateY(0); /* Slide into view */
}

.account-settings-container.slide-out {
  transform: translateY(100%); /* Slide out of view */
}
  /* Mobile Hamburger Menu */
  .mobile-menu-button {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 12px !important;
    border-radius: 8px !important;
  }
  
  .hamburger-icon {
    width: 24px;
    height: 2px;
    background: #ffffff;
    position: relative;
  }
  
  .hamburger-icon::before,
  .hamburger-icon::after {
    content: '';
    width: 24px;
    height: 2px;
    background: #ffffff;
    position: absolute;
    left: 0;
  }
  
  .hamburger-icon::before {
    top: -6px;
  }
  
  .hamburger-icon::after {
    top: 6px;
  }
  
  /* Sidebar */
  .sidebar {
    width: 280px;
    background: #1a1a1a;
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .sidebar-avatar {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
  }
  
  .sidebar-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .sidebar-username {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
  }
  
  .sidebar-user-id {
    display: flex;
    gap: 3px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .id-label {
    font-weight: 500;
  }
  
  .id-value {
    font-family: monospace;
  }
  
  .sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .sidebar-item {
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    transition: background 0.2s ease;
  }
  
  .sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .sidebar-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
  
  /* Main Content */
  .main-content {
    flex: 1;
    padding: 32px;
  }
  
  .settings-section {
    margin-bottom: 48px;
  }
  
  .section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
  }
  
  .settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }
  
  .settings-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
  }
  
  .settings-card:hover {
    transform: translateY(-4px);
  }
  
  .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
  }
  
  .card-value {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
  }
  
  .card-action {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: background 0.2s ease !important;
  }
  
  .card-action:hover {
    background: rgba(255, 255, 255, 0.2) !important;
  }
  
  /* Danger Zone */
  .danger-zone {
    background: rgba(255, 76, 76, 0.1);
    border: 1px solid rgba(255, 76, 76, 0.2);
    border-radius: 12px;
    padding: 24px;
  }
  
  .danger-title {
    color: #ff4c4c;
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .danger-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .danger-button {
    background: linear-gradient(45deg, #ff4c4c, #c53030) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
  }
  
  /* Centered Modal */
  .edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .edit-modal-content {
    background: #1a1a1a;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .modal-title {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 24px;
  }
  
  .modal-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.2s ease;
  }
  
  .modal-input:focus {
    outline: none;
    border-color: #00b4d8;
    box-shadow: 0 0 0 2px rgba(0,180,216,0.1);
  }
  
  .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
  }
  
  .modal-cancel {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }
  
  .modal-confirm {
    background: linear-gradient(45deg, #00b4d8, #0077b6) !important;
    color: white !important;
  }
  
  .modal-error {
    color: #ff4c4c;
    font-size: 14px;
    margin: -8px 0 16px;
  }
  
  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    .mobile-menu-button {
      display: block;
    }
  
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      transform: translateX(-100%);
      z-index: 1000;
    }
  
    .sidebar.open {
      transform: translateX(0);
    }
  
    .main-content {
      padding: 16px;
    }
  
    .settings-grid {
      grid-template-columns: 1fr;
    }
  
    .settings-card {
      padding: 16px;
    }
  
    .section-title {
      font-size: 20px;
    }
  
    .card-title {
      font-size: 14px;
    }
  
    .card-value {
      font-size: 16px;
    }
  
    .danger-zone {
      padding: 16px;
    }
  
    .danger-title {
      font-size: 18px;
    }
  
    .danger-description {
      font-size: 12px;
    }
  }

  /* Privacy & Security Page */
.privacy-section {
    margin-bottom: 48px;
  }
  
  .privacy-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    transition: transform 0.2s ease;
  }
  
  .privacy-card:hover {
    transform: translateY(-4px);
  }
  
  .card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .devices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
  }
  
  .device-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .device-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
  }
  
  .device-location {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .device-action {
    background: rgba(255, 76, 76, 0.1) !important;
    color: #ff4c4c !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: background 0.2s ease !important;
  }
  
  .device-action:hover {
    background: rgba(255, 76, 76, 0.2) !important;
  }

  /* Logged-In Sessions Section */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
  }
  
  .session-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .session-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
  }
  
  .session-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .session-action {
    background: rgba(255, 76, 76, 0.1) !important;
    color: #ff4c4c !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: background 0.2s ease !important;
  }
  
  .session-action:hover {
    background: rgba(255, 76, 76, 0.2) !important;
  }
  
  .loading-spinner {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    padding: 16px;
  }
  
  .no-sessions {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    padding: 16px;
  }

  /* General Styles */
.billing-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  
  /* Billing Card Styles */
  .billing-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
  }
  
  
  /* Saved Cards Section */
  
  .card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  .card-info {
    display: flex;
    gap: 10px;
  }
  
  .card-brand {
    font-weight: bold;
    color: #333;
  }
  
  .card-last4 {
    color: #666;
  }
  
  .card-action {
    cursor: pointer;
    color: #ff4d4f;
  }
  
  .add-card-button {
    margin-top: 10px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .add-card-button:hover {
    background-color: #40a9ff;
  }
  
  /* Subscriptions Section */
  .subscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .subscription-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  .subscription-info {
    display: flex;
    gap: 10px;
  }
  
  .subscription-name {
    font-weight: bold;
    color: #333;
  }
  
  .subscription-status {
    color: #666;
  }
  
  .subscription-action {
    cursor: pointer;
    color: #ff4d4f;
  }
  
  /* Transaction History Section */
  .transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  .transaction-info {
    display: flex;
    gap: 10px;
  }
  
  .transaction-date {
    color: #666;
  }
  
  .transaction-amount {
    font-weight: bold;
    color: #333;
  }
  
  .transaction-description {
    color: #666;
  }
  
  /* No Items Styles */
  .no-cards,
  .no-subscriptions,
  .no-transactions {
    text-align: center;
    color: #999;
    padding: 20px;
  }

  /* Profile Section Styles */
.profile-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .profile-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .profile-picture-container,
  .profile-background-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .profile-picture,
  .profile-background {
    border-radius: 8px;
  }
  
  .profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
  }
  
  .profile-background-wrapper {
    position: relative;
    cursor: pointer;
}

  .profile-background {
    width: 1000px;
    height: 200px;
    object-fit: cover;
  }

  .profile-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}
  

.profile-background-wrapper:hover .profile-background-overlay {
  opacity: 1;
}

  .upload-button.disabled {
    background-color: #6366f1; /* Grey background */
    cursor: not-allowed; /* Change cursor to "not allowed" */
    opacity: 0.7; /* Reduce opacity to indicate it's disabled */
  }
  
  .upload-button:not(.disabled) {
    background-color: #6366f1; /* Normal button color */
    cursor: pointer; /* Change cursor to pointer */
    opacity: 1; /* Full opacity */
  }

  upload-button:hover {
    background: #4f46e5;
}
  
  .online-status-container {
    display: flex;
  }
  
  .custom-dropdown {
    position: relative;
    width: 10%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    background-color: white;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-dot {
    font-size: 20px;
    margin-right: 8px;
}

.status-dot.online {
    color: green;
}

.status-dot.away {
    color: red;
}

.status-dot.offline {
    color: grey;
}

.selected-text {
    flex-grow: 1;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 4px;
    z-index: 10;
}

.dropdown-option {
    padding: 8px;
    display: flex;
    align-items: center;
}

.dropdown-option:hover {
    background-color: #f0f0f0;
}
  
  .bio-input {
    width: 100%;
    height: 100px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    resize: vertical;
  }
  
  .save-button {
    margin-top: 10px;
  }

  /* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  /* Popup Content */
  .popup-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .popup-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  .input-group {
    margin-bottom: 15px;
  }
  
  .input-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
  }
  
  .card-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
  }
  
  .popup-error {
    color: #ff4d4f;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  .popup-cancel,
  .popup-save {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .popup-cancel {
    background: #f5f5f5;
    color: #333;
  }
  
  .popup-save {
    background: #1890ff;
    color: #fff;
  }
  
  .popup-save:hover {
    background: #40a9ff;
  }

  .sidebar-item.logout-button {
    color: #ff4d4d; /* Red color for logout */
    margin-top: 20px; /* Add some space above the logout button */
  }
  
  .sidebar-item.logout-button:hover {
    background-color: #ff4d4d;
    color: white;
  }

  .escape-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000; /* Ensure it's above other content */
  }
  
  .escape-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Makes it circular */
    background-color: #ff4d4d; /* Red background */
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
    transition: background-color 0.3s ease;
  }
  
  .escape-button:hover {
    background-color: #e60000; /* Darker red on hover */
  }
  
  .x-icon {
    font-size: 20px;
    font-weight: bold;
  }
  
  .esc-text {
    font-size: 12px;
    margin-top: 2px;
  }

  .profile-picture-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
  }
  
  .profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .profile-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .profile-picture-wrapper:hover .profile-picture-overlay {
    opacity: 1;
  }
  
  .pencil-icon {
    color: white;
    font-size: 24px;
  }
  
  .custom-status-container {
    margin-top: 16px;
}

.custom-status-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
}

.save-button {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border-radius: 4px;
    background-color: #6366f1;
    border: none;
    cursor: pointer;
}

.save-button:hover {
    background-color: #4f46e5;
}

.center-line-spacer {
  width: 100%;
  height: 2px;
  margin-top: .75rem;
  margin-bottom: .75rem
}

.friends-container {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.friends-category {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 15px;
}

.friend-item {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  border: 2px solid #4CAF50;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: auto;
}

.status-online { background: #4CAF50; }
.status-offline { background: #666; }
.status-pending { background: #FFC107; }

.request-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.request-accept-btn {
  background: #4CAF50;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.request-cancel-btn {
  background: #f44336;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* Add these new styles */
.status-blocked { 
  background: #f44336; 
}

.request-unblock-btn {
  background: #ff5722;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.request-unblock-btn:hover {
  opacity: 0.8;
}

/* User Posts Section */
.user-posts-section {
  margin: .75rem;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.posts-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.posts-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 60vh;
  overflow-y: auto;
}

.post-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
}

.post-item:hover {
  background: var(--background-tertiary);
}

.post-content {
  color: var(--text-normal);
  font-size: 0.9375rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.post-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.post-likes,
.post-reposts {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.post-likes:hover {
  color: var(--accent-red);
}

.post-reposts:hover {
  color: var(--accent-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .posts-container {
    max-height: 50vh;
  }
  
  .post-item {
    padding: 0.75rem;
  }
}

.post-likes, 
.post-reposts {
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.post-likes:hover:not(.updating),
.post-reposts:hover:not(.updating) {
  background: var(--background-modifier-hover);
}

.post-likes.liked {
  color: var(--accent-red);
}

.post-reposts.reposted {
  color: var(--accent-green);
}

.updating {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.reaction-button {
  cursor: pointer;
  background: var(--background-modifier-accent);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 4px 12px;
  margin: 6px 6px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 18px;
  min-width: 60px;
  min-height: 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.reaction-button:hover:not(.updating) {
  background: var(--background-modifier-selected);
  transform: translateY(-0.5px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reaction-active {
  background: var(--brand-experiment-15a) !important;
  border-color: var(--brand-experiment-30a) !important;
  color: var(--brand-experiment) !important;
  transform: scale(1.02);
}

.reaction-liked.reaction-active {
  background: var(--red-primary-15a) !important;
  border-color: var(--red-primary-30a) !important;
  color: var(--red-primary) !important;
}

.reaction-reposted.reaction-active {
  background: var(--green-primary-15a) !important;
  border-color: var(--green-primary-30a) !important;
  color: var(--green-primary) !important;
}

.reaction-emoji {
  font-size: 16px;
  transition: transform 0.1s ease;
}

.reaction-button:hover .reaction-emoji {
  transform: scale(1.1);
}

.reaction-count {
  font-weight: 600;
  letter-spacing: 0.25px;
}

.loading-spinner {
  width: 14px;
  height: 14px;
  border-width: 2.5px;
  margin-left: 6px;
}

/* Animation timing */
.reaction-button {
  transition: 
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}


/* Profile Top Container */
.pr-top-container {
  position: relative;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Background Overlay */
.pr-bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* Content Wrapper */
.pr-content-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  z-index: 10;
}

/* Profile Avatar */
.pr-avatar-module {
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 96px;
  height: 96px;
  object-fit: cover;
}

/* Profile Details Container */
.pr-details-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Username */
.pr-username {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

/* Follow Stats Container */
.pr-stats-container {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

/* Follow Stat Item */
.pr-stat-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  font-weight: 600;
}

/* Relationship Container */
.pr-relationship-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

/* Relationship Status Text */
.pr-status-text {
  font-size: 14px;
  font-weight: 500;
  color: #86efac; /* Green for positive status */
}

/* Follow Button */
.pr-follow-btn {
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #3b82f6; /* Blue for follow */
  color: #fff;
}

.pr-follow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: #2563eb; /* Darker blue on hover */
}

/* Following State */
.pr-follow-btn.pr-following-state {
  background-color: #4b5563; /* Gray for following */
  color: #f3f4f6;
}

.pr-follow-btn.pr-following-state:hover {
  background-color: #374151; /* Darker gray on hover */
}

/* Actions Container */
.pr-actions-container {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .pr-content-wrapper {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .pr-stats-container {
      justify-content: center;
  }

  .pr-relationship-container {
      align-items: center;
  }

  .pr-avatar-module {
      width: 80px;
      height: 80px;
  }

  .pr-username {
      font-size: 20px;
  }
}

.pr-follow-btn.pr-blocked-state {
  background-color: #ef4444; /* Red for blocked */
  color: #fff;
}

.pr-follow-btn.pr-blocked-state:hover {
  background-color: #dc2626; /* Darker red on hover */
}

/* Follow Button States */
.pr-follow-btn {
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #3b82f6; /* Blue for follow */
  color: #fff;
}

.pr-follow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: #2563eb; /* Darker blue on hover */
}

.pr-follow-btn.pr-following-state {
  background-color: #4b5563; /* Gray for following */
  color: #f3f4f6;
}

.pr-follow-btn.pr-following-state:hover {
  background-color: #374151; /* Darker gray on hover */
}

.pr-send-message-button {
  background-color: #3b82f6; /* Blue for send message */
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pr-send-message-button:hover {
  background-color: #2563eb; /* Darker blue on hover */
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Context Menu Button */
.pr-context-menu-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.pr-context-menu-button:hover {
  opacity: 1;
}

/* Context Menu */
.pr-context-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #2d3748;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  z-index: 100;
  min-width: 120px;
}

.pr-context-menu-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pr-context-menu-item:hover {
  background: #4a5568;
}

.pr-report-item {
  color: #ef4444; /* Red for report */
}

/* Create Post Button */
.create-post-button {
  background-color: #3b82f6; /* Blue */
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  margin-bottom: .75rem;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.create-post-button:hover {
  background-color: #2563eb; /* Darker blue on hover */
}

/* Create Post Popup */
.create-post-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.close-button:hover {
  color: #333;
}

.post-content-input {
  width: 100%;
  height: 120px;
  padding: 12px;
  border: 0px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 16px;
  resize: none;
}

.post-content-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

.attachments-preview {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.attachment-item {
  position: relative;
  width: 100%;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attachment-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.attachment-buttons input[type="file"] {
  display: none; /* Hide the default file input */
}

.attachment-buttons label {
  background-color: #3b82f6;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.attachment-buttons label:hover {
  background-color: #2563eb;
}

.gif-picker-button {
  background-color: #10b981; /* Green */
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.gif-picker-button:hover {
  background-color: #059669; /* Darker green on hover */
}

.submit-post-button {
  background-color: #6366f1;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  transition: background-color 0.2s ease;
}

.submit-post-button:hover {
  background-color: #4f46e5;
}

/* GIF Picker Popup */
.gif-picker-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.gif-picker-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gif-search-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 16px;
}

.gif-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.gif-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.gif-result-item {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gif-result-item:hover {
  transform: scale(1.05);
}
/* Server Icon Container */
.server-icon-container {
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background-color: var(--base-100);
  font-size: 1.125rem;
  position: relative;
}

.no-bg {
  background-color: transparent;
}

/* Server Icon Image */
.server-icon-img {
  position: absolute;
  inset: 0;
  transition: all 0.2s ease;
}

.selected-icon {
  transform: scale(1);
  opacity: 0.8;
}

.default-icon {
  transform: scale(0.9);
  opacity: 0.4;
}

/* Custom Server Icon */
.server-icon-custom {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.server-icon-custom.selected-icon {
  transform: scale(1.05);
}

.server-icon-custom.default-icon {
  transform: scale(1);
}

/* Fallback Server Icon */
.server-icon-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 10;
  position: relative;
}

/* Server Indicator */
.server-indicator {
  position: absolute;
  left: -12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background-color: white;
  transition: all 0.2s ease;
  z-index: 10;
}

.active-indicator {
  top: 6px;
  bottom: 6px;
  opacity: 1;
}

.inactive-indicator {
  opacity: 0;
}

/* Server Notification */
.server-notification {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.mention-notification {
  background-color: var(--error);
  color: white;
}

.unread-notification {
  background-color: white;
}

/* Server Name */
.server-name {
  font-size: 1rem;
  font-weight: bold;
}

/* Container for the server sidebar */
.server-sidebar {
  width: 72px; /* Fixed width for the sidebar */
  height: 100vh; /* Full height of the viewport */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto; /* Enable vertical scrolling */
  padding-top: 12px; /* Add some padding at the top */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.server-sidebar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge, and Firefox */
.server-sidebar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Individual server icons */
.server-icon {
  width: 48px; /* Fixed width for server icons */
  height: 48px; /* Fixed height for server icons */
  border-radius: 50%; /* Circular icons */
  background-color: #36393f; /* Slightly lighter background for icons */
  margin-bottom: 8px; /* Space between icons */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* White text color */
  font-size: 16px; /* Icon text size */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.2s ease, border-radius 0.2s ease; /* Smooth transition */
}

/* Hover effect for server icons */
.server-icon:hover {
  background-color: #6366f1; /* Discord's brand color */
}

/* Active server icon */
.server-icon.active {
  background-color: #6366f1; /* Discord's brand color */
}

/* Add server icon (plus icon) */
.add-server-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #36393f;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3ba55d; /* Green color for the plus icon */
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover effect for add server icon */
.add-server-icon:hover {
  background-color: #3ba55d; /* Green background on hover */
  color: #ffffff; /* White color on hover */
}

/* Channel List Container */
.channel-list {
  width: 240px;
  background-color: #2f3136;
  padding: 10px;
  overflow-y: auto;
  height: 100vh;
  box-sizing: border-box;
}

/* Channel Button */
.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;
}

/* Hover Effect for Channel Button */
.channel-button:hover {
  background-color: #313131;
}

/* Selected Channel Button */
.channel-selected {
  background-color: #40444b;
  color: #ffffff;
}

/* Channel Icon */
.channel-icon {
  margin-right: 8px;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Channel Name */
.channel-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Unread Indicator */
.unread-indicator {
  width: 8px;
  height: 8px;
  background-color: #7289da;
  border-radius: 50%;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s;
}

/* Show Unread Indicator */
.channel-button.unread .unread-indicator {
  opacity: 1;
}

/* Muted Channel */
.channel-button.muted {
  opacity: 0.5;
}

/* Muted Channel Hover */
.channel-button.muted:hover {
  opacity: 0.7;
}

/* Top Bar Container */
.chat-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #36393f;
  padding: 10px 16px;
  border-bottom: 1px solid #2f3136;
  height: 48px;
  box-sizing: border-box;
}

/* Channel Info Section */
.channel-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Channel Name */
.channel-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

/* Channel Name Hashtag */
.channel-name::before {
  content: "#";
  margin-right: 4px;
  color: #72767d;
}

/* Channel Description (Optional) */
.channel-description {
  font-size: 12px;
  color: #72767d;
  margin-left: 8px;
}

/* Icons (e.g., Pin, Members, Search) */
.chat-top-bar .icon {
  width: 20px;
  height: 20px;
  fill: #b9bbbe;
  cursor: pointer;
  transition: fill 0.2s;
}

.chat-top-bar .icon:hover {
  fill: #ffffff;
}

/* Container for the chat input box */
.chat-input-container {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #36393f; /* Discord-like dark background */
  border-top: 1px solid #2f3136; /* Slight border to separate from chat */
  position: fixed;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

/* The actual input field */
.chat-input {
  flex-grow: 1;
  padding: 12px 16px;
  font-size: 14px;
  color: #dcddde; /* Light text color for contrast */
  background-color: #40444b; /* Slightly lighter than the container */
  border: none;
  border-radius: 8px;
  outline: none;
  margin-right: 10px;
  transition: background-color 0.2s ease;
}

/* Placeholder text styling */
.chat-input::placeholder {
  color: #72767d; /* Discord-like placeholder color */
}

/* Input field focus state */
.chat-input:focus {
  background-color: #484c52; /* Slightly lighter when focused */
}

/* Send button styling */
.send-button {
  padding: 12px 20px;
  font-size: 14px;
  color: #fff;
  background-color: #7289da; /* Discord's brand color */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Send button hover state */
.send-button:hover {
  background-color: #677bc4; /* Slightly darker on hover */
}

/* Send button active state */
.send-button:active {
  background-color: #5b6eae; /* Even darker when clicked */
}

/* Server Member Sidebar CSS */
.member-sidebar {
  width: 240px;
  height: 100vh;
  background-color: #2f3136;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 10px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.member-sidebar-header {
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
  border-bottom: 1px solid #40444b;
  margin-bottom: 10px;
}

.member-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-item {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.member-item:hover {
  background-color: #40444b;
  cursor: pointer;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.member-name {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.member-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: auto;
}

.member-status.online {
  background-color: #43b581;
}

.member-status.offline {
  background-color: #747f8d;
}

.member-status.idle {
  background-color: #faa61a;
}

.member-status.dnd {
  background-color: #f04747;
}

/* Scrollbar styling */
.member-sidebar::-webkit-scrollbar {
  width: 6px;
}

.member-sidebar::-webkit-scrollbar-track {
  background: #2f3136;
}

.member-sidebar::-webkit-scrollbar-thumb {
  background: #202225;
  border-radius: 3px;
}

.member-sidebar::-webkit-scrollbar-thumb:hover {
  background: #40444b;
}

/* Server Header Container */
.server-header-container {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.server-header-container:hover {
  background-color: #1a1a1a;
}

/* Server Name Text */
.server-name-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

/* Dropdown Arrow Icon */
.dropdown-arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

/* Server Modal Overlay */
.server-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

/* Visible State for Modal */
.modal-visible {
  opacity: 1;
  visibility: visible;
}

/* Server Modal Content */
.server-modal-content {
  background-color: #2f3136;
  border-radius: 8px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Server Modal Image */
.server-modal-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
}

/* Server Modal Name */
.server-modal-name {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Server Modal Description */
.server-modal-description {
  color: #b9bbbe;
  font-size: 14px;
  margin-bottom: 24px;
}

/* Report Server Button */
.report-server-button {
  background-color: #f04747;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  max-width: 200px;
  transition: background-color 0.2s ease;
}

.report-server-button:hover {
  background-color: #d84040;
}

/* Close Button */
.close-modal-button {
  background-color: #4f545c;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 16px;
  width: 100%;
  max-width: 200px;
  transition: background-color 0.2s ease;
}

.close-modal-button:hover {
  background-color: #36393f;
}

/* Hidden Original Button */
.hidden-original-button {
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .server-modal-content {
      padding: 16px;
      width: 95%;
  }

  .server-modal-name {
      font-size: 18px;
  }

  .server-modal-description {
      font-size: 13px;
  }

  .report-server-button,
  .close-modal-button {
      width: 100%;
      max-width: none;
  }
}

.fullscreen-channel-settings {
  width: 100%;
  height: 100vh;
  background-color: #2f3136;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
}

.settings-header {
  display: flex;
  padding: 16px;
  background-color: #202225;
  border-bottom: 1px solid #40444b;
}

.header-button {
  padding: 10px 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.header-button.active {
  background-color: #5865f2;
  border-radius: 4px;
}

.header-button:hover:not(.active) {
  background-color: #4f545c;
}

.settings-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.overview-section,
.permissions-section {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #40444b;
  border-radius: 4px;
  background-color: #36393f;
  color: #ffffff;
  font-size: 14px;
}

.save-button {
  padding: 10px 20px;
  background-color: #5865f2;
  border: none;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.save-button:disabled {
  background-color: #4e5d94;
  cursor: not-allowed;
}

.save-button:hover:not(:disabled) {
  background-color: #4752c4;
}

.error-message {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 10px;
}

.role-permission-group {
  margin-bottom: 20px;
}

.role-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.permission-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.date-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  position: relative;
  color: #ffffff; /* White text color */
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.date-separator::before,
.date-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2); /* Subtle line color */
  margin: 0 10px;
}

.date-separator span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1); /* Slight background for the date */
  border-radius: 12px;
  backdrop-filter: blur(5px); /* Adds a subtle blur effect */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Light border */
}

/* Footer styling */
.chat-footer {
  background-color: #2f3136; /* Discord-like dark theme */
  border-top: 1px solid #202225;
  padding: 10px;
}

/* Container for the input area */
.chat-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  max-width: 100%; /* Ensure it doesn't overflow on small screens */
}

/* File upload button */
.chat-upload-btn {
  background-color: #40444b;
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Prevent the button from shrinking */
}

.chat-upload-btn:hover {
  background-color: #4f46e5; /* Discord's brand color */
}

/* Hide the default file input */
.chat-file-input {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

/* Textarea styling */
.chat-textarea {
  background-color: #40444b;
  border: 1px solid #202225;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  left: 0;
  top: 0;
  resize: none;
  padding-left: .75rem;
  padding-right: .75rem;
  padding-top: 6px;
  padding-bottom: 6px;
  position: absolute
}

.chat-textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(114, 137, 218, 0.3);
}

/* Placeholder styling */
.chat-textarea::placeholder {
  color: #72767d;
}

/* Form styling to take up remaining space */
.chat-form {
  flex-grow: 1;
  display: flex;
}
/* Container for the chat header */
.chat-header {
  padding: 16px;
  border-bottom: 0px solid #36393f;
  background-color: #2f3136;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Style for the channel name */
.channel-name {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* Style for the introductory text */
.intro-text {
  font-size: 14px;
  font-weight: 400;
  color: #b9bbbe;
  margin: 0;
}

/* Optional: Add a subtle hover effect on the channel name */
.channel-name:hover {
  color: #7289da;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

/* Modern Chat System - Dark-Friendly */
.modern-message {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin-bottom: 4px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
  position: relative;
}

.modern-message:hover {
  background: var(--modern-msg-bg-hover);
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.15);
}

.modern-message--highlighted {
  background: var(--modern-msg-bg-focus);
  box-shadow: 0 0 0 2px var(--modern-msg-outline-focus);
  animation: modern-highlight 1.5s ease;
}

.modern-message--pending {
  opacity: 0.6;
}

@keyframes modern-highlight {
  0% { background: var(--modern-msg-bg-highlight); }
  100% { background: var(--modern-msg-bg); }
}

.modern-message__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 60px;
}

.modern-message__avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--modern-avatar-border);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.modern-message__avatar:hover {
  transform: scale(1.05);
}

.modern-message__time {
  font-size: 11px;
  color: var(--modern-text-time);
  opacity: 0;
  transition: opacity 0.2s ease;
  padding-top: 3px;
}

.modern-message:hover .modern-message__time {
  opacity: 1;
}

.modern-message__content {
  flex: 1;
  min-width: 0;
}

.modern-message__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.modern-message__author {
  font-weight: 600;
  font-size: 15px;
  color: var(--modern-text-author);
  cursor: pointer;
}

.modern-message__timestamp {
  font-size: 11px;
  color: var(--modern-text-timestamp);
  font-weight: 500;
}

.modern-message__edited {
  font-size: 11px;
  color: var(--modern-text-edited);
  font-style: italic;
}

.modern-message__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--modern-text-primary);
  word-break: break-word;
}

.modern-message__embed {
  position: relative;
  margin-top: 8px;
  max-width: 480px;
}

.modern-message__embed-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--modern-embed-remove-bg) !important;
}

.modern-message__reactions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.modern-message__actions {
  display: none;
  position: absolute;
  top: 12px;
  right: 16px;
  background: var(--modern-actions-bg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 4px;
  z-index: 1;
}

.modern-message:hover .modern-message__actions {
  display: flex;
}

/* Reply Indicator */
.modern-reply-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--modern-text-reply);
  font-size: 13px;
  padding: 4px 0;
  margin-bottom: 6px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
}

.modern-reply-indicator__line {
  border-left: 2px solid var(--modern-reply-line);
  border-top: 2px solid var(--modern-reply-line);
  border-top-left-radius: 6px;
  height: 16px;
}

.modern-reply-indicator__avatar {
  flex-shrink: 0;
}

.modern-reply-indicator__preview {
  font-size: 13px;
  color: var(--modern-text-reply-preview);
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Divider */
.modern-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.modern-divider__line {
  flex: 1;
  height: 1px;
  background: var(--modern-divider-line);
}

.modern-divider__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--modern-divider-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Date Separator */
.modern-date-separator {
  position: relative;
  margin: 24px 0;
  text-align: center;
}

.modern-date-separator__line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--modern-date-line);
  transform: translateY(-50%);
  z-index: -1;
}

.modern-date-separator__label {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--modern-date-text);
  background: var(--modern-date-bg);
  border-radius: 999px;
}

/* Channel Header */
.modern-channel-header {
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 18px;
}

.modern-channel-header__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.modern-channel-header__icon {
  font-size: 24px;
  color: var(--modern-header-icon);
}

.modern-channel-header__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--modern-header-title);
}

.modern-channel-header__description {
  font-size: 15px;
  color: var(--modern-header-description);
  line-height: 1.5;
}

/* Server Invite */
.modern-server-icon {
  flex-shrink: 0;
}

.modern-server-description {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--modern-text-secondary);
  line-height: 1.4;
}

.modern-track-icon {
  flex-shrink: 0;
}

.modern-track-description {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--modern-text-secondary);
  line-height: 1.4;
}

.modern-view-button {
  background: var(--modern-button-bg);
  color: var(--modern-button-text);
  transition: background 0.2s ease;
}

.modern-view-button:hover {
  background: var(--modern-button-bg-hover);
}

/* Spinner */
.modern-spinner {
  animation: modern-spin 1s linear infinite;
}

@keyframes modern-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

:root {
  /* Message */
  --modern-msg-bg: #1e1e2d;
  --modern-msg-bg-hover: #1b1b1b;
  --modern-msg-bg-focus: #1d2a3a;
  --modern-msg-bg-focustest: #252537;
  --modern-msg-bg-highlight: rgba(93, 158, 255, 0.1);
  --modern-msg-outline-focus: #6366f1;
  --modern-avatar-border: #2d2d42;
  --modern-actions-bg: #252537;
  --modern-embed-remove-bg: #252537;
  
  /* Text */
  --modern-text-author: #ffffff;
  --modern-text-timestamp: #a1a1bb;
  --modern-text-edited: #8e8ea8;
  --modern-text-primary: #e0e0e6;
  --modern-text-time: #a1a1bb;
  --modern-text-secondary: #a1a1bb;
  --modern-text-reply: #a1a1bb;
  --modern-text-reply-preview: #b8b8d1;
  --modern-button-text: #ffffff;
  
  /* Reply */
  --modern-reply-line: #3e3e5b;
  
  /* Divider */
  --modern-divider-line: #3e3e5b;
  --modern-divider-text: #5d9eff;
  
  /* Date */
  --modern-date-line: #3e3e5b;
  --modern-date-text: #a1a1bb;
  --modern-date-bg: #252537;
  
  /* Header */
  --modern-header-bg: #1e1e2d;
  --modern-header-gradient: linear-gradient(135deg, #1e1e2d 0%, #252537 100%);
  --modern-header-icon: #5d9eff;
  --modern-header-title: #ffffff;
  --modern-header-description: #a1a1bb;
  
  /* Buttons */
  --modern-button-bg: #5d9eff;
  --modern-button-bg-hover: #388bfd;
}

:root {
  --accent: #6366f1;
  --accent-light: #818cf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

/* Shared Components */
.button {
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

/* Desktop Styles */
.desktop-feature-shop {
  width: min(900px, 90vw);
  max-height: 90vh;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.shop-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.credit-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
}

.credit-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-light);
}

.credit-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.top-up-btn {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.top-up-btn:hover {
  transform: translateY(-1px);
}

.shop-tabs {
  display: flex;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
  position: relative;
  padding: 1rem 0;
  margin-right: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  border: none;
  background: none;
  cursor: pointer;
}

.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.shop-content {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  color: white;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.feature-card.selected {
  outline: 2px solid white;
  outline-offset: 2px;
}

.feature-card.owned {
  opacity: 0.7;
  cursor: default;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: auto;
  z-index: 1;
}

.feature-content {
  z-index: 1;
  margin-top: auto;
}

.feature-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.feature-desc {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0 0 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-price {
  font-weight: 700;
  font-size: 1.25rem;
}

.feature-detail-panel {
  border-radius: 12px;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.feature-detail-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.feature-icon-lg {
  font-size: 2.5rem;
}

.feature-detail-body {
  padding: 1.5rem;
}

.feature-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  border-radius: 8px;
}

.stat-value {
  display: block;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.stat-value.sufficient {
  color: var(--success);
}

.stat-value.insufficient {
  color: var(--warning);
}

.purchase-btn {
  width: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  transition: var(--transition);
}

.purchase-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.purchase-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.packages-view {
  animation: fadeIn 0.3s ease-out;
}

.packages-title {
  font-size: 1.25rem;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.package-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--bg-secondary);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.package-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.package-card.popular {
  border-color: var(--accent);
}

.popular-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.package-credits {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--accent-light);
}

.package-credits .currency {
  font-size: 1rem;
  margin-left: 0.25rem;
  opacity: 0.8;
}

.package-bonus {
  font-size: 0.875rem;
  color: var(--success);
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 1.25rem;
  font-weight: 600;
}

.payment-section {
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.payment-methods {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
}

.payment-method {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  transition: var(--transition);
  border: none;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  margin-top: 1rem;
  border: none;
  border-radius: 8px;
  transition: var(--transition);
}

.checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.checkout-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Mobile Styles */
.mobile-feature-shop {
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.mobile-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-secondary);
  z-index: 10;
  border-bottom: 1px solid var(--glass-border);
}

.mobile-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.mobile-credits {
  background: rgba(99, 102, 241, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  color: var(--accent-light);
}

.back-button {
  padding: 0;
  min-width: auto;
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.mobile-content {
  padding: 1rem;
  padding-bottom: 80px;
  flex: 1;
  overflow-y: auto;
}

.mobile-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mobile-feature-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 12px;
  color: white;
  overflow: hidden;
  min-height: 120px;
}

.mobile-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.owned-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--success);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.mobile-topup-button {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  width: calc(100% - 2rem);
  background: var(--accent);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 5;
  border: none;
  transition: var(--transition);
}

.mobile-topup-button:active {
  transform: scale(0.98);
}

.mobile-packages {
  padding: 0.5rem;
}

.package-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mobile-package-card {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid transparent;
  transition: var(--transition);
}

.mobile-package-card.selected {
  border-color: var(--accent);
}

.mobile-package-card:active {
  transform: scale(0.98);
}

.mobile-payment-section {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.payment-options {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.payment-option {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  transition: var(--transition);
}

.payment-option:active {
  transform: scale(0.98);
}

.mobile-purchase-button {
  width: 100%;
  margin-top: 1rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 1rem;
  border: none;
  transition: var(--transition);
}

.mobile-purchase-button:active:not(:disabled) {
  transform: scale(0.98);
}

.mobile-purchase-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.mobile-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  width: 100%;
  max-width: 400px;
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10)}
}

/* Card Form Styles */
.card-form {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-form .input-container {
  margin-bottom: 1rem;
}

.card-form input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.card-form input:focus {
  outline: none;
  border-color: #646cff;
  box-shadow: 0 0 0 2px rgba(100, 108, 255, 0.2);
}

.card-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Saved Cards Section */
.saved-cards {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.saved-cards h5 {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.saved-card {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.saved-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.saved-card.selected {
  background: rgba(100, 108, 255, 0.15);
  border-color: #646cff;
}

.card-brand {
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
}

.card-number {
  flex-grow: 1;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.card-expiry {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.no-cards {
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* CVV Input */
.cvv-input {
  margin: 1rem 0;
  width: 100%;
  max-width: 200px;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

/* Mobile Specific Styles */
.mobile-saved-cards {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mobile-saved-card {
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-saved-card.selected {
  background: rgba(100, 108, 255, 0.15);
  border-color: #646cff;
}

/* Checkbox Styles */
.checkbox-container {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 0.5rem;
  accent-color: #646cff;
}

.checkbox-container label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .card-form {
    padding: 1rem;
  }
  
  .card-form input {
    padding: 0.65rem;
  }
  
  .saved-card {
    padding: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .card-number {
    margin: 0.25rem 0;
  }
}

.crypto-payment-status {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.time-remaining {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: #646cff;
  font-weight: bold;
}

.payment-status {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.payment-success {
  color: #4caf50;
}

.payment-success h5 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.payment-expired {
  color: #f44336;
}

.payment-expired h5 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

:root {
  --background-primary: #36393f;
  --background-secondary: #2f3136;
  --background-tertiary: #202225;
  --background-accent: #4f545c;
  --text-normal: #dcddde;
  --text-muted: #72767d;
  --interactive-normal: #b9bbbe;
  --interactive-hover: #dcddde;
  --interactive-active: #fff;
  --brand: #5865f2;
  --brand-hover: #4752c4;
  --red: #ed4245;
  --green: #3ba55c;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --border-radius: 4px;
}

.channel-settings-container {
  background-color: var(--background-primary);
  color: var(--text-normal);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.settings-header {
  border-bottom: 1px solid var(--background-tertiary);
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.settings-header h2 {
  margin: 0 0 var(--spacing-md) 0;
  font-size: 20px;
  font-weight: 600;
}

.tab-buttons {
  display: flex;
  gap: var(--spacing-md);
}

.tab-buttons button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: var(--spacing-xs) 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.tab-buttons button:hover {
  color: var(--interactive-hover);
}

.tab-buttons button.active {
  color: var(--interactive-active);
}

.tab-buttons button.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  background-color: var(--background-tertiary);
  border: 1px solid var(--background-accent);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm);
  color: var(--text-normal);
  font-size: 14px;
}

.form-group input:focus {
  border-color: var(--brand);
  outline: none;
}

.form-group small {
  font-size: 12px;
  color: var(--text-muted);
}

.form-actions button {
  background-color: var(--brand);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.form-actions button:hover {
  background-color: var(--brand-hover);
}

.form-actions button:disabled {
  background-color: var(--background-accent);
  cursor: not-allowed;
}

.server-settings-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  color: var(--text-normal);
  max-height: 80vh;
  overflow-y: auto;
}

.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--background-modifier-accent);
  margin-bottom: 1rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.tab-button:hover {
  color: var(--text-normal);
}

.tab-button.active {
  color: var(--text-normal);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-experiment);
}

.server-input, .channel-id-input, .category-input, .role-input {
  width: 100%;
  padding: 0.5rem;
  background: var(--background-secondary);
  border: 1px solid var(--background-modifier-accent);
  border-radius: 3px;
  color: var(--text-normal);
  margin-top: 0.5rem;
}

.server-input:focus, .channel-id-input:focus, .category-input:focus, .role-input:focus {
  border-color: var(--brand-experiment);
  outline: none;
}

.banner-upload {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.banner-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 4px;
  object-fit: contain;
}

.system-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.system-channel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.channels-tab {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.uncategorized-channels, .categories-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.channel-list, .category-channels {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--background-secondary-alt);
  border-radius: 4px;
  min-height: 50px;
}

.channel-item {
  padding: 0.5rem;
  background: var(--background-secondary);
  border-radius: 3px;
  cursor: move;
  user-select: none;
}

.channel-item:hover {
  background: var(--background-modifier-hover);
}

.category-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--background-secondary-alt);
  border-radius: 4px;
}

.category-header, .role-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-name-input, .role-name-input {
  flex-grow: 1;
}

.add-category, .add-role {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.roles-tab {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.roles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.role-item {
  padding: 1rem;
  background: var(--background-secondary-alt);
  border-radius: 4px;
}

.role-color-input {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border-radius: 50%;
  border: 2px solid var(--background-modifier-accent);
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--background-secondary);
  border-radius: 3px;
}

.save-button {
  margin-top: 1.5rem;
  align-self: flex-end;
}