/* ==========================================================================
       YouTube Interactive Guide Styles (Exact Screenshots Fidelity)
       ========================================================================== */

:root {
  --yt-black: #0F0F0F;
  --yt-card-dark: #212121;
  --yt-blue: #3EA6FF;
  --google-black: #000000;
  --google-blue: #8AB4F8;
  --google-border: #8E918F;
  --guide-accent: var(--color-primary-1, #FF6B6B);
  --guide-mint: var(--color-primary-2, #4ECDC4);
  --phone-scale: 1;
}

body {
  background-color: #F8FAF9;
  color: var(--color-text, #333333);
  font-family: var(--font-text, 'Comic Neue', cursive);
}

/* Main Container */
.guide-main {
  width: min(94%, 1140px);
  margin: 0 auto;
}

/* ==========================================================================
   Guide Slim Top Navigation Bar
   ========================================================================== */

.guide-top-nav {
  position: relative;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.6vh, 14px) clamp(16px, 2.5vw, 24px);
  background: #FFFFFF;
  border: 2px solid rgba(78, 205, 196, 0.25);
  border-top: none;
  border-radius: 0 0 22px 22px;
  margin-bottom: clamp(16px, 2.4vh, 28px);
  box-shadow: 0 8px 30px rgba(1, 22, 39, 0.06);
  box-sizing: border-box;
}

.guide-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 10001;
}

.guide-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-dark, #011627);
  text-decoration: none;
  font-family: var(--font-primary, 'Fredoka', sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.guide-nav-back:hover {
  background: #FFF5F5;
  border-color: var(--color-primary-1, #FF6B6B);
  color: var(--color-primary-1, #FF6B6B);
  transform: translateX(-2px);
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.12);
}

.guide-nav-back i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.guide-nav-back:hover i {
  transform: translateX(-2px);
}

.guide-nav-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.guide-nav-title i,
.guide-nav-title svg {
  font-size: 1.45rem;
  width: 26px;
  height: 26px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.guide-nav-title h1 {
  font-family: var(--font-primary, 'Fredoka', sans-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--color-dark, #011627);
  margin: 0;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.guide-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 20px;
  background: #F0FBF9;
  border: 1.5px solid rgba(78, 205, 196, 0.4);
  color: #1A938C;
  font-family: var(--font-primary, 'Fredoka', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-text-short {
  display: none;
}

.badge-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20A39E;
  box-shadow: 0 0 8px rgba(32, 163, 158, 0.6);
  animation: liveDotPulse 2s infinite ease-in-out;
}

@keyframes liveDotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

.guide-interactive-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 2.5vw, 36px);
  width: 100%;
}

/* ==========================================================================
   iPhone Mobile Phone Mockup with Dynamic Island & Universal Scaling
   ========================================================================== */

.phone-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: sticky;
  top: 20px;
  flex: 1;
}

/* Scaling Wrapper: Preserves exact aspect ratio and scales phone mockup uniformly across any screen width */
.phone-scale-wrapper {
  position: relative;
  width: calc(360px * var(--phone-scale, 1));
  height: calc(724px * var(--phone-scale, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform-origin: center center;
}

.phone-case {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--phone-scale, 1));
  transform-origin: center center;
  width: 360px;
  height: 724px;
  background: linear-gradient(145deg, #2b2b2e, #1c1c1e 40%, #151516);
  border-radius: 54px;
  padding: 11px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 3px #242426,
    0 0 0 4.5px rgba(255, 255, 255, 0.05),
    0 25px 65px rgba(1, 22, 39, 0.35);
  display: flex;
  flex-direction: column;
  user-select: none;
  box-sizing: border-box;
}

/* iPhone Hardware Side Buttons */
.phone-btn {
  position: absolute;
  background: linear-gradient(to right, #242426, #323236);
  border-radius: 3px;
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.2);
  z-index: 0;
}

/* Left side buttons */
.phone-btn-action {
  left: -4px;
  top: 105px;
  width: 4px;
  height: 26px;
  border-radius: 3px 0 0 3px;
}

.phone-btn-vol-up {
  left: -4px;
  top: 148px;
  width: 4px;
  height: 48px;
  border-radius: 3px 0 0 3px;
}

.phone-btn-vol-down {
  left: -4px;
  top: 206px;
  width: 4px;
  height: 48px;
  border-radius: 3px 0 0 3px;
}

/* Right side power button */
.phone-btn-power {
  right: -4px;
  top: 165px;
  width: 4px;
  height: 78px;
  border-radius: 0 3px 3px 0;
}

/* Phone hardware screen */
.phone-screen {
  flex: 1;
  background: #0F0F0F;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", sans-serif;
  color: #FFFFFF;
}

/* iPhone Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 29px;
  background: #000000;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 11px;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 0 1px rgba(255, 255, 255, 0.15);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), height 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  pointer-events: auto;
  cursor: pointer;
}

.dynamic-island:hover {
  width: 146px;
  height: 33px;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), inset 0 0 2px rgba(255, 255, 255, 0.25);
}

.island-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1e2638 0%, #080b14 65%, #000000 100%);
  box-shadow: inset 0 0 1.5px rgba(80, 130, 230, 0.45);
  position: relative;
}

.island-camera::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(140, 180, 255, 0.55);
}

.island-mic {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #111113;
}

/* Transparent Touch Dot Cursor when hovering phone screen */
.phone-screen,
.phone-screen * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='13' fill='rgba(0, 0, 0, 0.15)' stroke='rgba(0, 0, 0, 0.35)' stroke-width='1'/%3E%3Ccircle cx='16' cy='16' r='11' fill='rgba(255, 255, 255, 0.35)' stroke='rgba(255, 255, 255, 0.95)' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='3.5' fill='rgba(255, 255, 255, 0.95)' stroke='rgba(0, 0, 0, 0.2)' stroke-width='0.5'/%3E%3C/svg%3E") 16 16, auto !important;
}

.phone-screen:active,
.phone-screen *:active {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='10' fill='rgba(255, 107, 107, 0.55)' stroke='%23FF6B6B' stroke-width='2.5'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%23FFFFFF'/%3E%3C/svg%3E") 16 16, auto !important;
}

/* Screen Touch Tap Ripple Effect */
.touch-tap-ripple {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.35);
  border: 1.5px solid rgba(255, 107, 107, 0.8);
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
  z-index: 99;
  animation: touchRippleAnim 0.45s ease-out forwards;
}

@keyframes touchRippleAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0.95;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

/* Real iOS Status Bar with Dynamic Island */
.real-status-bar {
  height: 44px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: transparent;
  z-index: 30;
  flex-shrink: 0;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: -0.2px;
}

.status-bar-icons {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #FFFFFF;
}

.ios-signal-icon {
  display: block;
}

.ios-wifi-icon {
  display: block;
}

.ios-battery-icon {
  display: inline-flex;
  align-items: center;
  gap: 1.5px;
}

.ios-battery-body {
  width: 22px;
  height: 11.5px;
  border: 1.2px solid rgba(255, 255, 255, 0.4);
  border-radius: 3.5px;
  padding: 1.5px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.ios-battery-level {
  width: 82%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 1.5px;
}

.ios-battery-cap {
  width: 1.5px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 0 1px 1px 0;
}

/* Screen Scrollable Viewport */
.phone-screen-body {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: #0F0F0F;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.phone-screen-body::-webkit-scrollbar {
  display: none;
}

/* iOS Bottom Home Swipe Indicator */
.phone-bottom-home-bar {
  width: 135px;
  height: 4.5px;
  background: #FFFFFF;
  opacity: 0.85;
  border-radius: 10px;
  margin: 6px auto 6px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

/* Pulsing Tap Indicator (Previous Clean Style) */
.tap-target-pulsar {
  position: absolute;
  width: 44px;
  height: 44px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: left 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tap-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.35);
  border: 2px solid #FF6B6B;
  animation: tapPulse 1.6s infinite ease-out;
  pointer-events: none;
}

@keyframes tapPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  70% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Suppress hand-pointer icon for now */
.tap-cursor-pointer,
.fa-hand-pointer:before,
.fa-hand-pointer::before {
  display: none !important;
  content: none !important;
}


/* ==========================================================================
       YouTube Exact Top Headers & Bottom Navs
       ========================================================================== */

.yt-top-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #0F0F0F;
}

.yt-top-header>svg:first-child {
  height: 20px;
  width: auto;
  max-width: 96px;
  flex-shrink: 0;
  display: block;
}

.yt-top-header svg path[fill="#212121"] {
  fill: #FFFFFF;
}

.yt-top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #FFFFFF;
}

.yt-accounts-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

/* YouTube 4-item & 5-item Bottom Navigation */
#dynamic-screen-bottom {
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  cursor: pointer;
  user-select: none;
}

