/* Success Modal */

.sem-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
}

.sem-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sem-modal-content {
    background: var(--modal-bg, #ffffff);
    border-radius: 16px;
    padding: 32px 28px 28px;
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* Close Button */
.sem-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sem-close:hover {
    color: #374151;
}

/* Success Icon */
.sem-success-icon {
    width: 60px;
    height: 60px;
    background: var(--icon-color, #10b981);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 16px;
}

/* Title & Message */
.sem-title {
    color: var(--title-color, #1f2937);
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
    text-align: center;
    line-height: 1.2;
}

.sem-message {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.5;
}

/* Actions Container */
.sem-actions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Section */
.sem-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Section Title */
.sem-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    text-align: center;
}

/* Buttons Row — calendar always stays in ONE row */
.sem-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Calendar section: force single row, no wrap */
.sem-section:first-of-type .sem-buttons-row {
    flex-wrap: nowrap;
    gap: 8px;
}

/* Buttons — shared layout */
.sem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 18px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

/* Calendar buttons */
.sem-btn.sem-cal {
    border: 1px solid var(--cal-border, #2d6cdf);
    background: var(--cal-bg, #2d6cdf);
    color: var(--cal-text, #ffffff);
}

.sem-btn.sem-cal:hover {
    background: var(--cal-hover-bg, #1b5ac0);
    color: var(--cal-hover-text, #ffffff);
}

/* Share buttons */
.sem-btn.sem-share {
    border: 1px solid var(--share-border, #10b981);
    background: var(--share-bg, #10b981);
    color: var(--share-text, #ffffff);
}

.sem-btn.sem-share:hover {
    background: var(--share-hover-bg, #059669);
    color: var(--share-hover-text, #ffffff);
}

.sem-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Calendar buttons — equal width, fill row */
.sem-cal {
    flex: 1;
    min-width: 0;
}

/* Toast */
.sem-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    z-index: 9999999;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.sem-toast.show {
    opacity: 1;
}

/* Mobile */
@media (max-width: 600px) {
    .sem-modal-content {
        padding: 24px 18px 20px;
        width: 95%;
    }

    .sem-title {
        font-size: 22px;
    }

    .sem-message {
        font-size: 15px;
    }

    /* Keep calendar buttons in ONE row on mobile - shrink padding/font */
    .sem-section:first-of-type .sem-buttons-row {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .sem-cal {
        flex: 1;
        min-width: 0;
        padding: 10px 6px;
        font-size: 13px;
        gap: 5px;
    }

    .sem-cal svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

    .sem-btn {
        padding: 10px 10px;
        font-size: 13px;
    }

    .sem-section-title {
        font-size: 14px;
    }
}

/* VIP Account Button */
.sem-vip-section {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}
.sem-vip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 9px;
    text-decoration: none !important;
    transition: opacity .15s, transform .15s;
    border: none;
    cursor: pointer;
}
.sem-vip-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    opacity: 1;
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}
.sem-vip-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}
