.main.content .container{
  max-width:100% !important;
  width:100% !important;
  padding:0 14px !important;
}

.main.content{
  display:flex;
  flex-direction:column;
}

.wa-page-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

.wa-page-title{
  margin:0;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.02em;
}

.wa-page-subtitle{
  margin:4px 0 0;
  color:rgba(255,255,255,.72);
  font-size:13px;
}

.wa-app{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:16px;
  align-items:start;
  flex:1;
}

.wa-shell,
.wa-sidebar-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)),
    #020617;
  border:1px solid rgba(255,255,255,.06);
  border-radius:22px;
  box-shadow:0 18px 40px rgba(0,0,0,.28);
}

.wa-shell{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-height:calc(100vh - 96px);
}

.wa-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

.wa-header-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.wa-avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  background:linear-gradient(180deg,#d7ef49,#bddd1f);
  color:#08101b;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:18px;
  flex:0 0 48px;
  box-shadow:0 10px 20px rgba(198,223,32,.18);
}

.wa-avatar--lg{
  width:54px;
  height:54px;
  font-size:20px;
  flex-basis:54px;
}

.wa-contact{
  min-width:0;
}

.wa-contact-name{
  font-size:17px;
  line-height:1.1;
  font-weight:900;
  color:#fff;
}

.wa-contact-sub{
  margin-top:4px;
  color:rgba(255,255,255,.62);
  font-size:12px;
}

.wa-header-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.wa-header-btn{
  min-height:38px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:.16s ease;
}

.wa-header-btn:hover{
  background:rgba(255,255,255,.08);
}

.wa-header-btn--accent{
  background:rgba(198,223,32,.14);
  border-color:rgba(198,223,32,.22);
  color:#f7ffd3;
}

.wa-header-btn--accent:hover{
  background:rgba(198,223,32,.20);
}

.wa-thread{
  flex:1;
  overflow-y:auto;
  padding:18px;
  background:
    radial-gradient(circle at top left, rgba(198,223,32,.05), transparent 18%),
    linear-gradient(90deg, rgba(255,255,255,.015), rgba(255,255,255,0));
}

.wa-thread-empty{
  padding:18px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.1);
  background:rgba(255,255,255,.02);
  color:rgba(255,255,255,.62);
}

.wa-row{
  display:flex;
  margin-bottom:14px;
}

.wa-row.is-in{
  justify-content:flex-start;
}

.wa-row.is-out{
  justify-content:flex-end;
}

.wa-bubble-wrap{
  max-width:78%;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.wa-bubble{
  position:relative;
  padding:12px 14px 11px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 24px rgba(0,0,0,.14);
}

.wa-row.is-in .wa-bubble{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-top-left-radius:10px;
}

.wa-row.is-out .wa-bubble{
  background:linear-gradient(180deg, rgba(198,223,32,.14), rgba(198,223,32,.06));
  border-color:rgba(198,223,32,.18);
  border-top-right-radius:10px;
}

.wa-quoted{
  margin-bottom:8px;
  padding:8px 10px;
  border-radius:12px;
  border-left:3px solid #d7ef49;
  background:rgba(255,255,255,.05);
}

.wa-quoted-label{
  margin-bottom:3px;
  font-size:11px;
  font-weight:900;
  color:rgba(255,255,255,.68);
}

.wa-quoted-text{
  font-size:12px;
  line-height:1.45;
  color:rgba(255,255,255,.86);
  white-space:pre-wrap;
  word-break:break-word;
}

.wa-text{
  font-size:14px;
  line-height:1.6;
  color:#fff;
  white-space:pre-wrap;
  word-break:break-word;
}

.wa-meta{
  margin-top:8px;
  font-size:11px;
  color:rgba(255,255,255,.58);
}

.wa-meta-dot{
  margin:0 4px;
}

.wa-actions{
  display:flex;
  gap:8px;
  opacity:0;
  transition:.16s ease;
}

.wa-row:hover .wa-actions{
  opacity:1;
}

.wa-action-btn{
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#dbe7ff;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:.16s ease;
}

.wa-action-btn:hover{
  background:rgba(255,255,255,.08);
}

.wa-media-card{
  margin-top:10px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}

.wa-media-card.is-image{
  border-color:rgba(112,210,255,.18);
}

.wa-media-card.is-video{
  border-color:rgba(255,132,112,.18);
}

.wa-media-card.is-audio{
  border-color:rgba(179,146,255,.18);
}

.wa-media-head{
  display:flex;
  gap:12px;
  align-items:center;
}

.wa-media-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  background:rgba(255,255,255,.07);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#fff;
}

.wa-media-title{
  font-size:14px;
  font-weight:800;
  color:#fff;
  word-break:break-word;
}

