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

  :root {
    --primary: #ffcc00;
    --primary-dark: #e6b800;
    --bg-dark: #0f1219;
    --bg-card: #1a1d2e;
    --bg-input: #232940;
    --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;
  }

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

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

  .page-header h1 {
    font-family: 'Noto Kufi Arabic', sans-serif;
    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 */
  .checker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  /* Card Styles */
  .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;
  }

  /* 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: var(--bg-input);
    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);
  }

  .form-group input::placeholder {
    color: rgba(160, 174, 192, 0.5);
  }

  /* Button */
  .btn-check {
    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;
    margin-top: 30px;
  }

  .btn-check:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
  }

  .btn-check:active {
    transform: translateY(0);
  }

  /* Result Card */
  .result-card {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
  }

  .result-card.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.5s ease;
  }

  .result-status {
    text-align: center;
    margin-bottom: 30px;
  }

  .result-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 0.6s ease;
  }

  .result-status h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
  }

  .result-status.tight {
    color: var(--error);
  }

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

  .result-status.wide {
    color: var(--warning);
  }

  /* Risk Meter */
  .risk-meter-container {
    margin: 30px 0;
  }

  .risk-meter-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 600;
  }

  .risk-meter {
    position: relative;
    height: 12px;
    background: linear-gradient(90deg, 
      var(--success) 0%, 
      var(--success) 33%, 
      var(--warning) 33%, 
      var(--warning) 66%, 
      var(--error) 66%, 
      var(--error) 100%
    );
    border-radius: 20px;
    overflow: visible;
    margin-bottom: 10px;
  }

  .risk-indicator {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: -6px;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: left 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .risk-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0 5px;
  }

  /* Result Details */
  .result-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
  }

  .result-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .result-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .result-item-content h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
  }

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

  /* Info Card */
  .info-card {
    background: rgba(0, 217, 163, 0.05);
    border: 2px solid rgba(0, 217, 163, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
  }

  .info-card h4 {
    color: #00d9a3;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
  }

  .info-list {
    list-style: none;
    padding: 0;
  }

  .info-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .info-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #00d9a3;
    font-weight: bold;
    font-size: 1.1rem;
  }

  /* 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;
    border-color: var(--primary);
  }

  .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.3);
  }

  .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 slideIn {
    from {
      opacity: 0;
      transform: translateY(20px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

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

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

    .card {
      padding: 25px;
    }

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

    .btn {
      width: 100%;
    }
  }
