:root{
    --green:#2e7d32;
    --green-dark:#1b5e20;
    --green-light:#a5d6a7;
    --green-soft:#ecfdf5;
    --gray:#4b5563;
    --gray-soft:#f3f4f6;
    --gray-text:#6b7280;
    --black:#111827;
    --blue:#1565c0;
    --yellow:#f9a825;
    --red:#c62828;
    --orange:#ef6c00;
    --white:#fff;
    --border:#d1d5db;
    --border-soft:#e5e7eb;
    --radius:18px;
    --shadow:0 14px 36px rgba(0,0,0,.08);
    --shadow-soft:0 10px 28px rgba(0,0,0,.06);
}

.wplmvip-wrapper,
.wplmvip-admin-wrap{
    direction:rtl;
    font-family:Tahoma,sans-serif;
    color:var(--black);
}

.wplmvip-card{
    background:linear-gradient(180deg,#fff,#f8fafc);
    border:1px solid rgba(0,0,0,.05);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:24px;
    margin:20px 0;
}

.wplmvip-card h2,
.wplmvip-card h3{
    margin-top:0;
    color:var(--black);
    line-height:1.8;
}

.wplmvip-form input[type="text"],
.wplmvip-form input[type="number"],
.wplmvip-form input[type="file"],
.wplmvip-form textarea,
.wplmvip-form select,
.wplmvip-track-form input[type="text"],
.wplmvip-textarea,
.wplmvip-admin-filters input[type="text"],
.wplmvip-admin-filters select{
    width:100%;
    box-sizing:border-box;
    padding:14px 16px;
    border:1px solid var(--border);
    border-radius:14px;
    background:#fff;
    margin-bottom:14px;
    transition:.25s;
    font-size:14px;
    color:var(--black);
    line-height:1.7;
}

.wplmvip-form input::placeholder,
.wplmvip-form textarea::placeholder,
.wplmvip-track-form input::placeholder,
.wplmvip-textarea::placeholder{
    color:var(--gray-text);
}

.wplmvip-form input:focus,
.wplmvip-form textarea:focus,
.wplmvip-form select:focus,
.wplmvip-track-form input:focus,
.wplmvip-textarea:focus,
.wplmvip-admin-filters input:focus,
.wplmvip-admin-filters select:focus{
    outline:none;
    border-color:var(--green);
    box-shadow:0 0 0 4px rgba(46,125,50,.12);
    background:#fff;
}

.wplmvip-form textarea,
.wplmvip-textarea{
    min-height:120px;
    resize:vertical;
}

.wplmvip-grid-2{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    align-items:start;
}

.wplmvip-info-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:15px;
}

.wplmvip-info-item{
    background:#f8fafc;
    border:1px solid var(--border-soft);
    border-radius:14px;
    padding:14px;
    color:var(--black);
    line-height:1.9;
    box-shadow:var(--shadow-soft);
}

.wplmvip-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--gray);
    color:#fff;
    text-decoration:none;
    border:none;
    padding:12px 18px;
    border-radius:14px;
    cursor:pointer;
    transition:.25s;
    margin:4px;
    font-size:14px;
    font-weight:bold;
    min-height:46px;
}

.wplmvip-btn:hover{
    opacity:.95;
    transform:translateY(-1px);
}

.wplmvip-btn:disabled{
    opacity:.6;
    cursor:not-allowed;
    transform:none;
}

.wplmvip-btn.success{background:var(--green);}
.wplmvip-btn.paid{background:var(--green-dark);}
.wplmvip-btn.danger{background:var(--red);}
.wplmvip-btn.dark{background:var(--black);}
.wplmvip-btn.warning{background:var(--orange);}

.wplmvip-status{
    display:inline-block;
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:bold;
    color:#fff;
    white-space:nowrap;
}

.wplmvip-status.blue{background:var(--blue);}
.wplmvip-status.yellow{background:var(--yellow); color:#111;}
.wplmvip-status.red{background:var(--red);}
.wplmvip-status.green-light{background:var(--green-light); color:#111;}
.wplmvip-status.green-dark{background:var(--green-dark);}
.wplmvip-status.orange{background:var(--orange);}
.wplmvip-status.gray{background:var(--gray);}

.wplmvip-table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:18px;
}

.wplmvip-table th,
.wplmvip-table td{
    padding:14px;
    text-align:right;
    vertical-align:top;
    border-bottom:1px solid var(--border-soft);
}

.wplmvip-table thead th{
    background:var(--black);
    color:#fff;
    font-size:14px;
}

.wplmvip-table tbody tr:nth-child(even){
    background:#f9fafb;
}

.wplmvip-upload-box{
    background:#f8fafc;
    border:1px dashed #94a3b8;
    border-radius:18px;
    padding:14px;
}

.wplmvip-upload-box label{
    display:block;
    margin-bottom:10px;
    font-weight:bold;
    color:var(--black);
    line-height:1.8;
}

.wplmvip-preview{
    width:100%;
    max-height:220px;
    object-fit:cover;
    border-radius:14px;
    border:1px solid var(--border-soft);
    margin-top:10px;
    display:none;
    background:#fff;
}

.wplmvip-attachments-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:16px;
}

