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

:root {
  --bg-dark: #041312;
  --bg-gradient: radial-gradient(circle at 50% 25%, #0e3b37 0%, #082522 55%, #041211 100%);
  --card-bg: rgba(20, 56, 52, 0.65);
  --card-border: rgba(75, 175, 160, 0.25);
  --card-border-hover: rgba(0, 210, 180, 0.55);
  --teal-accent: #00A896;
  --teal-glow: rgba(0, 168, 150, 0.25);
  --text-main: #ffffff;
  --text-sub: #9ec5c0;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

/* Background Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.18) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(2, 128, 144, 0.12) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.page-wrapper {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease-out;
}

/* Logo Box */
.logo-container {
  width: 132px;
  height: 132px;
  background: #ffffff;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 
    0 15px 35px -5px rgba(0, 0, 0, 0.5),
    0 0 45px rgba(0, 168, 150, 0.25),
    inset 0 -3px 8px rgba(0, 0, 0, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.logo-container:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 
    0 20px 45px -5px rgba(0, 0, 0, 0.6),
    0 0 55px rgba(0, 200, 180, 0.35);
}

.logo-container img, .logo-container svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Slogan / Subtitle */
.brand-slogan {
  margin-top: 24px;
  margin-bottom: 34px;
  font-size: 15.5px;
  font-weight: 600;
  color: #b5d8d4;
  text-align: center;
  letter-spacing: -0.2px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding: 0 10px;
}

/* Action Cards Group */
.links-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Action Card Link */
.action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(20, 56, 52, 0.72) 0%, rgba(11, 38, 35, 0.75) 100%);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  text-decoration: none;
  color: var(--text-main);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 
    0 10px 25px -4px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: 0.6s ease;
}

.action-card:hover::before {
  left: 100%;
}

.action-card:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: var(--card-border-hover);
  background: linear-gradient(135deg, rgba(25, 72, 67, 0.82) 0%, rgba(14, 46, 43, 0.85) 100%);
  box-shadow: 
    0 16px 35px -5px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(0, 168, 150, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.action-card:active {
  transform: translateY(0) scale(0.99);
}

/* Card Right Section (Badge & Texts) */
.card-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

/* App / Feature Icon Badge */
.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.action-card:hover .icon-badge {
  transform: scale(1.06);
}

.icon-badge.website {
  background: linear-gradient(135deg, #00b49f 0%, #008775 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.icon-badge.appstore {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.icon-badge.googleplay {
  background: linear-gradient(135deg, #00b49f 0%, #028090 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.icon-badge svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

/* Card Texts */
.card-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.card-desc {
  font-size: 12.5px;
  font-weight: 500;
  color: #93bdb8;
  line-height: 1.4;
}

/* Left Action Arrow / Download Pill */
.action-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #a7cfcb;
  transition: var(--transition);
}

.action-card:hover .action-arrow {
  background: rgba(0, 168, 150, 0.3);
  border-color: rgba(0, 200, 180, 0.5);
  color: #ffffff;
  transform: translateX(-3px);
}

.action-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Footer / Admin Link */
.footer-bar {
  margin-top: 45px;
  font-size: 12.5px;
  color: rgba(160, 200, 195, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bar a {
  color: rgba(160, 200, 195, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bar a:hover {
  color: #00e5c9;
}

/* Loading Ripple */
.loading-ripple {
  position: fixed;
  inset: 0;
  background: rgba(4, 19, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-ripple.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 168, 150, 0.2);
  border-top-color: #00c49f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

@media (max-width: 420px) {
  body {
    padding: 24px 14px 30px;
  }
  .logo-container {
    width: 120px;
    height: 120px;
    border-radius: 28px;
  }
  .action-card {
    padding: 12px 14px;
    border-radius: 19px;
  }
  .icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .icon-badge svg {
    width: 24px;
    height: 24px;
  }
  .card-title {
    font-size: 15.5px;
  }
  .card-desc {
    font-size: 11.5px;
  }
  .action-arrow {
    width: 36px;
    height: 36px;
  }
}
