/* ==========================================================================
   Newthings iOS Enterprise Portal — Modern "Unslop" Apple-grade CSS
   Tailored for iOS Safari, Responsive, Dark/Light Mode
   ========================================================================== */

:root {
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", "Noto Sans Thai", Roboto, Arial, sans-serif;

  /* Light Theme Palette */
  --bg-primary: #f2f2f7;
  --bg-secondary: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f8f9fa;
  --bg-interactive: #e5e5ea;

  --text-primary: #1c1c1e;
  --text-secondary: #636366;
  --text-tertiary: #8e8e93;

  --border-subtle: rgba(60, 60, 67, 0.12);
  --border-strong: rgba(60, 60, 67, 0.22);
  --divider: rgba(60, 60, 67, 0.08);

  --accent: #007aff;
  --accent-hover: #0062cc;
  --accent-pressed: #004fb0;
  --accent-tint: rgba(0, 122, 255, 0.1);

  --success: #34c759;
  --success-tint: rgba(52, 199, 89, 0.12);
  --success-border: rgba(52, 199, 89, 0.3);

  --warning: #ff9500;
  --warning-tint: rgba(255, 149, 0, 0.12);
  --warning-border: rgba(255, 149, 0, 0.35);

  --danger: #ff3b30;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  --shadow-button: 0 4px 14px rgba(0, 122, 255, 0.35);

  --nav-height: 56px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-elevated: #2c2c2e;
    --bg-subtle: #161618;
    --bg-interactive: #3a3a3c;

    --text-primary: #ffffff;
    --text-secondary: #aeaeb2;
    --text-tertiary: #636366;

    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);
    --divider: rgba(255, 255, 255, 0.08);

    --accent: #0a84ff;
    --accent-hover: #409cff;
    --accent-pressed: #0063d1;
    --accent-tint: rgba(10, 132, 255, 0.18);

    --success: #30d158;
    --success-tint: rgba(48, 209, 88, 0.16);
    --success-border: rgba(48, 209, 88, 0.3);

    --warning: #ff9f0a;
    --warning-tint: rgba(255, 159, 10, 0.16);
    --warning-border: rgba(255, 159, 10, 0.35);

    --danger: #ff453a;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
    --shadow-button: 0 4px 18px rgba(10, 132, 255, 0.4);
  }
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-stack);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   In-App Browser Alert Banner (LINE, FB, Messenger)
   ========================================================================== */

.in-app-banner {
  background: linear-gradient(135deg, #ff9500, #ff5e3a);
  color: #ffffff;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3);
  animation: slideDown 0.35s ease-out;
}

.in-app-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.in-app-icon {
  font-size: 20px;
  line-height: 1;
}

.in-app-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.in-app-text span {
  font-size: 13px;
  opacity: 0.96;
  line-height: 1.4;
  display: block;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(242, 242, 247, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .app-header {
    background-color: rgba(0, 0, 0, 0.82);
  }
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background-color: var(--accent);
  color: #ffffff;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
}

.brand-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-interactive);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-subtle:active {
  transform: scale(0.96);
  opacity: 0.85;
}

/* ==========================================================================
   Page Layout & Cards
   ========================================================================== */

.page-container {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Hero Section & App Identity
   ========================================================================== */

.hero-card {
  padding: 28px 24px;
  text-align: left;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.app-icon-container {
  position: relative;
  flex-shrink: 0;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-subtle);
}

.cert-shield {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background-color: var(--success);
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  border: 2px solid var(--bg-secondary);
}

.app-details {
  flex: 1;
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.title-row h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.enterprise-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: var(--accent-tint);
  color: var(--accent);
  border: 1px solid rgba(0, 122, 255, 0.25);
}

.app-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.45;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.tag strong {
  color: var(--text-primary);
  font-weight: 600;
}

.green-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--success-tint);
  color: var(--success);
  border-color: var(--success-border);
  font-weight: 500;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  animation: pulseDot 2s infinite ease-in-out;
}

/* ==========================================================================
   Install Action Button & Callout
   ========================================================================== */

.install-action-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-install {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #007aff 0%, #0062cc 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-button);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .btn-install {
    background: linear-gradient(180deg, #0a84ff 0%, #0066d6 100%);
  }
}

.btn-install:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

