/* ══════════════════════════════════════════
   NEXORA SUPPORT — support.css
   Extends style.css — do not modify style.css
══════════════════════════════════════════ */

/* ── HERO ── */
.sup-hero {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 55%, #0d0d0d 100%);
  padding: 120px 0 56px;
  overflow: hidden;
  text-align: center;
}
.sup-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.sup-hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(229,57,53,0.2), transparent 70%);
}
.sup-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}
.sup-hero-inner { position: relative; z-index: 1; }
.sup-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(229,57,53,0.12);
  border: 1px solid rgba(229,57,53,0.3);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.sup-hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.sup-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.sup-search {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
.sup-search-icon { position: absolute; left: 18px; color: var(--gray); font-size: 0.9rem; }
.sup-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 44px 15px 44px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--dark);
  background: transparent;
}
.sup-search-input::placeholder { color: #aaa; }
.sup-search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.9rem;
  cursor: pointer;
  display: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  transition: all .2s;
}
.sup-search-clear:hover { background: var(--bg); color: var(--red); }
.sup-search-clear.show { display: flex; align-items: center; justify-content: center; }
.sup-search-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  min-height: 18px;
}
.sup-search-hint b { color: #fff; }

/* ── QUICK HELP ── */
.sup-quick { background: #fff; }
.quick-help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.quick-help-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.quick-help-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(229,57,53,0.2);
}
.qh-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: rgba(229,57,53,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--red);
  transition: all .25s;
}
.quick-help-card:hover .qh-icon { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.05); }
.quick-help-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.quick-help-card p { font-size: 0.82rem; color: var(--gray); line-height: 1.55; flex: 1; }
.qh-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
  margin-top: 2px;
}
.quick-help-card:hover .qh-link { gap: 9px; }

.sup-no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--gray);
}
.sup-no-results.show { display: flex; }
.sup-no-results i { font-size: 2rem; color: var(--border); }
.sup-no-results p { font-size: 0.9rem; }

/* ── MAIN GRID (TICKET + CHAT) ── */
.sup-main { background: var(--bg); }
.sup-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

/* TICKET CARD */
.ticket-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.ticket-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.ticket-head-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.ticket-title { font-size: 1.25rem; font-weight: 800; color: var(--dark); letter-spacing: -0.3px; }
.ticket-sub { font-size: 0.85rem; color: var(--gray); }

