/* Modal Overlay & Base */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.create-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #FFFFFF;
    z-index: 9999;
    max-width: 900px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 24px auto;
}

.create-modal.submit-modal {
    max-width: 600px;
    max-height: calc(100vh - 64px);
}

.create-modal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    color: #6B7280;
    z-index: 100;
    position: relative;
}

.modal-close i {
    pointer-events: none;
}

.modal-close:hover {
    background: #F3F4F6;
    color: #111827;
}

.modal-content {
    padding: 28px;
}

/* Submit Modal Styles */
.submit-modal__content {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.submit-modal__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.submit-modal__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.submit-modal__label {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
}

.submit-modal__platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.platform-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-chip:hover {
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.platform-chip.is-selected {
    border-color: #6366F1;
    background: rgba(99, 102, 241, 0.05);
}

.platform-chip__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #FFFFFF;
}

.platform-chip__icon--tiktok {
    background: #000000;
}

.platform-chip__icon--instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b);
}

.platform-chip__icon--youtube {
    background: #EF4444;
}

.platform-chip__icon--facebook {
    background: #1877F2;
}

.platform-chip__icon--snapchat {
    background: #FFFC00;
    color: #000000;
}

.platform-chip__icon--twitch {
    background: #9146FF;
}

.platform-chip__icon--twitter {
    background: #000000;
}

.platform-chip__icon--linkedin {
    background: #0A66C2;
}

.platform-chip__icon--pinterest {
    background: #E60023;
}

.platform-chip__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.platform-chip__text strong {
    color: #111827;
    font-size: 14px;
}

.submit-modal__section input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.submit-modal__section input:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.submit-modal__url-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #FFFFFF;
    overflow: hidden;
    transition: all 0.2s ease;
}

.submit-modal__url-wrapper:focus-within {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.submit-modal__url-prefix {
    padding: 12px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    background: #F9FAFB;
    border-right: 1px solid #E5E7EB;
    white-space: nowrap;
}

.submit-modal__url-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
}

.submit-modal__hint {
    font-size: 13px;
    color: #6B7280;
}

