@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* WPFlexi App Container - Global App Typography */
#home-dashboard-view, #home-dashboard-view * {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}

/* Scrolling Notice Styles */
.wpflexi-notice-bar {
    background: #f8fafc;
    margin: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden !important;
    position: relative;
    display: flex;
    align-items: center;
    height: 44px !important;
    min-height: 44px !important;
}
.wpflexi-notice-content {
    flex: 1;
    overflow: hidden !important;
    white-space: nowrap !important;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.wpflexi-scrolling-text {
    display: inline-block !important;
    white-space: nowrap !important;
    padding-left: 100%;
    animation: wpflexiScrollNotice 25s linear infinite !important;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}
@keyframes wpflexiScrollNotice {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

:root {
    --flexi-secondary: #ffffff;
    --flexi-accent: #FFC107;
    /* Yellow/Orange */
    --flexi-bg: #f2f4f8;
    /* Slightly blue-ish gray bg */
    --flexi-text: #333333;
}

/* Theme Alpha - Premium Red */
.wpflexi-theme-alpha {
    --flexi-primary: #e11d48;
    --flexi-light-green: #fff1f2; /* Light red/pink for icons */
    --flexi-hover-bg: #e11d48;
}

/* Theme Green - Eco Green */
.wpflexi-theme-green {
    --flexi-primary: #125534;
    --flexi-light-green: #e6f4ea; /* Light mint green for icons */
    --flexi-hover-bg: #125534;
}

/* Default Fallback (for older pages or missing theme class) */
#wp-flexi-app-container {
    --flexi-primary: #125534; /* Default to Green */
    --flexi-light-green: #e6f4ea;
    --flexi-hover-bg: #125534;
}

#wp-flexi-app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--flexi-bg);
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    padding-bottom: 75px; /* Refined for modern navbar height */
    border-radius: 0;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

@media (min-width: 481px) {
    .bottom-nav-container {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    .bottom-nav-pill {
        max-width: 480px !important;
    }
}


/* Custom Green Header */
.app-header-green {
    background-color: var(--flexi-primary);
    padding: 18px 20px 65px 20px;
    /* Extra bottom padding for overlap */
    border-radius: 0 0 35px 35px;
    /* Deeper curve */
    color: white;
    position: relative;
    z-index: 10;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-greeting {
    display: flex;
    flex-direction: column;
}

.hello-text {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.user-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.balance-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    height: 38px;
}

.balance-text {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.balance-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    animation: fadeIn 0.3s;
}

/* Floating Card Common */
/* Floating Card Common */
/* Floating Card Common */
.floating-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin: 0 20px 25px 20px;
    padding: 20px 15px;
    /* Airy padding matching screenshot */
    position: relative;
    z-index: 20;
}

/* Main Features Card Overlap */
.main-features-card {
    margin-top: -45px;
    /* Deep overlap */
}

.nav-grid-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.nav-card-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 23%;
    padding: 0;
    /* No padding around item */
    border-radius: 12px;
    transition: all 0.2s;
}

/* 3-column grid for Banking */
.banking-card .nav-card-item {
    width: 30%;
}

.icon-circle {
    width: 50px;
    /* Comfortable size */
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    /* Space between icon and text */
    transition: all 0.2s;
    background-color: var(--flexi-light-green);
    color: var(--flexi-primary);
}

.icon-circle .dashicons,
.icon-circle svg {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Hover Effect matching reference image (Recharge Block) */
/* Explicitly remove/reset any hover effects */
.nav-card-item:hover,
.nav-card-item:active,
.nav-card-item:focus {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.nav-card-item:hover .icon-circle,
.nav-card-item:active .icon-circle,
.nav-card-item:focus .icon-circle {
    background-color: var(--flexi-light-green) !important;
    color: var(--flexi-primary) !important;
    transform: none !important;
    box-shadow: none !important;
}

.nav-card-item:hover .nav-label,
.nav-card-item:active .nav-label,
.nav-card-item:focus .nav-label {
    color: #555 !important;
}


/* Section Parts */
/* Section Parts */
.section-part {
    margin: 0 20px 30px 20px;
}

.part-title {
    font-size: 1.05rem;
    color: #333;
    margin: 0 0 15px 5px;
    /* Indent slightly */
    font-weight: 700;
}

/* MFS Horizontal Scroll */
.mfs-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 5px;
    scrollbar-width: none;
}

.mfs-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.mfs-card-item {
    background: white;
    border: none;
    min-width: 90px;
    border-radius: 18px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

/* Explicitly remove/reset MFS hover effects */
.mfs-card-item:hover,
.mfs-card-item:active,
.mfs-card-item:focus {
    background: white !important;
    transform: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    outline: none !important;
}

.mfs-logo-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.mfs-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

/* Banking Card Reuse */
.banking-card {
    margin: 0 !important;
}

/* Fixed Bottom Nav - Dark Green Pill */
/* Fixed Bottom Nav - Dark Green Pill */
/* Fixed Bottom Nav - Dark Green Pill (Grid Layout) */
.bottom-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000000 !important;
    pointer-events: none;
}

.bottom-nav-pill {
    background: rgba(255, 255, 255, 0.85); /* Premium Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 20px 20px 0 0; /* Modern curved top for footer */
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.06); /* Sophisticated upward shadow */
    pointer-events: auto;
    position: relative;
    height: 70px; /* Enhanced height for better reachability */
    width: 100%;
    max-width: 480px; /* Sync with app container */
    margin: 0 auto;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom);
}

.b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(100, 116, 139, 0.7); /* Professional slate grey for visibility on white */
    cursor: pointer;
    font-size: 0.7rem;
    transition: color 0.2s;
    width: 100%;
    /* Fill grid cell */
    height: 100%;
}

.b-nav-item.active,
.b-nav-item:hover {
    color: #e11d48;
    /* Premium Red for active item */
}

.b-nav-item .dashicons {
    font-size: 24px;
    margin-bottom: 2px;
    width: 24px;
    height: 24px;
}

/* FAB - Yellow Rounded Square (Squircle) in Grid Flow */
.b-nav-fab {
    width: 60px;
    height: 60px;
    background: #e11d48;
    border-radius: 50%;
    /* Perfect Circle for Premium FAB */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.3);
    /* Reddish glow */
    cursor: pointer;
    transition: transform 0.2s;
    color: #333;
    z-index: 101;
    margin-top: -35px;
    /* Pull up to float */
    /* Remove absolute positioning logic */
    position: relative;
    grid-column: 3;
    /* Ensure it's in the 3rd slot */
}

.b-nav-fab:active {
    transform: scale(0.95);
}

.b-nav-fab .dashicons {
    color: #1a1a1a;
    font-size: 32px;
    width: 32px;
    height: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    /* Optical correction: Sometimes fonts sit slightly below the baseline */
    margin-top: -1px;
}

/* Cleaned up duplicate code */

/* App Section - Drawer Effect */
/* App Section - Bottom Sheet / Drawer Effect */
/* App Backdrop */
.app-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dimmed background */
    z-index: 150000;
    /* Below drawer (110) but above content */
    display: none;
    /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-backdrop.active {
    display: block;
    opacity: 1;
}

