/* Giveaways Page CSS */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    color: #fff;
    overflow-x: hidden;
}

/* Navigation - Let /styles.css handle navigation, only override giveaways-specific styles */
/* Navigation styles are now handled by /styles.css to prevent conflicts */

/* FIX: Desktop Logo-Styles hinzufügen (fehlten komplett) */
.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 */
}

/* Ensure desktop styles are applied correctly on resize */
@media (min-width: 1307px) {
    .nav-container {
        padding: 0 20px 0 0 !important;
    }
    .nav-logo {
        margin-left: -20px !important;
        padding-left: 20px !important;
    }
}

.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)); }
}

.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: var(--gw-overlay);
    backdrop-filter: var(--gw-blur-heavy);
    -webkit-backdrop-filter: var(--gw-blur-heavy);
    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: var(--gw-glass-strong);
    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: var(--gw-glass);
}

.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: var(--gw-glass);
    backdrop-filter: var(--gw-blur);
    -webkit-backdrop-filter: var(--gw-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: var(--gw-glass-hover);
    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;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    background: var(--gw-glass);
    backdrop-filter: var(--gw-blur);
    -webkit-backdrop-filter: var(--gw-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: var(--gw-glass);
    backdrop-filter: var(--gw-blur);
    -webkit-backdrop-filter: var(--gw-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: var(--gw-glass-hover);
    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: var(--gw-overlay);
    backdrop-filter: var(--gw-blur-heavy);
    -webkit-backdrop-filter: var(--gw-blur-heavy);
    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: var(--gw-glass);
    backdrop-filter: var(--gw-blur);
    -webkit-backdrop-filter: var(--gw-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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);
    }
}

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

.giveaways-overview {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 0.25rem;
}

.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;
}

.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 {
    gap: 1.5rem;
    width: 100%;
}

.channel-list:not(.channel-list-empty) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
    justify-content: center;
    align-items: stretch;
}

.channel-list-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    padding: 2rem 1rem;
}

.channel-list-empty .empty-state,
.giveaway-list-empty .empty-state {
    width: 100%;
    max-width: 440px;
}

.channel-card {
    background: var(--gw-glass);
    backdrop-filter: var(--gw-blur);
    -webkit-backdrop-filter: var(--gw-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: var(--gw-glass-hover);
    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: var(--gw-glass-hover);
    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: 1680px;
    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);
}

/* Giveaway Tab-Leiste (Filter + Neues Giveaway) */
.giveaway-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(
        145deg,
        rgba(88, 101, 242, 0.08) 0%,
        rgba(15, 15, 18, 0.42) 45%,
        rgba(10, 10, 12, 0.48) 100%
    );
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(88, 101, 242, 0.16);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.giveaway-tabs .tabs-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.giveaway-tabs .tabs-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.giveaway-tabs .tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #b9bbbe;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
}

.giveaway-tabs .tab-btn i {
    font-size: 0.85rem;
    opacity: 0.85;
}

.giveaway-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(88, 101, 242, 0.35);
    color: #fff;
    transform: translateY(-1px);
}

.giveaway-tabs .tab-btn.active {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(88, 101, 242, 0.08));
    border-color: rgba(88, 101, 242, 0.5);
    color: #e0e7ff;
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.2), 0 4px 14px rgba(88, 101, 242, 0.15);
}

.giveaway-tabs .tab-btn .tab-count {
    min-width: 1.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.35);
    color: #e8eaed;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.giveaway-tabs .tab-btn.active .tab-count {
    background: rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.45);
    color: #fff;
}

.giveaway-tabs .new-giveaway-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    box-shadow: 0 4px 18px rgba(88, 101, 242, 0.4);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.giveaway-tabs .new-giveaway-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
}

.giveaway-tabs .new-giveaway-btn:active {
    transform: translateY(0);
}

/* Legacy-Klassen (falls noch verwendet) */
.giveaway-tab {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #b9bbbe;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
}

.giveaway-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.giveaway-tab.active {
    background: rgba(88, 101, 242, 0.2);
    border-color: #5865f2;
    color: #5865f2;
}

.giveaway-tab .tab-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.4rem;
}

.giveaway-tab.active .tab-count {
    background: rgba(88, 101, 242, 0.3);
}

/* Giveaway-Übersicht (pro Kanal / Tabs): Kachel-Grid wie Channel-Liste */
.giveaway-list {
    width: 100%;
    box-sizing: border-box;
}

/* Wichtig: kein 1fr als max — sonst wird eine einzelne Karte so breit wie der Viewport */
.giveaway-list:not(.giveaway-list-empty) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
    gap: 1rem 1.15rem;
    padding: 0.35rem 0 1.35rem;
    align-items: stretch;
    justify-content: start;
    justify-items: stretch;
}

/* Leere Kategorie: Platzhalter mittig (horizontal + vertikal im sichtbaren Bereich) */
.giveaway-list.giveaway-list-empty,
.giveaway-list:has(> .empty-state:only-child) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(52vh, calc(100vh - 260px));
    padding: 2rem 1rem;
}

