/* ==========================================================================
   جامعة 6 أكتوبر - O6U Smart Electronic ID System
   Modern Styling & Dynamic Motion Engine
   ========================================================================== */

:root {
  /* University Core Colors */
  --o6u-primary: #04163f;
  --o6u-primary-light: #0b2c75;
  --o6u-accent: #f28427;
  --o6u-gold: #f59e0b;
  --o6u-gold-glow: rgba(245, 158, 11, 0.4);
  --o6u-bg-dark: #010a1f;

  /* Category Identity Gradients */
  --cat-student-primary: #0284c7;
  --cat-student-gradient: linear-gradient(135deg, #0369a1 0%, #0d9488 100%);
  --cat-student-badge: #e0f2fe;
  --cat-student-text: #0369a1;

  --cat-doctor-primary: #854d0e;
  --cat-doctor-gradient: linear-gradient(135deg, #1e1b4b 0%, #b45309 100%);
  --cat-doctor-badge: #fef3c7;
  --cat-doctor-text: #92400e;

  --cat-employee-primary: #0891b2;
  --cat-employee-gradient: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
  --cat-employee-badge: #cffafe;
  --cat-employee-text: #0e7490;

  --cat-hotel-primary: #ea580c;
  --cat-hotel-gradient: linear-gradient(135deg, #431407 0%, #d97706 100%);
  --cat-hotel-badge: #ffedd5;
  --cat-hotel-text: #c2410c;

  --cat-military-primary: #4d7c0f;
  --cat-military-gradient: linear-gradient(135deg, #14532d 0%, #a16207 100%);
  --cat-military-badge: #ecfccb;
  --cat-military-text: #3f6212;

  --cat-grad-primary: #7c3aed;
  --cat-grad-gradient: linear-gradient(135deg, #3b0764 0%, #9333ea 100%);
  --cat-grad-badge: #f3e8ff;
  --cat-grad-text: #6b21a8;

  /* Glassmorphism & Elevations */
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 25px 60px -15px rgba(0, 15, 50, 0.35), 0 0 35px rgba(242, 132, 39, 0.15);
  --card-radius: 24px;
}

/* ==========================================================================
   Ambient Dynamic Background & Mesh
   ========================================================================== */
body.o6u-body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  direction: rtl;
  text-align: right;
  background: linear-gradient(125deg, #01081a 0%, #031742 20%, #08215c 40%, #0b1a3d 60%, #171542 80%, #01081a 100%);
  background-size: 300% 300%;
  animation: o6uGradientShift 16s ease infinite;
  color: #1e293b;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

@keyframes o6uGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Ambient Light Orbs & Glowing Aurora Waves */
.o6u-ambient-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.o6u-ambient-container::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(2, 132, 199, 0.15) 0%, transparent 45%),
              radial-gradient(circle at 75% 75%, rgba(242, 132, 39, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 70% 25%, rgba(99, 102, 241, 0.14) 0%, transparent 50%),
              radial-gradient(circle at 25% 80%, rgba(7, 38, 109, 0.25) 0%, transparent 55%);
  animation: o6uMeshRotate 35s linear infinite;
  pointer-events: none;
}

@keyframes o6uMeshRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.o6u-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.65;
  will-change: transform;
}

.o6u-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.7) 0%, rgba(2, 132, 199, 0.15) 55%, transparent 75%);
  top: -160px;
  right: -120px;
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.o6u-orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(242, 132, 39, 0.55) 0%, rgba(217, 119, 6, 0.15) 55%, transparent 75%);
  bottom: -160px;
  left: -160px;
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.o6u-orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.6) 0%, rgba(67, 56, 202, 0.15) 55%, transparent 75%);
  top: 35%;
  left: 20%;
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

