:root{
  --bg:#050b1d;
  --panel:#0a1429;
  --card:#111b33;
  --line:rgba(142,163,220,.17);
  --text:#f6f8ff;
  --muted:#9ca9c5;
  --blue:#4f6dff;
  --violet:#765cff;
  --green:#35d67a;
  --shadow:0 28px 90px rgba(0,0,0,.42);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 12% 8%,rgba(68,105,255,.20),transparent 28%),
    radial-gradient(circle at 86% 12%,rgba(118,82,255,.18),transparent 24%),
    linear-gradient(180deg,#040918,#08152d 58%,#050b1d);
  overflow-x:hidden;
}

button,textarea{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%;height:auto}

.page{
  min-height:100vh;
  padding:0;
}

.topbar{
  height:78px;
  padding:0 36px;
  display:grid;
  grid-template-columns:auto auto 1fr auto;
  align-items:center;
  gap:28px;
  border-bottom:1px solid var(--line);
  background:rgba(4,10,24,.72);
  backdrop-filter:blur(22px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:210px;
  font-size:27px;
  font-weight:900;
  letter-spacing:-.055em;
}

.brandLogo{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  filter:drop-shadow(0 12px 24px rgba(65,115,255,.35));
}

.brandLogo img{
  width:42px;
  height:42px;
  object-fit:contain;
}

.brand strong{
  color:#fff;
  font-weight:950;
}

.brand small{
  color:rgba(255,255,255,.78);
  font-size:.68em;
  font-weight:600;
}

.mainNav{
  display:flex;
  align-items:center;
  gap:26px;
  padding-left:10px;
  border-left:1px solid rgba(255,255,255,.12);
}

.mainNav a{
  position:relative;
  color:rgba(255,255,255,.84);
  font-size:17px;
  font-weight:760;
  transition:.18s;
}

.mainNav a:hover{
  color:#fff;
}

.mainNav a:hover:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-26px;
  width:44px;
  height:2px;
  transform:translateX(-50%);
  border-radius:999px;
  background:linear-gradient(90deg,transparent,#5274ff,transparent);
  box-shadow:0 0 18px rgba(82,116,255,.9);
}

.topTitle{
  justify-self:center;
  color:#eef3ff;
  font-size:22px;
  font-weight:850;
  letter-spacing:-.025em;
  transition:.18s;
}

.topTitle span{
  color:#7f96ff;
  margin-left:6px;
}

.topTitle:hover{
  transform:translateY(-1px);
  text-shadow:0 0 18px rgba(94,124,255,.45);
}

.topActions{
  display:flex;
  align-items:center;
  gap:12px;
}

.newChatBtn,
.userBtn{
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  color:#fff;
  background:rgba(255,255,255,.06);
  font-weight:850;
  transition:.18s;
}

.newChatBtn{
  padding:0 18px;
  background:linear-gradient(135deg,rgba(79,109,255,.92),rgba(118,92,255,.82));
  box-shadow:0 16px 34px rgba(79,109,255,.22);
}

.userBtn{
  width:46px;
  font-size:18px;
}

.newChatBtn:hover,
.userBtn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.12);
}

.assistantLayout{
  width:100%;
  height:calc(100vh - 78px);
  min-height:0;
  display:grid;
  grid-template-columns:510px minmax(0,1fr);
  gap:0;
  overflow:hidden;
}

.leftSide{
  min-height:0;
  padding:32px 38px 30px;
  border-right:1px solid var(--line);
  background:
    radial-gradient(circle at 20% 10%,rgba(73,112,255,.12),transparent 30%),
    linear-gradient(180deg,rgba(8,18,40,.82),rgba(5,13,30,.74));
  overflow:auto;
}

.arinaCard{
  position:relative;
  min-height:460px;
  border-radius:22px;
  overflow:hidden;
  background:#101a35;
  border:1px solid rgba(96,125,255,.55);
  box-shadow:0 18px 45px rgba(0,0,0,.28),0 0 0 1px rgba(255,255,255,.04) inset,0 0 28px rgba(79,109,255,.16);
}

