
.hdp-wrap {
  --hdp-accent:    #e31e24;
  --hdp-ink:       #0f0f0f;
  --hdp-ink2:      #3d3d3d;
  --hdp-muted:     #717171;
  --hdp-border:    #e8e8e8;
  --hdp-bg:        #f5f5f7;
  --hdp-surface:   #ffffff;
  --hdp-surface2:  #fafafa;
  --hdp-radius:    10px;
  --hdp-sidebar-w: 268px;
  font-family: 'Lexend', system-ui, sans-serif;
  color: var(--hdp-ink);
  background: var(--hdp-bg);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

li.user_dashboard_support a svg {
  width: 21px !important;
  height: 21px !important;
  max-width: 21px !important;
  max-height: 21px !important;
}
.hdp-layout {
  display: flex;
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  gap: 28px;
}

.hdp-sidebar {
  width: var(--hdp-sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}
.hdp-sidebar-inner {
  background: var(--hdp-surface);
  border: 1px solid var(--hdp-border);
  border-radius: 14px;
  overflow: visible;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
}
.hdp-sidebar-label {
  padding: 14px 16px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--hdp-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--hdp-border);
}
.hdp-nav { padding: 8px 0; flex: 1; }
.hdp-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--hdp-ink2);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.hdp-nav-item:hover {
  background: #fafafa;
  color: var(--c, var(--hdp-accent));
  border-left-color: var(--c, var(--hdp-accent));
  text-decoration: none;
}
.hdp-nav-item.active {
  background: color-mix(in srgb, var(--c, var(--hdp-accent)) 8%, transparent);
  color: var(--c, var(--hdp-accent));
  font-weight: 600;
  border-left-color: var(--c, var(--hdp-accent));
}
.hdp-nav-icon { font-size: 16px; flex-shrink: 0; }
.hdp-nav-text { flex: 1; line-height: 1.3; }
.hdp-nav-count {
  background: var(--hdp-bg);
  color: var(--hdp-muted);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.hdp-nav-item.active .hdp-nav-count {
  background: color-mix(in srgb, var(--c, var(--hdp-accent)) 15%, white);
  color: var(--c, var(--hdp-accent));
}

.hdp-sidebar-search {
  padding: 12px 14px;
  border-top: 1px solid var(--hdp-border);
  position: relative;
  z-index: 200;
}
.hdp-sb-search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--hdp-bg);
  border: 1px solid var(--hdp-border);
  border-radius: 10px;
  padding: 9px 12px;
  transition: all .2s;
}
.hdp-sb-search-box:focus-within {
  border-color: var(--hdp-accent);
  box-shadow: 0 0 0 3px rgba(227,30,36,.1);
  background: #fff;
}
.hdp-sb-search-icon { color: var(--hdp-muted); flex-shrink: 0; }
.hdp-sb-search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--hdp-ink);
  font-family: 'Lexend', sans-serif;
}
.hdp-sb-search-box input::placeholder { color: var(--hdp-muted); }

.hdp-search-results {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 10px;
  right: 10px;
  background: #fff;
  border: 1px solid var(--hdp-border);
  border-radius: 12px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.08);
  z-index: 9999;
  display: none;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.hdp-search-results.open { display: block; }
.hdp-sr-section {
  padding: 8px 12px 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--hdp-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid #f0f0f0;
}
.hdp-sr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid #f8f8f8;
  text-decoration: none;
  color: var(--hdp-ink);
}
.hdp-sr-item:hover, .hdp-sr-item.hdp-sr-active { background: #fef5f5; }
.hdp-sr-item:last-child { border-bottom: none; }
.hdp-sr-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: #f4f4f4;
  color: var(--hdp-muted);
}
.hdp-sr-q { font-size: 13px; font-weight: 500; flex: 1; }
.hdp-sr-q mark { background: #fff3cd; color: inherit; border-radius: 2px; padding: 0 1px; }
.hdp-sr-section-name { font-size: 11px; color: var(--hdp-muted); }
.hdp-sr-empty { padding: 20px; text-align: center; color: var(--hdp-muted); font-size: 13px; }

.hdp-sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--hdp-border);
}
.hdp-support-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hdp-muted);
  background: none;
  border: 1px solid var(--hdp-border);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  width: 100%;
  transition: all .15s;
  font-family: 'Lexend', sans-serif;
}
.hdp-support-btn:hover {
  background: var(--hdp-bg);
  color: var(--hdp-accent);
  border-color: var(--hdp-accent);
}

