/* ===== Senpay Help Center / Tickets – unified CSS ===== */

html, body { background:#020617 !important; }

.shpw-shell{ width:100%; color:#e5e7eb; }
.shpw-shell .shpw-page{
  max-width:1180px;
  margin:0 auto;
  padding:32px 18px 90px;
}

.shpw-shell p,
.shpw-shell li,
.shpw-shell label,
.shpw-shell span,
.shpw-shell div,
.shpw-shell h1,.shpw-shell h2,.shpw-shell h3,.shpw-shell h4{ color:inherit; }

.shpw-shell a{ color:#93c5fd; }
.shpw-shell .senpay-dash-btn{ color:#e5e7eb; }

.shpw-shell .senpay-dash-section{
  max-width:1180px;
  margin:0 auto;
  padding:0 18px;
}

.shpw-section{ margin-top:18px; }
.shpw-section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.shpw-section-header h2{
  font-size:20px;
  font-weight:600;
  color:#e5e7eb;
  margin:0;
}

.shpw-card{
  border-radius:22px;
  background:radial-gradient(circle at top left, rgba(15,23,42,.98), rgba(8,23,40,.98));
  border:1px solid rgba(30,64,175,.35);
  box-shadow:0 24px 70px rgba(15,23,42,.85), 0 0 0 1px rgba(15,23,42,.9) inset;
}

/* Alerts */
.shpw-alert-success{
  border-radius:22px;
  background:radial-gradient(circle at top left, rgba(22,101,52,.25), rgba(15,23,42,.98));
  border:1px solid rgba(34,197,94,.7);
}
.shpw-alert-title{ font-size:15px; font-weight:800; color:#bbf7d0; margin-bottom:4px; }
.shpw-alert-text{ font-size:13px; color:#d1fae5; margin-bottom:10px; }

/* Escalation block */
.shpw-escalation-wrap{ margin-top:18px; }
.shpw-escalation-box{
  border-radius:22px;
  padding:18px 18px 16px;
  background:radial-gradient(circle at top left, rgba(30,64,175,.22), rgba(15,23,42,.98));
  border:1px solid rgba(59,130,246,.45);
  box-shadow:0 18px 55px rgba(2,6,23,.7);
}
.shpw-escalation-header{ display:flex; gap:12px; align-items:flex-start; }
.shpw-escalation-icon{
  width:40px;height:40px;
  display:flex;align-items:center;justify-content:center;
  border-radius:14px;
  background:rgba(59,130,246,.16);
  border:1px solid rgba(59,130,246,.35);
}
.shpw-escalation-title{ font-size:15px; font-weight:700; color:#f9fafb; }
.shpw-escalation-sub{ font-size:13px; color:#cbd5e1; margin-top:2px; line-height:1.45; }

.shpw-escalation-notice{
  margin-top:14px;
  padding:10px 12px;
  border-radius:14px;
  font-size:13px;
  line-height:1.45;
}
.shpw-escalation-notice a{ color:#eab308; text-decoration:underline; }
.shpw-escalation-notice-success{ background:rgba(22,163,74,.12); border:1px solid rgba(34,197,94,.55); color:#bbf7d0; }
.shpw-escalation-notice-error{ background:rgba(185,28,28,.18); border:1px solid rgba(248,113,113,.7); color:#fecaca; }
.shpw-escalation-notice-info{ background:rgba(56,189,248,.12); border:1px solid rgba(59,130,246,.6); color:#e0f2fe; }

.shpw-escalation-toggle{
  margin-top:14px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 12px;
  border-radius:16px;
  background:rgba(15,23,42,.8);
  border:1px dashed rgba(59,130,246,.35);
  cursor:pointer;
}
.shpw-escalation-toggle input{ margin-top:3px; }
.shpw-escalation-text{ font-size:13px; color:#e5e7eb; line-height:1.45; }

.shpw-escalation-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 22px;
  margin:14px 0 10px;
  padding:12px 14px;
  border-radius:16px;
  background:radial-gradient(circle at top left, rgba(15,23,42,.98), rgba(12,74,110,.85));
  border:1px solid rgba(30,64,175,.6);
}
.shpw-escalation-label{ font-size:11px; color:#9ca3af; margin-bottom:2px; }
.shpw-escalation-value{ font-size:13px; color:#e5e7eb; }

.shpw-escalation-field{ margin-top:10px; }
.shpw-escalation-field-label{
  display:block;
  font-size:12px;
  font-weight:600;
  color:#e5e7eb;
  margin-bottom:6px;
}
.shpw-escalation-input,
.shpw-escalation-file,
.shpw-escalation-field textarea,
.shpw-escalation-field select{
  width:100%;
  border-radius:14px;
  padding:10px 12px;
  background:rgba(2,6,23,.65);
  border:1px solid rgba(55,65,81,.95);
  color:#e5e7eb;
  font-size:13px;
  outline:none;
  box-shadow:0 0 0 1px rgba(15,23,42,1);
}
.shpw-escalation-input::placeholder{ color:#94a3b8; }
.shpw-escalation-help{ color:#9ca3af; font-size:11px; margin-top:6px; }

.shpw-escalation-confirm{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(15,23,42,.7);
  border:1px solid rgba(55,65,81,.75);
  color:#e5e7eb;
}
.shpw-escalation-confirm input{ margin-top:3px; }

.shpw-escalation-actions{ margin-top:12px; }

/* Stats */
.shpw-ticket-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}
.shpw-stat-card{
  border-radius:18px;
  padding:14px 18px;
  background:linear-gradient(135deg, rgba(15,23,42,.95), rgba(12,74,110,.9));
  border:1px solid rgba(30,64,175,.5);
  box-shadow:0 18px 45px rgba(15,23,42,.95);
}
.shpw-stat-card .label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#9ca3af;
  margin-bottom:6px;
}
.shpw-stat-card .value{ font-size:22px; font-weight:700; color:#f9fafb; }

/* Ticket list */
.shpw-ticket-list{ display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.shpw-ticket-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:12px 16px;
  border-radius:18px;
  background:radial-gradient(circle at top left, rgba(15,23,42,.97), rgba(8,47,73,.97));
  border:1px solid rgba(30,64,175,.55);
  box-shadow:0 18px 45px rgba(15,23,42,.9);
}
.shpw-ticket-title{ font-size:14px; font-weight:600; color:#f9fafb; }
.shpw-ticket-meta{ font-size:11px; color:#9ca3af; }
.shpw-ticket-right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

.shpw-ticket-status-pill{
  padding:4px 10px;
  border-radius:999px;
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  border:1px solid rgba(55,65,81,.9);
  background:rgba(15,23,42,.9);
  color:#e5e7eb;
}
.shpw-ticket-status-pill.status-open{
  border-color:rgba(34,197,94,.8);
  background:radial-gradient(circle at top, rgba(22,163,74,.35), rgba(15,23,42,.95));
  color:#bbf7d0;
}
.shpw-ticket-status-pill.status-pending{
  border-color:rgba(234,179,8,.85);
  background:radial-gradient(circle at top, rgba(234,179,8,.28), rgba(15,23,42,.96));
  color:#fef9c3;
}
.shpw-ticket-status-pill.status-closed{
  border-color:rgba(148,163,184,.8);
  background:radial-gradient(circle at top, rgba(30,64,175,.4), rgba(15,23,42,.96));
  color:#e5e7eb;
}

/* Ticket details */
.shpw-ticket-detail-card{ padding:20px 22px 22px; }
.shpw-ticket-detail-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:16px; }
.shpw-ticket-detail-title{ font-size:18px; font-weight:800; color:#f9fafb; }
.shpw-ticket-detail-meta{ font-size:11px; color:#9ca3af; margin-top:4px; }

.shpw-ticket-thread{
  margin-top:16px;
  padding-top:10px;
  border-top:1px dashed rgba(55,65,81,.8);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.shpw-thread-block{
  border-radius:16px;
  padding:12px 12px;
  background:linear-gradient(135deg, rgba(15,23,42,.96), rgba(15,23,42,.9));
  border:1px solid rgba(31,41,55,.9);
}
.shpw-thread-support{
  background:radial-gradient(circle at top left, rgba(30,64,175,.45), rgba(15,23,42,.98));
  border-color:rgba(59,130,246,.8);
}
.shpw-thread-author{ font-size:11px; font-weight:800; color:#e5e7eb; }
.shpw-thread-date{ font-size:10px; color:#9ca3af; margin-bottom:6px; }
.shpw-thread-body{ font-size:13px; line-height:1.55; color:#e5e7eb; white-space:pre-wrap; }

.shpw-ticket-reply-form{ margin-top:18px; padding-top:16px; border-top:1px dashed rgba(55,65,81,.9); }


/* ===== Guide page wrapper ===== */
.senpay-guide-page{ width:100%; }
.senpay-guide-page *{ box-sizing:border-box; }

.senpay-guide-page p,
.senpay-guide-page li,
.senpay-guide-page .senpay-dash-text{
  max-width: 100% !important;
  width: 100% !important;
}

/* ===== Make the shortcode form look like Senpay card ===== */
.senpay-guide-page [class*="senpay_guide"],
.senpay-guide-page .senpay-guide-auto-fix,
.senpay-guide-page form{
  width:100%;
}

/* If the shortcode prints a form directly */
.senpay-guide-page form{
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}

/* labels */
.senpay-guide-page form label{
  display:block;
  margin: 10px 0 6px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}

/* Inputs */
.senpay-guide-page form input[type="text"],
.senpay-guide-page form input[type="email"],
.senpay-guide-page form input[type="password"],
.senpay-guide-page form select,
.senpay-guide-page form textarea{
  width: 100% !important;
  max-width: 520px;
  display:block;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #fff !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  outline: none;
  box-shadow: none !important;
}

.senpay-guide-page form input::placeholder,
.senpay-guide-page form textarea::placeholder{
  color: rgba(255,255,255,0.55) !important;
}

/* Submit button */
.senpay-guide-page form button,
.senpay-guide-page form input[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color:#fff;
  cursor:pointer;
}

.senpay-guide-page form button:hover,
.senpay-guide-page form input[type="submit"]:hover{
  background: rgba(255,255,255,0.12);
}

/* Fix ugly default table/ul inside form if any */
.senpay-guide-page form table,
.senpay-guide-page form ul{
  width:100% !important;
  max-width:100% !important;
}

/* Messages (success/error) */
.senpay-guide-page .senpay-isp-alert,
.senpay-guide-page .notice,
.senpay-guide-page .woocommerce-message,
.senpay-guide-page .woocommerce-error{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
}

/* ===== Green primary button (Refresh my server now) ===== */
.senpay-guide-page form button,
.senpay-guide-page form input[type="submit"],
.senpay-guide-page .senpay-isp-button{
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  padding: 18px 22px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2px;

  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    #4caf50 0%,
    #66bb6a 100%
  ) !important;

  border: none !important;
  border-radius: 999px !important;

  cursor: pointer;
  box-shadow:
    0 10px 30px rgba(76, 175, 80, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);

  transition: all .25s ease;
}

/* Hover effect */
.senpay-guide-page form button:hover,
.senpay-guide-page form input[type="submit"]:hover,
.senpay-guide-page .senpay-isp-button:hover{
  transform: translateY(-1px);
  box-shadow:
    0 14px 40px rgba(76, 175, 80, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Active (click) */
.senpay-guide-page form button:active,
.senpay-guide-page form input[type="submit"]:active,
.senpay-guide-page .senpay-isp-button:active{
  transform: translateY(1px);
  box-shadow:
    0 6px 18px rgba(76, 175, 80, 0.35),
    inset 0 2px 6px rgba(0,0,0,0.25);
}

/* ===== Variant B: Timeline Steps ===== */
.shpw-device-step,
.shpw-app-step{
  position:relative;
  padding:18px 16px 16px 52px;
  border-radius:18px;
  background: rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.08);
  margin-top:14px;
}

.shpw-device-step::before,
.shpw-app-step::before{
  content:"";
  position:absolute;
  left:22px;
  top:18px;
  bottom:18px;
  width:2px;
  background: rgba(255,215,0,.25);
}

.shpw-device-step::after{
  content:"2";
  position:absolute;
  left:10px;
  top:14px;
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  background: rgba(255,215,0,.14);
  border:1px solid rgba(255,215,0,.55);
}

.shpw-app-step::after{
  content:"3";
  position:absolute;
  left:10px;
  top:14px;
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  background: rgba(255,215,0,.14);
  border:1px solid rgba(255,215,0,.55);
}

.shpw-device-row,
.shpw-app-row{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}
@media(max-width:900px){ .shpw-device-row,.shpw-app-row{ grid-template-columns: repeat(2,1fr);} }
@media(max-width:520px){ .shpw-device-row,.shpw-app-row{ grid-template-columns: 1fr;} }

.shpw-device-pill,
.shpw-app-pill{
  padding:12px 14px;
  border-radius:16px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  font-weight:850;
  transition:.15s;
}

.shpw-device-pill.is-active,
.shpw-app-pill.is-active{
  border-color: rgba(255,215,0,.55);
  background: linear-gradient(135deg, rgba(255,215,0,.12), rgba(255,255,255,.03));
}

/* =========================================
   STEP 4 – LIST ROWS (thumb left)
   Each issue = one row with small thumbnail
   ========================================= */

/* خليه list (ماشي grid) */
.shpw-step4-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Card wrapper */
.shpw-topic-card-issue{
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.10);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

/* Link row layout */
.shpw-issue-row{
  display:grid;
  grid-template-columns: 62px 1fr auto;  /* thumb | text | right side */
  align-items:center;
  gap:14px;
  padding:12px 14px;
  text-decoration:none;
  color:inherit;
}

/* hover */
.shpw-topic-card-issue:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.03);
  border-color: rgba(255,215,0,.35);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

/* thumbnail */
.shpw-issue-thumb{
  width:62px;
  height:46px;
  border-radius:12px;
  overflow:hidden;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
}

.shpw-issue-thumb-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform .18s ease;
}

.shpw-topic-card-issue:hover .shpw-issue-thumb-img{
  transform: scale(1.06);
}

/* placeholder emoji */
.shpw-issue-thumb-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background: rgba(255,215,0,.10);
}

/* main text */
.shpw-issue-main{
  min-width:0; /* مهم للellipsis */
}

.shpw-issue-title{
  font-weight:900;
  font-size:14.5px;
  line-height:1.2;
  margin:0;

  /* ✅ عنوان طويل: سطر واحد + ... */
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* meta */
.shpw-issue-meta{
  margin-top:6px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  opacity:.85;

  /* ما يخرجش */
  min-width:0;
  overflow:hidden;
}

.shpw-meta-app,
.shpw-meta-device{
  max-width:40%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.shpw-meta-dot{ opacity:.55; }

/* right side */
.shpw-issue-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  white-space:nowrap;
}

/* badge */
.shpw-badge-time{
  font-size:12px;
  font-weight:850;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,215,0,.12);
  border:1px solid rgba(255,215,0,.40);
}

/* CTA */
.shpw-issue-arrow{
  font-size:12px;
  font-weight:900;
  opacity:.9;
}

/* responsive: نخلي right side تنزل تحت فالموبايل */
@media (max-width: 700px){
  .shpw-issue-row{
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "thumb main"
      "thumb side";
  }
  .shpw-issue-thumb{ width:56px; height:44px; }
  .shpw-issue-main{ grid-area: main; }
  .shpw-issue-side{
    grid-area: side;
    align-items:flex-start;
    flex-direction:row;
    gap:10px;
    margin-top:6px;
  }
  .shpw-meta-app,
  .shpw-meta-device{ max-width:55%; }
}

/* keyboard focus */
.shpw-issue-row:focus-visible{
  outline:2px solid rgba(255,215,0,.55);
  outline-offset:3px;
  border-radius:16px;
}


/* =========================================
   TOPIC PAGE (senpay_topic) – GUIDE STYLE
   ========================================= */

.shpw-topic-content{
  font-size:14.5px;
  line-height:1.7;
}

/* ===== Meta pills (Issue/Solution/Type/Fix time) ===== */
.shpw-guide-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:12px 12px;
  border-radius:16px;
  background: rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.08);
  margin: 4px 0 16px;
}

.shpw-guide-meta .shpw-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
}

/* ===== Divider ===== */
.shpw-guide-divider{
  height:1px;
  background: rgba(255,255,255,.10);
  margin: 18px 0;
}

/* ===== Steps container ===== */
.shpw-guide-steps{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:14px;
}

/* ===== Step card ===== */
.shpw-guide-step{
  position:relative;
  padding:16px 16px 16px 16px;
  border-radius:18px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

/* Step badge (STEP 1/2/FINAL) */
.shpw-guide-step-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.6px;
  text-transform:uppercase;
  background: rgba(255,215,0,.12);
  border:1px solid rgba(255,215,0,.40);
  margin-bottom:10px;
}

/* Step title */
.shpw-guide-step-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:16px;
  margin-bottom:10px;
}

.shpw-guide-emoji{
  width:34px;
  height:34px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  font-size:18px;
}

/* tagline under title (optional) */
.shpw-guide-step-tagline{
  margin:-4px 0 10px;
  font-size:13px;
  opacity:.85;
}

/* Step body */
.shpw-guide-step-body ul{
  margin: 10px 0 0 18px;
  padding:0;
}
.shpw-guide-step-body li{
  margin: 7px 0;
}

/* ===== URL box style (You already have senpay-url-box) ===== */
.senpay-url-box{
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  margin: 10px 0;
}

.senpay-url-label{
  font-size:12px;
  font-weight:900;
  opacity:.85;
  margin-bottom:8px;
}

.senpay-url-value{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;
  line-height:1.55;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(0,0,0,.30);
  border:1px solid rgba(255,255,255,.10);
  overflow:auto;
  white-space:nowrap;
}

/* Better bold highlights inside guide */
.shpw-topic-content strong{
  color: rgba(255,255,255,.95);
}

/* =========================================
   Topic Headings inside content
   What does this error mean?
   Recommended solution
   ========================================= */

/* نخلي strong اللي جاي فبداية paragraph بحال عنوان */
.shpw-topic-content p > strong:first-child{
  display:block;              /* ✅ ياخد سطر كامل */
  font-size:18px;             /* ✅ كبير */
  font-weight:900;
  margin: 14px 0 6px;         /* مسافة فوق وتحت */
  line-height:1.3;
  color: #fff;
}

/* شوية تمييز خاص لـ Recommended solution */
.shpw-topic-content p > strong:first-child:has(+ br){
  position:relative;
  padding-left:28px;
}

/* أي strong فيه علامة ✅ */
.shpw-topic-content p > strong:first-child::before{
  content:"";
}

/* إذا كان النص فيه ✅ نخليها أيقونة واضحة */
.shpw-topic-content p > strong:first-child{
  display:flex;
  align-items:center;
  gap:10px;
}

/* نخلي الفقرة اللي تحت العنوان تبان بوضوح */
.shpw-topic-content p{
  margin-bottom:12px;
}

/* =========================================
   Topic paragraphs – full line, clean flow
   ========================================= */

/* خليه ياخذ العرض كامل */
.shpw-topic-content p.senpay-dash-text{
  max-width: none !important;
  width: 100%;
}

/* الجملة تكون متصلة */
.shpw-topic-content p.senpay-dash-text{
  white-space: normal;      /* يسمح بالسطر الكامل */
  word-break: normal;
  overflow-wrap: normal;
}

/* منع أي كسر قسري جا من br */
.shpw-topic-content p.senpay-dash-text br{
  display: none;            /* ❗ يحيد الكسر */
}

/* تحسين القراءة */
.shpw-topic-content p.senpay-dash-text{
  line-height: 1.75;
  margin-bottom: 14px;
}

/* === Subscriptions list "Live" style === */
.shpw-subscription-item{
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 16px;
  padding: 14px 14px;
  background: rgba(15,23,42,.35);
  transition: .15s ease;
}
.theme-light .shpw-subscription-item{
  background: rgba(255,255,255,.75);
  border-color: rgba(148,163,184,.35);
}

.shpw-subscription-item:hover{
  transform: translateY(-1px);
  border-color: rgba(245,158,11,.45);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.shpw-subscription-item input[type="radio"]{
  transform: scale(1.05);
  margin-top: 4px;
}

/* Type badge */
.shpw-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(2,6,23,.25);
}

.shpw-pill[data-type="M3U"]{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
  color: #86efac;
}
.theme-light .shpw-pill[data-type="M3U"]{
  background: rgba(34,197,94,.10);
  color: #166534;
}

.shpw-pill[data-type="MAG"]{
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.12);
  color: #93c5fd;
}
.theme-light .shpw-pill[data-type="MAG"]{
  background: rgba(59,130,246,.10);
  color: #1e3a8a;
}

/* Username / Password styles */
.shpw-subscription-creds{
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.shpw-creds{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(2,6,23,.18);
  font-size: 13px;
}

.shpw-creds strong{
  font-weight: 800;
}

.shpw-creds--user{
  border-color: rgba(245,158,11,.35);
}
.shpw-creds--user strong{
  color: #fbbf24;
}

.shpw-creds--pass{
  border-color: rgba(168,85,247,.35);
}
.shpw-creds--pass strong{
  color: #d8b4fe;
}

/* Selected state */
.shpw-subscription-item.is-selected{
  border-color: rgba(245,158,11,.55);
  background: rgba(245,158,11,.10);
}
.theme-light .shpw-subscription-item.is-selected{
  background: rgba(245,158,11,.08);
}
/* ===== Force BLACK buttons (Join Telegram + Continue) ===== */

/* Primary buttons */
.senpay-dash-btn-primary,
.shpw-btn-next {
    background: linear-gradient(180deg, #0b0f1a, #000000) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.45);
}

/* Hover */
.senpay-dash-btn-primary:hover,
.shpw-btn-next:hover {
    background: linear-gradient(180deg, #000000, #000000) !important;
    box-shadow: 0 8px 26px rgba(0,0,0,.65);
    transform: translateY(-1px);
}

/* Telegram CTA button specifically */
.senpay-dash-support-actions .senpay-dash-btn-primary {
    background: linear-gradient(180deg, #0a0a0a, #000) !important;
}

/* Back / Ghost buttons keep outline style */
.senpay-dash-btn-ghost {
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
}
/* ===== Split form + image layout ===== */

.senpay-fix-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
}

/* Left side (form) */
.senpay-fix-form {
    width: 100%;
}

/* Right side (image) */
.senpay-fix-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.senpay-fix-image img {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
    opacity: .95;
}

/* Responsive: mobile */
@media (max-width: 860px) {
    .senpay-fix-split {
        grid-template-columns: 1fr;
    }

    .senpay-fix-image {
        order: -1; /* الصورة تطلع الفوق فالموبايل */
        margin-bottom: 12px;
    }
}

/* === Auto Fix Split (form + image) === */
.senpay-fix-split{
  display:flex;
  gap:16px;
  align-items:stretch;
}

.senpay-fix-form{
  flex: 1 1 60%;
  min-width: 320px;
}

.senpay-fix-image{
  flex: 1 1 40%;
  min-width: 260px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  justify-content:center;
}

.senpay-fix-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  max-height: 380px;
}

/* Responsive */
@media (max-width: 880px){
  .senpay-fix-split{ flex-direction:column; }
  .senpay-fix-image img{ max-height: 260px; }
}


/* Responsive */
@media (max-width:768px){
  .shpw-ticket-stats{ grid-template-columns:1fr; }
  .shpw-escalation-grid{ grid-template-columns:1fr; }
}

/* ===== FINAL OVERRIDE: subscription cards ===== */

.shpw-subscription-creds{
  margin-top: 12px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
}

.shpw-creds{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(148,163,184,.22) !important;
  background: rgba(2,6,23,.06) !important;
}

.shpw-creds strong{
  font-weight: 800 !important;
  letter-spacing: .2px !important;
}

/* Username */
.shpw-creds--user{
  border-color: rgba(245,158,11,.30) !important;
  background: rgba(245,158,11,.08) !important;
}
.shpw-creds--user strong{
  color: #d97706 !important;
}

/* Password */
.shpw-creds--pass{
  border-color: rgba(99,102,241,.25) !important;
  background: rgba(99,102,241,.08) !important;
}
.shpw-creds--pass strong{
  color: #4f46e5 !important;
}

/* Type badges */
.shpw-pill[data-type="M3U"]{
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 1px solid #86efac !important;
  color: #166534 !important;
  font-weight: 800 !important;
}

.shpw-pill[data-type="MAG"]{
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border: 1px solid #93c5fd !important;
  color: #1d4ed8 !important;
  font-weight: 800 !important;
}