.submit-modal__feedback {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.submit-modal__feedback.is-visible {
    display: flex;
}

.submit-modal__feedback--success {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.submit-modal__feedback--error {
    background: rgba(248, 113, 113, 0.1);
    color: #991B1B;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.submit-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.submit-modal__actions .btn-secondary {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-modal__actions .btn-secondary:hover {
    background: #E5E7EB;
    color: #374151;
}

.submit-modal__actions .btn-primary,
.submit-modal__actions .btn-submit-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.submit-modal__actions .btn-primary:hover,
.submit-modal__actions .btn-submit-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Create Challenge Submit Button */
.btn-submit-challenge {
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-submit-challenge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-submit-challenge:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit-challenge i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .create-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: calc(100% - 40px);
        max-width: none;
        max-height: calc(100vh - 60px);
        margin: 0;
        border-radius: 16px;
    }

    .create-modal.show {
        transform: translate(-50%, -50%) scale(1);
    }

    .create-modal.submit-modal {
        width: calc(100% - 40px);
        max-height: calc(100vh - 80px);
        margin: 0;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-content {
        padding: 20px 16px;
    }

    .submit-modal__platforms {
        grid-template-columns: 1fr;
    }

    .submit-modal__actions {
        justify-content: center;
        gap: 16px;
    }

    .submit-modal__actions .btn-secondary,
    .submit-modal__actions .btn-primary,
    .submit-modal__actions .btn-submit-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .btn-submit-challenge {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F3F4F6;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.step.active .step-number {
    background: #6366F1;
    color: #FFFFFF;
}

.step.completed .step-number {
    background: #059669;
    color: #FFFFFF;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: #9CA3AF;
}

.step.active .step-label {
    color: #111827;
}

.step-divider {
    width: 60px;
    height: 2px;
    background: #E5E7EB;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.step-title {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.step-description {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #DC2626;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: all 0.2s ease;
    background: #FFFFFF;
}

.input-wrapper textarea {
    resize: vertical;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}

.btn-back {
    padding: 12px 32px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    color: #374151;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-back:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.btn-next {
    padding: 12px 32px;
    background: #6366F1;
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-next:hover {
    background: #4F46E5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.platform-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.platform-option {
    padding: 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FFFFFF;
}

.platform-option:hover {
    border-color: #6366F1;
    background: #F9FAFB;
}

.platform-option.selected {
    border-color: #6366F1;
    background: #EEF2FF;
}

.platform-option i {
    font-size: 40px;
    color: #6B7280;
    margin-bottom: 8px;
}

.platform-option.selected i {
    color: #6366F1;
}

.platform-option span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Advanced Parameters Section */
.advanced-section {
    margin: 24px 0;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: #FAFBFC;
}

.advanced-toggle {
    width: 100%;
    padding: 14px 20px;
    background: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.advanced-toggle:hover {
    background: #F9FAFB;
}

.advanced-toggle i {
    font-size: 18px;
    transition: transform 0.2s;
}

.advanced-toggle.active i {
    transform: rotate(90deg);
}

.advanced-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #FAFBFC;
}

.advanced-content.show {
    padding: 20px;
    max-height: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #9CA3AF;
    pointer-events: none;
}

.input-with-icon {
    padding-left: 48px !important;
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 400;
}

/* Platform Categories */
.platform-category {
    margin-bottom: 32px;
}

.platform-category:last-of-type {
    margin-bottom: 0;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5E7EB;
}

.category-title i {
    font-size: 20px;
    color: #6366F1;
}

/* Platforms Grid - Professional Design */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.platform-card {
    position: relative;
    padding: 24px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFFFFF;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E5E7EB 0%, #E5E7EB 100%);
    transition: all 0.3s;
}

.platform-card:hover {
    border-color: #C7D2FE;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
}

.platform-card.selected,
.platform-card.active {
    border-color: #6366F1;
    background: linear-gradient(135deg, #FAFBFF 0%, #F5F7FF 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.platform-card.selected::before,
.platform-card.active::before {
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
}

.platform-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.platform-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s;
}

.platform-icon-wrapper.tiktok {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    color: #EF4444;
}

.platform-icon-wrapper.instagram {
    background: linear-gradient(135deg, #FEF3F2 0%, #FED7D7 100%);
    color: #F97316;
}

.platform-icon-wrapper.youtube {
    background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%);
    color: #DC2626;
}

.platform-icon-wrapper.snapchat {
    background: linear-gradient(135deg, #FEF9C3 0%, #FEF08A 100%);
    color: #CA8A04;
}

.platform-icon-wrapper.facebook {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #2563EB;
}

.platform-icon-wrapper.twitch {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    color: #7C3AED;
}

.platform-icon-wrapper.twitter {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    color: #0EA5E9;
}

.platform-icon-wrapper.linkedin {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #1D4ED8;
}

.platform-icon-wrapper.pinterest {
    background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
    color: #DB2777;
}

.platform-card.selected .platform-icon-wrapper {
    transform: scale(1.05);
}

.platform-checkmark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E5E7EB;
    color: transparent;
    transition: all 0.3s;
}

.platform-card.selected .platform-checkmark,
.platform-card.active .platform-checkmark {
    background: #6366F1;
    color: #FFFFFF;
}

.platform-card-body {
    text-align: left;
}

.platform-name {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.platform-desc {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 12px;
}

.platform-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9CA3AF;
}

.platform-stats i {
    font-size: 14px;
}

/* Distribution Mode Selector */
.distribution-mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.distribution-mode-option {
    padding: 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #FFFFFF;
}

.distribution-mode-option input {
    display: none;
}

.distribution-mode-option:hover {
    border-color: #C7D2FE;
    background: #F9FAFB;
}

.distribution-mode-option.active {
    border-color: #6366F1;
    background: #EEF2FF;
}

.mode-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}

.mode-content i {
    font-size: 20px;
    color: #6366F1;
}

/* Preset Options */
.preset-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.preset-card {
    position: relative;
    padding: 20px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #FFFFFF;
}

.preset-card input {
    display: none;
}

.preset-card:hover {
    border-color: #C7D2FE;
    transform: translateY(-2px);
}

.preset-card.active {
    border-color: #6366F1;
    background: #EEF2FF;
}

.preset-content {
    text-align: center;
}

.preset-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.preset-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.preset-distribution {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

/* Show More Button */
.btn-show-more {
    width: 100%;
    margin-top: 16px;
    padding: 12px 20px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #6366F1;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-show-more:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.btn-show-more i {
    font-size: 16px;
    transition: transform 0.2s;
}

.more-presets {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Winners Distribution */
.distribution-section {
    margin-top: 24px;
    animation: fadeIn 0.3s;
}

.btn-generate-winners {
    margin-left: 12px;
    padding: 10px 20px;
    background: #6366F1;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-generate-winners:hover {
    background: #4F46E5;
}

.custom-winners-list {
    margin-top: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 12px;
    background: rgba(250, 251, 252, 0.6);
    backdrop-filter: blur(8px);
}

.winner-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.winner-row:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
}

.winner-row:last-child {
    margin-bottom: 0;
}

.winner-position {
    font-size: 15px;
    font-weight: 600;
    color: #6366F1;
    text-align: center;
}

.winner-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.winner-amount {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.winner-unit {
    position: absolute;
    right: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #6B7280;
    pointer-events: none;
}

.winner-amount-euro {
    font-size: 15px;
    font-weight: 600;
    color: #10B981;
    text-align: right;
}

.distribution-total {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    gap: 12px;
    flex-wrap: wrap;
}

.total-percentage {
    color: #6366F1;
    font-size: 16px;
    font-weight: 700;
}

.total-euro {
    color: #059669;
    font-size: 18px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.distribution-total.error {
    background: rgba(254, 226, 226, 0.8);
    border-color: rgba(220, 38, 38, 0.3);
}

.distribution-total.error .total-percentage {
    color: #DC2626;
}

.distribution-total.error .total-euro {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
}

.image-upload {
    border: 2px dashed #E5E7EB;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F9FAFB;
}

.image-upload:hover {
    border-color: #6366F1;
    background: #F9FAFB;
}

.image-upload.has-image {
    border-style: solid;
    padding: 0;
    overflow: hidden;
}

.image-preview {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: none;
}

.image-upload.has-image .image-preview {
    display: block;
}

.image-upload.has-image .upload-placeholder {
    display: none;
}

.upload-placeholder i {
    font-size: 48px;
    color: #9CA3AF;
    margin-bottom: 16px;
}

.upload-placeholder p {
    font-size: 15px;
    color: #6B7280;
    font-weight: 500;
}

.upload-placeholder span {
    font-size: 13px;
    color: #9CA3AF;
    display: block;
    margin-top: 8px;
}

.prize-input {
    position: relative;
}

.prize-input .currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: #6B7280;
    pointer-events: none;
}

.summary-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
    gap: 16px;
}

.summary-row:last-child {
    border-bottom: none;
    padding-top: 16px;
    margin-top: 8px;
}

.summary-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 100px;
}

.summary-value {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.summary-value .platform-count {
    display: inline-block;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: #4F46E5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.summary-row.total {
    font-size: 18px;
}

.summary-row.total .summary-label {
    color: #111827;
    font-weight: 600;
}

.summary-row.total .summary-value {
    color: #6366F1;
    font-size: 24px;
}

.stripe-badge-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
    margin-top: 16px;
}

.stripe-badge-modal i {
    color: #6366F1;
}

@media (max-width: 768px) {
    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-content {
        padding: 24px 16px;
    }

    .progress-steps {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        gap: 8px;
    }

    .step {
        flex-shrink: 0;
    }

    .step-label {
        display: none;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-divider {
        width: 30px;
    }

    .step-title {
        font-size: 24px;
    }

    .step-description {
        font-size: 15px;
    }

    /* Form responsive */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .btn-back,
    .btn-next {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    /* Advanced section mobile */
    .advanced-section {
        margin: 20px -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .advanced-toggle {
        padding: 14px 16px;
        font-size: 14px;
    }

    .advanced-content.show {
        padding: 16px;
    }

    /* Platform categories mobile */
    .platform-category {
        margin-bottom: 24px;
    }

    .category-title {
        font-size: 15px;
        padding-bottom: 10px;
    }

    .category-title i {
        font-size: 18px;
    }

    /* Platforms grid mobile */
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .platform-card {
        padding: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .platform-card-header {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .platform-card-body {
        flex: 1;
        min-width: 0;
    }

    .platform-icon-wrapper {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .platform-checkmark {
        width: 28px;
        height: 28px;
        font-size: 16px;
        position: static;
        opacity: 0.3;
    }

.platform-card.selected .platform-checkmark,
.platform-card.active .platform-checkmark {
        opacity: 1;
    }

    .platform-name {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .platform-desc {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .platform-stats {
        font-size: 11px;
    }

    .platform-stats span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    /* Distribution mode mobile */
    .distribution-mode-selector {
        gap: 10px;
    }

    .distribution-mode-option {
        padding: 14px;
    }

    .mode-content {
        font-size: 14px;
        gap: 8px;
    }

    .mode-content i {
        font-size: 18px;
    }

    /* Preset options mobile */
    .preset-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .preset-card {
        padding: 16px;
    }

    .preset-icon {
        font-size: 28px;
    }

    .preset-title {
        font-size: 13px;
    }

    .preset-distribution {
        font-size: 11px;
    }

    /* Custom winners mobile */
    .winner-row {
        grid-template-columns: 50px 1fr 100px;
        gap: 12px;
        padding: 10px;
    }

    .winner-position {
        font-size: 14px;
    }

    .winner-amount {
        padding: 8px 36px 8px 12px;
        font-size: 15px;
    }

    .winner-unit {
        right: 12px;
        font-size: 15px;
    }

    .winner-amount-euro {
        font-size: 14px;
    }

    .distribution-total {
        padding: 14px 16px;
        font-size: 15px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .total-percentage,
    .total-euro {
        font-size: 16px;
    }

    /* Image upload mobile */
    .image-upload {
        padding: 32px 16px;
    }

    .image-preview {
        height: 200px;
    }

    .upload-placeholder i {
        font-size: 40px;
    }

    .upload-placeholder p {
        font-size: 14px;
    }

    /* Summary card mobile */
    .summary-card {
        padding: 16px;
    }

    .summary-row {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .summary-label {
        font-size: 13px;
    }

    .summary-value {
        font-size: 14px;
    }

    .summary-row.total {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 14px;
        margin-top: 6px;
    }

    .summary-row.total .summary-label {
        font-size: 16px;
    }

    .summary-row.total .summary-value {
        font-size: 20px;
    }

    /* Input responsive */
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }

    .btn-generate-winners {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        justify-content: center;
    }

    .form-group > .input-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .form-group > .input-wrapper > input[type="number"] {
        width: 100% !important;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .modal-content {
        padding: 32px 24px;
    }

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .preset-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        gap: 12px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .create-modal {
        width: calc(100% - 32px);
        max-height: calc(100vh - 48px);
    }

    .create-modal.submit-modal {
        width: calc(100% - 32px);
    }

    .modal-header {
        padding: 16px 18px;
    }

    .modal-header h2 {
        font-size: 18px;
        gap: 8px;
    }

    .modal-header h2 i {
        font-size: 22px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .modal-content {
        padding: 20px 16px;
    }

    .step-title {
        font-size: 22px;
    }

    .step-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .progress-steps {
        gap: 6px;
        margin-bottom: 32px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .step-divider {
        width: 20px;
    }

    .platform-category {
        margin-bottom: 20px;
    }

    .category-title {
        font-size: 14px;
    }

    .btn-show-more {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        padding: 16px;
    }

    .step-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .step-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .platform-category {
        margin-bottom: 16px;
    }

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-preview {
        height: 180px;
    }
}
