:root {
    --gold: #C8A866;
    --gold-light: #E8D5A3;
    --gold-dark: #A68B4B;
    --dove-blue: #4A5D8A;
    --dove-dark: #2E3A5C;
    --bg-light: #EEF2F7;
    --bg-gradient-start: #D6E3F0;
    --bg-gradient-end: #F5F7FA;
    --text-dark: #2E3A5C;
    --text-muted: #6B7B9E;
}

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

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(160deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, #E8EDF5 100%);
    color: var(--text-dark);
}

/* Vertikale Scrollbar dauerhaft reservieren, damit der Wechsel zwischen
   hohen (Design) und niedrigen (Gewinne) Tabs nicht horizontal springt.
   scrollbar-gutter greift nur bei einem Scroll-Container (overflow != visible). */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

/* ===== EVENT MODE ===== */
.event-page {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding: 1.5vh 0 2vh 0;
}

.event-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 0;
}

/* Header with Dove Logo */
.event-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-taube-img {
    width: clamp(80px, 12vw, 160px);
    height: auto;
    max-height: 10vh;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(200, 168, 102, 0.3));
}

.gold-line {
    width: clamp(120px, 20vw, 240px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 8px auto 0;
}

/* Wheel Area */
.wheel-area {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 0 20px;
    min-height: 0;
    overflow: visible;
}

.wheel-area.wheel-tappable {
    cursor: pointer;
}

.wheel-area.wheel-swipeable {
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.wheel-area.wheel-swipeable:active {
    cursor: grabbing;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    overflow: visible;
    margin: 0 auto;
    flex-shrink: 0;
}

/* Marker stays fixed at top */
.wheel-marker {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 54px;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
    pointer-events: none;
}

.wheel-marker svg {
    width: 100%;
    height: 100%;
}

/* SVG rotates as one solid unit */
.wheel-svg {
    width: 100%;
    height: 100%;
    transform-origin: center center;
    will-change: transform;
    overflow: visible;
    filter: drop-shadow(0 15px 50px rgba(74, 93, 138, 0.18));
    pointer-events: none;
}

/* Center hub - stays fixed, does NOT rotate */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 20%;
    min-width: 55px;
    min-height: 55px;
    max-width: 120px;
    max-height: 120px;
    border-radius: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff 0%, #F8F5F0 100%);
    border: 4px solid var(--gold);
    box-shadow: 
        0 0 0 4px rgba(200, 168, 102, 0.12),
        0 0 0 8px rgba(200, 168, 102, 0.06),
        0 10px 40px rgba(74, 93, 138, 0.18),
        inset 0 -4px 12px rgba(200, 168, 102, 0.1);
    overflow: hidden;
    pointer-events: none;
}

.wheel-center::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1.5px solid rgba(200, 168, 102, 0.25);
}

.wheel-center .center-taube {
    width: 85%;
    height: 85%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

/* Spin trigger area */
.spin-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 0 20px 1vh;
}

.spin-button {
    padding: 12px 48px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(145deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(200, 168, 102, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.25s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(200, 168, 102, 0.45);
}

.spin-button:active:not(:disabled) {
    transform: translateY(0);
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.spin-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.spin-hint::before,
.spin-hint::after {
    content: '';
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.spin-hint::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* Lead Capture Form */
.lead-form-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 90%;
    max-width: 420px;
    animation: leadFormIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Zentrierung im transform beibehalten, damit der Dialog nicht springt */
@keyframes leadFormIn {
    from { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.lead-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(46, 58, 92, 0.25),
        0 0 0 1px rgba(200, 168, 102, 0.2);
}

.lead-form-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--gold-light) 0%, var(--gold) 100%);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 8px 24px rgba(200, 168, 102, 0.35);
}

.lead-form-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: #1E293B;
    margin-bottom: 8px;
    font-weight: 700;
}

.lead-form-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 24px;
    line-height: 1.5;
}

.lead-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.lead-form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #1E293B;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.lead-form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 168, 102, 0.15);
}

.lead-form-input::placeholder {
    color: #94A3B8;
}

.lead-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    font-size: 0.8rem;
    color: #64748B;
    line-height: 1.4;
    cursor: pointer;
    margin-top: 4px;
}

.lead-consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: #D4AF37;
    cursor: pointer;
}

.consent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.consent-badge.given {
    background: #D1FAE5;
    color: #166534;
}

.consent-badge.missing {
    background: #FEE2E2;
    color: #991B1B;
}

.lead-form-error {
    color: #EF4444;
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.lead-form-submit {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(200, 168, 102, 0.35);
    transition: all 0.25s ease;
    margin-bottom: 12px;
}

.lead-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(200, 168, 102, 0.45);
}

.lead-form-skip {
    background: none;
    border: none;
    color: #94A3B8;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.lead-form-skip:hover {
    color: #64748B;
}

/* Secret admin corner */
.secret-corner {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    z-index: 50;
    cursor: pointer;
    opacity: 0;
}

