/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --primary: #3c2953;
  --primary-light: #eeedfb;
  --sidebar-bg: #3c2953;
  --sidebar-w: 196px;
  --white: #ffffff;
  --bg-page: #f7f8fa;
  --border: #e5e7eb;
  --text-dark: #1a1933;
  --text-body: #374151;
  --text-muted: #9ca3af;
  --status-red: #ef4444;
  --status-orange: #f97316;
  --status-blue: #3b82f6;
  --status-green: #62ad6a;
  --radius-sm: 5px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.5;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   App Wrapper
   ============================================================ */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--sidebar-bg);
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 200;
}

/* User profile row */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.15s;
}
.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #3c2953 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.user-name {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chevron {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  flex-shrink: 0;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 6px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
}
.nav-item.active {
  color: #fff;
  background: rgba(113, 101, 227, 0.22);
  border-left-color: var(--primary);
}

.nav-icon {
  font-size: 17px;
}

/* Logo */
.sidebar-logo {
  padding: 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-brand {
  font-size: 15px;
  font-weight: 800;
  color: #ff3366;
  letter-spacing: -0.4px;
  font-style: italic;
}
.logo-sup {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* ============================================================
   Main Content
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.content-area {
  padding: 28px 36px 48px;
  flex: 1;
}

/* ============================================================
   Page Title
   ============================================================ */
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

/* ============================================================
   Support Tabs
   ============================================================ */
.support-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}

.tab-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 2px;
  margin-right: 28px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
}
.tab-link:hover {
  color: var(--text-body);
}
.tab-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   Category Section
   ============================================================ */
.category-section {
  margin-bottom: 36px;
}

.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

/* Search box */
.search-box {
  position: relative;
  width: 258px;
}
.search-box .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.search-box .search-input {
  width: 100%;
  padding: 8px 12px 8px 33px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-body);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box .search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(113, 101, 227, 0.12);
}
.search-box .search-input::placeholder {
  color: var(--text-muted);
}