/* App Section - Bottom Sheet / Drawer Effect */
.app-section {
    position: fixed;
    bottom: 0;
    left: 50%;
    /* Center horizontally */
    width: 100%;
    max-width: 450px;
    /* Limit width for mobile/app feel */
    height: 90vh;
    /* Cover 90% of screen from bottom */
    background-color: #fff;
    z-index: 160000;
    border-radius: 20px 20px 0 0;
    /* box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2); Moved to active state to prevent bleed */

    /* Animation State: Hidden */
    transform: translateX(-50%) translateY(100%);
    /* Smart Transition: Expo Ease Out for premium feel */
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;

    padding: 0 0 100px 0;
    /* No vertical padding here, handled by header and content */
    display: block;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.app-section.active {
    /* Animation State: Visible */
    transform: translateX(-50%) translateY(0);
    display: block !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

/* Add padding to the content area inside sections */
.app-section>*:not(h3) {
    padding-left: 20px;
    padding-right: 20px;
}

/* Internal navigation items (More section etc) */
.nav-internal,
#more-section .nav-item {
    border-radius: 12px !important;
    padding: 15px 10px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#more-section .nav-item:active {
    background: #f0f0f0 !important;
    transform: scale(0.95);
}

/* Ensure padding for forms specifically */
.wp-flexi-form {
    padding-top: 20px;
}

/* Section Header with Close Button */
.app-section h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.15rem;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    /* Separator line like screenshot */
    flex-shrink: 0;
    /* Keep header fixed height */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 25;
    /* Increased to be safely above filters */
}