.wplmvip-attachment{
    background:#fff;
    border:1px solid var(--border-soft);
    border-radius:16px;
    overflow:hidden;
}

.wplmvip-attachment img{
    width:100%;
    height:180px;
    object-fit:cover;
    display:block;
}

.wplmvip-attachment span{
    display:block;
    padding:10px;
    color:var(--black);
    line-height:1.8;
}

.wplmvip-range-box{
    background:#f8fafc;
    border:1px solid var(--border-soft);
    border-radius:16px;
    padding:14px;
}

.wplmvip-range-box label{
    display:block;
    margin-bottom:10px;
    font-weight:bold;
    color:var(--black);
}

.wplmvip-range-box input[type=range]{
    width:100%;
    accent-color:var(--green);
}

.wplmvip-note{
    background:#eef6ee;
    border-right:4px solid var(--green);
    padding:14px;
    border-radius:12px;
    margin-bottom:16px;
    color:#1f2937;
    line-height:1.9;
}

.wplmvip-alert{
    background:#fff3cd;
    color:#664d03;
    padding:14px;
    border-radius:12px;
    line-height:1.9;
}

.wplmvip-flex-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

.wplmvip-actions{
    margin-bottom:16px;
}

.wplmvip-lightbox{
    display:none;
    position:fixed;
    z-index:99999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.88);
    align-items:center;
    justify-content:center;
    padding:30px;
    box-sizing:border-box;
}

.wplmvip-lightbox-image{
    max-width:90%;
    max-height:85%;
    border-radius:16px;
    box-shadow:0 0 40px rgba(0,0,0,.5);
}

.wplmvip-lightbox-close{
    position:absolute;
    top:20px;
    left:30px;
    color:#fff;
    font-size:42px;
    cursor:pointer;
}

.wplmvip-admin-filters{
    display:grid;
    grid-template-columns:2fr 1fr auto auto;
    gap:12px;
    align-items:center;
}

#wplmvip-toast-wrap{
    position:fixed;
    top:20px;
    left:20px;
    z-index:999999;
    display:flex;
    flex-direction:column;
    gap:12px;
    width:360px;
    max-width:calc(100% - 40px);
}

.wplmvip-toast{
    background:#111827;
    color:#fff;
    border-radius:18px;
    box-shadow:0 18px 40px rgba(0,0,0,.18);
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    opacity:0;
    transform:translateY(-10px);
    transition:.3s ease;
    border-right:5px solid #374151;
}

.wplmvip-toast.show{
    opacity:1;
    transform:translateY(0);
}

.wplmvip-toast.success{
    border-right-color:var(--green);
}

.wplmvip-toast.error{
    border-right-color:var(--red);
}

.wplmvip-toast.info{
    border-right-color:var(--blue);
}

.wplmvip-toast-icon{
    width:38px;
    height:38px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.12);
    font-weight:bold;
    flex:0 0 38px;
}

.wplmvip-toast-text{
    flex:1;
    line-height:1.8;
    font-size:14px;
}

.wplmvip-toast-close{
    border:none;
    background:transparent;
    color:#fff;
    font-size:22px;
    cursor:pointer;
}

.wplmvip-track-result{
    margin-top:16px;
    background:#f8fafc;
    border:1px solid var(--border-soft);
    border-radius:16px;
    padding:16px;
    line-height:2;
}

