/**
 * NFC Plugin Professional Styles (Ultimate AJAX & Custom Checkout)
 * Path: assets/css/style.css
 * Version: 3.5.0
 * الالتزام بالميثاق الذهبي: التصميم الفاخر، التجاوب الكامل، وعزل تجربة المستخدم.
 */

/* 1. الحاوية العامة والخطوط */
.nfc-form-wrapper, .nfc-checkout-wrapper {
    max-width: 900px;
    margin: 40px auto;
    direction: rtl;
    padding: 0 15px;
    perspective: 1000px;
    font-family: var(--dia-font, inherit);
    font-size: var(--dia-base-size, 16px);
    line-height: var(--dia-line, 1.65);
}

/* 2. تصميم البطاقة الموحد (The Master Card UI) */
.nfc-card-ui, .nfc-checkout-container {
    background: var(--dia-card-bg, #ffffff);
    border-radius: 3rem;
    padding: 4rem 3.5rem;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--dia-border-soft, #f1f5f9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 3. تأثيرات AJAX (Seamless Transition) */
.nfc-fade-out {
    opacity: 0 !important;
    transform: translateY(-30px) scale(0.97);
    pointer-events: none;
}

/* 4. ترويسة الصفحات */
.nfc-f-header, .nfc-checkout-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.nfc-f-header h2, .nfc-checkout-header h1 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--dia-ink, #0f172a);
    margin-bottom: 12px;
}

.nfc-f-header p, .nfc-checkout-header p {
    color: var(--dia-muted-ink, #64748b);
    font-size: 1.1rem;
}

/* 5. عناوين الأقسام (Section Labels) */
.nfc-section-title, .section-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--dia-muted-2, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    margin: 2.5rem 0 1.5rem;
}

.nfc-section-title::after, .section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--dia-border-soft, #f1f5f9);
    margin-right: 1.5rem;
}

/* 6. نظام الشبكة (Grid Layout) */
.nfc-grid, .nfc-checkout-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 2.5rem !important;
}