/* Win Overlay */
.win-overlay {
    position: fixed;
    inset: 0;
    background: rgba(46, 58, 92, 0.88);
    backdrop-filter: blur(14px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.win-fade-enter-active,
.win-fade-leave-active {
    transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
}

.win-fade-enter-from,
.win-fade-leave-to {
    opacity: 0;
}

.win-fade-enter-active .win-content {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.win-fade-leave-active .win-content {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: scale(0.92);
    opacity: 0;
}

.win-content {
    text-align: center;
    padding: 40px;
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 600px;
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.win-badge {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    color: var(--gold-light);
    text-shadow: 0 4px 20px rgba(200, 168, 102, 0.4);
}

.win-image {
    width: 320px;
    height: 320px;
    object-fit: contain;
    margin: 0 auto 20px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}

.win-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.win-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.9;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.85);
}

.next-round-btn {
    padding: 14px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.85rem, 2.2vw, 1.1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 2px solid var(--gold);
    border-radius: 50px;
    background: transparent;
    color: var(--gold-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-round-btn:hover {
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(200, 168, 102, 0.3);
}

/* Confetti */
.confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 101;
}

/* ===== PORTRAIT / VERTICAL DISPLAY (e.g. 1080x1920) ===== */
@media (orientation: portrait) {
    .event-page {
        justify-content: flex-start;
        padding: 0.5vh 0 1.5vh 0;
        gap: 0.5vh;
    }
    
    .event-header {
        padding: 0.5vh 16px 0;
    }
    
    .logo-taube-img {
        width: clamp(280px, 72vw, 560px);
        max-height: 32vh;
    }
    
    .gold-line {
        display: none;
    }
    
    .wheel-area {
        flex: 1;
        justify-content: flex-start;
        padding: 0 12px;
        min-height: 0;
    }
    
    .wheel-wrapper {
        width: 100%;
        height: 100%;
        max-width: 84vh;
        max-height: 84vh;
    }
    
    .spin-area {
        margin-top: 0;
        padding: 0 20px 0.5vh;
    }
    
    .spin-button {
        padding: 32px 112px;
        font-size: clamp(2rem, 5.6vw, 2.8rem);
        letter-spacing: 8px;
    }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 640px) {
    .event-page {
        justify-content: flex-start;
        padding: 0.5vh 0 1.5vh 0;
        gap: 0.5vh;
    }
    
    .event-header {
        padding: 0.5vh 16px 0;
    }
    
    .logo-taube-img {
        width: clamp(280px, 72vw, 560px);
        max-height: 32vh;
    }
    
    .gold-line {
        display: none;
    }
    
    .wheel-area {
        flex: 1;
        justify-content: flex-start;
        padding: 0 12px;
        min-height: 0;
    }
    
    .wheel-wrapper {
        width: 100%;
        height: 100%;
        max-width: 84vh;
        max-height: 84vh;
    }
    
    .wheel-marker {
        top: -18px;
        width: 32px;
        height: 40px;
    }
    
    .wheel-center {
        width: 18%;
        height: 18%;
        min-width: 50px;
        min-height: 50px;
    }
    
    .spin-button {
        padding: 32px 112px;
        font-size: clamp(2rem, 5.6vw, 2.8rem);
        letter-spacing: 8px;
    }
    
    .spin-hint {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }
    
    .spin-hint::before,
    .spin-hint::after {
        width: 12px;
    }
    
    .win-badge {
        font-size: 2rem;
    }
    
    .win-name {
        font-size: 1.3rem;
    }
    
    .win-image {
        width: 220px;
        height: 220px;
    }
}

/* ===== NEW PREMIUM ADMIN ===== */
.admin-page {
    min-height: 100vh;
    background: #F8F5EE;
    font-family: 'Montserrat', sans-serif;
}

.admin-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Sticky Header */
.admin-header-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 245, 238, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #E2E8F0;
    padding: 16px 0;
}

.admin-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.admin-header-title {
    display: flex;
    flex-direction: column;
}

.admin-header-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    line-height: 1.3;
}

.admin-header-title span {
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 500;
}

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

/* Buttons */
.btn-gold {
    padding: 10px 24px;
    border-radius: 12px;
    background: #D4AF37;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gold:hover {
    background: #C4A030;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-ghost {
    padding: 10px 24px;
    border-radius: 12px;
    background: #fff;
    color: #1E293B;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.btn-ghost.active {
    background: #ECFDF5;
    border-color: #10B981;
    color: #047857;
}

.btn-ghost.active:hover {
    background: #D1FAE5;
}

.lead-count-badge {
    background: #D4AF37;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}

.lead-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-export {
    color: #1E293B;
}

.btn-export svg {
    stroke: #D4AF37;
}

.lead-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lead-stat-card {
    background: linear-gradient(145deg, #fff 0%, #F8F5F0 100%);
    border: 1px solid rgba(200, 168, 102, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lead-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.lead-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.12);
    color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.lead-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 4px;
    line-height: 1.2;
}

.lead-stat-label {
    font-size: 0.75rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .lead-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lead-hint {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 4px;
}

.btn-danger-soft {
    padding: 10px 20px;
    border-radius: 12px;
    background: #FEF2F2;
    color: #DC2626;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #FECACA;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger-soft:hover {
    background: #FEE2E2;
}

.btn-add {
    padding: 10px 20px;
    border-radius: 12px;
    background: #1E3A8A;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-add:hover {
    background: #1E40AF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-test {
    padding: 12px 28px;
    border-radius: 12px;
    background: #1E3A8A;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.btn-test:hover {
    background: #1E40AF;
    transform: translateY(-1px);
}

.btn-test:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #F1F5F9;
    color: #1E293B;
}

.btn-icon.danger:hover {
    background: #FEF2F2;
    color: #DC2626;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 24px 0;
}

.kpi-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.kpi-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon.blue { background: #EFF6FF; color: #1E3A8A; }
.kpi-icon.green { background: #ECFDF5; color: #059669; }
.kpi-icon.gold { background: #FFFBEB; color: #D4AF37; }
.kpi-icon.purple { background: #F5F3FF; color: #7C3AED; }
.kpi-icon.rose { background: #FFF1F2; color: #E11D48; }

.kpi-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.kpi-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.2;
}

.kpi-desc {
    font-size: 0.75rem;
    color: #94A3B8;
    margin-top: 4px;
}

.kpi-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.kpi-status.running {
    background: #ECFDF5;
    color: #059669;
}

.kpi-status.paused {
    background: #FFFBEB;
    color: #D97706;
}

.kpi-status.ended {
    background: #F1F5F9;
    color: #64748B;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Main Content Layout */
.admin-main-content {
    display: flex;
    gap: 24px;
    padding-bottom: 32px;
}

.admin-left-col {
    flex: 0 0 42%;
    min-width: 0;
}

.admin-right-col {
    flex: 1;
    min-width: 0;
}

/* Cards */
.admin-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.admin-card-header {
    padding: 20px 24px 0;
}

.admin-card-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1E3A8A;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-card-header p {
    font-size: 0.8rem;
    color: #94A3B8;
    margin: 4px 0 0;
}

.admin-card-body {
    padding: 20px 24px 24px;
}

/* Preview Section */
.preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
}

.preview-area .wheel-wrapper {
    width: 340px;
    height: 340px;
}

/* Tab-Navigation */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E2E8F0;
}

.admin-tab {
    appearance: none;
    background: none;
    border: none;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.admin-tab:hover {
    color: #1E293B;
}

.admin-tab.active {
    color: var(--gold, #C8A866);
    border-bottom-color: var(--gold, #C8A866);
}

/* Workspace: sticky Vorschau links, umschaltbare Panels rechts */
.admin-workspace {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}

.admin-preview-col {
    position: sticky;
    top: 88px;
}

.admin-panel-col {
    min-width: 0;
}

@media (max-width: 1024px) {
    .admin-workspace {
        grid-template-columns: 1fr;
    }
    .admin-preview-col {
        position: static;
    }
}

/* Live-Branding-Vorschau: Bühne mit Hintergrund-Theme, Logo & Akzentrahmen */
.preview-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px 16px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    border: 3px solid transparent;
    transition: background-image 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.preview-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.preview-stage > * {
    position: relative;
    z-index: 1;
}

.preview-logo {
    max-height: 48px;
    max-width: 60%;
    margin-bottom: 12px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.preview-stage-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    text-align: center;
}

.preview-stage-btn {
    margin-top: 14px;
    padding: 10px 28px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: default;
    pointer-events: none;
}

.stats-export-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}
.stats-export-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-right: 4px;
}

.preview-stage-hint {
    margin-top: 14px;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: #94A3B8;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ===== Eigener Farbwähler (ColorPicker) ===== */
.cp {
    position: relative;
}
.cp-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cp-trigger:hover {
    border-color: #CBD5E1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.cp-swatch {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}
.cp-swatch-lg {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}
.cp-hex-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1E293B;
    letter-spacing: 0.02em;
}
.cp-popover {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    left: 0;
    width: 240px;
    padding: 14px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}
.cp-sv {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 10px;
    cursor: crosshair;
    touch-action: none;
}
.cp-sv-thumb {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.cp-hue {
    position: relative;
    height: 14px;
    margin-top: 12px;
    border-radius: 999px;
    cursor: pointer;
    touch-action: none;
    background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.cp-hue-thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.cp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.cp-hex-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1E293B;
}
.cp-hex-input:focus {
    outline: none;
    border-color: var(--gold, #C8A866);
}
.cp-presets {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 6px;
    margin-top: 12px;
}
.cp-preset {
    aspect-ratio: 1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    transition: transform 0.1s ease;
}
.cp-preset:hover {
    transform: scale(1.12);
}
.cp-preset.active {
    box-shadow: 0 0 0 2px var(--gold, #C8A866);
}

/* ===== Rad-Stil & Design Panel ===== */
.design-section {
    padding: 18px 0;
    border-top: 1px solid #F1F5F9;
}
.design-section:first-child {
    padding-top: 0;
    border-top: none;
}
.design-section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94A3B8;
    margin-bottom: 14px;
}
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px 20px;
    align-items: start;
}
.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.preset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1E293B;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.preset-btn:hover {
    border-color: var(--gold, #C8A866);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.preset-swatch {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.design-range {
    width: 100%;
    accent-color: var(--gold, #C8A866);
    cursor: pointer;
}

.border-row {
    padding: 14px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #FBFCFE;
}
.border-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.border-remove {
    background: none;
    border: none;
    color: #EF4444;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.border-remove:hover {
    text-decoration: underline;
}

.preview-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #F8FAFC;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: #64748B;
    line-height: 1.5;
}

.preview-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Form Elements */
.admin-form-group {
    margin-bottom: 16px;
}

.modal-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.admin-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 6px;
}

.admin-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #1E293B;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.admin-input:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

.admin-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #1E293B;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    box-sizing: border-box;
    resize: vertical;
    min-height: 120px;
}

.admin-textarea:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

.form-hint {
    font-size: 0.75rem;
    color: #94A3B8;
    margin-top: 6px;
}

.email-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .email-settings-grid {
        grid-template-columns: 1fr;
    }
}

.admin-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #1E293B;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.admin-select:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

/* === THEME DROPDOWN WITH PREVIEW === */
.theme-dropdown {
    position: relative;
    width: 100%;
}

.theme-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #1E293B;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.theme-dropdown-trigger:hover {
    border-color: #1E3A8A;
}

.theme-dropdown-trigger svg {
    margin-left: auto;
    flex-shrink: 0;
    color: #64748B;
}

.theme-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    z-index: 100;
    padding: 6px;
}

.theme-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.85rem;
    color: #1E293B;
}

.theme-dropdown-item:hover {
    background: #F1F5F9;
}

.theme-dropdown-item.active {
    background: #EEF2FF;
    color: #1E3A8A;
    font-weight: 600;
}

.theme-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.06);
}

/* === SEGMENT THEME PREVIEW IN TABLE === */
.seg-theme-preview {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seg-theme-preview img {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Progress Bar */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.progress-header .label {
    color: #64748B;
}

.progress-header .value {
    color: #1E293B;
    font-weight: 600;
}

.progress-bar-bg {
    height: 8px;
    background: #F1F5F9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: #1E3A8A;
    transition: width 0.5s ease;
}

/* Segment Table */
.segment-table-wrap {
    overflow-x: auto;
}

.segment-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

.segment-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #64748B;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}

.segment-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #F1F5F9;
    color: #1E293B;
    vertical-align: middle;
}

.segment-table tbody tr:hover td {
    background: #F8FAFC;
}

.segment-table tbody tr.dragging {
    opacity: 0.4;
    background: #E0E7FF;
}

.segment-table tbody tr.dragging td {
    background: #E0E7FF;
}

.segment-table tbody tr.drag-over {
    border-top: 3px solid #6366F1;
}

.segment-table tbody tr.drag-over td {
    background: #EEF2FF;
}

.drag-handle {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    color: #CBD5E1;
    cursor: grab;
    vertical-align: middle;
    transition: color 0.15s ease;
}

.segment-table tbody tr:hover .drag-handle {
    color: #6366F1;
}

.segment-table .num {
    color: #94A3B8;
    font-weight: 600;
    font-size: 0.8rem;
}

.segment-table .seg-name {
    font-weight: 600;
}

.segment-table .seg-theme {
    font-size: 0.75rem;
    color: #64748B;
    text-transform: capitalize;
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.segment-table .actions {
    display: flex;
    gap: 4px;
}

.segment-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #F8FAFC;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1E293B;
    border-top: 1px solid #E2E8F0;
}

/* Upload Area */
.upload-zone {
    border: 2px dashed #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #FAFBFC;
}

.upload-zone:hover {
    border-color: #D4AF37;
    background: #FFFBEB;
}

.upload-zone.dragover {
    border-color: #C8A866;
    background: #FEF6E0;
    box-shadow: 0 0 0 3px rgba(200, 168, 102, 0.25);
    transform: scale(1.01);
}

.upload-preview {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 12px;
}

.upload-label {
    font-size: 0.8rem;
    color: #64748B;
    margin-bottom: 4px;
}

.upload-btn {
    margin-top: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #E2E8F0;
    color: #1E293B;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.upload-btn:hover {
    background: #F1F5F9;
}

/* Color Input */
.color-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-preview {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.color-input-wrap .admin-input {
    flex: 1;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Form Validation */
.admin-input.error {
    border-color: #EF4444;
    background: #FEF2F2;
}
.form-error {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

/* Branding Grid */
.branding-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.branding-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branding-item label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1E293B;
}

.font-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    font-size: 1.5rem;
    color: #1E293B;
}

/* Section Header */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Campaign Reset Area */
.campaign-reset {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.modal-close:hover {
    color: #1E293B;
    background: #F1F5F9;
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F5EE;
    position: relative;
    padding: 20px;
}

.login-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 28px;
    padding: 48px 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.login-logo-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo-wrap img {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
}

.login-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #1E293B;
}

.login-subtitle {
    text-align: center;
    color: #64748B;
    font-size: 0.95rem;
    margin-bottom: 36px;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 8px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    pointer-events: none;
    z-index: 2;
}

.login-input-wrap input {
    width: 100%;
    padding: 12px 44px 12px 44px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    color: #1E293B;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.login-input-wrap input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 168, 102, 0.12);
}

.login-input-wrap input::placeholder {
    color: #94A3B8;
}

.login-eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.login-eye-btn:hover {
    color: #64748B;
    background: #F1F5F9;
}

.login-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
}

.login-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #C8A866 0%, #B08D4B 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    margin-top: 4px;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200, 168, 102, 0.35);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.login-footer span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
}

.login-footer p {
    color: #94A3B8;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #E2E8F0;
    color: #1E293B;
    font-weight: 600;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    border-color: #D4AF37;
    color: #1E3A8A;
}

.toast.error {
    border-color: #EF4444;
    color: #DC2626;
}

/* Responsive Admin */
@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .admin-main-content {
        flex-direction: column;
    }
    .admin-left-col,
    .admin-right-col {
        flex: 1;
        width: 100%;
    }
    .branding-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: 0 16px;
    }
    .admin-header-inner {
        padding: 0 16px;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .branding-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-header-title h1 {
        font-size: 1rem;
    }
    .admin-header-actions .btn-ghost span {
        display: none;
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .branding-grid {
        grid-template-columns: 1fr;
    }
    .preview-area .wheel-wrapper {
        width: 260px;
        height: 260px;
    }
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Theme Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 110px));
    gap: 12px;
    justify-content: start;
}

