.modern-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'HiJack', sans-serif;
}

.section {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.main-lobi-section {
    background: transparent;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 139, 34, 0.25);
    margin-bottom: 0;
}

.subsection {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.subsection:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.voice-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    min-height: 200px;
}

.voice-channel-card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid rgba(100, 100, 100, 0.8);
    border-radius: 15px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Dereceli - Kırmızı tonları */
.voice-channel-card[data-tip="Dereceli"] {
    border-left: 4px solid rgba(239, 68, 68, 1);
    background: rgba(40, 15, 15, 0.95);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

/* Derecesiz - Mavi tonları */
.voice-channel-card[data-tip="Derecesiz"] {
    border-left: 4px solid rgba(59, 130, 246, 1);
    background: rgba(15, 25, 40, 0.95);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Eğlence - Mor tonları */
.voice-channel-card[data-tip="Eğlence"] {
    border-left: 4px solid rgba(168, 85, 247, 1);
    background: rgba(30, 20, 40, 0.95);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.voice-channel-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.voice-channel-card[data-tip="Dereceli"]:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    border-left-width: 6px;
}

.voice-channel-card[data-tip="Derecesiz"]:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    border-left-width: 6px;
}

.voice-channel-card[data-tip="Eğlence"]:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
    border-left-width: 6px;
}

.channel-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background 0.3s ease;
    flex: 1;
    justify-content: space-between;
}

.channel-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.channel-header-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    flex: 1;
}

.channel-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.channel-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-description {
    font-size: 0.85rem;
    color: #a3a3a3;
    margin: 0;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-header-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

.channel-info-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.channel-info-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.channel-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #a3a3a3;
}

.channel-info-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.lobi-modal-content {
    max-width: 800px;
    width: 90%;
}

.lobi-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lobi-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.lobi-modal-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.channel-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.join-button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.join-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.join-button:disabled {
    background: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.join-button.owner-button {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-weight: 700;
    cursor: not-allowed;
}

.join-button.owner-button:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: none;
}

.join-button.in-lobby-button {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-weight: 700;
    cursor: not-allowed;
}

.join-button.in-lobby-button:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: none;
}

.join-button.leave-button {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.join-button.leave-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
}

.filters-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 0.9rem;
    color: #a3a3a3;
    font-weight: 500;
}

.filter-select {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(40, 40, 40, 0.8);
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #6b7280;
    transition: 0.3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.switch input:checked+.slider {
    background: linear-gradient(135deg, #10b981, #059669);
}

.switch input:checked+.slider:before {
    transform: translateX(26px);
}

.switch input:disabled+.slider {
    background-color: #4b5563;
    cursor: not-allowed;
    opacity: 0.6;
}

.switch input:disabled+.slider:before {
    background-color: #9ca3af;
}

.action-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.users-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    min-height: 200px;
}

.users-list:has(.loading) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-channels-grid {
    min-height: 200px;
}

.voice-channels-grid:has(.loading) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid rgba(100, 100, 100, 0.8);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 280px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Lobi Arayan Kullanıcılar - Yeşil */
.user-card[data-type="searching"] {
    border-left: 4px solid rgba(34, 197, 94, 1);
    background: rgba(15, 35, 20, 0.95);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

/* Oyun Oynayan Kullanıcılar - Beyaz */
.user-card[data-type="playing"] {
    border-left: 4px solid rgba(255, 255, 255, 1);
    background: rgba(40, 40, 40, 0.95);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.user-card.no-invite-btn {
    min-height: 220px;
}

.user-card .invite-btn {
    margin-top: auto;
}

.member-card {
    justify-content: center;
}

.user-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.user-card[data-type="searching"]:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    border-left-width: 6px;
}

.user-card[data-type="playing"]:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    border-left-width: 6px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
    width: 100%;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    padding: 0;
}

.user-genel-puan {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f59e0b;
    text-align: center;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 8px;
    display: inline-block;
}

.user-rank-emoji {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.user-rank {
    font-size: 0.85rem;
    color: #a3a3a3;
    width: 100%;
    line-height: 1.3;
    text-align: center;
    margin: 0;
    padding: 0;
}

.member-card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-height: 180px;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.member-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
    width: 100%;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    padding: 0;
}

.member-genel-puan {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f59e0b;
    text-align: center;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 8px;
    display: inline-block;
}

.member-rank-emoji {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.member-rank {
    font-size: 0.75rem;
    color: #a3a3a3;
    width: 100%;
    line-height: 1.3;
    text-align: center;
    margin: 0;
    padding: 0;
}

.invite-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
    margin-top: auto;
}

.invite-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #a3a3a3;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ffffff;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
}

.form-select {
    width: 100%;
    padding: 12px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-checkbox label {
    color: #a3a3a3;
    font-size: 0.9rem;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: 20px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 20px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: notificationSlideIn 0.3s ease;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.loading {
    text-align: center;
    padding: 20px;
    color: #a3a3a3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Bildirimler için sağ alt köşe */
.notifications-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: notificationSlideIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.notification-item.error {
    border-left: 4px solid rgba(220, 38, 38, 1);
    background: rgba(30, 15, 15, 0.98);
}

.notification-item.success {
    border-left: 4px solid rgba(5, 150, 105, 1);
    background: rgba(15, 30, 20, 0.98);
}

.notification-close {
    background: transparent;
    border: none;
    color: #a3a3a3;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}