.arinaCard img{
  width:100%;
  height:460px;
  object-fit:cover;
  object-position:center 18%;
  filter:saturate(1.04) contrast(1.03);
}

.arinaCard:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(5,10,24,.04) 0%,rgba(5,10,24,.24) 48%,rgba(5,10,24,.92) 100%),
    radial-gradient(circle at 72% 18%,rgba(76,112,255,.14),transparent 32%);
}

.onlineBadge{
  position:absolute;
  z-index:3;
  left:26px;
  top:30px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-radius:14px;
  color:#eaf2ff;
  background:rgba(8,18,40,.72);
  border:1px solid rgba(255,255,255,.13);
  font-size:14px;
  font-weight:850;
  backdrop-filter:blur(12px);
  transform:rotate(-10deg);
  transform-origin:left center;
  box-shadow:0 12px 26px rgba(0,0,0,.24);
}

.onlineBadge i{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 5px rgba(55,214,122,.13);
}

.arinaText{
  position:absolute;
  z-index:3;
  left:28px;
  right:28px;
  bottom:26px;
}

.arinaText h1{
  margin:0 0 14px;
  font-size:31px;
  line-height:1.12;
  letter-spacing:-.055em;
}

.arinaText h1 span{
  color:#617dff;
}

.arinaText p{
  max-width:360px;
  margin:0;
  color:rgba(255,255,255,.88);
  font-size:18px;
  line-height:1.55;
}

.quickBlock{
  margin-top:24px;
}

.quickBlock strong,
.faqBlock strong{
  display:block;
  margin:0 0 12px;
  color:#fff;
  font-size:18px;
  font-weight:900;
}

.quickIdeas{
  display:grid;
  gap:9px;
}

.quickIdeas button,
.faqBlock button{
  width:100%;
  display:grid;
  grid-template-columns:28px 1fr 18px;
  align-items:center;
  gap:12px;
  min-height:48px;
  padding:10px 16px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  color:#eef3ff;
  text-align:left;
  font-weight:780;
  transition:.18s;
}

.quickIdeas button:hover,
.faqBlock button:hover{
  transform:translateY(-1px);
  background:rgba(79,109,255,.12);
  border-color:rgba(98,126,255,.42);
}

.quickIdeas span,
.faqBlock button > span{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#7f96ff;
  background:rgba(79,109,255,.12);
  font-size:15px;
}

.quickIdeas i,
.faqBlock i{
  color:#dce6ff;
  font-style:normal;
  font-size:24px;
}

.faqBlock{
  margin-top:24px;
}

.faqBlock button{
  grid-template-columns:28px 1fr 18px;
  min-height:84px;
  border-radius:16px;
}

.faqBlock b{
  display:block;
  margin-bottom:5px;
  color:#fff;
  font-size:16px;
}

.faqBlock small{
  display:block;
  max-width:330px;
  color:rgba(255,255,255,.66);
  font-size:14px;
  line-height:1.45;
}

.chatPanel{
  position:relative;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  margin:30px 38px 30px 30px;
  border:1px solid var(--line);
  border-radius:24px;
  background:
    radial-gradient(circle at 80% 0%,rgba(79,109,255,.10),transparent 25%),
    linear-gradient(180deg,rgba(9,18,37,.88),rgba(5,12,28,.93));
  overflow:hidden;
}

.chatStatus{
  flex:0 0 auto;
  min-height:46px;
  padding:0 28px;
  display:flex;
  align-items:center;
  gap:9px;
  border-bottom:1px solid rgba(142,163,220,.13);
  color:#aebced;
  background:rgba(255,255,255,.028);
  font-size:13px;
  font-weight:850;
}

.statusDot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 5px rgba(55,214,122,.11);
}

.messages{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:34px 34px 30px;
  display:flex;
  flex-direction:column;
  gap:26px;
  scroll-behavior:smooth;
}