.yt-bottom-nav {
  height: 52px;
  background: #0F0F0F;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  flex-shrink: 0;
  position: relative;
}

.yt-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #AAAAAA;
  cursor: pointer;
  position: relative;
  flex: 1;
  padding: 4px 0;
  transition: color 0.15s ease, transform 0.1s ease;
}

.yt-nav-btn:hover {
  color: #FFFFFF;
}

.yt-nav-btn:active {
  transform: scale(0.94);
}

.yt-nav-btn.active {
  color: #FFFFFF;
  font-weight: 500;
}

.yt-nav-btn.active .yt-nav-avatar-icon {
  outline: 2px solid #FFFFFF;
  outline-offset: 1px;
}

.yt-nav-avatar-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E65100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

/* ==========================================================================
       Exact Screen Layouts (01.png through 07.jpg)
       ========================================================================== */

/* Screen 01: Home feed empty state with big red logo & search */
.screen-01-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 20px;
  text-align: center;
}

.screen-01-big-logo {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.screen-01-big-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.screen-01-search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.screen-01-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.screen-01-search-pill {
  flex: 1;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #888888;
  font-size: 14px;
}

.screen-01-info-card {
  width: 100%;
  background: #212121;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}

.screen-01-info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px;
}

.screen-01-info-card p {
  font-size: 13px;
  color: #AAAAAA;
  margin: 0;
  line-height: 1.4;
}

/* Screen 02: "You" tab signed-out state */
.screen-02-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px 24px 50px;
  text-align: center;
}