.install-btn-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.install-icon {
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.install-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.install-sublabel {
  font-size: 12.5px;
  opacity: 0.88;
  margin-top: 2px;
  font-weight: 400;
}

/* Install Feedback Banner */
.install-feedback-banner {
  background: var(--accent-tint);
  border: 1px solid rgba(0, 122, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: fadeIn 0.3s ease;
}

.feedback-text strong {
  display: block;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}

.feedback-text p {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0, 122, 255, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Helpers below button */
.install-helpers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.helper-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.helper-item svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Blocked state for non-iPhone (Android, PC) */
.btn-install.btn-blocked {
  background: var(--bg-interactive) !important;
  color: var(--text-tertiary) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.85;
}

.btn-install.btn-blocked:active {
  transform: none !important;
}

.btn-install.btn-blocked .install-icon {
  filter: none;
  color: var(--text-tertiary);
}

.btn-install.btn-blocked .install-label {
  color: var(--text-secondary);
}

.btn-install.btn-blocked .install-sublabel {
  color: var(--text-tertiary);
  opacity: 1;
}

/* Device Incompatibility Banner */
.device-warning-box {
  background-color: var(--warning-tint);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: fadeIn 0.35s ease-out;
}

.warning-icon-badge {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-content {
  flex: 1;
}

.warning-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.warning-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* QR Code Section for PC View */
.pc-qr-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.qr-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.qr-wrapper {
  display: inline-block;
  background-color: #ffffff;
  padding: 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
}

.qr-image {
  display: block;
  width: 130px;
  height: 130px;
}

/* Shake Animation */
.shake {
  animation: shakeEffect 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeEffect {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ==========================================================================
   Section Header with Icon Box
   ========================================================================== */

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.header-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-icon-box.orange {
  background-color: var(--warning-tint);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.header-icon-box.blue {
  background-color: var(--accent-tint);
  color: var(--accent);
  border: 1px solid rgba(0, 122, 255, 0.25);
}

.card-header h2 {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* ==========================================================================
   Breadcrumb Visual
   ========================================================================== */

.breadcrumb-container {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 22px;
}

.crumb-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.crumb-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.crumb {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.crumb-icon {
  font-size: 14px;
}

.crumb-sep {
  color: var(--text-tertiary);
  font-weight: 300;
}

.crumb.highlight {
  color: var(--accent);
  font-weight: 700;
  background-color: var(--accent-tint);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.crumb.action {
  color: var(--success);
  font-weight: 700;
  background-color: var(--success-tint);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   Step-by-Step Flow List & Mockups
   ========================================================================== */

.steps-flow {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.flow-step {
  display: flex;
  gap: 16px;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  left: 15px;
  bottom: -16px;
  width: 2px;
  background: var(--divider);
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-interactive);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 0 0 1px var(--border-subtle);
  z-index: 2;
}

.step-badge.finish {
  background-color: var(--success);
  color: #ffffff;
}

.step-detail {
  flex: 1;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-detail p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* iOS UI Row Mockups (Apple Settings Style) */
.ios-preview-row {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 8px;
}

.ios-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
}

.ios-cell.highlight-cell {
  background-color: var(--accent-tint);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.ios-cell-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ios-cell-icon.grey {
  background-color: #8e8e93;
  color: #fff;
}

.ios-cell-icon.blue {
  background-color: var(--accent);
  color: #fff;
}

.ios-cell-icon.green {
  background-color: var(--success);
  color: #fff;
}

.ios-cell-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.ios-cell-label span {
  color: var(--text-tertiary);
  font-size: 12.5px;
}

.cell-sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.ios-chevron {
  color: var(--text-tertiary);
  font-size: 18px;
  font-weight: 600;
}

.ios-section-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  padding: 4px 6px 6px;
}

/* Action Box for Step 4 (Trust Button & Confirmation Mock) */
.ios-action-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 2px;
}

.ios-trust-btn-mock {
  background-color: var(--bg-secondary);
  color: var(--accent);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ios-confirm-mock {
  display: flex;
  justify-content: center;
}

.mock-dialog {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mock-dialog-title {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  border-bottom: 1px solid var(--divider);
}

.mock-dialog-actions {
  display: flex;
}

.mock-cancel, .mock-trust {
  flex: 1;
  padding: 10px 8px;
  font-size: 13.5px;
  cursor: default;
}

.mock-cancel {
  color: var(--accent);
  border-right: 1px solid var(--divider);
}

.mock-trust {
  color: var(--danger);
  font-weight: 700;
}

.success-tip {
  margin-top: 14px;
  background-color: var(--success-tint);
  border: 1px solid var(--success-border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.success-tip svg {
  color: var(--success);
  flex-shrink: 0;
}

/* iOS 16/17 Developer Mode Callout */
.devmode-callout {
  margin-top: 24px;
  padding: 14px 16px;
  background-color: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;
}

.callout-body strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.callout-body p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.callout-body code {
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  background: var(--bg-interactive);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-primary);
  display: inline-block;
  margin-top: 4px;
}

/* ==========================================================================
   FAQ & Troubleshooting Accordion
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  background-color: var(--bg-secondary);
  border-color: var(--border-strong);
}

.faq-item summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  font-size: 18px;
  color: var(--text-tertiary);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  border-top: 1px solid var(--divider);
  padding-top: 12px;
}

.faq-answer p:not(:last-child) {
  margin-bottom: 8px;
}

.faq-answer ul {
  padding-left: 20px;
  margin-top: 6px;
}

.faq-answer li {
  margin-bottom: 6px;
}

.faq-answer code {
  font-family: ui-monospace, Menlo, monospace;
  background-color: var(--bg-interactive);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.app-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-subtle);
  padding: 24px 16px;
  text-align: center;
  margin-top: auto;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  font-size: 13.5px;
  color: var(--text-primary);
}

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

.footer-meta {
  font-size: 11.5px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background-color: rgba(28, 28, 30, 0.95);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */

.hidden {
  display: none !important;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

/* ==========================================================================
   Mobile Optimizations (< 480px)
   ========================================================================== */

@media (max-width: 480px) {
  .hero-card {
    padding: 20px 16px;
  }

  .app-identity {
    gap: 16px;
  }

  .app-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .title-row h1 {
    font-size: 20px;
  }

  .btn-install {
    padding: 14px 18px;
  }

  .install-label {
    font-size: 16px;
  }

  .crumb-trail {
    font-size: 12px;
  }

  .mock-dialog {
    max-width: 280px;
  }
}