.theme-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    aspect-ratio: 9 / 16;
    width: 100%;
}

.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 93, 138, 0.15);
}

.theme-card.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 168, 102, 0.2);
}

.theme-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme-card .theme-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.theme-card-custom {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    color: #94A3B8;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: repeat(auto-fill, minmax(76px, 90px));
    }
}

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

/* Toggle Switch */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.toggle-switch input {
    display: none;
}
.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #CBD5E1;
    border-radius: 12px;
    transition: background 0.25s ease;
    flex-shrink: 0;
}
.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider {
    background: #1E3A8A;
}
.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(20px);
}
.toggle-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
}
.toggle-hint {
    font-size: 0.75rem;
    color: #94A3B8;
    margin-top: 2px;
}
.toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #F1F5F9;
}
.toggle-row:first-child {
    border-top: none;
}
.toggle-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Background removal toggle - modal version */
.bg-removal-toggle {
    margin-top: 12px;
}
.bg-removal-toggle input {
    display: none;
}
.bg-removal-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.bg-removal-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: #CBD5E1;
    border-radius: 13px;
    flex-shrink: 0;
    transition: background 0.25s ease;
}
.bg-removal-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bg-removal-toggle input:checked + .bg-removal-label .bg-removal-switch {
    background: #1E3A8A;
}
.bg-removal-toggle input:checked + .bg-removal-label .bg-removal-switch::after {
    transform: translateX(22px);
}
.bg-removal-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.3;
}

