/**
 * YPYM Observatory — Interactive iPhone Canvas Simulator (Element X Matrix E2EE)
 * Luxury Calm-Tech / Figma Dot Matrix Aesthetic
 */

/* ==========================================================================
   1. Showcase Canvas Container (Wider Breakout & Richer Figma Dot Grid)
   ========================================================================== */

.simulator-canvas-section {
  width: min(94vw, 1540px);
  margin-left: calc((100% - min(94vw, 1540px)) / 2);
  margin-right: calc((100% - min(94vw, 1540px)) / 2);
  margin-top: 0;
  margin-bottom: 96px;
  display: flex;
  justify-content: center;
  position: relative;
  perspective: 1400px;
}

.simulator-canvas {
  width: 100%;
  max-width: 1540px;
  background-color: #eaedf2; /* Richer, darker soft-grey canvas */
  background-image: radial-gradient(rgba(51, 65, 85, 0.28) 1.25px, transparent 1.25px);
  background-size: 20px 20px;
  background-position: center;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: none;
  padding: 56px 40px 64px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  will-change: background-position;
  transition: border-radius 0.3s ease;
}

/* Top Tab Switcher Pills — Spacious Container with Solid Icons */
.canvas-tab-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  max-width: 860px;
}

.canvas-tab-btn {
  font-size: 0.825rem;
  font-weight: 600;
  padding: 9px 18px; /* Lebih tinggi & nyaman */
  min-height: 42px;
  border-radius: var(--radius-pill);
  color: #0f172a; /* Saat tidak aktif: solid hitam/dark slate */
  transition: all 220ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  user-select: none;
}

.canvas-tab-btn:hover {
  color: #000000;
  background-color: rgba(0, 0, 0, 0.05);
}

.canvas-tab-btn.is-active {
  background-color: #000000; /* Hitam pekat solid saat aktif */
  color: #ffffff; /* Teks putih bersih */
  box-shadow: none;
}

/* Solid SVG Icons in tab menu (Color morphing: Inactive = #0f172a, Active = #ffffff) */
.tab-icon-solid {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
  display: inline-block;
  transition: fill 220ms ease, transform 220ms ease;
}

.tab-icon-solid path,
.tab-icon-solid circle,
.tab-icon-solid rect {
  fill: currentColor;
}

.canvas-tab-btn.is-active .tab-icon-solid {
  fill: #ffffff;
}

/* Tab Bar Badge Counters */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: #e2e8f0;
  color: #475569;
  font-size: 0.65rem;
  font-weight: 700;
  transition: background-color 220ms ease, color 220ms ease;
}

.canvas-tab-btn.is-active .tab-badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Canvas Mockup Preview Wrapper
   -------------------------------------------------------------------------- */

.canvas-preview-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  position: relative;
}

/* Canvas Stage (iPhone in Center Focus) */
.simulator-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

/* ==========================================================================
   2. Ultra-Thin Phone Frame & Dynamic Island
   ========================================================================== */

.iphone-frame {
  width: 375px;
  height: 740px;
  background: #ffffff;
  border-radius: 42px;
  border: 2px solid #1f242d;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 2;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.12s cubic-bezier(0.25, 1, 0.35, 1);
}

/* Dynamic Island & Status Bar */
.iphone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  padding: 10px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  font-weight: 600;
  color: #0f172a;
  z-index: 40;
  pointer-events: none;
}

.iphone-time {
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
}

.iphone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
}

.status-svg {
  width: 15px;
  height: 12px;
  display: block;
}

.iphone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background-color: #0f172a;
  border-radius: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition: all 300ms var(--ease-spring);
  cursor: pointer;
}

.dynamic-island-cam {
  width: 8px;
  height: 8px;
  background-color: #1e293b;
  border-radius: 50%;
}

.dynamic-island-sensor {
  width: 7px;
  height: 7px;
  background-color: #1e293b;
  border-radius: 50%;
}

/* Dynamic Island Notification Expansion */
.iphone-dynamic-island.is-expanded {
  width: 300px;
  height: 58px;
  border-radius: 26px;
  padding: 10px 16px;
  justify-content: flex-start;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.island-notif-content {
  display: none;
  flex-direction: column;
  color: #ffffff;
  font-size: 0.75rem;
  text-align: left;
  line-height: 1.3;
}

.iphone-dynamic-island.is-expanded .island-notif-content {
  display: flex;
}

/* Home Indicator Bar */
.iphone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 100px;
  z-index: 40;
  pointer-events: none;
}

