/* ============================================================
   BẢN THIẾT KẾ LANDING PAGE NHẬN ƯU ĐÃI & XÁC MINH ROBOT
   Tương thích 100% PC, Laptop, Tablet, iOS & Android
   ============================================================ */

:root {
    --primary-blue: #1d61f2;
    --primary-blue-hover: #1752d4;
    --primary-blue-active: #0f40ac;
    --text-heading: #1e293b;
    --text-muted: #64748b;
    --bg-green: #f0fdf4;
    --border-green: #bbf7d0;
    --text-green: #15803d;
    --status-green: #10b981;
    --radius-card: 28px;
    --shadow-card: 0 20px 48px rgba(37, 99, 235, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at 50% 20%, #eef5ff 0%, #f6faff 60%, #e9f1fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 16px;
    color: var(--text-heading);
}

/* ============================================================
   CANVAS HIỆU ỨNG CÁNH HOA RƠI (CHERRY BLOSSOM)
   ============================================================ */
#sakura-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   CONTAINER CHÍNH
   ============================================================ */
.main-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================================
   THẺ GIAO DIỆN (CARD)
   ============================================================ */
.promo-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-card);
    padding: 34px 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.85);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s ease;
    display: none;
    opacity: 0;
    transform: scale(0.96) translateY(12px);
}

.promo-card.active {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ============================================================
   HEADER: HOÀN TẤT & 100%
   ============================================================ */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.header-tag {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.header-percent {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-blue);
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   TIÊU ĐỀ & MÔ TẢ
   ============================================================ */
.card-title {
    font-size: 21px;
    font-weight: 800;
    color: #172554;
    line-height: 1.38;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.card-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    font-weight: 400;
}

/* Thanh phân cách xanh nổi bật (khớp như trong ảnh) */
.blue-divider-bar {
    width: 100%;
    height: 4.5px;
    background: linear-gradient(90deg, #1d61f2 0%, #2563eb 100%);
    border-radius: 999px;
    margin: 20px 0 24px 0;
}

/* ============================================================
   DANH SÁCH 3 MỤC KIỂM TRA (CHECKLIST)
   ============================================================ */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.check-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.check-item:hover {
    border-color: #dbeafe;
    transform: translateY(-1px);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Chấm tròn xanh có viền sáng như trong ảnh 1 */
.status-dot-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.item-text h3 {
    font-size: 14.2px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.item-text p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

/* Trạng thái chữ bên phải (OK & Hoàn tất) */
.item-status {
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    padding-left: 8px;
}

.text-ok {
    color: #10b981;
}

.text-done {
    color: #10b981;
}

/* ============================================================
   HỘP THÔNG BÁO XANH LÁ (READY BANNER)
   ============================================================ */
.ready-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 13.2px;
    font-weight: 600;
    text-align: center;
    padding: 13px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
}

/* ============================================================
   NÚT BẤM CTA (NHẬN ƯU ĐÃI)
   ============================================================ */
.cta-button {
    width: 100%;
    background: linear-gradient(135deg, #1d61f2 0%, #1752d4 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 20px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px -4px rgba(29, 97, 242, 0.42);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: none;
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 140%; }
}

.cta-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -4px rgba(29, 97, 242, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

.arrow-icon {
    width: 19px;
    height: 19px;
    transition: transform 0.25s ease;
}

.cta-button:hover .arrow-icon {
    transform: translateX(4px);
}

/* ============================================================
   BƯỚC 2: THẺ XÁC MINH ROBOT (reCAPTCHA)
   ============================================================ */
.verification-card {
    text-align: center;
    padding: 36px 26px;
}

.verify-badge-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.verify-title {
    font-size: 22px;
    font-weight: 800;
    color: #172554;
    margin-bottom: 8px;
}

.verify-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 26px;
}

/* Widget reCAPTCHA Chuẩn Google */
.recaptcha-widget-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.rc-anchor {
    width: 304px;
    height: 76px;
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-family: 'Roboto', Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

.rc-anchor-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    height: 100%;
}

.rc-checkbox-box {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    background: #ffffff;
    border-radius: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.rc-anchor-left:hover .rc-checkbox-box {
    border-color: #b2b2b2;
}

/* Spinner khi đang xác minh */
.rc-spinner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid #4285f4;
    border-top-color: transparent;
    border-radius: 50%;
    display: none;
    animation: rcSpin 0.9s linear infinite;
}

@keyframes rcSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dấu tích xanh khi xong */
.rc-checkmark {
    position: absolute;
    width: 32px;
    height: 32px;
    display: none;
    transform: scale(0.6);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Khi đang loading */
.rc-anchor.loading .rc-checkbox-box {
    border-color: transparent;
    background: transparent;
}
.rc-anchor.loading .rc-spinner {
    display: block;
}

/* Khi đã hoàn tất */
.rc-anchor.verified .rc-checkbox-box {
    border-color: transparent;
    background: transparent;
}
.rc-anchor.verified .rc-spinner {
    display: none;
}
.rc-anchor.verified .rc-checkmark {
    display: block;
    transform: scale(1.1);
}

.rc-label {
    font-size: 14px;
    font-weight: 400;
    color: #222222;
}

/* Bên phải: Logo & Thương hiệu reCAPTCHA */
.rc-anchor-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
}

.rc-logo-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-brand-text {
    font-size: 8px;
    color: #555555;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 1px;
}

.rc-brand-links {
    font-size: 8px;
    color: #555555;
    margin-top: 2px;
}

.rc-brand-links a {
    color: #555555;
    text-decoration: none;
}

.rc-brand-links a:hover {
    text-decoration: underline;
}

/* Thông báo điều hướng */
.redirect-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 8px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* Nút quay lại */
.back-link-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.2s ease;
}

.back-link-btn:hover {
    color: #1d61f2;
}

/* ============================================================
   RESPONSIVE CHO ĐIỆN THOẠI & MÀN HÌNH NHỎ (< 480px)
   ============================================================ */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .promo-card {
        padding: 26px 18px;
        border-radius: 22px;
    }

    .card-title {
        font-size: 18.5px;
        margin-bottom: 10px;
    }

    .card-desc {
        font-size: 12.8px;
        margin-bottom: 0px;
    }

    .blue-divider-bar {
        margin: 16px 0 18px 0;
    }

    .check-list {
        gap: 10px;
        margin-bottom: 18px;
    }

    .check-item {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .item-left {
        gap: 10px;
    }

    .item-text h3 {
        font-size: 13.5px;
    }

    .item-text p {
        font-size: 11.2px;
    }

    .item-status {
        font-size: 12.5px;
    }

    .ready-banner {
        font-size: 12.5px;
        padding: 11px 12px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .cta-button {
        font-size: 15px;
        padding: 15px 16px;
        border-radius: 14px;
    }

    .verification-card {
        padding: 26px 16px;
    }

    .verify-title {
        font-size: 19px;
    }

    .verify-desc {
        font-size: 12.8px;
    }

    .rc-anchor {
        width: 100%;
        max-width: 304px;
    }
}
