/* HAMPAYAM_ACTION_TILES_V250_START */

body.premium-ui aside .tools{
  padding:14px!important;
}

body.premium-ui .premium-primary-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}

body.premium-ui .premium-primary-actions > button,
body.premium-ui .premium-primary-actions #newDirect,
body.premium-ui .premium-primary-actions .premium-primary-tool-toggle{
  grid-column:auto!important;
  width:100%!important;
  min-width:0!important;
  height:78px!important;
  min-height:78px!important;
  margin:0!important;
  padding:9px 7px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  border:1px solid #d5e6ef!important;
  border-radius:17px!important;
  background:#f3f9fc!important;
  color:#236d96!important;
  box-shadow:0 5px 14px rgba(35,84,113,.07)!important;
  font-size:11.5px!important;
  font-weight:800!important;
  line-height:1.35!important;
  text-align:center!important;
  white-space:normal!important;
}

body.premium-ui .premium-primary-actions #newDirect{
  background:linear-gradient(135deg,#168fd3,#1aa8ce)!important;
  border-color:transparent!important;
  color:#fff!important;
  box-shadow:0 8px 19px rgba(22,143,211,.20)!important;
}

body.premium-ui .premium-primary-actions .premium-action-icon{
  width:31px!important;
  height:31px!important;
  flex:0 0 31px!important;
  border-radius:10px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.80)!important;
  font-size:16px!important;
}

body.premium-ui .premium-primary-actions #newDirect .premium-action-icon{
  background:rgba(255,255,255,.18)!important;
}

body.premium-ui .premium-primary-actions .premium-action-label{
  width:100%;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  font-weight:800!important;
}

body.premium-ui .premium-primary-tool-toggle{
  position:relative;
}

body.premium-ui .premium-primary-tool-toggle .premium-tool-chevron{
  position:absolute;
  left:8px;
  bottom:5px;
  font-size:13px;
  transition:transform .2s ease;
}

body.premium-ui .premium-tools-open .premium-primary-tool-toggle .premium-tool-chevron{
  transform:rotate(180deg);
}

body.premium-ui .premium-primary-actions > button:hover,
body.premium-ui .premium-primary-actions .premium-primary-tool-toggle:hover{
  transform:translateY(-1px);
  border-color:#b8d7e7!important;
  background:#e9f5fa!important;
}

body.premium-ui .premium-primary-actions #newDirect:hover{
  background:linear-gradient(135deg,#117fbe,#1598bd)!important;
}

body.premium-ui .premium-secondary-actions{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
}

body.premium-ui .premium-tools-open .premium-secondary-actions{
  max-height:780px!important;
  padding-top:10px!important;
}

body.premium-ui .premium-secondary-actions > button{
  width:100%!important;
  min-width:0!important;
  height:70px!important;
  min-height:70px!important;
  margin:0!important;
  padding:8px 6px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border:1px solid #dfe9ef!important;
  border-radius:16px!important;
  background:#fff!important;
  color:#405d72!important;
  box-shadow:0 4px 12px rgba(38,67,86,.055)!important;
  font-size:10.5px!important;
  font-weight:800!important;
  line-height:1.35!important;
  text-align:center!important;
}

body.premium-ui .premium-secondary-actions .premium-action-icon{
  width:29px!important;
  height:29px!important;
  flex:0 0 29px!important;
  border-radius:9px!important;
  display:grid!important;
  place-items:center!important;
  background:#edf5f9!important;
  font-size:14px!important;
}

body.premium-ui .premium-secondary-actions .premium-action-label{
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:800!important;
}

body.premium-ui .premium-secondary-actions button > b{
  position:absolute;
  top:5px;
  left:5px;
  margin:0!important;
}

html[data-hampayam-theme="shams"] body.premium-ui .premium-primary-actions > button,
html[data-hampayam-theme="shams"] body.premium-ui .premium-primary-actions .premium-primary-tool-toggle,
html[data-hampayam-theme="shams"] body.premium-ui .premium-secondary-actions > button{
  border-color:rgba(135,165,211,.20)!important;
  background:rgba(24,43,78,.78)!important;
  color:#d7e6ff!important;
  box-shadow:0 5px 16px rgba(0,0,0,.10)!important;
}

html[data-hampayam-theme="shams"] body.premium-ui .premium-primary-actions #newDirect{
  border-color:transparent!important;
  background:linear-gradient(135deg,#9e7c22,#c49a2f)!important;
  color:#fff!important;
}

