/* =====================================================
   EDD Pro Panel — Main Stylesheet v1.2.0
   Matches design reference
===================================================== */

/* ── Full-page reset ─────────────────────────────── */
html.epp-html, body.epp-body {
  margin:0 !important; padding:0 !important;
  height:100%; overflow:hidden;
}
body.epp-body #wpadminbar { display:none !important; }
body.epp-body > *:not(#eppPanel):not(script):not(style):not(link):not(noscript):not(#wpadminbar) {
  display:none !important;
}

/* ── CSS Variables ───────────────────────────────── */
:root {
  --epp-primary:        #6C63FF;
  --epp-primary-rgb:    108,99,255;
  --epp-secondary:      #FF6584;
  --epp-accent:         #43D4A0;
  --epp-danger:         #EF4444;
  --epp-danger-rgb:     239,68,68;

  --epp-bg:             #F0F2FA;
  --epp-surface:        #FFFFFF;
  --epp-surface-2:      #F7F8FC;
  --epp-border:         #E4E7F0;

  --epp-text:           #1A1D2E;
  --epp-text-2:         #4B5270;
  --epp-text-muted:     #9299B8;

  --epp-sidebar-w:      240px;
  --epp-topbar-h:       60px;

  --epp-radius-sm:      8px;
  --epp-radius:         14px;
  --epp-radius-lg:      20px;
  --epp-radius-xl:      28px;

  --epp-shadow-sm:      0 2px 8px rgba(108,99,255,.06);
  --epp-shadow:         0 4px 20px rgba(108,99,255,.10);
  --epp-shadow-lg:      0 12px 40px rgba(108,99,255,.16);

  --epp-transition:     .22s cubic-bezier(.4,0,.2,1);
}

/* ── Dark Mode ───────────────────────────────────── */
.epp-dark {
  --epp-bg:       #12142A;
  --epp-surface:  #1C1F3A;
  --epp-surface-2:#232646;
  --epp-border:   #2D3160;
  --epp-text:     #E8EBF8;
  --epp-text-2:   #9299B8;
  --epp-text-muted:#5A607F;
  --epp-shadow-sm:0 2px 8px rgba(0,0,0,.3);
  --epp-shadow:   0 4px 20px rgba(0,0,0,.4);
  --epp-shadow-lg:0 12px 40px rgba(0,0,0,.5);
}