/* ── Category grid ─────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

/* Featured (expanded) card */
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.category-card:hover {
  border-color: #c4bef4;
  box-shadow: var(--shadow-sm);
}
.category-card.selected {
  border-color: var(--border);
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.category-card-header a:focus,
.category-card-header a:focus-visible,
.cat-toggle-btn:focus,
.cat-toggle-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.cat-icon-wrap {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon-wrap i {
  font-size: 17px;
}
.cat-icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.cat-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

/* Issue list */
.issue-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.issue-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 8px;
  font-size: 12.5px;
  color: var(--text-body);
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.issue-list-item:last-child {
  border-bottom: none;
}
.issue-list-item:hover {
  background: #edeaff;
  color: #3c29b7;
}
.issue-list-item .bi-chevron-right {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.view-all-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.15s;
}
.view-all-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Compact card */
.category-card-compact {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.category-card-compact:hover {
  border-color: #c4bef4;
  box-shadow: var(--shadow-sm);
}
.category-card-compact.selected {
  border: 2px solid var(--primary);
}
.category-card-compact .cc-left {
  display: flex;
  align-items: center;
  gap: 11px;
}
.category-card-compact .cat-title {
  font-weight: 500;
}
.category-card-compact .bi-chevron-right {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   Tickets Table
   ============================================================ */
.tickets-section {
  margin-top: 4px;
}

.section-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
}

.tbl thead tr {
  background: #f9fafb;
}

.tbl th {
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.tbl td {
  padding: 15px 16px;
  font-size: 13px;
  color: var(--text-body);
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}
.tbl tbody tr:last-child td {
  border-bottom: none;
}
.tbl tbody tr:hover {
  background: #fafbff;
}

.td-date {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 12.5px;
}

.ticket-id-link {
  color: var(--primary);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}
.ticket-id-link:hover {
  text-decoration: underline;
}

.td-issue {
  min-width: 130px;
  max-width: 190px;
  font-size: 13px;
  color: var(--text-dark);
}

.td-update {
  max-width: 320px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-body);
}

.update-full {
  display: none;
}

.view-more-btn {
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  margin-left: 3px;
}
.view-more-btn:hover {
  text-decoration: underline;
}

/* Status */
.td-status {
  min-width: 110px;
}

.status-badge {
  font-size: 12.5px;
  font-weight: 600;
  display: block;
  color: var(--status-red); /* default */
}
/* Green — closed / resolved / complete */
.status-closed,
.status-resolved,
.status-complete,
.status-completed {
  color: var(--status-green);
}
/* Orange — in progress */
.status-in-progress {
  color: var(--status-orange);
}
/* Grey — junk */
.status-junk {
  color: var(--text-muted);
}
/* Red — issue raised / pending / anything else */
.status-issue-raised,
.status-pending {
  color: var(--status-red);
}

.status-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
  line-height: 1.3;
}

.reopen-till {
  font-size: 11px;
  color: var(--status-orange);
  margin-top: 4px;
  display: none; /* hidden for now */
  line-height: 1.3;
}

/* Action buttons */
.td-actions {
  white-space: nowrap;
}

.actions-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-act {
  padding: 5px 13px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn-act-view {
  background: #fff;
  border-color: #000;
  color: var(--text-dark);
}
.btn-act-view:hover {
  border-color: #4e39d5;
  background: #4e39d5;
  color: #fff;
}
.btn-act-reply,
.btn-act-feedback,
.btn-act-reopen {
  background: #fff;
  border-color: #000;
  color: var(--text-dark);
}
.btn-act-reply:hover,
.btn-act-feedback:hover,
.btn-act-reopen:hover {
  border-color: #4e39d5;
  background: #4e39d5;
  color: #fff;
}
.btn-act-reopen:disabled,
.btn-act-feedback:disabled {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

/* See all */
.see-all-wrap {
  text-align: center;
  padding: 13px;
  border-top: 1px solid var(--border);
}
.see-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.see-all-link:hover {
  opacity: 0.8;
}

/* ============================================================
   My Tickets Page — Filters
   ============================================================ */
.tickets-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 12.5px;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* My tickets search */
.my-tickets-search {
  position: relative;
  width: 240px;
}
.my-tickets-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.my-tickets-search .search-input {
  width: 100%;
  padding: 7px 12px 7px 33px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-body);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.my-tickets-search .search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(113, 101, 227, 0.12);
}
.my-tickets-search .search-input::placeholder {
  color: var(--text-muted);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 52px 24px;
}
.empty-icon {
  font-size: 46px;
  color: #d1d5db;
  margin-bottom: 12px;
}
.empty-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.empty-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   Ticket Detail Page
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover {
  color: var(--text-dark);
}

.ticket-header-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.ticket-issue-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.ticket-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.meta-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}
.meta-value.primary {
  color: var(--primary);
}

/* Conversation */
.conv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
}

.conv-header {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  background: #fafbff;
}

.msg-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.msg-item:last-child {
  border-bottom: none;
}
.msg-item.from-support {
  background: #fafbff;
}

.msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.msg-sender {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.msg-time {
  font-size: 11.5px;
  color: var(--text-muted);
}
.msg-body {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
}

/* Reply / Feedback form */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.form-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.reply-textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-body);
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.reply-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(113, 101, 227, 0.12);
}
.reply-textarea::placeholder {
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.btn-primary-c {
  padding: 8px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary-c:hover {
  opacity: 0.88;
}

.btn-secondary-c {
  padding: 8px 22px;
  background: #fff;
  color: var(--text-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-secondary-c:hover {
  background: #f9fafb;
}

/* Star rating */
.star-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.star-btn {
  width: 42px;
  height: 42px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.star-btn:hover,
.star-btn.active {
  border-color: #f6a623;
  background: #fff8ec;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .content-area {
    padding: 22px 24px 40px;
  }
}

@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 58px;
    min-width: 58px;
  }
  .sidebar .user-name,
  .sidebar .user-chevron,
  .logo-text-wrap,
  .nav-item span {
    display: none;
  }
  .nav-item {
    padding: 12px 18px;
    justify-content: center;
    gap: 0;
  }
  .sidebar-user {
    justify-content: center;
  }
  .sidebar-logo {
    justify-content: center;
  }

  :root {
    --sidebar-w: 58px;
  }

  .main-content {
    margin-left: 58px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .content-area {
    padding: 18px 16px 36px;
  }

  /* Hide date column on small screens */
  .tbl th:first-child,
  .tbl td:first-child {
    display: none;
  }
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 22px;
  font-size: 13px;
}

.bc-link {
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.bc-link:hover {
  text-decoration: underline;
}

.bc-sep {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.bc-current {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

/* ============================================================
   Two-column Help Layout (category.php + issue.php)
   ============================================================ */
.help-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: 420px;
}

.help-main {
  flex: 1;
  min-width: 0;
  padding-right: 36px;
  border-right: 1px solid var(--border);
}

.help-sidebar {
  width: 270px;
  min-width: 220px;
  padding-left: 30px;
  flex-shrink: 0;
}

/* ── Category page header ──────────────────────────────────── */
.cat-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.cat-page-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

/* ── Full issue list (category page) ──────────────────────── */
.full-issue-list {
  margin-top: 4px;
}

.full-issue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13.5px;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  gap: 8px;
}
.full-issue-item:last-child {
  border-bottom: none;
}
.full-issue-item:hover {
  background: #edeaff;
  color: #3c29b7;
}
.full-issue-item .bi-chevron-right {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Issue list items on support.php (inside featured cards) ─ */
.issue-list li {
  list-style: none;
}

.issue-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 8px;
  font-size: 12.5px;
  color: var(--text-body);
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.15s, background 0.15s;
  gap: 6px;
}
.issue-list-item:hover {
  background: #edeaff;
  color: #3c29b7;
}
.issue-list-item .bi-chevron-right {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Sidebar: Find More Help ─────────────────────────────── */
.find-more-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.fmh-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fmh-item {
  display: block;
  padding: 9px 0;
  font-size: 13px;
  color: var(--text-body);
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.45;
}
.fmh-item:last-child {
  border-bottom: none;
}
.fmh-item:hover {
  color: var(--primary);
}

/* ============================================================
   Issue / Article Page
   ============================================================ */
.article-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.35;
}

.article-body {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.75;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* ── Multiple FAQ items ─────────────────────────────────────── */
.faq-item {
  margin-bottom: 8px;
}

.faq-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ── Was this helpful? ──────────────────────────────────────── */
.helpful-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.helpful-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  flex-shrink: 0;
}

.helpful-btns {
  display: flex;
  gap: 8px;
}

.helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.helpful-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.helpful-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.helpful-btn .bi {
  font-size: 14px;
}

/* ── Raise a Ticket section ─────────────────────────────────── */
.raise-section {
}

.raise-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.raise-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-raise-ticket {
  display: inline-flex;
  align-items: center;
  padding: 9px 24px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-raise-ticket:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.response-time {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── Responsive for help layout ─────────────────────────────── */
@media (max-width: 900px) {
  .help-layout {
    flex-direction: column;
  }
  .help-main {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    margin-bottom: 28px;
  }
  .help-sidebar {
    width: 100%;
    padding-left: 0;
  }
  .bc-current {
    max-width: 200px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Raise a Ticket — Form
   ═══════════════════════════════════════════════════════════════ */

.rt-container {
  max-width: 620px;
}

.rt-page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 28px;
}

/* ── Each form field row ─────────────────────────────────────── */
/* ── Raise ticket form fields — Figma outlined style ──────── */
.rt-field {
  position: relative;
  margin-bottom: 24px;
}

/* Bordered input types (text, date, select, textarea) — floating notch label */
.rt-field-input .rt-label,
.rt-field-textarea .rt-label {
  position: absolute;
  top: -9px;
  left: 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: #fff;
  padding: 0 4px;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  transition: color 0.15s;
}
.rt-field-input:focus-within .rt-label,
.rt-field-textarea:focus-within .rt-label {
  color: var(--primary);
}

/* File / radio — label as bold block heading above */
.rt-field-file .rt-label,
.rt-field-radio .rt-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.rt-required {
  color: #e53e3e;
  margin-left: 1px;
}
.rt-field-tooltip {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 5px;
  cursor: pointer;
  vertical-align: middle;
}

/* Text / Date inputs */
.rt-input {
  width: 100%;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.rt-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 41, 83, 0.12);
}

/* Select */
.rt-select-wrap {
  position: relative;
}
.rt-select {
  width: 100%;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  padding: 14px 40px 14px 16px;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.rt-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 41, 83, 0.12);
}
.rt-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-dark);
  pointer-events: none;
}

/* Textarea */
.rt-textarea {
  width: 100%;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.6;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.rt-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 41, 83, 0.12);
}
.char-counter {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* Radio group */
.rt-radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.rt-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
}
.rt-radio-label input[type="radio"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

/* ── File upload widget — Figma style ───────────────────────── */
.upload-area {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
}
.upload-box {
  width: 120px;
  height: 120px;
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 8px;
  transition: border-color 0.15s;
  flex-shrink: 0;
  background: #fff;
}
.upload-box:hover {
  border-color: var(--primary);
}
.upload-box.has-file {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-icon {
  font-size: 22px;
  color: var(--primary);
}
.upload-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.upload-filename {
  display: none;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 0 4px;
  word-break: break-all;
  max-width: 110px;
}
.upload-box.has-file .upload-filename {
  display: block;
}
.upload-box.has-file .upload-label {
  display: none;
}
.upload-input {
  display: none !important;
}

/* ── Form actions ────────────────────────────────────────────── */
/* Upload guidelines block */
.rt-guidelines {
  background: #fff;
  margin-bottom: 8px;
}
.rt-guidelines-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbea;
  border: 1.5px solid #f6d84e;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.rt-guidelines-icon {
  font-size: 18px;
  color: #d4a017;
  flex-shrink: 0;
}
.rt-guidelines-steps {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rt-guidelines-steps li {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}
.rt-guidelines-steps li span {
  display: block;
}
.btn-rt-download-tpl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-rt-download-tpl:hover {
  background: #2e1f3e;
  color: #fff;
  text-decoration: none;
}

.rt-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
}
/* Raise ticket — required field error states */
.rt-invalid,
.rt-radio-group.rt-invalid input[type="radio"] + * {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12) !important;
}
.upload-area.rt-invalid .upload-box {
  border-color: #e53e3e !important;
  background: rgba(229, 62, 62, 0.04) !important;
}
.rt-radio-group.rt-invalid {
  outline: 2px solid rgba(229, 62, 62, 0.4);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Validation error banner */
.rt-validation-error {
  background: #fff5f5;
  border: 1.5px solid #fc8181;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.rt-ve-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #c53030;
  margin-bottom: 8px;
}
.rt-ve-header i {
  font-size: 16px;
  flex-shrink: 0;
}
.rt-ve-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rt-ve-list li {
  font-size: 13px;
  color: #c53030;
}

.rt-field-inline-error {
  font-size: 12px;
  color: #c53030;
  margin-top: 4px;
}

.btn-rt-submit {
  padding: 10px 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.btn-rt-submit:hover {
  background: var(--primary-dark, #3c2953);
}
.btn-rt-submit:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
}
.btn-rt-cancel {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}
.btn-rt-cancel:hover {
  color: var(--text-dark);
  border-color: var(--text-muted);
}
.rt-input.rt-invalid,
.rt-select.rt-invalid,
.rt-textarea.rt-invalid {
  border-color: #e53e3e;
}
.rt-field-input.rt-invalid-field .rt-label,
.rt-field-textarea.rt-invalid-field .rt-label {
  color: #e53e3e;
}

/* ═══════════════════════════════════════════════════════════════
   Raise a Ticket — Success Screen
   ═══════════════════════════════════════════════════════════════ */

.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #62ad6a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.success-icon .bi {
  font-size: 28px;
  color: #fff;
}
.success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
}
.success-ticket-id {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 16px;
}
.success-subtitle {
  font-size: 14px;
  color: var(--text-body);
  margin: 0 0 4px;
}
.success-hours {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 32px;
}
.success-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-another-issue {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-another-issue:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-see-tickets {
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-see-tickets:hover {
  background: var(--primary-dark, #3c2953);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   Issue page — fixed-height viewport with internal scroll
   ═══════════════════════════════════════════════════════════════ */
.page-issue {
  height: 100vh;
  overflow: hidden;
}
.page-issue .content-area {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

#faq_content_container {
  height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Always-visible styled scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}
#faq_content_container::-webkit-scrollbar {
  width: 6px;
}
#faq_content_container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
#faq_content_container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}
#faq_content_container::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* ═══════════════════════════════════════════════════════════════
   Category card accordion (support.php)
   ═══════════════════════════════════════════════════════════════ */
.cat-accordion-header {
  cursor: default;
  display: flex;
  align-items: center;
}
.cat-toggle-btn {
  border: none;
  background: none;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.15s;
}
.cat-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.cat-toggle-icon {
  font-size: 13px;
  display: block;
  transition: transform 0.2s ease;
}
.category-card.is-open .cat-toggle-icon {
  transform: rotate(180deg);
}
.cat-card-body {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   Raise Ticket — 2-column field grid
   ═══════════════════════════════════════════════════════════════ */
.rt-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.rt-fields-grid .rt-field.col-full {
  grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════════════════════════
   Ticket Detail page — layout
   ═══════════════════════════════════════════════════════════════ */
.page-td {
  height: 100vh;
  overflow: hidden;
}
.page-td .content-area {
  height: 100%;
  overflow-y: auto;
  padding-bottom: 60px;
}

.td-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
}
.td-left {
  flex: 0 0 55%;
  max-width: 55%;
}
.td-right {
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--border);
  padding-left: 32px;
}

/* Title + date */
.td-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
  line-height: 1.35;
}
.td-created {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.td-status-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.td-status-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}
.td-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
}
/* Pill backgrounds for td-status-badge */
.td-status-badge.status-closed,
.td-status-badge.status-resolved,
.td-status-badge.status-complete,
.td-status-badge.status-completed {
  background: rgba(98, 173, 106, 0.15);
  color: var(--status-green);
}
.td-status-badge.status-in-progress {
  background: rgba(245, 166, 35, 0.15);
  color: var(--status-orange);
}
.td-status-badge.status-junk {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-muted);
}
.td-status-badge.status-issue-raised,
.td-status-badge.status-pending {
  background: rgba(239, 68, 68, 0.12);
  color: var(--status-red);
}
/* fallback for any other status */
.td-status-badge {
  background: rgba(239, 68, 68, 0.12);
}

/* Description row (task_details.detail) */
.td-description {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-light);
}
.td-description-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.55;
  word-break: break-word;
}

