/* SnapBridge - Cottagecore & Sandalwood (Tiệm Trà & Gỗ Trầm) Theme */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-main: #FDFBF7;
  --bg-card: #F5EFE6;
  --bg-card-inner: #FAF6F0;
  --bg-card-hover: #ECE4D8;
  --border-color: #E4D8C7;
  --border-subtle: #EDE4D8;
  --border-active: #7C8B76;
  --border-dashed: #C8BCAC;
  --text-main: #382C26;
  --text-muted: #7A695E;
  --text-sub: #9E8E83;
  --accent-sage: #7C8B76;
  --accent-sage-hover: #677561;
  --accent-terracotta: #C27D66;
  --accent-terracotta-hover: #AB6A55;
  --accent-cream: #FFFFFF;
  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: radial-gradient(circle at 10% 20%, rgba(194, 125, 102, 0.03) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(124, 139, 118, 0.04) 0%, transparent 50%);
}

/* Header */
header {
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.1rem 2rem;
}

.header-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(56, 44, 38, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  line-height: 0;
}

.brand-logo:hover {
  transform: scale(1.06);
  box-shadow: 0 5px 14px rgba(56, 44, 38, 0.25);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background-color: var(--accent-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(124, 139, 118, 0.25);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.brand-badge {
  font-size: 0.72rem;
  background-color: #EFE7DA;
  color: var(--text-muted);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  border: 1px solid var(--border-color);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-sub);
}

.status-pill.waiting .status-dot {
  background-color: var(--accent-terracotta);
  box-shadow: 0 0 8px rgba(194, 125, 102, 0.5);
  animation: pulse-dot 2s infinite ease-in-out;
}

.status-pill.connected {
  border-color: rgba(124, 139, 118, 0.6);
  background-color: rgba(124, 139, 118, 0.12);
  color: var(--accent-sage-hover);
  font-weight: 600;
}

.status-pill.connected .status-dot {
  background-color: var(--accent-sage);
  box-shadow: 0 0 10px rgba(124, 139, 118, 0.6);
}

.status-pill.relay {
  border-color: rgba(194, 125, 102, 0.5);
  background-color: rgba(194, 125, 102, 0.1);
  color: var(--accent-terracotta);
}

.status-pill.relay .status-dot {
  background-color: var(--accent-terracotta);
}

.status-pill.disconnected {
  border-color: rgba(217, 83, 79, 0.4);
  color: #B94A48;
}

.status-pill.disconnected .status-dot {
  background-color: #B94A48;
}

/* Main Container */
main {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1rem 2rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Polaroid & Pairing Section */
.pairing-section {
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;
  gap: 3.5rem;
  padding: 2.5rem 3.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(56, 44, 38, 0.05);
  width: 100%;
  margin: 0;
  flex: 1 1 0;
  min-height: 0;
  box-sizing: border-box;
}

.polaroid-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.polaroid-wrapper {
  position: relative;
  background: #FFFFFF;
  padding: 24px 24px 44px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 48px -12px rgba(56, 44, 38, 0.16),
              0 4px 10px rgba(56, 44, 38, 0.04);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
}

.polaroid-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 24px 56px -12px rgba(56, 44, 38, 0.22);
}

/* Little brass pin on polaroid */
.polaroid-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 35% 35%, #F0D5A8, #C29B63);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(56, 44, 38, 0.35);
  border: 1px solid #A88147;
}

.qr-image {
  display: block;
  width: 310px;
  height: 310px;
  border-radius: 6px;
  background-color: var(--bg-main);
  border: 1px dashed var(--border-dashed);
}

.polaroid-caption {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 14px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Direct Link Card under Polaroid */
.direct-link-card {
  width: 100%;
  max-width: 358px;
  background-color: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(56, 44, 38, 0.03);
}

.direct-link-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.direct-link-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.direct-link-input {
  flex: 1;
  min-width: 0;
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-main);
  outline: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.link-action-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}

/* Pairing Meta Column */
.pairing-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 1.65rem;
  width: 100%;
}

.pairing-badge-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.pairing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  background-color: #EFE7DA;
  color: var(--accent-sage-hover);
  letter-spacing: 0.03em;
  border: 1px solid var(--border-color);
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  background-color: rgba(124, 139, 118, 0.12);
  color: var(--accent-sage-hover);
  border: 1px solid rgba(124, 139, 118, 0.35);
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-sage);
  box-shadow: 0 0 6px var(--accent-sage);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.pairing-title {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
  line-height: 1.18;
}

.pairing-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Feature Highlights Grid */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.feature-card {
  background-color: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.25s ease;
  min-height: 116px;
}

.feature-card:hover {
  border-color: var(--accent-sage);
  background-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 44, 38, 0.07);
}