/* === BACKGROUND REMOVAL TOGGLE - ROBUST VERSION === */
.bg-removal-toggle {
    margin-top: 12px;
    display: block;
}
.bg-removal-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.bg-removal-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    width: 100%;
}
.bg-removal-switch {
    display: inline-block;
    position: relative;
    width: 48px;
    height: 26px;
    background: #CBD5E1;
    border-radius: 13px;
    flex-shrink: 0;
    transition: background 0.25s ease;
    vertical-align: middle;
}
.bg-removal-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bg-removal-toggle input[type="checkbox"]:checked + .bg-removal-label .bg-removal-switch {
    background: #1E3A8A;
}
.bg-removal-toggle input[type="checkbox"]:checked + .bg-removal-label .bg-removal-switch::after {
    transform: translateX(22px);
}
.bg-removal-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.3;
    flex: 1;
}


/* === KAMPAGNE ABgeschlossen Overlay === */
.campaign-ended-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 41, 59, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.campaign-ended-content {
    text-align: center;
    padding: 40px;
    color: #F8F4EC;
}

.campaign-ended-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.campaign-ended-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #C8A866;
}

.campaign-ended-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #E2E8F0;
    margin-bottom: 8px;
}

.campaign-ended-sub {
    font-size: 0.95rem !important;
    color: #94A3B8 !important;
    margin-top: 16px;
}

.campaign-ended-hint {
    font-size: 0.9rem !important;
    color: #CBD5E1 !important;
    margin-top: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.campaign-admin-btn {
    margin-top: 20px;
    padding: 12px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(145deg, #C8A866 0%, #A68B4B 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(200, 168, 102, 0.35);
}

.campaign-admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(200, 168, 102, 0.5);
}

.campaign-admin-btn:active {
    transform: translateY(0);
}


/* === KPI RESET CARD === */
.kpi-card.kpi-reset {
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
}
.kpi-card.kpi-reset:hover {
    border-color: #EF4444;
    background: #FEF2F2;
}
.kpi-card.kpi-reset .kpi-icon.red {
    background: #FEF2F2;
    color: #EF4444;
}
.kpi-card.kpi-reset .kpi-reset-text {
    color: #EF4444;
    font-weight: 600;
    font-size: 0.95rem;
}

/* === DANGER BUTTON === */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: #EF4444;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-danger:hover {
    background: #DC2626;
}
.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* === DREHVERLAUF TABELLE === */
.spin-history-wrap {
    max-height: 400px;
    overflow-y: auto;
}

.spin-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.spin-history-table thead {
    position: sticky;
    top: 0;
    background: #F8FAFC;
    z-index: 1;
}

.spin-history-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #64748B;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #E2E8F0;
}

.spin-history-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
}

.spin-history-table tbody tr:hover {
    background: #F8FAFC;
}

.spin-history-table .num {
    width: 40px;
    color: #94A3B8;
    font-size: 0.8rem;
}

.spin-history-table .spin-name {
    font-weight: 500;
}

.spin-history-table .spin-date {
    color: #475569;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
}

.spin-history-table .spin-time {
    color: #475569;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
}

.spin-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #94A3B8;
    gap: 8px;
}

.spin-history-empty p {
    font-size: 0.9rem;
    margin: 0;
}

/* === POINT4 SPIN – MULTI-TENANT UI === */

/* Landing Page – Point4 Spin */
:root {
    --p4-navy: #0b155d;
    --p4-navy-light: #1a2678;
    --p4-gold: #c9a05c;
    --p4-gold-light: #d4b06e;
    --p4-gold-dark: #a88447;
    --p4-bg: #f8f9fc;
    --p4-text: #1a1a1a;
    --p4-muted: #6b7280;
    --landing-nav-height: 72px;
}

.landing-page {
    font-family: 'Montserrat', sans-serif;
    color: var(--p4-text);
    background: #ffffff;
    overflow-x: hidden;
}