.ticket-form { display: flex; flex-direction: column; gap: 16px; }
.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tf-group { display: flex; flex-direction: column; gap: 6px; }
.tf-label { font-size: 0.8rem; font-weight: 600; color: var(--dark); }
.tf-input, .tf-select, .tf-textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.87rem;
  font-family: var(--font);
  color: var(--dark);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.tf-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.tf-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.tf-input:focus, .tf-select:focus, .tf-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.08);
}
.tf-input::placeholder, .tf-textarea::placeholder { color: #aaa; }

.tf-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.tf-upload:hover { border-color: var(--red); background: rgba(229,57,53,0.03); }
.tf-upload i { font-size: 1.4rem; color: var(--red); }
.tf-upload span { font-size: 0.8rem; color: var(--gray); }
.tf-upload.has-file { border-color: var(--success); background: rgba(16,185,129,0.04); }
.tf-upload.has-file i { color: var(--success); }

.tf-submit { width: 100%; justify-content: center; padding: 14px; font-size: 0.95rem; margin-top: 2px; }
.tf-success {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}
.tf-success.show { display: flex; animation: fadeInUp .4s ease; }

/* CHAT CARD */
.sup-chat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 600px;
  position: sticky;
  top: 84px;
}
.sup-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #111 0%, #1a0505 100%);
}
.sup-chat-avatar {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #333, #111);
  border: 2px solid rgba(229,57,53,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--red);
  flex-shrink: 0;
}
.sup-chat-online {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 11px; height: 11px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid #111;
}
.sup-chat-title { font-size: 1rem; font-weight: 800; color: #fff; }
.sup-chat-sub { font-size: 0.75rem; color: rgba(255,255,255,0.55); }

.sup-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sup-msg { display: flex; gap: 10px; align-items: flex-start; animation: fadeInUp .3s ease; }
.sup-msg.user-msg { flex-direction: row-reverse; }
.sup-msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a0505, #0d0d0d);
  border: 1.5px solid rgba(229,57,53,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.user-msg .sup-msg-avatar { background: var(--red); color: #fff; border-color: var(--red-dark); }
.sup-msg-bubble {
  max-width: 78%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.85rem;
  color: var(--dark);
  line-height: 1.55;
}
.sup-msg-name { font-size: 0.68rem; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.user-msg .sup-msg-bubble { background: var(--red); color: #fff; border-color: var(--red-dark); }

.sup-chat-typing { display: flex; gap: 4px; align-items: center; }
.sup-chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray);
  animation: typing-bounce .8s infinite;
}
.sup-chat-typing span:nth-child(2) { animation-delay: .15s; }
.sup-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.sup-chat-suggestions {
  display: flex;
  gap: 7px;
  padding: 0 16px 10px;
  flex-wrap: wrap;
}
.sup-chat-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 0.74rem;
  color: var(--dark);
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
}
.sup-chat-chip:hover { border-color: var(--red); color: var(--red); background: rgba(229,57,53,0.04); }

.sup-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.sup-chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  color: var(--dark);
  transition: border-color .2s;
}
.sup-chat-input:focus { border-color: var(--red); }
.sup-chat-send {
  width: 40px; height: 40px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background .2s, transform .1s;
  flex-shrink: 0;
}
.sup-chat-send:hover { background: var(--red-dark); }
.sup-chat-send:active { transform: scale(0.95); }

/* ── LIVE SUPPORT ── */
.sup-live { background: #fff; }
.live-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.live-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.live-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(229,57,53,0.2); }
.live-card-priority {
  background: linear-gradient(135deg, #111 0%, #1a0505 100%);
  border-color: rgba(229,57,53,0.3);
}
.live-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.live-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: rgba(229,57,53,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--red);
  transition: all .25s;
}
.live-card:hover .live-icon { background: var(--red); color: #fff; }
.live-card-priority .live-icon { background: rgba(229,57,53,0.2); }
.live-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--dark); }
.live-card-priority h3 { color: #fff; }
.live-card p { font-size: 0.8rem; color: var(--gray); line-height: 1.55; flex: 1; }
.live-card-priority p { color: rgba(255,255,255,0.6); }
.live-response {
  font-size: 0.74rem;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.live-response i { font-size: 0.7rem; }
.live-btn { width: 100%; justify-content: center; margin-top: 4px; font-size: 0.82rem; padding: 10px; }

/* ── COMMON ISSUES (ACCORDION) ── */
.sup-common { background: var(--bg); }
.common-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.common-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.common-item.open { border-color: rgba(229,57,53,0.3); box-shadow: 0 4px 20px rgba(229,57,53,0.08); }
.common-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  font-family: var(--font);
  transition: color .2s;
}
.common-q span { display: flex; align-items: center; gap: 11px; }
.common-q span i { color: var(--red); font-size: 0.9rem; width: 18px; text-align: center; }
.common-q:hover { color: var(--red); }
.common-item.open .common-q { color: var(--red); }
.common-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(229,57,53,0.08);
  color: var(--red) !important;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s, background .2s;
}
.common-item.open .common-icon { transform: rotate(45deg); background: var(--red); color: #fff !important; }
.common-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.common-a p { padding: 0 20px 20px 49px; font-size: 0.86rem; color: var(--gray); line-height: 1.7; }

/* ── SERVICE STATUS ── */
.sup-status { background: #fff; }
.status-all-good {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--success);
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
  position: relative;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.5); opacity: 0; }
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.status-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.status-card:hover { box-shadow: var(--shadow-md); }
.status-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.status-name { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.status-state { font-size: 0.78rem; color: var(--success); font-weight: 600; }

/* ── FEATURE REQUESTS ── */
.sup-features { background: var(--bg); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(229,57,53,0.2); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: rgba(229,57,53,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--red);
  transition: all .25s;
}
.feature-card:hover .feature-icon { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.05); }
.feature-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--dark); }
.feature-card p { font-size: 0.8rem; color: var(--gray); line-height: 1.55; }

/* ── EMERGENCY ── */
.sup-emergency { background: #fff; }
.emergency-bar { background: var(--red) !important; }
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.emergency-card {
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
  border: 1.5px solid rgba(229,57,53,0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.emergency-card:hover {
  box-shadow: 0 10px 30px rgba(229,57,53,0.15);
  transform: translateY(-4px);
  border-color: var(--red);
}
.emergency-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}
.emergency-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--dark); }
.emergency-card p { font-size: 0.8rem; color: var(--gray); line-height: 1.55; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media(max-width:1100px) {
  .quick-help-grid { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: repeat(3, 1fr); }
  .status-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .emergency-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:900px) {
  .sup-main-grid { grid-template-columns: 1fr; }
  .sup-chat-card { position: relative; top: 0; height: 540px; }
}
@media(max-width:768px) {
  .sup-hero-title { font-size: 2.1rem; }
  .sup-hero { padding: 100px 0 48px; }
  .quick-help-grid { grid-template-columns: 1fr; }
  .tf-row { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .emergency-grid { grid-template-columns: 1fr; }
  .common-q { font-size: 0.88rem; padding: 16px; }
  .common-a p { padding-left: 20px; }
}
@media(max-width:480px) {
  .sup-hero-title { font-size: 1.8rem; }
  .status-grid { grid-template-columns: 1fr; }
}