.o6u-orb-4 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, rgba(3, 23, 66, 0.2) 60%, transparent 75%);
  top: 55%;
  right: 15%;
  animation: floatOrb4 24s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.15); }
  100% { transform: translate(-50px, 30px) scale(0.92); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -60px) scale(1.12); }
  100% { transform: translate(60px, -40px) scale(0.9); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 80px) scale(1.18); }
  100% { transform: translate(-60px, -50px) scale(0.95); }
}

@keyframes floatOrb4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 60px) scale(1.1); }
  100% { transform: translate(50px, -70px) scale(0.92); }
}

/* University Header Branding */
.o6u-header-section {
  position: relative;
  z-index: 10;
  padding: 30px 15px 15px;
  text-align: center;
}

.o6u-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 6px 18px;
  border-radius: 50px;
  color: #f8fafc;
  font-size: 0.9rem;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.o6u-main-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.o6u-subtitle {
  color: #fed7aa;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 25px;
}

/* ==========================================================================
   Modern Interactive Search Bar
   ========================================================================== */
.o6u-search-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  border-radius: 60px;
  padding: 8px 12px;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 780px;
  margin: 0 auto 30px;
}

.o6u-search-card:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: #f28427;
  box-shadow: 0 20px 45px -10px rgba(242, 132, 39, 0.35), 0 0 0 4px rgba(242, 132, 39, 0.2);
  transform: translateY(-2px);
}

.o6u-search-input {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 600;
  padding: 10px 15px !important;
  outline: none !important;
  box-shadow: none !important;
}

.o6u-search-input::placeholder {
  color: rgba(255, 255, 255, 0.65) !important;
  font-weight: 400;
}

.o6u-search-btn {
  background: linear-gradient(135deg, #f28427 0%, #e65100 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 10px 30px !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(242, 132, 39, 0.45);
  transition: all 0.3s ease !important;
}

.o6u-search-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(242, 132, 39, 0.6);
  color: #ffffff !important;
}

.o6u-search-hints {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.o6u-hint-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   3D Smart Card Flip & Perspective
   ========================================================================== */
.o6u-card-stage {
  perspective: 2000px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 10;
}

.o6u-card-wrapper {
  position: relative;
  width: 100%;
  min-height: 780px;
  border-radius: var(--card-radius);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.3, 0.64, 1);
  cursor: default;
}

.o6u-card-stage.flipped .o6u-card-wrapper {
  transform: rotateY(180deg);
}

/* Hover flip on desktop (optional & smooth) */
@media (hover: hover) and (min-width: 992px) {
  .o6u-card-stage:hover .o6u-card-wrapper {
    /* Subtle 3D lift */
    box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.6);
  }
}

/* Common Faces */
.o6u-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--card-radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.o6u-face-front {
  z-index: 5;
  pointer-events: auto;
}

.o6u-face-back {
  transform: rotateY(180deg);
  background: #ffffff;
  z-index: 1;
  pointer-events: none;
}

.o6u-card-stage.flipped .o6u-face-front {
  z-index: 1;
  pointer-events: none;
}

.o6u-card-stage.flipped .o6u-face-back {
  z-index: 5;
  pointer-events: auto;
}

/* Card Header Banner */
.o6u-card-header {
  height: 145px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 18px;
}

.o6u-card-header-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  transition: transform 0.6s ease;
}

.o6u-card-wrapper:hover .o6u-card-header-img {
  transform: scale(1.05);
}

.o6u-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 23, 66, 0.75) 0%, rgba(3, 23, 66, 0.4) 60%, rgba(3, 23, 66, 0.95) 100%);
}

.o6u-header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.o6u-university-crest {
  display: flex;
  align-items: center;
  gap: 10px;
}

.o6u-crest-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.o6u-crest-text {
  color: #ffffff;
}

.o6u-crest-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.o6u-crest-subtitle {
  font-size: 0.72rem;
  color: #fed7aa;
  margin: 0;
}