.wplmvip-inline-label{
    display:block;
    margin:8px 0 10px;
    padding:12px 14px;
    background:linear-gradient(180deg,#f0fdf4,#ecfdf5);
    border:1px solid #bbf7d0;
    border-radius:14px;
    color:#166534;
    font-weight:bold;
    line-height:1.9;
}

.wplmvip-inline-label strong{
    color:#14532d;
}

/* استان و شهر - نسخه حرفه‌ای */
.wplmvip-location-col{
    position:relative;
    width:100%;
    min-width:0;
}

.wplmvip-location-col input,
.wplmvip-location-col select{
    width:100%;
    display:block;
    box-sizing:border-box;
    height:54px;
    margin-bottom:0 !important;
    padding:14px 16px;
    padding-right:44px;
    padding-left:38px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    color:var(--black);
    font-size:14px;
    line-height:1.7;
    transition:.25s;
    box-shadow:0 2px 8px rgba(0,0,0,.02);
}

.wplmvip-location-col input:focus,
.wplmvip-location-col select:focus{
    outline:none;
    border-color:var(--green);
    box-shadow:0 0 0 4px rgba(46,125,50,.12);
}

.wplmvip-location-col::before{
    content:"";
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    width:18px;
    height:18px;
    border-radius:50%;
    background:linear-gradient(180deg,#dcfce7,#bbf7d0);
    box-shadow:inset 0 0 0 1px rgba(46,125,50,.14);
    pointer-events:none;
}

.wplmvip-location-col::after{
    content:"";
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%) rotate(45deg);
    width:8px;
    height:8px;
    border-left:2px solid #6b7280;
    border-bottom:2px solid #6b7280;
    pointer-events:none;
}

#wplmvip-province,
#wplmvip-city{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    background-color:#fff;
}

#wplmvip-province{
    cursor:text;
}

#wplmvip-city{
    cursor:pointer;
}

#wplmvip-city option{
    direction:rtl;
    color:var(--black);
}

.wplmvip-location-col select:invalid{
    color:var(--gray-text);
}

.wplmvip-location-col input::placeholder{
    color:var(--gray-text);
}

.wplmvip-grid-2 > .wplmvip-location-col{
    align-self:start;
}

.wplmvip-location-col:hover input,
.wplmvip-location-col:hover select{
    border-color:#9ca3af;
}

.wplmvip-location-col:focus-within::before{
    background:linear-gradient(180deg,#bbf7d0,#86efac);
}

.wplmvip-location-col:focus-within::after{
    border-left-color:var(--green);
    border-bottom-color:var(--green);
}

/* کمک به یکدست‌بودن ردیف استان و شهر */
.wplmvip-grid-2 .wplmvip-location-col + .wplmvip-location-col{
    margin-top:0;
}

/* اگر select یا input داخل ستون لوکیشن بود، فاصله پایینش با فرم به هم نخورد */
.wplmvip-location-col > input,
.wplmvip-location-col > select{
    vertical-align:middle;
}

/* فرم‌های مدیریتی */
.wplmvip-admin-status-box .wplmvip-btn{
    margin-bottom:8px;
}

/* موبایل */
@media(max-width:900px){
    .wplmvip-grid-2,
    .wplmvip-info-grid,
    .wplmvip-attachments-grid,
    .wplmvip-admin-filters{
        grid-template-columns:1fr;
    }

    .wplmvip-table{
        display:block;
        overflow:auto;
        white-space:nowrap;
    }

    #wplmvip-toast-wrap{
        left:12px;
        right:12px;
        width:auto;
        max-width:none;
    }

    .wplmvip-location-col input,
    .wplmvip-location-col select{
        height:52px;
    }
}
/* ردیف اختصاصی استان و شهر */
.wplmvip-location-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-bottom:14px;
}

.wplmvip-location-field{
    display:flex;
    flex-direction:column;
    width:100%;
}

.wplmvip-location-field label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:700;
    color:var(--black);
}

.wplmvip-location-field input,
.wplmvip-location-field select{
    width:100%;
    height:52px;
    box-sizing:border-box;
    border:1px solid var(--border);
    border-radius:14px;
    background:#fff;
    padding:14px 16px;
    font-size:14px;
    color:var(--black);
    margin:0 !important;
    transition:.25s;
    box-shadow:none;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
}

.wplmvip-location-field input::placeholder{
    color:#6b7280;
}

.wplmvip-location-field input:focus,
.wplmvip-location-field select:focus{
    outline:none;
    border-color:var(--green);
    box-shadow:0 0 0 4px rgba(46,125,50,.12);
}

#wplmvip-province{
    cursor:text;
}

#wplmvip-city{
    cursor:pointer;
    background-image:linear-gradient(45deg, transparent 50%, #6b7280 50%), linear-gradient(135deg, #6b7280 50%, transparent 50%);
    background-position:left 16px top 50%, left 10px top 50%;
    background-size:6px 6px, 6px 6px;
    background-repeat:no-repeat;
    padding-left:34px;
}

@media(max-width:900px){
    .wplmvip-location-row{
        grid-template-columns:1fr;
    }
}