/* ==========================================================================
   TEMPO-7 SECTION & MODAL (Pure Vanilla CSS)
   ========================================================================== */

.tempo7_section {
    padding: 64px 0;
    text-align: center;
    background-color: #faf6f0;
    color: #4338ca;
}

.tempo7_header {
    padding: 40px 24px;
    text-align: center;
    max-width: 768px;
    margin: 0 auto;
}

.tempo7_badge {
    display: inline-block;
    background-color: #fde68a;
    color: #92400e;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid #fbbf24;
}

.tempo7_title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 12px 0;
}

.tempo7_title span {
    color: #ec4899;
}

.tempo7_subtitle {
    color: #64748b;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 500;
    line-height: 1.625;
    margin: 0;
}

.tempo7_container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px 48px 24px;
}

.tempo7_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (min-width: 768px) {
    .tempo7_grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cute-card-container {
    cursor: pointer;
}

.card-front {
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.card_tag {
    font-weight: 700;
    font-size: 11px;
    color: #312e81;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #312e81;
    padding: 2px 8px;
    border-radius: 9999px;
}

.tempo7_cta {
    margin-top: 40px;
    text-align: center;
}

.tempo7_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ec4899;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 12px 24px;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    max-width: 100%;
}

.tempo7_btn:hover {
    background-color: #db2777;
}

.tempo7_btn span:last-child {
    transition: transform 0.3s ease;
}

.tempo7_btn:hover span:last-child {
    transform: translateX(4px);
}

/* Modal Popup */
.tempo7_modal {
    position: fixed;
    inset: 0;
    background-color: #faf6f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99999;
}

.tempo7_modal.active {
    pointer-events: auto;
}

.modal_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 896px;
    margin: 0 auto;
    font-weight: 700;
    font-size: 0.75rem;
    color: rgba(49, 46, 129, 0.6);
}

.modal_close_btn {
    background-color: #fee2e2;
    color: #dc2626;
    border: 2px solid #dc2626;
    padding: 4px 16px;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75rem;
    transition: background-color 0.2s ease;
}

.modal_close_btn:hover {
    background-color: #fecaca;
}

.modal_body {
    max-width: 672px;
    margin: auto;
    width: 100%;
    text-align: center;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal_avatar {
    width: 144px;
    height: 144px;
    margin: 0 auto;
    border-radius: 9999px;
    border: 4px solid #312e81;
    box-shadow: 0 8px 0px #4338ca;
    background-size: cover;
    background-position: center;
}

.modal_title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
}

.modal_text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 500;
    color: #334155;
    line-height: 1.625;
    letter-spacing: -0.025em;
    padding: 0 16px;
    margin: 0;
}

.modal_action {
    padding-top: 8px;
}

.modal_primary_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #312e81;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 10px 20px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal_primary_btn:hover {
    background-color: #3730a3;
    transform: scale(1.05);
}

.modal_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 896px;
    margin: 0 auto;
    border-top: 2px solid #e0e7ff;
    padding-top: 24px;
}

.modal_nav_btn {
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal_nav_btn.prev_btn {
    background-color: #ffffff;
    border: 2px solid #312e81;
    color: #312e81;
    box-shadow: 0 4px 0px #4338ca;
}

.modal_nav_btn.prev_btn:hover {
    background-color: #eef2ff;
}

.modal_nav_btn.next_btn {
    background-color: #fce7f3;
    border: 2px solid #ec4899;
    color: #db2777;
    box-shadow: 0 4px 0px #db2777;
}

.modal_nav_btn.next_btn:hover {
    background-color: #fbcfe8;
}

.modal_nav_btn:active {
    transform: translateY(4px);
    box-shadow: none !important;
}

.modal_hint {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    display: none;
}

@media (min-width: 768px) {
    .modal_hint {
        display: inline;
    }
}

@media screen and (max-width: 491px) {
    .tempo7_grid {
        gap: 20px 12px;
    }
}

@media (max-width: 640px) {
    .tempo7_cta {
        margin-top: 28px;
    }

    .tempo7_btn {
        font-size: 13px;
        padding: 10px 18px;
        gap: 6px;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .tempo7_btn {
        font-size: 11.5px;
        padding: 8px 12px;
        gap: 5px;
        white-space: nowrap;
    }
}