/* ========================================================
   TERKUYT INVESTMENT - Virtual Cards First-Visit Modal
   Pixel-perfect match with modern fintech promotional popup
   ======================================================== */

.terkuyt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    box-sizing: border-box;
}

.terkuyt-modal-overlay.terkuyt-modal-show {
    opacity: 1;
    visibility: visible;
}

.terkuyt-modal-container {
    width: 100%;
    max-width: 530px;
    position: relative;
    transform: scale(0.92) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.terkuyt-modal-overlay.terkuyt-modal-show .terkuyt-modal-container {
    transform: scale(1) translateY(0);
}

.terkuyt-modal-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    text-align: left;
    box-sizing: border-box;
}

/* Header with Banner */
.terkuyt-modal-header {
    position: relative;
    width: 100%;
    background-color: #1a1a1e;
    overflow: hidden;
    line-height: 0;
}

.terkuyt-modal-banner-img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Close Button (top-right circular button) */
.terkuyt-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    outline: none;
}

.terkuyt-modal-close:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.08);
    color: #ffffff;
}

.terkuyt-modal-close svg {
    display: block;
    stroke: #ffffff;
}

/* Modal Body Content */
.terkuyt-modal-body {
    padding: 24px 28px 18px 28px;
    background: #ffffff;
    box-sizing: border-box;
}

/* Subtitle text */
.terkuyt-modal-intro {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 20px 0;
    letter-spacing: -0.1px;
}

/* Feature bullets */
.terkuyt-modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.terkuyt-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.terkuyt-feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.terkuyt-feature-icon svg {
    display: block;
}

.terkuyt-feature-text {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.45;
}

/* Action Buttons */
.terkuyt-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.terkuyt-btn-primary {
    background-color: #16a34a;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28);
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.terkuyt-btn-primary:hover {
    background-color: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.38);
    color: #ffffff !important;
}

.terkuyt-btn-primary svg {
    display: block;
    stroke: #ffffff;
    transition: transform 0.2s ease;
}

.terkuyt-btn-primary:hover svg {
    transform: translateX(3px);
}

.terkuyt-btn-secondary {
    background-color: #141416;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.terkuyt-btn-secondary:hover {
    background-color: #27272a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

/* Subtle separator divider */
.terkuyt-modal-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 0 0 14px 0;
    width: 100%;
}

/* Bottom Footer */
.terkuyt-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terkuyt-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding: 0;
}

.terkuyt-checkbox-input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #16a34a;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
}

.terkuyt-checkbox-text {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1;
}

.terkuyt-dismiss-btn {
    background: none;
    border: none;
    padding: 4px 0;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
    outline: none;
}

.terkuyt-dismiss-btn:hover {
    color: #0f172a;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .terkuyt-modal-container {
        max-width: 100%;
    }
    .terkuyt-modal-card {
        border-radius: 18px;
    }
    .terkuyt-modal-body {
        padding: 18px 20px 16px 20px;
    }
    .terkuyt-modal-intro {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .terkuyt-feature-text {
        font-size: 13px;
    }
    .terkuyt-btn-primary,
    .terkuyt-btn-secondary {
        height: 44px;
        font-size: 14px;
    }
}
