/* ============================================================
   8XBET – CSKH (CUSTOMER SUPPORT) PAGE STYLES
   ============================================================ */

:root {
  --cs-primary:  #06b6d4;
  --cs-dark-btn: #0891b2;
  --cs-dark:     #001a1f;
  --cs-mid:      #003d47;
  --cs-light:    #ecfeff;
  --cs-teal:     #0e7490;
  --cs-white:    #ffffff;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #001a1f 0%, #003d47 50%, #065f6b 100%);
  padding: 60px 32px 56px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(6,182,212,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(8,145,178,.12) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero::after {
  content: '🎧 🎧 🎧 🎧 🎧';
  position: absolute; bottom: -8px; left: 0; right: 0;
  font-size: 2rem; letter-spacing: 70px;
  opacity: .04; pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,182,212,.18); border: 1px solid rgba(6,182,212,.4);
  color: var(--cs-primary); font-size: .78rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(2rem,4vw,3rem); font-weight: 900;
  color: #fff; line-height: 1.2; margin-bottom: 18px;
}
.page-hero h1 .hl { color: var(--cs-primary); }
.page-hero p {
  color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.75;
  max-width: 560px; margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-hero-primary {
  background: linear-gradient(90deg, var(--cs-dark-btn), var(--cs-primary));
  color: #fff; padding: 14px 30px; border-radius: 8px;
  font-weight: 800; font-size: .9rem; letter-spacing: .4px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 22px rgba(6,182,212,.45);
  transition: filter .2s, transform .2s;
}
.btn-hero-primary:hover { filter: brightness(1.12); transform: translateY(-2px); text-decoration: none; }
.btn-hero-secondary {
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.3);
  color: #fff; padding: 14px 28px; border-radius: 8px;
  font-weight: 700; font-size: .9rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
}
.pill i { color: var(--cs-primary); }

/* ════════════════════════════════════════
   HERO CHAT WIDGET
   ════════════════════════════════════════ */
.hero-chat-widget {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(6,182,212,.25);
  border-radius: 20px; overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
}
.chat-header {
  background: linear-gradient(90deg, var(--cs-mid), var(--cs-dark-btn));
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-agent { display: flex; align-items: center; gap: 12px; }
.agent-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(6,182,212,.3); border: 2px solid var(--cs-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--cs-primary); font-size: 1rem;
}
.agent-name { font-size: .82rem; font-weight: 700; color: #fff; }
.agent-status { font-size: .68rem; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; display: inline-block;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;}50%{opacity:.5;} }
.live-badge {
  background: #dc2626; color: #fff; font-size: .68rem; font-weight: 800;
  letter-spacing: .6px; padding: 3px 9px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 5px;
  animation: blink 1.5s ease-in-out infinite;
}
.chat-body {
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  min-height: 220px;
}
.chat-msg { display: flex; flex-direction: column; max-width: 82%; gap: 3px; }
.chat-msg span {
  padding: 9px 13px; border-radius: 12px; font-size: .8rem; line-height: 1.5;
}
.chat-msg time { font-size: .62rem; color: rgba(255,255,255,.35); }
.agent-msg { align-self: flex-start; }
.agent-msg span { background: rgba(6,182,212,.15); border: 1px solid rgba(6,182,212,.2); color: rgba(255,255,255,.9); border-radius: 4px 12px 12px 12px; }
.agent-msg time { align-self: flex-start; }
.user-msg { align-self: flex-end; }
.user-msg span { background: linear-gradient(135deg, var(--cs-dark-btn), var(--cs-primary)); color: #fff; border-radius: 12px 12px 4px 12px; }
.user-msg time { align-self: flex-end; }
.chat-input-bar {
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.03);
}
.chat-placeholder {
  flex: 1; font-size: .8rem; color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 8px 14px; border-radius: 20px;
}
.chat-send-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cs-dark-btn), var(--cs-primary));
  border: none; color: #fff; cursor: pointer; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  transition: filter .2s;
}
.chat-send-btn:hover { filter: brightness(1.15); }

/* ════════════════════════════════════════
   STATS BANNER
   ════════════════════════════════════════ */