.messages::-webkit-scrollbar{width:10px}
.messages::-webkit-scrollbar-thumb{background:rgba(141,163,220,.22);border-radius:999px;border:3px solid transparent;background-clip:content-box}

.message{
  display:flex;
  gap:14px;
  align-items:flex-end;
  animation:msgIn .22s ease both;
}

@keyframes msgIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}

.message.user{
  justify-content:flex-end;
}

.message.user .avatar{
  order:2;
  display:none;
}

.avatar{
  width:50px;
  height:50px;
  flex:0 0 50px;
  border-radius:50%;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(135deg,#19294f,#2f4fb9);
  color:#fff;
  font-weight:950;
  font-size:11px;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}

.message.bot .avatar{
  background-image:url("../assets/img/mock-assets/assistant.jpg");
  background-size:cover;
  background-position:center 18%;
  color:transparent;
}

.bubble{
  max-width:min(62%,680px);
  padding:20px 24px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.09);
  color:#eef3ff;
  line-height:1.62;
  box-shadow:0 18px 42px rgba(0,0,0,.18);
}

.message.bot .bubble{
  border-bottom-left-radius:6px;
}

.message.user .bubble{
  max-width:min(52%,620px);
  margin-left:auto;
  background:linear-gradient(135deg,#253fa8,#3154d8);
  border-color:rgba(126,155,255,.28);
  border-bottom-right-radius:6px;
}

.message.typing .bubble{
  color:#aab7d4;
}

.bubble p{margin:0}

.scrollTopBtn{
  position:absolute;
  right:28px;
  bottom:116px;
  z-index:8;
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border:1px solid rgba(131,149,255,.34);
  border-radius:50%;
  color:#fff;
  background:rgba(60,53,150,.70);
  box-shadow:0 14px 30px rgba(0,0,0,.24),0 0 24px rgba(87,98,255,.24);
  backdrop-filter:blur(12px);
  font-size:28px;
  font-weight:500;
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:.18s;
}

.scrollTopBtn.isVisible{
  opacity:1;
  transform:none;
  pointer-events:auto;
}

.scrollTopBtn:hover{
  background:rgba(82,106,255,.82);
}

.composer{
  margin:0 22px 20px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:22px;
  display:grid;
  grid-template-columns:46px 1fr 58px;
  gap:10px;
  align-items:end;
  background:rgba(255,255,255,.045);
}

.attachIcon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  color:#dce6ff;
  background:rgba(255,255,255,.05);
  font-size:24px;
}

.inputWrap{
  position:relative;
}

.composer textarea{
  width:100%;
  min-height:46px;
  height:46px;
  max-height:132px;
  resize:none;
  overflow-y:hidden;
  border:0;
  border-radius:14px;
  padding:12px 74px 10px 10px;
  outline:none;
  color:#eef3ff;
  background:transparent;
  line-height:1.35;
}

.composer textarea::placeholder{
  color:rgba(223,231,255,.48);
}

.inputCounter{
  position:absolute;
  right:10px;
  top:6px;
  color:#8391b2;
  font-size:10px;
  font-weight:900;
  pointer-events:none;
}