.screen-02-folder-svg {
  width: 110px;
  height: 84px;
  margin-bottom: 34px;
  display: block;
}

.screen-02-title {
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.screen-02-subtitle {
  font-size: 14px;
  color: #AAAAAA;
  margin-bottom: 24px;
  max-width: 250px;
  line-height: 1.4;
}

.screen-02-signin-btn {
  background: #3EA6FF;
  color: #0F0F0F;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Screen 03: Accounts Dialog Sheet */
.screen-03-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.screen-03-modal-card {
  background: #212121;
  width: 100%;
  max-width: 290px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.screen-03-modal-header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
}

.screen-03-modal-row {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #FFFFFF;
  font-size: 14px;
  cursor: pointer;
}

.screen-03-modal-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.screen-03-account-group {
  padding: 10px 18px 4px;
  font-size: 12px;
  color: #AAAAAA;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-03-channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  cursor: pointer;
}

.screen-03-channel-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.screen-03-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #FFF;
  flex-shrink: 0;
}

/* Screen 04: Google Sign-in / Create Account Screen (Exact Android Material You) */
.screen-04-container {
  background: #000000;
  color: #FFFFFF;
  height: 100%;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.screen-04-title {
  font-size: 26px;
  font-weight: 400;
  color: #FFFFFF;
  margin: 16px 0 8px;
  letter-spacing: -0.5px;
}

.screen-04-desc {
  font-size: 13.5px;
  color: #E2E2E2;
  line-height: 1.45;
  margin-bottom: 6px;
}

.screen-04-link {
  color: var(--google-blue, #8AB4F8);
  font-size: 13.5px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
}

.screen-04-outline-input {
  border: 1px solid #8E918F;
  border-radius: 4px;
  padding: 14px 14px;
  font-size: 14px;
  color: #E2E2E2;
  background: transparent;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-04-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
}

.screen-04-btn-text {
  color: #8AB4F8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background 0.15s ease;
}

.screen-04-btn-text:hover {
  background: rgba(138, 180, 248, 0.12);
}

.screen-04-btn-next {
  background: #8AB4F8;
  color: #041E49;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.screen-04-btn-next:hover {
  opacity: 0.92;
}

/* Account Chip Pill for Existing Sign-in Password Screen */
.screen-04-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1D1B20;
  border: 1px solid #49454F;
  border-radius: 20px;
  padding: 4px 12px 4px 6px;
  margin: 8px 0 20px;
  font-size: 13.5px;
  color: #E6E1E5;
  width: fit-content;
}

.screen-04-pill-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7965AF;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-04-pill-email {
  font-weight: 500;
  color: #E6E1E5;
}

.screen-04-popup-menu {
  background: #2D2A32;
  border-radius: 16px;
  padding: 8px 0;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.screen-04-popup-item {
  padding: 12px 18px;
  font-size: 14px;
  color: #E2E2E2;
  cursor: pointer;
  transition: background 0.12s ease;
}

.screen-04-popup-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* Loading Spinner for 04-06.png */
.screen-04-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  cursor: pointer;
}

.google-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(138, 180, 248, 0.2);
  border-top-color: #8AB4F8;
  border-radius: 50%;
  animation: googleSpin 0.9s linear infinite;
}

@keyframes googleSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Verification Illustration for 04-07.png */
.screen-04-verify-art-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 14px;
  width: 100%;
  max-width: 225px;
}

