/* CK Poll System v2.3.0 - Restored premium animations / hover UI */
.ckps-poll {
  --ckps-primary: #111827;
  --ckps-accent: #facc15;
  --ckps-accent-2: #f59e0b;
  --ckps-soft: #f8fafc;
  --ckps-border: #e5e7eb;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 900px;
  margin: 24px auto;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  direction: rtl;
  color: #101828;
  font-family: inherit;
  box-sizing: border-box;
  box-shadow:
    0 22px 70px rgba(15, 23, 42, 0.1),
    0 2px 10px rgba(15, 23, 42, 0.035);
}
.ckps-poll * {
  box-sizing: border-box;
}
/* subtle animated background restored */
.ckps-poll:before,
.ckps-poll:after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.55;
}
.ckps-poll:before {
  width: 360px;
  height: 360px;
  top: -190px;
  right: -150px;
  background: radial-gradient(
    circle,
    rgba(250, 204, 21, 0.22) 0,
    rgba(250, 204, 21, 0.08) 35%,
    transparent 70%
  );
  animation: ckps_bg_float 9s ease-in-out infinite;
}
.ckps-poll:after {
  width: 300px;
  height: 300px;
  bottom: -170px;
  left: -130px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.13) 0,
    rgba(245, 158, 11, 0.05) 38%,
    transparent 72%
  );
  animation: ckps_bg_float 11s ease-in-out infinite reverse;
}
@keyframes ckps_bg_float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, 14px, 0) scale(1.08);
  }
}

.ckps-head {
  text-align: center;
  margin-bottom: 22px;
  position: relative;
}
.ckps-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 18px rgba(245, 158, 11, 0.08);
}
.ckps-head h2 {
  margin: 9px 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.4;
  font-weight: 950;
  letter-spacing: -0.3px;
}
.ckps-desc {
  color: #667085;
  line-height: 1.9;
}

.ckps-current-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid #eef0f3;
  border-radius: 17px;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.96),
    rgba(255, 255, 255, 0.98)
  );
  box-shadow: 0 7px 25px rgba(15, 23, 42, 0.045);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.ckps-current-head:hover {
  transform: translateY(-2px);
  border-color: #fde68a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}
.ckps-current-head span {
  font-size: 12px;
  color: #667085;
}
.ckps-current-head h3 {
  margin: 3px 0 0;
  font-size: 20px;
  font-weight: 950;
}
.ckps-current-head > strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 7px 11px;
  white-space: nowrap;
}
.ckps-current-head > strong i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  animation: ckpsPulse 1.4s ease-in-out infinite;
}
@keyframes ckpsPulse {
  50% {
    opacity: 0.3;
    transform: scale(0.78);
  }
}

.ckps-options {
  display: grid;
  gap: 12px;
}
.ckps-option {
  position: relative;
  width: 100%;
  min-height: 96px;
  border: 1px solid #e4e7ec;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 18px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 54px 68px minmax(130px, 1fr) minmax(150px, 260px);
  align-items: center;
  gap: 10px;
  text-align: right;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}
