/* M2 PLUS STORE — Premium Black & Silver */
:root {
  --bg: #000000;
  --bg-elevated: #0a0a0c;
  --bg-card: rgba(18, 18, 20, 0.72);
  --silver: #c8c8cc;
  --silver-bright: #f0f0f5;
  --silver-dim: #8e8e93;
  --silver-muted: #636366;
  --metal-grad: linear-gradient(135deg, #ffffff 0%, #b8b8be 35%, #e8e8ed 55%, #9a9aa0 75%, #d4d4da 100%);
  --metal-grad-soft: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(180, 180, 190, 0.06));
  --glow: 0 0 40px rgba(200, 200, 210, 0.12);
  --glow-strong: 0 0 60px rgba(220, 220, 230, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --border-silver: rgba(200, 200, 210, 0.22);
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Tajawal", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 56px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200, 200, 210, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(180, 180, 190, 0.04), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(160, 160, 170, 0.03), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Nav — iOS style */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 440px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--glow);
}

.nav-brand span {
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--metal-grad-soft);
  border: 1px solid var(--border-silver);
  color: var(--silver-bright);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:active {
  transform: scale(0.96);
}

/* Hero */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 32px) 20px 48px;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 220, 230, 0.15), transparent 70%);
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 24px;
  box-shadow: var(--glow-strong);
  border: 1px solid var(--border-silver);
  animation: floatLogo 5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid var(--border-silver);
  background: var(--metal-grad-soft);
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease backwards;
}

.hero h1 {
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 14px;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease 0.1s backwards;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto 28px;
  animation: fadeUp 0.8s ease 0.2s backwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  background: var(--metal-grad);
  color: #000;
  box-shadow: var(--glow), 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: fadeUp 0.8s ease 0.3s backwards;
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-primary:hover {
  box-shadow: var(--glow-strong), 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero-scroll {
  margin-top: 40px;
  font-size: 12px;
  color: var(--silver-muted);
  animation: fadeUp 1s ease 0.5s backwards, bounce 2s ease-in-out 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

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

/* Sections */
.section {
  padding: 56px 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--silver-dim);
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 28px;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  border-color: var(--border-silver);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--metal-grad-soft);
  border: 1px solid var(--border-silver);
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* VIP Card */
.vip-card {
  position: relative;
  border-radius: 24px;
  padding: 28px 24px;
  background: linear-gradient(165deg, rgba(30, 30, 34, 0.95), rgba(10, 10, 12, 0.98));
  border: 1px solid var(--border-silver);
  overflow: hidden;
  box-shadow: var(--glow-strong);
}

.vip-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--metal-grad);
}

.vip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
  pointer-events: none;
}

.vip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}

.vip-name {
  font-size: 24px;
  font-weight: 900;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vip-tag {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--metal-grad);
  color: #000;
}

.vip-list {
  list-style: none;
  position: relative;
}

.vip-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--silver);
}

.vip-list li:last-child {
  border-bottom: none;
}

.vip-list li::before {
  content: "✦";
  color: var(--silver-bright);
  font-size: 10px;
}

.vip-cta {
  margin-top: 24px;
  width: 100%;
}

/* Apps */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.app-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-silver);
  box-shadow: var(--glow);
}

.app-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-silver);
  box-shadow: var(--glow);
  background: var(--metal-grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon-fallback {
  font-size: 22px;
  font-weight: 900;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-desc {
  font-size: 11px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.apps-loading,
.apps-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--text-secondary);
  font-size: 14px;
}

.apps-skeleton {
  background: linear-gradient(90deg, rgba(40, 40, 44, 0.8) 25%, rgba(60, 60, 66, 0.8) 50%, rgba(40, 40, 44, 0.8) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius);
  height: 140px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Footer */
.footer {
  padding: 40px 20px calc(24px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 12px;
  opacity: 0.9;
}

.footer-brand {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--silver);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--silver-bright);
}

.footer-copy {
  font-size: 11px;
  color: var(--silver-muted);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Login page */
.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px) 20px 32px;
}

.login-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 16px;
  box-shadow: var(--glow-strong);
  border: 1px solid var(--border-silver);
}