.feature-title {
  font-size: 1.32rem;
  color: #2D211B;
  font-weight: 700;
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.feature-desc {
  font-size: 1.05rem;
  color: #6E5E54;
  line-height: 1.5;
  font-weight: 500;
}

/* Step Pipeline Container */
.steps-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  background-color: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.15rem 1.4rem;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--accent-sage);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.step-arrow {
  color: var(--border-dashed);
  font-size: 1.1rem;
}

/* Format Pills */
.pairing-footer-tips {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  width: 100%;
}

.tip-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.format-pill {
  font-size: 0.75rem;
  background-color: #EFE7DA;
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  color: var(--text-main);
  font-weight: 500;
}

/* Active Workspace (Connected State) */
.workspace {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  animation: fadeIn 0.4s ease-out;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}

.workspace-left-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.card-send-text {
  flex: 0 0 auto;
}

.card-send-file {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.card-send-file .dropzone {
  flex: 1 1 0;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.card-received {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.card-received .received-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  box-shadow: 0 6px 24px rgba(56, 44, 38, 0.05);
  position: relative;
  box-sizing: border-box;
}

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

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #2D211B;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Forms & Text Area */
.text-box {
  width: 100%;
  min-height: 195px;
  background-color: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.text-box:focus {
  border-color: var(--accent-sage);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(124, 139, 118, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--accent-sage);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(124, 139, 118, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-sage-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 139, 118, 0.35);
}

.btn-secondary {
  background-color: #EFE7DA;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: #E5DBCB;
}

.btn-danger {
  background-color: rgba(194, 125, 102, 0.15);
  color: var(--accent-terracotta);
  border: 1px solid rgba(194, 125, 102, 0.3);
}

.btn-danger:hover {
  background-color: rgba(194, 125, 102, 0.25);
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border-dashed);
  background-color: rgba(250, 246, 240, 0.7);
  border-radius: 14px;
  padding: 2.25rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-sage);
  background-color: rgba(124, 139, 118, 0.08);
  transform: scale(1.01);
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #EFE7DA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.dropzone.dragover .dropzone-icon {
  background-color: var(--accent-sage);
  color: #FFFFFF;
}

.dropzone-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #2D211B;
}

.dropzone-hint {
  font-size: 0.86rem;
  color: #6E5E54;
  margin-top: 0.2rem;
}

/* Progress & Transfer Status */
.progress-card {
  background-color: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.progress-track {
  width: 100%;
  height: 9px;
  background-color: #EFE7DA;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-sage), var(--accent-terracotta));
  transition: width 0.15s ease;
}

.progress-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Received Log & Items */
.received-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.received-item {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 14px rgba(56, 44, 38, 0.04);
  animation: slideIn 0.3s ease-out;
}

.received-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.received-content {
  font-size: 0.96rem;
  color: var(--text-main);
  word-break: break-word;
  white-space: pre-wrap;
  background-color: var(--bg-card-inner);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  line-height: 1.55;
}

.received-actions {
  display: flex;
  gap: 0.5rem;
  align-self: flex-end;
}

/* Image Preview & Lightbox Triggers */
.preview-img-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background-color: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(56, 44, 38, 0.06);
  padding: 0.75rem;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.preview-img-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 44, 38, 0.12);
  border-color: var(--accent-sage);
}

.preview-img {
  display: block;
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(56, 44, 38, 0.06);
}

.preview-img-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(45, 33, 27, 0.82);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.preview-img-container:hover .preview-img-overlay {
  opacity: 1;
  transform: scale(1.05);
}

/* Image Lightbox Modal */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 22, 17, 0.85);
  backdrop-filter: blur(8px);
}

.image-modal-dialog {
  position: relative;
  z-index: 1001;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.4rem;
  background: var(--bg-card-inner);
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.image-modal-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.image-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.image-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-modal-close:hover {
  background: #EFE7DA;
  transform: rotate(90deg);
}

.image-modal-body {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18120F;
  overflow: auto;
}

.image-modal-body img {
  max-width: 88vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(56, 44, 38, 0.12);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
}

/* Animations */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1100px) {
  body {
    height: auto;
    min-height: 100vh;
  }
  main {
    flex: none;
    min-height: auto;
    height: auto;
  }
  .pairing-section {
    flex: none;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 3rem 2rem;
    gap: 3rem;
    min-height: auto;
    max-height: none;
    height: auto;
  }
  .pairing-meta {
    align-items: center;
    text-align: center;
  }
  .features-row {
    grid-template-columns: 1fr;
  }
  .steps-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .step-arrow {
    display: none;
  }
  .workspace {
    min-height: auto;
    max-height: none;
    height: auto;
  }
}

@media (max-width: 768px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .qr-image {
    width: 200px;
    height: 200px;
  }
  main {
    padding: 1.25rem 1rem;
  }
  .header-container {
    padding: 0;
  }
}