/* ── Base ────────────────────────────────────────── */
.epp-wrap *, .epp-wrap *::before, .epp-wrap *::after {
  box-sizing:border-box; margin:0; padding:0;
}
.epp-wrap {
  display:flex;
  height:100vh;
  height:100dvh;
  overflow:hidden;
  background:var(--epp-bg);
  color:var(--epp-text);
  font-family:inherit;
  direction:rtl;
  font-size:14px;
  line-height:1.6;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════ */
.epp-sidebar {
  position:fixed; top:0; right:0; bottom:0;
  width:var(--epp-sidebar-w);
  background:var(--epp-surface);
  border-left:1px solid var(--epp-border);
  display:flex; flex-direction:column;
  z-index:200;
  transition:transform var(--epp-transition);
  overflow:hidden;
}

/* Brand */
.epp-sidebar__brand {
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 16px;
  min-height:var(--epp-topbar-h);
  border-bottom:1px solid var(--epp-border);
}
.epp-sidebar__logo {height: 90%;width: 90%;object-fit: contain;}
.epp-sidebar__site-name { font-size:15px; font-weight:700; color:var(--epp-primary); }
.epp-sidebar__close { display:none; background:#b1b1b1; border:none; cursor:pointer; color:#ffffff; padding:4px; border-radius:6px; }
.epp-sidebar__close:hover { background:var(--epp-surface-2); }

/* User card */
.epp-sidebar__user-card {
  display:flex; align-items:center; gap:10px;
  padding:14px 16px;
  background:var(--epp-surface-2);
  margin:12px;
  border-radius:var(--epp-radius);
  border:1px solid var(--epp-border);
}
.epp-sidebar__user-avatar { position:relative; flex-shrink:0; }
.epp-sidebar__user-avatar img { width:40px; height:40px; border-radius:50%; object-fit:cover; border:2px solid var(--epp-primary); }
.epp-online-dot {
  position: absolute;
    bottom: 5px;
    left: 5px;
    width: 12px;
    height: 12px;
    background: #22C55E;
    border-radius: 50%;
    border: 2px solid var(--epp-surface);
}
.epp-sidebar__user-info { min-width:0; }
.epp-sidebar__user-info strong { display:block; font-size:12px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.epp-sidebar__user-info span { display:block; font-size:10px; color:var(--epp-text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Nav */
.epp-sidebar__nav { flex:1; overflow-y:auto; padding:8px 8px; scrollbar-width:thin; }
.epp-sidebar__nav ul { list-style:none; display:flex; flex-direction:column; gap:2px; }

.epp-nav-item { border-radius:var(--epp-radius-sm); }
.epp-nav-link {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  color:var(--epp-text-2);
  text-decoration:none; border:none; background:none;
  border-radius:var(--epp-radius-sm);
  font-size:13px; font-weight:500; font-family:inherit;
  width:100%; cursor:pointer;
  transition:all var(--epp-transition);
}
.epp-nav-link:hover { background:var(--epp-surface-2); color:var(--epp-text); }
.epp-nav-link__icon { display:flex; width:20px; flex-shrink:0; opacity:.7; }
.epp-nav-link__label { flex:1; text-align:right; }
.epp-nav-item--active .epp-nav-link {
  background:rgba(var(--epp-primary-rgb),.1);
  color:var(--epp-primary);
  font-weight:600;
}
.epp-nav-item--active .epp-nav-link__icon { opacity:1; }

.epp-nav-badge {
  font-size:10px; font-weight:700;
  padding:2px 6px; border-radius:20px;
  line-height:1.4;
}
.epp-nav-badge--count {
  background:var(--epp-danger); color:#fff;
  min-width:18px; text-align:center;
  box-shadow:0 0 0 3px rgba(var(--epp-danger-rgb),.15);
  animation: epp-badge-pop .3s ease;
}
.epp-nav-badge--soon { background:rgba(var(--epp-primary-rgb),.1); color:var(--epp-primary); }
.epp-nav-badge--offer {
  display:inline-flex; align-items:center; gap:3px;
  background:linear-gradient(120deg,#F59E0B,#F97316);
  color:#fff; box-shadow:0 2px 8px rgba(245,158,11,.4);
  animation: epp-offer-pulse 2.2s ease-in-out infinite;
}
.epp-nav-badge--offer svg { flex-shrink:0; }
.epp-nav-item--highlight .epp-nav-link {
  background:linear-gradient(120deg, rgba(245,158,11,.09), rgba(249,115,22,.05));
  border:1px solid rgba(245,158,11,.25);
}
.epp-nav-item--highlight .epp-nav-link:hover {
  background:linear-gradient(120deg, rgba(245,158,11,.16), rgba(249,115,22,.09));
}
@keyframes epp-offer-pulse {
  0%, 100% { box-shadow:0 2px 8px rgba(245,158,11,.4); transform:scale(1); }
  50%      { box-shadow:0 2px 14px rgba(245,158,11,.7); transform:scale(1.06); }
}
@keyframes epp-badge-pop {
  0%   { transform:scale(.4); opacity:0; }
  70%  { transform:scale(1.15); opacity:1; }
  100% { transform:scale(1); }
}

/* Sidebar footer */
.epp-sidebar__footer {
  padding:12px 16px;
  border-top:1px solid var(--epp-border);
  display:flex; align-items:center; gap:8px;
}
.epp-logout-link {
  flex:1; display:flex; align-items:center; gap:8px;
  color:#EF4444; text-decoration:none; font-size:12.5px; font-weight:600;
  padding:8px 10px; border-radius:var(--epp-radius-sm);
  transition:background var(--epp-transition);
}
.epp-logout-link:hover { background:rgba(239,68,68,.08); }

.epp-theme-switcher {
  display:flex; align-items:center; gap:4px;
  background:var(--epp-surface-2); border:1px solid var(--epp-border);
  border-radius:20px; padding:4px 8px; cursor:pointer;
}
.epp-theme-icon { display:flex; color:var(--epp-text-muted); }
.epp-theme-icon--dark { display:none; }
.epp-dark .epp-theme-icon--light { display:none; }
.epp-dark .epp-theme-icon--dark { display:flex; }

/* ═══════════════════════════════════════════════════
   MAIN
═══════════════════════════════════════════════════ */
.epp-main {
  flex:1;
  margin-right:var(--epp-sidebar-w);
  display:flex; flex-direction:column;
  min-height:100vh; height:100vh;
  min-height:100dvh; height:100dvh;
  overflow:hidden;
}

/* Topbar */
.epp-topbar {
  height:var(--epp-topbar-h);
  background:var(--epp-surface);
  border-bottom:1px solid var(--epp-border);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px; gap:12px;
  flex-shrink:0;
  box-shadow:var(--epp-shadow-sm);
}
.epp-topbar__right { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.epp-topbar__hamburger { display:none; background:none; border:none; cursor:pointer; color:var(--epp-text); padding:6px; border-radius:8px; }
.epp-topbar__brand-mobile { display:none; font-size:14px; font-weight:700; color:var(--epp-primary); }
.epp-topbar__site-link { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--epp-text-2); text-decoration:none; }
.epp-topbar__site-link:hover { color:var(--epp-primary); }


.epp-topbar__left { display:flex; align-items:center; gap:10px; flex-shrink:0; margin-right:auto; }
.epp-topbar__breadcrumb { font-size:14px; font-weight:600; color:var(--epp-text);display:none; }

.epp-topbar__notif-btn {
  position:relative; width:36px; height:36px;
  background:var(--epp-surface-2); border:1px solid var(--epp-border);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--epp-text-2); transition:all var(--epp-transition);
}
.epp-topbar__notif-btn:hover { background:var(--epp-primary); color:#fff; border-color:var(--epp-primary); }
.epp-topbar__notif-dot {
  position:absolute; top:-3px; left:-3px;
  background:var(--epp-danger); color:#fff;
  font-size:9px; font-weight:700; min-width:16px; height:16px;
  border-radius:8px; display:flex; align-items:center; justify-content:center; padding:0 3px;
  border:2px solid var(--epp-surface);
  box-shadow:0 0 0 3px rgba(var(--epp-danger-rgb),.15);
}

.epp-topbar__user-wrap { position:relative; }
.epp-topbar__user {
  display:flex; align-items:center; gap:7px; cursor:pointer;
  padding:4px 8px; border-radius:var(--epp-radius-sm);
  transition:background var(--epp-transition);
  border:none; background:none; font-family:inherit; color:inherit;width: auto;
}
.epp-topbar__user:hover { background:var(--epp-surface-2); }
.epp-topbar__user-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover; border:2px solid var(--epp-border); }
.epp-topbar__user-name { font-size:12px; font-weight:600; }
.epp-topbar__user-wrap--open .epp-topbar__user { background:var(--epp-surface-2); }
.epp-topbar__user-wrap--open .epp-topbar__user svg { transform:rotate(180deg); }
.epp-topbar__user svg { transition:transform var(--epp-transition); }

/* Dropdown (شماره ۱) */
.epp-topbar__dropdown {
  position:absolute; top:calc(100% + 10px); left:0;
  min-width:240px; background:var(--epp-surface);
  border:1px solid var(--epp-border); border-radius:var(--epp-radius);
  box-shadow:var(--epp-shadow-lg);
  z-index:250; overflow:hidden;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
  direction:rtl;
}
.epp-topbar__user-wrap--open .epp-topbar__dropdown {
  opacity:1; visibility:visible; transform:translateY(0);
}
.epp-topbar__dropdown-head {
  display:flex; align-items:center; gap:10px;
  padding:14px; background:var(--epp-surface-2);
}
.epp-topbar__dropdown-head img { width:38px; height:38px; border-radius:50%; object-fit:cover; border:2px solid var(--epp-primary); flex-shrink:0; }
.epp-topbar__dropdown-head strong { display:block; font-size:12.5px; font-weight:700; }
.epp-topbar__dropdown-head span { display:block; font-size:10.5px; color:var(--epp-text-muted); margin-top:2px; direction:ltr; text-align:right; }
.epp-topbar__dropdown-sep { height:1px; background:var(--epp-border); }
.epp-topbar__dropdown-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 14px; font-size:12.5px; font-weight:500;
  color:var(--epp-text); text-decoration:none;
  transition:background var(--epp-transition), color var(--epp-transition);
}
.epp-topbar__dropdown-item svg { opacity:.6; flex-shrink:0; }
.epp-topbar__dropdown-item:hover { background:var(--epp-surface-2); color:var(--epp-primary); }
.epp-topbar__dropdown-item:hover svg { opacity:1; }
.epp-topbar__dropdown-item--danger { color:#EF4444; }
.epp-topbar__dropdown-item--danger:hover { background:rgba(239,68,68,.08); color:#EF4444; }

/* Overlay */
.epp-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:190; }
.epp-overlay--visible { display:block; }

/* Content scroll area */
.epp-content {
  flex:1; overflow-y:auto; padding:24px;
  padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px));
  scrollbar-width:thin; scrollbar-color:var(--epp-border) transparent;
}

/* ═══════════════════════════════════════════════════
   DASHBOARD — exact match to شماره ۲ و ۴
═══════════════════════════════════════════════════ */
.epp-db { display:flex; flex-direction:column; gap:16px; }

/* ── Hero (شماره ۲) ──────────────────────────────── */
.epp-db-hero {
    background:#eaf4fb;
    border-radius: 25px;
    color: #0F1B33;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}
/* لایه‌ی محو سفید سمت متن برای خوانایی روی تصویر آسمان */
.epp-db-hero::before {
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(234,244,251,0) 0%, rgba(234,244,251,.35) 55%, rgba(234,244,251,.75) 100%);
  pointer-events:none;
  z-index:1;
}

/* text RIGHT (در RTL = سمت راست) */
.epp-db-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 24px 32px 24px 16px;
    text-align: right;
    z-index: 2;
    flex-wrap: wrap;
}
.epp-db-hero__name {
  font-size:20px; font-weight:800; margin-bottom:8px; line-height:1.35;
  display:flex; align-items:center; gap:6px; justify-content:flex-end;
  color:#101B34;
  text-shadow:0 1px 12px rgba(255,255,255,.6);
}
.epp-db-hero__emoji { font-size:22px; }
.epp-db-hero__sub {
  display:flex; align-items:center; justify-content:flex-end; gap:5px;
  font-size:12.5px; margin-bottom:0;
  color:#3D4A66;
}
.epp-db-hero__date {
display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(16,27,52,.08);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 11.5px;
    position: absolute;
    bottom: 65px;
    left: 20px;
    color:#101B34;
    font-weight:600;
    box-shadow:0 4px 16px rgba(16,27,52,.1);
    z-index:2;
}

/* تصویر پس‌زمینه — کل بنر رو پر می‌کنه */
.epp-db-hero__visual {
  position:absolute; inset:0;
  z-index:0;
  pointer-events:none;
}
.epp-db-hero__img {
  width:100%; height:100%;
  object-fit:cover; object-position:center;
}

/* ── Stat Cards (شماره ۴) ───────────────────────── */
.epp-db-stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.epp-db-stat {
  background:var(--epp-surface);
  border:1px solid var(--epp-border);
  border-radius:14px;
  padding:16px 14px 16px 16px;
  display:flex; align-items:center; gap:10px;
  box-shadow:var(--epp-shadow-sm);
  transition:transform var(--epp-transition), box-shadow var(--epp-transition);
  position:relative; overflow:hidden;
}
.epp-db-stat:hover { transform:translateY(-2px); box-shadow:var(--epp-shadow); }

/* right color border */
.epp-db-stat::before {
  content:''; position:absolute;
  top:0; right:0; width:3px; height:100%;
  border-radius:0 14px 14px 0;
}
.epp-db-stat--orders::before { background:#6C63FF; }
.epp-db-stat--dl::before     { background:#22C55E; }
.epp-db-stat--spent::before  { background:#F59E0B; }
.epp-db-stat--sup::before    { background:#3B82F6; }

/* arrow button — leftmost */
.epp-db-stat__arr {
  width:24px; height:24px; flex-shrink:0;
  background:var(--epp-surface-2); border:1px solid var(--epp-border);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--epp-text-muted); padding:0; font-family:inherit;
  transition:all var(--epp-transition); order:-1;
}
.epp-db-stat__arr:hover { background:var(--epp-primary); color:#fff; border-color:var(--epp-primary); }

/* body — center */
.epp-db-stat__body { flex:1; min-width:0; }
.epp-db-stat__val {
  font-size:22px; font-weight:800; line-height:1.2; margin-bottom:2px;
  color:var(--epp-text);
}
.epp-db-stat__val--green { color:#22C55E; }
.epp-db-stat__val--gold  { color:#F59E0B; font-size:15px; }
.epp-db-stat__val--blue  { color:#3B82F6; }
.epp-db-stat__val--sm    { font-size:14px; font-weight:700; }
.epp-db-stat--orders .epp-db-stat__val { color:#6C63FF; }

.epp-db-stat__title { font-size:10.5px; color:var(--epp-text-muted); margin-bottom:1px; }
.epp-db-stat__hint  { font-size:10px;   color:var(--epp-text-muted); }

/* icon — rightmost */
.epp-db-stat__ico {
  width:48px; height:48px; flex-shrink:0;
  border-radius:13px; display:flex; align-items:center; justify-content:center;
}
.epp-db-stat__ico--orders { background:rgba(108,99,255,.1); color:#6C63FF; }
.epp-db-stat__ico--dl     { background:rgba(34,197,94,.1);  color:#22C55E; }
.epp-db-stat__ico--spent  { background:rgba(245,158,11,.1); color:#F59E0B; }
.epp-db-stat__ico--sup    { background:rgba(59,130,246,.1); color:#3B82F6; }

/* ── 2-col content grid ──────────────────────────── */
.epp-db-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

/* ── Generic card ───────────────────────────────── */
.epp-db-card {
  background:var(--epp-surface);
  border:1px solid var(--epp-border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--epp-shadow-sm);
}
.epp-db-card__hd {
  display:flex; align-items:center; justify-content:space-between;
  padding:15px 18px 12px;
  border-bottom:1px solid var(--epp-border);
}
.epp-db-card__hd h2 { font-size:13.5px; font-weight:700; }
.epp-db-viewall {    cursor: pointer;
    font-weight: 700;
    margin: 0 !important;
    width: auto !important;
    max-width: fit-content !important;
    display: inline-flex !important;
    align-items: center;
    box-shadow: none !important;
    outline: none;
    line-height: 1.5;
    border: 1.5px solid var(--epp-primary) !important;
    border-radius: 20px !important; 
    padding: 4px 14px !important;
    font-size: 11px !important;
    color: var(--epp-primary) !important;
    background: transparent !important;
}
.epp-db-viewall:hover { text-decoration:auto; background:none !important; }
/* bordered variant */
.epp-db-viewall--bordered {
  border:1.5px solid var(--epp-primary) !important;
  border-radius:20px !important;
  padding:4px 14px !important;
  font-size:11px !important;
  color:var(--epp-primary) !important;
  background:transparent !important;
}
.epp-db-viewall--bordered:hover { background:rgba(108,99,255,.07) !important; text-decoration:none; }
.epp-db-nil {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:32px 20px; color:var(--epp-text-muted); font-size:12.5px;
}
.epp-db-nil svg { opacity:.3; }

/* ── Downloads list ─────────────────────────────── */
.epp-db-dllist { list-style:none; }
.epp-db-dlrow {
  display:flex; align-items:center; gap:11px;
  padding:12px 18px;
  border-bottom:1px solid var(--epp-border);
  transition:background var(--epp-transition);
}
.epp-db-dlrow:last-child { border-bottom:none; }
.epp-db-dlrow:hover { background:var(--epp-surface-2); }

.epp-db-dlrow__thumb {
  width:36px; height:36px; border-radius:9px; flex-shrink:0;
  background:var(--epp-surface-2); border:1px solid var(--epp-border);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; color:var(--epp-text-muted);
}
.epp-db-dlrow__thumb img { width:100%; height:100%; object-fit:cover; }

.epp-db-dlrow__info { flex:1; min-width:0; }
.epp-db-dlrow__name {
  display:block; font-size:13px; font-weight:600; color:var(--epp-primary);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:2px;
}
.epp-db-dlrow__meta { font-size:10.5px; color:var(--epp-text-muted); }

.epp-db-dlrow__btn {
  display:inline-flex !important; align-items:center !important; gap:5px !important;
  flex-shrink:0 !important;
  padding:6px 14px 6px 12px !important;
  border-radius:20px !important;
  background:linear-gradient(135deg, rgba(108,99,255,.12) 0%, rgba(139,92,246,.08) 100%) !important;
  border:1.5px solid rgba(108,99,255,.25) !important;
  color:var(--epp-primary) !important;
  font-size:12px !important; font-weight:600 !important;
  text-decoration:none !important;
  transition:all .2s ease !important;
  white-space:nowrap !important;
  cursor:pointer !important;
}
.epp-db-dlrow__btn:hover {
  background:linear-gradient(135deg, var(--epp-primary) 0%, #8b5cf6 100%) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 4px 14px rgba(108,99,255,.35) !important;
  transform:translateY(-1px) !important;
}
.epp-db-dlrow__btn:active {
  transform:translateY(0) !important;
  box-shadow:0 2px 6px rgba(108,99,255,.25) !important;
}
.epp-db-dlrow__btn-ico { flex-shrink:0 !important; }
.epp-db-dlrow__btn-txt { line-height:1 !important; }

/* ── Orders list ─────────────────────────────────────
   ترتیب RTL: [آیکون][شماره+تاریخ][فضا][مبلغ][وضعیت]
─────────────────────────────────────────────────── */
.epp-db-orderlist { list-style:none; margin:0 !important; padding:0 !important; }
.epp-db-orderrow {
  display:flex !important; align-items:center !important; gap:12px !important;
  padding:14px 16px !important;
  border-bottom:1px solid var(--epp-border) !important;
  border-top:none !important; border-left:none !important; border-right:none !important;
  transition:background var(--epp-transition);
  direction:rtl !important; cursor:pointer;
  margin:0 !important; list-style:none !important;
}
.epp-db-orderrow:last-child { border-bottom:none !important; }
.epp-db-orderrow:hover { background:var(--epp-surface-2) !important; }

/* آیکون ۳D جعبه — سمت راست */
.epp-db-orderrow__icon {
  width:40px !important; height:40px !important; border-radius:12px !important;
  flex-shrink:0 !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
}
.epp-db-orderrow__icon--success  { background:rgba(34,197,94,.15) !important;  color:#16A34A !important; }
.epp-db-orderrow__icon--warning  { background:rgba(245,158,11,.15) !important; color:#D97706 !important; }
.epp-db-orderrow__icon--danger   { background:rgba(239,68,68,.15) !important;  color:#DC2626 !important; }
.epp-db-orderrow__icon--info     { background:rgba(59,130,246,.15) !important; color:#2563EB !important; }
.epp-db-orderrow__icon--secondary{ background:var(--epp-surface-2) !important; color:var(--epp-text-muted) !important; }
.epp-db-orderrow__icon svg { display:block !important; }

/* عنوان محصول + تاریخ */
.epp-db-orderrow__right { min-width:0 !important; flex:1 !important; }
.epp-db-orderrow__id {
  display:block !important; font-size:13px !important; font-weight:600 !important;
  color:var(--epp-text) !important; margin-bottom:3px !important;
  white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important;
}
.epp-db-orderrow__date { font-size:11px !important; color:var(--epp-text-muted) !important; display:block !important; }

/* مبلغ */
.epp-db-orderrow__price {
  font-size:12.5px !important; font-weight:700 !important; color:var(--epp-text) !important;
  white-space:nowrap !important; flex-shrink:0 !important;
}

/* وضعیت — سمت چپ */
.epp-db-pill {
  display:inline-flex !important; align-items:center !important; flex-shrink:0 !important;
  padding:3px 10px !important; border-radius:20px !important;
  font-size:11px !important; font-weight:600 !important;
  border:none !important; box-shadow:none !important;
}
.epp-db-pill--success  { background:rgba(34,197,94,.15) !important;  color:#16A34A !important; }
.epp-db-pill--warning  { background:rgba(245,158,11,.15) !important; color:#D97706 !important; }
.epp-db-pill--danger   { background:rgba(239,68,68,.15) !important;  color:#DC2626 !important; }
.epp-db-pill--info     { background:rgba(59,130,246,.15) !important; color:#2563EB !important; }
.epp-db-pill--secondary{ background:rgba(100,116,139,.12) !important; color:#64748B !important; }

/* ── CTA Cards (پشتیبانی / ارتقا حساب) ───────────── */
@property --epp-cta-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.epp-db-cta {
  position:relative !important;
  display:flex !important; align-items:center !important; gap:16px;
  overflow:hidden !important;
  min-height:96px; padding:16px 20px;
  box-sizing:border-box !important;
  border-radius:16px !important;
  border:3px solid transparent !important;
  background-color:transparent !important;
  background-origin:border-box, border-box;
  background-clip:padding-box, border-box;
  box-shadow:none !important;
  animation: epp-cta-angle-spin 5.5s linear infinite;
}
@keyframes epp-cta-angle-spin {
  to { --epp-cta-angle: 360deg; }
}
@supports not (background-clip: padding-box, border-box) {
  /* مرورگرهای خیلی قدیمی: بدون حلقه‌ی چرخان، فقط بردر ساده */
  .epp-db-cta { border-color: rgba(0,0,0,.08) !important; }
}

/* حباب‌های ملایم شناور در پس‌زمینه */
.epp-db-cta__blob { position:absolute; border-radius:50%; pointer-events:none; filter:blur(2px); z-index:0; }
.epp-db-cta__blob--1 { width:130px; height:130px; top:-55px; left:70px; animation: epp-cta-float-a 9s ease-in-out infinite; }
.epp-db-cta__blob--2 { width:70px;  height:70px;  bottom:-35px; left:-10px; animation: epp-cta-float-b 11s ease-in-out infinite; }
.epp-db-cta__blob--3 { width:34px;  height:34px;  top:20px; left:38%; animation: epp-cta-float-c 7s ease-in-out infinite; }
@keyframes epp-cta-float-a {
  0%, 100% { transform:translate(0,0) scale(1); }
  50%      { transform:translate(14px,10px) scale(1.08); }
}
@keyframes epp-cta-float-b {
  0%, 100% { transform:translate(0,0) scale(1); }
  50%      { transform:translate(-10px,-12px) scale(1.12); }
}
@keyframes epp-cta-float-c {
  0%, 100% { transform:translate(0,0); opacity:.6; }
  50%      { transform:translate(16px,14px); opacity:1; }
}

.epp-db-cta__info {
  flex:1 1 auto; min-width:0; z-index:2;
  display:flex !important; align-items:center !important; justify-content:flex-end;
  gap:14px;
  height:64px;
}
.epp-db-cta__icon {
  flex-shrink:0; width:60px; height:60px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  box-sizing:border-box;
}
.epp-db-cta__icon img { width:40px; height:auto; object-fit:contain; }
.epp-db-cta__text {flex:1;text-align:right;}
.epp-db-cta__text h3 { font-size:14.5px; font-weight:700; line-height:1.4; margin:0 0 4px; color:var(--epp-text); }
.epp-db-cta__text p  { font-size:11px; line-height:1.65; margin:0; color:var(--epp-text-muted); }

/* دکمه — با override قوی روی استایل‌های پیش‌فرض تم/مرورگر برای button */
.epp-db-cta__btn {
  position:relative !important;
  flex:0 0 auto !important; z-index:2;
  width:132px !important; height:42px !important;
  box-sizing:border-box !important;
  display:flex !important; flex-direction:row !important;
  align-items:center !important; justify-content:center !important;
  align-self:center !important;
  gap:7px;
  margin:0 !important; padding:0 10px !important;
  border-radius:10px !important; border:none !important;
  cursor:pointer; font-family:inherit !important;
  font-size:12px; font-weight:700; line-height:normal !important;
  -webkit-appearance:none; appearance:none;
  text-decoration:none !important;
  overflow:hidden !important;
  transition:transform var(--epp-transition), box-shadow var(--epp-transition), background var(--epp-transition);
}
.epp-db-cta__btn img { width:17px; height:17px; object-fit:contain; flex-shrink:0; z-index:1; position:relative; order:-1; }
.epp-db-cta__btn span { line-height:1.3; z-index:1; position:relative; }
.epp-db-cta__btn:hover { transform:translateY(-2px); }
/* پرتوی نور که روی دکمه رد می‌شه */
.epp-db-cta__btn::after {
  content:'';
  position:absolute; top:0; bottom:0; right:-60%;
  width:45%; max-width:80px;
  background:linear-gradient(115deg, transparent 0%, rgba(255,255,255,.75) 50%, transparent 100%);
  transform:skewX(-20deg);
  animation: epp-cta-btn-shine 3.2s ease-in-out infinite;
  pointer-events:none;
  z-index:1;
}
@keyframes epp-cta-btn-shine {
  0%   { right:-60%; opacity:0; }
  8%   { opacity:1; }
  35%  { right:130%; opacity:0; }
  100% { right:130%; opacity:0; }
}

/* رنگ‌بندی ملایم — ارتقا حساب */
.epp-db-cta--upgrade {
  background-image:
    linear-gradient(135deg, #FBF8FF 0%, #FFF6EA 100%),
    conic-gradient(from var(--epp-cta-angle), transparent 0%, rgba(217,119,6,.9) 12%, transparent 26%, transparent 100%);
}
.epp-db-cta--upgrade .epp-db-cta__blob--1 { background:rgba(139,92,246,.07); }
.epp-db-cta--upgrade .epp-db-cta__blob--2 { background:rgba(245,158,11,.08); }
.epp-db-cta--upgrade .epp-db-cta__blob--3 { background:rgba(217,119,6,.14); }
.epp-db-cta--upgrade .epp-db-cta__icon { background:rgba(245,158,11,.12); }
.epp-db-cta__btn--upgrade {
  background:linear-gradient(135deg,#FBBF24,#D97706) !important;
  color:#4A2E00 !important;
  box-shadow:0 4px 12px rgba(217,119,6,.25);
}
.epp-db-cta__btn--upgrade:hover { box-shadow:0 6px 18px rgba(217,119,6,.4); }

/* رنگ‌بندی ملایم — پشتیبانی */
.epp-db-cta--support {
  background-image:
    linear-gradient(135deg, #F3F9FF 0%, #EEF7F5 100%),
    conic-gradient(from var(--epp-cta-angle), transparent 0%, rgba(37,99,235,.9) 12%, transparent 26%, transparent 100%);
}
.epp-db-cta--support .epp-db-cta__blob--1 { background:rgba(37,99,235,.06); }
.epp-db-cta--support .epp-db-cta__blob--2 { background:rgba(13,148,136,.07); }
.epp-db-cta--support .epp-db-cta__blob--3 { background:rgba(37,99,235,.14); }
.epp-db-cta--support .epp-db-cta__icon { background:rgba(37,99,235,.1); }
.epp-db-cta__btn--support {
  background:linear-gradient(135deg,#3B82F6,#2563EB) !important;
  color:#fff !important;
  box-shadow:0 4px 12px rgba(37,99,235,.25);
}
.epp-db-cta__btn--support:hover { box-shadow:0 6px 18px rgba(37,99,235,.4); }

@media (prefers-reduced-motion: reduce) {
  .epp-db-cta::before,
  .epp-db-cta__blob,
  .epp-db-cta__btn::after { animation:none !important; }
}

/* ── Dashboard Responsive ───────────────────────── */
@media (max-width:1280px) {
  .epp-db-stats { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:1024px) {
  .epp-db-grid { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .epp-db-grid { grid-template-columns:1fr; }
  .epp-db-stats { grid-template-columns:1fr 1fr; gap:10px; }
  .epp-db-hero {
    min-height:unset;
    padding-bottom:52px; /* فضا برای تاریخ absolute */
  }
  .epp-db-hero::before {
    /* روی موبایل کل بنر رو محوتر می‌کنیم چون متن پهن‌تر می‌شه */
    background:linear-gradient(180deg, rgba(234,244,251,.55) 0%, rgba(234,244,251,.75) 100%);
  }
  .epp-db-hero__content {
    padding:22px 22px 12px;
    align-items:flex-start;
  }
  .epp-db-hero__date {
    bottom:28px; left:14px;
    font-size:11px; padding:5px 10px;
  }
  .epp-db-cta__icon { width:52px !important; height:52px !important; }
  .epp-db-cta__icon img { width:34px; }
  .epp-db-cta__btn { width:118px !important; font-size:11.5px; }
}
@media (max-width:480px) {
  .epp-db-stats { grid-template-columns:1fr; }
  .epp-db-hero__content { padding:18px 18px 10px; }
  .epp-db-hero__name { font-size:17px; }
  .epp-db-hero__sub { font-size:11.5px; }
  .epp-db-hero__date { font-size:10.5px; padding:4px 9px; bottom:26px; left:12px; }
  .epp-db-cta { flex-direction:column !important; text-align:center; gap:12px; }
  .epp-db-cta__info { justify-content:center; text-align:center; height:auto; }
  .epp-db-cta__text { text-align:center; }
  .epp-db-cta__btn { width:100% !important; flex-direction:row !important; }
}

   BUTTONS
═══════════════════════════════════════════════════ */
.epp-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:9px 18px; border-radius:var(--epp-radius-sm);
  border:1.5px solid transparent;
  font-size:13px; font-weight:600; cursor:pointer;
  text-decoration:none; transition:all var(--epp-transition);
  white-space:nowrap; font-family:'IranYekan', Tahoma, Arial, sans-serif !important; line-height:1;
}
.epp-btn svg { width:16px; height:16px; flex-shrink:0; }
.epp-btn--primary {margin-inline-end: 0;
    margin-inline-start: 8px;
    text-align: center;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    height: 35px;
    width: auto;
    background: #2196F3;
    color: #fff;
    border: 1px solid #ffffff;
    border-radius: 8px;}
.epp-btn--primary:hover { background:rgba(var(--epp-primary-rgb),.85); box-shadow:0 4px 14px rgba(var(--epp-primary-rgb),.35); }
.epp-btn--ghost {border-color: var(--epp-border);
    margin-inline-end: 0;
    margin-inline-start: 8px;
    text-align: center;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    height: 35px;
    width: auto;
    background: #E91E63;
    color: #fff;
    border: 1px solid #ffffff;
    border-radius: 8px;}
.epp-btn--ghost:hover { background:var(--epp-surface-2); color:var(--epp-text); }
.epp-btn--danger { background:#EF4444; color:#fff; border-color:#EF4444; }
.epp-btn--danger:hover { background:rgba(239,68,68,.85); }
.epp-btn--danger-ghost { background:transparent; color:#EF4444; border-color:rgba(239,68,68,.3); }
.epp-btn--danger-ghost:hover { background:rgba(239,68,68,.06); }
.epp-btn--white { background:rgba(255,255,255,.2); color:#fff; border-color:rgba(255,255,255,.3); backdrop-filter:blur(4px); }
.epp-btn--white:hover { background:rgba(255,255,255,.35); }
.epp-btn--white-outline { background:transparent; color:#fff; border-color:rgba(255,255,255,.5); }
.epp-btn--white-outline:hover { background:rgba(255,255,255,.15); }
.epp-btn--sm {width: auto; padding:5px 12px; font-size:12px; }
/* دکمه‌های آیکون‌تنها (بدون متن) مثل دکمه‌ی چشم در جدول‌ها — باید کاملاً مربعی باشن */
.epp-btn--sm.epp-btn--ghost:not(:has(span)) {
background: #2196F3;
    width: auto;
    height: 35px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 8px;
    padding-right: 6px;
    padding-left: 6px;
}
.epp-table .epp-btn.epp-ticket-view-btn {
  width:32px; height:32px; padding:0; flex-shrink:0;
}
.epp-btn--full { width:100%; }
.epp-btn:disabled, .epp-btn--loading { opacity:.6; pointer-events:none; }
.epp-btn--loading::after { content:''; width:13px; height:13px; border:2px solid currentColor; border-top-color:transparent; border-radius:50%; animation:epp-spin .6s linear infinite; }

/* ═══════════════════════════════════════════════════
   STATUS BADGES
═══════════════════════════════════════════════════ */
.epp-status {
  display:inline-flex; align-items:center; padding:3px 10px;
  border-radius:20px; font-size:11px; font-weight:600;
}
.epp-status--success   { background:rgba(34,197,94,.1);  color:#16A34A; }
.epp-status--warning   { background:rgba(245,158,11,.1); color:#D97706; }
.epp-status--danger    { background:rgba(239,68,68,.1);  color:#DC2626; }
.epp-status--info      { background:rgba(59,130,246,.1); color:#2563EB; }
.epp-status--secondary { background:var(--epp-surface-2); color:var(--epp-text-muted); }

/* ═══════════════════════════════════════════════════
   CARDS (generic)
═══════════════════════════════════════════════════ */
.epp-card {
  background:var(--epp-surface); border:1px solid var(--epp-border);
  border-radius:var(--epp-radius-lg); box-shadow:var(--epp-shadow-sm); overflow:hidden;
  margin-bottom:16px;
}
.epp-card__header {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border-bottom:1px solid var(--epp-border);
}
.epp-card__title { font-size:14px; font-weight:700; display:flex; align-items:center; gap:8px; }
.epp-card__title-icon { color:var(--epp-primary); display:flex; }
.epp-card__action { font-size:12px; color:var(--epp-primary); text-decoration:none; font-weight:500; }
.epp-card__close {
  width:32px; height:32px; border-radius:6px;
  background:rgba(239,68,68,.12); border:none;
  cursor:pointer; color:#EF4444;
  display:flex; align-items:center; justify-content:center;
  transition:background var(--epp-transition);
  padding:0; flex-shrink:0;
}
.epp-card__close:hover { background:rgba(239,68,68,.22); }
.epp-card__body { padding:18px; }

/* ═══════════════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════════════ */
.epp-section__header {
  display:flex; align-items:flex-start; justify-content:space-between;
  margin-bottom:20px; flex-wrap:wrap; gap:12px;
}
.epp-section__title { font-size:18px; font-weight:700; margin-bottom:4px; display:flex; align-items:center; gap:8px; }
.epp-section__desc { color:var(--epp-text-muted); font-size:12px; }

/* ═══════════════════════════════════════════════════
   TABLES (generic — used in modal etc)
═══════════════════════════════════════════════════ */
.epp-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.epp-table { width:100%; border-collapse:collapse; font-size:13px;background: #fff;border-radius: 10px;}
.epp-table th {
  text-align:right; padding:10px 14px;
  background:var(--epp-surface-2); border-bottom:1px solid var(--epp-border);
  font-size:11px; font-weight:700; color:var(--epp-text-muted); white-space:nowrap;
}
.epp-table td { padding:12px 14px; border-bottom:1px solid var(--epp-border); vertical-align:middle; }
.epp-table tbody tr:last-child td { border-bottom:none; }
.epp-table tfoot td { padding:12px 14px; border-top:2px solid var(--epp-border); }
.epp-table-actions { display:flex; gap:4px; }
.epp-order-id { font-family:monospace; font-weight:700; color:var(--epp-primary); font-size:13px; }

/* ═══════════════════════════════════════════════════
   ORDERS TABLE (اختصاصی صفحه سفارش‌ها)
═══════════════════════════════════════════════════ */
.epp-orders-empty {
  display:flex; flex-direction:column; align-items:center; gap:10px;
  padding:60px 20px; color:var(--epp-text-muted); text-align:center;
}
.epp-orders-empty svg { opacity:.25; color:var(--epp-text-muted); }
.epp-orders-empty h3 { font-size:16px; font-weight:700; color:var(--epp-text); }
.epp-orders-empty p  { font-size:13px; }

.epp-orders-table-wrap {
  background:var(--epp-surface);
  border:1px solid var(--epp-border);
  border-radius:var(--epp-radius-lg);
  box-shadow:var(--epp-shadow-sm);
  overflow:hidden;
}
.epp-orders-table {
  width:100%; border-collapse:collapse; font-size:13px; direction:rtl;
}
.epp-orders-table thead th {
  text-align:right; padding:11px 16px;
  background:var(--epp-surface-2);
  border-bottom:1px solid var(--epp-border);
  font-size:11px; font-weight:700; color:var(--epp-text-muted);
  white-space:nowrap;
}
.epp-orders-table tbody td {
  padding:13px 16px;
  border-bottom:1px solid var(--epp-border);
  vertical-align:middle;
}
.epp-orders-table tbody tr:last-child td { border-bottom:none; }
.epp-orders-table tbody tr {
  transition:background var(--epp-transition);
}
.epp-orders-table tbody tr:hover { background:var(--epp-surface-2); }

/* ستون‌ها */
.epp-order-name  { font-size:13px; color:var(--epp-text); display:block; }
.epp-order-date  { font-size:12px; color:var(--epp-text-muted); white-space:nowrap; }
.epp-order-price { font-size:13px; white-space:nowrap; }
.epp-order-price--success  { color:var(--epp-primary); }
.epp-order-price--warning  { color:#D97706; }
.epp-order-price--info     { color:#2563EB; }
.epp-order-price--secondary{ color:var(--epp-text-muted); }

/* دکمه‌های اکشن */
.epp-order-actions { display:flex; gap:6px; align-items:center; justify-content:flex-end; }
.epp-oact-btn {
  width:32px; height:32px; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--epp-surface-2); border:1px solid var(--epp-border);
  border-radius:8px; cursor:pointer; color:var(--epp-text-2);
  transition:all var(--epp-transition);
}
.epp-oact-btn:hover {
  background:var(--epp-primary); border-color:var(--epp-primary); color:#fff;
  box-shadow:0 2px 8px rgba(var(--epp-primary-rgb),.28);
}
.epp-oact-btn--dl:hover {
  background:#22C55E; border-color:#22C55E; color:#fff;
  box-shadow:0 2px 8px rgba(34,197,94,.28);
}

/* ═══════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════ */
.epp-field { margin-bottom:14px; }
.epp-field label { display:block; font-size:12px; font-weight:600; color:var(--epp-text-2); margin-bottom:5px; }
.epp-required { color:#EF4444; }
.epp-input {
  width:100%; padding:10px 14px;
  height:44px; box-sizing:border-box;
  background:var(--epp-surface); border:1.5px solid var(--epp-border);
  border-radius:var(--epp-radius-sm); color:var(--epp-text);
  font-size:13.5px; font-family:'IranYekan', Tahoma, Arial, sans-serif !important; outline:none;
  transition:border-color var(--epp-transition), box-shadow var(--epp-transition);
  display:block;
}
textarea.epp-input, .epp-textarea { height:auto; }
.epp-input:focus { border-color:var(--epp-primary); box-shadow:0 0 0 3px rgba(var(--epp-primary-rgb),.12); }
.epp-textarea { resize:vertical; min-height:90px; line-height:1.6; }
select.epp-input { cursor:pointer; }
.epp-form-row--two { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.epp-form-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding-top:6px; }
.epp-input-group { position:relative; }
.epp-input-group .epp-input { padding-left:40px; }
.epp-input-toggle-pass {width: auto;height: auto;
  position:absolute; left:10px; top:50%; transform:translateY(-50%);
  background:none; border:none; cursor:pointer; color:var(--epp-text-muted); padding:4px; display:flex;
}
.epp-input-toggle-pass svg { width:15px; height:15px; }

/* رفع باگ قالب: input[type=password/email] و textarea سراسر سایت روی 72% ست شده بودن (style.css)
   قبلاً فقط کلاس epp-input رو پوشش می‌داد؛ حالا با نوع فیلد (type) عمومی‌ترش کردیم
   تا هر فیلدی تو کل پنل (از جمله فرم تیکت با کلاس epp-tkt-input) هم مصون بمونه */
#eppPanel input[type="password"],
#eppPanel input[type="email"],
#eppPanel input[type="text"],
#eppPanel textarea {
    box-sizing: border-box !important;
    font-size: 12.5px;
    color: var(--epp-text-muted);
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid var(--epp-border);
    border-radius: 15px;
    width: 100%;
}

/* ═══════════════════════════════════════════════════
   DOWNLOADS GRID
═══════════════════════════════════════════════════ */
.epp-downloads-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; margin-bottom:18px;
}
.epp-download-card {
  background:var(--epp-surface); border:1px solid var(--epp-border);
  border-radius:var(--epp-radius-lg); overflow:hidden;
  box-shadow:var(--epp-shadow-sm); display:flex; flex-direction:column;
  position:relative; transition:transform var(--epp-transition), box-shadow var(--epp-transition);
}
.epp-download-card:hover { transform:translateY(-2px); box-shadow:var(--epp-shadow); }
.epp-download-card__thumb {
  height:130px; background:var(--epp-surface-2);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; position:relative;
}
.epp-download-card__thumb img { width:100%; height:100%; object-fit:cover; }
.epp-download-card__thumb-placeholder { color:var(--epp-text-muted); opacity:.4; }
.epp-download-card__version {
  position:absolute; top:8px; right:8px;
  background:rgba(var(--epp-primary-rgb),.9); color:#fff;
  font-size:9px; font-weight:700; padding:2px 7px; border-radius:20px;
}
.epp-download-card__body { padding:10px 12px; flex:1; }
.epp-download-card__title { font-size:12.5px; font-weight:600; margin-bottom:3px; line-height:1.4; }
.epp-download-card__date { font-size:10.5px; color:var(--epp-text-muted); }
.epp-download-card__price { font-size:12px; font-weight:700; color:var(--epp-primary); display:block; margin-top:3px; }
.epp-download-card__actions { padding:0 12px 12px; display:flex; flex-direction:column; gap:5px; }
.epp-download-card__files { display:flex; flex-direction:column; gap:4px; }
.epp-wishlist-remove-btn {
  position:absolute; top:6px; left:6px;
  background:rgba(255,255,255,.9) !important; border:none !important;
}
.epp-dark .epp-wishlist-remove-btn { background:rgba(28,31,58,.9) !important; }

/* ═══════════════════════════════════════════════════
   TOOLBAR
═══════════════════════════════════════════════════ */
.epp-toolbar { display:flex; align-items:center; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.epp-search { position:relative; flex:1; max-width:340px; }
.epp-search__icon {position: absolute;
    right: 123px;
    top: 42%;
    transform: translateY(-50%);
    color: var(--epp-text-muted);
    display: flex;
    pointer-events: none;}
.epp-search__input {
  width:100%; height:44px; box-sizing:border-box; padding:0 36px 0 12px;
  background:var(--epp-surface); border:1.5px solid var(--epp-border);
  border-radius:var(--epp-radius-sm); color:var(--epp-text); font-size:13px;
  font-family:'IranYekan', Tahoma, Arial, sans-serif !important; outline:none; transition:border-color var(--epp-transition);
}
.epp-search__input:focus { border-color:var(--epp-primary); }
.epp-search__input::placeholder { color:var(--epp-text-muted); }
.epp-filter-tabs {
  display:flex; gap:6px; flex-wrap:wrap;
}
.epp-filter-tab {width: auto;
    height: auto;
  padding:7px 16px; border:1.5px solid var(--epp-border);
  background:var(--epp-surface); cursor:pointer;
  font-size:12.5px; font-weight:500; color:var(--epp-text-2);
  border-radius:20px; font-family:inherit;
  transition:all var(--epp-transition); white-space:nowrap;
  line-height:1.4;
}
.epp-filter-tab:hover { border-color:var(--epp-primary); color:var(--epp-primary); background:rgba(var(--epp-primary-rgb),.04); }
.epp-filter-tab--active { background:var(--epp-primary) !important; color:#fff !important; border-color:var(--epp-primary) !important; box-shadow:0 2px 8px rgba(var(--epp-primary-rgb),.28); }

/* رنگ‌بندی وضعیت‌ها */
.epp-filter-tab--success:hover { border-color:#22C55E; color:#16A34A; background:rgba(34,197,94,.05); }
.epp-filter-tab--warning:hover { border-color:#F59E0B; color:#D97706; background:rgba(245,158,11,.05); }
.epp-filter-tab--info:hover    { border-color:#3B82F6; color:#2563EB; background:rgba(59,130,246,.05); }


/* ═══════════════════════════════════════════════════
   TICKETS — NEW DESIGN
═══════════════════════════════════════════════════ */

/* ── Page header ── */
.epp-tkt-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:22px; flex-wrap:wrap; gap:12px;
}
.epp-tkt-header__title-wrap { display:flex; align-items:center; gap:14px; min-width:0; }
.epp-tkt-header__icon {
  width:50px; height:50px; border-radius:14px;
  background:rgba(108,99,255,.1); color:#6C63FF;
  border:1.5px solid rgba(108,99,255,.18);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.epp-tkt-header__icon svg { width:26px; height:26px; display:block; }
.epp-tkt-header__title { font-size:20px; font-weight:700; color:var(--epp-text); margin:0 0 3px; line-height:1.2; }
.epp-tkt-header__desc { font-size:12px; color:var(--epp-text-muted); margin:0; }

/* Header new-ticket button */
.epp-tkt-new-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 20px; border-radius:10px; font-size:14px; font-weight:600;
  white-space:nowrap; flex-shrink:0;
}
.epp-tkt-new-btn svg { display:block; flex-shrink:0; }
.epp-tkt-new-btn span { white-space:nowrap; }

/* ── New ticket form card ── */
.epp-tkt-form-card { margin-bottom:20px; }
.epp-tkt-form-card__header {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; border-bottom:1px solid var(--epp-border);
}
.epp-tkt-close-btn {
  width:32px; height:32px; border-radius:8px;
  background:rgba(239,68,68,.1); border:none;
  cursor:pointer; color:#EF4444;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s; padding:0; flex-shrink:0;
}
.epp-tkt-close-btn:hover { background:rgba(239,68,68,.2); }
.epp-tkt-close-btn svg { display:block; }

/* Form body */
.epp-tkt-form-body { padding:20px; }
.epp-tkt-form-row {
  display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px;
}
.epp-tkt-field { margin-bottom:16px; }
.epp-tkt-field:last-of-type { margin-bottom:0; }
.epp-tkt-field label {
  display:block; font-size:12px; font-weight:600;
  color:var(--epp-text-2); margin-bottom:7px;
}
/* Uniform input for ticket form — separate class to avoid global conflicts */
.epp-tkt-input {
  width:100%; box-sizing:border-box; display:block;
  height:44px; padding:0 14px;
  background:var(--epp-surface); border:1.5px solid var(--epp-border);
  border-radius:var(--epp-radius-sm); color:var(--epp-text);
  font-size:13.5px; font-family:'IranYekan', Tahoma, Arial, sans-serif !important; outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.epp-tkt-input:focus { border-color:var(--epp-primary); box-shadow:0 0 0 3px rgba(var(--epp-primary-rgb),.12); }
.epp-tkt-textarea { height:auto; min-height:120px; padding:12px 14px; resize:vertical; line-height:1.7; margin-bottom:4px; }
select.epp-tkt-input { cursor:pointer; }
.epp-tkt-field + .epp-tkt-field { margin-top:2px; }
.epp-optional { font-size:11px; font-weight:400; color:var(--epp-text-muted); }

/* پیوست فایل تیکت */
.epp-tkt-upload {
  display:flex; align-items:center; gap:12px;
  border:1.5px dashed var(--epp-border); border-radius:var(--epp-radius-sm);
  padding:14px 16px; cursor:pointer; background:var(--epp-surface-2);
  transition:border-color .2s, background .2s;
}
.epp-tkt-upload:hover { border-color:var(--epp-primary); background:rgba(var(--epp-primary-rgb),.04); }
.epp-tkt-upload input[type="file"] { display:none; }
.epp-tkt-upload__icon {
  width:38px; height:38px; border-radius:10px; flex-shrink:0;
  background:rgba(var(--epp-primary-rgb),.1); color:var(--epp-primary);
  display:flex; align-items:center; justify-content:center;
}
.epp-tkt-upload__text { display:flex; flex-direction:column; gap:2px; }
.epp-tkt-upload__text strong { font-size:12.5px; color:var(--epp-text); }
.epp-tkt-upload__text span { font-size:11px; color:var(--epp-text-muted); }
.epp-tkt-upload__preview {
  display:flex; align-items:center; gap:10px;
  border:1.5px solid var(--epp-border); border-radius:var(--epp-radius-sm);
  padding:10px 14px; background:var(--epp-surface-2);
}
.epp-tkt-upload__preview-icon { color:var(--epp-primary); display:flex; flex-shrink:0; }
.epp-tkt-upload__preview-name { flex:1; font-size:12.5px; color:var(--epp-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.epp-tkt-upload__remove {
  width: auto;
    height: auto;
    background: #E91E63; border:none; cursor:pointer; color:var(--epp-text-muted);
  display:flex; padding:2px; flex-shrink:0; transition:color .2s;
}
.epp-tkt-upload__remove:hover { color:#EF4444; }

/* پیوست نمایش‌داده‌شده داخل هر پیام تیکت */
.epp-ticket-attachment {
  display:inline-flex; align-items:center; gap:6px;
  margin-top:8px; padding:6px 12px; border-radius:8px;
  background:var(--epp-surface-2); border:1px solid var(--epp-border);
  color:var(--epp-primary); font-size:12px; text-decoration:none;
  transition:background .2s;
}
.epp-ticket-attachment:hover { background:rgba(var(--epp-primary-rgb),.08); }

/* Form actions */
.epp-tkt-form-actions {
  display:flex; align-items:center; gap:10px;
  margin-top:24px; flex-direction:row-reverse;
}
.epp-tkt-submit-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 24px; border-radius:10px; font-size:14px; font-weight:600;
  width:auto; white-space:nowrap; flex-shrink:0;
}
.epp-tkt-submit-btn svg { display:block; flex-shrink:0; width:16px; height:16px; }
.epp-tkt-submit-btn span { display:inline-block; }
.epp-tkt-cancel-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:10px 20px; border-radius:10px; font-size:14px; font-weight:600;
  background:transparent; color:var(--epp-text-2);
  border:1.5px solid var(--epp-border); cursor:pointer;
  transition:background .2s, color .2s; font-family:inherit;
  width:auto; white-space:nowrap; flex-shrink:0;
}
.epp-tkt-cancel-btn:hover { background:var(--epp-surface-2); color:var(--epp-text); }

/* ── Tickets panel (card wrapping tabs + content) ── */
.epp-tkt-panel { padding:0; overflow:hidden; }

/* Status tabs row */
.epp-tkt-tabs {
  display:flex; align-items:center; gap:0;
  border-bottom:1.5px solid var(--epp-border);
  padding:0 20px; overflow-x:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.epp-tkt-tabs::-webkit-scrollbar { display:none; }
.epp-tkt-tabs__filter {
  display:flex; align-items:center; gap:8px;
  font-size:12px; font-weight:600; color:var(--epp-text-2);
  padding:14px 18px 14px 22px; white-space:nowrap; cursor:pointer;
  border-left:1.5px solid var(--epp-border); margin-left:8px; flex-shrink:0;
}
.epp-tkt-tabs__filter svg { display:block; flex-shrink:0; }
.epp-tkt-tabs__list {
  display:flex; align-items:center; gap:4px; flex:1; flex-shrink:0;
}
.epp-tkt-tab {width: auto;
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 16px; font-size:13px; font-weight:500;
  color:var(--epp-text-muted); background:none; border:none;
  border-bottom:2px solid transparent; cursor:pointer;
  white-space:nowrap; font-family:inherit; flex-shrink:0;
  transition:color .2s, border-color .2s; margin-bottom:-1.5px;
  position:relative;
}
/* Divider between tabs so labels never visually run into each other */
.epp-tkt-tab + .epp-tkt-tab::before {
  content:''; position:absolute; right:100%; top:50%;
  transform:translateY(-50%); width:1px; height:16px;
  background:var(--epp-border);
}
.epp-tkt-tab:hover { color:var(--epp-text); }
.epp-tkt-tab--active { color:#6C63FF; border-bottom-color:#6C63FF; font-weight:600; }
.epp-tkt-tab__count {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:20px; height:20px; padding:0 5px; border-radius:20px;
  font-size:11px; font-weight:700; margin-inline-start:2px;
  background:var(--epp-surface-2); color:var(--epp-text-muted);
}
.epp-tkt-tab--active .epp-tkt-tab__count {
  background:rgba(108,99,255,.12); color:#6C63FF;
}

/* ── Empty state ── */
.epp-tkt-empty {
  text-align:center; padding:44px 30px 32px;
}
.epp-tkt-empty__illustration { margin-bottom:18px; display:flex; justify-content:center; }
.epp-tkt-empty__title { font-size:18px; font-weight:700; color:var(--epp-text); margin:0 0 10px; }
.epp-tkt-empty__desc { font-size:13px; color:var(--epp-text-muted); line-height:1.8; margin:0 0 22px; }
.epp-tkt-empty-new-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 28px; border-radius:10px; font-size:14px; font-weight:600;
  white-space:nowrap; flex-shrink:0;
}
.epp-tkt-empty-new-btn svg { display:block; flex-shrink:0; }
.epp-tkt-empty-new-btn span { white-space:nowrap; }

/* ── Info bar (before submitting ticket) ── */
.epp-tkt-info-bar {
  margin:0 20px 20px; padding:18px 20px;
  background:var(--epp-surface-2); border-radius:14px;
  border:1px solid var(--epp-border);
}
.epp-tkt-info-bar__title {
  font-size:14px; font-weight:700; color:var(--epp-text);
  margin:0 0 4px; text-align:right;
}
.epp-tkt-info-bar__sub {
  font-size:12px; color:var(--epp-text-muted); margin:0 0 14px; text-align:right;
}
.epp-tkt-info-bar__items { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
.epp-tkt-info-item {
  display:flex; align-items:center; gap:12px; padding:14px 14px;
  background:var(--epp-surface); border-radius:10px;
  border:1px solid var(--epp-border); text-decoration:none;
  transition:border-color .2s, box-shadow .2s;
}
.epp-tkt-info-item:hover { border-color:#6C63FF; box-shadow:0 2px 10px rgba(108,99,255,.1); }
.epp-tkt-info-item__icon {
  width:40px; height:40px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.epp-tkt-info-item__icon--orange { background:rgba(249,115,22,.1); color:#F97316; }
.epp-tkt-info-item__icon--blue   { background:rgba(59,130,246,.1); color:#3B82F6; }
.epp-tkt-info-item__icon--green  { background:rgba(34,197,94,.1);  color:#22C55E; }
.epp-tkt-info-item__icon svg { display:block; }
.epp-tkt-info-item__label { display:block; font-size:13px; font-weight:600; color:var(--epp-text); margin-bottom:3px; }
.epp-tkt-info-item__sub { display:block; font-size:11px; color:var(--epp-text-muted); line-height:1.4; }

/* ── Ticket view page (keep existing) ── */
.epp-ticket-view .epp-section__header { flex-wrap:wrap; gap:10px; align-items:flex-start; }
.epp-ticket-view__meta { display:flex; gap:8px; align-items:center; flex-wrap:wrap; flex-shrink:0; }

/* ═══════════════════════════════════════════════════
   TICKET CHAT — gradient header + fixed white box
   (unified with plugin settings panel styling)
═══════════════════════════════════════════════════ */
.epp-tkt-chat-header {
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; flex-wrap:nowrap;
  padding:14px 20px;
  border-radius:var(--epp-radius-lg) var(--epp-radius-lg) 0 0;
  background:linear-gradient(135deg, var(--epp-primary) 0%, #8A7CFF 55%, var(--epp-secondary) 130%);
  box-shadow:var(--epp-shadow);
  color:#fff; position:relative; overflow:hidden;
}
.epp-tkt-chat-header::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.18) 0, transparent 45%),
    radial-gradient(circle at 92% 85%, rgba(255,255,255,.14) 0, transparent 40%);
  pointer-events:none;
}
.epp-tkt-chat-header__right { display:flex; align-items:center; gap:10px; position:relative; z-index:1; min-width:0; flex:1 1 auto; }
.epp-tkt-chat-header__back {
  width:32px; height:32px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28);
  border-radius:9px; color:#fff; transition:background .2s;
}
.epp-tkt-chat-header__back svg { width:15px; height:15px; display:block; }
.epp-tkt-chat-header__back:hover { background:rgba(255,255,255,.3); color:#fff; }
.epp-tkt-chat-header__icon {
  width:38px; height:38px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28);
  border-radius:11px; backdrop-filter:blur(6px);
}
.epp-tkt-chat-header__icon svg { width:18px; height:18px; display:block; }
.epp-tkt-chat-header__info { min-width:0; overflow:hidden; }
.epp-tkt-chat-header__info h1 {
  margin:0; font-size:14.5px; font-weight:800; color:#fff; line-height:1.4;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.epp-tkt-chat-header__info p {
  margin:3px 0 0; font-size:11px; color:rgba(255,255,255,.82);
  display:flex; align-items:center; gap:6px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.epp-tkt-chat-header__dot { width:3px; height:3px; border-radius:50%; background:rgba(255,255,255,.55); flex-shrink:0; }
.epp-tkt-chat-header__left { display:flex; align-items:center; gap:6px; position:relative; z-index:1; flex-shrink:0; }
.epp-tkt-chat-header__priority,
.epp-tkt-chat-header__status {
  display:inline-flex; align-items:center; gap:4px;
  height:26px; padding:0 10px; border-radius:100px; font-size:10.5px; font-weight:700;
  background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); color:#fff;
  white-space:nowrap; line-height:1;
}
.epp-tkt-chat-header__status .dot { width:5px; height:5px; border-radius:50%; background:#43D4A0; flex-shrink:0; box-shadow:0 0 0 2px rgba(67,212,160,.25); }
.epp-tkt-chat-header__status--warning .dot { background:#FBBF24; box-shadow:0 0 0 2px rgba(251,191,36,.25); }
.epp-tkt-chat-header__status--secondary .dot { background:rgba(255,255,255,.6); box-shadow:none; }
.epp-tkt-chat-header__status--info .dot { background:#60A5FA; box-shadow:0 0 0 2px rgba(96,165,250,.25); }

.epp-tkt-chat-box {
  background:var(--epp-surface); border:1px solid var(--epp-border); border-top:none;
  border-radius:0 0 var(--epp-radius-lg) var(--epp-radius-lg);
  box-shadow:var(--epp-shadow-sm); overflow:hidden;
  display:flex; flex-direction:column;
  height:min(600px, 68vh);
}

.epp-tkt-chat-thread {
  flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden;
  padding:18px 20px; background:var(--epp-surface-2);
  scroll-behavior:smooth;
}
.epp-tkt-chat-thread::-webkit-scrollbar { width:6px; }
.epp-tkt-chat-thread::-webkit-scrollbar-track { background:transparent; }
.epp-tkt-chat-thread::-webkit-scrollbar-thumb { background:rgba(var(--epp-primary-rgb),.25); border-radius:10px; }
.epp-tkt-chat-thread::-webkit-scrollbar-thumb:hover { background:rgba(var(--epp-primary-rgb),.4); }

.epp-tkt-chat-empty {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  height:100%; color:var(--epp-text-muted); text-align:center; gap:8px;
}
.epp-tkt-chat-empty svg { width:32px; height:32px; opacity:.3; }
.epp-tkt-chat-empty p { margin:0; font-size:12px; }

/* Composer */
.epp-tkt-chat-composer {
  flex-shrink:0; background:var(--epp-surface);
  border-top:1px solid var(--epp-border);
  padding:12px 16px;
}
.epp-tkt-chat-composer__row { display:flex; align-items:flex-end; gap:8px; }
.epp-tkt-chat-composer__avatar { flex-shrink:0; }
.epp-tkt-chat-composer__avatar img { width:32px; height:32px; border-radius:50%; object-fit:cover; border:2px solid var(--epp-border); display:block; }
.epp-tkt-chat-composer__input {
  flex:1 1 auto; min-width:0; resize:none; min-height:90px; max-height:120px;
  padding:9px 15px; border-radius:18px;
  border:1.5px solid var(--epp-border); background:var(--epp-surface-2);
  font-size:13px; line-height:1.5; color:var(--epp-text);
  transition:border-color var(--epp-transition), box-shadow var(--epp-transition), background var(--epp-transition);
}
.epp-tkt-chat-composer__input:focus {
  outline:none; border-color:var(--epp-primary); background:var(--epp-surface);
  box-shadow:0 0 0 3px rgba(var(--epp-primary-rgb),.12);
}
.epp-tkt-chat-composer__actions {
  display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:nowrap;
  margin-top:8px;
}
.epp-tkt-chat-composer__actions .epp-btn {
  flex-shrink:0; white-space:nowrap;
}
.epp-tkt-chat-composer__actions .epp-btn--danger-ghost {margin-inline-end: 0;
    margin-inline-start: 8px;
    text-align: center;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    height: 35px;
    width: 100px;
    background: #ef4444;
    color: #fff;
    border: 1px solid #ffffff;
    border-radius: 8px;}

.epp-tkt-chat-closed {
  flex-shrink:0; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:14px; background:var(--epp-surface-2); border-top:1px solid var(--epp-border);
  color:var(--epp-text-muted); font-size:12px; font-weight:600;
}

@media (max-width:640px) {
  .epp-tkt-chat-header { padding:12px 14px; }
  .epp-tkt-chat-header__info h1 { font-size:13px; }
  .epp-tkt-chat-header__priority { display:none; }
  .epp-tkt-chat-box { height:min(540px, 76vh); }
  .epp-tkt-chat-thread { padding:14px; }
}

/* ── Responsive ── */
@media (max-width:768px) {
  .epp-tkt-info-bar__items { grid-template-columns:1fr; }
  .epp-tkt-form-row { grid-template-columns:1fr; }
  .epp-tkt-header { flex-direction:column; align-items:flex-start; }
}

/* ── Tickets table → stacked cards on small screens ── */
@media (max-width:640px) {
  .epp-tkt-tabs { padding:0 12px; }
  .epp-tkt-tab { padding:12px 12px; font-size:12.5px; }
  .epp-tkt-tabs__filter { padding:12px 14px 12px 16px; }

  .epp-tkt-table thead { display:none; }
  .epp-tkt-table, .epp-tkt-table tbody, .epp-tkt-table tr, .epp-tkt-table td {
    display:block; width:100%;
  }
  .epp-table-wrap { padding:12px; }
  .epp-tkt-table tr {
    border:1.5px solid var(--epp-border); border-radius:12px;
    margin-bottom:10px; padding:4px 14px; background:var(--epp-surface);
  }
  .epp-tkt-table tr:last-child { margin-bottom:0; }
  .epp-tkt-table td {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:9px 0; border-bottom:1px dashed var(--epp-border);
    text-align:left; white-space:normal;
  }
  .epp-tkt-table td:last-child { border-bottom:none; }
  .epp-tkt-table td::before {
    content:attr(data-label); font-size:11px; font-weight:700;
    color:var(--epp-text-muted); flex-shrink:0;
  }
  .epp-tkt-table td[data-label=""]::before { content:none; }
  .epp-tkt-table td[data-label=""] { justify-content:flex-end; }
}

.epp-ticket-thread { display:flex; flex-direction:column; gap:14px; margin-bottom:0; }
.epp-ticket-reply {
  display:flex; gap:8px; align-items:flex-end;
  animation:epp-fade-in .3s ease; max-width:78%;
}
.epp-ticket-reply--user { align-self:flex-start; }
.epp-ticket-reply--admin { align-self:flex-end; flex-direction:row-reverse; }
.epp-ticket-reply__avatar { flex-shrink:0; }
.epp-ticket-reply__avatar img {
  width:30px; height:30px; border-radius:50%; object-fit:cover; display:block;
  border:2px solid var(--epp-surface); box-shadow:0 0 0 1px var(--epp-border);
}
.epp-ticket-reply__body { min-width:0; display:flex; flex-direction:column; }
.epp-ticket-reply--admin .epp-ticket-reply__body { align-items:flex-end; }
.epp-ticket-reply--user .epp-ticket-reply__body { align-items:flex-start; }
.epp-ticket-reply__meta {
  display:flex; gap:6px; align-items:center; margin-bottom:3px; padding:0 4px;
}
.epp-ticket-reply__author { font-size:11px; font-weight:700; color:var(--epp-text-2); white-space:nowrap; }
.epp-ticket-reply__date { font-size:10px; color:var(--epp-text-muted); white-space:nowrap; }
.epp-ticket-reply__admin-badge {
  background:rgba(var(--epp-primary-rgb),.1); color:var(--epp-primary);
  font-size:9.5px; font-weight:700; padding:1px 7px; border-radius:100px; white-space:nowrap;
}
.epp-ticket-reply__text {
  background:var(--epp-surface); border:1px solid var(--epp-border);
  border-radius:15px; border-end-start-radius:4px;
  padding:10px 14px; max-width:100%;
  font-size:13px; line-height:1.75; color:var(--epp-text);
  word-break:break-word; overflow-wrap:anywhere;
  box-shadow:0 1px 2px rgba(20,20,43,.04);
}
.epp-ticket-reply__text p { margin:0 0 6px; }
.epp-ticket-reply__text p:last-child { margin-bottom:0; }
.epp-ticket-reply--admin .epp-ticket-reply__text {
  background:linear-gradient(135deg, var(--epp-primary), #8A7CFF);
  color:#fff; border-color:transparent;
  border-end-start-radius:15px; border-end-end-radius:4px;
  box-shadow:0 3px 10px rgba(var(--epp-primary-rgb),.2);
}
.epp-ticket-reply--admin .epp-ticket-reply__author { color:var(--epp-primary); }
.epp-ticket-reply--admin .epp-ticket-reply__admin-badge { background:rgba(255,255,255,.2); color:#fff; }
.epp-ticket-attachment { margin-top:6px; }
.epp-ticket-reply--admin .epp-ticket-attachment {
  background:rgba(255,255,255,.15); border-color:rgba(255,255,255,.3); color:#fff;
}
.epp-ticket-reply--admin .epp-ticket-attachment:hover { background:rgba(255,255,255,.25); }

.epp-ticket-reply-form .epp-card__body { padding:16px; }
.epp-ticket-reply-form .epp-form-actions { flex-wrap:wrap; gap:8px; }
.epp-ticket-reply-form .epp-btn { flex-shrink:0; }

@media (max-width:640px) {
  .epp-ticket-reply { max-width:92%; }
}


.epp-back-link {
  display:inline-flex; align-items:center; gap:4px;
  font-size:12px; color:var(--epp-text-muted); text-decoration:none;
  margin-bottom:8px; transition:color var(--epp-transition);
}
.epp-back-link:hover { color:var(--epp-primary); }
.epp-back-link svg { transform:rotate(180deg); }

/* ═══════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════ */
.epp-breadcrumb {
  display:flex; align-items:center; gap:6px;
  font-size:13px; color:var(--epp-text-muted);
  margin-bottom:16px; flex-wrap:wrap;
}
.epp-breadcrumb__item { display:inline-flex; align-items:center; gap:4px; color:var(--epp-text-muted); text-decoration:none; }
.epp-breadcrumb__item--home { color:var(--epp-primary); }
.epp-breadcrumb__item--home:hover { opacity:.8; }
.epp-breadcrumb__item--active { color:var(--epp-text); font-weight:600; }
.epp-breadcrumb__sep { display:inline-flex; align-items:center; color:var(--epp-border); transform:rotate(180deg); }

/* ═══════════════════════════════════════════════════
   PROFILE LAYOUT
═══════════════════════════════════════════════════ */
.epp-profile-layout { display:grid; grid-template-columns:1fr 280px; gap:20px; align-items:start; }

/* Form card header */
.epp-profile__form-header { padding:20px 20px 0; border-bottom:none; }
.epp-profile__form-title-wrap {
  display:flex; align-items:flex-start; gap:14px;
  padding-bottom:18px; border-bottom:1.5px solid var(--epp-border); margin-bottom:4px;
}
.epp-profile__form-icon {
  width:44px; height:44px; border-radius:var(--epp-radius-sm); flex-shrink:0;
  background:rgba(var(--epp-primary-rgb),.1); color:var(--epp-primary);
  display:flex; align-items:center; justify-content:center;
}
.epp-profile__form-icon svg { display:block; }
.epp-card__subtitle { font-size:12px; color:var(--epp-text-muted); margin-top:4px; }

/* ─── Scoped input-with-icon styles ──────────────────
   Using .epp-profile as a scope prefix so these rules
   win over the global .epp-input shorthand padding.     */
.epp-profile .epp-input-icon-wrap {
  position:relative; display:block; width:100%;
}
.epp-profile .epp-input-icon {
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  display:flex; align-items:center; pointer-events:none; z-index:2;
  color:#9299B8; line-height:0;
}
.epp-profile .epp-input-icon svg { display:block; width:18px; height:18px; }
.epp-profile .epp-input-icon--top { top:13px; transform:none; }

/* Override padding on ALL profile inputs — explicit sides beat shorthand */
.epp-profile input.epp-input {
  padding-top:10px;
  padding-bottom:10px;
  padding-left:14px;
  padding-right:44px;
  height:44px;
  box-sizing:border-box;
  width:100%; display:block;
}
.epp-profile textarea.epp-input {
  padding-top:12px;
  padding-bottom:12px;
  padding-left:14px;
  padding-right:44px;
  height:auto;
  min-height:116px;
  box-sizing:border-box;
  width:100%; display:block;
  resize:vertical; line-height:1.6;
}
/* Read-only (نام کاربری) */
.epp-profile input.epp-input[readonly] {
  background:#F7F8FC; color:#9299B8; cursor:default;
}
.epp-dark .epp-profile input.epp-input[readonly] { background:#232646; }

/* Bio counter */
.epp-bio-counter {
  font-size:11px; color:#9299B8;
  text-align:left; margin-top:6px; direction:ltr;
}

/* ─── Avatar card ─────────────────────────────────── */
.epp-profile__avatar-card { padding:0; overflow:hidden; }
.epp-avatar-upload { text-align:center; padding:28px 20px 18px; }

/* Outer wrapper: inline-block so it shrink-wraps; overflow:visible so btn shows */
.epp-avatar-upload__preview {
  position:relative; display:inline-block;
  width:108px; height:108px; cursor:pointer; margin:0 auto;
}
/* Inner clipping ring clips the image to a circle */
.epp-avatar-upload__preview-img {
  width:108px; height:108px; border-radius:50%; overflow:hidden; display:block;
  border:3px solid #6C63FF;
  box-shadow:0 0 0 4px rgba(108,99,255,.15);
  position:relative; z-index:0;
}
.epp-avatar-upload__preview-img img { width:100%; height:100%; object-fit:cover; display:block; }

/* Camera btn sits at bottom-left of the circle */
.epp-avatar-upload__btn {
  position:absolute; bottom:3px; left:3px; z-index:3;
  width:32px; height:32px; border-radius:50%;
  background:#6C63FF; color:#fff; border:2.5px solid #fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; padding:0;
  transition:background .2s, transform .2s;
  box-shadow:0 2px 8px rgba(108,99,255,.4);
}
.epp-avatar-upload__btn:hover { background:#5b45e0; transform:scale(1.08); }
.epp-avatar-upload__btn svg { display:block; width:15px; height:15px; }

/* "تغییر عکس" label */
.epp-avatar-upload__change-label {
  display:block; font-size:12px; color:#9299B8;
  margin-top:12px; line-height:1.3;
}

/* ─── User meta in avatar card ───────────────────── */
.epp-profile__user-meta { text-align:center; padding:0 20px 22px; }
.epp-profile__display-name {
  display:block; font-size:15px; font-weight:700; color:var(--epp-text);
  margin-bottom:10px; line-height:1.4;
}
.epp-profile__username-inline { display:none; }
.epp-profile__badges { display:flex; align-items:center; justify-content:center; gap:6px; flex-wrap:wrap; margin-bottom:18px; }
.epp-profile__badge {
  display:inline-block; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:600; line-height:1.4;
}
.epp-profile__badge--novelcity { background:rgba(108,99,255,.1); color:#6C63FF; }
.epp-profile__badge--role { background:rgba(59,130,246,.1); color:#3B82F6; }
.epp-profile__meta-info {
  display:flex; flex-direction:column; gap:14px;
  background:var(--epp-surface-2); border-radius:var(--epp-radius-sm); padding:14px 16px;
}
.epp-profile__meta-row { display:flex; align-items:flex-start; gap:10px; text-align:right; color:var(--epp-text-muted); }
.epp-profile__meta-row svg { flex-shrink:0; margin-top:1px; }
.epp-profile__meta-label { display:block; font-size:11px; color:var(--epp-text-muted); margin-bottom:2px; }
.epp-profile__meta-value { display:flex; align-items:center; gap:5px; font-size:13px; font-weight:600; color:var(--epp-text); }
.epp-profile__online-dot {
  width:8px; height:8px; border-radius:50%; background:#22C55E;
  display:inline-block; flex-shrink:0; box-shadow:0 0 0 2px rgba(34,197,94,.2);
}

/* ═══════════════════════════════════════════════════
   SECURITY
═══════════════════════════════════════════════════ */
.epp-security-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }

/* eyebrow کوچک بالای هدر */
.epp-security-eyebrow-wrap { display:flex; justify-content:flex-end; margin-bottom:16px; }
.epp-security-eyebrow {
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:600; color:var(--epp-primary);
}
.epp-security-eyebrow svg { width:15px; height:15px; }

/* هدر با آیکون بزرگ سمت راست */
.epp-section__header--security {
  display:flex; align-items:center; justify-content:flex-start; gap:16px;
  background:var(--epp-surface); border:1px solid var(--epp-border);
  border-radius:var(--epp-radius-lg); padding:18px 20px; box-shadow:var(--epp-shadow-sm);
}
.epp-section__header--security .epp-section__title { margin-bottom:6px; }
.epp-security-header-icon {
  flex-shrink:0; width:52px; height:52px; border-radius:14px;
  background:rgba(var(--epp-primary-rgb),.12); color:var(--epp-primary);
  display:flex; align-items:center; justify-content:center;
}
.epp-security-header-icon svg { width:26px; height:26px; }

/* آیکون نرم داخل هدر کارت‌ها */
.epp-card__title-icon--soft {
  width:44px; height:44px; border-radius:12px;
  background:rgba(var(--epp-primary-rgb),.14); color:var(--epp-primary);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.epp-card__title-icon--soft svg { width:22px; height:22px; }
.epp-card--sessions .epp-card__header,
.epp-card--password .epp-card__header { align-items:center; justify-content:flex-start; gap:14px; margin-bottom:4px; }
.epp-card--sessions .epp-card__title,
.epp-card--password .epp-card__title { display:block; }

/* لیست جلسات با جزئیات IP/کشور/دستگاه */
.epp-session-list { display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.epp-session-item {
  display:flex; align-items:flex-start; gap:12px;
  background:var(--epp-surface-2); border-radius:var(--epp-radius);
  padding:12px 14px; border:1px solid transparent;
}
.epp-session-item--current { border-color:rgba(var(--epp-primary-rgb),.35); background:rgba(var(--epp-primary-rgb),.06); }
.epp-session-item__icon {
  width:36px; height:36px; border-radius:10px; flex-shrink:0;
  background:var(--epp-surface); color:var(--epp-primary);
  display:flex; align-items:center; justify-content:center;
}
.epp-session-item__body { flex:1; min-width:0; }
.epp-session-item__top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:4px; }
.epp-session-item__top strong { font-size:13px; }
.epp-session-item__badge {
  font-size:10px; font-weight:700; color:var(--epp-primary);
  background:rgba(var(--epp-primary-rgb),.12); padding:2px 8px; border-radius:20px;
}
.epp-session-item__meta {
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  font-size:11.5px; color:var(--epp-text-muted); margin-top:3px;
}
.epp-session-item__meta-part { display:inline-flex; align-items:center; gap:4px; }
.epp-session-item__meta-part svg { flex-shrink:0; opacity:.7; }
.epp-session-item__ip { direction:ltr; font-family:monospace,sans-serif; }
.epp-session-item__time svg { opacity:.7; }
.epp-security-note {
  font-size:11px; color:var(--epp-text-muted); background:var(--epp-surface-2);
  border-radius:var(--epp-radius-sm); padding:10px 12px; line-height:1.8; margin-bottom:4px;
}
.epp-empty-small { font-size:12px; color:var(--epp-text-muted); text-align:center; padding:12px 0; }

/* دکمه نمایش بیشتر/کمتر جلسات */
.epp-session-more-toggle {
  display:flex; align-items:center; justify-content:center; gap:6px;
  width:100%; background:transparent; border:1px dashed var(--epp-border);
  color:var(--epp-primary); font-size:12px; font-weight:600; font-family:inherit;
  padding:9px; border-radius:var(--epp-radius-sm); cursor:pointer; margin-bottom:16px;
  transition:background var(--epp-transition);
}
.epp-session-more-toggle:hover { background:rgba(var(--epp-primary-rgb),.06); }
.epp-session-more-toggle svg { transition:transform .25s ease; }
.epp-session-more-toggle--open svg { transform:rotate(180deg); }

/* فیلدهای رمز هم از همون الگوی مشترک استفاده می‌کنن (یکسان با پروفایل) */

/* تصویر تزئینی امن بودن حساب */
.epp-security-illustration { display:flex; align-items:center; justify-content:center; padding:16px 0 14px; }
.epp-security-illustration img { width:150px; max-width:100%; height:auto; display:block; }
.epp-security-safe-title {
  text-align:center; font-size:16px; font-weight:700; color:var(--epp-primary); margin-bottom:8px;
}
.epp-security-safe-desc {
  text-align:center; font-size:12px; color:var(--epp-text-muted); margin-bottom:22px; line-height:1.7;
  padding:0 12px;
}

/* دکمه‌های تمام‌عرض */
.epp-btn--full { width:100%; justify-content:center; }

/* دکمه غیرفعال نمایشی — خروج از همه جلسات */
.epp-btn--disabled-display,
.epp-btn--disabled-display:hover {
  opacity:.55; cursor:not-allowed; background:rgba(239,68,68,.05);
  pointer-events:none;
}

.epp-security-info { margin:14px 0; }
.epp-security-info__item {
  display:flex; align-items:center; gap:10px; padding:10px 12px;
  background:var(--epp-surface-2); border-radius:var(--epp-radius-sm);
}
.epp-security-info__icon { color:#22C55E; display:flex; }
.epp-security-info__item strong { display:block; font-size:13px; }
.epp-security-info__item span { font-size:11px; color:var(--epp-text-muted); }
.epp-password-strength { margin-top:6px; }
.epp-password-strength__bar { height:4px; background:var(--epp-border); border-radius:2px; overflow:hidden; margin-bottom:4px; }
.epp-password-strength__bar span { display:block; height:100%; width:0; border-radius:2px; transition:width .4s,background .4s; }

@media (max-width:640px) {
  .epp-section__header--security { padding:14px 16px; }
  .epp-security-header-icon { width:42px; height:42px; border-radius:12px; }
  .epp-security-header-icon svg { width:20px; height:20px; }
}

/* ═══════════════════════════════════════════════════
   NOTIFICATIONS
═══════════════════════════════════════════════════ */
.epp-notif-list { display:flex; flex-direction:column; gap:6px; }
.epp-notif-item {
  display:flex; align-items:flex-start; gap:12px; padding:13px 15px;
  background:var(--epp-surface); border:1px solid var(--epp-border);
  border-radius:var(--epp-radius); transition:background var(--epp-transition);
}
.epp-notif-item--unread { background:rgba(var(--epp-primary-rgb),.03); border-color:rgba(var(--epp-primary-rgb),.15); }
.epp-notif-item__icon { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.epp-notif-item__icon--info    { background:rgba(59,130,246,.1); color:#3B82F6; }
.epp-notif-item__icon--success { background:rgba(34,197,94,.1);  color:#22C55E; }
.epp-notif-item__icon--warning { background:rgba(245,158,11,.1); color:#F59E0B; }
.epp-notif-item__icon--error   { background:rgba(239,68,68,.1);  color:#EF4444; }
.epp-notif-item__icon--order,.epp-notif-item__icon--ticket,.epp-notif-item__icon--system { background:var(--epp-surface-2); color:var(--epp-text-muted); }
.epp-notif-item__body { flex:1; min-width:0; }
.epp-notif-item__title { display:block; font-size:13px; font-weight:600; margin-bottom:2px; }
.epp-notif-item__msg { font-size:12px; color:var(--epp-text-muted); }
.epp-notif-item__msg--rich { line-height:1.9; }
.epp-notif-item__msg--rich p { margin:0 0 8px; }
.epp-notif-item__msg--rich p:last-child { margin-bottom:0; }
.epp-notif-item__msg--rich img { max-width:100%; height:auto; border-radius:var(--epp-radius); display:block; margin:8px 0; }
.epp-notif-item__msg--rich h1,.epp-notif-item__msg--rich h2,.epp-notif-item__msg--rich h3,.epp-notif-item__msg--rich h4 { color:var(--epp-text); margin:10px 0 6px; font-weight:700; }
.epp-notif-item__msg--rich ul,.epp-notif-item__msg--rich ol { margin:6px 0; padding-inline-start:20px; }
.epp-notif-item__msg--rich a { color:var(--epp-primary); text-decoration:underline; }
.epp-notif-item__msg--rich strong { color:var(--epp-text); }
.epp-notif-item__msg--rich blockquote { margin:8px 0; padding:8px 12px; border-inline-start:3px solid var(--epp-primary); background:var(--epp-surface-2); border-radius:0 var(--epp-radius) var(--epp-radius) 0; }
.epp-notif-item__time { font-size:11px; color:var(--epp-text-muted); margin-top:4px; display:block; }
.epp-notif-item__actions { display:flex; gap:4px; flex-shrink:0; }

/* ═══════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════ */
.epp-pagination { display:flex; align-items:center; justify-content:center; gap:5px; margin-top:18px; }
.epp-pagination__btn {
  width:32px; height:32px; border:1.5px solid var(--epp-border);
  background:var(--epp-surface); color:var(--epp-text-2);
  border-radius:var(--epp-radius-sm); cursor:pointer; font-size:12px;
  font-family:inherit; transition:all var(--epp-transition);
  display:flex; align-items:center; justify-content:center;
}
.epp-pagination__btn:hover { border-color:var(--epp-primary); color:var(--epp-primary); }
.epp-pagination__btn--active { background:var(--epp-primary); color:#fff; border-color:var(--epp-primary); }

/* ═══════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════ */
.epp-empty { text-align:center; padding:28px 20px; color:var(--epp-text-muted); }
.epp-empty svg { opacity:.3; margin-bottom:10px; }
.epp-empty--large { padding:60px 30px; }
.epp-empty--large svg { width:52px; height:52px; margin-bottom:14px; }
.epp-empty--large h3 { font-size:15px; font-weight:600; color:var(--epp-text-2); margin-bottom:8px; }
.epp-empty--large .epp-btn { margin-top:14px; }

/* ═══════════════════════════════════════════════════
   ALERT
═══════════════════════════════════════════════════ */
.epp-alert { display:flex; align-items:center; gap:10px; padding:12px 16px; border-radius:var(--epp-radius-sm); font-size:13px; }
.epp-alert--info { background:rgba(59,130,246,.08); color:#2563EB; border:1px solid rgba(59,130,246,.2); }

/* ═══════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════ */
.epp-modal { display:none; position:fixed; inset:0; z-index:1000; align-items:center; justify-content:center; }
.epp-modal.epp-modal--open { display:flex; }
.epp-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.55); backdrop-filter:blur(4px); }
.epp-modal__dialog {
  position:relative; background:var(--epp-surface); border-radius:var(--epp-radius-xl);
  width:90%; max-width:620px; max-height:90vh; overflow-y:auto;
  box-shadow:var(--epp-shadow-lg); animation:epp-scale-in .2s cubic-bezier(.34,1.56,.64,1);
}
.epp-modal__close {
  position:absolute; top:12px; left:12px;
  background:var(--epp-surface-2); border:1px solid var(--epp-border);
  border-radius:50%; width:30px; height:30px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--epp-text-2); z-index:1;
}
.epp-modal__content { padding:22px; }

/* ═══════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════ */
.epp-toast-container { position:fixed; bottom:20px; left:20px; z-index:2000; display:flex; flex-direction:column; gap:7px; }
.epp-toast {
  min-width:260px; padding:11px 14px;
  background:var(--epp-surface); border:1px solid var(--epp-border);
  border-radius:var(--epp-radius); box-shadow:var(--epp-shadow-lg);
  display:flex; align-items:center; gap:9px; font-size:13px;
  animation:epp-slide-up .3s ease;
}
.epp-toast--success { border-right:3px solid #22C55E; }
.epp-toast--error   { border-right:3px solid #EF4444; }
.epp-toast--info    { border-right:3px solid #3B82F6; }
.epp-toast--warning { border-right:3px solid #F59E0B; }
.epp-toast.epp-toast--hide { animation:epp-slide-down .3s ease forwards; }

/* ═══════════════════════════════════════════════════
   INVOICE
═══════════════════════════════════════════════════ */
.epp-invoice { padding:22px; }
.epp-invoice__header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:22px; padding-bottom:14px; border-bottom:2px solid var(--epp-border); }
.epp-invoice__logo img { max-height:46px; }
.epp-invoice__title h3 { font-size:16px; font-weight:700; color:var(--epp-primary); }
.epp-invoice__title p { font-size:12px; color:var(--epp-text-muted); margin-top:3px; }
.epp-invoice__parties { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:22px; }
.epp-invoice__parties h4 { font-size:10px; font-weight:700; color:var(--epp-text-muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; }
.epp-invoice__parties p { font-size:12.5px; line-height:1.7; }
.epp-invoice__table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:22px; }
.epp-invoice__table th { background:var(--epp-primary); color:#fff; padding:9px 12px; text-align:right; font-size:11px; }
.epp-invoice__table td { padding:9px 12px; border-bottom:1px solid var(--epp-border); }
.epp-invoice__total-row td { background:var(--epp-surface-2); font-size:13px; border-top:2px solid var(--epp-border); }
.epp-invoice__footer { display:flex; align-items:center; justify-content:space-between; margin-top:14px; }
.epp-invoice__footer p { font-size:12px; color:var(--epp-text-muted); }

/* ═══════════════════════════════════════════════════
   COMING SOON / WALLET
═══════════════════════════════════════════════════ */
.epp-coming-soon { text-align:center; padding:80px 30px; }
.epp-coming-soon__icon {
  width:70px; height:70px; background:var(--epp-surface); border:1px solid var(--epp-border);
  border-radius:var(--epp-radius-xl); display:flex; align-items:center; justify-content:center;
  margin:0 auto 20px; color:var(--epp-text-muted);
}
.epp-coming-soon h2 { font-size:18px; font-weight:700; margin-bottom:8px; }
.epp-coming-soon p { color:var(--epp-text-muted); font-size:13px; margin-bottom:14px; }

/* ═══════════════════════════════════════════════════
   LOGIN REQUIRED
═══════════════════════════════════════════════════ */
.epp-login-required { display:flex; align-items:center; justify-content:center; min-height:400px; }
.epp-login-required__inner {
  text-align:center; padding:40px; background:var(--epp-surface);
  border-radius:var(--epp-radius-xl); border:1px solid var(--epp-border);
  max-width:360px; box-shadow:var(--epp-shadow);
}
.epp-login-required__inner svg { color:var(--epp-text-muted); margin-bottom:14px; }
.epp-login-required__inner h2 { font-size:17px; margin-bottom:8px; }
.epp-login-required__inner p { color:var(--epp-text-muted); font-size:13px; margin-bottom:18px; }

/* ═══════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════ */
.epp-link { background: none;
    border: none;
    cursor: pointer;
    color: var(--epp-primary);
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: none;}
.epp-link:hover { text-decoration:underline; }
.epp-text-muted { color:var(--epp-text-muted); }
.epp-text-sm { font-size:11.5px; }
.epp-dir-ltr { direction:ltr; display:inline-block; }
.epp-loading-spinner { display:flex; align-items:center; justify-content:center; padding:50px; }
.epp-loading-spinner::after {
  content:''; width:28px; height:28px;
  border:3px solid var(--epp-border); border-top-color:var(--epp-primary);
  border-radius:50%; animation:epp-spin .7s linear infinite;
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes epp-spin      { to { transform:rotate(360deg); } }
@keyframes epp-fade-in   { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
@keyframes epp-scale-in  { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
@keyframes epp-slide-up  { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
@keyframes epp-slide-down{ from { opacity:1; transform:none; } to { opacity:0; transform:translateY(14px); } }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   ORDERS TABLE — RESPONSIVE MOBILE
═══════════════════════════════════════════════════ */
@media (max-width:700px) {

  /* مخفی کردن جدول و نمایش کارت‌ها */
  .epp-orders-table-wrap { border:none; background:transparent; box-shadow:none; overflow:visible; }
  .epp-orders-table thead { display:none; }
  .epp-orders-table, .epp-orders-table tbody { display:block; width:100%; }

  .epp-orders-table tbody tr {
    display:flex !important;
    flex-direction:column !important;
    background:var(--epp-surface) !important;
    border:1px solid var(--epp-border) !important;
    border-radius:var(--epp-radius-lg) !important;
    margin-bottom:10px !important;
    padding:14px 16px !important;
    box-shadow:var(--epp-shadow-sm) !important;
    gap:0 !important;
    transition:box-shadow var(--epp-transition) !important;
  }
  .epp-orders-table tbody tr:hover {
    box-shadow:var(--epp-shadow-md) !important;
    background:var(--epp-surface) !important;
  }

  /* مخفی کردن td‌های خالی — ستون شماره سفارش رو به صورت هدر نشان بده */
  .epp-orders-table tbody td {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    padding:5px 0 !important;
    border:none !important;
    font-size:13px !important;
    direction:rtl !important;
  }
  .epp-orders-table tbody td:empty { display:none !important; }

  /* ردیف اول: شماره سفارش به عنوان هدر کارت */
  .epp-orders-table tbody td:first-child {
    padding-bottom:10px !important;
    margin-bottom:10px !important;
    border-bottom:1px solid var(--epp-border) !important;
  }
  .epp-order-id {
    font-size:14px !important;
    font-weight:700 !important;
    color:var(--epp-primary) !important;
  }

  /* label قبل از هر مقدار */
  .epp-orders-table tbody td[data-label]::before {
    content:attr(data-label);
    font-size:11px !important;
    font-weight:600 !important;
    color:var(--epp-text-muted) !important;
    flex-shrink:0 !important;
  }

  /* محصول — متن کوتاه‌تر */
  .epp-order-name {
    font-size:12.5px !important;
    max-width:180px !important;
    text-align:left !important;
  }

  /* دکمه‌های اکشن — ردیف آخر کامل عرض */
  .epp-orders-table tbody td:last-child {
    padding-top:10px !important;
    margin-top:6px !important;
    border-top:1px solid var(--epp-border) !important;
    justify-content:flex-start !important;
  }
  .epp-order-actions { gap:8px !important; }
  .epp-oact-btn { width:36px !important; height:36px !important; border-radius:10px !important; }
}

@media (max-width:1200px) {
}

@media (max-width:960px) {
  .epp-profile-layout { grid-template-columns:1fr; }
  .epp-profile__avatar-card { order:-1; }
  .epp-security-grid { grid-template-columns:1fr; }
}

@media (max-width:768px) {
  :root { --epp-sidebar-w:260px; }

  .epp-sidebar { transform:translateX(100%); box-shadow:var(--epp-shadow-lg); }
  .epp-sidebar--open { transform:translateX(0); }
  .epp-sidebar__close { width: auto;
        height: auto;display:flex; }

  .epp-main { margin-right:0; }
  .epp-topbar__hamburger { width: auto;
        height: auto; display:flex; }
  .epp-topbar__site-link { display:none; }
  .epp-topbar__brand-mobile { display:none; }

  .epp-content { padding:14px; }
  .epp-content { padding-bottom:calc(48px + env(safe-area-inset-bottom, 0px)); }

  .epp-form-row--two { grid-template-columns:1fr; }
  .epp-downloads-grid { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }

  .epp-modal__dialog { width:95%; }
  .epp-toast-container { left:10px; right:10px; bottom:12px; }
  .epp-toast { min-width:unset; }

  .epp-section__header { flex-direction:column; align-items:flex-start; }
  .epp-topbar__user-name { display:none; }
}

@media (max-width:480px) {
  .epp-downloads-grid { grid-template-columns:1fr 1fr; }
  .epp-invoice__parties { grid-template-columns:1fr; }
}

@media print {
  .epp-sidebar,.epp-topbar,.epp-no-print,.epp-toast-container { display:none !important; }
  .epp-main { margin-right:0; }
}

/* ═══════════════════════════════════════════════════
   SUBSCRIPTION / PLANS
═══════════════════════════════════════════════════ */

/* Active banner */
.epp-sub-active-banner {
  display:flex; align-items:center; gap:14px;
  background:rgba(34,197,94,.08); border:1.5px solid rgba(34,197,94,.3);
  border-radius:var(--epp-radius); padding:14px 18px; margin-bottom:20px;
}
.epp-sub-active-banner__icon { color:#22C55E; display:flex; flex-shrink:0; }
.epp-sub-active-banner__body { flex:1; }
.epp-sub-active-banner__body strong { display:block; font-size:13px; font-weight:700; color:#16A34A; margin-bottom:2px; }
.epp-sub-active-banner__body span { font-size:12px; color:var(--epp-text-muted); }

/* Plans grid */
.epp-plans-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:18px;
  margin-bottom:20px;
}

/* Plan card */
.epp-plan-card {
  background:var(--epp-surface);
  border:1.5px solid var(--epp-border);
  border-radius:var(--epp-radius-lg);
  padding:24px 20px;
  display:flex; flex-direction:column; gap:16px;
  position:relative; overflow:hidden;
  box-shadow:var(--epp-shadow-sm);
  transition:transform var(--epp-transition), box-shadow var(--epp-transition);
}
.epp-plan-card:hover {
  transform:translateY(-3px);
  box-shadow:var(--epp-shadow);
}
.epp-plan-card--featured {
  border-color:var(--epp-primary);
  box-shadow:0 0 0 3px rgba(var(--epp-primary-rgb),.12), var(--epp-shadow);
}
.epp-plan-card--featured::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--epp-primary), #A855F7);
}
.epp-plan-card--active {
  border-color:#22C55E;
  box-shadow:0 0 0 3px rgba(34,197,94,.12);
}

/* Ribbon */
.epp-plan-card__ribbon {
  position:absolute; top:14px; left:-28px;
  background:var(--epp-primary); color:#fff;
  font-size:10px; font-weight:700; padding:4px 36px;
  transform:rotate(-45deg);
  box-shadow:0 2px 8px rgba(var(--epp-primary-rgb),.4);
  letter-spacing:.5px;
}
.epp-plan-card__ribbon--active { background:#22C55E; }

/* Plan head */
.epp-plan-card__head {}
.epp-plan-card__level {
  display:flex; align-items:center; gap:5px;
  font-size:11px; font-weight:700; margin-bottom:8px; text-transform:uppercase; letter-spacing:.5px;
}
.epp-plan-card__name { font-size:16px; font-weight:700; margin-bottom:6px; }
.epp-plan-card__desc { font-size:12px; color:var(--epp-text-muted); line-height:1.5; }

/* Price */
.epp-plan-card__price {}
.epp-plan-price { display:flex; align-items:baseline; gap:4px; }
.epp-plan-price__amount { font-size:24px; font-weight:800; color:var(--epp-primary); }
.epp-plan-price__period { font-size:12px; color:var(--epp-text-muted); }

/* Features */
.epp-plan-features { list-style:none; display:flex; flex-direction:column; gap:8px; flex:1; }
.epp-plan-features li {
  display:flex; align-items:center; gap:8px;
  font-size:12.5px; color:var(--epp-text-2);
}
.epp-plan-features li svg { color:#22C55E; flex-shrink:0; }
.epp-plan-content { font-size:12.5px; color:var(--epp-text-2); line-height:1.7; flex:1; }
.epp-plan-content p { margin-bottom:6px; }

/* Action */
.epp-plan-card__action { display:flex; flex-direction:column; gap:8px; margin-top:auto; }
.epp-btn--featured {
  background:linear-gradient(135deg, var(--epp-primary) 0%, #A855F7 100%) !important;
  border:none !important;
  box-shadow:0 4px 14px rgba(var(--epp-primary-rgb),.4) !important;
}
.epp-plan-detail-link {
  display:flex; align-items:center; justify-content:center; gap:4px;
  font-size:12px; color:var(--epp-text-muted); text-decoration:none;
  transition:color var(--epp-transition);
}
.epp-plan-detail-link:hover { color:var(--epp-primary); }

/* Sub note */
.epp-sub-note {
  display:flex; align-items:center; gap:10px;
  background:var(--epp-surface-2); border:1px solid var(--epp-border);
  border-radius:var(--epp-radius); padding:14px 16px;
  font-size:13px; color:var(--epp-text-muted); flex-wrap:wrap;
}
.epp-sub-note svg { flex-shrink:0; color:var(--epp-primary); }
.epp-sub-note p { flex:1; margin:0; }

/* Empty state */
.epp-sub-empty {
  text-align:center; padding:80px 30px;
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
.epp-sub-empty__icon {
  width:72px; height:72px; border-radius:var(--epp-radius-xl);
  background:rgba(var(--epp-primary-rgb),.08); border:1px solid var(--epp-border);
  display:flex; align-items:center; justify-content:center; color:var(--epp-primary);
}
.epp-sub-empty h2 { font-size:18px; font-weight:700; }
.epp-sub-empty p { color:var(--epp-text-muted); font-size:13px; max-width:360px; }

/* Responsive */
@media (max-width:768px) {
  .epp-plans-grid { grid-template-columns:1fr 1fr; }
  .epp-sub-active-banner { flex-direction:column; align-items:flex-start; }
}
@media (max-width:480px) {
  .epp-plans-grid { grid-template-columns:1fr; }
}









.epp-textarea{
    display:block;
    width:100%;
    margin-bottom:15px;
}

.epp-form-actions{
    display:flex !important;
    flex-direction:row;
    gap:10px;
    width:100%;
    clear:both;
    margin-top:15px;
}











/* ═══════════════════════════════════════════════════════════
   دانلودهای من — نمای افقی جدید (v3)
   ═══════════════════════════════════════════════════════════ */


/* ── Toolbar: کارت با بکگراند، جستجو چپ، سورت راست ──────── */
.epp-dl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--epp-surface);
  border: 1px solid var(--epp-border);
  border-radius: var(--epp-radius-lg);
  padding: 12px 16px;
  direction: rtl;
}
/* جستجو — سمت چپ در RTL */
.epp-dl-toolbar .epp-search {
  position: relative;
  flex: 1;
  max-width: 280px;
  order: 2;
}
.epp-dl-toolbar .epp-search__icon {
    position: absolute;
    right: 90%;
    top: 42%;
    transform: translateY(-50%);
    color: var(--epp-text-muted);
    display: flex;
    pointer-events: none;
}
.epp-dl-toolbar .epp-search__icon svg { width: 16px; height: 16px; }
.epp-dl-toolbar .epp-search__input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--epp-border);
  border-radius: var(--epp-radius);
  background: var(--epp-surface-2);
  font-size: 12.5px;
  color: var(--epp-text);
  font-family: inherit;
  direction: rtl;
  transition: border-color var(--epp-transition);
  box-sizing: border-box;
}
.epp-dl-toolbar .epp-search__input:focus {
  outline: none;
  border-color: var(--epp-primary);
}
.epp-dl-toolbar .epp-search__input::placeholder { color: var(--epp-text-muted); }

/* سورت — سمت راست در RTL */
.epp-dl-sort {
  position: relative;
  display: flex;
  align-items: center;
  order: 1;
}
.epp-dl-sort__select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--epp-surface-2);
  border: 1px solid var(--epp-border);
  border-radius: var(--epp-radius);
  padding: 7px 36px 7px 12px;
  font-size: 12.5px;
  color: var(--epp-text);
  cursor: pointer;
  font-family: inherit;
  direction: rtl;
  min-width: 120px;
  transition: border-color var(--epp-transition);
}
.epp-dl-sort__select:focus { outline: none; border-color: var(--epp-primary); }
.epp-dl-sort__icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--epp-text-muted);
  pointer-events: none;
  display: flex;
}

/* ── گرید دو ستونه ───────────────────────────────────────── */
.epp-dl-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

/* ── کارت افقی (عکس راست، متن وسط، دکمه چپ) ─────────────── */
.epp-dl-row {
  display: flex;
  align-items: stretch;
  background: var(--epp-surface);
  border: 1px solid var(--epp-border);
  border-radius: var(--epp-radius-lg);
  overflow: hidden;
  box-shadow: var(--epp-shadow-sm);
  transition: box-shadow var(--epp-transition), transform var(--epp-transition);
  direction: rtl;
  min-height: 110px;
}
.epp-dl-row:hover {
  box-shadow: var(--epp-shadow);
  transform: translateY(-1px);
}

/* تصویر — سمت راست */
.epp-dl-row__thumb {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  overflow: hidden;
  background: var(--epp-surface-2);
  order: 1;
}
.epp-dl-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.epp-dl-row:hover .epp-dl-row__thumb img { transform: scale(1.04); }
.epp-dl-row__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--epp-text-muted);
  opacity: .35;
}

/* بدج دسته‌بندی روی عکس */
.epp-dl-row__badge {
    right: 3px;
    backdrop-filter: blur(4px);
    padding: 3px 9px;
    z-index: 2;
    white-space: nowrap;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    top: 12px;
    background: none;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding-right: 5px;
    padding-left: 5px;
    padding-top: 0px;
    padding-bottom: 0px;
    border-radius: 5px;
}

/* اطلاعات متنی — وسط */
.epp-dl-row__info {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.epp-dl-row__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--epp-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.epp-dl-row__author {
  font-size: 11.5px;
  color: var(--epp-text-muted);
  margin-bottom: 10px;
}
.epp-dl-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.epp-dl-row__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--epp-text-muted);
}
.epp-dl-row__meta-item svg { flex-shrink: 0; opacity: .65; }

/* دکمه‌های عمل — سمت چپ */
.epp-dl-row__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 14px;
  flex-shrink: 0;
  order: 3;
  border-right: 1px solid var(--epp-border);
}
.epp-dl-row__btn-download {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap;
  font-size: 12.5px !important;
  padding: 8px 16px !important;
  border-radius: var(--epp-radius) !important;
}
.epp-dl-row__btn-download svg { width: 15px; height: 15px; }

/* دکمه سه‌نقطه */
.epp-dl-row__more-wrap {position: relative;display: none;}
.epp-dl-row__more {
 display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #607D8B;
    color: #ffffff;
    cursor: pointer;
    transition: border-color var(--epp-transition), color var(--epp-transition), background var(--epp-transition);

}
.epp-dl-row__more:hover {
  border-color: var(--epp-primary);
  color: var(--epp-primary);
  background: rgba(var(--epp-primary-rgb), .06);
}

/* منوی کشویی سه‌نقطه */
.epp-dl-dropdown {
  position: fixed;
  background: var(--epp-surface);
  border: 1px solid var(--epp-border);
  border-radius: var(--epp-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  min-width: 170px;
  z-index: 99999;
  overflow: hidden;
  display: none;
  direction: rtl;
}
.epp-dl-dropdown.epp-dl-dropdown--open { display: block; }
.epp-dl-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--epp-text);
  cursor: pointer;
  transition: background var(--epp-transition);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  text-align: right;
}
.epp-dl-dropdown__item:hover { background: var(--epp-surface-2); color: var(--epp-primary); }
.epp-dl-dropdown__item svg { opacity: .65; flex-shrink: 0; }
.epp-dl-dropdown__item--danger { color: #EF4444; }
.epp-dl-dropdown__item--danger:hover { background: rgba(239,68,68,.07); color: #EF4444; }
.epp-dl-dropdown__sep { height: 1px; background: var(--epp-border); margin: 3px 0; }

.epp-dl-row__multi {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ── Pagination پیشرفته ──────────────────────────────────── */
.epp-dl-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  background: var(--epp-surface);
  border: 1px solid var(--epp-border);
  border-radius: var(--epp-radius-lg);
  padding: 12px 16px;
  direction: rtl;
}
/* نمایش X تا Y از Z — سمت راست */
.epp-dl-pagination-info {
  font-size: 12px;
  color: var(--epp-text-muted);
  order: 1;
}
.epp-dl-pagination-info strong { color: var(--epp-text); }

/* دکمه‌های صفحه — وسط */
.epp-pagination--dl {
  display: flex;
  align-items: center;
  gap: 4px;
  order: 2;
}
.epp-pagination__btn--nav {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--epp-radius);
  background: var(--epp-surface);
  border: 1px solid var(--epp-border);
  color: var(--epp-text-muted);
  cursor: pointer;
  transition: all var(--epp-transition);
  padding: 0;
}
.epp-pagination__btn--nav:hover:not(:disabled) {
  border-color: var(--epp-primary);
  color: var(--epp-primary);
}
.epp-pagination__btn--disabled { opacity: .4; cursor: default; }

/* نمایش X مورد در هر صفحه — سمت چپ */
.epp-dl-perpage {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--epp-text-muted);
  order: 3;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.epp-dl-perpage__select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--epp-surface-2);
  border: 1px solid var(--epp-border);
  border-radius: var(--epp-radius);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--epp-text);
  cursor: pointer;
  font-family: inherit;
  direction: rtl;
  min-width: 54px;
  text-align: center;
}
.epp-dl-perpage__select:focus { outline: none; border-color: var(--epp-primary); }

/* ── Footer Features ─────────────────────────────────────── */
.epp-dl-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.epp-dl-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--epp-surface);
  border: 1px solid var(--epp-border);
  border-radius: var(--epp-radius-lg);
  padding: 16px 18px;
  direction: rtl;
}
.epp-dl-feature__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.epp-dl-feature__icon--blue   { background: rgba(59,130,246,.12);  color: #3B82F6; }
.epp-dl-feature__icon--green  { background: rgba(34,197,94,.12);   color: #16A34A; }
.epp-dl-feature__icon--purple { background: rgba(139,92,246,.12);  color: #7C3AED; }
.epp-dl-feature__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--epp-text);
  margin-bottom: 3px;
}
.epp-dl-feature__desc {
  font-size: 11.5px;
  color: var(--epp-text-muted);
  line-height: 1.5;
}
/* ══════════════════════════════════════════════════════════
   ریسپانسیو دانلودها
   ══════════════════════════════════════════════════════════ */

/* ── تبلت بزرگ (< 1100px): یک ستون ─────────────────────── */
@media (max-width: 1100px) {
  .epp-dl-list { grid-template-columns: 1fr; }
  .epp-dl-row__thumb { width: 155px; }
}

/* ── تبلت کوچک (< 768px) ─────────────────────────────────── */
@media (max-width: 768px) {
  .epp-dl-features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .epp-dl-row__thumb { width: 130px; }
  .epp-dl-row__title { font-size: 13px; }
  .epp-dl-row__btn-download { padding: 8px 12px !important; font-size: 12.5px !important; }
  .epp-dl-toolbar { padding: 10px 12px; }
}

/* ══════════════════════════════════════════════════════════
   موبایل (< 540px)
   کارت عمودی: عکس بالا (تمام عرض) | متن وسط | دکمه پایین
   ══════════════════════════════════════════════════════════ */
@media (max-width: 540px) {

  /* ── یک ستون ─────────────────────────────────────────── */
  .epp-dl-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* حذف افکت هاور روی موبایل (باعث گیر کردن افکت بعد از لمس می‌شد) و افزودن حالت فشرده‌شدن لمسی */
  .epp-dl-row:hover { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
  .epp-dl-row:hover .epp-dl-row__thumb img { transform: none; }
  .epp-dl-row:active { transform: scale(0.985); transition: transform .12s ease; }
  .epp-dl-row__btn-download:active { transform: scale(0.96); }
  .epp-dl-row__more:active { transform: scale(0.92); }

  /* ── Toolbar ─────────────────────────────────────────── */
  .epp-dl-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
  }
  .epp-dl-toolbar .epp-search { max-width: 100%; order: 1; width: 100%; }
  .epp-dl-sort { order: 2; width: 100%; }
  .epp-dl-sort__select { width: 100%; }

  /* ══════════════════════════════════════════════════════
     کارت عمودی موبایل:
     [ عکس تمام‌عرض + badge ]
     [ عنوان + نویسنده + متا ]
     [ سه‌نقطه | دکمه دانلود ]
     ══════════════════════════════════════════════════════ */
  /* ══════════════════════════════════════════════════════
     چیدمان: ردیف بالا = عکس (چپ) + اطلاعات (راست)
             ردیف پایین = دکمه‌ها (تمام‌عرض)
     ══════════════════════════════════════════════════════ */
  .epp-dl-row {
    display: grid;
    grid-template-columns: 1fr 132px; /* ستون ۱ (راست): اطلاعات، ستون ۲ (چپ): عکس */
    grid-template-rows: auto auto;
    align-items: stretch;
    min-height: unset;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--epp-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    background: var(--epp-surface);
  }

  /* ── عکس — سمت چپ، مربعی ─────────────────────────────── */
  .epp-dl-row__thumb {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 150px;
    overflow: hidden;
    background: #141414;
  }
  .epp-dl-row__thumb img {
    position: absolute;
        border-radius: 30px;
        background: #141414;
        position: absolute;
        inset: 0;
        width: auto;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        transition: transform 0.4s ease;
  }
  .epp-dl-row:hover .epp-dl-row__thumb img { transform: scale(1.04); }
  .epp-dl-row__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* بدج — گوشه بالا-چپ کارت (روی عکس) */
  .epp-dl-row__badge {
        position: absolute;
        top: 10px;
        left: 10px;
        right: auto;
        z-index: 3;
        font-size: 10.5px;
        padding: 4px 9px;
        border-radius: 8px;
        font-weight: 700;
        background: #75757529;
        color: #fff;
        white-space: nowrap;
        max-width: calc(100% - 20px);
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        display: flex;
        align-items: center;
        gap: 4px;
  }

  /* ── اطلاعات — سمت راست ──────────────────────────────── */
  .epp-dl-row__info {
        grid-column: 1;
        grid-row: 1;
        padding: 14px 16px 12px;
        display: flex;
        flex-direction: column;
        gap: 0;
        min-width: 0;
        box-sizing: border-box;
        background: #141414;
        border-right: none;
  }
  .epp-dl-row__title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.5;
    white-space: normal;
    margin-bottom: 6px;
    color: #ffffff;
  }
  .epp-dl-row__author {
    font-size: 12px;
    color: var(--epp-primary);
    font-weight: 600;
    margin-bottom: 10px;
  }
  /* ترتیب نمایش برعکس DOM → تاریخ، حجم، فرمت (بالا به پایین) */
  .epp-dl-row__meta {
    display: flex;
    flex-direction: column-reverse;
    gap: 7px;
    align-items: flex-end;
  }
  .epp-dl-row__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--epp-text-muted);
    background: transparent;
    padding: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .epp-dl-row__meta-item svg { width: 13px; height: 13px; opacity: .65; flex-shrink: 0; }

  /* ── دکمه‌ها — ردیف پایین، تمام‌عرض ───────────────────── */
  .epp-dl-row__actions {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-top: 1px dashed #263238;
        border-right: none;
        background: #141414;
        box-sizing: border-box;
        width: 100%;
  }
  .epp-dl-row__btn-download {
        flex: 1 !important;
        justify-content: center !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        padding: 5px !important;
        border-radius: 10px !important;
        gap: 8px !important;
  }
  .epp-dl-row__btn-download svg { width: 17px !important; height: 17px !important; }
  .epp-dl-row__more-wrap { flex-shrink: 0; }
  .epp-dl-row__more {
width: 35px !important;
        height: 38px !important;
        border-radius: 18% !important;
        border: 1.5px solid var(--epp-border) !important;
        background: var(--epp-surface-2) !important;
        color: var(--epp-text-2) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0;
  }

  /* ── Pagination ──────────────────────────────────────── */
  .epp-dl-pagination-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
  }
  .epp-dl-pagination-info { text-align: center; order: 1; font-size: 11px; }
  .epp-pagination--dl { justify-content: center; order: 2; }
  .epp-dl-perpage { justify-content: center; order: 3; }

  /* ── Features ────────────────────────────────────────── */
  .epp-dl-features { grid-template-columns: 1fr; gap: 8px; }
  .epp-dl-feature { padding: 12px 14px; gap: 10px; border-radius: 12px; }
  .epp-dl-feature__icon { width: 38px; height: 38px; border-radius: 10px; }
  .epp-dl-feature__title { font-size: 12.5px; }
  .epp-dl-feature__desc  { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════
 * Smart Membership Integration Styles
 * ═══════════════════════════════════════════════════ */

/* کارت اشتراک فعال */
/* ══════════════════════════════════
   اشتراک هوشمند — طراحی فشرده (v2)
══════════════════════════════════ */
.epp-sm2-actionbar{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;background:var(--epp-surface);border:1px solid var(--epp-border);border-radius:14px;padding:16px 18px;margin-bottom:24px}
.epp-sm2-actionbar__buttons{display:flex;flex-direction:row-reverse;align-items:center;gap:10px;flex-wrap:wrap;flex:1;min-width:0}
.epp-sm2-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:172px;box-sizing:border-box;padding:10px 12px;border-radius:9px;font-size:12.8px;font-weight:700;border:none;cursor:pointer;text-decoration:none;white-space:nowrap;flex-shrink:0;transition:transform .15s,box-shadow .15s;padding: 2px 2px 2px 2px;}
.epp-sm2-btn:hover{transform:translateY(-1px)}
.epp-sm2-btn--dark{background:#1F2937;color:#fff;box-shadow:0 3px 10px rgba(31,41,55,.3)}
.epp-sm2-btn--dark:hover{background:#111827;color:#fff}
.epp-sm2-btn--outline{background:#fff;color:#DC2626;border:1.5px solid #FCA5A5}
.epp-sm2-btn--outline:hover{background:#FEF2F2;color:#DC2626}
.epp-sm2-btn--light{background:var(--epp-bg);color:var(--epp-text);border:1.5px solid var(--epp-border)}
.epp-sm2-btn--light:hover{background:var(--epp-border);color:var(--epp-text)}

.epp-sm2-warning{display:flex;align-items:center;gap:12px;background:#FFFBEB;border:1px solid #FDE68A;border-radius:10px;padding:10px 16px;max-width:420px}
.epp-sm2-warning__icon{display:flex;width:34px;height:34px;flex-shrink:0;align-items:center;justify-content:center;background:#FEF3C7;border-radius:50%;color:#92400E}
.epp-sm2-warning__text strong{display:block;font-size:13.5px;color:#78350F;margin-bottom:2px}
.epp-sm2-warning__text p{margin:0;font-size:12px;color:#92400E}

.epp-sm2-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13.5px;color:var(--epp-text-muted);background:var(--epp-bg);border:1px solid var(--epp-border);border-radius:10px;padding:10px 16px}
.epp-sm2-status__dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;animation:epp-pulse 1.5s infinite}
.epp-sm2-status strong{color:var(--epp-text)}
.epp-sm2-status__expiry{display:inline-flex;align-items:center;gap:4px;color:#D97706;font-weight:600;margin-right:auto}

.epp-sm2-no-sub{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:60px 20px;color:var(--epp-text-muted)}
.epp-sm2-no-sub__icon{width:64px;height:64px;display:flex;align-items:center;justify-content:center;background:var(--epp-bg);border-radius:50%;margin-bottom:16px;color:var(--epp-text-muted)}
.epp-sm2-no-sub h3{margin:0 0 6px;font-size:17px;color:var(--epp-text)}
.epp-sm2-no-sub p{margin:0;font-size:13.5px}

.epp-sm2-section-title{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:var(--epp-text);margin:0 0 14px;padding-top: 16px;}

.epp-sm2-plans{margin-bottom:28px}
.epp-sm2-plans-grid{display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: #81C784;
    border: 1px solid var(--epp-border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;}

.epp-sm2-plan{position:relative;background:var(--epp-surface);border:1.5px solid var(--epp-border);border-radius:14px;padding:20px 18px;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s;flex:1 1 200px;max-width:260px}
.epp-sm2-plan-promo{border-radius:14px;overflow:hidden;display:flex;align-items:flex-end;justify-content:flex-end;flex:2 1 280px;min-width:280px}
.epp-sm2-plan-promo img{width:570px;height:380px;object-fit:contain;display:block}
.epp-sm2-plan:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.06)}
.epp-sm2-plan--active{border-color:#FDBA74;background:linear-gradient(180deg,#FFF7ED,var(--epp-surface) 40%)}
.epp-sm2-plan--top{border-color:#FCD34D;box-shadow:0 4px 16px rgba(245,158,11,.15)}

.epp-sm2-plan__badge{position:absolute;top:14px;left:14px;font-size:11px;font-weight:800;padding:3px 11px;border-radius:999px;background:var(--epp-bg);color:var(--epp-text-muted)}
.epp-sm2-plan__badge--active{background:#FFEDD5;color:#C2410C}
.epp-sm2-plan__badge--featured{background:#EDE9FE;color:#6D28D9}
.epp-sm2-plan__badge--top{background:linear-gradient(135deg,#FDE68A,#F59E0B);color:#78350F}

.epp-sm2-plan__name{margin:6px 0 4px;font-size:16px;font-weight:800}
.epp-sm2-plan__price{font-size:22px;font-weight:800;color:var(--epp-text);margin-bottom:16px}
.epp-sm2-plan__price small{font-size:12px;font-weight:600;color:var(--epp-text-muted);margin-right:4px}

.epp-sm2-plan__features{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:9px;flex:1}
.epp-sm2-plan__features li{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--epp-text-muted)}
.epp-sm2-plan__features li svg{width:14px;height:14px;color:#10B981;flex-shrink:0}
.epp-sm2-plan__features-highlight{color:var(--epp-text) !important;font-weight:700}

.epp-sm2-plan__btn{width:100%;box-sizing:border-box;padding:11px 16px;border-radius:9px;border:none;font-size:13.5px;font-weight:700;cursor:pointer;transition:transform .15s,box-shadow .15s;line-height: 10px;}
.epp-sm2-plan__btn:hover{transform:translateY(-1px)}
.epp-sm2-plan__btn--dark{background:#1F2937;color:#fff}
.epp-sm2-plan__btn--dark:hover{background:#111827}
.epp-sm2-plan__btn--top{background:linear-gradient(135deg,#FDE68A,#F59E0B);color:#78350F;box-shadow:0 4px 14px rgba(245,158,11,.35)}
.epp-sm2-plan__btn--current{background:var(--epp-bg);color:var(--epp-text-muted);cursor:not-allowed}

.epp-sm2-history{margin-top:8px}

@media (max-width:640px){
  .epp-sm2-actionbar{flex-direction:column;align-items:stretch}
  .epp-sm2-actionbar__buttons{justify-content:stretch}
  .epp-sm2-btn{flex:1;justify-content:center}
  .epp-sm2-plan, .epp-sm2-plan-promo{flex-basis:100%;max-width:100%}
  .epp-sm2-plan-promo{order:-1}
  .epp-sm2-plan-promo img{width:100%;height:auto;max-width:100%}
}

.epp-sm-active-card{background:var(--epp-surface);border-radius:16px;border:1px solid var(--epp-border);padding:24px;margin-bottom:28px;box-shadow:var(--epp-shadow-sm)}
.epp-sm-card-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.epp-sm-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 16px;border-radius:999px;color:#fff;font-weight:700;font-size:14px}
.epp-sm-status-dot{width:8px;height:8px;border-radius:50%;background:#fff;opacity:.8;animation:epp-pulse 1.5s infinite}
@keyframes epp-pulse{0%,100%{opacity:.8}50%{opacity:.3}}
.epp-sm-expiry-warn{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;background:#fef3c7;color:#92400e;border-radius:8px;font-size:13px;font-weight:600}

/* آمار */
.epp-sm-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
@media(max-width:600px){.epp-sm-stats-grid{grid-template-columns:repeat(2,1fr)}}
.epp-sm-stat{text-align:center;background:var(--epp-bg);border-radius:12px;padding:16px 8px}
.epp-sm-stat__value{display:block;font-size:22px;font-weight:800;color:var(--epp-text);line-height:1.2}
.epp-sm-stat__value.epp-sm-warn{color:#f59e0b}
.epp-sm-stat__label{display:block;font-size:11px;color:var(--epp-text-muted);margin-top:4px}

/* نوار پیشرفت */
.epp-sm-progress-section{margin-bottom:20px}
.epp-sm-progress-label{display:flex;justify-content:space-between;font-size:12px;color:var(--epp-text-muted);margin-bottom:6px}
.epp-sm-progress-bar{height:8px;background:var(--epp-border);border-radius:999px;overflow:hidden}
.epp-sm-progress-fill{height:100%;border-radius:999px;transition:width .4s}
.epp-sm-progress-fill--warn{background:#f59e0b!important}
.epp-sm-limit-msg{display:flex;align-items:center;gap:6px;color:#ef4444;font-size:12px;margin-top:8px}

/* دکمه‌های عملیات */
.epp-sm-card-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--epp-border)}
.epp-btn--danger{background:transparent;border:1px solid #ef4444;color:#ef4444}
.epp-btn--danger:hover{background:#fef2f2}

/* بدون اشتراک */
.epp-sm-no-sub{text-align:center;padding:40px 20px;color:var(--epp-text-muted)}
.epp-sm-no-sub svg{width:48px;height:48px;opacity:.3;margin-bottom:16px}
.epp-sm-no-sub h3{font-size:18px;color:var(--epp-text);margin-bottom:8px}

/* پلن‌ها */
.epp-sm-plans-section{margin-bottom:28px}
.epp-sm-plans-title{font-size:16px;font-weight:700;color:var(--epp-text);margin-bottom:16px;padding-bottom:8px;border-bottom:2px solid var(--epp-border)}
.epp-sm-plans-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.epp-sm-plan-card{position:relative;background:var(--epp-surface);border:2px solid var(--epp-border);border-radius:16px;overflow:hidden;transition:transform .2s,box-shadow .2s}
.epp-sm-plan-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.1)}
.epp-sm-plan-card--featured{border-color:var(--plan-color)}
.epp-sm-plan-card--active{border-color:var(--plan-color);background:color-mix(in srgb,var(--plan-color) 5%,var(--epp-surface))}
.epp-sm-plan-ribbon{position:absolute;top:12px;left:12px;background:var(--plan-color,#6c63ff);color:#fff;font-size:11px;font-weight:700;padding:3px 10px;border-radius:999px}
.epp-sm-plan-ribbon--active{background:#22c55e}
.epp-sm-plan-head{padding:20px 16px 12px}
.epp-sm-plan-head h3{font-size:18px;font-weight:800;margin-bottom:8px}
.epp-sm-plan-price{display:flex;align-items:baseline;gap:3px}
.epp-sm-plan-price__amount{font-size:22px;font-weight:800;color:var(--epp-text)}
.epp-sm-plan-price__unit{font-size:12px;color:var(--epp-text-muted)}
.epp-sm-plan-features{list-style:none;padding:0 16px 12px;margin:0}
.epp-sm-plan-features li{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--epp-text-muted);padding:4px 0;border-bottom:1px solid var(--epp-border)}
.epp-sm-plan-features li:last-child{border-bottom:none}
.epp-sm-plan-features svg{flex-shrink:0;color:#22c55e}
.epp-sm-plan-action{padding:12px 16px 16px}
.epp-btn--featured{box-shadow:0 4px 12px rgba(0,0,0,.2)}

/* تاریخچه */
.epp-sm-history{margin-top:24px}
.epp-sm-history h3{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:700;margin-bottom:12px}
.epp-sm-color-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-left:6px;vertical-align:middle}
.epp-badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600}
.epp-badge--success{background:#dcfce7;color:#166534}
.epp-badge--danger{background:#fee2e2;color:#991b1b}
.epp-badge--warning{background:#fef3c7;color:#92400e}
.epp-badge--info{background:#dbeafe;color:#1e40af}

/* مودال */
.epp-sm-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:99999;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px)}
.epp-sm-modal{background:var(--epp-surface,#fff);border-radius:20px;padding:36px 32px;max-width:440px;width:calc(100% - 32px);text-align:center;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.3);animation:epp-modal-in .25s ease}
@keyframes epp-modal-in{from{opacity:0;transform:scale(.9) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}
.epp-sm-modal-close{position:absolute;top:12px;left:12px;background:none;border:none;font-size:18px;cursor:pointer;color:var(--epp-text-muted);width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.epp-sm-modal-close:hover{background:var(--epp-bg)}
.epp-sm-modal-icon{font-size:40px;margin-bottom:12px}
.epp-sm-modal h3{font-size:18px;font-weight:700;margin-bottom:10px}
.epp-sm-modal p{color:var(--epp-text-muted);margin-bottom:20px;font-size:14px;line-height:1.7}
.epp-sm-modal-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:12px}
#epp-sm-modal-result{min-height:20px;font-size:13px;margin-top:8px}

/* بنر دانلود */
.epp-sm-dl-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:var(--epp-surface);border:1px solid var(--epp-border);border-radius:12px;padding:14px 16px;margin-bottom:16px;font-size:13px}
.epp-sm-dl-banner--locked{background:#fef3c7;border-color:#fcd34d}
.epp-sm-dl-banner--no-sub{background:var(--epp-bg);color:var(--epp-text-muted)}
.epp-sm-dl-banner__info{display:flex;flex-direction:column;gap:4px}
.epp-sm-dl-banner__plan{font-weight:700;font-size:14px}
.epp-sm-dl-banner__count{color:var(--epp-text-muted)}
.epp-sm-dl-banner__locked{display:flex;align-items:center;gap:10px;color:#92400e;font-weight:600}
.epp-sm-dl-banner__bar{flex:1;min-width:120px;max-width:200px}
.epp-sm-dl-bar-inner{height:6px;background:var(--epp-border);border-radius:999px;overflow:hidden}
.epp-sm-dl-bar-fill{height:100%;border-radius:999px;transition:width .4s}

/* باکس مجزای دانلودهای اشتراک هوشمند */
.epp-sm-owned-box{background:var(--epp-surface);border:1px solid var(--epp-border);border-radius:16px;padding:20px;margin-top:24px}
.epp-sm-owned-box--no-sub{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:var(--epp-bg);color:var(--epp-text-muted);font-size:13px}
.epp-sm-owned-box__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.epp-sm-owned-box__title-wrap{display:flex;flex-direction:column;gap:4px}
.epp-sm-owned-box__title{font-weight:700;font-size:15px}
.epp-sm-owned-box__quota{color:var(--epp-text-muted);font-size:13px}
.epp-sm-owned-box__bar{height:6px;background:var(--epp-border);border-radius:999px;overflow:hidden;margin-bottom:16px}
.epp-sm-owned-box__bar-fill{height:100%;border-radius:999px;transition:width .4s}
.epp-sm-owned-box__empty{color:var(--epp-text-muted);font-size:13px;text-align:center;padding:20px 10px}
.epp-sm-owned-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.epp-sm-owned-item{display:flex;align-items:center;gap:10px;background:var(--epp-bg);border:1px solid var(--epp-border);border-radius:10px;padding:8px 10px}
.epp-sm-owned-item img{width:38px;height:38px;object-fit:cover;border-radius:6px;flex-shrink:0}
.epp-sm-owned-item__title{flex:1;font-size:12.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media (max-width:600px){
  .epp-sm-owned-box{padding:16px}
  .epp-sm-owned-list{grid-template-columns:1fr}
}

/* نوتیس‌های پرداخت */
.epp-sm-dl-notice{display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:12px;margin-bottom:16px;font-size:13px}
.epp-sm-dl-notice--success{background:#dcfce7;border:1px solid #86efac;color:#166534}
.epp-sm-dl-notice--error{background:#fee2e2;border:1px solid #fca5a5;color:#991b1b}
.epp-sm-dl-notice span{font-size:22px;flex-shrink:0}
.epp-sm-dl-notice a{margin-right:8px;font-weight:700;text-decoration:underline}

/* کتابخانه‌ی اشتراک — لیست رمان‌های قابل‌دانلود با پلن فعلی */
.epp-sm2-library{background:var(--epp-surface);border:1px solid var(--epp-border);border-radius:16px;padding:20px;margin-top:24px}
.epp-sm2-library__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.epp-sm2-library__header-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.epp-sm-lib-remaining{font-size:12.5px;color:var(--epp-text-muted);white-space:nowrap;background:var(--epp-bg);border:1px solid var(--epp-border);border-radius:999px;padding:5px 12px}
.epp-sm-lib-remaining strong{color:var(--epp-primary,#2563eb)}
.epp-sm2-library__search{max-width:260px}
.epp-sm-lib-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:14px}
.epp-sm-lib-card{background:var(--epp-bg);border:1px solid var(--epp-border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.epp-sm-lib-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08)}
.epp-sm-lib-card--locked{opacity:.55}
.epp-sm-lib-card__thumb{width: auto;
    height: 120px;position:relative;display:block;aspect-ratio:3/4;background:var(--epp-border);overflow:hidden}
.epp-sm-lib-card__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.epp-sm-lib-card__thumb-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--epp-text-muted)}
.epp-sm-lib-card__badge{position: absolute;
    top: 8px;
    left: 8px;
    background: #E91E63;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 5px;}
.epp-sm-lib-card__body{padding:10px;display:flex;flex-direction:column;gap:8px;flex:1}
.epp-sm-lib-card__title{font-size:12.5px;font-weight:700;color:var(--epp-text);line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-decoration:none;text-align: center;}
.epp-sm-lib-card__btn{margin-top:auto;justify-content:center;width:100%}
.epp-sm-lib-pagination-wrap{margin-top:18px;text-align: center;}

@media (max-width:1400px){
  .epp-sm-lib-grid{grid-template-columns:repeat(6,1fr)}
}
@media (max-width:1000px){
  .epp-sm-lib-grid{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:700px){
  .epp-sm-lib-grid{grid-template-columns:repeat(3,1fr)}
}

@media (max-width:600px){
  .epp-sm2-library{padding:16px}
  .epp-sm2-library__search{max-width:100%;width:100%}
  .epp-sm-lib-grid{grid-template-columns:repeat(2,1fr);gap:10px}
}

/* اسپینر */
.epp-spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:epp-spin .6s linear infinite;vertical-align:middle;margin-left:6px}
@keyframes epp-spin{to{transform:rotate(360deg)}}



 

@media (max-width:640px){

/* کارت */
.epp-tkt-table tr{
    display:block;
    background:#fff;
    border:1px solid #bfbfbf;
    border-radius:20px;
    overflow:hidden;
    padding:0 !important;
}

/* هر آیتم */
.epp-tkt-table td{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 20px;
    border:none !important;
}

/* فقط بین td ها خط */
.epp-tkt-table td + td{
    border-top:1px dashed #bfbfbf !important;
}

/* آخرین td هم مثل بقیه */
.epp-tkt-table td:last-child{
    border-bottom:none;
}

}