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

@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/orbitron.woff2') format('woff2');
}



:root {
  --bg-black: #000000;
  --bg-card: #08080a;
  --bg-card-hover: #0d0e12;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f4f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-black);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-black);
  color: var(--text-primary);
  overflow-x: hidden;
  selection-background-color: rgba(255, 255, 255, 0.18);
  selection-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Subtle Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #1c1d22;
  border-radius: 2px;
}

/* Elegant Cards */
.clean-card {
  background: #07080a;
  border: 1px solid var(--border-subtle);
  transition: all 0.35s ease;
}

.clean-card:hover {
  border-color: var(--border-hover);
  background: #0c0d11;
}

/* Buttons */
.btn-white {
  background: #ffffff;
  color: #000000;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-white:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-dark {
  background: #0e0f14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  transition: all 0.25s ease;
}

.btn-dark:hover {
  background: #171821;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Authentic iPhone Case Mockup */
.iphone-frame {
  position: relative;
  width: 292px;
  height: 602px;
  background: #0b0c0f;
  border-radius: 50px;
  padding: 9px;
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 0 3px #15161b,
    0 25px 60px -15px rgba(0, 0, 0, 0.98);
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 42px;
  overflow: hidden;
}

/* Apple Dynamic Island */
.apple-dynamic-island {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 94px;
  height: 24px;
  background: #000000;
  border-radius: 20px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* iOS Home Indicator Bar */
.ios-home-bar {
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  margin: 0 auto;
}

/* Shimmer animation for iOS "Swipe up to open" */
@keyframes appleShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.apple-shimmer-text {
  display: block;
  width: 100%;
  margin: 0 auto;
  text-align: center !important;
  background: linear-gradient(90deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.4) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: appleShimmer 3.2s infinite ease-in-out;
}

/* Google Font: Borel (Apple Hello Unboxing Script) */
@font-face {
  font-family: 'Borel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/borel.woff2') format('woff2'),
       url('https://fonts.gstatic.com/s/borel/v10/6qLOKZsftAPisgskYyUnOw.woff2') format('woff2');
}

/* Apple Hello typography with Borel font */
.apple-hello-title,
.apple-hello-script {
  font-family: 'Borel', "Snell Roundhand", "Apple Chancery", "Caveat", "Dancing Script", cursive;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1.35;
  overflow: visible;
  display: inline-block;
}

.apple-hello-gradient {
  background: linear-gradient(110deg, #388697 0%, #88c542 22%, #fab915 42%, #eb5e43 62%, #7a52aa 82%, #3886b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Authentic iOS WebKit Status Bar - Absolute & Unified across all layers */
.ios-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  padding: 14px 22px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 30;
  pointer-events: none;
  user-select: none;
  direction: ltr !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ios-status-time {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #ffffff;
  line-height: 1;
  padding-left: 14px;
}

.ios-status-vpn {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 8px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  padding: 1px 3.5px;
  line-height: 1;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.ios-battery-capsule {
  width: 22px;
  height: 11.5px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 3.5px;
  padding: 1.5px;
  display: flex;
  align-items: center;
}

.ios-battery-level {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 1.5px;
}

.ios-battery-tip {
  width: 1.5px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.6);
  border-top-right-radius: 1px;
  border-bottom-right-radius: 1px;
  margin-left: -0.5px;
}

/* Configurator Color Swatch Active Ring */
.cfg-swatch-active {
  box-shadow: 0 0 0 2px #08080a, 0 0 0 4px #ffffff;
  transform: scale(1.12);
}

/* Exterior Specs: Capsule Rows & Status Pills (Our Dark Luxury Style) */
.spec-capsule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(10, 11, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.spec-capsule-row:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(16, 17, 22, 0.98);
}

.spec-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  padding: 2.5px 8.5px;
  border-radius: 9999px;
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.spec-status-pill.pill-disabled {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(26, 12, 14, 0.92);
}

.spec-status-pill.pill-disabled .status-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 9999px;
  background-color: #ef4444;
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.7);
  flex-shrink: 0;
}

.spec-status-pill.pill-online {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(6, 26, 19, 0.92);
  color: #34d399;
}

.spec-status-pill.pill-online .status-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 9999px;
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.85);
  flex-shrink: 0;
}

.spec-status-pill.pill-alert {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(30, 12, 14, 0.95);
  color: #f87171;
}

.spec-status-pill.pill-alert .status-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 9999px;
  background-color: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.85);
  flex-shrink: 0;
}

.spec-status-pill.pill-orange {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(35, 16, 8, 0.95);
  color: #fb923c;
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.15);
}

.spec-status-pill.pill-orange .status-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 9999px;
  background-color: #f97316;
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.9);
  flex-shrink: 0;
}

/* Brand Typography */
.font-orbitron {
  font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* RTL Layout Support (Arabic) */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .text-center {
  text-align: center;
}
[dir="rtl"] .text-left {
  text-align: right;
}
[dir="rtl"] .text-right {
  text-align: left;
}
[dir="rtl"] .ios-status-bar {
  direction: ltr !important;
}
[dir="rtl"] .iphone-frame {
  direction: ltr !important;
}
/* Dot-only pills: same height as text pills ("3 попытки") */
.spec-status-pill.pill-disabled::after {
  content: "\200b";
  width: 0;
  margin-left: -5.5px;
}

/* Vault banner: soft lighter background, no border */
.vault-card {
  background: #0f1014;
  border: none;
}
