/* ============================================
   Elevate Your English — Premium Homework Portal
   RTL · Dark Emerald · Luxury Gold Accents
   70% Dark/Emerald · 20% Emerald Glow · 10% Gold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
  /* Primary Backgrounds */
  --bg-deep: #050816;
  --bg-dark: #071412;
  --bg-section: #0B1D19;
  --bg-elevated: #10241F;

  /* Primary Emerald */
  --emerald-dark: #0F3D33;
  --emerald: #145C4B;
  --emerald-bright: #1D7A61;
  --emerald-vivid: #1E8E73;
  --emerald-glow: rgba(30, 142, 115, 0.12);
  --emerald-glow-strong: rgba(30, 142, 115, 0.25);

  /* Luxury Gold (accent only) */
  --gold: #C8A96B;
  --gold-mid: #D6B97B;
  --gold-light: #E3C88B;
  --gold-glow: rgba(200, 169, 107, 0.08);

  /* Text */
  --text-white: #FFFFFF;
  --text-soft: #C8CDD0;
  --text-warm: #A8AEB2;
  --text-dim: rgba(200, 205, 208, 0.4);

  /* Typography */
  --font: 'Tajawal', sans-serif;

  /* Radii */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.7;
  direction: rtl;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection {
  background: var(--emerald-bright);
  color: var(--bg-deep);
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--emerald-dark); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--emerald); }
html { scrollbar-width: thin; scrollbar-color: var(--emerald-dark) var(--bg-dark); }