/* Category Badge in Header (تصغير الخط لتوفير مسافة واضحة بعيداً عن الصورة) */
.o6u-category-pill {
  font-size: 0.70rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.o6u-category-pill:hover {
  transform: translateY(-1px);
}

.pill-student { background: var(--cat-student-badge); color: var(--cat-student-text); }
.pill-doctor { background: var(--cat-doctor-badge); color: var(--cat-doctor-text); }
.pill-employee { background: var(--cat-employee-badge); color: var(--cat-employee-text); }
.pill-hotel { background: var(--cat-hotel-badge); color: var(--cat-hotel-text); }
.pill-military { background: var(--cat-military-badge); color: var(--cat-military-text); }
.pill-grad { background: var(--cat-grad-badge); color: var(--cat-grad-text); }

/* Smart Chip & Hologram Emblems */
.o6u-smart-chip {
  width: 36px;
  height: 28px;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #fef08a 100%);
  border-radius: 5px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #b45309;
  overflow: hidden;
  flex-shrink: 0;
}

.o6u-smart-chip::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(133, 77, 14, 0.5);
  border-radius: 4px;
}

.o6u-smart-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(133, 77, 14, 0.6);
}

/* User Photo Section with Status (تكبير صورة الطالب شيئاً قليلاً) */
.o6u-photo-container {
  position: relative;
  width: 170px;
  height: 170px;
  margin: -80px auto 14px;
  z-index: 5;
}

.o6u-photo-frame {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  padding: 5px;
  background: #ffffff;
  box-shadow: 0 14px 32px -5px rgba(0, 20, 60, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.4s ease;
}

.o6u-card-wrapper:hover .o6u-photo-frame {
  transform: scale(1.03) rotate(-1deg);
}

.o6u-user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: fill;
    background: #f1f5f9;
}

/* Living Status Dot Badge */
.o6u-status-indicator {
  position: absolute;
  bottom: 2px;
  left: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.72rem;
  font-weight: 700;
}

.o6u-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

.o6u-pulse-dot.active {
  background: #10b981;
}

.o6u-pulse-dot.active::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.5);
  animation: pulseDot 1.8s infinite;
}

.o6u-pulse-dot.danger {
  background: #ef4444;
}

.o6u-pulse-dot.danger::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.5);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* User Identity Info */
.o6u-id-body {
  padding: 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.o6u-user-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #031742;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Information Grid Items */
.o6u-info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 15px;
}

.o6u-info-row {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 14px;
  transition: all 0.25s ease;
  position: relative;
}

.o6u-info-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(-3px);
}

.o6u-info-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  flex: 0 0 auto;
  min-width: 125px;
  white-space: nowrap;
  z-index: 2;
}

.o6u-info-label i {
  font-size: 1rem;
  color: #f28427;
  width: 18px;
  text-align: center;
}

.o6u-info-value {
  color: #031742;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center !important;
  flex: 1 1 auto;
  margin: 0 auto;
  direction: ltr;
  padding: 0 8px;
  z-index: 1;
}

.o6u-info-value.ar-val {
  direction: rtl;
  text-align: center !important;
}

.o6u-info-value.highlight-green {
  color: #059669;
}

.o6u-info-value.highlight-red {
  color: #dc2626;
}

/* موازنة بصرية لتوسيط بيانات الطالب بدقة في المنتصف بدلاً من اليسار */
.o6u-info-row::after {
  content: '';
  flex: 0 0 110px;
  pointer-events: none;
}

/* Interactive Password Row */
.o6u-pass-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 8px;
  z-index: 1;
}

.o6u-pass-toggle-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.o6u-pass-toggle-btn:hover {
  color: #f28427;
}

/* Barcode Container with Laser Scan Beam */
.o6u-barcode-section {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 15px 6px;
  margin-top: auto;
  margin-bottom: 12px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.o6u-laser-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444, 0 0 18px #f87171;
  opacity: 0.85;
  animation: laserSweep 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes laserSweep {
  0% { top: 5%; opacity: 0.2; }
  50% { top: 92%; opacity: 1; }
  100% { top: 5%; opacity: 0.2; }
}

.o6u-barcode-font {
  font-family: 'Libre Barcode 128 Text', cursive, sans-serif !important;
  font-size: 64px !important;
  line-height: 1;
  color: #000000;
  margin: 0;
  letter-spacing: 2px;
}

/* Card Footer Controls & Flip Action */
.o6u-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  position: relative;
  z-index: 20;
}

