/* ==========================================================================
   Apple Design System CSS (@ns_ment_bot Management Web)
   Strictly aligned with DESIGN-apple.md specifications & tokens
   ========================================================================== */

:root {
  /* --- Colors: Brand & Accent --- */
  --apple-primary: #0066cc;               /* Action Blue: The single brand interactive color */
  --apple-primary-focus: #0071e3;         /* Focus Blue: 2px solid keyboard focus ring */
  --apple-primary-on-dark: #2997ff;       /* Sky Link Blue: in-copy links on dark tiles */
  --apple-on-primary: #ffffff;
  --apple-on-dark: #ffffff;

  /* --- Colors: Text & Ink --- */
  --apple-ink: #1d1d1f;                   /* Near-Black Ink: Headlines, paragraphs */
  --apple-body: #1d1d1f;                  /* Body text on light surfaces */
  --apple-body-on-dark: #ffffff;          /* Body text on dark surfaces */
  --apple-body-muted: #86868b;            /* Secondary copy, captions */
  --apple-ink-muted-80: #333333;          /* Footer headings, pearl button text */
  --apple-ink-muted-48: #7a7a7a;          /* Fine print, micro-legal, disabled */

  /* --- Colors: Hairlines & Borders --- */
  --apple-divider-soft: #f0f0f0;          /* Soft divider */
  --apple-hairline: rgba(0, 0, 0, 0.08);   /* 1px hairline border on light cards */
  --apple-hairline-solid: #e5e5e7;        /* Solid hairline fallback */
  --apple-hairline-dark: rgba(255, 255, 255, 0.12); /* Hairline on dark surfaces */

  /* --- Colors: Surfaces & Canvas --- */
  --apple-canvas: #ffffff;                /* Pure White canvas / utility cards */
  --apple-canvas-parchment: #f5f5f7;      /* Signature Apple off-white parchment */
  --apple-surface-pearl: #fafafc;         /* Near-white pearl button / table header */
  --apple-surface-tile-1: #272729;        /* Near-Black Tile 1 */
  --apple-surface-tile-2: #2a2a2c;        /* Near-Black Tile 2 */
  --apple-surface-tile-3: #252527;        /* Near-Black Tile 3 */
  --apple-surface-black: #000000;         /* Pure Black (Global nav, void) */
  --apple-surface-chip-translucent: rgba(210, 210, 215, 0.64);

  /* --- Frosted Surfaces --- */
  --apple-nav-bg: rgba(0, 0, 0, 0.82);
  --apple-subnav-bg: rgba(245, 245, 247, 0.82);

  /* --- Radius Scale --- */
  --apple-rounded-none: 0px;
  --apple-rounded-xs: 5px;
  --apple-rounded-sm: 8px;
  --apple-rounded-md: 11px;
  --apple-rounded-lg: 18px;
  --apple-rounded-pill: 9999px;
  --apple-rounded-full: 9999px;

  /* --- Typography Font Stack --- */
  --font-family-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Inter, sans-serif;
  --font-family-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Inter, sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* --- Elevation: System Signature Product Shadow --- */
  --apple-product-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
  --apple-modal-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
}

/* ==========================================================================
   Global Reset & Apple Base Typographic Baseline
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-text);
  background-color: var(--apple-canvas-parchment);
  color: var(--apple-ink);
  font-size: 17px;                        /* Apple 17px body rule */
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Headings: Apple Display Hierarchy (Weight 600, Negative Tracking) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  color: var(--apple-ink);
  font-weight: 600;
  margin-top: 0;
}

a {
  color: var(--apple-primary);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.82;
}

/* ==========================================================================
   Typography Classes (DESIGN-apple.md specifications)
   ========================================================================== */