.giveaway-list-empty .empty-state,
.giveaway-list:has(> .empty-state:only-child) > .empty-state {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    padding: 1.35rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(88, 101, 242, 0.08), rgba(0, 0, 0, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.giveaway-list-empty .empty-state i,
.giveaway-list:has(> .empty-state:only-child) .empty-state i {
    font-size: 2.1rem;
    color: rgba(88, 101, 242, 0.65);
    margin-bottom: 0.65rem;
}

.giveaway-list-empty .empty-state h3,
.giveaway-list:has(> .empty-state:only-child) .empty-state h3 {
    color: #f2f3f5;
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.giveaway-list-empty .empty-state p,
.giveaway-list:has(> .empty-state:only-child) .empty-state p {
    color: #949ba4;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.45;
}

@media (max-width: 420px) {
    .giveaway-list:not(.giveaway-list-empty) {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .giveaway-card {
        max-width: 100%;
    }
}

/* Kachel: Glas + linker Status-Streifen (an Channel-Karten angelehnt) */
.giveaway-card {
    --gc-accent: #5865f2;
    --gc-accent-dim: rgba(88, 101, 242, 0.35);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    background: var(--gw-glass);
    backdrop-filter: var(--gw-blur);
    -webkit-backdrop-filter: var(--gw-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--gc-accent);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 10px 28px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

/* Kein zusätzlicher ::before-Streifen — linker Rand über border-left */
.giveaway-card::before {
    display: none;
}

.giveaway-card-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    top: -55px;
    right: -45px;
    background: radial-gradient(circle, var(--gc-accent-dim) 0%, transparent 68%);
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.giveaway-card:hover {
    transform: translateY(-3px);
    background: var(--gw-glass-hover);
    border-color: rgba(88, 101, 242, 0.38);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 14px 36px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(88, 101, 242, 0.22);
}

.giveaway-card:hover .giveaway-card-glow {
    opacity: 0.65;
}

.giveaway-card.status-active {
    --gc-accent: #3ba55d;
    --gc-accent-dim: rgba(59, 165, 93, 0.4);
}

.giveaway-card.status-paused {
    --gc-accent: #f0b132;
    --gc-accent-dim: rgba(240, 177, 50, 0.38);
}

.giveaway-card.status-scheduled {
    --gc-accent: #5865f2;
    --gc-accent-dim: rgba(88, 101, 242, 0.42);
}

.giveaway-card.status-ended {
    --gc-accent: #747f8d;
    --gc-accent-dim: rgba(116, 127, 141, 0.35);
}

.giveaway-card.status-cancelled {
    --gc-accent: #ed4245;
    --gc-accent-dim: rgba(237, 66, 69, 0.35);
}

.giveaway-card.status-draft {
    --gc-accent: #949ba4;
    --gc-accent-dim: rgba(148, 155, 164, 0.28);
}

.giveaway-card-inner {
    position: relative;
    z-index: 1;
    padding: 0.85rem 0.95rem 0.65rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.giveaway-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.giveaway-card-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(88, 101, 242, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--gc-accent);
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.giveaway-card-head-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.giveaway-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f2f3f5;
    margin: 0;
    line-height: 1.28;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.giveaway-status-badge {
    align-self: flex-start;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border: 1px solid transparent;
}

.giveaway-status-badge.status-active {
    background: rgba(59, 165, 93, 0.18);
    color: #89f0a8;
    border-color: rgba(59, 165, 93, 0.35);
}

.giveaway-status-badge.status-scheduled {
    background: rgba(88, 101, 242, 0.2);
    color: #b4b8ff;
    border-color: rgba(88, 101, 242, 0.4);
}

.giveaway-status-badge.status-ended {
    background: rgba(116, 127, 141, 0.2);
    color: #c9d2db;
    border-color: rgba(116, 127, 141, 0.35);
}

.giveaway-status-badge.status-paused {
    background: rgba(240, 177, 50, 0.16);
    color: #ffd27a;
    border-color: rgba(240, 177, 50, 0.38);
}

.giveaway-status-badge.status-draft {
    background: rgba(148, 155, 164, 0.12);
    color: #b5bac1;
    border-color: rgba(148, 155, 164, 0.25);
}

.giveaway-status-badge.status-cancelled {
    background: rgba(237, 66, 69, 0.16);
    color: #ff8b8d;
    border-color: rgba(237, 66, 69, 0.35);
}

/* Preis-Zeile */
.giveaway-card-prize-strip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.5rem;
    border-radius: 8px;
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    color: #dcddde;
}

.giveaway-card-prize-strip > i {
    color: #faa61a;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.giveaway-card-prize-text {
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

/* Stat-Kacheln */
.giveaway-card-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.giveaway-stat-tile {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.35rem;
    row-gap: 0;
    padding: 0.38rem 0.45rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.giveaway-stat-ico {
    grid-row: 1 / span 2;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(88, 101, 242, 0.12);
    color: #949cf7;
    font-size: 0.68rem;
}

.giveaway-card.status-active .giveaway-stat-ico {
    background: rgba(59, 165, 93, 0.15);
    color: #6ee89f;
}

.giveaway-card.status-ended .giveaway-stat-ico,
.giveaway-card.status-cancelled .giveaway-stat-ico {
    background: rgba(116, 127, 141, 0.15);
    color: #aeb9c4;
}

.giveaway-stat-lbl {
    grid-column: 2;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #72767d;
}

.giveaway-stat-val {
    grid-column: 2;
    font-size: 0.92rem;
    font-weight: 800;
    color: #f2f3f5;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

/* Zeit / Countdown */
.giveaway-card-time-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(0, 0, 0, 0.15));
    border: 1px solid rgba(88, 101, 242, 0.18);
    font-size: 0.76rem;
    font-weight: 600;
    color: #b4b8ff;
}

.giveaway-card.status-active .giveaway-card-time-row {
    background: linear-gradient(135deg, rgba(59, 165, 93, 0.14), rgba(0, 0, 0, 0.12));
    border-color: rgba(59, 165, 93, 0.28);
    color: #9ef0b4;
}

.giveaway-card.status-ended .giveaway-card-time-row,
.giveaway-card.status-cancelled .giveaway-card-time-row {
    background: rgba(116, 127, 141, 0.12);
    border-color: rgba(116, 127, 141, 0.22);
    color: #c9d2db;
}

.giveaway-card.status-scheduled .giveaway-card-time-row {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.16), rgba(0, 0, 0, 0.12));
    border-color: rgba(88, 101, 242, 0.25);
    color: #c7cbff;
}

.giveaway-time-label {
    flex-shrink: 0;
    opacity: 0.85;
}

.giveaway-time-label i {
    font-size: 0.78rem;
}

.giveaway-time-value {
    flex: 1;
    min-width: 0;
}

.giveaway-time-value .countdown {
    font-variant-numeric: tabular-nums;
}

.giveaway-time-value .ended-date,
.giveaway-time-value .scheduled-date {
    color: inherit;
}

/* Aktionen */
.giveaway-card-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem 0.6rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
}

.giveaway-action-btn {
    padding: 0.3rem 0.48rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #dcddde;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.12s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.giveaway-action-btn i {
    font-size: 0.68rem;
    opacity: 0.9;
}

.giveaway-action-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.giveaway-action-btn:active {
    transform: translateY(0);
}

.giveaway-action-btn.edit {
    border-color: rgba(88, 101, 242, 0.35);
    background: rgba(88, 101, 242, 0.12);
    color: #b4b8ff;
}

.giveaway-action-btn.start,
.giveaway-action-btn.resume {
    border-color: rgba(59, 165, 93, 0.4);
    background: rgba(59, 165, 93, 0.14);
    color: #89f0a8;
}

.giveaway-action-btn.end,
.giveaway-action-btn.cancel {
    border-color: rgba(237, 66, 69, 0.3);
    background: rgba(237, 66, 69, 0.1);
    color: #ff9a9c;
}

.giveaway-action-btn.pause {
    border-color: rgba(240, 177, 50, 0.4);
    background: rgba(240, 177, 50, 0.12);
    color: #ffd27a;
}

.giveaway-action-btn.extend {
    border-color: rgba(88, 101, 242, 0.3);
    background: rgba(88, 101, 242, 0.1);
    color: #a8b0ff;
}

.giveaway-action-btn.duplicate {
    border-color: rgba(148, 155, 164, 0.35);
    background: rgba(148, 155, 164, 0.1);
    color: #c9ccd1;
}

.giveaway-action-btn.delete {
    border-color: rgba(237, 66, 69, 0.35);
    background: rgba(237, 66, 69, 0.1);
    color: #ff8b8d;
}

.giveaway-action-btn.reroll {
    border-color: rgba(88, 101, 242, 0.45);
    background: rgba(88, 101, 242, 0.15);
    color: #cdd2ff;
}

.giveaway-action-btn.primary {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.4);
    color: #cdd2ff;
}

.giveaway-action-btn.primary:hover {
    background: rgba(88, 101, 242, 0.3);
}

.giveaway-action-btn.danger {
    background: rgba(237, 66, 69, 0.12);
    border-color: rgba(237, 66, 69, 0.35);
    color: #ff9a9c;
}

.giveaway-action-btn.danger:hover {
    background: rgba(237, 66, 69, 0.22);
}

.giveaway-action-btn.success {
    background: rgba(59, 165, 93, 0.14);
    border-color: rgba(59, 165, 93, 0.35);
    color: #89f0a8;
}

.giveaway-action-btn.success:hover {
    background: rgba(59, 165, 93, 0.24);
}

/* Legacy-Hilfsklassen (falls noch irgendwo genutzt) */
.giveaway-card-prizes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #b9bbbe;
    font-size: 0.85rem;
}

.giveaway-card-prizes i {
    color: #f59e0b;
}

.giveaway-card-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.giveaway-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #72767d;
    font-size: 0.8rem;
}