.screen-04-verify-art-box svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SMS Code Input for 04-08 */
.screen-04-code-input {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-family: monospace;
  letter-spacing: 2px;
  border: 1px solid #8AB4F8;
  box-shadow: 0 0 0 1px #8AB4F8;
  border-radius: 4px;
  padding: 14px;
  margin: 16px 0 8px;
}

/* Account Review Card for 04-09 */
.screen-04-account-review-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1D1B20;
  border: 1px solid #49454F;
  border-radius: 16px;
  padding: 16px;
  margin: 20px 0;
}

.screen-04-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #6A1B9A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.screen-04-review-details {
  display: flex;
  flex-direction: column;
}

.screen-04-review-name {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.screen-04-review-email {
  font-size: 13px;
  color: #CAC4D0;
  margin-top: 2px;
}

/* Privacy and Terms Authentic Typography for 04-10 (No Card Box) */
.screen-04-terms-content {
  color: #E2E2E2;
  font-size: 12.5px;
  line-height: 1.5;
  padding-top: 4px;
}

.screen-04-terms-content p {
  margin: 0 0 12px 0;
  color: #E2E2E2;
  font-size: 12.5px;
  line-height: 1.5;
}

.screen-04-link-inline {
  color: #8AB4F8;
  text-decoration: none;
  font-weight: 500;
}

.screen-04-link-inline:hover {
  text-decoration: underline;
}

.screen-04-section-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 18px 0 8px 0;
  letter-spacing: -0.2px;
}

.screen-04-bullet-list {
  margin: 0 0 14px 0;
  padding-left: 18px;
  list-style-type: disc;
}

.screen-04-bullet-list li {
  margin-bottom: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #E2E2E2;
}

.screen-04-more-options-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8AB4F8;
  font-size: 13.5px;
  font-weight: 500;
  margin-top: 14px;
  margin-bottom: 24px;
  cursor: pointer;
}

.screen-04-terms-bottom-bar {
  position: sticky;
  bottom: -24px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px 20px 10px;
  margin: 20px -20px -24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-04-terms-bottom-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Screen 05: Signed in "You" profile page with "Create a channel" button */
.screen-05-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.screen-05-user-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.screen-05-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #6A1B9A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  color: #FFFFFF;
}