.apple-hero-display {
  font-family: var(--font-family-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
}

.apple-display-lg {
  font-family: var(--font-family-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.apple-display-md {
  font-family: var(--font-family-text);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.apple-lead {
  font-family: var(--font-family-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.196px;
}

.apple-lead-airy {
  font-family: var(--font-family-text);
  font-size: 24px;
  font-weight: 300;                       /* The rare weight 300 */
  line-height: 1.5;
  letter-spacing: 0;
}

.apple-tagline {
  font-family: var(--font-family-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
}

.apple-body-strong {
  font-family: var(--font-family-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.374px;
}

.apple-body {
  font-family: var(--font-family-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.apple-dense-link {
  font-family: var(--font-family-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 2.41;                      /* Relaxed leading for footer links */
  letter-spacing: 0;
}

.apple-caption {
  font-family: var(--font-family-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.224px;
  color: var(--apple-body-muted);
}

.apple-caption-strong {
  font-family: var(--font-family-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

.apple-button-large {
  font-family: var(--font-family-text);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.0;
}

.apple-button-utility {
  font-family: var(--font-family-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

.apple-fine-print {
  font-family: var(--font-family-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.12px;
  color: var(--apple-ink-muted-48);
}

.apple-micro-legal {
  font-family: var(--font-family-text);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.08px;
  color: var(--apple-ink-muted-48);
}

.apple-nav-link {
  font-family: var(--font-family-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.12px;
}

/* ==========================================================================
   Navigation: Two-Row Architecture (Global Nav + Sub-Nav)
   ========================================================================== */

/* 1. Global Navigation (44px, Pure Black / Frosted) */
.apple-global-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background-color: var(--apple-nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1050;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.apple-global-nav .nav-content-lock {
  max-width: 1068px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apple-global-nav .brand-brandmark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-decoration: none;
}

.apple-global-nav .brand-brandmark:hover {
  opacity: 0.9;
}

.apple-global-nav .nav-items-row {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.apple-global-nav .nav-item-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  color: #d2d2d7;
  transition: color 0.15s ease;
  text-decoration: none;
}

.apple-global-nav .nav-item-link:hover,
.apple-global-nav .nav-item-link.active {
  color: #ffffff;
}

.apple-global-nav .nav-right-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.apple-global-nav .user-status-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 400;
  padding: 3px 10px;
  border-radius: var(--apple-rounded-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 2. Sub-Nav Frosted Strip (52px, Sticky below Global Nav) */
.apple-subnav {
  position: sticky;
  top: 44px;
  left: 0;
  right: 0;
  height: 52px;
  background-color: var(--apple-subnav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--apple-hairline);
  z-index: 1040;
  display: flex;
  align-items: center;
}

.apple-subnav .subnav-content-lock {
  max-width: 1068px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apple-subnav .subnav-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.231px;
  color: var(--apple-ink);
  margin: 0;
}

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

/* ==========================================================================
   Buttons (DESIGN-apple.md specifications)
   ========================================================================== */

/* Primary Action Blue Pill CTA */
.apple-btn-primary {
  background-color: var(--apple-primary);
  color: var(--apple-on-primary) !important;
  font-family: var(--font-family-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.2px;
  border-radius: var(--apple-rounded-pill);
  padding: 9px 20px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  outline: none;
}

.apple-btn-primary:hover {
  background-color: var(--apple-primary-focus);
  color: var(--apple-on-primary) !important;
}

.apple-btn-primary:focus-visible {
  outline: 2px solid var(--apple-primary-focus);
  outline-offset: 2px;
}

.apple-btn-primary:active {
  transform: scale(0.95);                 /* Signature micro-interaction */
}

/* Store Hero Large Button (Weight 300) */
.apple-btn-hero {
  background-color: var(--apple-primary);
  color: var(--apple-on-primary) !important;
  font-family: var(--font-family-text);
  font-size: 17px;
  font-weight: 300;                       /* Rare weight 300 */
  line-height: 1.0;
  border-radius: var(--apple-rounded-pill);
  padding: 13px 26px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.apple-btn-hero:hover {
  background-color: var(--apple-primary-focus);
}

.apple-btn-hero:active {
  transform: scale(0.95);
}

/* Secondary Ghost Pill */
.apple-btn-secondary {
  background-color: var(--apple-canvas);
  color: var(--apple-primary) !important;
  border: 1px solid var(--apple-primary);
  font-family: var(--font-family-text);
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--apple-rounded-pill);
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.apple-btn-secondary:hover {
  background-color: rgba(0, 102, 204, 0.04);
}

.apple-btn-secondary:active {
  transform: scale(0.95);
}

/* Dark Utility Button (Sign In, Bag, etc - 8px radius) */
.apple-btn-dark-utility {
  background-color: var(--apple-ink);
  color: var(--apple-on-dark) !important;
  font-family: var(--font-family-text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  border-radius: var(--apple-rounded-sm);  /* 8px */
  padding: 8px 15px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.apple-btn-dark-utility:hover {
  background-color: #333336;
}

.apple-btn-dark-utility:active {
  transform: scale(0.95);
}

/* Pearl Capsule Button (11px radius) */
.apple-btn-pearl {
  background-color: var(--apple-surface-pearl);
  color: var(--apple-ink-muted-80) !important;
  font-family: var(--font-family-text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  border: 1px solid var(--apple-hairline-solid);
  border-radius: var(--apple-rounded-md);  /* 11px */
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.apple-btn-pearl:hover {
  background-color: #ffffff;
  border-color: #c7c7cc;
}

.apple-btn-pearl:active {
  transform: scale(0.95);
}

/* Danger Soft Pill */
.apple-btn-danger-soft {
  background-color: #fff1f2;
  color: #e11d48 !important;
  border: 1px solid #ffe4e6;
  font-size: 13px;
  font-weight: 400;
  border-radius: var(--apple-rounded-pill);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.apple-btn-danger-soft:hover {
  background-color: #ffe4e6;
  color: #be123c !important;
}

.apple-btn-danger-soft:active {
  transform: scale(0.95);
}

/* Ghost text link */
.apple-text-link {
  color: var(--apple-primary);
  font-family: var(--font-family-text);
  font-size: 14px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.apple-text-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Cards & Containers (Store Utility Card System - 18px Radius)
   ========================================================================== */

/* Store Utility Card: Flat, 1px Hairline, 18px Radius, NO Drop Shadow */
.apple-card {
  background-color: var(--apple-canvas);
  border: 1px solid var(--apple-hairline);
  border-radius: var(--apple-rounded-lg); /* 18px */
  padding: 28px;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.apple-card-compact {
  padding: 20px;
}

.apple-card-parchment {
  background-color: var(--apple-canvas-parchment);
  border: 1px solid var(--apple-hairline);
  border-radius: var(--apple-rounded-lg);
  padding: 28px;
}

.apple-card-dark {
  background-color: var(--apple-surface-tile-1);
  color: var(--apple-on-dark);
  border: 1px solid var(--apple-hairline-dark);
  border-radius: var(--apple-rounded-lg);
  padding: 28px;
}

.apple-card-dark h1,
.apple-card-dark h2,
.apple-card-dark h3,
.apple-card-dark h4,
.apple-card-dark h5 {
  color: #ffffff;
}

/* Stat Grid Card */
.apple-stat-card {
  background-color: var(--apple-canvas);
  border: 1px solid var(--apple-hairline);
  border-radius: var(--apple-rounded-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.apple-stat-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  color: var(--apple-body-muted);
}

.apple-stat-value {
  font-family: var(--font-family-text);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.374px;
  color: var(--apple-ink);
  margin-top: 6px;
}

/* Full-bleed alternating tile wrapper */
.apple-tile-section {
  padding: 64px 0;
}

.apple-tile-section.bg-canvas {
  background-color: var(--apple-canvas);
}

.apple-tile-section.bg-parchment {
  background-color: var(--apple-canvas-parchment);
}

.apple-tile-section.bg-dark {
  background-color: var(--apple-surface-tile-1);
  color: var(--apple-on-dark);
}

/* ==========================================================================
   Configurator Option Chips & Filter Pills
   ========================================================================== */

.apple-chip-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.apple-chip {
  background-color: var(--apple-canvas);
  color: var(--apple-ink);
  border: 1px solid var(--apple-hairline-solid);
  border-radius: var(--apple-rounded-pill);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-chip:hover {
  border-color: #c7c7cc;
  background-color: var(--apple-surface-pearl);
  color: var(--apple-ink);
}

.apple-chip.active {
  background-color: var(--apple-primary);
  color: #ffffff;
  border-color: var(--apple-primary);
}

.apple-chip:active {
  transform: scale(0.95);
}

.apple-chip .chip-count {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 8px;
  border-radius: var(--apple-rounded-pill);
  font-size: 12px;
  font-weight: 600;
}

.apple-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   Form Controls (Search Input & Form Elements - Apple Pill / 12px Radius)
   ========================================================================== */

.apple-input,
.apple-select,
.apple-textarea {
  background-color: var(--apple-canvas);
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--apple-ink);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.apple-input::placeholder,
.apple-textarea::placeholder {
  color: #86868b;
  font-size: 14px;
}

.apple-input-pill {
  border-radius: var(--apple-rounded-pill);
  padding: 11px 20px;
}

.apple-input:focus,
.apple-select:focus,
.apple-textarea:focus {
  border-color: var(--apple-primary-focus);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}

.apple-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--apple-ink);
  margin-bottom: 6px;
  display: block;
}

.apple-form-hint {
  font-size: 12px;
  color: var(--apple-body-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Apple Spec Table (Clean Museum Spec List)
   ========================================================================== */

.apple-table-wrap {
  border: 1px solid var(--apple-hairline);
  border-radius: var(--apple-rounded-lg);
  overflow: hidden;
  background-color: var(--apple-canvas);
}

.apple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.apple-table th {
  font-family: var(--font-family-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--apple-ink-muted-48);
  padding: 14px 20px;
  border-bottom: 1px solid var(--apple-hairline);
  background-color: var(--apple-surface-pearl);
}

.apple-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--apple-hairline);
  color: var(--apple-ink);
  vertical-align: middle;
}

.apple-table tr:last-child td {
  border-bottom: none;
}

.apple-table tr:hover td {
  background-color: rgba(0, 0, 0, 0.015);
}

/* Copyable Code Box */
.apple-code-chip {
  background: var(--apple-surface-pearl);
  border: 1px solid var(--apple-hairline-solid);
  border-radius: var(--apple-rounded-sm);
  padding: 5px 10px;
  font-family: var(--font-family-mono);
  font-size: 13px;
  color: var(--apple-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.apple-code-chip:hover {
  border-color: var(--apple-primary);
  color: var(--apple-primary);
  background-color: #ffffff;
}

.apple-code-chip:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Badges (Apple Calm Status Pills)
   ========================================================================== */

.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--apple-rounded-pill);
  line-height: 1.3;
}

.apple-badge-super {
  background-color: #fff8e6;
  color: #b45309;
  border: 1px solid #fde68a;
}

.apple-badge-admin {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.apple-badge-user {
  background-color: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.apple-badge-active {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.apple-badge-pending {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* ==========================================================================
   Accordion (Clean Apple Tile Accordion)
   ========================================================================== */

.apple-accordion-item {
  border: 1px solid var(--apple-hairline);
  border-radius: var(--apple-rounded-lg) !important;
  background-color: var(--apple-canvas);
  margin-bottom: 14px;
  overflow: hidden;
}

.apple-accordion-btn {
  background-color: var(--apple-canvas);
  padding: 18px 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--apple-ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.apple-accordion-btn:hover {
  background-color: var(--apple-surface-pearl);
}

.apple-accordion-body {
  padding: 20px 24px;
  border-top: 1px solid var(--apple-hairline);
  background-color: var(--apple-surface-pearl);
}

/* Ment card inside situation */
.apple-ment-card {
  background: var(--apple-canvas);
  border: 1px solid var(--apple-hairline);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
}

.apple-ment-card:last-child {
  margin-bottom: 0;
}

.apple-ment-text {
  background: var(--apple-surface-pearl);
  border: 1px solid var(--apple-hairline);
  border-radius: var(--apple-rounded-sm);
  padding: 14px 16px;
  font-family: var(--font-family-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--apple-ink);
  white-space: pre-wrap;
  margin-top: 10px;
  user-select: all;
}

/* ==========================================================================
   Telegram Device Simulation (Single Soft System Drop Shadow)
   ========================================================================== */

.apple-device-wrapper {
  background: #ffffff;
  border: 1px solid var(--apple-hairline);
  border-radius: 28px;
  box-shadow: var(--apple-product-shadow); /* The one signature drop-shadow */
  overflow: hidden;
  max-width: 360px;
  margin: 0 auto;
}

.apple-device-bar {
  background: #f7f7f8;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.apple-device-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--apple-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.apple-device-screen {
  background: #eef2f5;
  padding: 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apple-msg-bubble {
  background: #ffffff;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.apple-tg-btn {
  background: #ffffff;
  color: var(--apple-primary);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: default;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Modals (Apple Clean Dialog)
   ========================================================================== */

.modal-backdrop.show {
  opacity: 0.45;
  backdrop-filter: blur(8px);
}

.modal-content {
  border-radius: var(--apple-rounded-lg) !important;
  border: 1px solid var(--apple-hairline) !important;
  box-shadow: var(--apple-modal-shadow) !important;
  background-color: var(--apple-canvas) !important;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--apple-hairline) !important;
  padding: 20px 24px !important;
  background-color: var(--apple-canvas);
}

.modal-body {
  padding: 24px !important;
}

.modal-footer {
  border-top: 1px solid var(--apple-hairline) !important;
  padding: 16px 24px !important;
  background-color: var(--apple-surface-pearl);
}

/* ==========================================================================
   Footer (Parchment Background, Relaxed Dense Links, Fine Print)
   ========================================================================== */

.apple-footer {
  background-color: var(--apple-canvas-parchment);
  color: var(--apple-ink-muted-80);
  border-top: 1px solid var(--apple-hairline);
  padding: 48px 0 32px 0;
  margin-top: auto;
}

.apple-footer .footer-content-lock {
  max-width: 1068px;
  margin: 0 auto;
  padding: 0 24px;
}

.apple-footer-fineprint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--apple-ink-muted-48);
  border-top: 1px solid var(--apple-hairline);
  padding-top: 16px;
  margin-top: 24px;
}

/* ==========================================================================
   Responsive Breakpoints (DESIGN-apple.md specifications)
   ========================================================================== */

@media (max-width: 833px) {
  .apple-global-nav .nav-items-row {
    display: none;
  }
  
  .apple-subnav .subnav-title {
    font-size: 18px;
  }
  
  .apple-hero-display {
    font-size: 34px;
  }
  
  .apple-display-lg {
    font-size: 28px;
  }
  
  .apple-card {
    padding: 20px;
  }
}