.giveaway-stat i {
    font-size: 0.85rem;
}

.giveaway-stat .stat-value {
    color: #b9bbbe;
    font-weight: 500;
}

.giveaway-card-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 8px;
    color: #5865f2;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.giveaway-card-countdown.ending-soon {
    background: rgba(237, 66, 69, 0.1);
    color: #ed4245;
}

.giveaway-card-countdown.ended {
    background: rgba(153, 170, 181, 0.1);
    color: #99aab5;
}

/* Giveaway Editor — Glas & Markenfarben (wie Dashboard / Embeds) */
.giveaway-editor {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.25rem;
    padding: 0.65rem 0.85rem 1.15rem;
    background: linear-gradient(
        155deg,
        rgba(88, 101, 242, 0.1) 0%,
        rgba(88, 101, 242, 0.04) 45%,
        rgba(6, 10, 28, 0.35) 100%
    );
    backdrop-filter: var(--gw-blur);
    -webkit-backdrop-filter: var(--gw-blur);
    border: 1px solid rgba(88, 101, 242, 0.18);
    border-radius: 16px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.giveaway-editor .editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding-bottom: 0.45rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    row-gap: 0.4rem;
}

.giveaway-editor .editor-header-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 200px;
    min-width: 0;
}

.giveaway-editor .editor-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.22);
    color: #a5b4fc;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.giveaway-editor .editor-header-text {
    min-width: 0;
}

.giveaway-editor .back-to-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #b9bbbe;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.giveaway-editor .back-to-list-btn:hover {
    background: rgba(88, 101, 242, 0.12);
    color: #fff;
    border-color: rgba(88, 101, 242, 0.45);
}

.giveaway-editor .editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    flex-shrink: 0;
}

.giveaway-editor .editor-actions .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.giveaway-editor .editor-actions .save-btn {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.9), #4752c4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.giveaway-editor .editor-actions .save-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.giveaway-editor .editor-actions .start-btn {
    background: linear-gradient(135deg, #34d399, #059669);
    color: #052e1a;
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}

.giveaway-editor .editor-actions .start-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.editor-layout {
    display: grid;
    grid-template-columns:
        minmax(200px, 260px)
        minmax(280px, 1fr)
        minmax(300px, min(520px, 42vw));
    grid-template-areas: "left preview right";
    gap: 0.95rem 0.85rem;
    align-items: start;
}

.editor-page-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.12rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.editor-page-subtitle {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #b9bbbe;
    margin: 0;
}

.editor-preview {
    grid-area: preview;
    min-width: 0;
}

.editor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(88, 101, 242, 0.35) transparent;
}

.editor-sidebar-left {
    grid-area: left;
}

.editor-sidebar-right {
    grid-area: right;
}

.winner-role-duration-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.6rem;
    margin-top: 0.35rem;
}

.winner-role-duration-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #b9bbbe;
    flex: 0 0 auto;
}

.winner-role-minutes-input {
    flex: 1 1 72px;
    min-width: 64px;
    max-width: 140px;
}

.winner-role-card .bonus-card-bottom.winner-role-duration-row {
    justify-content: flex-start;
}

.editor-sidebar::-webkit-scrollbar {
    width: 6px;
}

.editor-sidebar::-webkit-scrollbar-thumb {
    background: rgba(88, 101, 242, 0.35);
    border-radius: 6px;
}