/* 7. مدخلات النصوص (Input Fields) */
.nfc-input, .nfc-billing-fields input {
    width: 100% !important;
    background: var(--dia-input-bg, #f8fafc) !important;
    border: 2px solid var(--dia-border-soft, #f1f5f9) !important;
    border-radius: 1.25rem !important;
    padding: 1.3rem 1.5rem !important;
    font-size: 1.05rem !important;
    color: var(--dia-ink-2, #1e293b) !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

.nfc-input:focus, .nfc-billing-fields input:focus {
    border-color: var(--dia-accent, #6366f1) !important;
    background: var(--dia-card-bg, #ffffff) !important;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.05) !important;
}

/* 8. منطقة رفع الصورة (Photo Upload Area) */
.nfc-photo-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px dashed var(--dia-border-soft, #e2e8f0);
    border-radius: 2.5rem;
    padding: 3.5rem;
    background: var(--dia-input-bg, #f8fafc);
    cursor: pointer;
    margin-bottom: 3.5rem;
    transition: all 0.3s ease;
}

.nfc-photo-zone:hover {
    background: var(--dia-border-soft, #f1f5f9);
    border-color: var(--dia-accent, #6366f1);
}

/* 9. الأزرار الرئيسية (Submit Buttons) */
.nfc-submit-btn, .nfc-final-pay-btn {
    width: 100% !important;
    background: var(--dia-ink, #0f172a) !important;
    color: var(--dia-card-bg, #ffffff) !important;
    padding: 24px !important;
    border-radius: 1.5rem !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    border: none !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    gap: 15px;
}

.nfc-submit-btn:hover, .nfc-final-pay-btn:hover {
    background: var(--dia-ink-2, #1e293b) !important;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.nfc-submit-btn:disabled, .nfc-final-pay-btn:disabled {
    background: var(--dia-muted-2, #94a3b8) !important;
    cursor: wait;
    transform: none !important;
}

/* 10. تفاصيل صفحة الدفع المخصصة (Custom Checkout Specifics) */
.nfc-checkout-body {
    background: var(--dia-input-bg, #f8fafc);
    margin: 0;
    min-height: 100vh;
}

.nfc-step-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    align-items: center;
}

.nfc-step-indicator .step {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--dia-muted-2, #94a3b8);
    background: var(--dia-border-soft, #f1f5f9);
    padding: 6px 14px;
    border-radius: 20px;
}

.nfc-step-indicator .step.active {
    background: var(--dia-accent, #6366f1);
    color: #fff;
}

.nfc-checkout-grid {
    grid-template-columns: 1.3fr 1fr !important;
    gap: 50px !important;
}

/* ملخص الطلب ووسائل الدفع */
.shop_table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

.shop_table td {
    padding: 15px 0;
    border-bottom: 1px solid var(--dia-border-soft, #f1f5f9);
}

.product-owner {
    display: block;
    font-size: 0.8rem;
    color: var(--dia-muted-2, #94a3b8);
    margin-top: 4px;
}

/* =====================================================================
 *  My Cards (Shortcode: [my_cards] / [my_profiles])
 *  تصميم App-like متناسق مع واجهة النموذج (بدون التأثير على القالب)
 * ===================================================================== */

.nfc-my-cards-wrap .nfc-card-ui,
.nfc-my-auth .nfc-card-ui {
    padding: 3.25rem 2.75rem;
}


.nfc-my-cards-wrap.nfc-form-wrapper {
    max-width: 1150px;
}

.nfc-my-auth.nfc-form-wrapper {
    max-width: 980px;
}

/* شبكة البطاقات */
.nfc-my-cards-grid {
    display: grid;
    gap: 26px;
}

.nfc-my-cards-grid.nfc-cols-1 { grid-template-columns: 1fr; }
.nfc-my-cards-grid.nfc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nfc-my-cards-grid.nfc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nfc-my-cards-grid.nfc-cols-4 { grid-template-columns: repeat(4, 1fr); }
.nfc-my-cards-grid.nfc-cols-5 { grid-template-columns: repeat(5, 1fr); }
.nfc-my-cards-grid.nfc-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 980px) {
    .nfc-my-cards-grid.nfc-cols-4,
    .nfc-my-cards-grid.nfc-cols-5,
    .nfc-my-cards-grid.nfc-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .nfc-my-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 560px) {
    .nfc-my-cards-wrap .nfc-card-ui,
    .nfc-my-auth .nfc-card-ui {
        padding: 2.25rem 1.5rem;
        border-radius: 2.25rem;
    }
    .nfc-my-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }
}

/* بطاقة واحدة */
.nfc-my-card {
    border-radius: 1.75rem;
    border: 1px solid var(--dia-border-soft, #f1f5f9);
    overflow: hidden;
    background: var(--dia-card-bg, #ffffff);
    box-shadow: 0 22px 55px -30px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nfc-my-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.25);
}


/* بطاقة Pro (مطابقة لفكرة الـ App Card) */
.nfc-my-card-pro-link{
    display:block;
    text-decoration:none;
    color:inherit;
}

.nfc-my-card-pro-header{
    position:relative;
    height: 130px;
    background: linear-gradient(135deg, var(--dia-accent, #6366f1) 0%, var(--dia-accent-2, #8b5cf6) 55%, #a855f7 100%);
    overflow:hidden;
}

.nfc-my-card-pro-header::before{
    content:"";
    position:absolute;
    inset:0;
    background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.35;
}

.nfc-my-card-pro-cover{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    filter: blur(18px);
    opacity: 0.35;
    transform: scale(1.08);
}

.nfc-my-card-pro-header::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0));
}

.nfc-my-card-pro-avatar{
    position:absolute;
    left:50%;
    bottom:-42px;
    transform: translateX(-50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 4px solid var(--dia-card-bg, #ffffff);
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
    background: var(--dia-card-bg, #ffffff);
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index: 3;
}

.nfc-my-card-pro-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.nfc-my-card-pro-initial{
    font-size: 2.15rem;
    font-weight: 900;
    color: var(--dia-ink, #0f172a);
}

.nfc-my-card-pro-body{
    padding: 56px 18px 16px;
    text-align:center;
}

.nfc-my-card-pro-name{
    font-weight: 900;
    color: var(--dia-ink, #0f172a);
    font-size: 1.12rem;
    line-height: 1.25;
    margin-bottom: 6px;
}

.nfc-my-card-pro-sub{
    color: var(--dia-muted-ink, #64748b);
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 1.4em;
}

.nfc-my-card-pro-sub--empty{
    opacity: 0;
}

.nfc-my-card.nfc-my-card-pro .nfc-my-card-actions{
    justify-content:center;
    padding: 0 16px 18px;
    margin-top: 0;
}

.nfc-my-card-media {
    position: relative;
    display: block;
    height: 170px;
    background: var(--dia-input-bg, #f8fafc);
}

.nfc-my-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nfc-my-card-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dia-ink, #0f172a);
}

.nfc-my-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0));
    pointer-events: none;
}

.nfc-my-card-ov-name {
    color: #fff;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.2;
}

.nfc-my-card-ov-sub {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-top: 4px;
}

.nfc-my-card-body {
    padding: 14px 16px 16px;
}

.nfc-my-card-name {
    font-weight: 900;
    color: var(--dia-ink, #0f172a);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.nfc-my-card-meta {
    color: var(--dia-muted-ink, #64748b);
    font-size: 0.95rem;
    line-height: 1.3;
}

.nfc-my-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.nfc-my-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--dia-border-soft, #e2e8f0);
    background: var(--dia-card-bg, #ffffff);
    color: var(--dia-ink, #0f172a);
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    text-decoration: none;
    transition: all 0.25s ease;
}

.nfc-my-card-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px -18px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

/* شاشة الدخول/التسجيل */
.nfc-my-auth-actions{
    display:flex;
    gap: 14px;
    justify-content:center;
    flex-wrap:wrap;
    margin-top: 1.25rem;
}

.nfc-my-auth-note{
    margin-top: 14px;
    text-align:center;
    color: var(--dia-muted-2, #94a3b8);
    font-size: 0.95rem;
}

.nfc-my-auth-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
}

.nfc-my-auth-panel {
    border: 1px solid var(--dia-border-soft, #f1f5f9);
    border-radius: 1.75rem;
    padding: 18px 18px 20px;
    background: var(--dia-card-bg, #ffffff);
}

.nfc-my-auth-title {
    font-weight: 900;
    color: var(--dia-ink, #0f172a);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.nfc-my-auth-text {
    color: var(--dia-muted-ink, #64748b);
    line-height: 1.6;
    margin-bottom: 16px;
}

.nfc-my-auth-btn {
    background: var(--dia-ink, #0f172a);
    color: #fff;
    padding: 14px 18px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    min-width: 180px;
}

/* =====================================================================
 *  Toast (My Cards - Copy Link UX)
 * ===================================================================== */

.nfc-toast{
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(18px);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.98rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 999999;
    max-width: min(92vw, 520px);
    text-align: center;
}

.nfc-toast.is-show{
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nfc-my-auth-btn:hover {
    background: var(--dia-ink-2, #1e293b);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

.nfc-my-auth-btn--secondary{
    background: var(--dia-card-bg, #ffffff);
    color: var(--dia-ink, #0f172a);
    border: 1px solid var(--dia-border-soft, #e2e8f0);
}

.nfc-my-auth-btn--secondary:hover{
    background: var(--dia-card-bg, #ffffff);
    border-color: #cbd5e1;
}

@media (max-width: 560px){
    .nfc-my-auth-btn{
        width: 100%;
        min-width: 0;
    }
}

/* تنسيق wp_login_form داخل الشاشة */
.nfc-my-auth-form form {
    margin: 0;
}

.nfc-my-auth-form label {
    display: block;
    font-weight: 800;
    color: #334155;
    margin-bottom: 6px;
}

.nfc-my-auth-form input[type="text"],
.nfc-my-auth-form input[type="password"],
.nfc-my-auth-form input[type="email"] {
    width: 100% !important;
    background: var(--dia-input-bg, #f8fafc) !important;
    border: 2px solid var(--dia-border-soft, #f1f5f9) !important;
    border-radius: 1.25rem !important;
    padding: 1rem 1.15rem !important;
    font-size: 1rem !important;
    color: var(--dia-ink-2, #1e293b) !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

.nfc-my-auth-form input[type="text"]:focus,
.nfc-my-auth-form input[type="password"]:focus,
.nfc-my-auth-form input[type="email"]:focus {
    border-color: var(--dia-accent, #6366f1) !important;
    background: var(--dia-card-bg, #ffffff) !important;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.05) !important;
}

.nfc-my-auth-form input[type="submit"] {
    width: 100% !important;
    background: var(--dia-ink, #0f172a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 1.25rem !important;
    padding: 14px 16px !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.nfc-my-auth-form input[type="submit"]:hover {
    background: var(--dia-ink-2, #1e293b) !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

.nfc-my-auth-form .login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 16px;
}

.nfc-my-auth-form .login-remember label {
    margin: 0;
    font-weight: 800;
    color: var(--dia-muted-ink, #64748b);
}

@media (max-width: 860px) {
    .nfc-my-auth-grid {
        grid-template-columns: 1fr;
    }
}


.order-total {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dia-accent, #6366f1);
}

/* وسائل الدفع */
.wc_payment_methods {
    list-style: none;
    padding: 0;
}

.wc_payment_methods li {
    background: var(--dia-input-bg, #f8fafc);
    padding: 15px;
    border-radius: 1rem;
    margin-bottom: 10px;
    border: 1px solid var(--dia-border-soft, #f1f5f9);
}

/* 11. الأنميشن */
@keyframes fa-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.fa-spin { animation: fa-spin 1s infinite linear; }

/* 12. التجاوب مع الجوال (Responsive Design) */
@media (max-width: 850px) {
    .nfc-grid, .nfc-checkout-grid {
        grid-template-columns: 1fr !important;
    }
    .nfc-card-ui, .nfc-checkout-container {
        padding: 3rem 1.5rem !important;
        border-radius: 2rem;
    }
    .nfc-f-header h2, .nfc-checkout-header h1 {
        font-size: 1.8rem;
    }
}

/* 12.1 تحسين إضافي للجوال: توسيع مساحة الحقول داخل البطاقة */
@media (max-width: 560px) {
    .nfc-form-wrapper, .nfc-checkout-wrapper {
        padding: 0 2px;
        margin: 16px auto;
    }
    .nfc-card-ui, .nfc-checkout-container {
        padding: 1.85rem 0.85rem !important;
        border-radius: 2.25rem;
        max-width: 100%;
    }
    .nfc-photo-zone {
        padding: 1.75rem 0.85rem;
        border-radius: 2.25rem;
    }
}

@media (max-width: 420px) {
    .nfc-form-wrapper, .nfc-checkout-wrapper {
        padding: 0 0px;
        margin: 12px auto;
    }
    .nfc-card-ui, .nfc-checkout-container {
        padding: 1.55rem 0.65rem !important;
        border-radius: 2.0rem;
    }
    .nfc-photo-zone {
        padding: 1.45rem 0.65rem;
        border-radius: 2.0rem;
    }
    .nfc-form-header h1 {
        font-size: 1.55rem;
        line-height: 1.2;
    }
}


@media (max-width: 420px) {
    .nfc-card-ui, .nfc-checkout-container {
        padding: 1.70rem 0.65rem !important;
    }
    .nfc-photo-zone {
        padding: 1.55rem 0.65rem;
    }
}






/* === NFC Phone/WhatsApp Country Selector (v3.6.7) === */
.nfc-phone-combo{
    display:flex;
    gap:12px;
    align-items:stretch;
}
.nfc-phone-combo .nfc-country-select{
    position:relative;
    flex:0 0 118px;
    max-width:118px;
}
.nfc-phone-combo .nfc-country-select .nfc-dial-select{
    width:100%;
    direction:ltr;
    text-align:left;
    padding-left:44px; /* leaves room for the flag */
    padding-right:14px;
}
.nfc-phone-combo .nfc-country-select .nfc-flag-badge{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    width:22px;
    height:16px;
    border-radius:3px;
    box-shadow:0 0 0 1px rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:2;
}
.nfc-phone-combo .nfc-number-input{
    flex:1 1 auto;
    direction:ltr;
    text-align:left;
}
.nfc-phone-hint{
    font-size:0.82rem;
    color: var(--dia-muted-ink, #64748b);
    margin-top:6px;
    line-height:1.4;
}
@media (max-width: 520px){
    .nfc-phone-combo{
        flex-direction:column;
    }
    .nfc-phone-combo .nfc-country-select{
        flex:1 1 auto;
        max-width:none;
    }
}


/* === NFC Country Picker Enhanced (Flags inside list) (v3.7.2) === */
/* لا نخفي الـ select إلا بعد تفعيل الـ JS (حتى يبقى fallback بدون JS) */
.nfc-country-enhanced .nfc-phone-combo .nfc-country-select .nfc-flag-badge,
.nfc-country-enhanced .nfc-phone-combo .nfc-country-select .nfc-dial-select{
    position:absolute !important;
    left:-9999px !important;
    width:1px !important;
    height:1px !important;
    overflow:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
}

.nfc-country-enhanced .nfc-country-picker{
    position:relative;
    width:100%;
}

.nfc-country-enhanced .nfc-country-trigger{
    width:100%;
    min-height:52px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border: 1px solid var(--dia-border-soft, #e2e8f0);
    border-radius:14px;
    background: var(--dia-card-bg, #ffffff);
    cursor:pointer;
}

.nfc-country-enhanced .nfc-country-trigger:focus{
    outline:none;
    border-color:#93c5fd;
    box-shadow:0 0 0 4px rgba(59,130,246,0.15);
}

.nfc-country-enhanced .nfc-country-chevron{
    margin-inline-start:auto;
    font-size:14px;
    opacity:0.75;
}

.nfc-country-enhanced .nfc-country-menu{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    inset-inline-start:0;
    inset-inline-end:0;
    z-index:99999;
    background: var(--dia-card-bg, #ffffff);
    border: 1px solid var(--dia-border-soft, #e2e8f0);
    border-radius:14px;
    box-shadow:0 12px 40px rgba(15, 23, 42, 0.16);
    padding:6px;
    max-height:260px;
    overflow:auto;
}

.nfc-country-enhanced .nfc-country-picker.is-open .nfc-country-menu{
    display:block;
}

.nfc-country-enhanced .nfc-country-item{
    width:100%;
    border:0;
    background:transparent;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-radius:12px;
    cursor:pointer;
}

.nfc-country-enhanced .nfc-country-item:hover{
    background:rgba(59,130,246,0.08);
}

.nfc-country-enhanced .nfc-country-item.is-selected{
    background:rgba(59,130,246,0.12);
}

.nfc-country-enhanced .nfc-country-flag{
    display:inline-block;
    width:20px;
    height:14px;
    border-radius:3px;
    box-shadow:0 0 0 1px rgba(0,0,0,0.06);
    flex:0 0 auto;
}

.nfc-country-enhanced .nfc-country-dial{
    font-weight:700;
    font-size:0.92rem;
    color: var(--dia-ink, #0f172a);
}




/* === NFC Country Picker Modal (v3.7.3) === */
body.nfc-modal-open{
    overflow:hidden;
}
.nfc-country-modal-overlay{
    display:none;
    position:fixed;
    inset:0;
    z-index:999999;
    background:rgba(15,23,42,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding:16px;
    align-items:center;
    justify-content:center;
}
.nfc-country-modal{
    width:min(420px, 100%);
    max-height:min(70vh, 560px);
    background: var(--dia-card-bg, #ffffff);
    border-radius:18px;
    border:1px solid rgba(226,232,240,0.9);
    box-shadow:0 30px 80px rgba(2,6,23,0.35);
    overflow:hidden;
    display:flex;
    flex-direction:column;
}
.nfc-country-modal-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 14px 10px;
    border-bottom:1px solid rgba(226,232,240,0.9);
}
.nfc-country-modal-title{
    font-weight:800;
    font-size:0.95rem;
    color: var(--dia-ink, #0f172a);
}
.nfc-country-modal-close{
    width:38px;
    height:38px;
    border-radius:12px;
    border:1px solid rgba(226,232,240,0.9);
    background: var(--dia-card-bg, #ffffff);
    cursor:pointer;
    font-size:22px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
}
.nfc-country-modal-search{
    padding:12px 14px;
    border-bottom:1px solid rgba(226,232,240,0.9);
}
.nfc-country-search-input{
    width:100%;
    padding:12px 12px;
    border-radius:14px;
    border: 1px solid var(--dia-border-soft, #e2e8f0);
    background: var(--dia-input-bg, #f8fafc);
    outline:none;
    font-size:0.95rem;
    direction:ltr;
    text-align:left;
}
.nfc-country-search-input:focus{
    border-color:#60a5fa;
    box-shadow:0 0 0 4px rgba(59,130,246,0.15);
    background: var(--dia-card-bg, #ffffff);
}
.nfc-country-modal-list{
    padding:10px;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
}
.nfc-country-modal-list .nfc-country-item{
    width:100%;
}
@media (max-width: 520px){
    .nfc-country-modal-overlay{
        align-items:flex-end;
        padding:10px;
    }
    .nfc-country-modal{
        width:100%;
        max-height:82vh;
        border-radius:18px 18px 0 0;
    }
}