@media(max-width:760px){
  body.premium-ui aside .tools{padding:11px!important}
  body.premium-ui .premium-primary-actions > button,
  body.premium-ui .premium-primary-actions #newDirect,
  body.premium-ui .premium-primary-actions .premium-primary-tool-toggle{
    height:82px!important;
    min-height:82px!important;
    font-size:12px!important;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
  body.premium-ui .premium-secondary-actions > button{
    height:74px!important;
    min-height:74px!important;
    font-size:11px!important;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
}

@media(max-width:360px){
  body.premium-ui .premium-primary-actions{gap:8px!important}
  body.premium-ui .premium-primary-actions > button,
  body.premium-ui .premium-primary-actions #newDirect,
  body.premium-ui .premium-primary-actions .premium-primary-tool-toggle{
    height:76px!important;
    min-height:76px!important;
    font-size:11px!important;
  }
  body.premium-ui .premium-secondary-actions{gap:7px!important}
  body.premium-ui .premium-secondary-actions > button{
    height:69px!important;
    min-height:69px!important;
    font-size:10px!important;
  }
}

/* HAMPAYAM_ACTION_TILES_V250_END */


/* HAMPAYAM_GAHYAR_PREVIEW_V2_START */

body.premium-ui
.premium-primary-actions
#calendarBtn.gahyar-preview-card{
  grid-column:1 / -1!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;

  padding:15px!important;

  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:12px!important;

  border:1px solid rgba(35,113,100,.12)!important;
  border-radius:24px!important;

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(255,218,191,.35),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #fffdfa,
      #fff8f3
    )!important;

  box-shadow:
    0 12px 30px rgba(88,67,52,.10)!important;

  color:#3f392f!important;
  text-align:right!important;

  overflow:hidden!important;
}

body.premium-ui
#calendarBtn .gahyar-card-head{
  width:100%;
  display:grid;
  grid-template-columns:50px minmax(0,1fr) 28px;
  align-items:center;
  gap:11px;
}

body.premium-ui
#calendarBtn .gahyar-card-icon{
  width:50px;
  height:50px;

  display:grid;
  place-items:center;

  border-radius:16px;

  background:
    linear-gradient(
      145deg,
      #ffe5ea,
      #ffd4df
    );

  font-size:23px;
}

body.premium-ui
#calendarBtn .gahyar-card-title{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

body.premium-ui
#calendarBtn .gahyar-card-title small{
  color:#8b8178;
  font-size:10px;
  font-weight:700;
}

body.premium-ui
#calendarBtn .gahyar-card-title strong{
  color:#3d372f;
  font-size:19px;
  font-weight:950;
  line-height:1.35;
}

body.premium-ui
#calendarBtn .gahyar-open-arrow{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;

  border-radius:50%;

  background:rgba(255,255,255,.8);

  color:#86756a;
  font-size:24px;
  line-height:1;
}

body.premium-ui
#calendarBtn .gahyar-week{
  width:100%;

  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:5px;

  direction:rtl;
}

body.premium-ui
#calendarBtn .gahyar-day{
  min-width:0;
  min-height:70px;

  padding:7px 2px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:4px;

  border:1px solid #eee8e2;
  border-radius:13px;

  background:rgba(255,255,255,.62);
}

body.premium-ui
#calendarBtn .gahyar-day small{
  width:100%;

  color:#8c847c;
  font-size:8px;
  font-weight:650;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.premium-ui
#calendarBtn .gahyar-day b{
  color:#403a34;
  font-size:14px;
  font-weight:900;
}

body.premium-ui
#calendarBtn .gahyar-day em{
  color:#9b928a;
  font-size:7.5px;
  font-style:normal;
  font-weight:700;
  min-height:11px;
}

body.premium-ui
#calendarBtn .gahyar-day.is-today{
  border-color:#cfe6d8;

  background:
    linear-gradient(
      180deg,
      #eef8f1,
      #e7f4eb
    );

  box-shadow:
    inset 0 0 0 1px rgba(96,151,113,.05);
}

body.premium-ui
#calendarBtn .gahyar-day.is-today b{
  color:#397551;
}

body.premium-ui
#calendarBtn .gahyar-day.is-today em{
  color:#56896a;
}

body.premium-ui
#calendarBtn .gahyar-card-footer{
  width:100%;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;

  padding-top:1px;

  font-size:9.5px;
}

body.premium-ui
#calendarBtn .gahyar-card-footer > span{
  display:flex;
  align-items:center;
  gap:5px;

  color:#827a72;
}

body.premium-ui
#calendarBtn .gahyar-card-footer strong{
  color:#3c7964;
  font-size:10px;
  font-weight:900;
}

body.premium-ui
#calendarBtn .gahyar-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#6c9578;
  display:block;
}

body.premium-ui
.premium-primary-actions
#calendarBtn.gahyar-preview-card:hover{
  transform:translateY(-2px)!important;

  border-color:rgba(35,113,100,.22)!important;

  box-shadow:
    0 16px 34px rgba(88,67,52,.14)!important;
}


/* dark / shams */

html[data-hampayam-theme="shams"]
body.premium-ui
.premium-primary-actions
#calendarBtn.gahyar-preview-card{
  border-color:rgba(220,190,111,.17)!important;

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(189,145,53,.13),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #1c2c46,
      #17263e
    )!important;

  color:#e9dfca!important;
}

