/* =========================================================
   VyQuester Entrance
   ========================================================= */

.aiwe-entrance-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 48px 0 64px;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(224, 231, 255, 0.82),
            transparent 34%
        ),
        radial-gradient(
            circle at 88% 16%,
            rgba(237, 233, 254, 0.78),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8faff 100%
        );
}

.aiwe-entrance-shell {
    width: min(100%, 620px);
    margin: 0 auto;
}

.aiwe-entrance-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.aiwe-entrance-brand-mark {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #5b5ce2;
    background:
        linear-gradient(
            135deg,
            #eef2ff 0%,
            #f5f3ff 100%
        );
    border: 1px solid #d8defe;
    box-shadow:
        0 8px 22px rgba(79, 70, 229, 0.10);
}

.aiwe-entrance-brand-mark svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.9;
}

.aiwe-entrance-brand-name {
    color: #111827;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.aiwe-entrance-brand-tagline {
    margin-top: 2px;
    color: #6b7280;
    font-size: 0.82rem;
}

.aiwe-entrance-card {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border: 1px solid #dbe1fd;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 22px 55px rgba(31, 41, 55, 0.10),
        0 4px 14px rgba(79, 70, 229, 0.05);
}

.aiwe-entrance-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background:
        linear-gradient(
            90deg,
            #6366f1 0%,
            #8b5cf6 55%,
            #a78bfa 100%
        );
}

.aiwe-entrance-eyebrow {
    margin-bottom: 8px;
    color: #6366f1;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.aiwe-entrance-title {
    margin: 0;
    color: #111827;
    font-size: clamp(1.85rem, 5vw, 2.55rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.aiwe-entrance-subtitle {
    max-width: 520px;
    margin: 14px 0 24px;
    color: #6b7280;
    font-size: 0.98rem;
    line-height: 1.8;
}

.aiwe-entrance-return-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 9px;
    color: #4338ca;
    background: #eef2ff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.aiwe-entrance-progress-card {
    padding: 16px 18px;
    margin-bottom: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
}

.aiwe-entrance-progress-card.is-complete {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.aiwe-entrance-progress-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.aiwe-entrance-progress-label {
    color: #374151;
    font-size: 0.84rem;
    font-weight: 700;
}

.aiwe-entrance-progress-text {
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: right;
}

.aiwe-entrance-progress-bar {
    height: 7px;
    background: #e9edf5;
}

.aiwe-entrance-primary-action {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px 18px;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #5b5ce2 0%,
            #755de8 55%,
            #8b5cf6 100%
        );
    box-shadow:
        0 12px 24px rgba(91, 92, 226, 0.22);
    font-size: 0.96rem;
    font-weight: 750;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.aiwe-entrance-primary-action:hover,
.aiwe-entrance-primary-action:focus {
    color: #ffffff !important;
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow:
        0 15px 30px rgba(91, 92, 226, 0.27);
}

.aiwe-entrance-offer {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        1px
        minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 22px;
    padding: 16px 18px;
    background: #fafbff;
    border: 1px solid #eef0f6;
    border-radius: 14px;
}

.aiwe-entrance-offer-item {
    text-align: center;
}

.aiwe-entrance-offer-number {
    color: #312e81;
    font-size: 1.18rem;
    font-weight: 800;
}

.aiwe-entrance-offer-label {
    margin-top: 3px;
    color: #6b7280;
    font-size: 0.77rem;
}

.aiwe-entrance-offer-divider {
    width: 1px;
    background: #e5e7eb;
}

.aiwe-entrance-purchase-action {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    color: #4338ca !important;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.aiwe-entrance-purchase-action:hover,
.aiwe-entrance-purchase-action:focus {
    color: #3730a3 !important;
    background: #fafbff;
    border-color: #a5b4fc;
}


.aiwe-entrance-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 14px;
    color: #8b93a3;
    font-size: 0.77rem;
    font-weight: 600;
}

.aiwe-entrance-divider::before,
.aiwe-entrance-divider::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: #edf0f5;
}

.aiwe-entrance-redeem-toggle {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #dfe3ec;
    border-radius: 12px;
    font-size: 0.87rem;
    font-weight: 700;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.aiwe-entrance-redeem-toggle:hover,
.aiwe-entrance-redeem-toggle:focus {
    color: #4338ca;
    background: #fafbff;
    border-color: #c7d2fe;
}

.aiwe-entrance-redeem-chevron {
    transition: transform 0.18s ease;
}

.aiwe-entrance-redeem-toggle.is-open
.aiwe-entrance-redeem-chevron {
    transform: rotate(180deg);
}

.aiwe-entrance-redeem-panel {
    margin-top: 14px;
    padding: 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.aiwe-redeem-form {
    display: flex;
    flex-direction: column;
}

.aiwe-redeem-label {
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.84rem;
    font-weight: 700;
}

.aiwe-redeem-input.form-control {
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid #d8deef;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font-size: 0.96rem;
    letter-spacing: 0.035em;
    box-shadow: none;
}

.aiwe-redeem-input.form-control:focus {
    border-color: #818cf8;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.10);
}

.aiwe-redeem-button.btn {
    min-height: 50px;
    margin-top: 14px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.93rem;
    font-weight: 750;
    background: #4f46e5;
    box-shadow:
        0 10px 22px rgba(79, 70, 229, 0.18);
}

.aiwe-redeem-button.btn:hover,
.aiwe-redeem-button.btn:focus {
    color: #ffffff;
    background: #4338ca;
}

.aiwe-redeem-error {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    color: #991b1b;
    background: #fff7f7;
    font-size: 0.84rem;
    line-height: 1.55;
}

.aiwe-redeem-error svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.aiwe-entrance-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    color: #8b93a3;
    font-size: 0.76rem;
}

.aiwe-entrance-footer-dot {
    color: #c0c5cf;
}

@media (max-width: 575.98px) {
    .aiwe-entrance-page {
        min-height: calc(100vh - 64px);
        align-items: flex-start;
        padding: 28px 0 40px;
    }

    .aiwe-entrance-shell {
        width: 100%;
    }

    .aiwe-entrance-brand {
        justify-content: flex-start;
        padding: 0 4px;
        margin-bottom: 18px;
    }

    .aiwe-entrance-card {
        padding: 30px 22px 26px;
        border-radius: 20px;
    }

    .aiwe-entrance-progress-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .aiwe-entrance-progress-text {
        text-align: left;
    }

    .aiwe-entrance-offer {
        gap: 12px;
        padding: 14px;
    }

    .aiwe-entrance-redeem-panel {
        padding: 15px;
    }
}


/* =========================================================
   Bootstrap 5.3 Color Modes
   ========================================================= */

[data-bs-theme="dark"] .aiwe-entrance-page {
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(79, 70, 229, 0.18),
            transparent 34%
        ),
        radial-gradient(
            circle at 88% 16%,
            rgba(109, 40, 217, 0.16),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #0f172a 0%,
            #111827 100%
        );
}

[data-bs-theme="dark"] .aiwe-entrance-brand-mark {
    color: #c7d2fe;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.18) 0%,
        rgba(139, 92, 246, 0.14) 100%
    );
    border-color: rgba(129, 140, 248, 0.34);
}