/* moving highlight inside every card */
.ckps-option:before {
  content: "";
  position: absolute;
  inset: -2px auto -2px -35%;
  width: 28%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.ckps-option:hover:not(:disabled) {
  border-color: #f4c51b;
  background: linear-gradient(135deg, #fff, #fffcf0);
  transform: translateY(-3px) scale(1.005);
  box-shadow:
    0 15px 34px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(250, 204, 21, 0.1);
}
.ckps-option:hover:not(:disabled):before {
  opacity: 1;
  animation: ckps_card_shimmer 1.05s ease forwards;
}
@keyframes ckps_card_shimmer {
  from {
    left: -35%;
  }
  to {
    left: 125%;
  }
}
.ckps-option:active:not(:disabled) {
  transform: translateY(-1px) scale(0.998);
}
.ckps-option:disabled {
  cursor: default;
}
.ckps-option.is-selected {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, #fffaf0, #fff);
  box-shadow:
    0 0 0 4px rgba(250, 204, 21, 0.1),
    0 12px 30px rgba(245, 158, 11, 0.1);
}
.ckps-option[data-rank="1"] {
  border-color: #f4d37a;
}
.ckps-option[data-rank="2"] {
  border-color: #d8dee8;
}
.ckps-option[data-rank="3"] {
  border-color: #e7c39d;
}

.ckps-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  font-size: 13px;
  font-weight: 900;
  color: #667085;
  text-align: center;
}
.ckps-medal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 29px;
  line-height: 1;
  filter: drop-shadow(0 4px 5px rgba(15, 23, 42, 0.15));
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}
.ckps-option:hover .ckps-medal {
  transform: translateY(-2px) rotate(-4deg) scale(1.08);
  filter: drop-shadow(0 7px 8px rgba(15, 23, 42, 0.19));
}
.ckps-rank-number {
  font-size: 15px;
  font-weight: 950;
  color: #667085;
}
.ckps-logo {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  background: linear-gradient(145deg, #f8fafc, #fff);
  border: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #98a2b3;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.ckps-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ckps-option:hover .ckps-logo {
  transform: scale(1.055) rotate(1deg);
  border-color: #fde68a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.ckps-company {
  min-width: 0;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ckps-company strong {
  font-size: 18px;
  font-weight: 900;
  color: #172033 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ckps-company small {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #596579 !important;
  direction: ltr;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ckps-result {
  position: relative;
  min-height: 56px;
  border-radius: 13px;
  background: #f3f5f8 !important;
  overflow: hidden;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  direction: ltr;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.ckps-result i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #facc15;
  box-shadow: 0 0 0 rgba(250, 204, 21, 0);
  animation: ckps_result_live 1.8s ease-in-out infinite;
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.ckps-result i:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 35%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.62),
    transparent
  );
  transform: skewX(-18deg);
  animation: ckps_result_shimmer 2.6s linear infinite;
}
.ckps-result b,
.ckps-result em {
  position: relative;
  z-index: 2;
}
.ckps-result b {
  font-size: 17px !important;
  color: #172033;
  font-weight: 700 !important;
}
.ckps-result em {
  grid-column: 1/3;
  font-style: normal;
  font-size: 13px;
  color: #4b5565;
  font-weight: 700;
  text-align: right;
  direction: rtl;
}
@keyframes ckps_result_live {
  0%,
  100% {
    opacity: 0.82;
    box-shadow: 0 0 0 rgba(250, 204, 21, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.38);
  }
}
@keyframes ckps_result_shimmer {
  0% {
    left: -45%;
  }
  100% {
    left: 125%;
  }
}

.ckps-submit,
.ckps-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  overflow: hidden;
  box-shadow: 0 9px 22px rgba(17, 24, 39, 0.14);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
.ckps-submit:before,
.ckps-btn:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 28%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: skewX(-18deg);
  animation: ckps_button_shimmer 3.8s linear infinite;
}
.ckps-submit:hover:not(:disabled),
.ckps-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.2);
  filter: brightness(1.05);
}
.ckps-submit:active:not(:disabled),
.ckps-btn:active:not(:disabled) {
  transform: translateY(0);
}
.ckps-submit:disabled,
.ckps-btn:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}
@keyframes ckps_button_shimmer {
  0% {
    left: -45%;
  }
  100% {
    left: 130%;
  }
}