.composer button{
  width:58px;
  height:58px;
  border:0;
  border-radius:50%;
  color:#fff;
  background:linear-gradient(135deg,#4f6dff,#765cff);
  font-weight:900;
  display:grid;
  place-items:center;
  box-shadow:0 18px 34px rgba(47,102,255,.24);
  transition:.18s;
}

.composer button span{
  font-size:20px;
  transform:translateX(1px);
}

.composer button:hover{
  transform:translateY(-1px);
}

.composer button:disabled{
  opacity:.65;
  cursor:wait;
  transform:none;
}

@media(max-width:1180px){
  .topbar{
    grid-template-columns:auto 1fr auto;
  }

  .topTitle{
    display:none;
  }

  .assistantLayout{
    grid-template-columns:430px minmax(0,1fr);
  }

  .leftSide{
    padding:26px;
  }

  .arinaCard,
  .arinaCard img{
    height:420px;
    min-height:420px;
  }

  .bubble{
    max-width:78%;
  }

  .message.user .bubble{
    max-width:72%;
  }
}

@media(max-width:920px){
  .topbar{
    height:auto;
    min-height:72px;
    padding:14px 18px;
    grid-template-columns:1fr auto;
  }

  .mainNav,
  .topTitle{
    display:none;
  }

  .assistantLayout{
    grid-template-columns:1fr;
    height:auto;
    min-height:calc(100vh - 72px);
    overflow:visible;
  }

  .leftSide{
    border-right:0;
    border-bottom:1px solid var(--line);
    overflow:visible;
  }

  .arinaCard,
  .arinaCard img{
    min-height:360px;
    height:360px;
  }

  .chatPanel{
    height:720px;
    min-height:0;
    margin:18px;
  }
}

@media(max-width:620px){
  .topActions .userBtn{
    display:none;
  }

  .newChatBtn{
    height:42px;
    padding:0 13px;
    font-size:13px;
  }

  .leftSide{
    padding:16px;
  }

  .arinaCard,
  .arinaCard img{
    min-height:330px;
    height:330px;
  }

  .arinaText{
    left:20px;
    right:20px;
    bottom:20px;
  }

  .arinaText h1{
    font-size:27px;
  }

  .arinaText p{
    font-size:15px;
  }

  .chatPanel{
    height:calc(100vh - 24px);
    min-height:560px;
  }

  .messages{
    padding:20px 16px 24px;
    gap:18px;
  }

  .bubble,
  .message.user .bubble{
    max-width:84%;
    padding:15px 16px;
    font-size:14px;
  }

  .avatar{
    width:38px;
    height:38px;
    flex-basis:38px;
  }

  .composer{
    margin:0 12px 14px;
    grid-template-columns:1fr 52px;
  }

  .attachIcon{
    display:none;
  }

  .composer button{
    width:52px;
    height:52px;
  }
}


/* ===== Assistant site polish 1 ===== */

/* Premium Arina link */
.mainNav .arinaTopLink{
  color:#dce6ff !important;
  padding:10px 14px !important;
  border-radius:14px !important;
  background:rgba(79,109,255,.10) !important;
  border:1px solid rgba(98,126,255,.28) !important;
}

.mainNav .arinaTopLink:hover{
  color:#fff !important;
  background:rgba(79,109,255,.18) !important;
  box-shadow:0 0 22px rgba(79,109,255,.18) !important;
}

/* Online badge: strictly top-left and straight */
.onlineBadge{
  left:18px !important;
  top:18px !important;
  transform:none !important;
  border-radius:13px !important;
}

/* More compact quick buttons */
.quickIdeas{
  gap:8px !important;
}

.quickIdeas button{
  min-height:44px !important;
  padding:8px 14px !important;
  border-radius:12px !important;
}

/* Chat message area + composer more compact */
.messages{
  padding-bottom:20px !important;
}

.composer{
  min-height:0 !important;
  margin:0 22px 16px !important;
  padding:9px 10px !important;
  grid-template-columns:40px 1fr 48px !important;
  gap:8px !important;
  border-radius:19px !important;
}

.attachIcon{
  width:40px !important;
  height:40px !important;
  border-radius:14px !important;
  font-size:20px !important;
}

.composer textarea{
  min-height:40px !important;
  height:40px !important;
  max-height:112px !important;
  padding:10px 68px 8px 8px !important;
  line-height:1.32 !important;
}

.inputCounter{
  top:5px !important;
  right:8px !important;
  font-size:9px !important;
}

.composer button{
  width:48px !important;
  height:48px !important;
  min-height:48px !important;
}

.composer button span{
  font-size:18px !important;
}

.scrollTopBtn{
  bottom:94px !important;
}

@media(max-width:620px){
  .composer{
    margin:0 10px 12px !important;
    grid-template-columns:1fr 48px !important;
    padding:8px !important;
  }

  .composer button{
    width:48px !important;
    height:48px !important;
  }

  .composer textarea{
    min-height:40px !important;
    height:40px !important;
  }
}