.login-header h1 {
  font-size: 22px;
  font-weight: 800;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.tab.active {
  background: var(--metal-grad-soft);
  color: var(--silver-bright);
  border: 1px solid var(--border-silver);
  box-shadow: var(--glow);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--silver-dim);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 16px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-input:focus {
  border-color: var(--border-silver);
  box-shadow: 0 0 0 4px rgba(200, 200, 210, 0.08);
}

.form-input::placeholder {
  color: var(--silver-muted);
}

.form-msg {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-msg.show {
  display: block;
  animation: fadeUp 0.4s ease;
}

.form-msg.success {
  background: rgba(200, 200, 210, 0.08);
  border: 1px solid var(--border-silver);
  color: var(--silver-bright);
}

.form-msg.error {
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.2);
  color: #ff6b6b;
}

.back-home {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--silver-dim);
}

.back-home:hover {
  color: var(--silver-bright);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

/* Hero dual actions */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  animation: fadeUp 0.8s ease 0.3s backwards;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  border: 1px solid var(--border-silver);
  background: var(--metal-grad-soft);
  color: var(--silver-bright);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.btn-secondary:hover {
  border-color: rgba(220, 220, 230, 0.4);
  box-shadow: var(--glow);
}

/* Device registration pages */
.page-wrap {
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px) 0 48px;
  min-height: 100dvh;
}

.page-header {
  text-align: center;
  margin-bottom: 28px;
}

.page-header img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 16px;
  box-shadow: var(--glow-strong);
  border: 1px solid var(--border-silver);
}

.page-header h1 {
  font-size: 22px;
  font-weight: 800;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 340px;
  margin: 0 auto;
}

.steps-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(20px);
}

.steps-card h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--silver-bright);
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: var(--metal-grad);
  color: #000;
}

.step-item h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.note-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-silver);
  background: rgba(200, 200, 210, 0.05);
  font-size: 12px;
  color: var(--silver-dim);
  margin-bottom: 20px;
  line-height: 1.6;
}

.note-box strong {
  color: var(--silver-bright);
}

.install-btn {
  width: 100%;
  margin-top: 8px;
}

.alert-error {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.2);
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}

/* Success page */
.success-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 48px;
}

.success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 24px;
  background: var(--metal-grad-soft);
  border: 1px solid var(--border-silver);
  box-shadow: var(--glow-strong);
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-page h1 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-page p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto 28px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

/* OTA Install page */
.install-banner {
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-silver);
  background: var(--metal-grad-soft);
  box-shadow: var(--glow);
}

.install-banner h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.install-banner p {
  font-size: 13px;
  color: var(--text-secondary);
}

.install-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.install-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.install-card:hover {
  border-color: var(--border-silver);
  box-shadow: var(--glow);
}

.install-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-silver);
  background: var(--metal-grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.install-card-body {
  flex: 1;
  min-width: 0;
}

.install-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.install-card-meta {
  font-size: 11px;
  color: var(--silver-muted);
  margin-bottom: 8px;
}

.install-card-meta span {
  margin-left: 8px;
}

.signing-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--silver-dim);
}

.signing-badge.signed {
  border-color: rgba(200, 200, 210, 0.35);
  color: var(--silver-bright);
}

.signing-badge.signing {
  color: var(--silver-bright);
  animation: pulseGlow 1.5s ease-in-out infinite;
}

.install-status {
  font-size: 12px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  display: none;
}

.install-status--preparing {
  display: block;
  color: var(--silver);
  border: 1px solid var(--border-silver);
  background: var(--metal-grad-soft);
  animation: pulseGlow 2s ease-in-out infinite;
}

.install-status--ready {
  display: block;
  color: #000;
  font-weight: 700;
  background: var(--metal-grad);
  border: none;
}

.install-status--error {
  display: block;
  color: #ff6b6b;
  border: 1px solid rgba(255, 69, 58, 0.25);
  background: rgba(255, 69, 58, 0.08);
}

/* UDID registering */
.registering-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-silver);
  border-radius: var(--radius);
  box-shadow: var(--glow);
}

.registering-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.registering-hint {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

.registering-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--silver-bright);
  animation: spin 0.9s linear infinite;
}

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

.udid-success-page {
  min-height: calc(100dvh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.udid-success-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
  padding: 28px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.udid-success-device {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 8px 0 4px;
}

.udid-success-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.udid-success-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.udid-callback-body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
}

.udid-callback-card {
  text-align: center;
  max-width: 340px;
}

.udid-callback-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.udid-callback-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.devices-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  overflow: hidden;
}

.devices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.devices-table th {
  text-align: right;
  padding: 12px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--silver-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.devices-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--silver);
}