/* Einstellungs-Karten im Editor — stärkeres Frosted-Glass, besser vor hellem Hintergrund */
.settings-panel {
    background: rgba(6, 8, 16, 0.52);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    border: 1px solid rgba(88, 101, 242, 0.22);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 6px 32px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.settings-panel:hover {
    border-color: rgba(88, 101, 242, 0.32);
    box-shadow:
        0 8px 36px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.settings-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: rgba(88, 101, 242, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.settings-panel .panel-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.settings-panel .panel-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.settings-panel .panel-title i {
    color: #7289da;
    font-size: 0.95rem;
}

.settings-panel .panel-toggle {
    color: #72767d;
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.settings-panel.collapsed .panel-toggle {
    transform: rotate(-90deg);
}

.settings-panel .panel-body {
    display: block;
    padding: 0.75rem 0.85rem 0.85rem;
}

select.form-input[multiple] {
    min-height: 110px;
    padding: 0.5rem;
}

.settings-panel.collapsed .panel-body {
    display: none !important;
}

.giveaway-editor .form-group {
    margin-bottom: 0.8rem;
}

.giveaway-editor .form-group:last-child {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #949ba4;
    margin-bottom: 0.4rem;
}

.form-group small {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #72767d;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(88, 101, 242, 0.55);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.12);
}

.form-textarea {
    min-height: 88px;
    resize: vertical;
}

/* Giveaway-Editor: helle System-Selects vermeiden (Windows/Chrome) */
.giveaway-editor {
    color-scheme: dark;
}

.giveaway-editor select.form-input,
.giveaway-editor select.prize-type-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(12, 12, 20, 0.94);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23b9bbbe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 14px 14px;
    padding-right: 2.35rem;
    cursor: pointer;
}

.giveaway-editor select.form-input:hover,
.giveaway-editor select.prize-type-select:hover {
    background-color: rgba(18, 18, 30, 0.96);
    border-color: rgba(255, 255, 255, 0.16);
}

.giveaway-editor select.form-input:focus,
.giveaway-editor select.prize-type-select:focus {
    background-color: rgba(18, 18, 30, 0.96);
}

.giveaway-editor select.form-input option,
.giveaway-editor select.prize-type-select option {
    background: #14141c;
    color: #eceff4;
}

.giveaway-editor .bonus-role-selector {
    background: rgba(10, 10, 18, 0.88);
    border-color: rgba(255, 255, 255, 0.12);
}

.giveaway-editor .bonus-role-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2399a1ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.15rem center;
    background-size: 12px 12px;
    padding-right: 1.35rem;
    color: #e8eaed;
}

.giveaway-editor .bonus-role-select option {
    background: #14141c;
    color: #e8eaed;
}

.form-color {
    width: 48px;
    height: 40px;
    padding: 2px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    background: transparent;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.color-picker-row .color-hex-input {
    flex: 1;
}

.prize-mode-selector,
.entry-method-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prize-mode-selector .mode-btn,
.entry-method-selector .mode-btn {
    flex: 1;
    min-width: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #b9bbbe;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prize-mode-selector .mode-btn:hover,
.entry-method-selector .mode-btn:hover {
    border-color: rgba(88, 101, 242, 0.4);
    color: #fff;
}

.prize-mode-selector .mode-btn.active,
.entry-method-selector .mode-btn.active {
    background: rgba(88, 101, 242, 0.18);
    border-color: rgba(88, 101, 242, 0.45);
    color: #c7d2fe;
}

.duration-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.duration-field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    min-width: 100px;
}

.duration-field .form-input {
    width: 72px;
}

.duration-field span {
    font-size: 0.8rem;
    color: #949ba4;
    white-space: nowrap;
}

/* Modal: Giveaway-Name */
.new-giveaway-name-modal {
    max-width: 460px;
    width: 92%;
}

.new-giveaway-name-intro {
    color: #b9bbbe;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.new-giveaway-name-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #949ba4;
    margin-bottom: 0.45rem;
}

.new-giveaway-name-input {
    width: 100%;
    margin-bottom: 1.25rem;
}

.new-giveaway-name-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.draft-save-modal .modal-header {
    gap: 0.6rem;
}

.modal-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 1rem;
    flex-shrink: 0;
}

.draft-save-desc {
    color: #b9bbbe;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 1.2rem;
}

.draft-save-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.btn-modal-discard {
    padding: 0.6rem 1.15rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.btn-modal-discard:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
}

/* Draft-Entwurfs-Banner */
.draft-resume-banner {
    margin-bottom: 0.85rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.04));
}

.draft-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #d1b04b;
}

.draft-banner-inner > i {
    font-size: 1rem;
    color: #fbbf24;
    flex-shrink: 0;
}

.draft-banner-inner > span {
    flex: 1;
}

.draft-banner-inner strong {
    color: #fde68a;
}

.draft-banner-btn {
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.draft-banner-btn:hover {
    background: rgba(251, 191, 36, 0.28);
}

.btn-modal-cancel,
.btn-modal-confirm {
    padding: 0.6rem 1.15rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #b9bbbe;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-modal-confirm {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-modal-confirm:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.giveaway-editor-preview {
    flex: 1;
    min-width: 0;
}

.giveaway-editor-sidebar {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.editor-panel {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.editor-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    user-select: none;
}

.editor-panel-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editor-panel-header h4 i {
    color: #5865f2;
    font-size: 0.85rem;
}

.editor-panel-header .toggle-icon {
    color: #72767d;
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

.editor-panel-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.editor-panel-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.editor-panel-body.collapsed {
    display: none;
}

.editor-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.editor-field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #b9bbbe;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editor-field input,
.editor-field select,
.editor-field textarea {
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.editor-field input:focus,
.editor-field select:focus,
.editor-field textarea:focus {
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.15);
}

.editor-field textarea {
    resize: vertical;
    min-height: 80px;
}

.editor-field select {
    cursor: pointer;
}

.editor-field select option {
    background: #2c2f33;
}

.editor-field-row {
    display: flex;
    gap: 0.75rem;
}

.editor-field-row .editor-field {
    flex: 1;
}

/* Prize List */
.prize-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.prize-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.prize-item .prize-drag {
    color: #72767d;
    cursor: grab;
}

.prize-item .prize-info {
    flex: 1;
    min-width: 0;
}

.prize-item .prize-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

.prize-item .prize-type-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(88, 101, 242, 0.15);
    color: #5865f2;
    text-transform: uppercase;
    font-weight: 600;
}

.prize-item .prize-quantity {
    font-size: 0.75rem;
    color: #72767d;
}

.prize-item .prize-remove {
    color: #72767d;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    font-size: 0.8rem;
}

.prize-item .prize-remove:hover {
    color: #ed4245;
    background: rgba(237, 66, 69, 0.1);
}

.add-prize-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #72767d;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.add-prize-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #b9bbbe;
}

/* Preis-Pool / Platzierung: Composer + aufklappbare Einträge */
.prize-pool-composer {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 0.65rem;
}

.prize-composer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.prize-composer-row .form-input:first-child {
    flex: 1 1 140px;
    min-width: 0;
}

.prize-composer-row .prize-type-select {
    flex: 0 0 auto;
    min-width: 7rem;
}

.prize-draft-value-row {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
}

.prize-draft-value-row .prize-value-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #72767d;
}