/* Grouped additional_info sections */
.td-info-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}
.td-info-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.td-info-group-title {
  margin: 0;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}
.td-info-group .td-info-fields {
  padding: 14px;
  gap: 16px;
}

/* Additional info field rows */
.td-info-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.td-info-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.td-info-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}
.td-info-value {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.5;
  word-break: break-word;
}
.td-info-html {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  word-break: break-word;
}
.td-info-html p {
  margin: 0 0 6px;
}
.td-info-html ul,
.td-info-html ol {
  padding-left: 18px;
  margin: 0 0 6px;
}
.td-info-na {
  color: var(--text-muted);
  font-style: italic;
  font-size: 13px;
}

/* File/image display */
.td-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.td-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.td-video-thumb {
  width: 96px;
  height: 96px;
  background: #f0f2f5;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.td-play-icon {
  font-size: 24px;
  color: var(--primary);
}
.td-video-label {
  font-size: 11px;
  color: var(--text-muted);
}
.td-file-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
}

/* ── Updates (right column) ─────────────────────────────────── */
/* ── Ticket detail action bar ──────────────────────────────── */
.td-action-bar {
  margin-bottom: 16px;
}
.td-action-bar-reply {
  display: flex;
  align-items: center;
}
.td-feedback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.td-feedback-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.td-feedback-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.td-feedback-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}
.td-reopen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.td-reopen-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.td-reopen-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.td-reopen-valid {
  font-size: 12px;
  color: var(--text-muted);
}
.td-reopen-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-td-reopen {
  padding: 5px 13px;
  border: 1px solid #000;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}
.btn-td-reopen:hover:not(:disabled) {
  border-color: #4e39d5;
  background: #4e39d5;
  color: #fff;
}
.btn-td-reopen:disabled {
  border-color: #e5e7eb;
  color: #9ca3af;
  background: #f3f4f6;
  cursor: not-allowed;
}
.td-actions-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 20px;
}
/* Ticket detail action bar — same default + hover as ticket list */
.td-action-bar .btn-act-reply,
.td-action-bar .btn-act-feedback,
.td-action-bar .btn-act-reopen,
.td-action-bar .btn-td-reopen {
  border-color: #000;
  color: var(--text-dark);
  background: #fff;
}
.td-action-bar .btn-act-reply:hover,
.td-action-bar .btn-act-feedback:hover,
.td-action-bar .btn-act-reopen:hover,
.td-action-bar .btn-td-reopen:hover:not(:disabled) {
  border-color: #4e39d5;
  background: #4e39d5;
  color: #fff;
}
.td-action-bar .btn-td-reopen:disabled {
  border-color: #e5e7eb;
  color: #9ca3af;
  background: #f3f4f6;
  cursor: not-allowed;
}
/* ── end action bar ──────────────────────────────────────────── */

