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

  :root {
    --primary: #ffcc00;
    --bg-dark: #0f1219;
    --bg-card: #1a1d2e;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --border: #2d3748;
  }

  body {
    margin: 0;
    background: linear-gradient(135deg, #0f1219 0%, #1a1d2e 100%);
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
  }

  .ladder-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
  }

  .page-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease;
  }

  .page-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 700;
  }

  .page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
  }

  /* Main Grid */
  .ladder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  /* Card */
  .card {
    background: linear-gradient(135deg, #1e223a, #2c2f4a);
    border-radius: 20px;
    padding: 35px;
    border: 2px solid rgba(255, 204, 0, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease;
  }

  .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
  }

  .card-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 204, 0, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 2px solid rgba(255, 204, 0, 0.3);
  }

  .card-title h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
  }

  .card-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }

  /* Visual Ladder */
  .ladder-visual {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    padding: 20px 0;
  }

  .ladder-step {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(30, 34, 58, 0.8), rgba(44, 47, 74, 0.8));
    border-radius: 18px;
    border-left: 6px solid;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: slideInRight 0.6s ease backwards;
  }

  .ladder-step:nth-child(1) { animation-delay: 0.1s; border-color: #00e676; }
  .ladder-step:nth-child(2) { animation-delay: 0.2s; border-color: #4caf50; }
  .ladder-step:nth-child(3) { animation-delay: 0.3s; border-color: #ffcc00; }
  .ladder-step:nth-child(4) { animation-delay: 0.4s; border-color: #ff9800; }
  .ladder-step:nth-child(5) { animation-delay: 0.5s; border-color: #ff1744; }

  .ladder-step:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 204, 0, 0.3);
  }

  .ladder-step.active {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2), rgba(255, 204, 0, 0.1));
    border-color: var(--primary);
    box-shadow: 0 15px 50px rgba(255, 204, 0, 0.4);
  }

  .step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    flex-shrink: 0;
  }

  .step-content {
    flex: 1;
  }

  .step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 700;
  }

  .step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .step-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .step-stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
  }

  .step-stat strong {
    color: var(--primary);
    font-weight: 700;
  }

  /* Form Styles */
  .form-group {
    margin-bottom: 25px;
  }

  .form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 600;
  }

  .form-group select,
  .form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(35, 41, 64, 0.6);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
  }

  .form-group select:focus,
  .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.1);
  }

  .btn-calculate {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #191d34;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .btn-calculate:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
  }

  /* Result Card */
  .result-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    border: 2px solid rgba(255, 204, 0, 0.2);
  }

  .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .result-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
  }

  .result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
  }

  .result-value.danger {
    color: var(--error);
  }

  .result-value.success {
    color: var(--success);
  }

  /* Warning Card */
  .warning-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
  }

  .warning-card h4 {
    color: var(--error);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
  }

  .warning-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
  }

  /* Action Buttons */
  .action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
  }

  .btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
  }

  .btn-primary {
    background: var(--primary);
    color: #191d34;
  }

  .btn-primary:hover {
    background: #e6b800;
    transform: translateY(-2px);
  }

  .btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
  }

  .btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(255, 204, 0, 0.05);
  }

  /* Animations */
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Responsive */
  @media (max-width: 768px) {
    .ladder-grid {
      grid-template-columns: 1fr;
    }

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

    .card {
      padding: 25px;
    }

    .ladder-step {
      flex-direction: column;
      text-align: center;
    }

    .step-stats {
      justify-content: center;
    }

    .action-buttons {
      flex-direction: column;
    }

    .btn {
      width: 100%;
    }
  }