.wa-media-sub{
  margin-top:6px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.wa-badge{
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:800;
  color:#e5edff;
}

.wa-media-preview{
  margin-top:12px;
}

.wa-thumb{
  display:block;
  max-width:320px;
  max-height:280px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
}

.wa-video{
  display:block;
  max-width:380px;
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
}

.wa-audio{
  width:min(380px, 100%);
  display:block;
}

.wa-media-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.wa-media-btn{
  min-height:36px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#fff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:800;
}

.wa-media-btn--accent{
  background:rgba(198,223,32,.14);
  border-color:rgba(198,223,32,.22);
  color:#f7ffd3;
}

.wa-composer{
  padding:14px 16px 16px;
  border-top:1px solid rgba(255,255,255,.06);
  background:rgba(7,13,28,.96);
}

.wa-compose-status{
  display:none;
  margin-bottom:10px;
  padding:10px 12px;
  border-radius:12px;
  font-size:12px;
  font-weight:700;
}

.wa-compose-status.is-show{
  display:block;
}

.wa-compose-status.is-success{
  background:rgba(75,214,120,.12);
  border:1px solid rgba(75,214,120,.16);
  color:#c8ffd9;
}

.wa-compose-status.is-error{
  background:rgba(255,100,100,.12);
  border:1px solid rgba(255,100,100,.16);
  color:#ffd4d4;
}

.wa-compose-status.is-info{
  background:rgba(112,210,255,.10);
  border:1px solid rgba(112,210,255,.14);
  color:#d7f3ff;
}

.wa-reply-preview{
  display:none;
  margin-bottom:10px;
  padding:10px 12px;
  border-radius:12px;
  border-left:3px solid #d7ef49;
  background:rgba(255,255,255,.05);
  color:#fff;
}

.wa-reply-preview.is-show{
  display:block;
}

.wa-reply-preview-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}

.wa-reply-cancel{
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#fff;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.wa-reply-preview-text{
  font-size:13px;
  line-height:1.5;
  color:rgba(255,255,255,.9);
  white-space:pre-wrap;
  word-break:break-word;
}

.wa-composer-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:end;
}

.wa-composer-left{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.wa-composer-top{
  display:flex;
  gap:8px;
}

.wa-select{
  min-height:42px;
  padding:0 12px;
  border-radius:12px;
  background:#030b1d;
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
}

.wa-textarea-wrap{
  position:relative;
}

.wa-textarea{
  width:100%;
  min-height:140px;
  max-height:300px;
  resize:none;
  border-radius:16px;
  padding:14px 56px 14px 14px;
  background:#030b1d;
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  line-height:1.6;
  font-size:14px;
}

.wa-emoji-btn{
  position:absolute;
  right:12px;
  bottom:12px;
  width:38px;
  height:38px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  font-size:18px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.16s ease;
  z-index:2;
}

.wa-emoji-btn:hover{
  background:rgba(255,255,255,.12);
  transform:translateY(-1px);
}

.wa-emoji-panel{
  display:none;
  position:absolute;
  right:0;
  bottom:56px;
  width:320px;
  max-width:calc(100vw - 40px);
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(16,25,48,.98), rgba(8,14,28,.98));
  box-shadow:0 20px 40px rgba(0,0,0,.35);
  z-index:5;
}

.wa-emoji-panel.is-open{
  display:block;
}

.wa-emoji-panel-head{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.wa-emoji-tab{
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#fff;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.wa-emoji-tab.is-active{
  background:rgba(198,223,32,.16);
  border-color:rgba(198,223,32,.24);
  color:#f7ffd3;
}

.wa-emoji-search-wrap{
  margin-bottom:10px;
}

.wa-emoji-search{
  width:100%;
  min-height:36px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:#fff;
}

.wa-emoji-grid{
  display:grid;
  grid-template-columns:repeat(8, 1fr);
  gap:6px;
  max-height:220px;
  overflow:auto;
}

.wa-emoji-item{
  width:100%;
  aspect-ratio:1;
  border:none;
  border-radius:10px;
  background:rgba(255,255,255,.03);
  color:#fff;
  font-size:20px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.wa-emoji-item:hover{
  background:rgba(255,255,255,.10);
}

.wa-composer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.wa-file{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:#fff;
}

.wa-upload-name{
  font-size:12px;
  color:rgba(255,255,255,.62);
}

.wa-send-btn{
  min-width:120px;
  min-height:48px;
  padding:0 18px;
  border:none;
  border-radius:14px;
  background:linear-gradient(180deg,#d7ef49,#c7e11f);
  color:#08101b;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(198,223,32,.18);
  transition:.16s ease;
}

.wa-send-btn:hover{
  transform:translateY(-1px);
}

.wa-sidebar{
  min-width:0;
}

.wa-sidebar-card{
  padding:16px;
  position:sticky;
  top:14px;
  max-height:calc(100vh - 96px);
  overflow-y:auto;
}

.wa-sidebar-top{
  display:flex;
  gap:12px;
  align-items:center;
}

.wa-sidebar-name{
  font-size:18px;
  font-weight:900;
  color:#fff;
}

.wa-sidebar-phone{
  margin-top:4px;
  font-size:12px;
  color:rgba(255,255,255,.64);
}

.wa-sidebar-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}

.wa-side-btn{
  min-height:42px;
  padding:0 14px;
  border-radius:14px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.wa-side-btn--accent{
  background:rgba(198,223,32,.14);
  border-color:rgba(198,223,32,.22);
}

.wa-side-block{
  padding-top:14px;
  margin-top:14px;
  border-top:1px solid rgba(255,255,255,.06);
}

.wa-side-label{
  margin-bottom:10px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.54);
}

.wa-side-line{
  font-size:13px;
  line-height:1.5;
  color:rgba(255,255,255,.88);
  margin-bottom:8px;
  word-break:break-word;
}

.wa-side-empty{
  font-size:13px;
  color:rgba(255,255,255,.58);
}

.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.tag-pill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  background:rgba(198,223,32,.12);
  border:1px solid rgba(198,223,32,.18);
  color:#f6ffd1;
  font-size:12px;
  font-weight:800;
}

.wa-tag-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.wa-tag-status{
  display:none;
  padding:10px 12px;
  border-radius:12px;
  font-size:12px;
  font-weight:700;
}

.wa-tag-status.is-show{
  display:block;
}

.wa-tag-status.is-success{
  background:rgba(75,214,120,.12);
  border:1px solid rgba(75,214,120,.16);
  color:#c8ffd9;
}

.wa-tag-status.is-error{
  background:rgba(255,100,100,.12);
  border:1px solid rgba(255,100,100,.16);
  color:#ffd4d4;
}

.wa-tag-search{
  min-height:40px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:#fff;
}

.wa-tag-options{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  max-height:210px;
  overflow:auto;
}

.wa-tag-option{
  position:relative;
}

.wa-tag-option input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}