.td-updates-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 20px;
}
.td-no-updates {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}
.td-no-updates-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}
.td-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.td-update-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.td-update-row:last-child {
  border-bottom: none;
}

/* Date column: date box + sender below */
.td-date-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 60px;
}

/* Date box */
.td-date-box {
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--primary);
  border-radius: 6px;
  overflow: hidden;
  height: fit-content;
  min-height: 52px;
}
.td-date-day {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  padding: 4px 0 2px;
}
.td-date-month {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  padding-bottom: 4px;
}
.td-date-new {
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 4px;
  width: 100%;
  text-align: center;
}

/* Update content */
.td-update-content {
  flex: 1;
  min-width: 0;
}
.td-update-msg {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0 0 8px;
  word-break: break-word;
}
.td-show-more {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  font-family: inherit;
}
.td-update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.td-update-time {
  font-size: 12px;
  color: var(--text-muted);
}
.td-sender-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-support {
  background: var(--primary-light);
  color: var(--primary);
}
.tag-user {
  background: #e8f5ff;
  color: #0088cc;
}

/* Attachment chips */
.td-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.td-att-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-body);
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  text-decoration: none;
  white-space: nowrap;
}
.td-att-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.td-att-thumb {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
}
/* Ticket-level attachments section (below ticket info) */
.td-ticket-attachments {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.td-att-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  align-items: flex-start;
}
.td-att-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 80px;
}
.td-att-grid-thumb {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: opacity 0.15s, border-color 0.15s;
}
.td-att-grid-item:hover .td-att-grid-thumb {
  opacity: 0.85;
  border-color: var(--primary);
}
.td-att-grid-name {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  word-break: break-all;
  line-height: 1.3;
  max-width: 80px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.td-download-all {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  padding: 4px 6px;
}
.td-download-all:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .td-layout {
    flex-direction: column;
  }
  .td-left {
    flex: none;
    max-width: 100%;
  }
  .td-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 24px;
  }
  .rt-fields-grid {
    grid-template-columns: 1fr;
  }
  .rt-fields-grid .rt-field.col-full {
    grid-column: 1;
  }
}