.close-drawer-btn {
    font-size: 0.9rem;
    color: var(--flexi-primary, #125534);
    /* Theme Green for close */
    cursor: pointer;
    font-weight: 700;
    padding: 5px;
    transition: opacity 0.2s;
}

.close-drawer-btn:hover {
    opacity: 0.7;
}

/* Hide dashboard/other content when drawer is active? 
   No, z-index 90 covers it. 
   But "Home" click usually removes .active, sliding it down.
*/

/* Offer Tabs - New Style */
.offers-tabs {
    background: white;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Forms - Premium Internal Pages */
.form-group {
    margin-bottom: 24px;
    /* More breathing room */
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1a1a1a;
    /* Darker, crisper text */
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 16px 18px;
    /* Larger touch target */
    border: 1px solid #eef2f6;
    /* Very subtle border */
    border-radius: 16px;
    /* Modern rounded corners */
    font-size: 1.05rem;
    box-sizing: border-box;
    background: #f8fafc;
    /* Subtle off-white bg */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #333;
    font-weight: 500;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Inner depth */
}

.form-group input:focus,
.form-group select:focus {
    border-color: #125534;
    /* Primary Green */
    background: #fff;
    outline: none;
    box-shadow: 0 4px 12px rgba(18, 85, 52, 0.15);
    /* Soft glow */
    transform: translateY(-1px);
}

/* Operator Grid - Premium Chips */
.operator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.operator-radio {
    cursor: pointer;
    position: relative;
}

.operator-radio input {
    display: none;
}

.op-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    /* Taller */
    border: 1px solid #f1f3f5;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.op-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.operator-radio input:checked+.op-button {
    background: linear-gradient(135deg, var(--brand-color, #007bff) 0%, #000 120%);
    /* Gradient using brand color mixed with black */
    /* Note: CSS variables in gradients can be tricky, fallback to simple color if needed 
       but let's try assuming brand-color is set. If not, maybe just use var. */
    background: var(--brand-color, #007bff);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px -4px var(--brand-color, rgba(0, 0, 0, 0.3));
    transform: translateY(-3px) scale(1.02);
    font-weight: 700;
}

/* Modern Recharge UI Styling */
.modern-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-input-wrapper .dashicons,
.modern-input-wrapper .input-icon-right {
    position: absolute;
    color: #666;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.modern-input-wrapper .input-icon-left {
    left: 15px;
}

.modern-input-wrapper .input-icon-right,
.modern-input-wrapper .taka-icon {
    position: absolute;
    right: 15px;
    font-style: normal;
    color: var(--flexi-primary, #125534);
    font-weight: 700;
    font-size: 14px;
    pointer-events: none;
    height: 100%;
    display: flex;
    align-items: center;
}

.modern-input-wrapper input {
    /* Padding adjustments for icons */
    padding-left: 18px !important;
    padding-right: 45px !important;
    height: 48px !important;
    /* Match button height */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-radius: 12px !important;
    /* Match button radius */
}

/* Icon-left padding */
.modern-input-wrapper.has-icon-left input {
    padding-left: 45px !important;
}

/* Operator Circle Icons */
.operator-logo-grid {
    display: flex;
    gap: 8px;
    /* Reduced gap slightly to ensure 6 fit on very small 320px screens */
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    /* Changed from center to allow smooth natural scrolling */
    flex-wrap: nowrap;
    /* Forced to single line */
}

.operator-logo-grid::-webkit-scrollbar {
    display: none;
}

.op-logo-item {
    cursor: pointer;
    flex-shrink: 0;
    width: calc((100% - 40px) / 6);
    /* 6 items, 5 gaps of 8px = 40px */
    max-width: 55px;
    /* Prevent becoming too large on tablets/desktop */
}

.op-logo-item input {
    display: none;
}

.op-logo-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Keep it perfectly square */
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.2s ease;
    padding: 5px;
    overflow: hidden;
    box-sizing: border-box;
}

.op-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.op-logo-box span {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.op-logo-item input:checked+.op-logo-box,
.op-logo-box.active-operator {
    border-color: #125534;
    box-shadow: 0 0 0 2px rgba(18, 85, 52, 0.1);
    transform: scale(1.05);
    background: #f0f7f3;
}

/* Type Segment Pill */
.type-segment {
    display: flex;
    background: #f1f3f5;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.type-segment label {
    flex: 1;
    text-align: center;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.type-segment input {
    display: none;
}

.segment-label {
    display: block;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    color: #495057;
    transition: all 0.2s;
}

.type-segment input:checked+.segment-label {
    background: #125534;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Amount Input with Taka Icon */
.amount-wrapper {
    position: relative;
}

.taka-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #125534;
    font-style: normal;
}

/* Radio Group (Connection Type etc) */
.radio-group {
    display: flex;
    gap: 15px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #f1f3f5;
}

.radio-group label {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #444;
}

.radio-group input[type="radio"] {
    accent-color: #125534;
    /* Brand color radio */
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Buttons - Premium Modern Style */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--flexi-primary, #125534);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 20px;
    letter-spacing: 0.3px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(18, 85, 52, 0.2);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #0e4229 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(18, 85, 52, 0.3) !important;
}

/* Green Premium Variant for Add Money */
.btn-green-premium {
    display: block !important;
    width: 100% !important;
    padding: 16px;
    background: linear-gradient(135deg, #125534 0%, #0e4229 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 20px;
    letter-spacing: 0.3px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(18, 85, 52, 0.25);
}

.btn-green-premium:hover {
    background: linear-gradient(135deg, #0e4229 0%, #0a311f 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 85, 52, 0.35);
}

.btn-green-premium:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(18, 85, 52, 0.2);
}

/* PIN Modal Buttons */
.btn-confirm-pin,
.btn-cancel-pin {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    display: block;
}

.btn-confirm-pin {
    background: transparent !important;
    color: var(--flexi-accent, #FFC107) !important;
    border: 2px solid var(--flexi-accent, #FFC107) !important;
    transition: all 0.3s ease !important;
}

.btn-confirm-pin:hover,
.btn-confirm-pin:active {
    background: var(--flexi-primary, #125534) !important;
    border-color: var(--flexi-primary, #125534) !important;
    color: white !important;
}

.btn-cancel-pin {
    transition: all 0.3s ease !important;
}

.btn-cancel-pin:hover {
    background: #edf2f7 !important;
}

/* Response Area */
#wp-flexi-response-area {
    padding: 0 15px 15px;
}

.wpflexi-alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.wpflexi-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpflexi-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Offer section exact freeze layout using Grid */
/* Offer section exact freeze layout using strict Flex & Overscroll */
#offers-section {
    display: flex !important;
    flex-direction: column;
    height: 90vh !important;
    overflow-y: auto !important;
    padding-bottom: 90px !important;
    touch-action: pan-y;
}

#offers-section h3.part-title {
    flex: 0 0 auto !important;
    margin: 0;
    padding: 15px 10px !important;
}

#offers-section>*:not(h3) {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.offers-control-panel {
    flex: 0 0 auto !important;
    background: #f8fafc;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    margin: 10px 0 0 0 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

#offers-section #wp-flexi-offers-list {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-bottom: 50px !important;
    padding-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    position: relative;
    z-index: 10;
}

.offers-tabs {
    display: flex;
    background: #f8fafc;
    padding: 3px;
    border-bottom: 1px solid #f1f5f9;
}

.offer-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-tab.active {
    background: #fff;
    color: var(--flexi-primary, #125534);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Horizontal 3-Section Offer Card */
.offers-list {
    margin-top: 15px;
}

/* Grid-V3: 2 Cards per row (Keep it but we will switch to list) */
.wp-flexi-grid-v3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

@media (max-width: 480px) {
    .wp-flexi-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* List-V1: Single column rows */
.wp-flexi-list-v1 {
    display: flex;
    flex-direction: column;
    gap: 7px !important;
    margin-top: 15px;
}

.enterprise-list-card {
    background: #fff;
    border: 1px solid #eef0f2 !important;
    border-radius: 12px !important;
    padding: 10px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    min-width: 0;
}

.enterprise-list-card:hover {
    border-color: var(--flexi-primary, #125534) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transform: translateX(2px);
}

.el-logo-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    margin-right: 10px;
}

.el-logo-wrap img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.el-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 10px;
}

.el-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    line-height: 1.3;
}

.el-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.el-detail-item {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.el-right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.el-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ef4444;
    line-height: 1;
}

.el-cashback {
    font-size: 0.65rem;
    color: #10b981;
    font-weight: 700;
}

.el-buy-btn {
    background: var(--flexi-primary, #125534) !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(18, 85, 52, 0.2);
}

.enterprise-card-v3 {
    background: #fff;
    border: 1px solid #eef0f2 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    min-width: 0;
}

.enterprise-card-v3:hover {
    border-color: var(--flexi-primary, #125534) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px);
}

.ev3-header {
    display: flex;
    justify-content: center;
    /* Centering as per user screenshot vibe */
    margin-bottom: 2px;
}

.ev3-op-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ev3-op-mini-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 50%;
    /* Circle look for mini-logos */
    background: #fff;
    padding: 1px;
}

.ev3-title {
    font-size: 0.85rem !important;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Added for standard compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev3-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    gap: 8px;
}

.ev3-price-group {
    display: flex;
    flex-direction: column;
}

.ev3-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ef4444;
    line-height: 1;
}

.ev3-cashback {
    font-size: 0.65rem;
    color: #10b981;
    font-weight: 700;
    margin-top: 2px;
}

.ev3-buy-btn {
    background: var(--flexi-primary, #125534) !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(18, 85, 52, 0.2);
}

.ev3-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px dashed #eee;
    padding-top: 8px;
}

.ev3-detail-item {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
    padding: 2px 4px;
    border-radius: 4px;
}

.btn-buy-v2:hover,
.btn-buy-v2:focus,
.btn-buy-v2:active {
    background: #0e4229 !important;
    transform: scale(1.05) !important;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .wp-flexi-nav-grid {
        gap: 5px;
    }

    .nav-item .text {
        font-size: 0.65rem;
    }

    .card-v2-bottom {
        flex-wrap: wrap;
    }

    .v2-left {
        width: 100%;
        margin-bottom: 8px;
        align-items: center;
        text-align: center;
    }

    .v2-middle {
        flex: 1;
        align-items: flex-start;
    }

    .v2-right {
        flex: 1;
        justify-content: flex-end;
    }

    .offer-mini-details-v2 {
        justify-content: center;
    }

    .horiz-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 15px;
    }

    .horiz-left {
        align-items: center;
        margin-bottom: 10px;
    }

    .horiz-middle {
        margin-bottom: 10px;
    }

    .horiz-right {
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
}

.offers-operator-filter select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.offer-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.offer-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #333;
}

.offer-meta {
    font-size: 0.85rem;
    color: #666;
}

.offer-meta span {
    margin-right: 10px;
}

.offer-action {
    text-align: right;
}

.offer-price {
    font-weight: 700;
    color: #007bff;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.btn-buy {
    background: var(--flexi-primary, #125534) !important;
    color: white !important;
    border: none !important;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-buy:hover,
.btn-buy:focus,
.btn-buy:active {
    background: #0e4229 !important;
    transform: scale(1.05) !important;
}

/* History Section Styles */
.history-item {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-main {
    display: flex;
    flex-direction: column;
}

.history-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.history-date {
    font-size: 0.8rem;
    color: #999;
}

.history-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Modern Spinner */
.flexi-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: flexi-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes flexi-spin {
    to { transform: rotate(360deg); }
}

.alpha-btn-recharge.loading .alpha-btn-arrow,
.alpha-btn-recharge.loading svg:first-of-type {
    display: none !important;
}

/* Pagination */
.wpflexi-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.pagination-btn, .offer-pagination-btn, .history-pagination-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.2s;
}

.pagination-btn:hover, .offer-pagination-btn:hover, .history-pagination-btn:hover {
    background: #e2e6ea;
    color: #333;
}

.page-info {
    font-size: 0.85rem;

    color: #777;
}

/* Modal Styles */
.wpflexi-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}

.wpflexi-modal.show-modal {
    display: flex !important;
}

.wpflexi-modal-content {
    background: #ffffff;
    padding: 30px 25px;
    border: none;
    width: 92%;
    max-width: 420px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: var(--flexi-primary, #125534);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.close-modal:hover {
    opacity: 0.7;
}

#modal-txn-content p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
    padding-bottom: 4px;
}

#modal-txn-content p strong {
    color: #333;
    font-weight: 600;
}

#modal-txn-content .modal-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modern Profile View */
.profile-container {
    padding-top: 10px;
}

.profile-header-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* PIN Pad Responsiveness */
.pin-keypad-container {
    padding: 0 5px;
}

.pin-keypad {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    max-width: 320px;
    margin: 0 auto 25px !important;
}

.pin-key {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 16px !important;
    border: 1.5px solid #f1f5f9 !important;
    background: #fff !important;
    color: #1e293b !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
}

.pin-key:active {
    background: var(--flexi-primary, #e11d48) !important;
    color: #fff !important;
    transform: scale(0.9) !important;
    border-color: var(--flexi-primary, #e11d48) !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
}

.pin-display-wrapper input {
    width: 100% !important;
    text-align: center !important;
    font-size: 1.8rem !important;
    height: 52px !important;
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    margin-bottom: 15px !important;
    letter-spacing: 12px !important;
    background: #f8fafc !important;
    font-weight: 800 !important;
    color: var(--flexi-primary, #e11d48) !important;
    cursor: default !important;
}

.pin-modal-actions {
    display: flex !important;
    gap: 12px !important;
}

.pin-modal-actions button {
    height: 54px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

@media (max-width: 360px) {
    .pin-keypad {
        gap: 10px !important;
    }
    .pin-key {
        font-size: 1.2rem !important;
        border-radius: 12px !important;
    }
    .pin-display-wrapper input {
        height: 55px !important;
        font-size: 1.8rem !important;
        letter-spacing: 10px !important;
        margin-bottom: 20px !important;
    }
    .pin-modal-actions {
        flex-direction: column-reverse !important;
        gap: 10px !important;
    }
    .pin-modal-actions button {
        height: 48px !important;
        width: 100% !important;
        flex: none !important;
    }
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    background-size: cover;
    background-position: center;
}

.profile-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.profile-username {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    font-weight: 600;
}

.profile-email {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

.settings-card {
    background: white;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.settings-card h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card h4 .icon {
    font-size: 1.2rem;
}

.input-group-modern {
    margin-bottom: 15px;
}

.input-group-modern label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.input-group-modern input {
    width: 100%;
    padding: 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.input-group-modern input:focus {
    background: white;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.btn-update {
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--flexi-primary, #125534) !important;
    color: white !important;
    border: none !important;
}

.btn-update:hover,
.btn-update:focus,
.btn-update:active {
    background: #0e4229 !important;
    transform: scale(1.02) !important;
}

/* Promo / Security Slide - Matching Reference */
.promo-slider-container {
    margin-top: 15px;
}

.promo-slide {
    background: linear-gradient(135deg, #FFC107, #FF9800);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.25);
}

.promo-slide h4 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: none;
    /* Clean look */
}

.promo-slide p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Shield Icon Container */
.promo-slide>div:last-child {
    width: auto !important;
    /* Reset inline style from HTML if needed */
    text-align: right;
    padding-left: 15px;
}

.promo-slide .dashicons-shield {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: white;
    opacity: 0.9;
}

/* Slider Indicators - Minimal Circle Dots */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--flexi-primary, #125534);
    width: 20px;
    border-radius: 4px;
}

.promo-slider-container {
    -webkit-overflow-scrolling: touch;
}

/* --- Optimized PIN Verification Modal --- */
#pin-verification-modal {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.6) !important;
    display: none;
    align-items: center;
    justify-content: center;
}

#pin-verification-modal .wpflexi-modal-content {
    border-radius: 28px;
    padding: 30px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: none !important;
    max-width: 320px !important;
    background: #fff;
    position: relative;
    animation: wpflexiModalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 95vh;
    max-height: 95svh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

@keyframes wpflexiModalPop {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

#pin-verification-modal h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
    margin-top: 0;
    text-align: left;
    letter-spacing: -0.5px;
}

#pin-verification-modal p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: left;
}

#txn_pin {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    height: 65px;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #125534 !important;
    letter-spacing: 12px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 25px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-align: center;
}

#txn_pin::placeholder {
    color: #cbd5e1;
    letter-spacing: 6px;
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px !important;
    margin-bottom: 25px !important;
}

.pin-key {
    height: 62px;
    background: #ffffff !important;
    border: 1.5px solid #125534 !important;
    border-radius: 14px !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #125534 !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.pin-key:hover {
    background: #f0fdf4 !important;
    transform: translateY(-2px);
}

.pin-key:active {
    background: #125534 !important;
    color: #fff !important;
    transform: scale(0.92);
}

/* Specific Keys */
.pin-key[data-key="clear"] {
    color: #dc3545 !important;
    background: #fff !important;
    border-color: #dc3545 !important;
}

.pin-key[data-key="clear"]:active {
    background: #dc3545 !important;
    color: #fff !important;
}

.pin-key[data-key="back"] {
    color: #125534 !important;
}

/* Modal Bottom Buttons */
.btn-cancel-pin,
.btn-confirm-pin {
    flex: 1;
    height: 54px;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-cancel-pin {
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #64748b !important;
}

.btn-cancel-pin:hover {
    background: #fef2f2 !important;
    color: #dc3545 !important;
    border-color: #fecaca !important;
}

.btn-confirm-pin {
    background: var(--flexi-primary, #125534) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(18, 85, 52, 0.2) !important;
}

.btn-confirm-pin:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(18, 85, 52, 0.3) !important;
    filter: brightness(1.1);
}

.pin-close.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 26px !important;
    color: #cbd5e1 !important;
    font-weight: 300 !important;
    line-height: 1;
    z-index: 10;
}

.pin-close.close-modal:hover {
    color: #94a3b8 !important;
}

.btn-conf-submit:active {
    transform: scale(0.98);
}

/* Responsive adjustments for Secure Pad on small/short screens */
@media (max-width: 360px), (max-height: 700px) {
    #pin-verification-modal .wpflexi-modal-content {
        padding: 20px 16px;
    }
    #pin-verification-modal h3 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    #pin-verification-modal p {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    #txn_pin {
        height: 50px;
        margin-bottom: 15px !important;
        font-size: 20px !important;
        letter-spacing: 8px !important;
    }
    .pin-keypad {
        gap: 8px !important;
        margin-bottom: 15px !important;
    }
    .pin-key {
        height: 50px;
        font-size: 1.2rem !important;
        border-radius: 12px !important;
    }
    .btn-cancel-pin, .btn-confirm-pin {
        height: 46px;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
    }
}

@media (max-height: 600px) {
    #pin-verification-modal p {
        display: none;
    }
    #pin-verification-modal .wpflexi-modal-content {
        padding: 15px 15px;
    }
    #txn_pin {
        height: 45px;
        margin-bottom: 10px !important;
    }
    .pin-keypad {
        gap: 6px !important;
        margin-bottom: 10px !important;
    }
    .pin-key {
        height: 45px;
    }
    .btn-cancel-pin, .btn-confirm-pin {
        height: 42px;
    }
}

/* --- Transaction Success Premium Screen --- */
.success-sheet {
    max-width: 380px !important;
    border-radius: 24px !important;
    padding: 35px 25px 30px !important;
    background: #fff !important;
    text-align: center;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
}

.success-header {
    margin-bottom: 25px;
}

.success-icon-circle {
    width: 68px;
    height: 68px;
    background: #eefbe1;
    color: #005b3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: successBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-circle svg {
    width: 32px;
    height: 32px;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #005b3e;
    border: none !important;
    letter-spacing: -0.3px;
}

#success-message-text {
    color: #6c7b94;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 8px auto 0;
    max-width: 280px;
}

.success-details-body {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 25px;
    text-align: left;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
    position: relative;
    overflow: hidden;
}

.success-details-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--flexi-primary, #10b981), #047857);
}

.success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.success-row:last-child {
    border-bottom: none;
}

.success-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.success-value {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
}

.success-row.total-row {
    margin-top: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: 24px;
    padding-right: 24px;
    border-top: 2px dashed #cbd5e1;
    border-bottom: none;
    background: #f8fafc;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -20px;
    border-radius: 0 0 12px 12px;
}

.success-row.total-row .success-label {
    color: #334155;
    font-size: 1rem;
    font-weight: 700;
}

.success-row.total-row .success-value {
    color: var(--flexi-primary, #005b3e);
    font-size: 1.25rem;
    font-weight: 900;
}

.success-footer .btn-success-close {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: #165b38;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 91, 56, 0.2);
    transition: all 0.2s ease;
}

.success-footer .btn-success-close:hover {
    background: #0f4528;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 91, 56, 0.3);
}

.success-footer .btn-success-close:active {
    transform: translateY(0);
}

/* --- Transaction Error Premium Screen --- */
.error-sheet {
    max-width: 380px !important;
    border-radius: 24px !important;
    padding: 35px 25px 30px !important;
    background: #fff !important;
    text-align: center;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
}

.error-icon-circle {
    width: 68px;
    height: 68px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: errorShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.error-icon-circle svg {
    width: 32px;
    height: 32px;
}

@keyframes errorShake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-3px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(3px, 0, 0);
    }
}

.error-sheet h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #dc2626;
    border: none !important;
    letter-spacing: -0.3px;
}

#error-message-text {
    color: #6c7b94;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 8px auto 25px;
    max-width: 280px;
}

.error-footer .btn-error-close {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    transition: all 0.2s ease;
}

.error-footer .btn-error-close:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.error-footer .btn-error-close:active {
    transform: translateY(0);
}

/* Offers Filter Bar Redesign Refined - Balanced */
.offers-filter-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 6px 10px;
    border-bottom: 1px solid #f1f5f9;
}

