/* Scoped Devotee Login Modal Styles */
#customerLoginModal.modal {
    text-align: center;
    padding: 0 !important;
}
#customerLoginModal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}
#customerLoginModal .modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
    width: 92%;
    max-width: 420px !important;
    margin: 30px auto !important;
}
#customerLoginModal .devotee-modal-card {
    border: 1px solid rgba(234, 88, 12, 0.18) !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 25px 50px -12px rgba(35, 12, 5, 0.28), 0 0 0 1px rgba(254, 215, 170, 0.4) !important;
    position: relative !important;
}

/* Top Decorative Accent Bar */
#customerLoginModal .devotee-top-accent-bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #ad2a00 0%, #ea580c 45%, #f59e0b 80%, #ad2a00 100%);
}

/* Header */
#customerLoginModal .devotee-modal-header {
    background: linear-gradient(145deg, #fffaf3 0%, #fff3e0 65%, #fed7aa 100%) !important;
    border-bottom: 1px solid rgba(254, 215, 170, 0.8) !important;
    padding: 16px 20px !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#customerLoginModal .devotee-header-inner {
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    padding-right: 32px !important;
}
#customerLoginModal .devotee-avatar-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ad2a00 0%, #ea580c 55%, #f59e0b 100%) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 23px !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
    border: 2px solid #ffffff !important;
}
#customerLoginModal .devotee-header-text {
    flex: 1 !important;
}
#customerLoginModal .devotee-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
#customerLoginModal .devotee-modal-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1e1b4b !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.2px !important;
}
#customerLoginModal .devotee-quick-pill {
    background: #ea580c !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 20px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3) !important;
}
#customerLoginModal .devotee-modal-sub {
    font-size: 12.5px !important;
    color: #64748b !important;
    margin: 4px 0 0 0 !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
}
#customerLoginModal .devotee-modal-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    color: #475569 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
    float: none !important;
}
#customerLoginModal .devotee-modal-close:hover {
    background: rgba(234, 88, 12, 0.15) !important;
    color: #ea580c !important;
    transform: rotate(90deg) scale(1.05) !important;
}

/* Modal Body */
#customerLoginModal .devotee-modal-body {
    padding: 16px 20px 18px 20px !important;
    background: #ffffff !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Space Covering Perks Strip */
#customerLoginModal .devotee-perks-strip {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(135deg, #fffbf5 0%, #fff7ed 100%) !important;
    border: 1px solid #fed7aa !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    margin-bottom: 14px !important;
}
#customerLoginModal .devotee-perk-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
#customerLoginModal .devotee-perk-item .perk-icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
}
#customerLoginModal .perk-icon-amber {
    background: #fef3c7 !important;
    color: #d97706 !important;
}
#customerLoginModal .perk-icon-orange {
    background: #ffedd5 !important;
    color: #ea580c !important;
}
#customerLoginModal .perk-icon-green {
    background: #dcfce7 !important;
    color: #16a34a !important;
}
#customerLoginModal .perk-label {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}
#customerLoginModal .devotee-perk-divider {
    width: 1px !important;
    height: 18px !important;
    background: #fed7aa !important;
}

/* Alert Box: 0px height & hidden until real alert triggered */
#customerLoginModal #modalAuthAlert {
    display: none;
    margin-bottom: 12px !important;
}
#customerLoginModal #modalAuthAlert:empty,
#customerLoginModal #modalAuthAlert.d-none {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

/* Form Group */
#customerLoginModal .devotee-form-group {
    margin-bottom: 14px !important;
}
#customerLoginModal .devotee-label-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 7px !important;
}
#customerLoginModal .devotee-input-label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 !important;
    text-transform: none !important;
}
#customerLoginModal .devotee-label-tag {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #059669 !important;
}

/* Phone input container */
#customerLoginModal .devotee-phone-box {
    display: flex !important;
    align-items: center !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #fdfdfd !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
#customerLoginModal .devotee-phone-box:focus-within {
    background: #ffffff !important;
    border-color: #ea580c !important;
    box-shadow: 0 0 0 3.5px rgba(234, 88, 12, 0.16) !important;
}
#customerLoginModal .devotee-phone-prefix {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 14px !important;
    background: #f8fafc !important;
    border-right: 1.5px solid #e2e8f0 !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    height: 48px !important;
    user-select: none !important;
}
#customerLoginModal .devotee-phone-input {
    flex: 1 !important;
    width: 100% !important;
    height: 48px !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 14px !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 !important;
    box-shadow: none !important;
    letter-spacing: 0.5px !important;
}
#customerLoginModal .devotee-phone-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
}

/* Helper Note Pill */
#customerLoginModal .devotee-helper-pill {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #15803d !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    margin-top: 7px !important;
}
#customerLoginModal .helper-icon {
    font-size: 12px !important;
    color: #16a34a !important;
}

/* Submit Button - Overriding generic .modal-body button from style.css */
#customerLoginModal .devotee-modal-body button.devotee-btn-submit {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 50px !important;
    line-height: 50px !important;
    margin: 12px 0 0 0 !important;
    padding: 0 22px !important;
    background: linear-gradient(135deg, #ad2a00 0%, #ea580c 50%, #f59e0b 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    box-shadow: 0 8px 22px -3px rgba(234, 88, 12, 0.42) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    position: relative !important;
}
#customerLoginModal .devotee-modal-body button.devotee-btn-submit:hover {
    background: linear-gradient(135deg, #942400 0%, #c2410c 50%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px -3px rgba(234, 88, 12, 0.52) !important;
    transform: translateY(-1.5px) !important;
}
#customerLoginModal .devotee-modal-body button.devotee-btn-submit:active {
    transform: translateY(1px) !important;
}
#customerLoginModal .devotee-modal-body button.devotee-btn-submit:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}
#customerLoginModal .btn-arrow-circle {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.22) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    margin-left: 2px !important;
    transition: transform 0.2s ease !important;
}
#customerLoginModal .devotee-modal-body button.devotee-btn-submit:hover .btn-arrow-circle {
    transform: translateX(3px) !important;
}

/* OTP Screen Elements */
#customerLoginModal .devotee-otp-header-info {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f8fafc !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    border: 1px solid #e2e8f0 !important;
}
#customerLoginModal .otp-sent-text {
    font-size: 12px !important;
    color: #475569 !important;
}
#customerLoginModal .otp-phone-strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}
#customerLoginModal .devotee-btn-link {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ea580c !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    float: none !important;
    height: auto !important;
    line-height: 1 !important;
    width: auto !important;
    text-transform: none !important;
    border-radius: 0 !important;
}
#customerLoginModal .devotee-otp-input {
    width: 100% !important;
    height: 52px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: 14px !important;
    text-align: center !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
}
#customerLoginModal .devotee-otp-input:focus {
    background: #ffffff !important;
    border-color: #ea580c !important;
    box-shadow: 0 0 0 3.5px rgba(234, 88, 12, 0.16) !important;
}
#customerLoginModal .devotee-otp-meta-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 10px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
#customerLoginModal .devotee-test-otp-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: #ecfdf5 !important;
    color: #047857 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border: 1px solid #a7f3d0 !important;
}

/* Modern Footer Trust Card */
#customerLoginModal .devotee-trust-card {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 14px !important;
    padding: 8px 12px !important;
    background: #f8fafc !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 10px !important;
    font-size: 11.5px !important;
    color: #475569 !important;
    clear: both !important;
    width: 100% !important;
}
#customerLoginModal .trust-badge-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-weight: 600 !important;
}
#customerLoginModal .trust-dot {
    color: #cbd5e1 !important;
}