/* ============================================================
   Login Page — split-screen layout
   ============================================================ */
.login-body {
  margin: 0;
  padding: 0;
  background: var(--sidebar-bg);
  min-height: 100vh;
}

/* Two-column full-height layout */
.login-page {
  display: flex;
  min-height: 100vh;
}

/* ── Left: branding panel ───────────────────────── */
.login-panel-left {
  width: 420px;
  min-width: 340px;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px 36px;
  flex-shrink: 0;
}
.login-brand {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.login-brand-logo {
  max-height: 36px;
  object-fit: contain;
}
.login-brand-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin: 0;
}
/* Decorative circles on left panel */
.login-panel-left::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: rgba(113, 101, 227, 0.1);
  border-radius: 50%;
  bottom: 60px;
  left: -80px;
  pointer-events: none;
}
.login-panel-left {
  position: relative;
  overflow: hidden;
}
.login-brand-footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.04em;
}

/* ── Right: form panel ──────────────────────────── */
.login-panel-right {
  flex: 1;
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.login-form-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.09);
  padding: 44px 40px 40px;
  width: 100%;
  max-width: 400px;
}
.login-form-header {
  margin-bottom: 28px;
}
.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.login-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.login-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}
.login-input-wrap {
  position: relative;
}
.login-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}
.login-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.login-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(113, 101, 227, 0.12);
}
.login-input.login-input-err {
  border-color: #ef4444;
}
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2px;
  transition: opacity 0.15s, transform 0.1s;
  width: 100%;
  letter-spacing: 0.01em;
}
.login-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}
.login-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.login-spin {
  display: inline-block;
  animation: loginSpin 0.75s linear infinite;
}
@keyframes loginSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── OTP input boxes ────────────────────────────────────────── */
.otp-input-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.otp-box {
  width: 56px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  outline: none;
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  caret-color: var(--primary);
}
.otp-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 233, 93, 47), 0.12);
}
.otp-box.otp-filled {
  border-color: var(--primary);
}