.prize-commit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    align-self: flex-start;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-family: inherit;
    color: #fff;
    background: rgba(88, 101, 242, 0.85);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.prize-commit-btn:hover:not(:disabled) {
    background: #5865f2;
}

.prize-commit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.prize-list-entries {
    margin-top: 0.25rem;
}

details.prize-pool-entry {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

details.prize-pool-entry + details.prize-pool-entry {
    margin-top: 0.45rem;
}

details.prize-pool-entry summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.85rem;
    color: #dcddde;
    user-select: none;
}

details.prize-pool-entry summary::-webkit-details-marker {
    display: none;
}

details.prize-pool-entry summary::before {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    color: #72767d;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

details.prize-pool-entry[open] summary::before {
    transform: rotate(-180deg);
}

details.prize-pool-entry .tier-label {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: #faa61a;
    min-width: 1.5rem;
}

details.prize-pool-entry .prize-summary-name {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

details.prize-pool-entry .prize-type-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    background: rgba(88, 101, 242, 0.15);
    color: #5865f2;
    text-transform: uppercase;
    font-weight: 600;
}

.prize-entry-remove {
    flex-shrink: 0;
    margin-left: auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #72767d;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.prize-entry-remove:hover {
    color: #ed4245;
    background: rgba(237, 66, 69, 0.12);
}

.prize-payload-body {
    padding: 0 0.65rem 0.65rem 1.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    color: #b9bbbe;
    line-height: 1.45;
}

.prize-payload-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.prize-payload-code {
    margin: 0;
    padding: 0.5rem 0.6rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: #e6e8eb;
}

.prize-payload-link {
    color: #00aff4;
    text-decoration: underline;
    word-break: break-all;
}

.prize-payload-link:hover {
    color: #4fc3f7;
}

/* Bonus Entry List */
.bonus-entry-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bonus-entry-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.bonus-entry-item select {
    flex: 1;
    padding: 0.4rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 0.8rem;
}

.bonus-entry-item input[type="number"] {
    width: 60px;
    padding: 0.4rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 0.8rem;
    text-align: center;
}

/* Discord Embed Preview (for giveaway editor) */
.discord-chat-container {
    background: rgba(47, 49, 54, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(88, 101, 242, 0.14);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.discord-chat-header {
    padding: 0.75rem 1rem;
    background: rgba(35, 37, 42, 0.75);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-chat-header i {
    color: #72767d;
}

.discord-chat-header span {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.discord-messages-area {
    padding: 1rem;
    min-height: 155px;
}

.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;
    min-width: 0;
}

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

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

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

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

.message-text {
    color: #dcddde;
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0.25rem 0;
    min-height: 1.2em;
    outline: none;
    border-radius: 4px;
}

.message-text:empty::before,
.giveaway-message-editable:empty::before {
    content: attr(data-placeholder);
    color: #72767d;
    font-style: italic;
    pointer-events: none;
}

.message-text:focus {
    background: rgba(255, 255, 255, 0.03);
}

/* Live-Embed wie Embeds-Seite: Toolbar nur bei .editing, Vorschau klickbar */
.inline-embed-editor {
    position: relative;
    max-width: 520px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Obere Zeile: Farbe links, KI (Undo/Redo/Verbessern) rechts — wie Embeds-Seite */
.embed-editor-toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 520px;
    transition: opacity 0.2s ease;
}

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

.embed-editor-toolbar .embed-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0;
}

.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-ki-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
}

.embed-ki-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    min-height: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: #dcddde;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.embed-ki-btn:hover:not(:disabled) {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.35);
    color: #fff;
}

.embed-ki-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.embed-ki-btn.embed-ki-improve--cooldown:disabled {
    opacity: 1;
    cursor: not-allowed;
    border-color: rgba(237, 66, 69, 0.45);
    background: rgba(237, 66, 69, 0.14);
    color: rgba(255, 230, 230, 0.95);
}

.embed-ki-btn > i {
    font-size: 0.72rem;
    opacity: 0.88;
}

.embed-ki-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(15, 17, 21, 0.72);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.embed-ki-overlay[hidden] {
    display: none !important;
}

.embed-ki-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #5865f2;
    border-radius: 50%;
    animation: giveawayEmbedKiSpin 0.75s linear infinite;
}

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

.embed-ki-overlay-text {
    font-size: 0.85rem;
    color: #dcddde;
    text-align: center;
}

.discord-embed-live.embed-ki-fields-locked .embed-title-edit,
.discord-embed-live.embed-ki-fields-locked .embed-description-edit {
    opacity: 0.55;
    pointer-events: none;
}

.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;
}

.giveaway-toolbar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #949ba4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.giveaway-embed-tab-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 520px;
    margin-bottom: 0.35rem;
}

.giveaway-embed-tab-bar {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.giveaway-embed-tab {
    margin: 0;
    border: none;
    background: transparent;
    color: #b5bac1;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.giveaway-embed-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.giveaway-embed-tab.active {
    color: #fff;
    background: rgba(88, 101, 242, 0.35);
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.25);
}

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

.giveaway-embed-hex-input {
    flex: 1;
    max-width: 120px;
    padding: 0.4rem 0.55rem;
    font-size: 0.8rem;
    font-family: ui-monospace, monospace;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #fff;
}

.giveaway-embed-hex-input:focus {
    outline: none;
    border-color: rgba(88, 101, 242, 0.55);
}