[data-bs-theme="dark"] .aiwe-entrance-brand-name,
[data-bs-theme="dark"] .aiwe-entrance-title,
[data-bs-theme="dark"] .aiwe-entrance-offer-number {
    color: #f8fafc;
}

[data-bs-theme="dark"] .aiwe-entrance-brand-tagline,
[data-bs-theme="dark"] .aiwe-entrance-subtitle,
[data-bs-theme="dark"] .aiwe-entrance-progress-text,
[data-bs-theme="dark"] .aiwe-entrance-offer-label,
[data-bs-theme="dark"] .aiwe-entrance-divider,
[data-bs-theme="dark"] .aiwe-entrance-footer {
    color: #94a3b8;
}

[data-bs-theme="dark"] .aiwe-entrance-card {
    border-color: #334155;
    background: rgba(17, 24, 39, 0.97);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.28),
        0 4px 14px rgba(79, 70, 229, 0.10);
}

[data-bs-theme="dark"] .aiwe-entrance-return-label {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.16);
}

[data-bs-theme="dark"] .aiwe-entrance-progress-card,
[data-bs-theme="dark"] .aiwe-entrance-offer,
[data-bs-theme="dark"] .aiwe-entrance-redeem-panel {
    background: #172033;
    border-color: #334155;
}

[data-bs-theme="dark"] .aiwe-entrance-progress-card.is-complete {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.30);
}

[data-bs-theme="dark"] .aiwe-entrance-progress-label {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .aiwe-entrance-offer-divider,
[data-bs-theme="dark"] .aiwe-entrance-divider::before,
[data-bs-theme="dark"] .aiwe-entrance-divider::after {
    background: #334155;
}

[data-bs-theme="dark"] .aiwe-entrance-purchase-action,
[data-bs-theme="dark"] .aiwe-entrance-redeem-toggle {
    color: #c7d2fe !important;
    background: #111827;
    border-color: #475569;
}

[data-bs-theme="dark"] .aiwe-entrance-purchase-action:hover,
[data-bs-theme="dark"] .aiwe-entrance-purchase-action:focus,
[data-bs-theme="dark"] .aiwe-entrance-redeem-toggle:hover,
[data-bs-theme="dark"] .aiwe-entrance-redeem-toggle:focus {
    color: #e0e7ff !important;
    background: #172033;
    border-color: #6366f1;
}

[data-bs-theme="dark"] .aiwe-redeem-label {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .aiwe-redeem-input.form-control {
    color: #f8fafc;
    background: #0f172a;
    border-color: #475569;
}

[data-bs-theme="dark"] .aiwe-redeem-input.form-control:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.14);
}

[data-bs-theme="dark"] .aiwe-redeem-error {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.22);
    border-color: rgba(248, 113, 113, 0.35);
}

[data-bs-theme="dark"] .aiwe-entrance-footer-dot {
    color: #64748b;
}