#offer-operator-logos {
    display: flex;
    gap: 8px;
    align-items: center;
    transition: all 0.4s ease;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

#offer-operator-logos::-webkit-scrollbar {
    display: none;
}

.offer-op-item {
    cursor: pointer;
    flex-shrink: 0;
}

.offer-op-logo-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1.2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    color: #666;
    overflow: hidden;
    transition: all 0.2s ease;
}

.offer-op-item.active .offer-op-logo-box {
    border-color: var(--flexi-primary, #125534);
    box-shadow: 0 0 0 2px rgba(18, 85, 52, 0.06);
}

.offer-op-logo-box img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Specific styling for 'All' button */
.offer-op-item[data-operator="all"] .offer-op-logo-box {
    font-size: 10px;
    background: #fbfbfc;
}

.offer-op-item[data-operator="all"].active .offer-op-logo-box {
    background: var(--flexi-primary, #125534);
    color: #fff;
}

#offer-search-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 10px;
}

#offer-search {
    width: 0;
    padding: 0;
    border: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 38px;
    border-radius: 19px;
    background: #f8f9fa;
    outline: none;
    position: absolute;
    right: 0;
    z-index: 10;
    font-size: 14px;
    box-shadow: none !important;
}

#offer-search.expanded {
    width: 270px;
    padding: 0 45px 0 15px;
    opacity: 1;
    visibility: visible;
    border: 1px solid var(--flexi-primary, #125534) !important;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

#offer-search-toggle {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.2px solid #f0f0f0;
    border-radius: 9px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#offer-search-toggle span {
    font-size: 16px !important;
}