/* Giveaway Embed Preview / Live */
.discord-embed-live.giveaway-embed-preview {
    position: relative;
    margin-top: 0;
    background: #2f3136;
    border-radius: 4px;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
    align-items: start;
    max-width: 520px;
    border: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.discord-embed-live.giveaway-embed-preview .embed-color-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.giveaway-embed-main {
    grid-column: 1;
    min-width: 0;
    padding-left: 0.35rem;
}

.giveaway-embed-thumb-col {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

.embed-title-preview {
    color: #00aff4;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    word-break: break-word;
}

.embed-title-preview a {
    color: #00aff4;
}

.embed-description-preview {
    color: #dcddde;
    font-size: 0.875rem;
    line-height: 1.375;
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.embed-description-preview a {
    color: #00aff4;
}

.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;
    width: 100%;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

.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;
}

.embed-description-edit {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0.125rem 0.25rem;
    color: #dcddde;
    font-size: 0.875rem;
    width: 100%;
    min-height: 60px;
    resize: none;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.45;
}

.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;
}

.giveaway-embed-meta-fields.embed-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.giveaway-embed-ended-combined {
    margin-bottom: 0.65rem;
}

.giveaway-ended-combined-desc {
    white-space: pre-wrap;
    word-break: break-word;
    color: #dcddde;
    font-size: 0.875rem;
    line-height: 1.375;
}

.giveaway-embed-preview .embed-field {
    padding: 0.2rem 0;
}

.giveaway-embed-preview .embed-field-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.15rem;
}

.giveaway-meta-readonly {
    font-size: 0.8rem;
    color: #b9bbbe;
}

.giveaway-prize-live-wrap {
    min-height: 1.5rem;
}

.giveaway-embed-prize-input {
    width: 100%;
    font-size: 0.8rem;
    color: #dcddde;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.25rem 0.35rem;
    font-family: inherit;
    box-sizing: border-box;
}

.giveaway-embed-prize-input:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.45);
}

.giveaway-prize-pool-summary {
    display: block;
    font-size: 0.8rem;
    color: #b9bbbe;
    line-height: 1.35;
    padding: 0.2rem 0;
}

/* Embed-Bildupload (wie Embeds-Seite, /api/upload-embed-image) */
.giveaway-embed-main .embed-image-upload {
    margin-top: 0.5rem;
}

.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;
    padding: 0;
    overflow: visible;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.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;
    pointer-events: none;
}

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

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

.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;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.embed-image-upload.has-image .image-delete-btn,
.embed-thumbnail-upload.has-image .image-delete-btn {
    display: flex;
    opacity: 0;
}

.embed-image-upload.has-image:hover .image-delete-btn,
.embed-thumbnail-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 !important;
}

.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: border-color 0.2s ease, background 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;
    border-radius: 2px;
}

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

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

.giveaway-embed-url-block {
    margin-bottom: 0.5rem;
}

.giveaway-embed-url-block label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #72767d;
    margin-bottom: 0.2rem;
}

.giveaway-embed-url-input {
    width: 100%;
    font-size: 0.78rem;
    color: #b9bbbe;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.3rem 0.4rem;
    font-family: inherit;
    box-sizing: border-box;
}

.giveaway-embed-url-input:focus {
    outline: none;
    border-color: rgba(88, 101, 242, 0.45);
}

.giveaway-embed-footer-block label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #72767d;
    margin-bottom: 0.2rem;
}

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

.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;
}

.author-icon-upload.has-image .image-delete-btn {
    display: flex;
    opacity: 0;
}

.author-icon-upload.has-image:hover .image-delete-btn {
    opacity: 1;
}

.embed-author-input {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0.125rem 0.25rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    flex: 1;
    min-width: 0;
}

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

.embed-author-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.embed-author-preview img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer Section */
.embed-footer-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.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;
}

.footer-icon-upload.has-image .image-delete-btn {
    display: flex;
    opacity: 0;
}

.footer-icon-upload.has-image:hover .image-delete-btn {
    opacity: 1;
}

.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: inherit;
    flex: 1;
    min-width: 0;
}

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

.image-delete-btn.small {
    width: 18px;
    height: 18px;
    font-size: 0.5rem;
    top: -4px;
    right: -4px;
}

.giveaway-embed-footer-preview {
    font-size: 0.72rem;
    color: #72767d;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.giveaway-footer-preview-inner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-preview-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.giveaway-embed-preview .embed-image-container {
    margin: 0.5rem 0;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}

.giveaway-embed-preview .embed-image-container img {
    max-width: 100%;
    display: block;
}

.giveaway-embed-thumb-col .embed-thumbnail-container {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #202225;
}

.giveaway-embed-thumb-col .embed-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.embed-live-hint,
.embed-live-hint-secondary {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #b9bbbe;
    margin: 0 0 0.65rem;
}

.embed-live-hint-secondary {
    margin-bottom: 0;
    color: #72767d;
    font-size: 0.8rem;
}

.prize-simple-hint {
    font-size: 0.85rem;
    color: #b9bbbe;
    line-height: 1.45;
    margin: 0;
}

/* Preise-Panel im Editor — kompakter */
#panelPrize .panel-body {
    padding: 0.5rem 0.65rem 0.6rem;
}

#panelPrize .form-group {
    margin-bottom: 0.5rem;
}

#panelPrize .form-group:last-child {
    margin-bottom: 0;
}

#panelPrize .prize-mode-selector {
    gap: 0.35rem;
}

#panelPrize .prize-mode-selector .mode-btn {
    padding: 0.32rem 0.45rem;
    font-size: 0.74rem;
    min-width: 0;
    flex: 1 1 72px;
}

#panelPrize .prize-simple-hint {
    font-size: 0.72rem;
    line-height: 1.35;
    margin: 0;
}

#panelPrize .prize-pool-composer {
    padding: 0.42rem 0.5rem;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

#panelPrize .prize-composer-row {
    gap: 0.4rem;
}

#panelPrize .prize-commit-btn {
    padding: 0.36rem 0.65rem;
    font-size: 0.74rem;
}

#panelPrize .prize-list-entries {
    margin-top: 0.15rem;
}

#panelPrize .prize-list {
    gap: 0.35rem;
}

#panelPrize .prize-item {
    padding: 0.45rem 0.55rem;
}

#panelPrize .prize-item .prize-name {
    font-size: 0.8rem;
}

#panelPrize details.prize-pool-entry summary {
    padding: 0.45rem 0.55rem;
    font-size: 0.8rem;
}

#panelPrize details.prize-pool-entry + details.prize-pool-entry {
    margin-top: 0.35rem;
}

.giveaway-button-preview {
    margin-top: 0.65rem;
}

.discord-button {
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: default;
    font-family: inherit;
}