html[data-hampayam-theme="shams"]
body.premium-ui
#calendarBtn .gahyar-card-title strong{
  color:#f1dfae;
}

html[data-hampayam-theme="shams"]
body.premium-ui
#calendarBtn .gahyar-card-title small,
html[data-hampayam-theme="shams"]
body.premium-ui
#calendarBtn .gahyar-card-footer > span{
  color:#9eabc0;
}

html[data-hampayam-theme="shams"]
body.premium-ui
#calendarBtn .gahyar-day{
  border-color:rgba(255,255,255,.07);
  background:rgba(255,255,255,.035);
}

html[data-hampayam-theme="shams"]
body.premium-ui
#calendarBtn .gahyar-day small,
html[data-hampayam-theme="shams"]
body.premium-ui
#calendarBtn .gahyar-day em{
  color:#98a6bb;
}

html[data-hampayam-theme="shams"]
body.premium-ui
#calendarBtn .gahyar-day b{
  color:#e7edf7;
}

html[data-hampayam-theme="shams"]
body.premium-ui
#calendarBtn .gahyar-day.is-today{
  border-color:rgba(210,171,73,.30);
  background:rgba(182,143,46,.13);
}

html[data-hampayam-theme="shams"]
body.premium-ui
#calendarBtn .gahyar-card-footer strong{
  color:#e0c16e;
}


@media(max-width:360px){

  body.premium-ui
  .premium-primary-actions
  #calendarBtn.gahyar-preview-card{
    padding:12px!important;
  }

  body.premium-ui
  #calendarBtn .gahyar-week{
    gap:3px;
  }

  body.premium-ui
  #calendarBtn .gahyar-day{
    min-height:64px;
    border-radius:11px;
  }

  body.premium-ui
  #calendarBtn .gahyar-day small{
    font-size:7px;
  }

}

/* HAMPAYAM_GAHYAR_PREVIEW_V2_END */

/* HAMPAYAM_SIDEBAR_CLEAN_LAYOUT_V2_6 */
@media (min-width:761px){

  body.premium-ui aside .tools{
    display:block !important;
    width:100% !important;
    padding:9px !important;
    margin:0 !important;
  }

  /* 1) گفتگوی تازه | گروه جدید | کانال جدید */
  body.premium-ui .premium-primary-actions{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:7px !important;
    width:100% !important;
    margin:0 !important;
  }

  body.premium-ui .premium-primary-actions > button,
  body.premium-ui .premium-primary-actions #newDirect{
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
    height:66px !important;
    min-height:66px !important;
    margin:0 !important;
    padding:6px 4px !important;
    gap:5px !important;
    border-radius:13px !important;
    font-size:10.5px !important;
  }

  body.premium-ui .premium-primary-actions .premium-action-icon{
    width:28px !important;
    height:28px !important;
    flex:0 0 28px !important;
    font-size:14px !important;
  }

  body.premium-ui .premium-primary-actions .premium-action-label{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  /* 2) تقویم تمام عرض زیر سه دکمه */
  body.premium-ui aside .tools > #calendarBtn.gahyar-preview-card{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:none !important;
    height:auto !important;
    min-height:0 !important;
    margin:8px 0 0 !important;
    padding:9px 10px !important;
    gap:6px !important;
    border-radius:14px !important;
  }

  body.premium-ui aside .tools > #calendarBtn .gahyar-card-head{
    width:100% !important;
    min-height:38px !important;
  }

  body.premium-ui aside .tools > #calendarBtn .gahyar-week{
    width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(7,minmax(0,1fr)) !important;
    gap:4px !important;
  }

  body.premium-ui aside .tools > #calendarBtn .gahyar-day{
    min-width:0 !important;
    height:47px !important;
    min-height:47px !important;
    padding:3px 1px !important;
    border-radius:8px !important;
  }

  body.premium-ui aside .tools > #calendarBtn .gahyar-day small{
    font-size:7px !important;
  }

  body.premium-ui aside .tools > #calendarBtn .gahyar-day b{
    font-size:12px !important;
  }

  body.premium-ui aside .tools > #calendarBtn .gahyar-card-footer{
    width:100% !important;
    min-height:24px !important;
    padding:0 !important;
    font-size:9px !important;
  }

  /* 3) ابزارها و مدیریت زیر تقویم */
  body.premium-ui aside .tools > .premium-more-toggle{
    display:flex !important;
    width:100% !important;
    height:34px !important;
    min-height:34px !important;
    margin:6px 0 0 !important;
    padding:5px 9px !important;
    border-radius:10px !important;
    font-size:10px !important;
  }

  body.premium-ui aside .tools > .premium-secondary-actions{
    width:100% !important;
    margin:0 !important;
  }
}
/* END_HAMPAYAM_SIDEBAR_CLEAN_LAYOUT_V2_6 */

