/* Easy Fashion - Apple Platinum Light Design System */
:root {
  --bg-primary: #F6F8FA;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F4F8;
  --border-subtle: #E2E8F0;
  --border-focus: #0969DA;
  --text-primary: #1F2328;
  --text-secondary: #656D76;
  --text-muted: #8C959F;
  --accent-blue: #0969DA;
  --accent-gold: #B38600;
  --accent-dark: #111827;
  --accent-green: #1A7F37;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 120px;
}

/* Icons */
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* Header */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  width: 48px;
  height: 48px;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand-text p {
  font-size: 12px;
  color: var(--text-secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.pill-badge:hover {
  background: #EAEFF5;
  border-color: #CBD5E1;
}

.pill-badge.credits {
  background: #FFF8E6;
  border-color: #FFE082;
  color: #8C6D00;
  font-weight: 600;
}

/* Apple Platinum Light User Popover Dropdown */
.user-popover-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 250px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 16px;
  z-index: 500;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-popover-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.user-avatar-circle .icon {
  width: 18px;
  height: 18px;
}

.user-popover-info {
  flex: 1;
  overflow: hidden;
}

.user-popover-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-popover-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 1px;
}

.user-popover-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 12px 0;
}

.user-popover-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #F8FAFC;
  border-radius: 10px;
  margin-bottom: 12px;
}

.stats-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.stats-val {
  font-size: 13px;
  font-weight: 700;
  color: #8C6D00;
}

.user-popover-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-popover-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.user-popover-btn:hover {
  background: #F1F5F9;
}

.user-popover-btn .icon {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
}

.user-popover-btn.danger {
  color: #CF222E;
}

.user-popover-btn.danger .icon {
  stroke: #CF222E;
}

.user-popover-btn.danger:hover {
  background: #FFEBE9;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #CBD5E1;
}

/* Layout */
.main-wrapper {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.hero-banner {
  text-align: center;
  margin-bottom: 40px;
}

.hero-banner .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  background: #EBF5FF;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.hero-banner h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.hero-banner p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
.studio-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  width: 28px;
  height: 28px;
  background: var(--text-primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: 8px;
  font-weight: normal;
}

/* Model Cards Grid */
.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.model-card {
  position: relative;
  display: flex;
  gap: 20px;
  background: var(--bg-primary);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-card:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

.model-card.active {
  background: #FFFFFF;
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.model-avatar {
  width: 130px;
  height: 170px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #E2E8F0;
  flex-shrink: 0;
}

.model-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.model-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.model-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--text-primary);
  color: #FFFFFF;
  border-radius: 4px;
}

.model-style-tag {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 4px;
}

.model-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.model-vibe {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.model-best {
  font-size: 12px;
  color: var(--text-muted);
}

/* Costumes Section */
.costume-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.costume-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

.costume-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  padding: 6px 14px;
  border-radius: 20px;
  width: 280px;
  border: 1px solid transparent;
}

.costume-search-box:focus-within {
  border-color: var(--border-focus);
  background: #FFFFFF;
}

.costume-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
}