.hdp-main { flex: 1; min-width: 0; }
.hdp-section { display: none; }
.hdp-section.hdp-section-active { display: block; }
@keyframes hdpFadeUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
.hdp-section.hdp-section-active { animation: hdpFadeUp .22s ease; }

.hdp-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 20px 22px;
  background: var(--hdp-surface);
  border: 1px solid var(--hdp-border);
  border-radius: 14px;
  border-top: 3px solid var(--c, var(--hdp-accent));
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.hdp-section-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: color-mix(in srgb, var(--c, var(--hdp-accent)) 10%, white);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.hdp-section-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--hdp-ink);
  letter-spacing: -.02em;
  border: none;
  padding: 0;
  margin: 0 0 3px;
}
.hdp-section-desc { font-size: 12.5px; color: var(--hdp-muted); font-weight: 400; }
.hdp-section-badge {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--hdp-bg);
  border: 1px solid var(--hdp-border);
  color: var(--hdp-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.hdp-qa-list { display: flex; flex-direction: column; gap: 8px; }
.hdp-qa-item {
  background: var(--hdp-surface);
  border: 1px solid var(--hdp-border);
  border-radius: var(--hdp-radius);
  overflow: hidden;
  transition: box-shadow .18s, border-color .18s;
}
.hdp-qa-item:hover {
  border-color: color-mix(in srgb, var(--c, var(--hdp-accent)) 40%, var(--hdp-border));
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.hdp-qa-item.hdp-open {
  border-color: color-mix(in srgb, var(--c, var(--hdp-accent)) 50%, var(--hdp-border));
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.hdp-qa-item.hdp-highlight { animation: hdpPulse .7s ease; }
@keyframes hdpPulse {
  0%,100% { border-color: var(--c, var(--hdp-accent)); box-shadow: 0 0 0 0 rgba(227,30,36,.3); }
  50%      { box-shadow: 0 0 0 6px rgba(227,30,36,.1); }
}

.hdp-qa-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Lexend', sans-serif;
  transition: background .12s;
}
.hdp-qa-trigger:hover { background: #fafafa; }
.hdp-qa-item.hdp-open .hdp-qa-trigger {
  background: color-mix(in srgb, var(--c, var(--hdp-accent)) 4%, white);
  border-bottom: 1px solid var(--hdp-border);
}
.hdp-qa-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--hdp-bg);
  color: var(--hdp-muted);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.hdp-qa-item.hdp-open .hdp-qa-num {
  background: color-mix(in srgb, var(--c, var(--hdp-accent)) 12%, white);
  color: var(--c, var(--hdp-accent));
}
.hdp-qa-q { flex: 1; font-size: 14px; font-weight: 500; color: var(--hdp-ink); line-height: 1.5; }
.hdp-qa-q mark { background: #fff3b0; color: inherit; border-radius: 3px; padding: 0 2px; }
.hdp-qa-item.hdp-open .hdp-qa-q { font-weight: 600; }
.hdp-qa-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hdp-copy-link {
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--hdp-bg);
  color: var(--hdp-muted);
  text-decoration: none;
  transition: all .12s;
}
.hdp-qa-trigger:hover .hdp-copy-link { opacity: 1; }
.hdp-copy-link:hover { background: var(--hdp-border); color: var(--hdp-ink); }
.hdp-qa-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--hdp-bg);
  color: var(--hdp-muted);
  transition: transform .22s, background .15s;
  flex-shrink: 0;
}
.hdp-qa-item.hdp-open .hdp-qa-chevron {
  transform: rotate(180deg);
  background: color-mix(in srgb, var(--c, var(--hdp-accent)) 12%, white);
  color: var(--c, var(--hdp-accent));
}

.hdp-qa-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.hdp-qa-item.hdp-open .hdp-qa-answer { grid-template-rows: 1fr; }
.hdp-qa-answer-inner { overflow: hidden; padding: 0 18px 0 54px; }
.hdp-qa-item.hdp-open .hdp-qa-answer-inner { padding: 16px 18px 18px 54px; }