.devices-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.btn-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  background: var(--metal-grad);
  color: #000;
  white-space: nowrap;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn-install:active {
  transform: scale(0.96);
}

.btn-install:disabled,
.btn-install.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--metal-grad-soft);
  color: var(--silver-dim);
  border: 1px solid var(--border);
}

.install-note {
  margin-top: 24px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-silver);
  font-size: 12px;
  color: var(--silver-dim);
  line-height: 1.6;
  text-align: center;
}

/* ——— Landing & Nav v2 ——— */
.nav-inner--wide {
  max-width: 480px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--silver-bright);
}

.nav-link--cta {
  padding: 8px 14px;
  background: var(--metal-grad-soft);
  border: 1px solid var(--border-silver);
  color: var(--silver-bright);
  font-weight: 700;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 10px;
  animation: fadeUp 0.8s ease backwards;
}

.hero-actions {
  display: none;
}

.section--tight {
  padding-top: 32px;
  padding-bottom: 36px;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.benefits-list li {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--silver);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--metal-grad);
  box-shadow: 0 0 8px rgba(220, 220, 230, 0.4);
  flex-shrink: 0;
}

.price-card {
  border-radius: 24px;
  padding: 28px 22px;
  background: linear-gradient(165deg, rgba(28, 28, 32, 0.96), rgba(8, 8, 10, 0.98));
  border: 1px solid var(--border-silver);
  box-shadow: var(--glow-strong), var(--glow);
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--metal-grad);
}

.price-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.price-plan {
  font-size: 20px;
  font-weight: 900;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--metal-grad);
  color: #000;
}

.price-amount {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-currency {
  font-size: 24px;
  vertical-align: super;
  margin-left: 2px;
}

.price-note {
  font-size: 12px;
  color: var(--silver-muted);
  margin-bottom: 20px;
}

.price-features {
  list-style: none;
  margin-bottom: 24px;
}

.price-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.price-features li:last-child {
  border-bottom: none;
}

.price-cta {
  width: 100%;
}

.cta-animated {
  position: relative;
  overflow: hidden;
}

.cta-animated::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.cta-animated:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong), 0 18px 60px rgba(0, 0, 0, 0.55);
}

.cta-animated:hover::before {
  opacity: 1;
}

.footer--minimal .footer-text,
.footer--minimal .footer-links {
  display: none;
}

/* ——— Store /apps ——— */
.page-store {
  padding-bottom: calc(24px + var(--safe-bottom));
}

.store-page {
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 20px) 20px 32px;
  max-width: 480px;
  margin: 0 auto;
}

.store-header {
  text-align: center;
  margin-bottom: 24px;
}

.store-header h1 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.store-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.hidden {
  display: none !important;
}

.gate-card {
  text-align: center;
  padding: 32px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-silver);
  background: var(--bg-card);
  box-shadow: var(--glow);
  margin-bottom: 24px;
}

.gate-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--silver-bright);
  background: var(--metal-grad-soft);
  border: 1px solid var(--border-silver);
  box-shadow: var(--glow);
}

.gate-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.gate-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.65;
}

.gate-btn {
  width: 100%;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.store-card {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(22, 22, 26, 0.92), rgba(12, 12, 14, 0.96));
  box-shadow: var(--glow);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.store-card:active {
  transform: scale(0.99);
}

.store-card-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-silver);
  box-shadow: 0 0 24px rgba(200, 200, 210, 0.12);
  background: var(--metal-grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-icon-fallback {
  font-size: 22px;
  font-weight: 900;
  background: var(--metal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-card-body {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.store-card-body h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-card-meta {
  font-size: 11px;
  color: var(--silver-muted);
  margin-bottom: 4px;
}

.store-card-desc {
  font-size: 11px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.store-status {
  font-size: 11px;
  margin-bottom: 6px;
}

.store-status--preparing { color: var(--silver); }
.store-status--ready { color: #7dd87d; }
.store-status--installing { color: #8ec8ff; }
.store-status--error { color: #ff6b6b; }

.store-card .btn-install {
  width: 100%;
  margin-top: 4px;
  padding: 9px 14px;
  font-size: 12px;
}

.store-loading,
.store-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

@media (min-width: 390px) {
  .nav-link {
    font-size: 13px;
    padding: 8px 12px;
  }
}

.vip-top-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 6px auto 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #000;
  background: var(--metal-grad);
  box-shadow: var(--glow-strong);
}

@media (min-width: 480px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