.costumes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.costume-item {
  background: var(--bg-primary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
}

.costume-item:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.costume-item.active {
  background: #FFFFFF;
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.costume-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #E2E8F0;
  margin-bottom: 8px;
}

.costume-id {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.costume-tag {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Upload Dropzone */
.upload-panel {
  display: none;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  background: var(--bg-primary);
  cursor: pointer;
}

.upload-panel:hover {
  border-color: var(--accent-blue);
  background: #F0F7FF;
}

/* Scenes Grid */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.scene-card {
  background: var(--bg-primary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scene-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.scene-card.active {
  background: #FFFFFF;
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.scene-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.scene-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Angles Grid */
.angles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.angle-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.angle-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

.angle-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.angle-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Audio Select */
.bgm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bgm-card {
  background: var(--bg-primary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bgm-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.bgm-card.active {
  background: #FFFFFF;
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.bgm-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bgm-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Sticky Action Footer */
.action-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-details {
  display: flex;
  align-items: center;
  gap: 16px;
}

.summary-pill {
  font-size: 13px;
  color: var(--text-secondary);
}

.summary-pill strong {
  color: var(--text-primary);
}

.btn-primary-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--text-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.btn-primary-launch:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.btn-primary-launch:disabled {
  background: #CBD5E1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* Apple Platinum Light Auth Modal */
.modal-card.auth-modal-card {
  max-width: 440px;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 0;
}

.auth-modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.45;
}

.auth-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
}

.auth-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-email-row {
  display: flex;
  gap: 8px;
}

.auth-input {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #F6F8FA;
  border: 1px solid #D0D7DE;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.auth-input.email-input {
  flex: 1;
}

.auth-input:focus {
  background: #FFFFFF;
  border-color: #0969DA;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.auth-input.code-input {
  width: 100%;
  height: 48px;
  font-family: var(--font-mono);
  letter-spacing: 6px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.btn-auth-code {
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #D0D7DE;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-auth-code:hover:not(:disabled) {
  background: #F3F4F6;
  border-color: #AFB8C1;
}

.btn-auth-code:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #F6F8FA;
}

.btn-auth-submit {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: #1F2328;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-auth-submit:hover:not(:disabled) {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.btn-auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-auth-submit .icon {
  width: 16px;
  height: 16px;
  stroke: #FFFFFF;
}

.auth-benefit-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  font-size: 11px;
  color: var(--text-secondary);
}

.auth-benefit-pill .icon {
  width: 14px;
  height: 14px;
  fill: #D97706;
  stroke: #D97706;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
}

.btn-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--border-focus);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--text-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* Result Fullscreen Modal */
.modal-result-card {
  max-width: 1100px;
  width: 95%;
}

.result-split-view {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  margin-top: 16px;
}

.reel-player-box {
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9/16;
  width: 100%;
  position: relative;
}

.reel-player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lookbook-preview-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lookbook-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
}

.angle-thumbnails-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.angle-thumbnails-strip img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Progress State in Modal */
.progress-card {
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-subtle);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

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

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-subtle);
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0 10px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-blue);
  transition: width 0.4s ease;
}

/* Responsive */
@media (max-width: 900px) {
  .models-grid, .bgm-grid, .result-split-view {
    grid-template-columns: 1fr;
  }
  .costumes-grid, .scenes-grid, .angles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Apple Platinum Light - Task Dashboard & History Drawer
   ========================================================================== */
.btn-dashboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.btn-dashboard-pill:hover {
  background: var(--bg-subtle);
  border-color: #CBD5E1;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  display: inline-block;
  position: relative;
}

.pulse-indicator.active {
  background-color: var(--accent-blue);
  box-shadow: 0 0 0 0 rgba(9, 105, 218, 0.6);
  animation: pulse 1.6s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 10px rgba(9, 105, 218, 0);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent-blue);
  border-radius: 9px;
  line-height: 1;
}

/* Slide Drawer Overlay & Panel */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.open {
  display: flex;
  opacity: 1;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 580px;
  background: var(--bg-primary);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title-group h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-title-group p {
  font-size: 12px;
  color: var(--text-secondary);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Active Production Card */
.active-task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.active-task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.active-task-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.active-task-stage {
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 600;
}

/* Radar step dots */
.camera-radar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.radar-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.radar-step.done {
  color: var(--accent-green);
  font-weight: 600;
}

.radar-step.active {
  color: var(--accent-blue);
  font-weight: 700;
}

.radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}

.radar-step.done .radar-dot {
  background: var(--accent-green);
}

.radar-step.active .radar-dot {
  background: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(9, 105, 218, 0.2);
}

/* History Task Item Cards */
.history-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.history-poster-thumb {
  width: 64px;
  height: 84px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.history-info {
  flex: 1;
  min-width: 0;
}

.history-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.history-costume-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.status-pill.success {
  background: #DCFCE7;
  color: #166534;
}

.status-pill.processing {
  background: #E0F2FE;
  color: #0369A1;
}

.history-meta-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.history-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Toast Message (Apple Dynamic Island Top Pill - 最高层级) */
.toast-notice {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-28px) scale(0.94);
  background: rgba(31, 35, 40, 0.96);
  color: #FFFFFF;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999999; /* 凌驾于所有 Modal/Drawer 遮罩之上 */
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  max-width: 90vw;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.toast-notice.error {
  background: rgba(180, 20, 20, 0.95);
  box-shadow: 0 12px 32px rgba(180, 20, 20, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.toast-notice.success {
  background: rgba(22, 101, 52, 0.95);
  box-shadow: 0 12px 32px rgba(22, 101, 52, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* 弹窗就地错误提示条与震动反馈 */
.auth-error-tip {
  font-size: 12px;
  font-weight: 600;
  color: #CF222E;
  background: #FFEBE9;
  border: 1px solid rgba(207, 34, 46, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  margin-top: 8px;
  text-align: center;
  animation: authShake 0.35s ease;
}

.auth-input.error {
  border-color: #CF222E !important;
  background: #FFF8F8 !important;
  box-shadow: 0 0 0 3px rgba(207, 34, 46, 0.15) !important;
  animation: authShake 0.35s ease;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* 4 套官方合规机位套餐卡片 */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .bundles-grid {
    grid-template-columns: 1fr;
  }
}

.bundle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bundle-card:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}

.bundle-card.active {
  background: #FFFFFF;
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.bundle-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bundle-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.bundle-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  background: #EBF5FF;
  color: var(--accent-blue);
  border-radius: 4px;
  border: 1px solid #D0E5FF;
}

.bundle-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
