.wev-panel{
display:flex;
min-height:100vh;
background:#f5f7fb;
direction:rtl;
font-family:IRANSans, sans-serif;
}

/* SIDEBAR */

.wev-sidebar{
width:260px;
background:#fff;
border-left:1px solid #eee;
padding:20px;
}

.wev-menu-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:15px;
}

.menu-box{
background:#f7f8fc;
padding:18px;
border-radius:12px;
text-align:center;
cursor:pointer;
transition:.2s;
font-size:14px;
}

.menu-box:hover{
background:#eef1ff;
}

.menu-box.active{
background:#e9ecff;
}

/* CONTENT */

.wev-content{
flex:1;
padding:30px;
}

/* DASHBOARD */

.wev-dashboard{
max-width:1100px;
margin:auto;
}

.wev-stats{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
margin-bottom:30px;
}

.stat-card{
background:linear-gradient(135deg,#5b6cff,#7a88ff);
color:#fff;
padding:25px;
border-radius:12px;
font-size:18px;
}

.stat-card span{
display:block;
font-size:26px;
margin-top:10px;
font-weight:bold;
}

.wev-table{
background:#fff;
border-radius:12px;
padding:20px;
}

.wev-table table{
width:100%;
border-collapse:collapse;
}

.wev-table td{
padding:10px;
border-bottom:1px solid #eee;
font-size:14px;
}
.wev-dashboard-layout{
display:flex;
gap:25px;
}

.wev-main{
flex:1;
}

.wev-dashboard-sidebar{
width:280px;
}

/* STATS */

.wev-stats{
display:flex;
gap:20px;
margin-bottom:25px;
}

.stat-card{
flex:1;
padding:25px;
border-radius:14px;
color:#fff;
}

.stat-card.blue{
background:linear-gradient(45deg,#5b6cff,#7a88ff);
}

.stat-card.orange{
background:linear-gradient(45deg,#f6a623,#ff7a18);
}

.stat-card.green{
background:linear-gradient(45deg,#1abc9c,#2ecc71);
}

.stat-card .num{
font-size:28px;
font-weight:bold;
display:block;
}

/* BOX */

.wev-row{
display:flex;
gap:20px;
margin-bottom:20px;
}

.box{
flex:1;
background:#fff;
padding:20px;
border-radius:14px;
box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

/* STATUS */

.status{
padding:4px 10px;
border-radius:20px;
font-size:12px;
}

.status.active{
background:#e8f7ef;
color:#2ecc71;
}

/* SIDEBAR */

.profile-card{
background:#fff;
padding:20px;
border-radius:14px;
margin-bottom:20px;
text-align:center;
}

.logo{
font-weight:bold;
margin-bottom:10px;
}

.renew{
background:#2ecc71;
color:#fff;
border:none;
padding:10px 15px;
border-:8px;
margin-top:10px;
cursor:pointer;
}

/* WALLET */

.wallet{
background:#fff;
padding:15px;
border-radius:14px;
margin-bottom:20px;
text-align:center;
}

.wallet span{
font-size:20px;
font-weight:bold;
}

/* MENU */

.menu-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
}

.menu-item{
background:#fff;
padding:15px;
border-radius:10px;
text-align:center;
font-size:13px;
cursor:pointer;
box-shadow:0 4px 15px rgba(0,0,0,0.05);
}
.wev-sidebar{
width:260px;
background:#f5f6fa;
padding:20px;
border-radius:16px;
}

.wev-profile{
background:#fff;
padding:20px;
border-radius:14px;
text-align:center;
margin-bottom:20px;
}

.wev-logo{
font-weight:bold;
font-size:18px;
margin-bottom:10px;
}

.wev-subscription .status{
color:#2ecc71;
margin-bottom:5px;
}

.expire{
font-size:13px;
color:#777;
margin-bottom:10px;
}

.renew-btn{
background:#2ecc71;
border:none;
color:#fff;
padding:8px 14px;
border-radius:8px;
cursor:pointer;
}

.wev-wallet{
background:#fff;
padding:15px;
border-radius:14px;
text-align:center;
margin-bottom:20px;
}

.wev-wallet .title{
font-size:14px;
color:#777;
}

.wev-wallet .amount{
font-size:22px;
font-weight:bold;
margin-top:5px;
}

.wev-menu{
display:grid;
grid-template-columns:1fr 1fr;
gap:10px;
}

.menu-item{
background:#fff;
padding:14px;
border-radius:10px;
text-align:center;
cursor:pointer;
font-size:13px;
box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

.menu-item span{
display:block;
font-size:18px;
margin-bottom:4px;
}

.menu-item.logout{
grid-column:span 2;
}
.wev-userbiz-box{
    background:#fff;
    padding:20px;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:20px;
    box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

.biz-logo img{
    width:55px;
    height:55px;
    border-radius:12px;
    object-fit:cover;
    border:1px solid #eee;
}

.biz-info{
    flex:1;
}

.biz-name{
    margin:0;
    font-size:16px;
    font-weight:600;
}

.user-name{
    margin:4px 0 0 0;
    font-size:13px;
    color:#444;
}

.user-phone{
    margin:2px 0 0 0;
    font-size:12px;
    color:#777;
}
/* استایل کلی جدول */
.wev-table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}

/* هدر جدول */
.wev-table thead th{
    text-align:right;
    padding:10px 12px;
    font-weight:600;
    border-bottom:1px solid #eee;
    color:#555;
}

/* سلول‌ها */
.wev-table tbody td{
    padding:10px 12px;
    border-bottom:1px solid #f1f1f1;
    color:#333;
}

/* ردیف ها */
.wev-table tbody tr:hover{
    background:#fafafa;
}

/* ستون مبلغ */
.wev-price{
    color:#2e7d32;
    font-weight:600;
}

/* وضعیت */
.wev-status{
    font-size:12px;
    padding:3px 8px;
    border-radius:6px;
    background:#f3f3f3;
}

/* فاصله داخل باکس */
.box table{
    margin-top:10px;
}
.wev-status{
padding:4px 10px;
border-radius:6px;
font-size:12px;
font-weight:500;
}

.wev-status.paid{
background:#e8f7ee;
color:#2e7d32;
}

.wev-status.pending{
background:#fff4e5;
color:#f57c00;
}

.wev-status.failed{
background:#fdecea;
color:#c62828;
}
.wev-form-row{
margin-bottom:15px;
display:flex;
flex-direction:column;
}

.wev-form-row label{
margin-bottom:5px;
font-weight:500;
}

.wev-form-row input,
.wev-form-row select{
padding:8px;
border:1px solid #ddd;
border-radius:6px;
}

.wev-btn{
background:#4f46e5;
color:#fff;
border:none;
padding:10px 18px;
border-radius:6px;
cursor:pointer;
}

.wev-success{
color:green;
margin-top:10px;
}

.wev-error{
color:red;
margin-top:10px;
}
.wev-session-form{
background:#fff;
border-radius:12px;
padding:35px;
max-width:950px;
width:100%;
box-shadow:0 10px 30px rgba(0,0,0,0.06);
margin:auto;
}

.wev-session-form h2{
margin-bottom:25px;
font-size:20px;
}

.wev-field{
margin-bottom:18px;
display:flex;
flex-direction:column;
}

.wev-field label{
font-size:13px;
margin-bottom:6px;
color:#555;
}

.wev-field input,
.wev-field textarea{
border:1px solid #e5e5e5;
border-radius:8px;
padding:10px;
font-family:inherit;
}

.wev-row{
display:flex;
gap:15px;
}

.wev-row .wev-field{
flex:1;
}

.wev-next-step,
.wev-prev-step,
.wev-submit-session{

background:#4f46e5;
color:#fff;
border:none;
padding:10px 18px;
border-radius:8px;
cursor:pointer;
font-size:14px;
}

.wev-prev-step{
background:#6b7280;
}

.wev-buttons{
display:flex;
justify-content:space-between;
margin-top:15px;
}

.wev-step{
display:none;
}

.wev-step:first-child{
display:block;
}

.wev-step.active{
display:block;
}
.wp-editor-wrap{
border:1px solid #e5e5e5;
border-radius:8px;
overflow:hidden;
}

.wp-editor-container{
border:none;
}
.wev-session-form {
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  max-width: 900px;
  width: 100%;
  margin: 30px auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.wev-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.wev-field {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
}

.wev-field label {
  font-weight: 600;
  margin-bottom: 8px;
}

.we-btn.wev-btn-success {
  background: #27ae60;
  color: #fff;
  padding: 13px 40px;
  border: none;
  border-radius: 7px;
  font-size: 1.1rem;
  cursor: pointer;
}

.wev-form-msg {
  color: #c62828;
  margin-top: 12px;
  font-size: 15px;
}
.wev-table-sessions img.wev-session-thumb{width:70px;height:70px;border-radius:6px;object-fit:cover;}
.wev-modal{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0.65);z-index:9999;display:flex;align-items:center;justify-content:center;}
.wev-modal-content{background:#fff;width:80%;max-height:90vh;overflow:auto;position:relative;padding:20px;border-radius:8px;}
.wev-modal-close{position:absolute;right:15px;top:10px;font-size:20px;cursor:pointer;}
.wev-sessions-filter form{display:flex;gap:10px;margin-bottom:15px;}
.wev-sessions-filter input[type=text]{flex:1;padding:5px 10px;}
/* =============== SESSIONS PAGE WRAPPER =============== */

.wev-sessions-wrap {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* عنوان تب */
.wev-sessions-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: right;
    color: #333;
}

/* =============== SEARCH & FILTER =============== */

.wev-sessions-filter {
    background: #f8f9fc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.wev-sessions-filter form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wev-sessions-filter input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.wev-sessions-filter select {
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.wev-sessions-filter button {
    padding: 10px 18px;
    background: #4f46e5;
    color: #fff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

/* =============== TABLE =============== */

.wev-table-sessions {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.wev-table-sessions thead th {
    text-align: right;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #eee;
}

.wev-table-sessions tbody td {
    padding: 12px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f2f2f2;
    vertical-align: middle;
}

.wev-table-sessions tbody tr:hover {
    background: #fafafa;
}

/* تصویر */
.wev-session-thumb {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eee;
}

/* دکمه ویرایش */
.wev-edit-session-btn {
    padding: 7px 14px;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.wev-edit-session-btn:hover {
    background: #2980b9;
}

/* =============== MODAL =============== */

.wev-modal-content {
    width: 80%;
    max-width: 1000px;
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

#wev-edit-body form {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

#wev-edit-body form .wev-field-full {
    grid-column: span 2;
}

#wev-edit-body label {
    font-weight: 600;
}

#wev-edit-body input,
#wev-edit-body select,
#wev-edit-body textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

#wev-edit-body button {
    background: #27ae60;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}
/* Overlay */
.wev-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Modal */
.wev-modal-content {
  width: 80%;
  max-width: 950px;
  background: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  animation: wevModalIn .25s ease-out;
}

@keyframes wevModalIn {
  from { opacity:0; transform:scale(.92); }
  to   { opacity:1; transform:scale(1); }
}

/* Header */
.wev-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.wev-modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.wev-modal-close {
  font-size: 28px;
  cursor: pointer;
  color: #444;
}
.wev-modal-close:hover { color: #000; }

/* Grid */
.wev-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.wev-field label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.wev-field input,
.wev-field textarea,
.wev-field-full textarea {
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
}

.wev-field-full {
  grid-column: span 2;
}

/* Image */
.wev-edit-thumb {
  width: 200px;
  height: 150px;
  object-fit: cover;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid #eee;
}

/* Fix broken submit button */
.wev-edit-submit {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    background: #4f46e5 !important;
    color: #fff !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600;
    text-align: center;
    border: none !important;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.wev-edit-submit:hover {
    background: #3e3aca !important;
}

/* جلوگیری از کش آمدن دکمه */
#wev-edit-session-form button,
#wev-edit-session-form input[type=submit] {
    width: auto !important;
    display: inline-block !important;
}
.wev-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.wev-field {
    display: flex;
    flex-direction: column;
}

.wev-field-full {
    grid-column: span 2;
}
.wev-image-row {
    display: grid;
    grid-template-columns: 1fr 120px;  /* چپ: آپلود | راست: تصویر */
    gap: 20px;
    align-items: center;
}

.wev-image-upload input[type="file"] {
    width: 100%;
}

.wev-image-preview {
    text-align: center;
}

.wev-edit-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.wev-stories-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.wev-story-card,
.wev-story-add-card {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.wev-story-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wev-story-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 45%);
    display: flex;
    align-items: flex-end;
    padding: 10px;
    color: #fff;
}

.wev-story-meta {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wev-story-add-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, #eef2ff, #ffffff);
    border: 2px dashed #6366f1;
    color: #4338ca;
}

.wev-story-add-plus {
    font-size: 54px;
    line-height: 1;
    font-weight: 700;
}

.wev-story-add-text {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
}

.wev-story-modal-content {
    max-width: 520px;
    width: 100%;
}

.wev-story-preview-wrap {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wev-story-preview {
    width: 100%;
    max-height: 320px;
    border-radius: 12px;
    object-fit: cover;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.wev-story-help {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}

.wev-story-submit {
    margin-top: 16px;
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.wev-story-info-modal{
  width: min(420px, 92vw);
  padding: 16px 16px 14px;
  border-radius: 14px;
}

.wev-story-info-head{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom: 12px;
}

.wev-story-info-thumb{
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow:hidden;
  background:#f3f4f6;
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.wev-story-info-thumb img,
.wev-story-info-thumb video{
  width:100%;
  height:100%;
  object-fit:cover;
}

.wev-story-info-title h4{
  margin: 0 0 4px;
  font-size: 14px;
}
.wev-story-info-sub{
  font-size: 12px;
  color:#6b7280;
}

.wev-story-info-stats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin: 10px 0 14px;
}

.wev-story-stat{
  background:#f9fafb;
  border:1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px 12px;
}
.wev-story-stat-label{
  display:block;
  font-size: 12px;
  color:#6b7280;
  margin-bottom: 4px;
}
.wev-story-stat-value{
  font-size: 18px;
  font-weight: 800;
  color:#111827;
}

.wev-story-info-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

.button-danger{
  background:#ef4444 !important;
  border-color:#ef4444 !important;
  color:#fff !important;
}
.button-danger:hover{
  background:#dc2626 !important;
  border-color:#dc2626 !important;
}

.wev-story-card-click{
  cursor:pointer;
}
.wev-story-card-click{
  cursor:pointer;
}

.wev-story-info-modal{
  width: min(420px, 92vw);
  padding: 16px 16px 14px;
  border-radius: 14px;
}

.wev-story-info-head{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom: 12px;
}

.wev-story-info-thumb{
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow:hidden;
  background:#f3f4f6;
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.wev-story-info-thumb img,
.wev-story-info-thumb video{
  width:100%;
  height:100%;
  object-fit:cover;
}

.wev-story-info-title h4{
  margin: 0 0 4px;
  font-size: 14px;
}
.wev-story-info-sub{
  font-size: 12px;
  color:#6b7280;
}

.wev-story-info-stats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin: 10px 0 14px;
}

.wev-story-stat{
  background:#f9fafb;
  border:1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px 12px;
}
.wev-story-stat-label{
  display:block;
  font-size: 12px;
  color:#6b7280;
  margin-bottom: 4px;
}
.wev-story-stat-value{
  font-size: 18px;
  font-weight: 800;
  color:#111827;
}

.wev-story-info-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

.button-danger{
  background:#ef4444 !important;
  border-color:#ef4444 !important;
  color:#fff !important;
}
.button-danger:hover{
  background:#dc2626 !important;
  border-color:#dc2626 !important;
}

.wev-story-info-note{
  margin-top: 10px;
  font-size: 13px;
  color: #b91c1c;
}