/* Navigation */
.landing-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--landing-nav-height);
    padding: 8px 64px;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(11,21,93,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.landing-nav-logo img {
    height: 52px;
    width: auto;
}

.landing-nav-links {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.landing-nav-links a {
    color: var(--p4-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav-links a:hover {
    color: var(--p4-gold);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.landing-nav-btn-demo,
.landing-nav-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1.5px solid #e5e7eb;
}

.landing-nav-btn-demo {
    background: #fff;
    color: var(--p4-navy);
}

.landing-nav-btn-demo:hover {
    border-color: var(--p4-gold);
    color: var(--p4-gold);
}

.landing-nav-btn-login {
    background: var(--p4-navy);
    color: #fff;
    border-color: var(--p4-navy);
}

.landing-nav-btn-login:hover {
    background: var(--p4-navy-light);
    border-color: var(--p4-navy-light);
}

/* Hero Section */
.landing-hero-section {
    display: grid;
    grid-template-columns: minmax(auto, 620px) minmax(auto, 640px);
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--landing-nav-height));
    padding: clamp(24px, 4vh, 56px) clamp(20px, 3vw, 60px);
    background: url('../assets/img/HeroBackgroundImg.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.landing-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.landing-hero-glow-1 {
    top: -10%;
    right: -5%;
    width: 55%;
    height: 70%;
    background: radial-gradient(circle, rgba(201,160,92,0.14) 0%, transparent 70%);
}

.landing-hero-glow-2 {
    display: none;
}

.landing-hero-glow-3 {
    display: none;
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    width: 100%;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: clamp(5px, 0.8vh, 8px) clamp(10px, 1.2vh, 16px);
    background: rgba(201,160,92,0.12);
    color: var(--p4-gold-dark);
    border-radius: 100px;
    font-size: clamp(0.6rem, 0.5rem + 0.2vh, 0.75rem);
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: clamp(12px, 1.8vh, 22px);
}

.landing-hero-content h1 {
    font-size: clamp(2.2rem, 1.6rem + 2.2vh, 4.2rem);
    line-height: 1.06;
    font-weight: 800;
    color: var(--p4-navy);
    margin: 0 0 clamp(14px, 1.8vh, 26px) 0;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 20px rgba(255,255,255,0.7), 0 1px 4px rgba(255,255,255,0.5);
}

.landing-hero-content > p {
    font-size: clamp(0.95rem, 0.8rem + 0.4vh, 1.2rem);
    line-height: 1.6;
    color: #3a3f4f;
    margin: 0 0 clamp(18px, 2.5vh, 32px) 0;
    max-width: 500px;
    text-shadow: 0 1px 12px rgba(255,255,255,0.6);
}

.landing-hero-features {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.4vh, 14px);
    margin-bottom: clamp(22px, 3.5vh, 40px);
    max-width: 540px;
}

.landing-hero-feature {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vh, 16px);
}

.landing-feature-icon {
    width: clamp(32px, 4vh, 46px);
    height: clamp(32px, 4vh, 46px);
    border-radius: 50%;
    background: var(--p4-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-feature-icon svg {
    width: clamp(14px, 1.8vh, 20px);
    height: clamp(14px, 1.8vh, 20px);
}

.landing-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.landing-feature-text strong {
    font-size: clamp(0.9rem, 0.75rem + 0.35vh, 1.1rem);
    font-weight: 700;
    color: var(--p4-navy);
    text-shadow: 0 1px 10px rgba(255,255,255,0.5);
}

.landing-feature-text span {
    font-size: clamp(0.8rem, 0.7rem + 0.25vh, 0.98rem);
    color: #3a3f4f;
    line-height: 1.4;
    text-shadow: 0 1px 8px rgba(255,255,255,0.5);
}

.landing-hero-actions {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vh, 30px);
    flex-wrap: wrap;
}

.landing-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1vh, 12px);
    padding: clamp(12px, 1.6vh, 18px) clamp(22px, 2.6vh, 32px);
    background: var(--p4-gold);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 0.8rem + 0.3vh, 1.1rem);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.landing-btn-primary:hover {
    background: var(--p4-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201,160,92,0.3);
}

.landing-btn-gold {
    background: var(--p4-gold) !important;
}

.landing-btn-gold:hover:not(:disabled) {
    background: var(--p4-gold-dark) !important;
}

.landing-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--p4-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s;
}

.landing-link-arrow:hover {
    gap: 12px;
    color: var(--p4-gold);
}

/* Hero Visual */
.landing-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 35px 70px rgba(11,21,93,0.18));
    transform: perspective(1200px) rotateY(-5deg) rotateX(1deg);
    transform-style: preserve-3d;
}

.hero-wheel-image {
    max-height: clamp(480px, 62vh, 780px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 22px;
}

.hero-buzzer-wrap {
    position: absolute;
    right: clamp(-40px, -4vh, -70px);
    bottom: clamp(-25px, -3vh, -40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.hero-buzzer-wrap::before {
    content: '';
    position: absolute;
    bottom: clamp(14px, 1.8vh, 22px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(140px, 18vh, 220px);
    height: clamp(90px, 12vh, 140px);
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.45) 40%, transparent 70%);
    filter: blur(22px);
    pointer-events: none;
    z-index: -1;
}

.hero-buzzer-image {
    width: clamp(160px, 22vh, 290px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

.hero-buzzer-label {
    position: absolute;
    right: clamp(-12px, -1.8vh, -24px);
    top: clamp(-40px, -5vh, -62px);
    display: flex;
    align-items: flex-start;
    gap: 4px;
    color: var(--p4-navy);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.9rem, 0.8rem + 0.4vh, 1.25rem);
    font-weight: 600;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
}

.hero-buzzer-label span {
    display: block;
}

.hero-buzzer-arrow {
    width: clamp(22px, 3vh, 36px);
    height: clamp(30px, 4vh, 46px);
    color: var(--p4-navy);
    margin-top: clamp(8px, 1.2vh, 14px);
    margin-left: -4px;
}

/* Event Types Section */
.landing-event-types-section {
    padding: 90px 64px;
    text-align: center;
    background: #fff;
}

.landing-event-types-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--p4-navy);
    margin: 0 0 12px 0;
}

.landing-event-types-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-event-type-card {
    text-align: center;
    padding: 28px 12px;
    border-radius: 16px;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-event-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(11,21,93,0.06);
}

.landing-event-type-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(201,160,92,0.12);
    color: var(--p4-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.landing-event-type-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--p4-navy);
    margin: 0 0 8px 0;
}

.landing-event-type-card p {
    font-size: 0.8rem;
    color: var(--p4-muted);
    line-height: 1.5;
    margin: 0;
}

/* Login Card */
.landing-login-card {
    width: 100%;
    max-width: 360px;
    padding: 36px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(11,21,93,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.landing-login-card h2 {
    font-size: 1.6rem;
    color: var(--p4-navy);
    margin: 0 0 8px 0;
    font-weight: 700;
    text-align: center;
}

.landing-login-card > p {
    font-size: 0.85rem;
    color: var(--p4-muted);
    margin: 0 0 28px 0;
    text-align: center;
    line-height: 1.5;
}

.landing-login-form .login-field {
    margin-bottom: 18px;
}

.landing-login-form .login-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.landing-login-form input[type="email"],
.landing-login-form input[type="password"],
.landing-login-form input[type="text"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #111;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.landing-login-form input:focus {
    border-color: var(--p4-gold);
    box-shadow: 0 0 0 3px rgba(201,160,92,0.1);
}

.landing-login-form .login-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.landing-login-form .login-input-wrap input {
    padding-right: 40px;
}

.landing-login-form .login-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
}

.landing-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.landing-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--p4-muted);
    cursor: pointer;
}

.landing-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--p4-gold);
}

.landing-login-form .login-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--p4-navy);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.landing-login-form .login-submit-btn:hover:not(:disabled) {
    background: var(--p4-navy-light);
}