.stats-banner {
  background: linear-gradient(90deg, var(--cs-mid), var(--cs-dark-btn));
  padding: 28px 32px;
}
.stats-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5,1fr); gap: 20px;
}
.stat-item { text-align: center; }
.s-num { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.s-lbl { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 4px; font-weight: 600; }

/* ════════════════════════════════════════
   SECTION WRAPPERS
   ════════════════════════════════════════ */
.section      { padding: 64px 32px; }
.section-alt  { background: var(--cs-light); }
.section-dark { background: var(--cs-dark); }
.container    { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cs-light); color: var(--cs-dark-btn);
  font-size: .75rem; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.section-dark .section-head .eyebrow { background: rgba(6,182,212,.15); color: var(--cs-primary); }
.section-head h2 {
  font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 900;
  color: var(--cs-dark); line-height: 1.25;
}
.section-dark .section-head h2 { color: #fff; }
.section-head p { color: #666; font-size: 1rem; margin-top: 12px; max-width: 640px; margin-left:auto; margin-right:auto; }
.section-dark .section-head p { color: rgba(255,255,255,.55); }
.hl-cyan { color: var(--cs-primary); }

/* ════════════════════════════════════════
   CHANNEL GRID
   ════════════════════════════════════════ */
.channel-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 22px;
}
.channel-card {
  background: #fff; border-radius: 18px; padding: 28px 22px;
  border: 1px solid rgba(6,182,212,.15);
  box-shadow: 0 6px 28px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; gap: 12px;
}
.channel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(6,182,212,.18);
  border-color: rgba(6,182,212,.45);
}
.ch-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--cs-mid), var(--cs-dark-btn));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
}
.channel-card h3 { font-size: 1rem; font-weight: 800; color: var(--cs-dark); }
.channel-card p { font-size: .8rem; color: #777; line-height: 1.6; flex: 1; }
.ch-meta { display: flex; flex-direction: column; gap: 5px; }
.ch-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 5px;
}
.badge-green  { background: #dcfce7; color: #166534; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-teal   { background: #ccfbf1; color: #0f766e; }
.badge-gray   { background: #f3f4f6; color: #374151; }
.ch-time { font-size: .72rem; color: #999; font-weight: 600; }
.ch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, var(--cs-dark-btn), var(--cs-primary));
  color: #fff; padding: 9px 18px; border-radius: 7px;
  font-size: .78rem; font-weight: 700; text-decoration: none;
  transition: filter .2s; align-self: flex-start;
}
.ch-btn:hover { filter: brightness(1.1); text-decoration: none; }

/* ════════════════════════════════════════
   TABLE
   ════════════════════════════════════════ */
.keo-table-wrap {
  overflow-x: auto; border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.keo-table {
  width: 100%; border-collapse: collapse; background: #fff;
}
.keo-table thead th {
  background: linear-gradient(90deg, var(--cs-mid), var(--cs-dark-btn));
  color: #fff; padding: 15px 20px;
  font-size: .82rem; font-weight: 800; text-align: left;
  letter-spacing: .4px;
}
.keo-table tbody tr { border-bottom: 1px solid rgba(6,182,212,.1); }
.keo-table tbody tr:last-child { border-bottom: none; }
.keo-table tbody tr:hover { background: rgba(6,182,212,.04); }
.keo-table td {
  padding: 14px 20px; font-size: .87rem; color: #444; vertical-align: middle;
}
.keo-table td:first-child { font-weight: 700; color: var(--cs-dark); }
.keo-tag {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 5px;
}
.tag-green  { background: #dcfce7; color: #166534; }
.tag-blue   { background: #dbeafe; color: #1e40af; }
.tag-yellow { background: #fef9c3; color: #854d0e; }

/* ════════════════════════════════════════
   STEPS
   ════════════════════════════════════════ */
.steps-list { display: flex; flex-direction: column; gap: 18px; max-width: 900px; margin: 0 auto; }
.step-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 24px; background: rgba(255,255,255,.05);
  border-radius: 14px; border-left: 4px solid var(--cs-primary);
  border: 1px solid rgba(6,182,212,.15);
}
.si-num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cs-mid), var(--cs-primary));
  color: #fff; font-size: 1.1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.step-item h4 { font-size: .92rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.step-item p  { font-size: .84rem; color: rgba(255,255,255,.6); line-height: 1.65; margin: 0; }

/* ════════════════════════════════════════
   FEATURES GRID
   ════════════════════════════════════════ */
.features-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.feat-card {
  background: #fff; border: 1px solid rgba(6,182,212,.15);
  border-radius: 16px; padding: 28px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.feat-card:hover {
  border-color: rgba(6,182,212,.4); transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(6,182,212,.12);
}
.feat-icon {
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--cs-mid), var(--cs-dark-btn));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
}
.feat-card h3 { font-size: .95rem; font-weight: 800; color: var(--cs-dark); margin-bottom: 8px; }
.feat-card p  { font-size: .84rem; color: #666; line-height: 1.7; }

/* ════════════════════════════════════════
   FAQ
   ════════════════════════════════════════ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid rgba(6,182,212,.3); border-radius: 12px;
  overflow: hidden; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer;
  font-weight: 700; font-size: .95rem; color: var(--cs-dark);
  background: transparent; border: none; text-align: left;
  transition: background .2s; gap: 12px;
}
.faq-q:hover { background: var(--cs-light); }
.faq-q i { color: var(--cs-primary); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 22px; color: #555; font-size: .9rem; line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 320px; padding: 0 22px 18px; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .channel-grid  { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner          { grid-template-columns: 1fr; }
  .hero-chat-widget    { display: none; }
  .stats-grid          { grid-template-columns: repeat(3,1fr); }
  .channel-grid        { grid-template-columns: 1fr 1fr; }
  .features-grid       { grid-template-columns: 1fr; }
  .section             { padding: 44px 20px; }
}
@media (max-width: 480px) {
  .stats-grid   { grid-template-columns: repeat(2,1fr); }
  .channel-grid { grid-template-columns: 1fr; }
}