/* ── OTP footer (resend + back) ─────────────────────────────── */
.otp-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.otp-resend-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.otp-resend-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.15s;
}
.otp-resend-btn:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}
.otp-resend-btn:not(:disabled):hover {
  text-decoration: underline;
}
.otp-back-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s;
}
.otp-back-btn:hover {
  color: var(--text-main);
}

@media (max-width: 640px) {
  .login-panel-left {
    display: none;
  }
  .login-panel-right {
    background: var(--sidebar-bg);
  }
  .login-form-box {
    box-shadow: none;
    border-radius: 0;
    background: #fff;
    padding: 36px 24px;
  }
  .otp-box {
    width: 48px;
    height: 52px;
    font-size: 20px;
  }
}

/* ============================================================
   Sidebar — User dropdown
   ============================================================ */
.sidebar-user-wrap {
  position: relative;
}
.sidebar-user {
  cursor: pointer;
}
.sidebar-user-menu {
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.sdum-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sdum-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.sdum-item i {
  font-size: 15px;
}

/* ============================================================
   Lightbox modal
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.lightbox-open {
  overflow: hidden;
}
.lightbox-inner {
  position: relative;
  background: #1a1a2e;
  border-radius: 12px;
  padding: 16px;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 1;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}
.lightbox-img-wrap {
  max-height: calc(80vh - 80px);
  overflow: auto;
  border-radius: 6px;
}
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox-actions {
  display: flex;
  gap: 10px;
}
.lightbox-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  padding: 7px 18px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.lightbox-dl-btn:hover {
  opacity: 0.88;
  color: #fff;
}

/* ============================================================
   My Tickets — filter row + date filter button
   ============================================================ */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-by-label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}