.screen-05-name {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.screen-05-buttons-row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.screen-05-btn-create {
  flex: 1;
  background: #FFFFFF;
  color: #0F0F0F;
  padding: 9px 12px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.screen-05-btn-premium {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  padding: 9px 12px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
}

.screen-05-library-heading {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.screen-05-library-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.screen-05-lib-folder {
  width: 100px;
  height: 65px;
  background: #EEEEEE;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F0F0F;
  font-size: 24px;
  flex-shrink: 0;
}

.screen-05-lib-text h4 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 2px;
  color: #FFFFFF;
}

.screen-05-lib-text p {
  font-size: 12px;
  color: #AAAAAA;
  margin: 0;
}

/* Screen 06: "How you'll appear" channel creation form */
.screen-06-container {
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.screen-06-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0 20px;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}

.screen-06-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-06-row-title {
  font-size: 13.5px;
  color: #FFFFFF;
  font-weight: 500;
  margin-bottom: 3px;
}

.screen-06-row-sub {
  font-size: 12px;
  color: #AAAAAA;
}

.screen-06-avatar-camera {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1976D2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 18px;
}

.screen-06-pencil {
  color: #FFFFFF;
  font-size: 16px;
}

.screen-06-terms {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  color: #AAAAAA;
  line-height: 1.45;
  margin: 22px 0 28px;
}

.screen-06-terms a {
  color: #3EA6FF;
  text-decoration: none;
}

.screen-06-btn-create-channel {
  border: 1px solid #3EA6FF;
  color: #3EA6FF;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  width: fit-content;
  margin: 0 auto;
  cursor: pointer;
}

/* Screen 07: Created Channel Page with Clapperboard */
.screen-07-container {
  padding: 14px 16px 20px;
  display: flex;
  flex-direction: column;
}

.screen-07-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.screen-07-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.screen-07-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #E65100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
}

.screen-07-name {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.screen-07-handle {
  font-size: 12.5px;
  color: #AAAAAA;
}

.screen-07-more {
  font-size: 12px;
  color: #888888;
  margin-bottom: 14px;
}

.screen-07-actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.screen-07-action-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.screen-07-action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.screen-07-clapper-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
}

.screen-07-clapper-art {
  width: 140px;
  height: auto;
  max-width: 100%;
  margin-bottom: 14px;
  display: block;
}

.screen-07-clapper-title {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.screen-07-clapper-desc {
  font-size: 12px;
  color: #AAAAAA;
  line-height: 1.4;
  max-width: 260px;
  margin-bottom: 18px;
}

.screen-07-create-btn {
  background: #FFFFFF;
  color: #0F0F0F;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
       Right Side: Step Instruction Card with Interactive In-Step Choice
       ========================================================================== */

.guide-step-card-pane {
  width: clamp(320px, 48%, 560px);
  box-sizing: border-box;
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: clamp(20px, 2vw, 28px);
  padding: clamp(20px, 2.5vw, 34px) clamp(16px, 2vw, 32px);
  box-shadow: 0 12px 40px rgba(1, 22, 39, 0.08);
  border: 2px solid rgba(78, 205, 196, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
}

.guide-step-card {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Desktop Defaults for Mobile Sheet Elements */
.sheet-dock-spacer {
  display: none !important;
}

.sheet-drag-handle-bar {
  display: none;
}

.btn-sheet-toggle {
  display: none;
}

.sheet-backdrop {
  display: none;
}

.step-card-details {
  display: block;
  max-height: none;
  opacity: 1;
  visibility: visible;
  overflow: visible;
  pointer-events: auto;
}

.step-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: var(--color-primary-1, #FF6B6B);
  color: #FFFFFF;
  font-family: var(--font-primary, 'Fredoka', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-restart-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: var(--color-secondary, #54595F);
  font-family: var(--font-primary, 'Fredoka', sans-serif);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.btn-restart-guide:hover {
  background: #FFF5F5;
  border-color: var(--color-primary-1, #FF6B6B);
  color: var(--color-primary-1, #FF6B6B);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.15);
}

.btn-restart-guide i {
  font-size: 0.8rem;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-restart-guide:hover i {
  transform: rotate(360deg);
}

.step-dots-timeline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.step-dot {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: #E5E7EB;
  cursor: pointer;
  transition: all 0.25s ease;
}

.step-dot.active {
  background: var(--color-primary-1, #FF6B6B);
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
}

.step-dot.completed {
  background: var(--color-primary-2, #4ECDC4);
}

.step-title {
  font-family: var(--font-primary, 'Fredoka', sans-serif);
  font-size: clamp(1.28rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--color-dark, #011627);
  margin: 0 0 10px;
  line-height: 1.3;
}

.step-instruction {
  font-size: clamp(0.98rem, 1.3vw, 1.15rem);
  color: var(--color-text, #333333);
  line-height: 1.5;
  margin: 0 0 18px;
}

.step-instruction strong {
  color: var(--color-primary-1, #FF6B6B);
  font-family: var(--font-primary, 'Fredoka', sans-serif);
}

.step-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -2.5px;
  margin: 0 3px;
  color: var(--color-primary-1, #FF6B6B);
}

.step-inline-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Contextual Choice Box inside the Step */
.step-choice-box {
  background: #F8FAFC;
  border: 1.5px solid rgba(78, 205, 196, 0.35);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 22px;
  animation: choiceFadeIn 0.25s ease;
}

@keyframes choiceFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-choice-label {
  font-family: var(--font-primary, 'Fredoka', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark, #011627);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-choice-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.step-choice-btn {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #E2E8F0;
  background: #FFFFFF;
  color: var(--color-dark, #011627);
  font-family: var(--font-text, 'Comic Neue', cursive);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
  transition: all 0.2s ease;
}

.choice-tag {
  position: absolute;
  top: -9px;
  right: 12px;
  font-family: var(--font-primary, 'Fredoka', sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.3;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.choice-tag.tag-recommended {
  background: var(--color-primary-1, #FF6B6B);
  color: #FFFFFF;
}

.choice-tag.tag-created {
  background: #20A39E;
  color: #FFFFFF;
}

@media (max-width: 860px) {
  .step-choice-options {
    flex-direction: column;
    gap: 10px;
  }

  .step-choice-btn {
    flex: none;
    width: 100%;
  }
}

.step-choice-btn:hover {
  border-color: rgba(78, 205, 196, 0.6);
  background: #F0FBF9;
}

.step-choice-btn.active {
  border-color: var(--color-primary-1, #FF6B6B);
  background: #FFF5F5;
  color: var(--color-primary-1, #FF6B6B);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.12);
}

.choice-radio-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-choice-btn.active .choice-radio-indicator {
  border-color: var(--color-primary-1, #FF6B6B);
}

.choice-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.step-choice-btn.active .choice-radio-dot {
  background: var(--color-primary-1, #FF6B6B);
}

/* Pro Tip Box */
.step-tip-box {
  background: #F0FBF9;
  border-left: 4px solid var(--color-primary-2, #4ECDC4);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #2D3748;
}

.step-tip-box i {
  color: var(--color-primary-2, #4ECDC4);
  font-size: 1.15rem;
  margin-top: 2px;
}

/* Navigation Action Buttons */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 2px dashed rgba(78, 205, 196, 0.25);
}

.btn-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 30px;
  font-family: var(--font-primary, 'Fredoka', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-step-prev {
  background: #EDF2F7;
  color: var(--color-secondary, #54595F);
}

.btn-step-prev:hover:not(:disabled) {
  background: #E2E8F0;
  color: var(--color-dark, #011627);
}

.btn-step-prev:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-step-next {
  background: var(--color-primary-1, #FF6B6B);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
}

.btn-step-next:hover {
  background: #FF5252;
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.4);
}

/* ==========================================================================
   Mobile Responsive: Sticky Bottom Sheet + Max-Area Scaled Phone Mockup (<= 700px)
   ========================================================================== */

@media (max-width: 700px) {

  html,
  body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
  }

  body {
    padding: 0;
    margin: 0;
    background: #0B0E14;
    display: flex;
    flex-direction: column;
  }

  .guide-main {
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  /* Compact Slim Top Bar on Mobile */
  .guide-top-nav {
    position: relative;
    z-index: 10000;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding: max(6px, env(safe-area-inset-top, 6px)) clamp(8px, 2.5vw, 14px) 6px;
    margin-bottom: 0;
    border-radius: 0 0 16px 16px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(6px, 1.5vw, 10px);
    box-sizing: border-box;
  }

  .guide-nav-back {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px clamp(6px, 1.8vw, 10px);
    font-size: clamp(0.72rem, 2.2vw, 0.82rem);
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .guide-nav-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .guide-nav-title i,
  .guide-nav-title svg {
    font-size: clamp(1rem, 2.8vw, 1.15rem);
    width: clamp(18px, 4vw, 22px);
    height: clamp(18px, 4vw, 22px);
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
  }

  .guide-nav-title h1 {
    color: #FFFFFF;
    font-size: clamp(0.68rem, 2.6vw, 0.92rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin: 0;
  }

  .guide-nav-badge {
    color: var(--color-primary-2, #4ECDC4);
    background: rgba(78, 205, 196, 0.12);
    border: 1px solid rgba(78, 205, 196, 0.3);
    padding: 3px clamp(5px, 1.5vw, 8px);
    font-size: clamp(0.65rem, 2vw, 0.78rem);
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  @media (max-width: 580px) {
    .badge-text-full {
      display: none;
    }

    .badge-text-short {
      display: inline;
    }

    .guide-nav-badge {
      padding: 3px 7px;
      font-size: 0.74rem;
      gap: 4px;
    }
  }

  @media (max-width: 360px) {
    .badge-text-short {
      display: none;
    }

    .guide-nav-badge {
      padding: 4px 6px;
      gap: 0;
    }
  }

  .guide-interactive-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    gap: 0;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
  }

  /* Phone Mockup: Perfectly centered & scaled to available viewport area */
  .phone-container {
    position: static;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 14px;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Dock Spacer to guarantee phone is NEVER overlapped by bottom sheet */
  .sheet-dock-spacer {
    display: block !important;
    width: 100%;
    height: calc(var(--sheet-peek-height, 86px) + var(--step-actions-height, 60px) + 8px);
    flex-shrink: 0;
    pointer-events: none;
  }

  /* Mobile Backdrop Overlay */
  .sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(1, 22, 39, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .guide-step-card-pane {
    display: contents;
  }

  /* Sticky Bottom Sheet: Slides cleanly using GPU transform with NO layout shift */
  .guide-step-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px 22px 0 0;
    border: 1.5px solid rgba(78, 205, 196, 0.4);
    border-bottom: none;
    box-shadow: 0 -8px 32px rgba(1, 22, 39, 0.18), 0 200px 0 0 rgba(255, 255, 255, 0.98);
    padding: 5px clamp(12px, 3vw, 18px) calc(var(--step-actions-height, 60px) + 14px);
    margin: 0;
    max-height: 76dvh;
    min-height: calc(var(--sheet-peek-height, 86px) + var(--step-actions-height, 60px));
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(calc(100% - var(--sheet-peek-height, 86px) - var(--step-actions-height, 60px)));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  }

  .guide-step-card.is-expanded {
    transform: translateY(0);
    box-shadow: 0 -12px 40px rgba(1, 22, 39, 0.28), 0 200px 0 0 rgba(255, 255, 255, 0.98);
  }

  .guide-step-card.is-dragging {
    transition: none !important;
    user-select: none;
    -webkit-user-select: none;
  }

  /* Drag Handle Bar */
  .sheet-drag-handle-bar {
    display: flex;
    justify-content: center;
    padding: 4px 0 7px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }

  .sheet-drag-handle-bar:active,
  .guide-step-card.is-dragging .sheet-drag-handle-bar {
    cursor: grabbing;
  }

  .sheet-drag-handle {
    width: 36px;
    height: 4px;
    background: #CBD5E1;
    border-radius: 4px;
    transition: background-color 0.2s ease, width 0.2s ease, height 0.2s ease;
  }

  .sheet-drag-handle-bar:active .sheet-drag-handle,
  .guide-step-card.is-dragging .sheet-drag-handle,
  .guide-step-card.is-expanded .sheet-drag-handle {
    background: var(--color-primary-1, #FF6B6B);
    width: 44px;
  }

  .guide-step-card.is-dragging .sheet-drag-handle {
    width: 50px;
    height: 5px;
  }

  /* Card Header on Mobile */
  .step-card-header {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    cursor: grab;
    touch-action: pan-x;
    user-select: none;
    -webkit-user-select: none;
  }

  .guide-step-card.is-dragging .step-card-header {
    cursor: grabbing;
  }

  .step-card-header button,
  .step-card-header a {
    cursor: pointer;
  }

  .step-badge {
    padding: 3px clamp(7px, 2vw, 10px);
    font-size: clamp(0.72rem, 2.2vw, 0.8rem);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .step-header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
  }

  .btn-restart-guide {
    padding: 3px clamp(6px, 1.5vw, 9px);
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .btn-restart-guide span {
    display: none;
    /* Icon only on mobile to save space */
  }

  .btn-restart-guide i {
    font-size: 0.82rem;
  }

  .btn-sheet-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F1F5F9;
    border: 1.5px solid #E2E8F0;
    color: var(--color-dark, #011627);
    font-family: var(--font-primary, 'Fredoka', sans-serif);
    font-size: clamp(0.7rem, 2vw, 0.78rem);
    font-weight: 600;
    padding: 3px clamp(7px, 1.8vw, 10px);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .btn-sheet-toggle i {
    font-size: 0.72rem;
    transition: transform 0.3s ease;
  }

  .guide-step-card.is-expanded .btn-sheet-toggle {
    background: #FFF5F5;
    border-color: var(--color-primary-1, #FF6B6B);
    color: var(--color-primary-1, #FF6B6B);
  }

  .guide-step-card.is-expanded .btn-sheet-toggle i {
    transform: rotate(180deg);
  }

  /* Compact Step Title */
  .step-title {
    font-size: clamp(0.88rem, 2.6vw, 1.05rem);
    margin: 2px 0 6px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
  }

  .guide-step-card.is-expanded .step-title {
    white-space: normal;
    margin-bottom: 8px;
  }

  /* Progress Timeline Dots (Always visible in collapsed & expanded) */
  .step-dots-timeline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .step-dot {
    flex: 1;
    height: 4px;
    border-radius: 3px;
    cursor: pointer;
  }

  .guide-step-card.is-expanded .step-dots-timeline {
    margin-bottom: 8px;
  }

  /* Details content: Always rendered, no collapsing inside the card */
  .step-card-details {
    display: block;
    overflow: visible;
    margin-bottom: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: none;
  }

  .guide-step-card.is-expanded .step-card-details {
    display: block;
    overflow: visible;
    margin-bottom: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: none;
  }

  .step-instruction {
    font-size: 0.92rem;
    margin: 4px 0 12px;
    line-height: 1.45;
  }

  .step-choice-box {
    padding: 12px;
    margin-bottom: 12px;
  }

  .step-choice-options {
    flex-direction: column;
    gap: 8px;
  }

  .step-choice-btn {
    flex: none;
    width: 100%;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .step-tip-box {
    padding: 9px 12px;
    font-size: 0.86rem;
    margin-bottom: 8px;
  }

  /* Separate Navigation Action Buttons: Fixed at the very bottom */
  .step-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px clamp(12px, 3vw, 18px) max(10px, env(safe-area-inset-bottom));
    margin: 0;
    border-top: 1px solid rgba(78, 205, 196, 0.25);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .btn-step {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px clamp(8px, 2.4vw, 16px);
    font-size: clamp(0.78rem, 2.4vw, 0.92rem);
    border-radius: 24px;
    white-space: nowrap;
    min-width: 0;
    box-sizing: border-box;
  }
}