/* Screen Viewport */
.iphone-screen-viewport {
  width: 100%;
  height: 100%;
  padding-top: 44px;
  padding-bottom: 22px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.phone-screen {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 22px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  scroll-behavior: smooth;
}

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

.phone-screen.is-active {
  display: flex;
  animation: phoneScreenFadeIn 240ms ease;
}

@keyframes phoneScreenFadeIn {
  from {
    opacity: 0.4;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   3. Screen 1: Chats (Messenger Home)
   ========================================================================== */

.chats-header {
  padding: 10px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chats-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.775rem;
  color: #334155;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.chats-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.chats-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  cursor: pointer;
}

.chats-header-actions svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Filter Chips */
.chats-filter-chips {
  display: flex;
  gap: 6px;
  padding: 6px 18px 10px;
  overflow-x: auto;
}

.chats-filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 4px 11px;
  background: #f1f5f9;
  border-radius: var(--radius-pill);
  font-size: 0.725rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  cursor: pointer;
  transition: all 180ms ease;
}

.filter-chip.is-active {
  background: #0f172a;
  color: #ffffff;
}

/* Chat Item Rows */
.chats-list {
  display: flex;
  flex-direction: column;
  padding: 4px 10px;
  gap: 2px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 160ms ease;
}

.chat-item:hover, .chat-item:active {
  background: #f8fafc;
}

.chat-item-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #334155;
  background: #f1f5f9;
  flex-shrink: 0;
  position: relative;
}

.chat-item-avatar.avatar-room {
  background: #f1f5f9;
  color: #0f172a;
}

.chat-item-content {
  flex: 1;
  min-width: 0;
}

.chat-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.chat-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-time {
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 500;
}

.chat-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-item-preview {
  font-size: 0.725rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.chat-item-badge {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* Floating Bottom Dock */
.chats-floating-dock {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

.chats-dock-pill {
  pointer-events: auto;
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.dock-icon {
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 10px;
  transition: color 180ms ease;
}

.dock-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-icon.is-active {
  color: #0f172a;
}

.chats-dock-add {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #18181b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.25);
  cursor: pointer;
  transition: transform 180ms var(--ease-spring);
}

.chats-dock-add:active {
  transform: scale(0.92);
}

/* ==========================================================================
   4. Screen 2: Room / Channel Timeline (E2EE Chat — Calm-Tech Clean)
   ========================================================================== */

.room-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.room-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-room-back {
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-room-back:hover {
  color: #0f172a;
}

.room-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
}

.room-header-info {
  display: flex;
  flex-direction: column;
}

.room-header-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
}

.verified-shield-icon {
  width: 13px;
  height: 13px;
  color: #059669;
  flex-shrink: 0;
}

.room-header-status {
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 500;
}

.room-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
}

.room-action-btn {
  background: none;
  border: none;
  padding: 4px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease;
  border-radius: 6px;
}

.room-action-btn:hover {
  color: #0f172a;
}

.room-action-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* E2EE Info Banner (Clean Neutral Pill) */
.room-e2ee-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin: 12px 16px 8px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.725rem;
  color: #64748b;
}

.room-e2ee-banner svg {
  width: 13px;
  height: 13px;
  stroke: #64748b;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Message Timeline */
.room-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 70px;
  flex: 1;
}

.msg-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.8125rem;
  line-height: 1.4;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-incoming {
  align-self: flex-start;
  background: #f1f5f9;
  color: #0f172a;
  border-bottom-left-radius: 4px;
}

.msg-incoming strong {
  font-size: 0.75rem;
  color: #475569;
}

.msg-outgoing {
  align-self: flex-end;
  background: #18181b;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 0.625rem;
  color: #94a3b8;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.msg-outgoing .msg-time {
  color: rgba(255, 255, 255, 0.65);
}

/* Interactive Room Input Bar */
.room-input-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.btn-input-attach {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-input-attach svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.room-input-field {
  flex: 1;
  background: #f1f5f9;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.8125rem;
  border: 1px solid transparent;
  color: #0f172a;
}

.room-input-field:focus {
  background: #ffffff;
  border-color: #cbd5e1;
}

.btn-input-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #18181b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 160ms ease, background 160ms ease;
  flex-shrink: 0;
}

.btn-input-send:hover {
  background: #27272a;
}

.btn-input-send:active {
  transform: scale(0.92);
}

.btn-input-send svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================================================
   5. Screen 3: Settings Screen (Monochrome Clean SVGs)
   ========================================================================== */

.settings-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #f8fafc;
}

.settings-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.settings-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.settings-avatar-large {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.settings-profile-info {
  display: flex;
  flex-direction: column;
}

.settings-profile-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.settings-profile-handle {
  font-size: 0.75rem;
  color: #64748b;
}

.settings-menu-list {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: background 160ms ease;
}

.settings-menu-item:hover {
  background: #f8fafc;
}

.settings-menu-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  flex-shrink: 0;
}

.settings-menu-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-menu-chevron {
  margin-left: auto;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.settings-menu-item.danger-item {
  color: #dc2626;
}

.settings-menu-item.danger-item .settings-menu-icon {
  background: #fef2f2;
  color: #dc2626;
}

.settings-version-text {
  text-align: center;
  font-size: 0.6875rem;
  color: #94a3b8;
  padding: 24px 0 16px;
}

/* ==========================================================================
   6. Screen 4: Advanced Settings
   ========================================================================== */

.advanced-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.advanced-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.advanced-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.advanced-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
}

.setting-text-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-row-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.setting-row-desc {
  font-size: 0.725rem;
  color: #64748b;
  line-height: 1.35;
}

/* iOS Style Switch Toggle */
.ios-switch {
  width: 42px;
  height: 24px;
  background-color: #cbd5e1;
  border-radius: 100px;
  position: relative;
  transition: background-color 240ms ease;
  flex-shrink: 0;
  cursor: pointer;
}

.ios-switch.is-on {
  background-color: #0f172a;
}

.ios-switch-thumb {
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 240ms var(--ease-spring);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ios-switch.is-on .ios-switch-thumb {
  transform: translateX(18px);
}

/* Radio Group */
.radio-group-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: #1e293b;
  cursor: pointer;
}

.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.8px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-dot.is-selected {
  border-color: #0f172a;
}

.radio-dot.is-selected::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #0f172a;
  border-radius: 50%;
}

