/* ===============================
   ROOT COLORS (PROFESSIONAL)
================================ */
:root{
    --primary:#2563eb;      /* Blue */
    --primary-dark:#1d4ed8;
    --bg-dark:#0f172a;
    --gray:#64748b;
    --border:#e2e8f0;
}

/* ===============================
   HIDE HEADER / FOOTER
================================ */
body.woocommerce-account:not(.logged-in) header,
body.woocommerce-account:not(.logged-in) footer{
    display:none!important;
}

/* ===============================
   OVERLAY
================================ */
.rahi-blinkit-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.70);
    backdrop-filter: blur(8px); /* Premium blur effect */
    -webkit-backdrop-filter: blur(8px);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

/* ===============================
   BACKGROUND VIDEO
================================ */
.rahi-bg-video{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:-1;
}

/* ===============================
   CARD
================================ */
.rahi-blinkit-card{
    width:100%;
    max-width:440px;
    background:#fff;
    border-radius:28px;
    padding:36px 32px;
    box-shadow:0 40px 100px rgba(0,0,0,.50);
    text-align:center;
    position:relative;
    overflow:hidden;
}

/* ===============================
   CLOSE BUTTON
================================ */
.rahi-close-btn{
    position:absolute;
    right:20px !important;
    top:20px !important;
    background:#f1f5f9;
    border:none !important;
    width:36px;
    height:36px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    color:#64748b;
    transition:all .3s ease;
    z-index: 10;
    cursor:pointer;
}

.rahi-close-btn:hover{
    transform:scale(1.1);
    background:#e2e8f0;
    color:#0f172a;
}

.rahi-close-btn::before{
    content:"✕";
    font-weight:700;
}

/* ===============================
   LOGO + TEXT
================================ */
.rahi-logo{
    width:70px;
    margin:0 auto 20px;
}
.rahi-blinkit-card h2{
    margin:8px 0 8px;
    font-size:26px;
    font-weight:800;
    color:#0f172a;
    letter-spacing:-0.5px;
}
.rahi-blinkit-card p{
    margin:0 0 28px;
    font-size:15px;
    color:var(--gray);
    line-height:1.5;
}

/* ===============================
   APP-LIKE STEPS (SLIDE ANIMATIONS)
================================ */
.rahi-step {
    display: none;
    animation: rahiSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.rahi-step.active {
    display: block;
}
@keyframes rahiSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===============================
   INPUTS (ULTRA PREMIUM)
================================ */
.rahi-user-fields input,
.rahi-otp-field input {
    width:100%;
    padding:18px 20px;
    border-radius:16px;
    border:2px solid transparent;
    margin-bottom:16px;
    font-size:15px;
    font-weight:600;
    color:#0f172a;
    background:#f1f5f9;
    transition:all 0.3s ease;
    box-shadow:inset 0 2px 4px rgba(0,0,0,0.02);
}

.rahi-user-fields input::placeholder,
.rahi-otp-field input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.rahi-user-fields input:focus,
.rahi-otp-field input:focus {
    background:#fff;
    border-color:var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12), 0 8px 16px rgba(0,0,0,0.04);
    outline:none;
    transform: translateY(-1px);
}

/* ===============================
   BUTTONS (ULTRA PREMIUM)
================================ */
.rahi-btn,
.rahi-send-otp,
.rahi-verify-otp {
    width:100%;
    padding:18px;
    border-radius:16px;
    border:none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color:#fff;
    font-size: 16px;
    font-weight:800;
    letter-spacing: 0.5px;
    cursor:pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4), 0 8px 10px -6px rgba(37, 99, 235, 0.1);
}

.rahi-btn:hover,
.rahi-send-otp:hover,
.rahi-verify-otp:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.5), 0 12px 15px -6px rgba(37, 99, 235, 0.2);
}

.rahi-btn:active,
.rahi-send-otp:active,
.rahi-verify-otp:active {
    transform: translateY(0) scale(0.98);
}

.rahi-btn-back {
    background: transparent;
    color: var(--gray);
    box-shadow: none;
    margin-top: 12px;
    font-size: 14px;
    padding: 12px;
    width: 100%;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border-radius:14px;
}
.rahi-btn-back:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ===============================
   OTP MESSAGE
================================ */
.rahi-otp-message{
    margin-top:14px;
    font-size:14px;
    font-weight: 600;
}

/* ===============================
   TERMS
================================ */
.rahi-terms{
    display:block;
    margin-top:24px;
    font-size:13px;
    color:var(--gray);
}
.rahi-terms a { color: var(--primary); text-decoration: none; font-weight: 700; }

/* ===============================
   SUCCESS ANIMATION
================================ */
.rahi-success-wrap {
    padding: 30px 0;
    text-align: center;
}
.rahi-success-circle {
    width: 90px;
    height: 90px;
    background: #10b981;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.35);
}
.rahi-success-circle svg {
    width: 45px;
    height: 45px;
    color: #fff;
    animation: fadeInCheck 0.6s 0.3s both;
}
.rahi-success-wrap h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}
.rahi-success-wrap p {
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
}
@keyframes scaleUp {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes fadeInCheck {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* ===============================
   MOBILE BOTTOM SHEET
================================ */
@media(max-width:1023px){
    .rahi-blinkit-overlay{ align-items:flex-end; }
    .rahi-blinkit-card{ max-width:100%; border-radius:32px 32px 0 0; padding: 32px 24px 45px; animation:slideUp .5s cubic-bezier(0.16, 1, 0.3, 1); }
}
@keyframes slideUp{ from{transform:translateY(100%)} to{transform:translateY(0)} }