
/* =========================================================
   SUPPORT PAGE
========================================================= */

.support-page{
  direction:ltr;
  text-align:left;
  gap:10px;
}

/* =========================================================
   HEADER
========================================================= */

.support-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.support-header-left{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.support-title{
  margin:0;

  font-size:28px;
  font-weight:800;
  letter-spacing:.2px;

  color:white;
}

.support-timer{
  font-size:12px;
  color:rgba(220,235,255,.58);
}

.support-meta{
  font-size:12px;
  color:rgba(220,235,255,.55);

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* =========================================================
   HEADER BUTTONS
========================================================= */

.support-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.support-btn{
  height:46px;

  border:none;
  border-radius:18px;

  padding:0 18px;

  color:white;

  font-size:14px;
  font-weight:700;

  backdrop-filter:blur(12px);

  transition:
    transform .18s ease,
    opacity .18s ease;
}

.support-btn:active{
  transform:scale(.96);
}

.support-btn-primary{
  background:
    linear-gradient(
      180deg,
      rgba(79,143,255,.30),
      rgba(79,143,255,.14)
    );

  border:1px solid rgba(92,173,255,.22);

  box-shadow:
    0 0 26px rgba(79,143,255,.18);
}

.support-btn-danger{
  background:
    linear-gradient(
      180deg,
      rgba(255,82,112,.26),
      rgba(255,82,112,.12)
    );

  border:1px solid rgba(255,82,112,.24);

  box-shadow:
    0 0 24px rgba(255,82,112,.14);
}

/* =========================================================
   CHAT STATUS
========================================================= */

.support-status{
  display:none;

  padding:14px;

  border-radius:22px;

  background:
    linear-gradient(
      180deg,
      rgba(10,24,52,.96),
      rgba(5,14,32,.98)
    );

  border:1px solid rgba(255,255,255,.06);

  box-shadow:
    0 14px 34px rgba(0,0,0,.28);
}

.support-status-text{
  font-size:13px;
  line-height:1.45;

  color:white;

  margin-bottom:12px;
}

/* =========================================================
   MESSAGE AREA
========================================================= */

.support-messages{
  flex:1;
  min-height:0;

  overflow-y:auto;
  overflow-x:hidden;

  display:flex;
  flex-direction:column;

  gap:14px;

  padding:14px;

  border-radius:28px;

  background:
    linear-gradient(
      180deg,
      rgba(7,18,42,.96),
      rgba(3,10,28,.99)
    );

  border:1px solid rgba(255,255,255,.06);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 24px 50px rgba(0,0,0,.34);
}

/* =========================================================
   DATE SEPARATOR
========================================================= */

.chat-date-separator{
  align-self:center;

  padding:6px 12px;

  border-radius:999px;

  background:rgba(255,255,255,.04);

  border:1px solid rgba(255,255,255,.06);

  color:rgba(230,240,255,.72);

  font-size:11px;
  font-weight:600;
}

/* =========================================================
   MESSAGE ROWS
========================================================= */

.msg-row{
  display:flex;
  width:100%;
}

.msg-row.user{
  justify-content:flex-end;
}

.msg-row.support{
  justify-content:flex-start;
}

/* =========================================================
   SUPPORT SIDE
========================================================= */

.support-side{
  display:flex;
  align-items:flex-end;
  gap:10px;

  max-width:86%;
}

.support-avatar{
  width:36px;
  height:36px;

  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  flex-shrink:0;

  background:
    linear-gradient(
      180deg,
      rgba(79,143,255,.22),
      rgba(79,143,255,.10)
    );

  border:1px solid rgba(92,173,255,.18);

  color:#9ecbff;

  font-size:16px;
}

/* =========================================================
   BUBBLES
========================================================= */

.msg-bubble{
  position:relative;

  padding:14px 16px 12px;

  border-radius:24px;

  backdrop-filter:blur(10px);

  overflow:hidden;
}

.msg-bubble::before{
  content:"";

  position:absolute;
  inset:0;

  background:
    radial-gradient(
      circle at top right,
      rgba(255,255,255,.08),
      transparent 60%
    );

  pointer-events:none;
}

.msg-bubble.user{
  background:
    linear-gradient(
      180deg,
      rgba(58,112,212,.95),
      rgba(38,84,170,.92)
    );

  border:1px solid rgba(110,174,255,.12);

  box-shadow:
    0 10px 24px rgba(42,92,180,.22);

  border-bottom-right-radius:10px;
}

.msg-bubble.support{
  background:
    linear-gradient(
      180deg,
      rgba(15,31,62,.94),
      rgba(8,19,42,.96)
    );

  border:1px solid rgba(255,255,255,.06);

  box-shadow:
    0 10px 24px rgba(0,0,0,.24);

  border-bottom-left-radius:10px;
}

/* =========================================================
   MESSAGE CONTENT
========================================================= */

.msg-sender{
  font-size:12px;
  font-weight:700;

  color:#7ec0ff;

  margin-bottom:6px;
}

.msg-text{
  font-size:15px;
  line-height:1.5;

  color:white;

  word-break:break-word;
}

.msg-meta{
  margin-top:8px;

  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;

  font-size:11px;

  color:rgba(235,242,255,.62);
}

/* =========================================================
   IMAGE MESSAGE
========================================================= */

.msg-image{
  width:100%;

  border-radius:18px;

  margin-top:8px;

  border:1px solid rgba(255,255,255,.08);
}

/* =========================================================
   COMPOSER
========================================================= */

.support-form{
  flex-shrink:0;

  display:flex;
  align-items:center;
  gap:10px;

  padding:0;
  margin:0;
}

.support-input{
  flex:1;

  height:58px;

  border:none;
  outline:none;

  border-radius:22px;

  padding:0 20px;

  font-size:15px;

  color:white;

  background:
    linear-gradient(
      180deg,
      rgba(10,24,52,.96),
      rgba(5,14,32,.98)
    );

  border:1px solid rgba(92,173,255,.10);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03);
}

.support-input::placeholder{
  color:rgba(230,240,255,.38);
}

.support-icon-btn{
  width:58px;
  height:58px;

  border:none;
  border-radius:22px;

  flex-shrink:0;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:22px;

  color:#8ec2ff;

  background:
    linear-gradient(
      180deg,
      rgba(79,143,255,.24),
      rgba(79,143,255,.12)
    );

  border:1px solid rgba(92,173,255,.16);

  box-shadow:
    0 0 22px rgba(79,143,255,.14);
}

.support-send-btn{
  height:58px;

  padding:0 24px;

  border:none;
  border-radius:22px;

  flex-shrink:0;

  font-size:15px;
  font-weight:700;

  color:white;

  background:
    linear-gradient(
      180deg,
      rgba(79,143,255,.36),
      rgba(79,143,255,.18)
    );

  border:1px solid rgba(92,173,255,.24);

  box-shadow:
    0 0 24px rgba(79,143,255,.16);
}

/* =========================================================
   SCROLLBAR
========================================================= */

.support-messages::-webkit-scrollbar{
  width:6px;
}

.support-messages::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.12);
  border-radius:999px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width:480px){

  .support-title{
    font-size:24px;
  }

  .support-btn{
    height:42px;
    padding:0 14px;
    font-size:13px;
  }

  .support-messages{
    border-radius:26px;
    padding:14px;
  }

  .msg-text{
    font-size:14px;
  }

  .support-input{
    height:54px;
  }

  .support-icon-btn{
    width:54px;
    height:54px;
  }

  .support-send-btn{
    height:54px;
    padding:0 18px;
  }

}

/* =========================================================
   CHAT COMPACT PHONE MODE
========================================================= */

@media (max-width:480px){

  .support-header{
    gap:8px;
  }

  .support-title{
    font-size:20px !important;
  }

  .support-btn{
    height:36px !important;
    padding:0 10px !important;
    border-radius:14px !important;
    font-size:11px !important;
  }

  .support-meta{
    display:none;
  }

  .support-messages{
    padding:10px !important;
    gap:10px !important;
    border-radius:20px !important;
  }

  .support-avatar{
    width:30px;
    height:30px;
    font-size:13px;
  }

  .msg-bubble{
    padding:10px 12px 8px !important;
    border-radius:18px !important;
  }

  .msg-text{
    font-size:13px !important;
    line-height:1.35 !important;
  }

  .msg-meta{
    font-size:10px !important;
    margin-top:4px !important;
  }

  .support-input{
    height:46px !important;
    border-radius:16px !important;
    font-size:14px !important;
    padding:0 14px !important;
  }

  .support-icon-btn{
    width:46px !important;
    height:46px !important;
    border-radius:16px !important;
    font-size:18px !important;
  }

  .support-send-btn{
    height:46px !important;
    border-radius:16px !important;
    padding:0 14px !important;
    font-size:13px !important;
  }

}