/* ==========================================================================
   7. Screen 5: Login Screen
   ========================================================================== */

.login-screen-inner {
  padding: 36px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.login-logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 3px solid var(--accent-blue);
  box-shadow: 0 0 16px var(--accent-blue-glow);
  margin-bottom: 4px;
}

.login-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.login-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: -12px;
  max-width: 240px;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 4px;
}

.login-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
}

.login-input {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.8125rem;
  color: #0f172a;
}

.login-input:focus {
  background: #ffffff;
  border-color: #0f172a;
}

.btn-login-submit {
  background: #18181b;
  color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 180ms ease, background 180ms ease;
  border: none;
}

.btn-login-submit:hover {
  background: #27272a;
}

.btn-login-submit:active {
  transform: scale(0.98);
}

.btn-login-sso {
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 9px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   8. Showcase Stage Layout (Centered Phone + Lower-Right Stacked Cards)
   ========================================================================== */

.simulator-stage-layout {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 1440px;
}

.simulator-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.simulator-side-cards {
  position: absolute;
  left: calc(50% + 220px);
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 350px;
  z-index: 10;
  will-change: transform;
}

.simulator-annotation-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.simulator-annotation-card:hover {
  border-color: rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.chat-avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.annotation-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
}

.annotation-badge-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.annotation-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.annotation-card-desc {
  font-size: 0.775rem;
  color: #64748b;
  line-height: 1.5;
}

.annotation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.annotation-tag-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* Responsive adjustment */
@media (max-width: 1180px) {
  .simulator-canvas-section {
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2);
    margin-right: calc((100% - 100vw) / 2);
    padding: 0 16px;
    box-sizing: border-box;
  }

  .simulator-stage-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .simulator-side-cards {
    position: static;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 375px;
    margin-bottom: 0;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .simulator-canvas-section {
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2);
    margin-right: calc((100% - 100vw) / 2);
    margin-bottom: 60px;
    padding: 0;
    box-sizing: border-box;
  }

  .simulator-canvas {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 24px 12px 36px;
  }

  .simulator-side-cards {
    width: 100%;
    max-width: 330px;
    gap: 14px;
  }

  .simulator-annotation-card {
    width: 100%;
    max-width: 330px;
    padding: 20px 18px;
  }
}

@media (max-width: 640px) {

  /* Horizontally scrollable tab bar on mobile */
  .canvas-tab-bar {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 8px;
    border-radius: var(--radius-pill);
    gap: 6px;
    margin-bottom: 24px;
  }

  .canvas-tab-bar::-webkit-scrollbar {
    display: none;
  }

  .canvas-tab-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.775rem;
    min-height: 38px;
    gap: 6px;
  }

  .tab-icon-solid {
    width: 13px;
    height: 13px;
  }

  /* iPhone frame responsive sizing */
  .iphone-frame {
    width: 320px;
    height: 640px;
    border-radius: 36px;
  }

  .iphone-status-bar {
    height: 40px;
    padding: 8px 18px 0;
    font-size: 0.725rem;
  }

  .phone-screen {
    top: 40px;
    bottom: 20px;
  }
}

@media (max-width: 380px) {
  .simulator-canvas {
    padding: 20px 8px 28px;
  }

  .iphone-frame {
    width: 295px;
    height: 600px;
    border-radius: 30px;
  }
}