.landing-login-form .login-submit-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.landing-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 0.8rem;
}

.landing-login-divider::before,
.landing-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.landing-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--p4-navy);
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.landing-btn-outline:hover {
    border-color: var(--p4-gold);
    color: var(--p4-gold);
}

.landing-login-signup {
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--p4-muted);
    text-align: center;
    line-height: 1.5;
}

.landing-login-signup a {
    color: var(--p4-navy);
    text-decoration: none;
    font-weight: 600;
}

.landing-login-signup a:hover {
    color: var(--p4-gold);
}

.landing-link {
    color: var(--p4-navy);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.landing-link:hover {
    color: var(--p4-gold);
}

.login-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-bottom: 14px;
    text-align: center;
}

/* Login Modal */
.landing-login-modal {
    position: fixed;
    inset: 0;
    background: rgba(11,21,93,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    animation: modalFadeIn 0.2s ease;
}

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

.landing-login-card-modal {
    position: relative;
    max-width: 400px;
    width: 100%;
    animation: modalSlideIn 0.25s ease;
}

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

.landing-login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    color: var(--p4-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.landing-login-close:hover {
    background: var(--p4-gold);
    color: #fff;
}

/* Benefits Section */
.landing-benefits-section,
.landing-how-section {
    padding: 90px 64px;
    text-align: center;
    background: #fff;
}

.landing-benefits-section h2,
.landing-how-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--p4-navy);
    margin: 0 0 12px 0;
}

.landing-section-line {
    width: 50px;
    height: 3px;
    background: var(--p4-gold);
    margin: 0 auto 48px;
    border-radius: 2px;
}

.landing-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-benefit-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    background: #f9fafb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(11,21,93,0.06);
}

.landing-benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(201,160,92,0.12);
    color: var(--p4-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.landing-benefit-icon.gold {
    background: rgba(201,160,92,0.15);
}

.landing-benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--p4-navy);
    margin: 0 0 10px 0;
}

.landing-benefit-card p {
    font-size: 0.85rem;
    color: var(--p4-muted);
    line-height: 1.6;
    margin: 0;
}

/* How it works */
.landing-how-section {
    background: var(--p4-bg);
}

.landing-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-step {
    flex: 1;
    max-width: 240px;
    text-align: center;
    position: relative;
}

.landing-step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: var(--p4-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.landing-step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--p4-gold);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.landing-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--p4-navy);
    margin: 0 0 8px 0;
}

.landing-step p {
    font-size: 0.8rem;
    color: var(--p4-muted);
    line-height: 1.6;
    margin: 0;
}

.landing-step-arrow {
    color: #d1d5db;
    font-size: 1.5rem;
    margin-top: 24px;
}

/* CTA Section */
.landing-cta-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 64px;
    background: linear-gradient(135deg, #eef0f7 0%, #f8f9fc 100%);
}

.landing-cta-content {
    max-width: 480px;
}

.landing-cta-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--p4-navy);
    margin: 0 0 16px 0;
    line-height: 1.15;
    letter-spacing: -1px;
}

.landing-cta-content p {
    font-size: 1rem;
    color: var(--p4-muted);
    line-height: 1.7;
    margin: 0 0 28px 0;
}

.landing-cta-dashboard {
    display: flex;
    justify-content: center;
}

.landing-dashboard-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(11,21,93,0.1);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.landing-dashboard-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--p4-navy);
    margin-bottom: 20px;
}

.landing-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.landing-dashboard-kpis div {
    text-align: center;
    padding: 12px 8px;
    background: #f9fafb;
    border-radius: 10px;
}

.landing-dashboard-kpis strong {
    display: block;
    font-size: 1.1rem;
    color: var(--p4-navy);
    margin-bottom: 4px;
}

.landing-dashboard-kpis span {
    font-size: 0.6rem;
    color: var(--p4-muted);
}

.landing-dashboard-chart {
    height: 80px;
    position: relative;
    margin-bottom: 16px;
    background: linear-gradient(to top, rgba(201,160,92,0.1) 0%, transparent 60%);
    border-radius: 10px;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, var(--p4-gold) 50%, transparent 100%);
    clip-path: polygon(0% 80%, 15% 70%, 30% 75%, 45% 55%, 60% 60%, 75% 40%, 90% 45%, 100% 20%, 100% 100%, 0% 100%);
    opacity: 0.6;
}

.chart-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 20px;
}

.chart-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--p4-gold);
    transform: translateY(var(--y));
}

.chart-dots span:nth-child(1) { --y: 10px; }
.chart-dots span:nth-child(2) { --y: 18px; }
.chart-dots span:nth-child(3) { --y: 14px; }
.chart-dots span:nth-child(4) { --y: 30px; }
.chart-dots span:nth-child(5) { --y: 24px; }
.chart-dots span:nth-child(6) { --y: 42px; }
.chart-dots span:nth-child(7) { --y: 36px; }

.landing-dashboard-donut {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 80px;
    height: 80px;
}

.landing-dashboard-donut svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.landing-dashboard-donut span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--p4-navy);
}

/* Footer */
.landing-footer-section {
    background: #fff;
    padding: 60px 64px 30px;
    border-top: 1px solid #f3f4f6;
}