.tbar-filter-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}
.tbar-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 0 4px;
  white-space: nowrap;
}
.tbar-filter-icon {
  font-size: 11px;
}
.tbar-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 11px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.tbar-clear-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}
.tbar-filter-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 10px;
}

/* ============================================================
   Date Picker Modal — fixed centered
   ============================================================ */
.dp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 798;
  background: rgba(0, 0, 0, 0.3);
}
.dp-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 799;
}

.dp-modal-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  padding: 22px 24px 20px;
  width: 460px;
  max-width: 98vw;
}
.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.dp-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.dp-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 2px 4px;
  line-height: 1;
}
.dp-close:hover {
  color: var(--text-dark);
}
.dp-inputs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
}
.dp-input-wrap {
  flex: 1;
}
.dp-input-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 3px;
}
.dp-input {
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  background: transparent;
  width: 100%;
  cursor: default;
}
.dp-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
.dp-input-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 14px;
  flex-shrink: 0;
}
.dp-calendar {
  margin-bottom: 6px;
}
.dp-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dp-cal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.dp-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.dp-nav-btn:hover {
  background: var(--bg-page);
  color: var(--text-dark);
}
.dp-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-bottom: 6px;
}
.dp-day-headers span {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 4px 0;
}
.dp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dp-day {
  text-align: center;
  padding: 7px 2px;
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.12s, color 0.12s;
  user-select: none;
}
.dp-day:hover:not(.dp-day-empty) {
  background: var(--primary-light);
  color: var(--primary);
}
.dp-day-empty {
  cursor: default;
}
.dp-today {
  font-weight: 700;
}
.dp-sel-start,
.dp-sel-end {
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  border-radius: 50%;
}
.dp-in-range {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 0;
}
.dp-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 14px;
}
.dp-footer {
  display: flex;
  align-items: center;
  gap: 0;
}
.dp-apply-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.dp-apply-btn:hover {
  opacity: 0.88;
}
.dp-footer-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 16px;
}
.dp-close-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.dp-close-btn:hover {
  color: var(--text-dark);
}