.discord-button-primary {
    background: #5865f2;
    color: #fff;
}

.discord-button-secondary {
    background: #4f545c;
    color: #fff;
}

.discord-button-success {
    background: #248046;
    color: #fff;
}

.discord-button-danger {
    background: #da373c;
    color: #fff;
}

/* Giveaway Entry Button Preview */
.giveaway-entry-preview {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.giveaway-entry-btn-preview {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: default;
}

.giveaway-entry-btn-preview.primary {
    background: #5865f2;
    color: #fff;
}

.giveaway-entry-btn-preview.success {
    background: #57f287;
    color: #000;
}

.giveaway-entry-btn-preview.danger {
    background: #ed4245;
    color: #fff;
}

.giveaway-entry-btn-preview.secondary {
    background: #4f545c;
    color: #fff;
}

/* Empty Giveaway State */
.empty-giveaways {
    text-align: center;
    padding: 3rem 1rem;
    color: #72767d;
}

.empty-giveaways i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-giveaways h3 {
    font-size: 1.1rem;
    color: #b9bbbe;
    margin-bottom: 0.5rem;
}

.empty-giveaways p {
    font-size: 0.85rem;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    color: #b9bbbe;
}

.radio-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.radio-option.selected {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.4);
    color: #5865f2;
}

.radio-option input[type="radio"] {
    display: none;
}

/* Role Select Chips */
.role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.4rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.role-chip {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #5865f2;
}

.role-chip .remove-role {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.role-chip .remove-role:hover {
    opacity: 1;
}

/* Giveaway Winners Display */
.winners-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(87, 242, 135, 0.05);
    border: 1px solid rgba(87, 242, 135, 0.1);
    border-radius: 8px;
}

.winner-item .winner-position {
    font-weight: 700;
    color: #f59e0b;
    font-size: 0.9rem;
    min-width: 24px;
}

.winner-item .winner-name {
    color: #fff;
    font-weight: 500;
    flex: 1;
}

.winner-item .winner-prize {
    color: #b9bbbe;
    font-size: 0.8rem;
}

/* Start/Schedule Buttons */
.editor-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.editor-action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.editor-action-btn.start {
    background: #57f287;
    color: #000;
}

.editor-action-btn.start:hover {
    background: #49d77a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(87, 242, 135, 0.3);
}

.editor-action-btn.schedule {
    background: rgba(88, 101, 242, 0.2);
    color: #5865f2;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.editor-action-btn.schedule:hover {
    background: rgba(88, 101, 242, 0.3);
    transform: translateY(-1px);
}

.editor-action-btn.save-draft {
    background: rgba(255, 255, 255, 0.05);
    color: #b9bbbe;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-action-btn.save-draft:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 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: var(--gw-glass);
    backdrop-filter: var(--gw-blur);
    -webkit-backdrop-filter: var(--gw-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;
}

.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: var(--gw-glass-hover);
    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: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    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: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.channel-option:hover {
    background: var(--gw-glass-hover);
    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: var(--gw-glass);
    backdrop-filter: var(--gw-blur);
    -webkit-backdrop-filter: var(--gw-blur);
    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 */
        height: calc(100vh - 72px);
    }

    .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:not(.channel-list-empty) {
        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;
    }

    .giveaway-editor {
        flex-direction: column;
    }
    .giveaway-editor-sidebar {
        width: 100%;
        max-height: none;
        overflow-y: visible;
    }
    .giveaway-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .giveaway-tabs .tabs-left {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        gap: 0.4rem;
    }

    .giveaway-tabs .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .giveaway-tabs .tabs-right {
        width: 100%;
    }

    .giveaway-tabs .new-giveaway-btn {
        width: 100%;
        justify-content: center;
    }

    .editor-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "preview"
            "left"
            "right";
    }

    .editor-sidebar {
        max-height: none;
        overflow-y: visible;
    }

    .giveaway-editor {
        padding: 1rem;
    }

    .requirements-row-body {
        grid-template-columns: 1fr;
    }

    .bonus-card-top {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* =============================================
   Validierungsfehler
   ============================================= */

.form-input.input-error {
    border-color: #ed4245 !important;
    background: rgba(237, 66, 69, 0.07) !important;
    box-shadow: 0 0 0 2px rgba(237, 66, 69, 0.2) !important;
}

.field-error-msg {
    display: block;
    font-size: 0.76rem;
    color: #f87171;
    margin-top: 0.3rem;
    font-weight: 500;
}

.duration-field.input-error input {
    border-color: #ed4245 !important;
    background: rgba(237, 66, 69, 0.07) !important;
}

/* =============================================
   Bedingungen (rechte Spalte, settings-panel, standard eingeklappt)
   ============================================= */

.requirements-settings-panel .panel-body.requirements-panel-body {
    padding: 0;
    overflow: hidden;
}

.requirements-settings-panel .requirements-row-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Benötigte + gesperrte Rollen nebeneinander */
.requirements-settings-panel .req-roles-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-width: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.requirements-settings-panel .req-roles-pair .req-card {
    border-bottom: none;
}

.requirements-settings-panel .req-roles-pair .req-card:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.requirements-settings-panel .req-roles-pair .req-card-header.req-card-header-roles {
    margin-bottom: 0.45rem;
    padding-bottom: 0.35rem;
    font-size: 0.72rem;
}

.requirements-settings-panel .req-card-age .req-card-header {
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
}

.requirements-settings-panel .req-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.55rem 0.65rem;
}

.requirements-settings-panel .req-card-age {
    min-width: 0;
    border-bottom: none;
}

.requirements-settings-panel .req-card-desc {
    display: none;
}

.requirements-settings-panel .role-checkbox-list,
.requirements-settings-panel .role-checkbox-list-inner {
    max-height: 100px;
}

/* Min. Account-Alter & Min. Mitgliedschaft nebeneinander */
.requirements-settings-panel .req-age-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.55rem;
    margin-top: 0.3rem;
    align-items: start;
}

.requirements-settings-panel .req-age-field label {
    font-size: 0.68rem;
    margin-bottom: 0.2rem;
}

.requirements-settings-panel .req-age-input-wrap .form-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Einspaltiger Editor (schmale Ansicht): Beschreibungen wieder sichtbar */
@media (max-width: 1306px) {
    .requirements-settings-panel .req-card-desc {
        display: block;
    }
}