.ckps-msg {
  display: none;
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  line-height: 1.8;
}
.ckps-msg:not(:empty) {
  display: block;
}
.ckps-msg bdi {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.ckps-msg.success,
.ckps-msg.ckps-success-inline {
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
  color: #067647;
}
.ckps-msg.warning,
.ckps-msg.ckps-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.ckps-notice {
  max-width: 760px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid #e4e7ec;
  border-radius: 17px;
  direction: rtl;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.ckps-transparency {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #eaecf0;
}
.ckps-section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.ckps-section-title h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 950;
}
.ckps-section-title small {
  display: block;
  margin-top: 4px;
  color: #98a2b3;
}
.ckps-section-title > span {
  font-size: 11px;
  color: #667085;
}
.ckps-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ckps-metrics > div {
  background: linear-gradient(145deg, #f8fafc, #fff);
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.ckps-metrics > div:hover {
  transform: translateY(-2px);
  border-color: #fde68a;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}
.ckps-metrics strong {
  display: block;
  font-size: 23px;
  margin-bottom: 4px;
}
.ckps-metrics span {
  font-size: 11px;
  color: #667085;
}

.ckps-history {
  margin-top: 24px;
}
.ckps-history-list {
  display: grid;
  gap: 9px;
}
.ckps-history-month {
  border: 1px solid #e4e7ec;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.025);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.ckps-history-month:hover {
  border-color: #f4d37a;
  box-shadow: 0 9px 25px rgba(15, 23, 42, 0.055);
}
.ckps-history-toggle {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, #fff, #fafafa);
  display: grid;
  grid-template-columns: 1fr auto 28px;
  gap: 10px;
  align-items: center;
  text-align: right;
  padding: 14px;
  cursor: pointer;
  color: #172033;
  transition: background 0.25s ease;
}
.ckps-history-toggle:hover {
  background: #fffdf5;
}
.ckps-history-toggle b {
  font-size: 14px;
  font-weight: 900;
}
.ckps-history-toggle > span:not(.ckps-chevron) {
  font-size: 12px;
  color: #667085;
}
.ckps-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #98a2b3;
  background: transparent;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s ease,
    background 0.25s ease;
}
.ckps-chevron svg {
  display: block;
  transition: inherit;
}
.ckps-history-toggle:hover .ckps-chevron {
  color: #667085;
  background: rgba(0, 0, 0, 0.04);
}
.ckps-history-month.is-open .ckps-chevron {
  transform: rotate(180deg);
  color: #f59e0b;
  background: rgba(250, 204, 21, 0.12);
}
.ckps-history-body {
  padding: 0 10px 10px;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    padding 0.3s ease;
}
.ckps-history-row {
  display: grid;
  grid-template-columns: 198px minmax(120px, 5fr) minmax(90px, 1.5fr) 52px 4px;
  align-items: center;
  gap: 8px;
  padding: 9px 4px;
  border-top: 1px solid #f2f4f7;
  font-size: 12px;
}
.ckps-history-company {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ckps-history-company img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.ckps-history-company strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ckps-history-bar {
  height: 9px;
  border-radius: 99px;
  background: #edf0f3;
  overflow: hidden;
}
.ckps-history-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #facc15);
  border-radius: inherit;
  position: relative;
}
.ckps-history-bar i:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  animation: ckps_history_shimmer 2.8s linear infinite;
}
.ckps-history-percent {
  font-weight: 900;
  text-align: left;
  direction: ltr;
}
.ckps-history-votes {
  color: #667085;
  text-align: left;
  white-space: nowrap;
}
@keyframes ckps_history_shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.ckps-recent-wrap {
  margin-top: 25px;
}
.ckps-recent-wrap > h4 {
  margin: 0 0 12px;
  font-size: 14px;
}
.ckps-latest-votes {
  border: 2px dashed #facc15;
  border-radius: 16px;
  overflow: hidden;
  height: 110px;
  position: relative;
  background: #fffdf3;
  box-shadow: 0 7px 22px rgba(245, 158, 11, 0.07);
}
.ckps-recent-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.ckps-latest-votes.has-track .ckps-recent-track,
.ckps-latest-votes.ckps-has-recent .ckps-recent-track {
  animation: ckps_loop_up 24s linear infinite;
}
.ckps-latest-votes.has-track:hover .ckps-recent-track,
.ckps-latest-votes.ckps-has-recent:hover .ckps-recent-track {
  animation-play-state: paused;
}
.ckps-recent-item {
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  display: grid;
  grid-template-columns: 120px 1fr 125px;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.9);
}
.ckps-recent-item > b {
  text-align: right;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
  color: #172033;
  font-weight: 900;
}
.ckps-recent-item > span {
  color: #475467;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ckps-recent-item time {
  direction: ltr;
  text-align: left;
  color: #98a2b3;
}
.ckps-recent-item b.ckps-mobile-mask {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
  display: inline-block !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0.2px;
}
.ckps-empty {
  padding: 16px;
  color: #98a2b3;
  text-align: center;
}
@keyframes ckps_loop_up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.ckps-poll.is-loading-results .ckps-options,
.ckps-poll.is-loading-results .ckps-transparency {
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

body.ckps-modal-open {
  overflow: hidden;
}
.ckps-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  direction: rtl;
}
.ckps-auth-modal[hidden] {
  display: none !important;
}
.ckps-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(7px);
}
.ckps-auth-dialog {
  position: relative;
  z-index: 2;
  width: min(450px, 100%);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 30px 28px 24px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  text-align: center;
  animation: ckpsModalIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ckps-auth-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #475467;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.ckps-auth-close:hover {
  background: #fff7ed;
  transform: rotate(90deg);
}
.ckps-auth-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: #ecfdf3;
  color: #067647;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
}
.ckps-auth-dialog h3 {
  margin: 0 0 10px;
  font-size: 21px;
}
.ckps-auth-dialog p {
  margin: 0;
  color: #667085;
  line-height: 1.9;
  font-size: 13px;
}
.ckps-auth-step input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  font-size: 15px;
  text-align: center;
  direction: ltr;
  letter-spacing: 0.5px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.ckps-auth-step input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14);
}
.ckps-auth-error {
  margin-top: 10px;
  padding: 9px 10px;
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: none;
}
.ckps-otp-target b {
  color: #101828;
  display: inline-block;
}
.ckps-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: none;
  border: 0;
  color: #475467;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.ckps-link:hover {
  color: #111827;
}
.ckps-link:disabled {
  color: #98a2b3;
  cursor: default;
  text-decoration: none;
}
@keyframes ckpsModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Auth/mobile fields that exist in the current PHP */
.ckps-mobile,
.ckps-national {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  font-size: 15px;
  text-align: center;
  direction: ltr;
  letter-spacing: 0.4px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.ckps-mobile:focus,
.ckps-national:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .ckps-poll:before,
  .ckps-poll:after,
  .ckps-result i,
  .ckps-result i:after,
  .ckps-submit:before,
  .ckps-btn:before,
  .ckps-latest-votes.has-track .ckps-recent-track,
  .ckps-latest-votes.ckps-has-recent .ckps-recent-track,
  .ckps-current-head > strong i,
  .ckps-history-bar i:after {
    animation: none !important;
  }
  .ckps-option,
  .ckps-medal,
  .ckps-logo {
    transition: none !important;
  }
}
@media (max-width: 720px) {
  .ckps-poll {
    margin: 12px auto;
    padding: 15px;
    border-radius: 20px;
  }
  .ckps-head {
    margin-bottom: 18px;
  }
  .ckps-head h2 {
    font-size: 25px;
  }
  .ckps-current-head {
    padding: 13px 14px;
  }
  .ckps-current-head h3 {
    font-size: 17px;
  }
  .ckps-current-head > strong {
    font-size: 10px;
    padding: 6px 8px;
  }
  .ckps-option {
    grid-template-columns: 52px 50px minmax(0, 1fr) !important;
    min-height: 88px;
    padding: 10px;
    gap: 8px;
    align-items: center;
  }
  .ckps-rank {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    overflow: visible;
  }
  .ckps-medal {
    width: 48px;
    height: 48px;
    font-size: 22px;
    flex-shrink: 0;
  }
  .ckps-medal img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
  }
  .ckps-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .ckps-company {
    min-height: 48px;
    min-width: 0;
  }
  .ckps-company strong {
    font-size: 14px !important;
  }
  .ckps-company small {
    font-size: 11px !important;
  }
  .ckps-result {
    grid-column: 1/-1;
    min-height: 52px !important;
  }
  .ckps-result b {
    font-size: 16px !important;
  }
  .ckps-result em {
    font-size: 12px !important;
  }
  .ckps-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .ckps-section-title {
    align-items: flex-start;
    flex-direction: column;
  } /* history mobile layout overridden later */
  .ckps-recent-item {
    grid-template-columns: 95px 1fr 92px;
    font-size: 11px;
  }
  .ckps-auth-dialog {
    padding: 26px 18px 21px;
  }
}
@media (max-width: 430px) {
  .ckps-poll {
    margin: 8px auto;
    padding: 12px;
    border-radius: 18px;
  }
  .ckps-metrics {
    grid-template-columns: 1fr;
  }
  .ckps-option {
    grid-template-columns: 48px 44px minmax(0, 1fr) !important;
    padding: 9px;
    gap: 6px;
  }
  .ckps-rank {
    width: 48px;
    height: 48px;
    overflow: visible;
  }
  .ckps-medal {
    width: 44px;
    height: 44px;
  }
  .ckps-medal img {
    width: 44px;
    height: 44px;
    object-fit: contain;
  }
  .ckps-logo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
  .ckps-company strong {
    font-size: 13px !important;
  }
  .ckps-company small {
    font-size: 10px !important;
  }
  .ckps-recent-item {
    grid-template-columns: 90px 1fr;
  }
  .ckps-recent-item time {
    display: none;
  }
  .ckps-history-toggle {
    grid-template-columns: 1fr auto 20px;
    padding: 12px;
  }
  .ckps-history-toggle b {
    font-size: 13px;
  }
  .ckps-history-body {
    padding: 0 7px 8px;
  }
}