/* --- Layout --- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Ambient Background Glow --- */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 142, 115, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 107, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Page Header --- */
.page-header {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.page-header h1 span {
  background: linear-gradient(135deg, var(--emerald-vivid), var(--emerald-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header .subtitle {
  color: var(--text-warm);
  font-size: 1rem;
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto;
}

.brand-line {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto 0;
  border: none;
}

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-warm);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 2rem 0 0;
  transition: color 0.25s;
  position: relative;
  z-index: 1;
}

.back-link:hover {
  color: var(--emerald-vivid);
}

.back-link svg {
  width: 18px;
  height: 18px;
  transform: scaleX(-1);
}

/* ============================================
   Level Cards (index page)
   ============================================ */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.level-card {
  background: linear-gradient(165deg, var(--bg-section) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(30, 142, 115, 0.1);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(30, 142, 115, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.level-card:hover {
  border-color: rgba(30, 142, 115, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--emerald-glow);
}

.level-card:hover::before {
  opacity: 1;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--emerald-vivid);
  background: rgba(30, 142, 115, 0.1);
  border: 1px solid rgba(30, 142, 115, 0.15);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.level-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-white);
  position: relative;
  z-index: 1;
}

.level-card p {
  color: var(--text-warm);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 11px 30px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  z-index: 1;
  white-space: nowrap; /* Prevents awkward text wrapping on narrow mobile columns */
}

.btn-primary {
  background: linear-gradient(135deg, 
    #a27e43 0%, 
    #c8a96b 22%, 
    #f7e5a9 50%, 
    #d6b97b 78%, 
    #a27e43 100%
  );
  background-size: 200% auto;
  background-position: left center;
  color: var(--bg-dark) !important;
  font-weight: 800;
  border: 1px solid rgba(162, 126, 67, 0.4);
  box-shadow: 0 4px 16px rgba(200, 169, 107, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  text-shadow: none;
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 8px 25px rgba(200, 169, 107, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-submit {
  background: linear-gradient(135deg, 
    #a27e43 0%, 
    #c8a96b 22%, 
    #f7e5a9 50%, 
    #d6b97b 78%, 
    #a27e43 100%
  );
  background-size: 200% auto;
  background-position: left center;
  color: var(--bg-dark) !important;
  padding: 14px 44px;
  font-size: 1rem;
  font-weight: 900;
  border: 1px solid rgba(162, 126, 67, 0.4);
  box-shadow: 0 4px 20px rgba(200, 169, 107, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  text-shadow: none;
}

.btn-submit:hover {
  background-position: right center;
  box-shadow: 0 8px 32px rgba(200, 169, 107, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.btn-gold {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-mid);
  font-weight: 700;
}

.btn-gold:hover {
  border-color: transparent;
  background: linear-gradient(135deg, 
    #a27e43 0%, 
    #c8a96b 22%, 
    #f7e5a9 50%, 
    #d6b97b 78%, 
    #a27e43 100%
  );
  background-size: 200% auto;
  background-position: right center;
  color: var(--bg-dark) !important;
  box-shadow: 0 6px 20px rgba(200, 169, 107, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ============================================
   Day Cards (level pages)
   ============================================ */
.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.day-card {
  background: linear-gradient(165deg, var(--bg-section) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(30, 142, 115, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.day-card:hover {
  border-color: rgba(30, 142, 115, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 20px var(--emerald-glow);
}

.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-number {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--emerald-vivid);
  background: rgba(30, 142, 115, 0.1);
  border: 1px solid rgba(30, 142, 115, 0.12);
  padding: 3px 14px;
  border-radius: var(--radius-full);
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.status-available {
  background: rgba(30, 142, 115, 0.1);
  color: var(--emerald-vivid);
  border: 1px solid rgba(30, 142, 115, 0.12);
}

.day-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 0.15rem;
}

.day-card .preview {
  color: var(--text-warm);
  font-size: 0.85rem;
  line-height: 1.55;
  font-weight: 400;
}

.day-card .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 8px 24px;
  font-size: 0.82rem;
}

/* ============================================
   Homework Detail Page
   ============================================ */
.hw-detail {
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.hw-header {
  padding: 2rem 0 1.5rem;
}

.hw-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hw-meta span {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

.meta-level {
  background: rgba(30, 142, 115, 0.1);
  color: var(--emerald-vivid);
  border: 1px solid rgba(30, 142, 115, 0.15);
}

.meta-day {
  background: var(--gold-glow);
  color: var(--gold-mid);
  border: 1px solid rgba(200, 169, 107, 0.15);
}

.meta-difficulty {
  background: rgba(30, 142, 115, 0.06);
  color: var(--text-warm);
  border: 1px solid rgba(200, 205, 208, 0.08);
}

.hw-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

/* --- Content Sections --- */
.hw-card {
  background: linear-gradient(165deg, var(--bg-section) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(30, 142, 115, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1rem;
}

.hw-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-vivid);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(30, 142, 115, 0.08);
}

.hw-card-label .icon {
  font-size: 1rem;
}

.hw-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.85;
  font-weight: 400;
}

.hw-card ul {
  padding: 0;
  margin: 0.5rem 0 0;
}

.hw-card ul li {
  color: var(--text-soft);
  font-size: 0.93rem;
  padding: 0.35rem 0;
  padding-right: 1.2rem;
  position: relative;
}

.hw-card ul li::before {
  content: '·';
  position: absolute;
  right: 0;
  color: var(--emerald-vivid);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Example Answer */
.example-box {
  background: rgba(30, 142, 115, 0.04);
  border: 1px solid rgba(30, 142, 115, 0.1);
  border-right: 3px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 0.5rem;
  direction: ltr;
  text-align: left;
}

.example-box p {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.9;
}

/* Submission Status */
.hw-card .status-text {
  color: var(--emerald-vivid);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-vivid);
  display: inline-block;
  box-shadow: 0 0 8px var(--emerald-glow-strong);
}

/* Submit Area */
.submit-area {
  text-align: center;
  padding: 2.5rem 0;
}

.submit-area p {
  color: var(--text-warm);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

/* ============================================
   WhatsApp Float
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  width: 50px;
  height: 50px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(30, 142, 115, 0.06);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.site-footer .brand {
  color: var(--gold);
  font-weight: 700;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
  .page-header {
    padding: 2.5rem 0 1.5rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .levels-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .days-grid {
    grid-template-columns: 1fr;
  }

  .hw-title {
    font-size: 1.3rem;
  }

  .level-badge {
    width: 52px;
    height: 52px;
    font-size: 1.15rem;
  }

  .level-card {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .hw-card {
    padding: 1.35rem;
  }

  .btn {
    padding: 8px 20px;
    font-size: 0.82rem;
  }

  .btn-submit {
    width: 100%;
    max-width: 300px;
    padding: 12px 30px;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .levels-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ============================================
   Homework Submission Modal & Form Styles
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: linear-gradient(165deg, var(--bg-section) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(200, 169, 107, 0.18);
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  padding: 2.25rem 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(200, 169, 107, 0.05);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-warm);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(200, 169, 107, 0.15);
  color: var(--gold-light);
  border-color: rgba(200, 169, 107, 0.3);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.modal-icon {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(200, 169, 107, 0.2));
}

.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--text-warm);
  line-height: 1.6;
}

.gold-text {
  color: var(--gold-light);
  font-weight: 700;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row-disabled {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
}

.form-group label .required {
  color: #ff4a4a;
  margin-right: 2px;
}

.form-group label .info-note {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  background: rgba(5, 8, 22, 0.4);
  border: 1px solid rgba(30, 142, 115, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-white);
  font-family: var(--font);
  font-size: 0.88rem;
  transition: all 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(30, 142, 115, 0.1);
  box-shadow: 0 0 12px rgba(200, 169, 107, 0.12);
}

/* Drag & Drop File Upload area */
.file-upload-wrapper {
  border: 2px dashed rgba(30, 142, 115, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  background: rgba(5, 8, 22, 0.25);
}

.file-upload-wrapper:hover, .file-upload-wrapper.dragover {
  border-color: var(--gold);
  background: rgba(200, 169, 107, 0.04);
  box-shadow: 0 0 15px rgba(200, 169, 107, 0.05);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.upload-icon {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  color: var(--emerald-vivid);
  transition: transform 0.3s;
}

.file-upload-wrapper:hover .upload-icon {
  transform: translateY(-3px);
  color: var(--gold-light);
}

.upload-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
}

.upload-subtitle {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Selected File info */
.file-selected-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 142, 115, 0.15);
  border: 1px solid rgba(30, 142, 115, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: 0.25rem;
}

.file-selected-icon {
  font-size: 1.1rem;
}

.file-name {
  font-size: 0.82rem;
  color: var(--text-white);
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 75%;
  text-align: right;
  direction: ltr;
}

.remove-file-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-white);
  font-size: 1.1rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.remove-file-btn:hover {
  background: #ff4a4a;
}

/* Success Screen inside Modal */
.modal-success-screen {
  text-align: center;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
}

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

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: popScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popScale {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.modal-success-screen h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emerald-vivid);
  margin-bottom: 0.5rem;
}

.modal-success-screen p {
  font-size: 0.88rem;
  color: var(--text-warm);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.email-details-box {
  background: rgba(5, 8, 22, 0.4);
  border: 1px solid rgba(200, 169, 107, 0.15);
  border-radius: 14px;
  padding: 1rem;
  width: 100%;
  margin-bottom: 1.25rem;
  text-align: right;
  direction: rtl;
}

.email-details-box p {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.email-details-box p:last-child {
  margin-bottom: 0;
}

.email-details-box strong {
  color: var(--gold-light);
}

.instruction-text {
  font-size: 0.82rem !important;
  color: var(--text-dim) !important;
  max-width: 320px;
  margin: 0 auto 1.5rem !important;
}

.w-full {
  width: 100%;
}

/* Disable scroll when modal is active */
body.modal-open {
  overflow: hidden;
}

/* ============================================
   Mobile Optimization for Modal & Body
   ============================================ */
body {
  overflow-x: hidden;
}

@media (max-width: 480px) {
  .modal-card {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }
  
  .modal-header h2 {
    font-size: 1.22rem;
  }
  
  .modal-icon {
    font-size: 1.9rem;
  }
  
  .file-upload-wrapper {
    padding: 1rem;
  }
  
  .upload-icon {
    font-size: 1.45rem;
  }
  
  .upload-title {
    font-size: 0.78rem;
  }
  
  .email-details-box {
    padding: 0.85rem;
  }
  
  .email-details-box p {
    font-size: 0.75rem;
  }
  
  .instruction-text {
    font-size: 0.78rem !important;
  }
  
  .btn-submit {
    padding: 12px 30px;
    font-size: 0.92rem;
  }
}

