/* ===================================================
   PACABOT — SUPPORT PAGE STYLES
   Dark premium theme. Matches frontend/css/style.css.
   Self-contained. No CDN dependencies.
   =================================================== */

/* ---- RESET & BASE --------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base:      #0D1117;
  --bg-surface:   #161B22;
  --bg-elevated:  #1C2128;
  --bg-hover:     #21262D;

  --cyan:         #00D4FF;
  --cyan-dim:     rgba(0, 212, 255, 0.12);
  --cyan-glow:    rgba(0, 212, 255, 0.35);
  --gold:         #F0B429;
  --gold-dim:     rgba(240, 180, 41, 0.12);
  --gold-glow:    rgba(240, 180, 41, 0.35);
  --green:        #39D353;
  --green-dim:    rgba(57, 211, 83, 0.15);
  --red:          #F85149;
  --red-dim:      rgba(248, 81, 73, 0.15);
  --orange:       #F0A429;
  --orange-dim:   rgba(240, 164, 41, 0.15);

  --text-primary:    #E6EDF3;
  --text-secondary:  #8B949E;
  --text-muted:      #484F58;
  --text-dim:        #30363D;

  --border:       rgba(48, 54, 61, 0.8);
  --border-cyan:  rgba(0, 212, 255, 0.25);
  --border-gold:  rgba(240, 180, 41, 0.25);

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --font: 'Alexandria', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 900px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: #33DDFF; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}


/* ---- NAV ------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--cyan), #0099BB);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--bg-base);
}

.logo-mark.small {
  width: 26px;
  height: 26px;
  font-size: 13px;
  border-radius: 6px;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-by {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.nav-cta:hover {
  background: rgba(0, 212, 255, 0.2);
  color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* ---- NAV ACTIONS ----------------------------------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}
.lang-toggle:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); }
.lang-ar, .lang-en { transition: color var(--transition); }
.lang-ar.active, .lang-en.active { color: var(--gold); font-weight: 500; }
.lang-sep { opacity: 0.3; }

/* ---- RTL ADJUSTMENTS ------------------------------- */
[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .faq-answer-inner ol,
[dir="rtl"] .faq-answer-inner ul {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .code-block {
  border-left: none;
  border-right: 3px solid var(--cyan);
}

[dir="rtl"] .data-table th {
  text-align: right;
}

[dir="rtl"] .restart-card {
  flex-direction: row-reverse;
}

@media (max-width: 640px) {
  [dir="rtl"] .restart-card {
    flex-direction: column;
    align-items: flex-end;
  }
}

/* ---- SUPPORT HERO ---------------------------------- */
.support-hero {
  position: relative;
  padding: 80px 24px 72px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-1 {
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-2 {
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.06), transparent 70%);
  bottom: -40px;
  right: 20%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dim);
  border: 1px solid rgba(57, 211, 83, 0.3);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 28px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ---- RESTART BANNER ------------------------------- */
.restart-banner {
  padding: 0 24px 48px;
}

.restart-card {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.06);
}

@media (max-width: 640px) {
  .restart-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}

.restart-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.restart-content {
  flex: 1;
  min-width: 0;
}

.restart-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.restart-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.restart-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-restart {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font);
}