/* Monthly history pagination / "load older months" button */
.ckps-history-more {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin: 12px 0 0;
  padding: 11px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.ckps-history-more:hover {
  border-color: #facc15;
  background: #fffbeb;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.08);
}
.ckps-history-more:active {
  transform: translateY(0);
}
@media (max-width: 720px) {
  .ckps-history-more {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 11px;
  }
}

/* --- انیمیشن جدید برای نشانگر +1 (رأی شما) --- */
.ckps-vote-plus-one {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #92400e;
  background: #fef9c3;
  border: 1px solid #facc15;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.35);
  animation: ckpsFloatUpFade 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ckpsFloatUpFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.6);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -18px) scale(1.1);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -28px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -42px) scale(0.9);
  }
}
/* === v2.4.0 additions === */

/* گزینه رأی‌داده‌شده — همان طلایی، بدون سبز */
.ckps-option.is-voted {
  border: 2px solid #facc15 !important;
  background: linear-gradient(135deg, #fffaf0, #fff) !important;
  box-shadow:
    0 0 0 4px rgba(250, 204, 21, 0.14),
    0 12px 30px rgba(245, 158, 11, 0.12) !important;
}
.ckps-option.is-voted .ckps-company strong {
  color: #92400e !important;
}
.ckps-option.is-voted .ckps-result i {
  background: #facc15 !important;
  animation: none;
}
.ckps-option.is-selected:not(.is-voted) {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, #fffaf0, #fff);
  box-shadow:
    0 0 0 4px rgba(250, 204, 21, 0.1),
    0 12px 30px rgba(245, 158, 11, 0.1);
}

/* دکمه‌های اکشن */
.ckps-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
  align-items: stretch;
}
.ckps-actions .ckps-submit {
  margin-top: 0;
}
.ckps-refresh {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: #344054;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
  white-space: nowrap;
}
.ckps-refresh:hover:not(:disabled) {
  border-color: #facc15;
  background: #fffbeb;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.08);
}
.ckps-refresh:disabled {
  opacity: 0.65;
  cursor: default;
}
.ckps-refresh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.ckps-refresh-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.ckps-refresh.is-loading .ckps-refresh-icon {
  animation: ckps_refresh_spin 0.7s linear infinite;
}
@keyframes ckps_refresh_spin {
  to {
    transform: rotate(360deg);
  }
}
.ckps-refresh-label {
  line-height: 1;
}

