/* ==========================================================================
   Apple Pro Storefront — Human Interface Guidelines & Minimal Luxury Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --apple-bg: #000000;
  --apple-elevated: #161617;
  --apple-card: #1c1c1e;
  --apple-card-hover: #262629;
  --apple-border: rgba(255, 255, 255, 0.08);
  --apple-border-hover: rgba(255, 255, 255, 0.18);
  
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-text: #2997ff;
  --apple-green: #30d158;
  --apple-amber: #ff9f0a;
  --apple-purple: #bf5af2;
  --apple-red: #ff453a;
  
  --apple-text: #f5f5f7;
  --apple-secondary: #86868b;
  --apple-tertiary: #6e6e73;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  background-color: var(--apple-bg);
  color: var(--apple-text);
  min-height: 100vh;
  letter-spacing: -0.015em;
  overflow-x: hidden;
}

/* Apple Pro Card */
.apple-card {
  background-color: var(--apple-card);
  border: 1px solid var(--apple-border);
  border-radius: 24px;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.apple-card:hover {
  background-color: var(--apple-card-hover);
  border-color: var(--apple-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Apple Squircle App Icon (22% corner radius) */
.apple-icon-frame {
  border-radius: 22%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-card:hover .apple-icon-frame {
  transform: scale(1.08);
}

/* Apple Pill Action Buttons */
.apple-pill-btn {
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--apple-blue-text);
  font-weight: 600;
  padding: 8px 18px;
  font-size: 13px;
  transition: all 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.apple-pill-btn:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: scale(1.02);
}

.apple-pill-btn:active {
  transform: scale(0.97);
}

.apple-pill-primary {
  background-color: var(--apple-blue);
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 600;
  padding: 9px 20px;
  font-size: 13px;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.apple-pill-primary:hover {
  background-color: var(--apple-blue-hover);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.5);
  transform: scale(1.02);
}

.apple-pill-primary:active {
  transform: scale(0.97);
}

/* Apple Segmented Filter Bar */
.apple-segmented-dock {
  background-color: rgba(28, 28, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  gap: 4px;
}

.apple-filter-chip {
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--apple-secondary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.apple-filter-chip:hover {
  color: #ffffff;
}

.apple-filter-chip.active {
  background-color: #323236;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Apple Headline Typography */
.apple-headline {
  background: linear-gradient(180deg, #ffffff 30%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Apple Sheet / Modal */
.apple-modal {
  background-color: rgba(28, 28, 30, 0.94);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
}

.apple-grabber {
  width: 40px;
  height: 5px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 auto 20px auto;
}

/* Subtle Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* iOS Toggle Switch */
.apple-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.apple-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.apple-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #39393d;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.apple-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.apple-switch input:checked + .apple-slider {
  background-color: #30d158;
}

.apple-switch input:checked + .apple-slider:before {
  transform: translateX(18px);
}

/* Small Apple Switch */
.apple-switch-sm {
  width: 36px;
  height: 20px;
}

.apple-switch-sm .apple-slider:before {
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
}

.apple-switch-sm input:checked + .apple-slider:before {
  transform: translateX(16px);
}

/* Apple Terms & Conditions Container */
.apple-terms-box {
  background: rgba(18, 18, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.apple-terms-box:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(24, 24, 27, 0.85);
}