#offer-search-toggle:hover {
    border-color: var(--flexi-primary, #125534);
}

#offer-search-toggle.active {
    background: var(--flexi-primary, #125534);
    border-color: var(--flexi-primary, #125534);
}

#offer-search-toggle.active span {
    color: #fff !important;
}

#offer-operator-logos.compressed {
    opacity: 0;
    transform: translateX(-15px);
    pointer-events: none;
}

/* Smart Recharge Offers UI - Premium Bottom Sheet / Modal */
/* Smart Recharge Offers UI - Premium Bottom Sheet / Modal */
.smart-offers-btn {
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #64748b !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    flex-shrink: 0;
    --op-color: #e2e8f0;
    /* Default */
}

.smart-offers-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.smart-offers-btn.colored {
    border-color: var(--op-color) !important;
    color: var(--op-color) !important;
}

.smart-btn-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.smart-offers-btn .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-offers-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.smart-offers-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: #fff;
    width: 90%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 60vh;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes slideUpSheet {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.smart-offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.smart-offers-header span:first-child {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.01em;
}

#close-smart-offers {
    cursor: pointer;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 50%;
    font-size: 18px !important;
    transition: all 0.2s;
}

#close-smart-offers:hover {
    background: #fee2e2;
    color: #ef4444;
}