@media (max-width: 520px) {
  .ckps-actions {
    grid-template-columns: 1fr;
  }
  .ckps-refresh {
    min-width: 0;
  }
}

/* ========== پر شدن مایع از چپ (مثل آب در پارچ) ========== */
.ckps-result {
  position: relative;
  overflow: hidden;
}

/* لایه مایع که از چپ به راست پر می‌شود */
.ckps-liquid-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #fde047 0%, #facc15 45%, #f59e0b 100%);
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  border-radius: 13px 0 0 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.ckps-liquid-layer.is-filling {
  /* عرض نهایی با --ckps-fill */
  animation: ckps_liquid_ltr 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes ckps_liquid_ltr {
  0% {
    width: 0%;
    border-radius: 13px 0 0 13px;
  }
  12% {
    width: calc(var(--ckps-fill, 50%) * 0.12);
  }
  35% {
    width: calc(var(--ckps-fill, 50%) * 0.38);
  }
  60% {
    width: calc(var(--ckps-fill, 50%) * 0.68);
  }
  82% {
    width: calc(var(--ckps-fill, 50%) * 0.92);
  }
  100% {
    width: var(--ckps-fill, 50%);
    border-radius: 13px;
  }
}

/* سطح مواج آب در لبه راست مایع */
.ckps-liquid-layer:before {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  right: -10px;
  width: 20px;
  background: inherit;
  border-radius: 50%;
  opacity: 0;
  filter: brightness(1.12);
}
.ckps-liquid-layer.is-filling:before {
  animation: ckps_wave_edge 2.8s ease-in-out forwards;
}
@keyframes ckps_wave_edge {
  0% {
    opacity: 0;
    transform: scaleY(0.4);
  }
  15% {
    opacity: 0.95;
    transform: scaleY(1.15);
  }
  40% {
    opacity: 1;
    transform: scaleY(0.85);
  }
  65% {
    opacity: 0.9;
    transform: scaleY(1.1);
  }
  90% {
    opacity: 0.5;
    transform: scaleY(0.7);
  }
  100% {
    opacity: 0;
    transform: scaleY(0.5);
  }
}

/* حباب‌های کوچک داخل مایع */
.ckps-liquid-layer:after {
  content: "";
  position: absolute;
  top: 20%;
  left: 15%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  opacity: 0;
  box-shadow:
    18px 8px 0 1px rgba(255, 255, 255, 0.4),
    40px -4px 0 0 rgba(255, 255, 255, 0.35),
    28px 14px 0 2px rgba(255, 255, 255, 0.25);
}
.ckps-liquid-layer.is-filling:after {
  animation: ckps_bubbles 2.8s ease-out forwards;
}
@keyframes ckps_bubbles {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  25% {
    opacity: 0.9;
    transform: translateY(0);
  }
  70% {
    opacity: 0.6;
    transform: translateY(-4px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* درخشش سطح */
.ckps-liquid-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  opacity: 0;
  pointer-events: none;
}
.ckps-liquid-layer.is-filling .ckps-liquid-shine {
  animation: ckps_shine_ltr 2.8s ease-in-out forwards;
}
@keyframes ckps_shine_ltr {
  0% {
    opacity: 0;
    left: 0;
  }
  20% {
    opacity: 0.7;
  }
  60% {
    opacity: 0.5;
    left: 50%;
  }
  100% {
    opacity: 0;
    left: 80%;
  }
}

.ckps-result i.ckps-bar-settle {
  transition: width 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

@media (prefers-reduced-motion: reduce) {
  .ckps-liquid-layer.is-filling,
  .ckps-liquid-layer:before,
  .ckps-liquid-layer:after,
  .ckps-refresh.is-loading .ckps-refresh-icon {
    animation: none !important;
  }
}

/* مدال‌های تصویری */
.ckps-medal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.18));
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}
.ckps-medal img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.ckps-option:hover .ckps-medal {
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 7px 10px rgba(15, 23, 42, 0.22));
}
.ckps-rank {
  width: 54px;
  height: 54px;
}