/* ============================================================
   Ticket list — Pagination
   ============================================================ */
.pg-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-top: 1px solid var(--border);
}
.pg-info {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.pg-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pg-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  user-select: none;
}
.pg-btn:hover:not(:disabled):not(.active) {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
.pg-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}
.pg-btn:disabled {
  opacity: 0.38;
  cursor: default;
}
.pg-ellipsis {
  padding: 0 6px;
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
  line-height: 32px;
}

/* ============================================================
   Ticket action modals — button styles defined near .btn-act-view above
   ============================================================ */

/* ============================================================
   Ticket action modals — shared (Reopen + Feedback)
   ============================================================ */
.tm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 900;
}
.tm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 901;
  width: 480px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}
.tm-modal-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.tm-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}
.tm-close-btn {
  background: none;
  border: none;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.tm-close-btn:hover {
  color: var(--text-dark);
}
.tm-modal-body {
  padding: 20px;
}
.tm-modal-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 20px;
}
.tm-btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.tm-btn-submit:hover {
  opacity: 0.88;
}
.tm-btn-cancel {
  background: #fff;
  color: var(--text-dark);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s;
}
.tm-btn-cancel:hover {
  border-color: #aaa;
}

/* ── Reopen modal ─────────────────────────────────────────── */
.ro-fieldset {
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 14px 16px 16px;
  margin: 0;
}
.ro-legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 0 6px;
}
.ro-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  resize: vertical;
  font-size: 13.5px;
  color: var(--text-dark);
  background: #fff;
  min-height: 80px;
  padding: 8px 12px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.ro-textarea:focus {
  border-color: var(--primary);
}
.ro-textarea::placeholder {
  color: var(--text-muted);
}
.ro-textarea.is-invalid,
.fb-textarea.is-invalid {
  border-color: #e53e3e;
}
.ro-field-error {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
}
.required-star {
  color: #e53e3e;
}
.ro-upload-area {
  margin-top: 12px;
}
.ro-upload-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 90px;
  height: 80px;
  border: 1.5px dashed #c5cae9;
  border-radius: 8px;
  cursor: pointer;
  color: var(--primary);
  background: #f7f8ff;
  transition: border-color 0.15s;
  font-size: 12px;
  font-weight: 500;
  padding: 10px;
}
.ro-upload-box:hover {
  border-color: var(--primary);
}
.ro-upload-box.has-file {
  border-style: solid;
}
.ro-upload-box.has-file .ro-upload-label {
  display: none;
}
.ro-upload-icon {
  font-size: 20px;
}
.ro-upload-label {
  font-size: 12px;
}

/* ── Feedback modal ───────────────────────────────────────── */
.fb-question {
  font-size: 13.5px;
  color: var(--text-dark);
  margin: 0 0 14px;
  font-weight: 500;
}
.fb-rating-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.fb-rating-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.fb-star {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #aaa;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-star[data-rating="1"] {
  color: #ef4444;
  border-color: #ef4444;
}
.fb-star[data-rating="2"] {
  color: #f97316;
  border-color: #f97316;
}
.fb-star[data-rating="3"] {
  color: #eab308;
  border-color: #eab308;
}
.fb-star[data-rating="4"] {
  color: #62ad6a;
  border-color: #62ad6a;
}
.fb-star[data-rating="5"] {
  color: #16a34a;
  border-color: #16a34a;
}
.fb-rating-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-align: center;
  min-height: 14px;
}
.fb-detail-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 0 10px;
}
.fb-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-dark);
  resize: vertical;
  min-height: 88px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.fb-textarea:focus {
  border-color: var(--primary);
}
.fb-textarea::placeholder {
  color: var(--text-muted);
}
.fb-char-counter {
  text-align: right;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