.smart-offers-tabs {
    display: flex;
    background: #f8fafc;
    padding: 6px;
    gap: 6px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.smart-op-tab {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 6px;
    border-radius: 12px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.smart-op-tab.active {
    background: #fff;
    color: var(--flexi-primary, #125534);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.smart-offers-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #fff;
}

.smart-offer-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    position: relative;
}

.smart-offer-mini-card:hover {
    border-color: var(--flexi-primary, #125534);
    background: #f0fdf4;
    transform: scale(1.02);
}

.sm-mini-logo-left {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
    padding: 4px;
    border: 1px solid #f1f5f9;
}

.sm-mini-info {
    flex: 1;
    min-width: 0;
}

.sm-mini-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.sm-mini-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sm-mini-meta span {
    font-size: 0.7rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.sm-mini-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #16a34a;
    background: #f0fdf4;
    padding: 6px 12px;
    border-radius: 12px;
    margin: 0 8px;
    white-space: nowrap;
}

.sm-mini-buy-btn {
    background: var(--flexi-primary, #125534) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(18, 85, 52, 0.2);
}

.sm-mini-buy-btn:hover {
    background: #0e4229 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(18, 85, 52, 0.25);
}

.smart-offer-empty {
    padding: 100px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile Bottom Sheet Specifics */
@media screen and (max-width: 782px) {
    .smart-offers-dropdown {
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 24px 24px 0 0;
        height: 60vh;
        animation: slideUpSheet 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding-bottom: 100px;
        /* Gap for Bottom Navigation Bar */
    }
}


.sm-mini-buy-btn {
    background: var(--flexi-primary, #125534) !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(18, 85, 52, 0.2);
}

.sm-mini-buy-btn:hover {
    background: #0e4229 !important;
    transform: scale(1.05);
}

.smart-offers-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    gap: 4px;
    border-bottom: 1px solid #e2e8f0;
}

.smart-op-tab {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.smart-op-tab.active {
    background: #fff;
    color: var(--flexi-primary, #125534);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sm-mini-info {
    flex: 1;
    min-width: 0;
}

.sm-mini-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-mini-meta {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 2px;
    display: flex;
    gap: 10px;
}

.sm-mini-price {
    background: #f0fdf4;
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-left: 10px;
}

.smart-offer-empty {
    padding: 30px 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    font-style: italic;
}

/* --- Contact Intelligence System Styles --- */
.contact-actions {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto !important;
}

.contact-actions .btn-add-contact {
    font-size: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-actions .btn-add-contact:hover {
    transform: scale(1.2);
    color: var(--flexi-primary-dark);
}

/* Enterprise Contact Suggestions */
.contact-suggestions-list {
    position: relative !important;
    width: 100% !important;
    max-height: 250px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-top: -8px;
    margin-bottom: 15px;
    z-index: 90;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f8fafc;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f1f5f9;
}

.suggestion-icon {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.suggestion-number {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
}

/* Contacts List Grid */
.contacts-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

/* ── Contacts Toolbar ─────────────────────────────────────── */
#contacts-toolbar {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
    margin-bottom: 12px;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 10px;
}

.ctb-search-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Hide Dashicons span — SVG via background-image used instead */
.ctb-search-icon {
    display: none;
}

.ctb-search-input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 10px center;
    background-size: 16px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ctb-search-input:focus {
    border-color: var(--flexi-primary, #125534);
    box-shadow: 0 0 0 3px rgba(18, 85, 52, 0.12);
}

.ctb-search-input::placeholder {
    color: #b0bac6;
    font-size: 0.84rem;
}

/* High-specificity override — prevents WP theme from squishing icon+text */
#contacts-toolbar #contacts-search-input {
    padding-left: 36px !important;
    background-position: 12px center !important;
    background-size: 16px !important;
}


/* Toggle Switch */
.ctb-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    cursor: pointer;
}

.ctb-toggle-label {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}

.ctb-toggle {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
    flex-shrink: 0;
}

.ctb-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ctb-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 18px;
    transition: background 0.2s;
    cursor: pointer;
}

.ctb-toggle-slider::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ctb-toggle input:checked+.ctb-toggle-slider {
    background: var(--flexi-primary, #125534);
}

.ctb-toggle input:checked+.ctb-toggle-slider::before {
    transform: translateX(14px);
}

.ctb-select-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.79rem;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.ctb-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--flexi-primary, #125534);
    margin: 0;
}

.ctb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 11px;
    height: 34px;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.1s;
}

.ctb-btn:active {
    transform: scale(0.97);
}

.ctb-btn .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

.ctb-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.ctb-btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

.ctb-btn-primary {
    background: var(--flexi-primary, #125534);
    color: #fff;
}

.ctb-btn-primary:hover {
    opacity: 0.88;
}

.ctb-btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.ctb-btn-danger:hover {
    background: #fecaca;
}

/* ── Contacts Table ───────────────────────────────────────── */
.contacts-table {
    border: 1px solid #e8edf2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ct-row {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s;
    min-height: 60px;
}

.ct-row:last-child {
    border-bottom: none;
}

.ct-row:hover {
    background: #f8fafc;
}

.ct-check {
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--flexi-primary, #125534);
}

.ct-info {
    flex: 1;
    cursor: pointer;
    min-width: 0;
    text-align: left;
}

.ct-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ct-num {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin-top: 2px;
}

.ct-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.15s, transform 0.1s;
    background: transparent;
}

.ct-btn:active {
    transform: scale(0.93);
}

.ct-btn .dashicons {
    font-size: 13px !important;
    width: 13px !important;
    height: 13px !important;
}

.ct-btn-green {
    background: #ecfdf5;
    color: #15803d;
}

.ct-btn-green:hover {
    background: #d1fae5;
}

.ct-btn-indigo {
    background: #eef2ff;
    color: #4338ca;
}

.ct-btn-indigo:hover {
    background: #e0e7ff;
}

.ct-btn-slate {
    background: #f1f5f9;
    color: #475569;
}

.ct-btn-slate:hover {
    background: #e2e8f0;
}

.ct-btn-red {
    background: #fff1f2;
    color: #dc2626;
}

.ct-btn-red:hover {
    background: #fee2e2;
}

/* ── Empty State ──────────────────────────────────────────── */
.contacts-empty-state {
    text-align: center;
    padding: 36px 20px;
    color: #94a3b8;
}

.contacts-empty-state .dashicons {
    font-size: 38px !important;
    width: 38px !important;
    height: 38px !important;
    opacity: 0.35;
    display: block;
    margin: 0 auto 10px;
}

/* Scrolling Notice Bar - Fixed Clipping & Modernized */
.wpflexi-notice-bar {
    background: #f8fafc;
    margin: 20px;
    /* Default margin for homepage/root placement */
    padding: 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    /* High enough to prevent clipping */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Adjust margins when notice is inside a drawer/section to match input field width */
.app-section>.wpflexi-notice-bar {
    margin: 15px 20px 20px 20px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: auto;
    /* Allow side margins to define the width */
}

.wpflexi-notice-content {
    flex: 1;
    overflow: hidden;
    margin: 0;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    /* Breathing room for script characters */
}

.contacts-empty-state p {
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================================================
   ALPHA TELECOM THEME (Operator Style Red / White)
   ========================================================================== */
.wpflexi-theme-alpha {
    --flexi-primary: #e11d48;
    --flexi-secondary: #ffffff;
    --flexi-accent: #f43f5e;
    --flexi-bg: #f8fafc;
    --flexi-text: #0f172a;
    --flexi-light-red: #fff1f2;
    --flexi-border: #e2e8f0;
}

/* Header Adjustments */
.wpflexi-theme-alpha .app-header-green {
    background: #e11d48 !important;
    border-radius: 0 0 24px 24px;
    padding: 2.5rem 1.25rem 5rem 1.25rem;
}

/* Balance Pill - Crisp White Card */
.wpflexi-theme-alpha .balance-pill {
    background: #ffffff !important;
    color: #e11d48 !important;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    margin-top: 15px;
}

.wpflexi-theme-alpha .balance-amount {
    color: #0f172a !important;
}

.wpflexi-theme-alpha .balance-text {
    color: #64748b !important;
}

/* Service Grid - Modern Circular Icons */
.wpflexi-theme-alpha .icon-circle {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 50% !important;
    color: #e11d48 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.wpflexi-theme-alpha .nav-card-item:hover .icon-circle {
    background: #fff1f2 !important;
    border-color: #e11d48 !important;
}

.wpflexi-theme-alpha .nav-label {
    margin-top: 4px;
    font-weight: 700;
    font-size: 0.7rem;
}

/* Buttons & Inputs */
.wpflexi-theme-alpha .form-group input:focus {
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1) !important;
}

.wpflexi-theme-alpha .wp-flexi-btn {
    background: #e11d48 !important;
    border-radius: 12px;
}

/* Bottom Navigation - Premium Operator Style Bar */
.wpflexi-theme-alpha .bottom-nav-container {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 1000000 !important;
    margin: 0 auto !important;
}

.wpflexi-theme-alpha .bottom-nav-pill {
    background: #ffffff !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    height: 72px !important;
    border-top: 1px solid #f1f5f9 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.03) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    padding-top: 0 !important;
}
@media (max-width: 480px) {
    .wpflexi-theme-alpha .bottom-nav-pill {
        max-width: 100% !important;
    }
}

.wpflexi-theme-alpha .b-nav-item {
    color: #94a3b8 !important;
    gap: 2px;
}

.wpflexi-theme-alpha .b-nav-item.active {
    color: #e11d48 !important;
}

.wpflexi-theme-alpha .b-nav-fab {
    background: #e11d48 !important;
    border-radius: 50% !important;
    margin-top: -38px !important;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4) !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 4px solid #fff !important;
}

.wpflexi-theme-alpha .b-nav-fab .dashicons {
    color: #fff !important;
}

/* Alpha theme specific balance reveal */
.wpflexi-theme-alpha .alpha-balance-reveal-wrapper {
    position: relative;
    min-height: 28px;
    display: flex;
    align-items: center;
}

.wpflexi-theme-alpha .alpha-balance-placeholder {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #e11d48 !important;
    background: linear-gradient(90deg, #e11d48 0%, #fb7185 50%, #e11d48 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: alphaBalanceShimmer 2.5s linear infinite;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.wpflexi-theme-alpha .alpha-balance-amount {
    font-size: 1.45rem !important;
    font-weight: 950 !important;
    color: #0f172a !important;
    letter-spacing: -0.5px;
    animation: alphaBalancePopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes alphaBalanceShimmer {
    to { background-position: 200% center; }
}

@keyframes alphaBalancePopIn {
    0% { opacity: 0; transform: scale(0.9) translateY(4px); filter: blur(4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.wpflexi-theme-alpha .alpha-balance-card {
    background: #fff;
    border-radius: 28px;
    padding: 1.25rem 1.5rem;
    margin: -2.5rem 1.25rem 1.5rem 1.25rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 50;
    border: 1px solid rgba(0,0,0,0.02);
}

.wpflexi-theme-alpha .alpha-balance-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-grow: 1;
}

.wpflexi-theme-alpha .alpha-wallet-icon {
    width: 48px;
    height: 48px;
    background: #fff1f2;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e11d48;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.05);
}

.wpflexi-theme-alpha .alpha-wallet-icon i {
    font-size: 20px;
    width: auto;
    height: auto;
}

.wpflexi-theme-alpha .alpha-balance-details {
    display: flex;
    flex-direction: column;
}

.wpflexi-theme-alpha .alpha-balance-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

.wpflexi-theme-alpha .alpha-add-balance {
    background: #fff;
    border: 1.5px solid #e11d48;
    color: #e11d48;
    border-radius: 100px;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.wpflexi-theme-alpha .alpha-add-balance:active {
    background: #fff1f2;
    transform: scale(0.96);
}

/* Alpha Dashboard Layout */
.wpflexi-theme-alpha #home-dashboard-view {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

.wpflexi-theme-alpha .alpha-home-header {
    background: #e11d48;
    padding: 1.5rem 1.25rem 2.5rem 1.25rem;
    border-radius: 0 0 35px 35px;
    position: relative;
    overflow: hidden;
}

.wpflexi-theme-alpha .alpha-home-header::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.wpflexi-theme-alpha .alpha-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.wpflexi-theme-alpha .alpha-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wpflexi-theme-alpha .alpha-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.wpflexi-theme-alpha .alpha-user-meta {
    display: flex;
    flex-direction: column;
}

.wpflexi-theme-alpha .alpha-greeting {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0px;
}

.wpflexi-theme-alpha .alpha-phone {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.wpflexi-theme-alpha .alpha-notifications {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

.wpflexi-theme-alpha .alpha-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fbbf24;
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e11d48;
}

/* Quick Recharge Section */
.wpflexi-theme-alpha .alpha-notice-bar {
    background: #fff;
    margin: 0 1rem 1.5rem 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
}

.wpflexi-theme-alpha .alpha-notice-label {
    background: #e11d48;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    margin-right: 12px;
    text-transform: uppercase;
    flex-shrink: 0;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
}

.wpflexi-theme-alpha .alpha-notice-scroller {
    flex: 1;
    overflow: hidden;
}

.wpflexi-theme-alpha .alpha-notice-track {
    display: flex;
    width: max-content;
    animation: alphaScrollNotice 30s linear infinite;
}

.wpflexi-theme-alpha .alpha-notice-text {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

@keyframes alphaScrollNotice {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.wpflexi-theme-alpha .alpha-quick-recharge {
    margin: 0 1rem 1.5rem 1rem;
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem 0.85rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.01);
}

.wpflexi-theme-alpha .alpha-op-grid {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    margin-bottom: 0.85rem;
    padding: 12px 12px 12px 12px !important;
    scrollbar-width: none;
}

.wpflexi-theme-alpha .alpha-op-grid::-webkit-scrollbar {
    display: none;
}

.wpflexi-theme-alpha .alpha-op-item {
    flex: 0 0 calc((100% - 24px - (5 * 6px)) / 5.8);
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1.5px solid #f1f5f9;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
}

.wpflexi-theme-alpha .alpha-op-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: all 0.3s;
}

.wpflexi-theme-alpha .alpha-op-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.wpflexi-theme-alpha .alpha-op-item.active {
    border-color: #e11d48;
    background: #fff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.15), 0 6px 12px rgba(225, 29, 72, 0.1);
}

.wpflexi-theme-alpha .alpha-op-item.active::after {
    content: "\f147";
    font-family: dashicons;
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e11d48;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(225, 29, 72, 0.3);
}

.wpflexi-theme-alpha .alpha-op-item.active img {
    transform: scale(1.05);
}

.wpflexi-theme-alpha .alpha-input-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.wpflexi-theme-alpha .alpha-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.wpflexi-theme-alpha .alpha-input-group input {
    width: 100%;
    height: 48px;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 0.8rem 0 2.2rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    transition: all 0.25s;
}

.wpflexi-theme-alpha .alpha-input-group input#alpha_recharge_num {
    padding-right: 2.3rem !important;
}

.wpflexi-theme-alpha .alpha-input-group input::placeholder {
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.wpflexi-theme-alpha .alpha-input-group input:focus {
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08) !important;
    outline: none !important;
}

.wpflexi-theme-alpha .alpha-input-icon {
    position: absolute;
    left: 0.85rem;
    color: #64748b;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpflexi-theme-alpha .alpha-contact-btn {
    position: absolute;
    right: 0.6rem;
    width: 26px;
    height: 26px;
    background: #e11d48;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.2);
    cursor: pointer;
}

.wpflexi-theme-alpha .alpha-contact-btn svg {
    width: 14px;
    height: 14px;
}

.wpflexi-theme-alpha .alpha-type-selection {
    display: flex;
    background: #ffffff;
    padding: 4px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.wpflexi-theme-alpha .alpha-type-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.wpflexi-theme-alpha .alpha-type-btn.active {
    background: #e11d48;
    color: #fff;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.15);
}

.wpflexi-theme-alpha .alpha-button-grid {
    display: flex;
    gap: 8px;
}
.wpflexi-theme-alpha .alpha-btn-recharge {
    flex: 1.15;
}
.wpflexi-theme-alpha .alpha-btn-special-offer {
    flex: 1;
}

.wpflexi-theme-alpha .alpha-btn-action {
    height: 48px;
    border: none;
    border-radius: 12px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpflexi-theme-alpha .alpha-btn-recharge {
    background: #e11d48;
    color: #fff;
    box-shadow: 0 6px 15px rgba(225, 29, 72, 0.2);
}

.wpflexi-theme-alpha .alpha-btn-recharge:active {
    transform: scale(0.97) translateY(1px);
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.15);
}

.wpflexi-theme-alpha .alpha-btn-special-offer {
    background: #fff;
    color: #e11d48;
    border: 1.5px solid #e11d48;
}

.wpflexi-theme-alpha .alpha-btn-action .btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpflexi-theme-alpha .alpha-btn-action svg.alpha-btn-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* Services Section */
.wpflexi-theme-alpha .alpha-services-section {
    padding: 0 1rem 1.5rem 1rem;
}

.wpflexi-theme-alpha .alpha-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 4px;
}

.wpflexi-theme-alpha .section-title {
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
}

.wpflexi-theme-alpha .view-all {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e11d48;
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.wpflexi-theme-alpha .view-all i {
    font-size: 1rem;
    width: auto;
    height: auto;
}

.wpflexi-theme-alpha .alpha-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.wpflexi-theme-alpha .alpha-service-item {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpflexi-theme-alpha .alpha-service-item:active {
    transform: translateY(2px);
    background: #f8fafc;
}

.wpflexi-theme-alpha .alpha-service-icon {
    width: 38px;
    height: 38px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e11d48;
    transition: all 0.2s;
}

.wpflexi-theme-alpha .alpha-service-icon svg {
    width: 32px;
    height: 32px;
    stroke: #e11d48;
    stroke-width: 1.8;
}

.wpflexi-theme-alpha .alpha-service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(225, 29, 72, 0.12), 0 4px 12px rgba(225, 29, 72, 0.08);
}

.wpflexi-theme-alpha .alpha-service-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
    text-align: center;
    white-space: normal;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    margin-top: -4px;
}

/* Alpha Theme Responsiveness for Small Mobiles */
@media screen and (max-width: 480px) {
    .wpflexi-theme-alpha .alpha-button-grid {
        grid-template-columns: 1.15fr 1fr !important;
        gap: 6px !important;
    }
    .wpflexi-theme-alpha .alpha-btn-action {
        padding: 0 0.5rem !important;
        font-size: 0.8rem !important;
        height: 46px !important;
    }
    .wpflexi-theme-alpha .alpha-btn-action .btn-content {
        gap: 4px !important;
    }
    .wpflexi-theme-alpha .alpha-btn-action .btn-content svg {
        width: 16px !important;
        height: 16px !important;
    }
    .wpflexi-theme-alpha .alpha-btn-arrow {
        width: 14px !important;
        height: 14px !important;
    }
    
    .wpflexi-theme-alpha .alpha-input-grid {
        grid-template-columns: 1.6fr 1fr !important;
        gap: 6px !important;
    }
    .wpflexi-theme-alpha .alpha-input-group input {
        padding-left: 1.8rem !important;
        font-size: 0.82rem !important;
        height: 44px !important;
    }
    .wpflexi-theme-alpha .alpha-input-icon {
        left: 0.6rem !important;
    }
}

@media screen and (max-width: 380px) {
    .wpflexi-theme-alpha .alpha-op-grid {
        gap: 8px !important;
        margin-bottom: 1.25rem;
    }
    .wpflexi-theme-alpha .alpha-op-grid {
        gap: 5px !important;
        margin-bottom: 0.75rem;
        padding: 12px 10px 12px 10px !important;
    }
    .wpflexi-theme-alpha .alpha-op-item {
        flex: 0 0 calc((100% - 20px - (5 * 5px)) / 5.5) !important;
        padding: 5px !important;
    }
    .wpflexi-theme-alpha .alpha-services-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
    .wpflexi-theme-alpha .alpha-service-label {
        font-size: 9px !important;
    }
    .wpflexi-theme-alpha .alpha-btn-action {
        font-size: 0.72rem !important;
        padding: 0 0.35rem !important;
    }
    .wpflexi-theme-alpha .alpha-input-group input {
        font-size: 0.75rem !important;
        padding-right: 2.2rem !important;
    }
    .wpflexi-theme-alpha .alpha-contact-btn {
        width: 22px !important;
        height: 22px !important;
    }
}

@media screen and (max-width: 340px) {
    .wpflexi-theme-alpha .alpha-btn-action .btn-content span {
         font-size: 0.68rem !important;
    }
    .wpflexi-theme-alpha .alpha-op-grid {
        gap: 4px !important;
        padding: 10px 8px 10px 8px !important;
    }
    .wpflexi-theme-alpha .alpha-op-item {
        flex: 0 0 calc((100% - 16px - (5 * 4px)) / 5.5) !important;
        padding: 4px !important;
        border-radius: 7px !important;
    }
}

/* --- Smart Login System (Enterprise Grade) --- */
.smart-auth-wrapper {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8fafc;
    font-family: 'Inter', -apple-system, sans-serif;
}

.smart-auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.smart-auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.smart-auth-logo {
    max-height: 70px;
    width: auto;
    margin-bottom: 20px;
}

.smart-auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.smart-auth-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 10px;
}

.smart-step {
    display: none;
    animation: smart-fade-in 0.4s ease-out forwards;
}

.smart-step.active {
    display: block;
}

@keyframes smart-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.smart-input-group {
    margin-bottom: 24px;
    position: relative;
}

.smart-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smart-input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.2s;
    background: #f8fafc;
    box-sizing: border-box;
}

.smart-input:focus {
    border-color: var(--flexi-primary, #e11d48);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.smart-btn {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    background: var(--flexi-primary, #e11d48);
    color: #ffffff;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.smart-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(225, 29, 72, 0.3);
}

.smart-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.smart-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.smart-otp-field {
    width: 100%;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    box-sizing: border-box;
}

.smart-otp-field:focus {
    border-color: var(--flexi-primary, #e11d48);
    background: #ffffff;
    outline: none;
}

.smart-resend-box {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.smart-resend-link {
    color: var(--flexi-primary, #e11d48);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.smart-resend-link.disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.smart-back-btn {
    margin-top: 20px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.smart-back-btn:hover {
    color: #0f172a;
}

.smart-success-check {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
}

@media (max-width: 480px) {
    .smart-auth-card {
        padding: 30px 20px;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }
    .smart-auth-wrapper {
        padding: 0;
    }
}

/* Service Description Modal Link Styles */
.swal2-html-container a {
    color: #e11d48 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}
.swal2-html-container a:hover {
    color: #be123c !important;
}

/* Green Theme Navbar Override - Dark Green Pill */
.wpflexi-theme-green .bottom-nav-container {
    bottom: 30px;
}
.wpflexi-theme-green .bottom-nav-pill {
    background: #125534;
    border-radius: 50px;
    width: calc(100% - 40px);
    max-width: 400px;
    height: 65px;
    border: none;
    box-shadow: 0 10px 30px rgba(18, 85, 52, 0.3);
}
.wpflexi-theme-green .b-nav-item {
    color: rgba(255, 255, 255, 0.6);
}
.wpflexi-theme-green .b-nav-item.active {
    color: #FFC107;
}

/* Green Theme FAB Override - Squircle Yellow */
.wpflexi-theme-green .b-nav-fab {
    background: #FFC107 !important;
    border-radius: 22px !important;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4) !important;
    border: none !important;
}
.wpflexi-theme-green .b-nav-fab .dashicons {
    color: #1a1a1a !important;
}

/* Alpha Theme FAB Override */
.wpflexi-theme-alpha .b-nav-fab {
    background: #e11d48 !important;
    border-radius: 50% !important;
    margin-top: -38px !important;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4) !important;
    width: 60px !important;
    height: 60px !important;
    border: 4px solid #fff !important;
}
.wpflexi-theme-alpha .b-nav-fab .feather-clock {
    stroke: #ffffff !important;
}

.wpflexi-theme-alpha .b-nav-fab {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