@media (max-width: 720px) {
  .ckps-medal {
    width: 48px;
    height: 48px;
  }
  .ckps-medal img {
    width: 48px;
    height: 39px;
    object-fit: contain;
  }
  .ckps-rank {
    width: 52px;
    height: 52px;
    overflow: visible;
  }
}

/* رتبه در تاریخچه ماهانه */
.ckps-history-row {
  grid-template-columns: 44px minmax(120px, 0.5fr) minmax(80px, 2fr) minmax(
      76px,
      auto
    ) minmax(48px, auto) !important;
}
.ckps-history-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.ckps-history-rank .ckps-medal {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.12));
}
.ckps-history-rank .ckps-medal img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.ckps-history-rank .ckps-rank-number {
  font-size: 12px;
  font-weight: 900;
  color: #667085;
}
@media (max-width: 720px) {
  /* تاریخچه موبایل: ردیف۱ مدال+نام کامل | ردیف۲ نوار+درصد (با فاصله از لبه‌ها) */
  .ckps-history-row {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    grid-template-areas:
      "rank company company"
      "bar bar pct";
    gap: 8px 10px !important;
    align-items: center;
    padding: 12px 10px !important;
  }
  .ckps-history-rank {
    grid-area: rank;
    width: 36px;
    height: 36px;
  }
  .ckps-history-rank .ckps-medal,
  .ckps-history-rank .ckps-medal img {
    width: 32px;
    height: 32px;
  }
  .ckps-history-company {
    grid-area: company;
    min-width: 0;
  }
  .ckps-history-company strong {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-size: 13px;
    line-height: 1.35;
  }
  .ckps-history-bar {
    grid-area: bar;
    height: 9px;
    min-width: 0;
    margin-inline: 4px 8px;
    max-width: 100%;
  }
  .ckps-history-row > b {
    grid-area: pct;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
    padding-inline: 4px 2px;
    min-width: 3.2em;
  }
  .ckps-history-row > small {
    display: none !important;
  }
}

