/* =========================================================
   Gold Clean Admin — Minimal Luxury Download Page
   ========================================================= */

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(14, 20, 34, 0.78);
  --border-card: rgba(245, 158, 11, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --gold-300: #fde68a;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --glow-gold: 0 0 45px -8px rgba(245, 158, 11, 0.35);
}

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

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  padding: 24px 16px;
}

.font-latin {
  font-family: 'Outfit', sans-serif;
  direction: ltr;
  display: inline-block;
}

/* Ambient Backdrops */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.ambient-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -50px;
}

.ambient-orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
}

.grid-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 90%);
}

/* Layout Wrapper */
.download-page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: auto;
}

/* Main Download Card */
.download-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), var(--glow-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* App Logo */
.app-icon-wrap {
  position: relative;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.45);
}

/* App Info */
.app-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.app-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #fde68a 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Actions */
.download-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 80%, #b45309 100%);
  color: #0b0f19;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 18px;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-download:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.6);
  color: #000;
}

.btn-download:active {
  transform: translateY(0) scale(0.98);
}

.btn-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.btn-main-label {
  font-size: 1.18rem;
  line-height: 1.2;
}

.btn-sub-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(11, 15, 25, 0.85);
}

.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-copy:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--gold-300);
}

/* QR Section */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  width: 100%;
}

.qr-box {
  width: 140px;
  height: 140px;
  background: #ffffff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.qr-box img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Install Hint */
.install-hint-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px dashed rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: #cbd5e1;
  text-align: right;
  width: 100%;
}

.hint-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 4px;
}

.install-hint-box p {
  line-height: 1.6;
  color: var(--text-muted);
}

.install-hint-box strong {
  color: #fff;
}

/* Card Footer */
.card-footer {
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
  width: 100%;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--gold-500);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.3);
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 480px) {
  .download-card {
    padding: 28px 20px;
    border-radius: 22px;
  }
  
  .app-icon {
    width: 80px;
    height: 80px;
  }

  .app-title {
    font-size: 1.6rem;
  }
}
