                        /* Embeds Page CSS - Updated */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus,
*:focus-visible {
    outline: none !important;
}

html {
    background: #000000; /* Schwarzer Fallback-Hintergrund, verhindert weißen Flash */
}

html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: -3; /* Hinter allen Background-Effekten */
    pointer-events: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent !important; /* Transparent, damit Background-Effekte sichtbar sind */
    color: #fff;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    padding: 1rem 0; /* FIX: Gleiche padding wie index/styles.css */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5865f2;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.6);
    margin-left: -20px; /* Move logo to the very left edge */
    padding-left: 20px; /* Add padding to compensate for the removed left padding */
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 15px rgba(88, 101, 242, 0.6));
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 5px rgba(88, 101, 242, 0.4)); }
    to { filter: drop-shadow(0 0 15px rgba(88, 101, 242, 0.6)); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
    margin-right: 1rem;
}

.nav-menu a {
    color: #b9bbbe;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #fff;
}

.login-btn {
    background: #5865f2;
    color: #fff;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* Profile Section */
.profile-section {
    position: relative;
}

.profile-avatar {
    cursor: pointer;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.profile-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

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

.username {
    font-weight: 600;
    color: #fff;
}

.discriminator {
    color: #b9bbbe;
    font-size: 0.875rem;
}

.profile-actions {
    padding: 0.5rem;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #b9bbbe;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-link:hover {
    background: rgba(15, 15, 15, 0.5);
    color: #fff;
}

.profile-link i {
    width: 20px;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1006;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    outline: none;
}

.lang-btn:hover {
    background: #2a2a2a;
}

.lang-btn:focus,
.lang-btn:focus-visible,
.lang-btn:active {
    outline: none;
    box-shadow: none;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 180px;
    padding: 0.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
    color: #b9bbbe;
}

.lang-option:hover {
    background: #3a3a3a;
    color: #fff;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1005;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #dcddde; /* FIX: Gleiche Farbe wie andere Seiten (Discord-Text-Farbe) */
    margin: 3px 0; /* FIX: margin statt gap für konsistente Abstände */
    transition: 0.3s; /* FIX: Gleiche Transition wie andere Seiten */
    border-radius: 2px; /* FIX: Gleiche border-radius wie andere Seiten */
}

/* Hamburger active state (turn into X) */
.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

/* Editor Container */
.editor-container {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Server Management Header */
.server-management-header {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;9
    align-items: center;
    padding: 0 2rem;
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    box-sizing: border-box;
    overflow: hidden;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
    max-height: 70px;
    overflow: hidden;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    max-height: 70px;
    overflow: hidden;
}

.back-btn {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    color: #b9bbbe;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    max-height: 40px;
    min-width: 120px;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    flex-shrink: 0;
}

.back-btn:hover {
    background: rgba(15, 15, 15, 0.4);
    color: #fff;
    transform: translateX(-4px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #b9bbbe;
    font-size: 1.125rem;
    height: 100%;
    max-height: 70px;
    overflow: hidden;
    line-height: 1;
}

.breadcrumb-separator {
    color: #5a5a5a;
}

.current-page {
    color: #fff;
    font-weight: 600;
}

/* Main Content */
.main-content {
    padding: 2rem;
    padding-top: 80px; /* Space for fixed server-management-header */
    min-height: calc(100vh - 160px);
    position: relative;
}

/* Professional Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    pointer-events: none;
}

.loading-container {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border-radius: 24px;
    border: 1px solid rgba(88, 101, 242, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.logo-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.loading-title h2 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.loading-title p {
    color: #b9bbbe;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.loading-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5865f2, #7289da);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

.progress-text {
    color: #b9bbbe;
    font-size: 0.875rem;
    font-weight: 500;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #72767d;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.step i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.step.active {
    color: #5865f2;
}

.step.active i {
    animation: iconPulse 1s ease-in-out infinite;
}

.step.completed {
    color: #43b581;
}

.step.completed i {
    color: #43b581;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Embeds Overview */
.embeds-overview {
    max-width: 1200px;
    margin: 0 auto;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.overview-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.overview-title p {
    color: #b9bbbe;
    font-size: 1rem;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.refresh-channels-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.refresh-channels-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.refresh-channels-btn i.fa-spin {
    animation: fa-spin 1s infinite linear;
}

/* Stream Toggle */
.stream-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stream-users-section .stream-toggle-container {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(79, 84, 92, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(79, 84, 92, 0.3);
}

.stream-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.stream-toggle-input {
    display: none;
}

.stream-toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #4a4a4a;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stream-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stream-toggle-input:checked + .stream-toggle-slider {
    background: #5865f2;
}

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

/* Processing/Cooldown Animation */
.stream-toggle-slider.processing {
    background: #ed4245 !important;
    animation: pulse-red 1.5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
}

.stream-toggle-input:disabled + .stream-toggle-slider {
    cursor: not-allowed;
    opacity: 0.8;
}

.stream-toggle-input:disabled + .stream-toggle-slider.processing::before {
    animation: pulse-white-left 1.5s ease-in-out infinite;
}

.stream-toggle-input:checked:disabled + .stream-toggle-slider.processing::before {
    animation: pulse-white-right 1.5s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% {
        background: #ed4245;
        box-shadow: 0 0 0 0 rgba(237, 66, 69, 0.7);
    }
    50% {
        background: #c03538;
        box-shadow: 0 0 0 8px rgba(237, 66, 69, 0);
    }
}

@keyframes pulse-white-left {
    0%, 100% {
        transform: translateX(0) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: translateX(0) scale(1.1);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0);
    }
}

@keyframes pulse-white-right {
    0%, 100% {
        transform: translateX(26px) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: translateX(26px) scale(1.1);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0);
    }
}

.stream-toggle-text {
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.stream-toggle-label:has(.stream-toggle-slider.processing) .stream-toggle-text {
    color: #ed4245;
}

/* Main Content Layout */
.main-content-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.discord-chat-container {
    flex: 1;
    min-width: 0;
}

.stream-users-sidebar {
    flex: 0 0 350px;
    position: sticky;
    top: 20px;
}

/* Stream Users Section */
.stream-users-section {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 1.5rem;
}

@media (max-width: 1200px) {
    .main-content-layout {
        flex-direction: column;
    }
    
    .stream-users-sidebar {
        flex: 1;
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .stream-users-section {
        margin-bottom: 1.5rem;
    }
}

.stream-users-header h3 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.stream-users-header p {
    color: #b9bbbe;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
}

/* Platform Buttons */
.platform-buttons-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 1.5rem;
}

.platform-btn {
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    min-height: 70px;
}

.platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.platform-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.platform-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.platform-btn i {
    font-size: 20px;
    margin-bottom: 4px;
}

.platform-btn span {
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.twitch-btn:hover {
    border-color: #9146ff;
    background: rgba(145, 70, 255, 0.1);
}

.twitch-btn i {
    color: #9146ff;
}

.kick-btn:hover {
    border-color: #53fc18;
    background: rgba(83, 252, 24, 0.1);
}

.kick-btn i {
    color: #53fc18;
}

.instagram-btn:hover {
    border-color: #e4405f;
    background: rgba(228, 64, 95, 0.1);
}

.instagram-btn i {
    color: #e4405f;
}

.tiktok-btn:hover {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.2);
}

.tiktok-btn i {
    color: #000000;
}

.youtube-btn:hover {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.youtube-btn i {
    color: #ff0000;
}

/* Platform Search Modal */
.platform-search-modal {
    max-width: 500px;
    width: 90vw;
}

.modal-platform-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.platform-search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.platform-search-input {
    flex: 1;
    position: relative;
}

.platform-search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #b9bbbe;
    z-index: 1;
}

.platform-search-input input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
}

.platform-search-input input:focus {
    outline: none;
    border-color: #5865f2;
}

.search-user-btn {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.search-results {
    min-height: 100px;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #b9bbbe;
    padding: 2rem;
}

.search-error {
    color: #e74c3c;
    text-align: center;
    padding: 2rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.user-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 4px;
}

.user-info {
    flex: 1;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.user-username {
    color: #b9bbbe;
    font-size: 0.8rem;
}

.user-stats {
    color: #b9bbbe;
    font-size: 0.7rem;
}

.add-user-result-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.add-user-result-btn:hover {
    background: #229954;
    transform: scale(1.05);
}

.user-search-input {
    flex: 1;
    position: relative;
}

.user-search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #b9bbbe;
    z-index: 1;
}

.user-search-input input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
}

.user-search-input input:focus {
    outline: none;
    border-color: #5865f2;
}

.add-user-btn {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.stream-users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-users-message {
    color: #b9bbbe;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.stream-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.stream-user-item:hover {
    border-color: #4a4a4a;
}

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

.user-avatar-container {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.user-avatar.live {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.user-avatar.offline {
    border-color: #666666;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    border: 2px solid #2c2f33;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-badge {
    background: #00ff00;
    color: #000000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.user-platform {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.platform-twitch { background: #9146ff; }
.platform-kick { background: #53fc18; }
.platform-instagram { background: #e4405f; }
.platform-tiktok { background: #000000; }
.platform-youtube { background: #ff0000; }
.platform-unknown { background: #6a6a6a; }

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.user-platform-name {
    color: #b9bbbe;
    font-size: 0.8rem;
}

.remove-user-btn {
    background: transparent;
    color: #72767d;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    opacity: 0.6;
}

.remove-user-btn:hover {
    background: rgba(237, 66, 69, 0.15);
    color: #ed4245;
    opacity: 1;
}

.remove-user-btn:active {
    transform: scale(0.9);
}

.refresh-user-btn {
    background: #5865f2;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.refresh-user-btn:hover {
    background: #4752c4;
    transform: scale(1.1);
}

.refresh-user-btn:active {
    transform: scale(1.1) rotate(180deg);
}

/* Stream Users Actions */
.stream-users-actions {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.refresh-all-btn {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(88, 101, 242, 0.3);
}

.refresh-all-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(88, 101, 242, 0.4);
}

.refresh-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(88, 101, 242, 0.3);
}

.refresh-all-btn i {
    font-size: 1rem;
}

/* Stream Embed Standard */
.stream-embed-standard {
    border: 2px solid #5865f2 !important;
    position: relative;
}

.stream-embed-standard::before {
    content: 'Standard Stream Embed';
    position: absolute;
    top: -12px;
    left: 12px;
    background: #5865f2;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 10;
}

.add-channel-btn {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    white-space: nowrap;
}

.add-channel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
    background: linear-gradient(135deg, #4752c4, #5865f2);
}

.add-channel-btn i {
    font-size: 1.125rem;
}

/* Channel List */
.channel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.channel-card {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.channel-card:active {
    cursor: grabbing;
}

.channel-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.channel-card.drag-over {
    border-color: #5865f2;
    background: rgba(15, 15, 15, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(88, 101, 242, 0.5);
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #5865f2, #7289da);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.channel-card:hover {
    background: rgba(15, 15, 15, 0.4);
    border-color: #5865f2;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.channel-card:hover::before {
    opacity: 1;
}

.channel-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.channel-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865f2;
    font-size: 1.5rem;
}

.channel-card-info h3 {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.channel-card-info span {
    color: #b9bbbe;
    font-size: 0.875rem;
}

.channel-card-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b9bbbe;
    font-size: 0.875rem;
}

.stat-item i {
    color: #5865f2;
}

/* Delete Channel Button */
.delete-channel-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    color: #ff4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.channel-card:hover .delete-channel-btn {
    opacity: 1;
}

.delete-channel-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    transform: scale(1.1);
}

.delete-channel-btn i {
    font-size: 0.875rem;
}

/* Edit Channel Button */
.edit-channel-btn {
    position: absolute;
    top: 0.75rem;
    right: 3rem;
    width: 32px;
    height: 32px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 8px;
    color: #5865f2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.channel-card:hover .edit-channel-btn {
    opacity: 1;
}

.edit-channel-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    transform: scale(1.1);
}

.edit-channel-btn i {
    font-size: 0.875rem;
}

/* Drag Handle */
.drag-handle {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #72767d;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: grab;
    z-index: 5;
}

.channel-card:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Empty State */
.empty-state,
.empty-embeds-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #b9bbbe;
}

.empty-state i,
.empty-embeds-state i {
    font-size: 4rem;
    color: #3a3a3a;
    margin-bottom: 1.5rem;
}

.empty-state h3,
.empty-embeds-state h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-state p,
.empty-embeds-state p {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Channel Detail View */
.channel-detail-view {
    max-width: 1400px;
    margin: 0 auto;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #3a3a3a;
    flex-wrap: wrap;
}

.back-to-overview-btn {
    background: #2a2a2a;
    color: #b9bbbe;
    border: 1px solid #3a3a3a;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-to-overview-btn:hover {
    background: #323232;
    color: #fff;
    border-color: #5865f2;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.channel-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.action-btn {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn i {
    font-size: 1rem;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.save-btn {
    background: linear-gradient(135deg, #5865f2, #7289da);
    border-color: transparent;
}

.save-btn:hover {
    background: linear-gradient(135deg, #4752c4, #5865f2);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.publish-btn {
    background: linear-gradient(135deg, #43b581, #3ca374);
    border-color: transparent;
}

.publish-btn:hover {
    background: linear-gradient(135deg, #3ca374, #43b581);
    box-shadow: 0 4px 12px rgba(67, 181, 129, 0.4);
}

.delete-btn {
    background: linear-gradient(135deg, #ed4245, #c03537);
    border-color: transparent;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #c03537, #ed4245);
    box-shadow: 0 4px 12px rgba(237, 66, 69, 0.4);
}

.channel-icon {
    width: 56px;
    height: 56px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865f2;
    font-size: 1.75rem;
}

.channel-name-container h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.channel-id {
    color: #72767d;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.add-embed-btn {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: #fff;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.add-embed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
    background: linear-gradient(135deg, #4752c4, #5865f2);
}

/* Discord Chat Container */
.discord-chat-container {
    max-width: 900px;
    margin: 2rem auto;
    background: #36393f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.discord-chat-header {
    background: #2f3136;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #202225;
}

.channel-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.channel-info-header i {
    color: #72767d;
    font-size: 1.25rem;
}

.discord-messages-area {
    padding: 1.5rem;
    min-height: 300px;
}

.discord-message {
    display: flex;
    gap: 1rem;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.message-author {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.message-badge {
    background: #5865f2;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

.message-timestamp {
    color: #72767d;
    font-size: 0.75rem;
}

.message-text {
    color: #dcddde;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
    outline: none;
    padding: 0.25rem 0;
}

.message-text:empty:before {
    content: attr(placeholder);
    color: #72767d;
}

.message-text:focus {
    background: rgba(79, 84, 92, 0.16);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

/* Embeds Container */
.embeds-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Inline Embed Editor */
.inline-embed-editor {
    position: relative;
    max-width: 520px;
    margin-bottom: 0.5rem;
}

.inline-embed-editor.dragging {
    opacity: 0.5;
}

.embed-controls {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    transition: opacity 0.2s ease;
}

.inline-embed-editor.editing .embed-controls {
    display: flex;
}

.embed-drag-handle {
    display: flex;
    align-items: center;
    color: #72767d;
    cursor: grab;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.embed-drag-handle:hover {
    background: rgba(79, 84, 92, 0.16);
    color: #dcddde;
}

.embed-drag-handle:active {
    cursor: grabbing;
}

.embed-drag-handle i {
    font-size: 1rem;
}

.delete-embed-icon {
    background: transparent;
    border: none;
    color: #72767d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.delete-embed-icon:hover {
    background: rgba(237, 66, 69, 0.1);
    color: #ed4245;
}

.embed-color-picker {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
}

/* Discord Embed Live */
.discord-embed-live {
    background: #2f3136;
    border-radius: 4px;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    transition: all 0.2s ease;
}

/* Embed Buttons Section */
.embed-buttons-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #202225;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.embed-button {
    background: #4f545c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: grab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.17s ease;
    position: relative;
    white-space: nowrap;
    min-width: fit-content;
    height: 36px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    user-select: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
}

.embed-button:active {
    cursor: grabbing;
}

.embed-button.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.embed-button.drag-over {
    border-left: 3px solid #5865f2;
}

.embed-button:hover {
    background: #5d6269;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.embed-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.embed-button.primary {
    background: #5865f2;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.embed-button.primary:hover {
    background: #4752c4;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.embed-button.secondary {
    background: #4f545c;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.embed-button.secondary:hover {
    background: #5d6269;
    box-shadow: 0 2px 8px rgba(79, 84, 92, 0.3);
}

.embed-button.success {
    background: #3ba55c;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.embed-button.success:hover {
    background: #2d7d46;
    box-shadow: 0 2px 8px rgba(59, 165, 92, 0.3);
}

.embed-button.danger {
    background: #ed4245;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.embed-button.danger:hover {
    background: #c03e3e;
    box-shadow: 0 2px 8px rgba(237, 66, 69, 0.3);
}

.embed-button.warning {
    background: #faa61a;
    color: #000000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.embed-button.warning:hover {
    background: #e8940f;
    box-shadow: 0 2px 8px rgba(250, 166, 26, 0.3);
}

.embed-button .button-content {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
}

.embed-button .button-icon {
    font-size: 0.875rem;
    flex-shrink: 0;
    line-height: 1;
}

.embed-button .button-text {
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    font-weight: 500;
}

.embed-button .button-actions {
    display: none;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

/* Show button actions when button is active (clicked) */
.embed-button.active .button-actions {
    display: flex;
}

.embed-button .button-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 3px;
    color: #ffffff;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.17s ease;
    opacity: 0.8;
}

.embed-button .button-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.05);
}

.embed-button .button-action-btn.delete:hover {
    background: #ed4245;
    opacity: 1;
    transform: scale(1.05);
}

.add-button-btn {
    background: transparent;
    border: 2px dashed #4f545c;
    color: #b9bbbe;
    border-radius: 3px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    width: 100%;
}

.add-button-btn:hover {
    border-color: #5865f2;
    color: #5865f2;
    background: rgba(88, 101, 242, 0.1);
}

.add-button-btn i {
    font-size: 0.75rem;
}

/* Button Area (under embed) */
.embed-button-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem 0.5rem 0rem;
    margin-top: 0.5rem;
    background: transparent;
    border: none;
}

.embed-reactions-area {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.embed-reaction {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(79, 84, 92, 0.3);
    border: 1px solid #4f545c;
    border-radius: 4px;
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
}

.embed-reaction:active {
    cursor: grabbing;
}

.embed-reaction:hover {
    background: rgba(79, 84, 92, 0.5);
    border-color: #5d6269;
}

.embed-reaction.dragging {
    opacity: 0.5;
}

.embed-reaction.drag-over {
    border-left: 3px solid #5865f2;
}

.embed-reaction .reaction-emoji {
    font-size: 1rem;
}

.embed-reaction .reaction-actions {
    display: none;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.embed-reaction.active .reaction-actions {
    display: flex;
}

.embed-reaction .button-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 3px;
    color: #ffffff;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.17s ease;
    opacity: 0.8;
}

.embed-reaction .button-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.05);
}

.add-button-icon {
    background: #4f545c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.17s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.add-button-icon:hover {
    background: #5d6269;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 84, 92, 0.3);
}

.add-button-icon i {
    font-size: 0.875rem;
}

/* MEE6-Style Emoji Picker CSS */
.mee6-emoji-picker {
    background: #2f3136;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #40444b;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.emoji-picker-header {
    background: #36393f;
    padding: 16px 20px;
    border-bottom: 1px solid #40444b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
}
.emoji-picker-header:active {
    cursor: grabbing;
}
.search-container {
    flex: 1;
    position: relative;
    margin-right: 12px;
}
.emoji-picker-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.emoji-picker-close {
    background: #40444b;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #dcddde;
    transition: all 0.2s ease;
}
.emoji-picker-close:hover {
    background: #5865f2;
    color: white;
}
.emoji-picker-close i {
    font-size: 14px;
}
.emoji-search {
    width: 100%;
    background: #40444b;
    border: none;
    border-radius: 4px;
    padding: 8px 12px 8px 36px;
    color: #dcddde;
    font-size: 14px;
    outline: none;
}
.emoji-search::placeholder {
    color: #72767d;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.6;
}
.variation-selector {
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.variation-selector:hover {
    background: #40444b;
}
.variation-icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}
.emoji-picker-main {
    display: flex;
    height: 400px;
}
.emoji-categories-sidebar {
    width: 200px;
    background: #36393f;
    border-right: 1px solid #40444b;
    padding: 16px 16px 16px 12px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 400px;
    scrollbar-width: thin;
    scrollbar-color: #40444b #2f3136;
}
.emoji-categories-sidebar::-webkit-scrollbar {
    width: 6px;
}
.emoji-categories-sidebar::-webkit-scrollbar-track {
    background: #2f3136;
}
.emoji-categories-sidebar::-webkit-scrollbar-thumb {
    background: #40444b;
    border-radius: 3px;
}
.emoji-categories-sidebar::-webkit-scrollbar-thumb:hover {
    background: #5865f2;
}
.server-category {
    padding: 12px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #40444b;
}
.server-category:hover {
    background: #40444b;
}
.server-category.active {
    background: #5865f2;
}
.server-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
.server-name {
    font-size: 13px;
    color: #dcddde;
    font-weight: 600;
    white-space: nowrap;
}
.category-item {
    padding: 12px 16px;
    margin-bottom: 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 12px;
}
.category-item:hover {
    background: #40444b;
    opacity: 0.8;
}
.category-item.active {
    background: #5865f2;
    opacity: 1;
}
.category-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    opacity: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.category-name {
    color: #dcddde;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.emoji-content-area {
    flex: 1;
    background: #2f3136;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.category-header {
    background: #36393f;
    padding: 12px 16px;
    border-bottom: 1px solid #40444b;
}
.category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dcddde;
    font-weight: 600;
    font-size: 14px;
}
.category-server-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}
.emoji-grid {
    flex: 1;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    overflow-y: auto;
}
.emoji-grid-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.emoji-grid-item:hover {
    background: #40444b;
}
.emoji-grid-item .emoji {
    width: 32px;
    height: 32px;
    user-select: none;
    -webkit-user-drag: none;
}
.emoji-picker-footer {
    background: #36393f;
    padding: 12px 16px;
    border-top: 1px solid #40444b;
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-emoji {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-emoji-img {
    width: 32px;
    height: 32px;
}
.footer-text {
    flex: 1;
}
.footer-text p {
    color: #dcddde;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #72767d;
}
.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.no-results p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #dcddde;
}
.no-results small {
    font-size: 14px;
    opacity: 0.7;
}
/* Scrollbar Styling für den Emoji-Picker */
.emoji-grid::-webkit-scrollbar {
    width: 8px;
}
.emoji-grid::-webkit-scrollbar-track {
    background: #2f3136;
}
.emoji-grid::-webkit-scrollbar-thumb {
    background: #40444b;
    border-radius: 4px;
}
.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: #4f545c;
}

/* Emoji Button Styles */
.input-with-emoji {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.emoji-btn {
    background: #4f545c;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    width: 32px;
    height: 32px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

/* Show emoji buttons only in edit mode */
.inline-embed-editor.editing .emoji-btn {
    display: flex;
}

.emoji-btn:hover {
    background: #5865f2;
    transform: scale(1.05);
}

.emoji-btn:active {
    transform: scale(0.95);
}

/* Ensure input fields take full width when emoji button is present */
.input-with-emoji input,
.input-with-emoji textarea {
    flex: 1;
    min-width: 0;
}

/* Button Edit Modal Styles */
#button-edit-modal .modal-content {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#button-edit-modal .modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#button-edit-modal .modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

#button-edit-modal .modal-close {
    background: none;
    border: none;
    color: #b9bbbe;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#button-edit-modal .modal-close:hover {
    background: #40444b;
    color: #ffffff;
}

#button-edit-modal .modal-body {
    padding: 1.5rem;
}

#button-edit-modal .form-group {
    margin-bottom: 1rem;
}

#button-edit-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b9bbbe;
    font-size: 0.875rem;
    font-weight: 500;
}

#button-edit-modal .form-group input,
#button-edit-modal .form-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

#button-edit-modal .form-group input:focus,
#button-edit-modal .form-group select:focus {
    outline: none;
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

#button-edit-modal .button-icon-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#button-edit-modal .icon-display-btn {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

#button-edit-modal .icon-display-btn:hover {
    border-color: #5865f2;
    background: rgba(15, 15, 15, 0.4);
    transform: scale(1.05);
}

#button-edit-modal .button-type-fields {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#button-edit-modal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

#button-edit-modal .btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#button-edit-modal .btn-secondary {
    background: #4f545c;
    color: #ffffff;
}

#button-edit-modal .btn-secondary:hover {
    background: #5d6269;
}

#button-edit-modal .btn-primary {
    background: #5865f2;
    color: #ffffff;
}

#button-edit-modal .btn-primary:hover {
    background: #4752c4;
}

.inline-embed-editor.editing .discord-embed-live {
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.3);
}

.inline-embed-editor:not(.editing) .discord-embed-live {
    cursor: pointer;
}

.inline-embed-editor:not(.editing) .discord-embed-live:hover {
    background: #32353b;
}

.embed-color-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #5865f2;
    border-radius: 4px 0 0 4px;
}

.embed-main-content {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
}

/* Hidden URL Inputs */
.hidden-url-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Author Section */
.embed-author-section {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.embed-author-section:not(:empty) {
    display: flex;
}

.author-icon-upload {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #202225;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    flex-shrink: 0;
}

.inline-embed-editor:not(.editing) .author-icon-upload {
    cursor: default;
    pointer-events: none;
}

.author-icon-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-icon-upload i {
    color: #4f545c;
    font-size: 0.75rem;
}

.embed-author-input {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0.125rem 0.25rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.embed-author-input:focus {
    outline: none;
    background: rgba(79, 84, 92, 0.16);
    border-color: #5865f2;
}

.embed-author-input:disabled {
    cursor: default;
    pointer-events: none;
}

/* Title */
.embed-title-edit {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0.125rem 0.25rem;
    color: #00aff4;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    width: 100%;
    margin-bottom: 0.5rem;
}

.embed-title-edit:focus {
    outline: none;
    background: rgba(79, 84, 92, 0.16);
    border-color: #5865f2;
}

.embed-title-edit:disabled {
    cursor: default;
    pointer-events: none;
}

/* Description */
.embed-description-edit {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0.125rem 0.25rem;
    color: #dcddde;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
    min-height: 60px;
    resize: none;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.embed-description-edit:focus {
    outline: none;
    background: rgba(79, 84, 92, 0.16);
    border-color: #5865f2;
}

.embed-description-edit:disabled {
    cursor: default;
    pointer-events: none;
    resize: none;
}

/* Fields */
.embed-fields-container {
    margin-bottom: 0.5rem;
}

.embed-field-live {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    padding: 0.5rem;
    padding-right: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.field-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.3);
    color: #ed4245;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.field-remove-btn:hover {
    background: rgba(237, 66, 69, 0.3);
    border-color: rgba(237, 66, 69, 0.5);
    color: #ed4245;
    transform: scale(1.05);
}

/* Image Delete Button */
.image-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.image-delete-btn.small {
    width: 20px;
    height: 20px;
    font-size: 0.625rem;
    top: 0.25rem;
    right: 0.25rem;
}

/* Show delete button only when image exists */
.embed-image-upload.has-image .image-delete-btn,
.embed-thumbnail-upload.has-image .image-delete-btn,
.author-icon-upload.has-image .image-delete-btn,
.footer-icon-upload.has-image .image-delete-btn {
    display: flex;
    opacity: 0;
}

/* Make visible on hover */
.embed-image-upload.has-image:hover .image-delete-btn,
.embed-thumbnail-upload.has-image:hover .image-delete-btn,
.author-icon-upload.has-image:hover .image-delete-btn,
.footer-icon-upload.has-image:hover .image-delete-btn {
    opacity: 1;
}

.image-delete-btn:hover {
    background: rgba(237, 66, 69, 0.9);
    transform: scale(1.1);
}

.inline-embed-editor:not(.editing) .image-delete-btn {
    display: none;
}

.field-name-input {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0.125rem 0.25rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    width: 100%;
    margin-bottom: 0.25rem;
}

.field-name-input:focus {
    outline: none;
    background: rgba(79, 84, 92, 0.16);
    border-color: #5865f2;
}

.field-name-input:disabled {
    cursor: default;
    pointer-events: none;
}

.field-value-input {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0.125rem 0.25rem;
    color: #dcddde;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
    min-height: 40px;
    resize: vertical;
}

.field-value-input:focus {
    outline: none;
    background: rgba(79, 84, 92, 0.16);
    border-color: #5865f2;
}

.field-value-input:disabled {
    cursor: default;
    pointer-events: none;
    resize: none;
}

.field-inline-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.375rem;
    color: #b9bbbe;
    font-size: 0.75rem;
    cursor: pointer;
}

.field-inline-checkbox {
    cursor: pointer;
}

/* Add Field Button */
.embed-add-field-btn {
    background: transparent;
    border: 2px dashed #202225;
    border-radius: 4px;
    color: #72767d;
    padding: 0.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    width: 100%;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.inline-embed-editor.editing .embed-add-field-btn {
    display: flex;
}

.embed-add-field-btn:hover {
    border-color: #5865f2;
    color: #5865f2;
    background: rgba(88, 101, 242, 0.05);
}

/* Image Upload */
.embed-image-upload {
    position: relative;
    background: #202225;
    border: 2px dashed #2f3136;
    border-radius: 4px;
    min-height: 120px;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 0.75rem;
    padding: 0;
    overflow: visible;
    transition: all 0.2s ease;
}

.embed-image-upload input[type="file"],
.embed-thumbnail-upload input[type="file"],
.author-icon-upload input[type="file"],
.footer-icon-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.inline-embed-editor.editing .embed-image-upload:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.05);
}

.inline-embed-editor:not(.editing) .embed-image-upload {
    cursor: default;
    pointer-events: none;
}

.embed-image-upload.has-image {
    border: none;
    min-height: auto;
}

.embed-image-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #72767d;
}

.upload-placeholder i {
    font-size: 2rem;
}

.upload-placeholder span {
    font-size: 0.875rem;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Footer Section */
.embed-footer-section {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

.embed-footer-section .input-with-emoji {
    flex: 1;
}

.embed-footer-section:not(:empty) {
    display: flex;
}

.footer-icon-upload {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #202225;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    flex-shrink: 0;
}

.inline-embed-editor:not(.editing) .footer-icon-upload {
    cursor: default;
    pointer-events: none;
}

.footer-icon-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.footer-icon-upload i {
    color: #4f545c;
    font-size: 0.625rem;
}

.embed-footer-input {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0.125rem 0.25rem;
    color: #72767d;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
    min-width: 200px;
}

.embed-footer-input:focus {
    outline: none;
    background: rgba(79, 84, 92, 0.16);
    border-color: #5865f2;
}

.embed-footer-input:disabled {
    cursor: default;
    pointer-events: none;
}

/* Thumbnail Upload */
.embed-thumbnail-upload {
    position: relative;
    width: 80px;
    height: 80px;
    background: #202225;
    border: 2px dashed #2f3136;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    flex-shrink: 0;
    transition: all 0.2s ease;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

.inline-embed-editor.editing .embed-thumbnail-upload:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.05);
}

.inline-embed-editor:not(.editing) .embed-thumbnail-upload {
    cursor: default;
    pointer-events: none;
}

.embed-thumbnail-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #72767d;
}

.thumbnail-placeholder i {
    font-size: 1.5rem;
}

/* Discord Chat Input */
.discord-chat-input {
    background: #40444b;
    padding: 1.5rem;
    border-top: 1px solid #202225;
    display: flex;
    justify-content: center;
}

.add-embed-button {
    background: linear-gradient(135deg, #5865f2, #7289da);
    border: none;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.add-embed-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    background: linear-gradient(135deg, #4752c4, #5865f2);
}

.add-embed-button i {
    font-size: 1.25rem;
}


/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: var(--kynx-blur);
    -webkit-backdrop-filter: var(--kynx-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #b9bbbe;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #3a3a3a;
    color: #fff;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

/* Channel Search */
.channel-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.channel-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #72767d;
}

.channel-search input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 0.875rem 1rem 0.875rem 3rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.channel-search input:focus {
    outline: none;
    border-color: #5865f2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.channel-option {
    background: #1a1a1a;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.channel-option:hover {
    background: #2a2a2a;
    border-color: #5865f2;
    transform: translateY(-2px);
}

.channel-option i {
    color: #72767d;
    font-size: 1.25rem;
}

.channel-option span {
    color: #fff;
    font-weight: 500;
}

.loading-channels {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: #b9bbbe;
}

/* Notifications */
.notification {
    background: #2a2a2a;
    border-left: 4px solid #5865f2;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.notification-success {
    border-color: #43b581;
}

.notification-warning {
    border-color: #faa61a;
}

.notification-info {
    border-color: #5865f2;
}

.notification i {
    font-size: 1.25rem;
}

.notification-success i {
    color: #43b581;
}

.notification-warning i {
    color: #faa61a;
}

.notification-info i {
    color: #5865f2;
}

.notification span {
    color: #fff;
    font-weight: 500;
}

.notification.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Mobile Responsive */
@media (max-width: 1306px) {
    /* Mobile Profile Avatar Fix */
    .nav-menu .mobile-auth-buttons .profile-section .profile-avatar,
    .nav-menu .mobile-auth-buttons .profile-avatar {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu .mobile-auth-buttons .profile-section .profile-avatar img,
    .nav-menu .mobile-auth-buttons .profile-avatar img,
    .nav-menu .mobile-auth-buttons .profile-section .profile-avatar .avatar-img,
    .nav-menu .mobile-auth-buttons .profile-avatar .avatar-img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    /* FIX: Header-Styles für Mobile/Tablet korrigieren */
    .hamburger {
        display: flex !important;
        margin-left: auto;
        z-index: 1005;
        position: relative;
        align-self: center;
        min-width: 30px;
        flex-shrink: 0;
    }
    
    .navbar {
        padding: 1rem 0 !important; /* Gleiche Höhe wie PC-View */
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }
    
    .nav-container {
        padding: 0 1rem !important;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
        height: 100%;
    }
    
    .nav-logo {
        margin-left: 0 !important;
        padding-left: 0 !important;
        font-size: 1.5rem !important; /* Gleiche Größe wie PC-View */
        align-items: center !important;
    }
    
    .logo-img {
        width: 40px !important; /* Gleiche Größe wie PC-View */
        height: 40px !important;
    }
    
    .nav-menu {
        position: fixed;
        left: 0;
        top: 72px; /* Entspricht padding: 1rem 0 */
        display: flex;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        backdrop-filter: var(--kynx-blur);
        padding: 1rem 0.75rem 2rem; /* FIX: Gleiche padding wie andere Seiten */
        gap: 0.5rem; /* FIX: Gleiche gap wie andere Seiten */
        height: calc(100vh - 72px);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1004;
        border-top: 1px solid rgba(64, 68, 75, 1);
        transform: translateX(-100%);
        pointer-events: auto;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: auto !important;
        position: relative;
        z-index: 1005;
    }
    
    .nav-menu li * {
        pointer-events: auto !important;
    }
    
    .nav-menu a,
    .nav-menu .login-btn {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem; /* FIX: Gleiche padding wie andere Seiten */
        border-radius: 10px;
        text-decoration: none;
        color: #dcddde;
        transition: all 0.3s ease;
        border: none;
        background: none;
        font-size: 1rem;
        font-weight: 500;
        text-align: center;
    }

    .editor-container {
        margin-top: 72px; /* Adjust for mobile nav height */
        padding: 1rem;
    }

    .server-management-header {
        top: 70px;
        padding: 0 1rem;
        height: 70px;
        min-height: 70px;
        max-height: 70px;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    .header-left {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        width: auto;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .header-right {
        width: auto;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .back-btn {
        padding: 0;
        min-width: 40px;
        width: 40px;
        height: 40px;
        max-height: 40px;
        justify-content: center;
        font-size: 0;
    }

    .back-btn i {
        font-size: 1rem;
        margin: 0;
    }

    .back-btn span,
    .back-btn::after {
        display: none !important;
    }

    .breadcrumb {
        font-size: 0.875rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100vw - 120px);
    }

    .breadcrumb span:not(.breadcrumb-separator) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 150px;
    }

    .main-content {
        padding: 1rem;
        padding-top: 150px;
        min-height: 400px;
    }

    .language-switcher {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }

    .overview-header {
        flex-direction: column;
        align-items: stretch;
    }

    .add-channel-btn {
        width: 100%;
        justify-content: center;
    }

    .channel-list {
        grid-template-columns: 1fr;
    }

    .delete-channel-btn {
        opacity: 1;
    }

    .edit-channel-btn {
        opacity: 1;
    }

    .drag-handle {
        opacity: 1;
    }

    .detail-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .channel-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .channel-actions {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .action-btn span {
        display: inline;
    }

    .add-embed-btn {
        width: 100%;
        justify-content: center;
    }

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

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .discord-chat-container {
        margin: 1rem;
        border-radius: 8px;
    }

    .inline-embed-editor {
        max-width: 100%;
    }

    .embed-controls {
        gap: 0.375rem;
    }

    .embed-color-picker {
        width: 28px;
        height: 28px;
    }

    .discord-embed-live {
        padding: 0.625rem 0.75rem 0.625rem 0.625rem;
    }

    .embed-thumbnail-upload {
        width: 60px;
        height: 60px;
    }

    .embed-image-upload {
        min-height: 80px;
        margin-top: 0.5rem;
    }
}
