/* FieldTrade watch demo — from fieldtradewebadmins landing + modal stage */

.ft-btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: #fff;
  border: 1px solid #0f766e;
  border-radius: 8px;
  color: #0f766e;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ft-btn-watch:hover {
  background: #ecfdf5;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.12);
}

.ft-btn-watch .ft-play,
.btn--fieldtrade-demo .ft-play {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  padding-left: 2px;
  line-height: 1;
  flex-shrink: 0;
}

.hero__actions--watch-demos {
  gap: 0.65rem;
}

.hero__actions .btn--watch-demo {
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 14rem;
  max-width: 100%;
  border-color: #0f766e;
  color: #0f766e;
  background: #fff;
  text-align: left;
  justify-content: flex-start;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  line-height: 1.25;
}

.hero__actions .btn--watch-demo:hover {
  background: #ecfdf5;
  border-color: #0f766e;
  color: #0f766e;
}

.hero__actions .btn--watch-demo .ft-play {
  border-color: #0f766e;
}

.portfolio-showcase--demo-trigger {
  cursor: pointer;
}

.portfolio-showcase--demo-trigger:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 4px;
}

.portfolio-showcase-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.showcase--hipay .portfolio-showcase-hint {
  color: #64748b;
}

.showcase--betting .portfolio-showcase-hint {
  color: #64748b;
}

.btn--hipay-demo,
.btn--betting-demo {
  gap: 0.5rem;
  min-width: 0;
  border-color: #0f766e;
  color: #0f766e;
  background: #fff;
}

.btn--hipay-demo:hover,
.btn--betting-demo:hover {
  background: #ecfdf5;
  border-color: #0f766e;
  color: #0f766e;
}

.btn--hipay-demo .ft-play,
.btn--betting-demo .ft-play {
  border-color: #0f766e;
}

/* HiPay & Betting modals use same teal + smoke shell as FieldTrade */
.ft-demo-modal--hipay,
.ft-demo-modal--betting {
  background: rgba(15, 118, 110, 0.72);
}

/* Demo modal */
.ft-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 118, 110, 0.72);
}

.ft-demo-modal.is-open {
  display: flex;
}

.ft-demo-dialog {
  width: min(100%, 720px);
  max-height: min(90vh, 640px);
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ft-demo-dialog--video {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.ft-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: #0f766e;
  color: #fff;
}

.ft-demo-dialog--video .ft-demo-head h2 {
  color: #fff;
  margin: 0;
  font-size: 1rem;
}

.ft-demo-dialog--video .ft-demo-close {
  color: rgba(255, 255, 255, 0.85);
}

.ft-demo-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}

.ft-demo-video-wrap {
  padding: 18px 18px 12px;
  background: linear-gradient(165deg, #0f766e 0%, #0d9488 45%, #2dd4bf 100%);
  position: relative;
  overflow: visible;
}

.ft-demo-video-wrap .ft-phone-device {
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.28));
}

.ft-demo-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
}

.ft-demo-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: inherit;
  transition: width 0.1s linear;
}

.ft-demo-caption {
  padding: 18px 22px 8px;
  background: #fff;
}

.ft-demo-caption h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #0f766e;
}

.ft-demo-caption p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
}

.ft-demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px 16px;
  background: #fff;
}

.ft-demo-controls button {
  border: 1px solid #dde3ea;
  background: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: #0f766e;
}

.ft-demo-controls .ft-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.ft-demo-controls .ft-btn-primary:hover {
  background: #0d9488;
}

.ft-demo-dots {
  display: flex;
  gap: 6px;
}

.ft-demo-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.ft-demo-dots span.is-active {
  background: #0f766e;
}

.ft-demo-dots--video {
  justify-content: center;
  padding-bottom: 18px;
  background: #fff;
}

.ft-demo-dots--video span.is-active {
  background: #0f766e;
}