.o6u-flip-btn {
  background: linear-gradient(135deg, #031742 0%, #0b2c75 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 30px;
  padding: 9px 22px;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(3, 23, 66, 0.25);
  cursor: pointer;
  position: relative;
  z-index: 25;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.o6u-flip-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(242, 132, 39, 0.45);
  background: linear-gradient(135deg, #f28427 0%, #c2410c 100%);
}

.o6u-flip-btn:active {
  transform: translateY(1px) scale(0.97);
}

button.o6u-category-pill {
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  position: relative;
  z-index: 25;
  transition: all 0.25s ease;
}

button.o6u-category-pill:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

button.o6u-category-pill:active {
  transform: translateY(1px) scale(0.96);
}

.o6u-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.o6u-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.o6u-tool-btn:hover {
  background: #f28427;
  border-color: #f28427;
  color: #ffffff;
  transform: scale(1.1);
}

/* ==========================================================================
   Back Face of Card (Services & News)
   ========================================================================== */
.o6u-back-header {
  background: linear-gradient(135deg, #04163f 0%, #0a296b 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.o6u-back-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Animated News Ticker */
.o6u-ticker-wrap {
  background: #020b22;
  color: #f8fafc;
  padding: 10px 15px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.o6u-ticker-label {
  background: #f28427;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(242, 132, 39, 0.4);
}

.o6u-ticker-viewport {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.o6u-ticker-text {
  display: inline-block;
  animation: tickerFlow 22s linear infinite;
  font-size: 0.88rem;
  font-weight: 600;
}

.o6u-ticker-wrap:hover .o6u-ticker-text {
  animation-play-state: paused;
}

@keyframes tickerFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Back Services Grid */
.o6u-back-services {
  padding: 16px 20px;
  flex: 1;
  overflow-y: auto;
}

.o6u-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.o6u-service-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  color: #0f172a !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.o6u-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.28s ease;
}

.o6u-service-btn:hover {
  background: #f8fafc;
  border-color: #f28427;
  transform: translateY(-4px);
  box-shadow: 0 10px 22px -5px rgba(242, 132, 39, 0.25);
}

.o6u-service-btn:hover .o6u-service-icon {
  transform: scale(1.12);
}

/* Service Button Categories */
.svc-hotel .o6u-service-icon { background: #ffedd5; color: #ea580c; }
.svc-hospital .o6u-service-icon { background: #fee2e2; color: #dc2626; }
.svc-elearn .o6u-service-icon { background: #dbeafe; color: #2563eb; }
.svc-library .o6u-service-icon { background: #fef3c7; color: #d97706; }
.svc-portal .o6u-service-icon { background: #f3e8ff; color: #7e22ce; }
.svc-military .o6u-service-icon { background: #ecfccb; color: #4d7c0f; }
.svc-garage .o6u-service-icon { background: #f1f5f9; color: #64748b; }
.svc-bus .o6u-service-icon { background: #f1f5f9; color: #64748b; }
.svc-pay .o6u-service-icon { background: #dcfce7; color: #15803d; }

.o6u-service-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: #f8fafc;
}

/* Back Footer & Socials */
.o6u-back-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.o6u-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.o6u-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.o6u-social-icon:hover {
  background: #031742;
  color: #ffffff;
  transform: translateY(-2px);
}

.o6u-app-download {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.25s ease;
}

.o6u-app-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   Home Landing Page Showcase Cards (Index.cshtml)
   ========================================================================== */
.o6u-hero-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 10;
}

.o6u-hero-banner {
  height: 180px;
  background: linear-gradient(135deg, #031742 0%, #0c388f 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.o6u-hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.o6u-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px;
}

.o6u-category-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.o6u-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.o6u-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px -5px rgba(0, 20, 60, 0.12);
  border-color: #cbd5e1;
}

.o6u-category-card.cat-card-student:hover::before { background: var(--cat-student-primary); }
.o6u-category-card.cat-card-doctor:hover::before { background: var(--cat-doctor-primary); }
.o6u-category-card.cat-card-employee:hover::before { background: var(--cat-employee-primary); }
.o6u-category-card.cat-card-hotel:hover::before { background: var(--cat-hotel-primary); }

.o6u-cat-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.cat-card-student .o6u-cat-icon { background: var(--cat-student-badge); color: var(--cat-student-text); }
.cat-card-doctor .o6u-cat-icon { background: var(--cat-doctor-badge); color: var(--cat-doctor-text); }
.cat-card-employee .o6u-cat-icon { background: var(--cat-employee-badge); color: var(--cat-employee-text); }
.cat-card-hotel .o6u-cat-icon { background: var(--cat-hotel-badge); color: var(--cat-hotel-text); }

.o6u-cat-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #031742;
  margin-bottom: 4px;
}

.o6u-cat-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Instructions Modern List */
.o6u-instructions-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  margin: 0 24px 24px;
}

.o6u-instruct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.o6u-instruct-item:last-child {
  border-bottom: none;
}

.o6u-instruct-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f28427 0%, #e65100 100%);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.o6u-instruct-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

/* ==========================================================================
   Alert Card / No Search Result (noSearch.cshtml)
   ========================================================================== */
.o6u-alert-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--glass-shadow);
  max-width: 620px;
  margin: 0 auto 50px;
  padding: 35px 25px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.o6u-alert-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
  animation: pulseDanger 2s infinite;
}

@keyframes pulseDanger {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.o6u-alert-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 12px;
}

.o6u-alert-msg {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Toast Notification */
.o6u-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #031742;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

/* Responsive tweaks */
@media (max-width: 767px) {
  .o6u-main-title {
    font-size: 1.75rem;
  }
  .o6u-subtitle {
    font-size: 0.95rem;
  }
  .o6u-card-wrapper {
    min-height: 820px;
  }
  .o6u-service-grid {
    grid-template-columns: 1fr;
  }
  .o6u-barcode-font {
    font-size: 50px !important;
  }
  .o6u-search-btn {
    padding: 8px 18px !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 576px) {
  .o6u-info-row::after {
    display: none !important;
  }
  .o6u-info-label {
    min-width: 95px !important;
    font-size: 0.82rem !important;
  }
  .o6u-info-value {
    font-size: 0.88rem !important;
  }
  .o6u-photo-container {
    width: 150px !important;
    height: 150px !important;
    margin: -70px auto 12px !important;
  }
}

/* ==========================================================================
   بوابة الدخول وتغيير كلمة المرور (Authentication & Password Reset)
   ========================================================================== */
.o6u-auth-container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto 35px;
  position: relative;
  z-index: 20;
}

.o6u-auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 25px 60px -15px rgba(0, 15, 50, 0.4), 0 0 35px rgba(242, 132, 39, 0.2);
  padding: 35px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.o6u-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #f28427 0%, #031742 50%, #f28427 100%);
}

.o6u-auth-header {
  text-align: center;
  margin-bottom: 25px;
}

.o6u-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(3, 23, 66, 0.06);
  border: 1px solid rgba(3, 23, 66, 0.12);
  padding: 5px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #031742;
  margin-bottom: 12px;
}

.o6u-auth-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #031742;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.o6u-auth-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0;
}

.o6u-input-group {
  margin-bottom: 18px;
}

.o6u-input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.o6u-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.o6u-auth-input {
  height: 52px !important;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 14px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 10px 44px 10px 16px !important;
  color: #0f172a !important;
  transition: all 0.25s ease !important;
}

.o6u-auth-input:focus {
  background: #ffffff !important;
  border-color: #f28427 !important;
  box-shadow: 0 0 0 4px rgba(242, 132, 39, 0.2) !important;
  outline: none !important;
}

.o6u-input-icon {
  position: absolute;
  right: 15px;
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
}

.o6u-input-toggle-btn {
  position: absolute;
  left: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 5;
}

.o6u-input-toggle-btn:hover {
  color: #f28427;
}

.o6u-auth-submit-btn {
  background: linear-gradient(135deg, #f28427 0%, #d97706 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  height: 52px;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(242, 132, 39, 0.45) !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.o6u-auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(242, 132, 39, 0.6) !important;
  color: #ffffff !important;
}

.o6u-forgot-link {
  color: #d97706;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.o6u-forgot-link:hover {
  color: #c2410c;
  text-decoration: underline;
}

.o6u-auth-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.88rem;
  color: #64748b;
}

/* ==========================================================================
   Developer & Designer Credit (Eng. Magdy Ahmed)
   خط صغير أبيض هادئ في الأسفل غير ملفت
   ========================================================================== */
.o6u-developer-credit {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto 10px;
  direction: ltr !important;
  text-align: center;
}

.o6u-dev-simple {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Cairo', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.4px;
  text-align: center;
  transition: color 0.2s ease;
  user-select: none;
}

.o6u-dev-simple:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   طباعة الكارنيه فقط (Official Card Print Engine)
   يظهر كارنيه الطالب فقط بدون أي عناصر خارجية أو خلفيات أو أزرار كما بالصورة
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 15mm auto;
  }

  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html, body {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #031742 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    direction: rtl !important;
    font-family: 'Cairo', sans-serif !important;
  }

  /* 1. إخفاء كافة عناصر الصفحة غير المتعلقة بجسم الكارنيه */
  .o6u-ambient-container,
  .o6u-header-section,
  .o6u-search-card,
  .o6u-search-hints,
  .o6u-toast,
  .o6u-laser-beam,
  .alert,
  .dropdown,
  header,
  nav,
  footer,
  .o6u-developer-credit,
  .no-print {
    display: none !important;
  }

  /* 2. إخفاء أزرار التحكم وأزرار التقليب السفلية */
  .o6u-card-footer,
  .o6u-quick-actions,
  .o6u-flip-btn,
  .fa-sync-alt {
    display: none !important;
  }

  /* 3. إخفاء الوجه الخلفي دائماً عند طباعة الكارنيه */
  .o6u-face-back {
    display: none !important;
  }

  /* 4. ضبط الحاوية الرئيسية لتوسيط الكارنيه في الصفحة */
  main, main.container {
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    position: static !important;
  }

  .o6u-card-stage {
    perspective: none !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-shadow: none !important;
    position: static !important;
  }

  .o6u-card-wrapper {
    transform: none !important;
    min-height: auto !important;
    height: auto !important;
    box-shadow: none !important;
    position: static !important;
  }

  /* 5. إظهار وتنسيق وجه الكارنيه ليكون مطابقاً 100% للصورة المرفقة */
  .o6u-face-front {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    height: auto !important;
    min-height: auto !important;
    box-shadow: 0 0 0 1px #cbd5e1 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
    padding-bottom: 18px !important;
  }

  .o6u-card-header {
    height: 140px !important;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
  }

  .o6u-photo-container {
    width: 165px !important;
    height: 165px !important;
    margin: -75px auto 12px !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .o6u-photo-frame {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  }

  .o6u-pulse-dot::after {
    display: none !important;
  }

  .o6u-user-name {
    font-size: 1.45rem !important;
    color: #031742 !important;
    margin-bottom: 8px !important;
  }

  .o6u-info-grid {
    gap: 8px !important;
    margin: 8px 0 12px !important;
  }

  .o6u-info-row {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    page-break-inside: avoid !important;
  }

  .o6u-barcode-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    margin: 10px 0 0 !important;
    padding: 8px 12px !important;
    page-break-inside: avoid !important;
    box-shadow: none !important;
  }

  .o6u-barcode-font {
    color: #000000 !important;
  }
}

/* ==========================================================================
   Progressive Web App (PWA) & Add to Home Screen (A2HS) Modern Styles
   ========================================================================== */

/* 1. Header Install Button */
.o6u-pwa-header-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(242, 132, 39, 0.95) 0%, rgba(245, 158, 11, 0.95) 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(242, 132, 39, 0.35);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulsePwaBadge 2.5s infinite;
}

.o6u-pwa-header-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(242, 132, 39, 0.55);
  color: #ffffff !important;
}

@keyframes pulsePwaBadge {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(242, 132, 39, 0.35);
  }
  50% {
    box-shadow: 0 4px 22px rgba(245, 158, 11, 0.65);
  }
}

/* 2. Floating Bottom Install Banner */
.o6u-pwa-install-banner {
  display: none;
  position: fixed;
  bottom: -220px;
  left: 20px;
  right: 20px;
  margin: 0 auto;
  max-width: 540px;
  background: rgba(4, 22, 63, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 22px;
  padding: 16px 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(242, 132, 39, 0.3);
  z-index: 100000;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  direction: rtl;
  text-align: right;
}

.o6u-pwa-install-banner.show {
  bottom: 24px;
  opacity: 1;
  pointer-events: auto;
}

.o6u-pwa-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.o6u-pwa-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #031742;
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.o6u-pwa-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.o6u-pwa-banner-info {
  flex-grow: 1;
  min-width: 0;
}

.o6u-pwa-banner-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.o6u-pwa-banner-desc {
  color: #cbd5e1;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.35;
}

.o6u-pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.o6u-pwa-btn-install {
  background: linear-gradient(135deg, #f28427 0%, #f59e0b 100%);
  color: #ffffff !important;
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(242, 132, 39, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.o6u-pwa-btn-install:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(242, 132, 39, 0.6);
}

.o6u-pwa-btn-dismiss {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.o6u-pwa-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* 3. iOS Add to Home Screen Guidance Modal */
.o6u-pwa-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 31, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000000;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.o6u-pwa-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.o6u-pwa-modal-card {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(180deg, #071f54 0%, #03102d 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  direction: rtl;
  text-align: right;
  max-height: 90vh;
  overflow-y: auto;
}

.o6u-pwa-modal-backdrop.show .o6u-pwa-modal-card {
  transform: translateY(0);
}

.o6u-pwa-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.o6u-pwa-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.o6u-pwa-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.o6u-pwa-modal-close:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

.o6u-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.o6u-ios-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
}

.o6u-ios-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f28427 0%, #f59e0b 100%);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.o6u-ios-step-text {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 0;
}

.o6u-ios-step-text i {
  color: #f59e0b;
  margin: 0 4px;
}

/* 4. Update Toast */
.o6u-update-toast {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 22, 63, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #f59e0b;
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 10080;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

.o6u-update-toast.show {
  top: 20px;
}

.o6u-update-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

/* 5. Offline Badge in Header */
.o6u-offline-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 6px;
}

/* 6. PWA Standalone Mode Optimization (iOS Notch & Android Status Bar) */
@supports (padding-top: env(safe-area-inset-top)) {
  html.is-pwa-standalone body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

html.is-pwa-standalone .o6u-pwa-install-banner,
html.is-pwa-standalone .o6u-pwa-header-btn {
  display: none !important;
}

@media (max-width: 576px) {
  .o6u-pwa-install-banner {
    left: 12px;
    right: 12px;
    padding: 14px 16px;
  }

  .o6u-pwa-banner-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .o6u-pwa-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .o6u-pwa-btn-install {
    flex-grow: 1;
    text-align: center;
  }
}