.btn-restart:hover {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-restart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-restart.spinning svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.restart-note {
  font-size: 12px;
  color: var(--text-secondary);
  min-height: 18px;
  text-align: center;
}

.restart-note.success { color: var(--green); }
.restart-note.error   { color: var(--red);   }


/* ---- FAQ SECTION ---------------------------------- */
.faq-section {
  padding: 0 24px 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.faq-list {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(48, 54, 61, 1);
}

.faq-item.open {
  border-color: var(--border-cyan);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--cyan);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 1000px;
}

.faq-answer-inner {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.faq-answer-inner p,
.faq-answer-inner ol,
.faq-answer-inner ul {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.faq-answer-inner p:last-child,
.faq-answer-inner ol:last-child,
.faq-answer-inner ul:last-child {
  margin-bottom: 0;
}

.faq-answer-inner ol,
.faq-answer-inner ul {
  padding-left: 20px;
}

.faq-answer-inner li {
  margin-bottom: 8px;
}

.faq-answer-inner strong {
  color: var(--text-primary);
}

/* Code-block style for prompt examples */
.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 10px 0;
  font-size: 14px;
  color: var(--cyan);
  font-family: var(--font-mono);
  line-height: 1.5;
}

/* Info box */
.info-box {
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.info-box strong {
  color: var(--cyan);
}

.info-box.warning {
  background: var(--orange-dim);
  border-color: rgba(240, 164, 41, 0.3);
}

.info-box.warning strong {
  color: var(--orange);
}

/* Data table inside FAQ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 14px 0;
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.data-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}


/* ---- CONTACT SECTION ------------------------------ */
.contact-section {
  padding: 0 24px 80px;
}

.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.06);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.email-icon {
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
}

.dashboard-icon {
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.agent-icon {
  background: var(--green-dim);
  border: 1px solid rgba(57, 211, 83, 0.3);
  color: var(--green);
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.contact-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 8px;
}

.contact-hint {
  font-style: italic;
  color: var(--text-muted) !important;
}

.response-time {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

/* ---- Contact form card (replaces email card) ------ */
.contact-card--form {
  grid-column: 1 / -1;
}

.contact-form-desc {
  margin-bottom: 16px !important;
}

.contact-mini-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.contact-input::placeholder {
  color: var(--text-muted);
}

.contact-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.contact-input.field-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--cyan);
  color: #0D1117;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

[dir="rtl"] .contact-submit-btn {
  align-self: flex-start;
}

.contact-submit-btn:hover:not(:disabled) {
  opacity: 0.9;
  box-shadow: 0 0 16px var(--cyan-glow);
  transform: translateY(-1px);
}

.contact-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-form-msg {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.contact-form-msg.success {
  background: var(--green-dim);
  border: 1px solid rgba(57, 211, 83, 0.3);
  color: var(--green);
}

.contact-form-msg.error {
  background: var(--red-dim);
  border: 1px solid rgba(248, 81, 73, 0.35);
  color: var(--red);
}


/* ---- FOOTER --------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-by {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}


/* ---- TICKET FORM ---------------------------------- */
.ticket-section {
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
}

/* ---- Form layout ---------------------------------- */
.ticket-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.ticket-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.ticket-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

.ticket-field + .ticket-field,
.ticket-form-row + .ticket-field,
.ticket-field + .ticket-form-row {
  margin-top: 20px;
}

.ticket-section .section-header {
  margin-bottom: 40px;
}

/* ---- Labels --------------------------------------- */
.ticket-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---- Inputs & Textarea ---------------------------- */
.ticket-field input,
.ticket-field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.ticket-field input::placeholder,
.ticket-field textarea::placeholder {
  color: var(--text-muted);
}

.ticket-field input:focus,
.ticket-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.ticket-field input.field-invalid,
.ticket-field textarea.field-invalid,
.ticket-field select.field-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}

/* ---- Select wrapper ------------------------------- */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 44px 12px 16px;
  width: 100%;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

/* RTL — arrow on left side */
[dir="rtl"] .select-wrapper select {
  padding: 12px 16px 12px 44px;
}

.select-wrapper select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.select-arrow {
  position: absolute;
  inset-inline-end: 14px;
  pointer-events: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

/* ---- Inline field errors -------------------------- */
.field-error {
  font-size: 12px;
  color: var(--red);
  min-height: 16px;
  line-height: 1.4;
}

/* ---- Form footer ---------------------------------- */
.ticket-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.ticket-note {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}

/* ---- Submit button -------------------------------- */
.btn-submit-ticket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: #0D1117;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-submit-ticket:hover:not(:disabled) {
  opacity: 0.9;
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-1px);
}

.btn-submit-ticket:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit-ticket:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---- Spinner icon --------------------------------- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin-icon {
  animation: spin 0.8s linear infinite;
}

/* ---- Form-level error banner ---------------------- */
.ticket-form-error {
  margin-top: 16px;
  background: var(--red-dim);
  border: 1px solid rgba(248, 81, 73, 0.35);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 14px;
  padding: 12px 16px;
}

/* ---- Success panel -------------------------------- */
.ticket-success {
  background: var(--bg-surface);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.ticket-success-icon {
  width: 64px;
  height: 64px;
  background: var(--green-dim);
  border: 1px solid rgba(57, 211, 83, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--green);
}

.ticket-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.ticket-success p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.ticket-id-display {
  font-family: var(--font-mono);
  font-size: 20px !important;
  font-weight: 700;
  color: var(--cyan) !important;
  letter-spacing: 0.05em;
  margin: 16px 0 32px !important;
  padding: 12px 24px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  display: inline-block;
}

.btn-ticket-new {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  color: var(--cyan);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}

.btn-ticket-new:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 12px var(--cyan-glow);
}


/* ---- GETTING STARTED GUIDES ----------------------- */
.guides-section {
  padding: 0 24px 80px;
}

.guides-video-note {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.guides-video-icon {
  flex-shrink: 0;
  color: var(--gold);
  display: flex;
  align-items: center;
}

.guides-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.guide-card:hover {
  border-color: rgba(48, 54, 61, 1);
}

.guide-card.open {
  border-color: var(--border-cyan);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: background var(--transition);
}

.guide-card-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.guide-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-icon-account {
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
}

.guide-icon-tier {
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.guide-icon-server {
  background: var(--green-dim);
  border: 1px solid rgba(57, 211, 83, 0.3);
  color: var(--green);
}

.guide-icon-telegram {
  background: rgba(0, 136, 204, 0.12);
  border: 1px solid rgba(0, 136, 204, 0.3);
  color: #0088CC;
}

.guide-icon-skills {
  background: var(--orange-dim);
  border: 1px solid rgba(240, 164, 41, 0.3);
  color: var(--orange);
}

.guide-card-text {
  flex: 1;
  min-width: 0;
}

.guide-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.guide-card-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.guide-card-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.guide-expand-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  display: flex;
  align-items: center;
}

.guide-card.open .guide-expand-icon {
  transform: rotate(180deg);
  color: var(--cyan);
}

/* Guide detail (collapsible) */
.guide-card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-card.open .guide-card-detail {
  max-height: 2000px;
}

.guide-detail-inner {
  padding: 0 24px 24px;
  padding-top: 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-left: 64px;
}

.guide-detail-inner p,
.guide-detail-inner ol,
.guide-detail-inner ul {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.guide-detail-inner p:last-child,
.guide-detail-inner ol:last-child,
.guide-detail-inner ul:last-child {
  margin-bottom: 0;
}

.guide-detail-inner ol,
.guide-detail-inner ul {
  padding-left: 20px;
}

.guide-detail-inner li {
  margin-bottom: 8px;
}

.guide-detail-inner strong {
  color: var(--text-primary);
}

.guide-detail-inner .code-block {
  margin-left: 0;
}

.guide-detail-inner .info-box {
  margin-top: 14px;
}

.guide-detail-inner .data-table {
  margin: 14px 0;
}

/* RTL adjustments for guides */
[dir="rtl"] .guide-card-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .guide-card-text {
  text-align: right;
}

[dir="rtl"] .guide-detail-inner {
  margin-left: 0;
  margin-right: 64px;
}

[dir="rtl"] .guide-detail-inner ol,
[dir="rtl"] .guide-detail-inner ul {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .guide-detail-inner .code-block {
  border-left: none;
  border-right: 3px solid var(--cyan);
}

[dir="rtl"] .guide-detail-inner .data-table th {
  text-align: right;
}

[dir="rtl"] .guides-video-note {
  flex-direction: row-reverse;
}


/* ---- RESPONSIVE ----------------------------------- */
@media (max-width: 480px) {
  .nav-links { display: none; }
  .nav-actions { gap: 8px; }
  .nav-cta { display: none; }
  .support-hero { padding: 56px 20px 48px; }
  .faq-question { padding: 16px 18px; font-size: 15px; }
  .faq-answer-inner { padding: 0 18px 18px; padding-top: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 10px; }

  /* Ticket form responsive */
  .ticket-form { padding: 24px 20px; }
  .ticket-form-row { grid-template-columns: 1fr; gap: 0; }
  .ticket-form-row .ticket-field { margin-bottom: 20px; }
  .ticket-form-footer { flex-direction: column; align-items: stretch; }
  .btn-submit-ticket { justify-content: center; width: 100%; }
  .ticket-success { padding: 40px 20px; }

  /* Guides responsive */
  .guide-card-header { padding: 16px 18px; gap: 12px; }
  .guide-card-icon { width: 40px; height: 40px; }
  .guide-card-icon svg { width: 18px; height: 18px; }
  .guide-card-text h3 { font-size: 15px; }
  .guide-card-text p { font-size: 13px; }
  .guide-detail-inner { margin-left: 0; margin-right: 0; padding: 0 18px 18px; padding-top: 16px; }
  [dir="rtl"] .guide-detail-inner { margin-left: 0; margin-right: 0; }
  .guides-video-note { font-size: 12px; padding: 10px 14px; }
}