.wa-tag-chip{
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.86);
  display:inline-flex;
  align-items:center;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.wa-tag-option input:checked + .wa-tag-chip{
  background:rgba(198,223,32,.16);
  border-color:rgba(198,223,32,.24);
  color:#f4ffd4;
}

.wa-tag-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.wa-tag-selected{
  font-size:12px;
  color:rgba(255,255,255,.6);
  font-weight:700;
}

.wa-tag-submit{
  min-height:40px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(198,223,32,.22);
  background:rgba(198,223,32,.14);
  color:#fff;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.wa-lightbox{
  position:fixed;
  inset:0;
  z-index:1100;
  display:none;
}

.wa-lightbox.is-open{
  display:block;
}

.wa-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,8,18,.82);
  backdrop-filter:blur(6px);
}

.wa-lightbox-dialog{
  position:relative;
  z-index:1;
  width:min(1080px, calc(100vw - 32px));
  margin:3vh auto 0;
  padding:16px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(13,20,40,.96), rgba(8,14,30,.96));
  border:1px solid rgba(255,255,255,.08);
}

.wa-lightbox-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.wa-lightbox-name{
  font-size:15px;
  font-weight:800;
  color:#fff;
}

.wa-lightbox-hint{
  font-size:12px;
  color:rgba(255,255,255,.64);
}

.wa-lightbox-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.wa-lightbox-link,
.wa-lightbox-close{
  min-height:38px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:#fff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.wa-lightbox-body{
  min-height:280px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.06);
}

.wa-lightbox-image{
  max-width:100%;
  max-height:76vh;
  object-fit:contain;
}

.wa-modal{
  position:fixed;
  inset:0;
  z-index:1000;
}

.wa-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px);
}

.wa-modal-panel{
  position:relative;
  width:min(720px, calc(100vw - 32px));
  margin:6vh auto 0;
  z-index:1;
  padding:18px;
  border-radius:22px;
}

.wa-toast{
  position:fixed;
  top:18px;
  right:18px;
  z-index:99999;
  min-width:280px;
  max-width:360px;
  padding:14px 16px;
  border-radius:16px;
  background:rgba(10,16,32,.96);
  border:1px solid rgba(198,223,32,.22);
  box-shadow:0 18px 40px rgba(0,0,0,.42);
  color:#fff;
  opacity:0;
  transform:translateY(-14px);
  pointer-events:none;
  transition:all .22s ease;
}

.wa-toast.is-show{
  opacity:1;
  transform:translateY(0);
}

.wa-toast-title{
  font-size:13px;
  font-weight:900;
  margin-bottom:4px;
  color:#d8ef49;
}

.wa-toast-body{
  font-size:12px;
  line-height:1.45;
  color:rgba(255,255,255,.9);
  word-break:break-word;
}

@media (max-width: 1080px){
  .wa-app{
    grid-template-columns:1fr;
  }

  .wa-sidebar-card{
    position:static;
    max-height:none;
  }
}

@media (max-width: 900px){
  .wa-page-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .wa-bubble-wrap{
    max-width:92%;
  }

  .wa-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .wa-composer-grid{
    grid-template-columns:1fr;
  }

  .wa-send-btn{
    width:100%;
  }

  .wa-sidebar-actions{
    grid-template-columns:1fr;
  }

  .wa-emoji-panel{
    left:0;
    right:auto;
    width:100%;
    max-width:none;
  }
}