.landing-footer-main {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.landing-footer-brand img {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.landing-footer-powered {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.landing-footer-powered span {
    font-size: 0.75rem;
    color: var(--p4-muted);
}

.landing-footer-powered strong {
    font-size: 0.9rem;
    color: var(--p4-navy);
}

.landing-footer-links {
    display: flex;
    gap: 80px;
}

.landing-footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--p4-navy);
    margin: 0 0 16px 0;
}

.landing-footer-links a {
    display: block;
    color: var(--p4-muted);
    text-decoration: none;
    font-size: 0.8rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.landing-footer-links a:hover {
    color: var(--p4-gold);
}

.landing-footer-copy {
    text-align: right;
}

.landing-footer-copy p {
    font-size: 0.75rem;
    color: var(--p4-muted);
    margin: 0 0 4px 0;
}

.landing-social {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.landing-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--p4-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s;
}

.landing-social a:hover {
    background: var(--p4-gold);
    color: #fff;
}

/* Dashboard */
.dashboard-page {
    min-height: 100vh;
    background: #f8f9fa;
    font-family: 'Montserrat', sans-serif;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-logo {
    height: 40px;
    width: auto;
}

.dashboard-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

.dashboard-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

.dashboard-subtitle {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-user {
    font-size: 0.9rem;
    color: #555;
}

.dashboard-logout {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-logout:hover {
    border-color: #111;
    color: #111;
}

.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dashboard-kpi {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dashboard-kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.dashboard-kpi-label {
    font-size: 0.85rem;
    color: #888;
}

.dashboard-kpi.status-running .dashboard-kpi-value { color: #10B981; }
.dashboard-kpi.status-paused .dashboard-kpi-value { color: #F59E0B; }
.dashboard-kpi.status-ended .dashboard-kpi-value { color: #EF4444; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.dashboard-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.dashboard-card h3 {
    font-size: 1.1rem;
    color: #111;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.dashboard-wheel-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 460px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 24px;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.dashboard-btn {
    flex: 1;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-btn:hover {
    border-color: #111;
    color: #111;
}

.dashboard-btn-primary {
    background: #111;
    color: #fff;
    border-color: #111;
}

.dashboard-btn-primary:hover {
    background: #333;
}

.dashboard-empty {
    color: #999;
    font-size: 0.9rem;
    padding: 20px 0;
}

.dashboard-history {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-history li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-history li:last-child {
    border-bottom: none;
}

.dashboard-history-name {
    font-weight: 600;
    color: #333;
}

.dashboard-history-time {
    font-size: 0.85rem;
    color: #888;
    font-family: 'Courier New', monospace;
}

.dashboard-footer {
    text-align: center;
    padding: 24px;
    font-size: 0.85rem;
    color: #999;
}

.dashboard-footer a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

/* Super Admin */
.superadmin-page {
    min-height: 100vh;
    background: #f8f9fa;
    font-family: 'Montserrat', sans-serif;
}

.superadmin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px 60px;
}

.superadmin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.superadmin-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    text-align: center;
}

.superadmin-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    line-height: 1.2;
}

.superadmin-stat-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.superadmin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.superadmin-tab {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.superadmin-tab.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.superadmin-section {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.superadmin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.superadmin-section-header .dashboard-btn {
    flex: 0 0 auto;
}

.superadmin-section-header h2 {
    font-size: 1.25rem;
    color: #111;
    margin: 0;
}

.superadmin-table {
    width: 100%;
    border-collapse: collapse;
}

.superadmin-table th,
.superadmin-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.superadmin-table th {
    color: #666;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.superadmin-table td {
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.inactive {
    background: #FEE2E2;
    color: #991B1B;
}

.superadmin-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    color: #555;
    transition: color 0.2s;
}

.superadmin-icon-btn:hover {
    color: #111;
}

.superadmin-icon-btn-danger {
    color: #991B1B;
}

.superadmin-icon-btn-danger:hover {
    color: #DC2626;
}

.superadmin-icon-btn-gear {
    font-size: 1.1rem;
    color: #555;
    margin-right: 4px;
}

.superadmin-icon-btn-gear:hover {
    color: #111;
}

.dashboard-btn-danger {
    background: #DC2626;
    color: #fff;
    border-color: #DC2626;
}

.dashboard-btn-danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
}

.modal-card-confirm .confirm-text {
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.modal-card-confirm .confirm-warning {
    display: block;
    margin-top: 10px;
    color: #991B1B;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-subtitle {
    color: #555;
    font-size: 0.95rem;
    margin: -12px 0 20px 0;
    line-height: 1.4;
}

.settings-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.settings-profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-profile-email {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
}

.settings-profile-role {
    font-size: 0.85rem;
    color: #666;
}

.settings-profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-header-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.settings-header-email {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
}

.settings-header-role {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-card-credentials .credentials-box {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.credential-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.credential-row:last-child {
    border-bottom: none;
}

.credential-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.credential-value {
    font-family: monospace;
    font-size: 1rem;
    color: #111;
    word-break: break-all;
    text-align: right;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-card h3 {
    font-size: 1.25rem;
    color: #111;
    margin: 0 0 24px 0;
}

.modal-field {
    margin-bottom: 16px;
}

.modal-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.modal-field input,
.modal-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    outline: none;
}

.modal-field input:focus,
.modal-field select:focus {
    border-color: #111;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 1200px) {
    .landing-hero-section {
        grid-template-columns: minmax(auto, 520px) minmax(auto, 520px);
        gap: 30px;
        padding: 30px 40px;
    }
    .landing-hero-content h1 {
        font-size: 2.8rem;
    }
    .landing-hero-content > p {
        font-size: 1rem;
    }
    .landing-hero-features {
        gap: 10px;
    }
    .landing-feature-icon {
        width: 36px;
        height: 36px;
    }
    .hero-wheel-image {
        max-height: 540px;
    }
    .hero-buzzer-image {
        width: 190px;
    }
    .hero-buzzer-wrap {
        right: -45px;
        bottom: -30px;
    }
    .landing-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-event-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .landing-cta-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .landing-cta-content {
        max-width: 600px;
        margin: 0 auto;
    }
    .landing-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .landing-footer-copy {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 1024px) {
    .landing-nav {
        padding: 10px 40px;
        grid-template-columns: 1fr auto;
        row-gap: 10px;
    }
    .landing-nav-links {
        grid-column: 1 / -1;
        gap: 20px;
        justify-content: center;
        padding-top: 6px;
    }
    .landing-nav-actions {
        gap: 10px;
    }
    .landing-hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 30px;
        padding-bottom: 40px;
        min-height: auto;
    }
    .landing-hero-content h1 {
        font-size: 2.4rem;
    }
    .landing-hero-content > p {
        font-size: 1rem;
    }
    .landing-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .landing-hero-features {
        max-width: 520px;
        text-align: left;
        gap: 10px;
    }
    .landing-feature-icon {
        width: 36px;
        height: 36px;
    }
    .landing-feature-icon svg {
        width: 16px;
        height: 16px;
    }
    .landing-feature-text strong {
        font-size: 0.95rem;
    }
    .landing-feature-text span {
        font-size: 0.85rem;
    }
    .landing-hero-visual {
        order: -1;
    }
    .hero-image-wrapper {
        transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
    }
    .hero-wheel-image {
        max-height: 420px;
    }
    .hero-buzzer-image {
        width: 160px;
    }
    .hero-buzzer-wrap {
        right: -35px;
        bottom: -25px;
    }
    .hero-buzzer-label {
        font-size: 0.95rem;
        top: -42px;
        right: -12px;
    }
    .hero-buzzer-arrow {
        width: 26px;
        height: 34px;
    }
    .landing-steps {
        flex-wrap: wrap;
    }
    .landing-step-arrow {
        display: none;
    }
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .landing-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 20px;
    }
    .landing-nav-logo img {
        height: 44px;
    }
    .landing-nav-links {
        display: none;
    }
    .landing-nav-actions {
        margin-left: auto;
    }
    .landing-nav-btn-demo span,
    .landing-nav-btn-login span {
        display: none;
    }
    .landing-hero-section,
    .landing-event-types-section,
    .landing-benefits-section,
    .landing-how-section,
    .landing-cta-section,
    .landing-footer-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .landing-hero-section {
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 30px;
    }
    .landing-hero-content h1 {
        font-size: 1.8rem;
    }
    .landing-hero-content > p {
        font-size: 0.9rem;
    }
    .landing-hero-features {
        width: 100%;
        gap: 8px;
    }
    .landing-feature-icon {
        width: 32px;
        height: 32px;
    }
    .landing-feature-icon svg {
        width: 14px;
        height: 14px;
    }
    .landing-feature-text strong {
        font-size: 0.88rem;
    }
    .landing-feature-text span {
        font-size: 0.78rem;
    }
    .hero-wheel-image {
        max-height: 280px;
    }
    .hero-buzzer-image {
        width: 100px;
    }
    .hero-buzzer-wrap {
        right: -10px;
        bottom: -10px;
    }
    .hero-buzzer-label {
        font-size: 0.75rem;
        top: -34px;
        right: -4px;
    }
    .hero-buzzer-arrow {
        width: 18px;
        height: 26px;
    }
    .landing-event-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .landing-benefits-grid {
        grid-template-columns: 1fr;
    }
    .landing-footer-main {
        grid-template-columns: 1fr;
    }
    .landing-footer-links {
        flex-direction: column;
        gap: 32px;
    }
    .landing-footer-copy {
        text-align: left;
    }
    .landing-social {
        justify-content: flex-start;
    }
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-header {
        padding: 16px 20px;
    }
    .dashboard-main {
        padding: 20px;
    }
}


/* ============================================================
   SUPERADMIN SETTINGS PAGE - LANDING PAGE STYLE
   ============================================================ */

.superadmin-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    font-family: 'Montserrat', sans-serif;
    color: #f8fafc;
    position: relative;
    overflow-x: hidden;
}

.superadmin-page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 160, 92, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.superadmin-page::after {
    content: '';
    position: absolute;
    bottom: -300px;
    left: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.superadmin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 160, 92, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.superadmin-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.superadmin-header-logo {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.superadmin-header-logo:hover {
    transform: scale(1.05);
}

.superadmin-header-logo img {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
}

.superadmin-header-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.superadmin-header-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.3px;
}

.superadmin-header-subtitle {
    font-size: 0.8rem;
    color: #c9a05c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.superadmin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.superadmin-logout {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(201, 160, 92, 0.4);
    border-radius: 8px;
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.superadmin-logout:hover {
    background: rgba(201, 160, 92, 0.15);
    border-color: #c9a05c;
}

.settings-header-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.settings-header-email {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
}

.settings-header-role {
    font-size: 0.75rem;
    color: #c9a05c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Main Content */
.superadmin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 80px;
    position: relative;
    z-index: 1;
}

/* Hero */
.superadmin-hero {
    position: relative;
    padding: 48px 40px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: 24px;
    border: 1px solid rgba(201, 160, 92, 0.15);
    overflow: hidden;
}

.superadmin-hero-content {
    position: relative;
    z-index: 2;
}

.superadmin-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.superadmin-hero p {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0;
    max-width: 500px;
}

.superadmin-hero-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 160, 92, 0.15) 0%, transparent 70%);
    z-index: 1;
}

/* Sections */
.superadmin-section {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.superadmin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.superadmin-section-header h2 {
    font-size: 1.3rem;
    color: #0f172a;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.superadmin-section-header h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #c9a05c 0%, #e8c87a 100%);
    border-radius: 2px;
}

/* Profile */
.settings-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.settings-profile-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-profile-email {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.settings-profile-role {
    font-size: 0.9rem;
    color: #c9a05c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-profile-actions .dashboard-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.settings-profile-actions .dashboard-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.superadmin-section .dashboard-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.superadmin-section .dashboard-btn:hover {
    background: #f8fafc;
    border-color: #c9a05c;
    color: #0f172a;
}

.superadmin-section .dashboard-btn-primary {
    background: linear-gradient(135deg, #c9a05c 0%, #b08d4b 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(201, 160, 92, 0.3);
}

.superadmin-section .dashboard-btn-primary:hover {
    background: linear-gradient(135deg, #d4ab67 0%, #bb9854 100%);
    box-shadow: 0 6px 20px rgba(201, 160, 92, 0.4);
    color: #fff;
}

.superadmin-section .dashboard-btn-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.superadmin-section .dashboard-btn-danger:hover {
    background: #fecaca;
}

/* Table */
.superadmin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.superadmin-table th,
.superadmin-table td {
    text-align: left;
    padding: 16px 12px;
    font-size: 0.9rem;
}

.superadmin-table th {
    color: #64748b;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid #e2e8f0;
}

.superadmin-table td {
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.superadmin-table tbody tr:hover td {
    background: #f8fafc;
}

.superadmin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Action Icons */
.superadmin-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 6px;
}

.superadmin-icon-btn:hover {
    background: #f8fafc;
    border-color: #c9a05c;
    color: #c9a05c;
    transform: translateY(-1px);
}

.superadmin-icon-btn-danger:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

/* Modals */
.superadmin-page .modal-overlay {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.superadmin-page .modal-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
}

.superadmin-page .modal-card h3 {
    color: #0f172a;
    font-size: 1.25rem;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.superadmin-page .modal-field label {
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
}

.superadmin-page .modal-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.superadmin-page .modal-field input:focus {
    outline: none;
    border-color: #c9a05c;
    box-shadow: 0 0 0 3px rgba(201, 160, 92, 0.1);
}

.superadmin-page .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.superadmin-page .form-error {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Toast */
.superadmin-page .toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 1000;
}

.superadmin-page .toast {
    padding: 14px 20px;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    margin-bottom: 10px;
    border-left: 4px solid #c9a05c;
}

.superadmin-page .toast-error {
    border-left-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .superadmin-header {
        padding: 14px 20px;
    }
    .superadmin-header-logo img {
        height: 34px;
    }
    .superadmin-header-brand {
        display: none;
    }
    .superadmin-main {
        padding: 24px 20px 60px;
    }
    .superadmin-hero {
        padding: 32px 24px;
    }
    .superadmin-hero h1 {
        font-size: 1.5rem;
    }
    .superadmin-section {
        padding: 24px;
    }
    .superadmin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .settings-profile {
        flex-direction: column;
        align-items: flex-start;
    }
    .settings-profile-actions {
        width: 100%;
    }
    .settings-profile-actions .dashboard-btn {
        flex: 1;
    }
}

/* ===== SEGMENT IMAGE EDITOR ===== */
.segment-image-editor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.segment-image-editor-svg {
    width: 400px;
    height: 400px;
    max-width: 100%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 40px rgba(74, 93, 138, 0.12), inset 0 0 0 1px rgba(200, 168, 102, 0.15);
    user-select: none;
    touch-action: none;
}

.segment-image-editor-svg image {
    user-select: none;
    -webkit-user-drag: none;
}

.segment-image-editor-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.segment-image-editor-control {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.segment-image-editor-control label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 60px;
}

.segment-image-editor-control input[type="range"] {
    flex: 1;
    min-width: 150px;
}

.segment-image-editor-value {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 40px;
    text-align: right;
}

.segment-image-editor-group {
    border-top: 1px solid rgba(200, 168, 102, 0.2);
    padding-top: 16px;
    margin-top: 4px;
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .segment-image-editor-svg {
        width: 280px;
        height: 280px;
    }

    .segment-image-editor-control {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .segment-image-editor-control input[type="range"] {
        width: 100%;
    }

    .segment-image-editor-value {
        text-align: left;
    }
}