.ckps-rank-dash {
  font-size: 18px;
  font-weight: 700;
  color: #c0c5ce;
  letter-spacing: 0;
}

/* برق ملایم روی مدال‌ها — هر ۶ ثانیه */
.ckps-medal {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ckps-medal::after {
  content: "";
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: -70%;
  width: 38%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 60%,
    transparent 100%
  );
  transform: skewX(-16deg);
  pointer-events: none;
  z-index: 2;
  animation: ckps_medal_shine 6s ease-in-out infinite;
  opacity: 0;
}
.ckps-medal img {
  position: relative;
  z-index: 1;
}

.ckps-option[data-rank="1"] .ckps-medal::after {
  animation-delay: 0s;
}
.ckps-option[data-rank="2"] .ckps-medal::after {
  animation-delay: 2s;
}
.ckps-option[data-rank="3"] .ckps-medal::after {
  animation-delay: 4s;
}

@keyframes ckps_medal_shine {
  0%,
  78% {
    left: -70%;
    opacity: 0;
  }
  82% {
    opacity: 0.85;
  }
  90% {
    left: 125%;
    opacity: 0.7;
  }
  94%,
  100% {
    left: 125%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ckps-medal::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* فیلد کد ملی — فقط وقتی شماره جدید است نمایش داده می‌شود */
.ckps-national-wrap {
  margin-top: 4px;
  text-align: right;
}
.ckps-national-wrap[hidden] {
  display: none !important;
}
.ckps-national-hint {
  margin: 10px 0 0 !important;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  text-align: right;
}
.ckps-auth-hint {
  margin: 0 0 4px !important;
}