@media (max-width: 560px) {
    .requirements-settings-panel .req-roles-pair {
        grid-template-columns: 1fr;
    }

    .requirements-settings-panel .req-roles-pair .req-card:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .requirements-settings-panel .req-age-fields {
        grid-template-columns: 1fr;
    }
}

.requirements-row-body {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0;
    border-top: none;
}

.req-card {
    padding: 1rem 1.15rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
}

.req-card:last-child {
    border-right: none;
}

.req-card-age {
    min-width: 200px;
    flex-shrink: 0;
}

.req-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #d4d7dc;
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.req-card-header i {
    font-size: 0.85rem;
}

.req-icon-green { color: #57f287; }
.req-icon-red   { color: #ed4245; }
.req-icon-blue  { color: #5865f2; }

.req-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    background: rgba(87, 242, 135, 0.18);
    color: #57f287;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.req-badge-red {
    background: rgba(237, 66, 69, 0.18);
    color: #f87171;
}

.req-card-desc {
    font-size: 0.78rem;
    color: #72767d;
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

/* Role Checkbox List */
.role-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(114, 137, 218, 0.3) transparent;
    padding-right: 2px;
}

.role-checkbox-list::-webkit-scrollbar { width: 4px; }
.role-checkbox-list::-webkit-scrollbar-thumb { background: rgba(114, 137, 218, 0.3); border-radius: 4px; }

.role-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
    border: 1px solid transparent;
}

.role-checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.role-checkbox-item.checked {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.25);
}

.role-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.role-cb-name {
    flex: 1;
    font-size: 0.82rem;
    color: #d4d7dc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-cb-check {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    color: transparent;
    font-size: 0.65rem;
    background: transparent;
}

.role-checkbox-item.checked .role-cb-check {
    background: #5865f2;
    border-color: #5865f2;
    color: #fff;
}

.role-empty-hint {
    font-size: 0.8rem;
    color: #72767d;
    padding: 0.5rem 0;
    text-align: center;
}

.role-empty-add-wrap {
    display: flex;
    justify-content: center;
    padding: 0.35rem 0 0.15rem;
}

.role-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(88, 101, 242, 0.08);
    color: #7289da;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.role-add-btn:hover {
    background: rgba(88, 101, 242, 0.18);
    border-color: rgba(114, 137, 218, 0.45);
    color: #b4c7ff;
}

.role-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.role-add-btn-inline {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.role-selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.25rem 0.4rem 0.25rem 0.45rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: #dcddde;
}

.role-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.role-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.role-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #72767d;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s ease, background 0.15s ease;
}

.role-chip-remove:hover {
    color: #ed4245;
    background: rgba(237, 66, 69, 0.12);
}

.role-checkbox-list-inner {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(114, 137, 218, 0.3) transparent;
    padding-right: 2px;
    margin-top: 0.35rem;
}

.role-checkbox-list-inner::-webkit-scrollbar { width: 4px; }
.role-checkbox-list-inner::-webkit-scrollbar-thumb { background: rgba(114, 137, 218, 0.3); border-radius: 4px; }

/* Rollen-Karten (Benötigt / Gesperrt) — immer ausgeklappt */
.req-card.req-card-roles {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.req-card-header.req-card-header-roles {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #d4d7dc;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.req-card-header.req-card-header-roles .req-badge {
    margin-left: auto;
}

.req-card-roles-body {
    padding: 0;
    flex: 1;
    min-height: 0;
}

.req-card.req-card-roles .req-card-desc {
    margin-top: 0;
    margin-bottom: 0.65rem;
}

.form-input-readonly {
    cursor: default;
    opacity: 0.92;
    background: rgba(0, 0, 0, 0.22) !important;
}

/* Age Fields inside req-card */
.req-age-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.req-age-field label {
    display: block;
    font-size: 0.78rem;
    color: #72767d;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.req-age-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.req-age-input-wrap .form-input {
    width: 75px;
    text-align: center;
    padding: 0.4rem 0.5rem;
}

.req-age-input-wrap span {
    font-size: 0.8rem;
    color: #72767d;
}

/* =============================================
   Bonus Panel & Cards
   ============================================= */

.bonus-panel .panel-body {
    padding-top: 0.45rem;
}

.bonus-entries-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.bonus-card {
    background: rgba(30, 30, 42, 0.7);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    transition: border-color 0.2s;
}

.bonus-card:hover {
    border-color: rgba(88, 101, 242, 0.35);
}

.bonus-card-top {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.bonus-role-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 0.65rem;
}

.bonus-role-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.2s;
}

.bonus-role-select {
    flex: 1;
    /* kein background-Kurzform: sonst überschreibt er späteres background-image im Editor */
    background-color: transparent;
    border: none;
    color: #d4d7dc;
    font-size: 0.85rem;
    font-family: inherit;
    padding: 0.5rem 0;
    cursor: pointer;
    outline: none;
    min-width: 0;
}

.bonus-role-select option {
    background: #1e1e2a;
    color: #d4d7dc;
}

.bonus-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.25);
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.1s;
}

.bonus-remove-btn:hover {
    background: rgba(237, 66, 69, 0.22);
    transform: scale(1.08);
}

.bonus-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bonus-entries-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bonus-entries-label {
    font-size: 0.78rem;
    color: #72767d;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.bonus-entries-label i {
    color: #fbbf24;
}

.bonus-entries-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.stepper-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: #b9bbbe;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.stepper-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    color: #fff;
}

.bonus-count-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0.2rem 0;
    -moz-appearance: textfield;
}

.bonus-count-input::-webkit-outer-spin-button,
.bonus-count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.bonus-count-input:focus {
    outline: none;
    background: rgba(88, 101, 242, 0.08);
}

.bonus-chance-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fbbf24;
    white-space: nowrap;
}

.bonus-chance-badge i {
    font-size: 0.8rem;
}

.add-bonus-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: rgba(88, 101, 242, 0.08);
    border: 1.5px dashed rgba(88, 101, 242, 0.3);
    border-radius: 10px;
    color: #7289da;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.add-bonus-btn:hover {
    background: rgba(88, 101, 242, 0.16);
    border-color: rgba(88, 101, 242, 0.55);
    color: #a5b4fc;
}