.hdp-qa-answer-inner p { font-size: 14px; line-height: 1.8; color: var(--hdp-ink2); margin: 0 0 12px; }
.hdp-qa-answer-inner p:last-child { margin-bottom: 0; }
.hdp-qa-answer-inner ul, .hdp-qa-answer-inner ol { padding-left: 0; margin: 0 0 12px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hdp-qa-answer-inner ul li, .hdp-qa-answer-inner ol li { font-size: 13.5px; line-height: 1.65; color: var(--hdp-ink2); display: flex; gap: 8px; padding: 0; }
.hdp-qa-answer-inner ul li::before { content: '→'; color: var(--c, var(--hdp-accent)); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.hdp-qa-answer-inner ol.hdp-steps { counter-reset: hdpStep; }
.hdp-qa-answer-inner ol.hdp-steps li { counter-increment: hdpStep; background: var(--hdp-bg); border-radius: 8px; padding: 10px 13px; border: 1px solid var(--hdp-border); }
.hdp-qa-answer-inner ol.hdp-steps li::before { content: counter(hdpStep); flex-shrink: 0; width: 22px; height: 22px; background: var(--c, var(--hdp-accent)); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.hdp-qa-answer-inner ol:not(.hdp-steps) { list-style: decimal; padding-left: 20px; }
.hdp-qa-answer-inner ol:not(.hdp-steps) li::before { display: none; }
.hdp-qa-answer-inner strong { font-weight: 700; color: var(--hdp-ink); }
.hdp-qa-answer-inner em { font-style: italic; }
.hdp-qa-answer-inner code { background: #f3f4f6; border: 1px solid #e5e7eb; padding: 2px 7px; border-radius: 5px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: #374151; }
.hdp-note { display: flex; gap: 10px; padding: 11px 14px; border-radius: 8px; font-size: 13px; line-height: 1.65; margin: 0 0 12px; }
.hdp-note:last-child { margin-bottom: 0; }
.hdp-note-info    { background: #eff6ff; border-left: 3px solid #0061f2; color: #1e3a8a; }
.hdp-note-warn    { background: #fff7ed; border-left: 3px solid #f97316; color: #9a3412; }
.hdp-note-success { background: #f0fdf4; border-left: 3px solid #16a34a; color: #14532d; }
.hdp-note-danger  { background: #fff0f0; border-left: 3px solid #e31e24; color: #7f1d1d; }

.hdp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 12px; }
.hdp-card-role { background: var(--hdp-bg); border: 1px solid var(--hdp-border); border-radius: 8px; padding: 12px 13px; }
.hdp-role-title { font-size: 12.5px; font-weight: 700; color: var(--hdp-ink); margin-bottom: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--hdp-border); }
.hdp-card-role ul { margin: 0; gap: 4px; }
.hdp-card-role ul li { font-size: 12px; color: var(--hdp-ink2); }
.hdp-card-role ul li::before { content: '✓'; color: var(--hdp-accent); font-size: 10px; }
.hdp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 12px; border-radius: 8px; overflow: hidden; border: 1px solid var(--hdp-border); }
.hdp-table thead th { background: var(--hdp-bg); padding: 9px 13px; text-align: left; font-weight: 700; font-size: 12px; color: var(--hdp-muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--hdp-border); }
.hdp-table tbody td { padding: 9px 13px; border-bottom: 1px solid #f5f5f5; color: var(--hdp-ink2); }
.hdp-table tbody tr:last-child td { border-bottom: none; }
.hdp-table tbody tr:hover td { background: #fafafa; }

.hdp-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; margin: 1px 2px; }
.hdp-tag-r { background: #fff0f0; color: #e31e24; }
.hdp-tag-b { background: #eff6ff; color: #0061f2; }
.hdp-tag-g { background: #f0fdf4; color: #16a34a; }
.hdp-tag-o { background: #fff7ed; color: #c2410c; }
.hdp-tag-p { background: #f5f3ff; color: #7c3aed; }
.hdp-tag-k { background: #f3f4f6; color: #374151; }

.hdp-qa-answer-inner .hdp-steps-wrap, .hdp-qa-answer-inner div.hdp-steps { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.hdp-qa-answer-inner .hdp-step { display: flex; align-items: flex-start; gap: 12px; background: #f9fafb; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.hdp-qa-answer-inner .hdp-sn { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--hdp-accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.hdp-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 9999;
  white-space: nowrap;
  font-family: 'Lexend', sans-serif;
}
.hdp-toast.hdp-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

.hdp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
    z-index: 2147483647;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hdp-modal-overlay.open { display: flex; }

body.hdp-modal-open > *:not(.hdp-modal-overlay) {
  filter: blur(2px);
  pointer-events: none;
  transition: filter .25s;
}
body.hdp-modal-open .hdp-modal-overlay {
  filter: none;
  pointer-events: auto;
}
body.hdp-modal-open {
  overflow: hidden;
}

.hdp-support-modal-inner {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.28), 0 8px 32px rgba(0,0,0,.12);
  animation: hdpModalIn .25s cubic-bezier(.34,1.3,.64,1);
}
@keyframes hdpModalIn {
  from { opacity:0; transform:translateY(20px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.hdp-smodal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 2;
}
.hdp-smodal-icon {
  font-size: 32px;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(227,30,36,.1) 0%, rgba(255,107,53,.08) 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hdp-smodal-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -.02em;
  margin: 0 0 4px;
  line-height: 1.2;
}
.hdp-smodal-subtitle {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}
.hdp-smodal-close {
  margin-left: auto;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f5f5f7;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #888;
  transition: all .15s;
}
.hdp-smodal-close:hover { background: #ffe5e5; color: #e31e24; }

.hdp-smodal-infobar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 24px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.hdp-smodal-infobar:empty { display: none; }
.hdp-sinfo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 5px 12px;
}

.hdp-smodal-body { padding: 20px 24px; }

.hdp-sfield { margin-bottom: 16px; }
.hdp-sfield label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 7px;
}
.hdp-req { color: #e31e24; }
.hdp-sfield input[type="text"],
.hdp-sfield textarea {
  width: 100%;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.6;
  font-family: 'Lexend', sans-serif;
  transition: border-color .15s, box-shadow .15s;
  color: #1a1a2e;
}
.hdp-sfield input[type="text"]:focus,
.hdp-sfield textarea:focus {
  border-color: #e31e24;
  outline: none;
  box-shadow: 0 0 0 3px rgba(227,30,36,.1);
}
.hdp-sfield textarea { resize: vertical; min-height: 120px; }

.hdp-smodal-notice {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}
.hdp-smodal-notice.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.hdp-smodal-notice.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.hdp-smodal-login-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 9px;
  padding: 11px 14px;
  margin-bottom: 8px;
}
.hdp-smodal-login-notice a { color: #e31e24; font-weight: 700; }

.hdp-smodal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid #f0f0f0;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-radius: 0 0 20px 20px;
}
.hdp-smodal-cancel {
  background: #f5f5f7;
  color: #555;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
  transition: background .15s;
}
.hdp-smodal-cancel:hover { background: #e8e8ec; }
.hdp-smodal-submit {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #e31e24 0%, #c41920 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
  transition: all .15s;
  box-shadow: 0 4px 14px rgba(227,30,36,.3);
}
.hdp-smodal-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(227,30,36,.4); }
.hdp-smodal-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.hdp-user-support-wrap { padding: 0; }
.hdp-us-header { margin-bottom: 20px; }
.hdp-us-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.hdp-us-desc { font-size: 13px; color: #888; }
.hdp-us-empty {
  text-align: center;
  padding: 48px 20px;
  color: #bbb;
  background: #fafafa;
  border-radius: 12px;
  border: 1px dashed #e0e0e0;
}
.hdp-us-empty svg { display: block; margin: 0 auto 12px; }
.hdp-us-empty p { font-size: 14px; margin: 0; }
.hdp-us-list { display: flex; flex-direction: column; gap: 12px; }
.hdp-us-ticket {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.hdp-us-ticket-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.hdp-us-ticket-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}
.hdp-us-ticket-id { font-size: 12px; font-weight: 700; color: #888; }
.hdp-us-ticket-date { font-size: 12px; color: #aaa; }
.hdp-badge {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}
.hdp-badge-pending { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.hdp-badge-replied { background: #d4edda; color: #155724; border: 1px solid #28a745; }
.hdp-us-delete-btn {
  background: none;
  border: 1px solid #f0d0d0;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  color: #dc3545;
  display: flex; align-items: center;
  transition: all .15s;
}
.hdp-us-delete-btn:hover { background: #fff0f0; }
.hdp-us-ticket-subject {
  padding: 12px 16px 4px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
}
.hdp-us-ticket-body { padding: 4px 16px 16px; }
.hdp-us-message { margin-bottom: 12px; }
.hdp-us-message strong, .hdp-us-reply strong { font-size: 12px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 6px; }
.hdp-us-message p, .hdp-us-reply p { font-size: 13.5px; color: #444; line-height: 1.7; margin: 0; }
.hdp-us-reply {
  background: #f0fdf4;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.hdp-us-reply-time { font-size: 11px; color: #888; display: block; margin-top: 6px; }
.hdp-us-expires { font-size: 11.5px; color: #bbb; margin-top: 8px; }

@media (max-width: 860px) {
  .hdp-layout { flex-direction: column; padding: 100px 14px 60px; gap: 16px; }
  .hdp-sidebar { width: 100%; position: static; }
  .hdp-sidebar-inner { border-radius: 12px; overflow: visible; }
  .hdp-nav { display: flex; flex-wrap: wrap; padding: 10px; gap: 6px; }
  .hdp-nav-item { border-left: none !important; border-bottom: 2px solid transparent !important; border-radius: 8px; padding: 7px 11px; font-size: 12.5px; background: var(--hdp-bg); }
  .hdp-nav-item.active { background: color-mix(in srgb, var(--c, var(--hdp-accent)) 10%, white); border-bottom-color: var(--c, var(--hdp-accent)) !important; }
  .hdp-sidebar-search { display: none; }
  .hdp-sidebar-footer { padding: 10px; }
  .hdp-support-btn { justify-content: center; }
  .hdp-search-results { bottom: auto; top: calc(100% + 6px); }
  .hdp-qa-answer-inner, .hdp-qa-item.hdp-open .hdp-qa-answer-inner { padding-left: 16px; }
  .hdp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hdp-grid { grid-template-columns: 1fr; }
  .hdp-section-header { flex-wrap: wrap; }
  .hdp-section-badge { order: -1; }
}


.hdp-user-support-wrap {
  padding: 0;
}

.hdp-us-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid #f0f0f0;
}
.hdp-us-title {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.hdp-us-title svg { color: #178dcc; flex-shrink: 0; }
.hdp-us-desc {
  font-size: 13.5px;
  color: #888;
  margin: 0;
}

.hdp-us-empty{text-align:center;padding:48px 20px;border:1px solid #e6eef3;border-radius:16px;background:#fff;color:#7b8a97}
.hdp-us-empty svg{display:block;width:26px;height:26px;margin:0 auto 14px;padding:12px;box-sizing:content-box;border-radius:50%;background:#eaf4fb;color:#178dcc;stroke:#178dcc}
.hdp-us-empty p{font-size:14px;margin:0;color:#7b8a97}

.hdp-us-list { display: flex; flex-direction: column; gap: 14px; }

.hdp-us-ticket {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.hdp-us-ticket:hover {
  border-color: #ddd;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.hdp-us-ticket-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.hdp-us-ticket-meta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #888;
}
.hdp-us-ticket-id {
  font-weight: 800;
  color: #e31e24;
  font-size: 13px;
}
.hdp-us-ticket-date { font-size: 12px; color: #aaa; }

.hdp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.hdp-badge-replied  { background: #d4edda; color: #155724; }
.hdp-badge-pending  { background: #fff3cd; color: #856404; }

.hdp-us-ticket-subject {
  font-weight: 700;
  font-size: 14.5px;
  color: #1a1a2e;
  padding: 12px 16px 20px;
}

.hdp-us-ticket-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 16px;
}
.hdp-us-ticket.hdp-us-ticket-open .hdp-us-ticket-body {
  max-height: none;
  padding: 14px 16px 16px;
}

.hdp-us-message, .hdp-us-reply {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.7;
}
.hdp-us-message {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}
.hdp-us-reply {
  background: #f0fdf4;
  border: 1px solid #c3e6cb;
}
.hdp-us-message strong,
.hdp-us-reply strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}
.hdp-us-message p,
.hdp-us-reply p {
  margin: 0;
  color: #333;
}
.hdp-us-reply-time {
  font-size: 11px;
  color: #888;
  display: block;
  margin-top: 6px;
}
.hdp-us-expires {
  font-size: 11.5px;
  color: #bbb;
  margin-top: 6px;
}

.hdp-us-delete-btn {
  background: none;
  border: 1px solid #f5c6cb;
  color: #dc3545;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.hdp-us-delete-btn:hover {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

.hdp-us-ticket-head::after {
  content: '▸';
  font-size: 11px;
  color: #bbb;
  transition: transform .25s;
  margin-top: 2px;
  flex-shrink: 0;
}
.hdp-us-ticket.hdp-us-ticket-open .hdp-us-ticket-head::after {
  transform: rotate(90deg);
}

@media (max-width: 600px) {
  .hdp-us-ticket-meta { gap: 6px; }
  .hdp-us-ticket-subject { font-size: 13.5px; }
}

.hdp-us-header {
    margin-bottom: 20px;
}
.hdp-us-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #178dcc;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background .2s;
}
.hdp-us-new-btn:hover { background: #1279ad; }

.hdp-us-new-form {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 22px;
    margin-top: 14px;
}
.hdp-us-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}
.hdp-us-cancel-btn {
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 13px;
    cursor: pointer;
}
.hdp-us-cancel-btn:hover { background: #e0e0e0; }

.hdp-sfield select,
.hdp-sfield input[type="text"],
.hdp-sfield textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    transition: border-color .2s;
}
.hdp-sfield select:focus,
.hdp-sfield input:focus,
.hdp-sfield textarea:focus {
    border-color: #e31e24;
    outline: none;
    box-shadow: 0 0 0 3px rgba(227,30,36,.1);
}
.hdp-sfield {
    margin-bottom: 12px;
}
.hdp-sfield label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.hdp-req { color: #e31e24; }

.hdp-smodal-notice {
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
}
.hdp-smodal-notice.success,
.hdp-notice-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.hdp-smodal-notice.error,
.hdp-notice-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.hdp-badge-user-replied { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }

.hdp-us-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
        max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.hdp-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}
.hdp-msg-user { align-self: flex-end; }
.hdp-msg-admin { align-self: flex-start; }

.hdp-msg-content {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.65;
}
.hdp-msg-user .hdp-msg-content {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-bottom-right-radius: 4px;
}
.hdp-msg-admin .hdp-msg-content {
    background: #f0fff4;
    border: 1px solid #c3e6cb;
    border-bottom-left-radius: 4px;
}

.hdp-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}
.hdp-msg-header strong {
    font-size: 11.5px;
    font-weight: 700;
    color: #555;
}
.hdp-msg-time {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}
.hdp-msg-text { color: #333; }

.hdp-msg-new { animation: hdpMsgFadeIn .3s ease; }
@keyframes hdpMsgFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hdp-us-user-reply {
    background: #fffde7;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 10px;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hdp-us-reply-hint {
    font-size: 12.5px;
    color: #856404;
    font-weight: 600;
    margin-bottom: 8px;
}
.hdp-us-reply-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: inherit;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    resize: none;
    transition: border-color .2s;
}
.hdp-us-reply-input:focus {
    border-color: #e31e24;
    outline: none;
    box-shadow: 0 0 0 3px rgba(227,30,36,.1);
}
.hdp-us-reply-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e31e24;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.hdp-us-reply-send-btn:hover { background: #c0181d; }
.hdp-us-reply-send-btn:disabled { background: #aaa; cursor: not-allowed; }

.hdp-us-reply-notice {
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 12.5px;
    margin-top: 6px;
}

.hdp-us-waiting-hint {
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #888;
    margin-top: 10px;
    text-align: center;
}

@keyframes hdpFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hdp-msg-new {
    animation: hdpFadeIn .35s ease forwards;
}
.hdp-reply-appear {
    animation: hdpFadeIn .35s ease forwards;
}

.hdp-msg-attachment {
    margin-top: 8px;
}
.hdp-msg-attachment img {
    max-width: 260px;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: opacity .15s;
    display: block;
}
.hdp-msg-attachment img:hover { opacity: .85; }

.hdp-us-reply-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}
.hdp-us-reply-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.hdp-us-reply-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
}
.hdp-us-attach-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
}
.hdp-us-attach-label:hover { background: #e5e5e5; }
.hdp-us-file-name {
    font-size: 12px;
    color: #2196f3;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdp-us-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.hdp-us-close-btn:hover { background: #e8e8e8; color: #333; }

.hdp-badge-closed {
    background: #e0e0e0;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11.5px;
    font-weight: 700;
}
.hdp-us-closed-hint {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: #888;
    margin-top: 10px;
    text-align: center;
}

