:root {
    --navy: #003b71;
    --navy-2: #062f56;
    --white: #ffffff;
    --soft: #f4f7fb;
    --border: #dbe5ee;
    --text: #1f2937;
    --muted: #6b7280;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: "Tahoma", Arial, sans-serif;
    direction: rtl;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: var(--text);
  }
  
  .page {
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .panel {
    width: min(900px, 100%);
    background: var(--white);
    border-radius: 26px;
    padding: 36px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .22);
  }
  
  .hero {
    text-align: center;
  }
  
  .badge {
    display: inline-block;
    color: var(--navy);
    background: var(--soft);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 14px;
  }
  
  h1 {
    margin: 10px 0;
    color: var(--navy);
    font-size: 36px;
  }
  
  p {
    color: var(--muted);
    line-height: 1.8;
  }
  
  .form {
    display: grid;
    gap: 12px;
    max-width: 420px;
    margin: 26px auto 0;
  }
  
  input, select, button {
    font-family: inherit;
    font-size: 16px;
    border-radius: 14px;
    padding: 14px;
  }
  
  input, select {
    border: 1px solid var(--border);
    outline: none;
    background: #fff;
  }
  
  input:focus, select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 59, 113, .08);
  }
  
  button {
    border: 0;
    background: var(--navy);
    color: white;
    font-weight: bold;
    cursor: pointer;
  }
  
  button:hover {
    background: var(--navy-2);
  }
  
  .nav {
    position: fixed;
    top: 18px;
    left: 18px;
    display: flex;
    gap: 8px;
    z-index: 20;
  }
  
  .nav a {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    padding: 10px 14px;
    border-radius: 999px;
  }
  
  .result {
    display: none;
  }
  
  .scratch-area {
    margin-top: 30px;
    display: flex;
    justify-content: center;
  }
  
  .real-scratch-card {
    width: min(420px, 100%);
    height: 210px;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 18px 38px rgba(0, 59, 113, .18);
  }
  
  .prize-content {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff, #f6f9fc);
  }
  
  .prize-content span {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .prize-content strong {
    display: block;
    color: var(--navy);
    font-size: 30px;
  }
  
  #scratchCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
  }
  
  .list-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
  }
  
  @media (max-width: 700px) {
    .page {
      padding: 18px;
    }
  
    .panel {
      padding: 26px 20px;
    }
  
    h1 {
      font-size: 28px;
    }
  }

  .stats-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  
  .stat-card {
    background: #f7fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
  }
  
  .stat-card span {
    color: var(--muted);
    font-size: 14px;
  }
  
  .stat-card strong {
    display: block;
    margin-top: 8px;
    color: var(--navy);
    font-size: 28px;
  }
  
  .section-card {
    margin-top: 22px;
    background: #f7fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
  }
  
  .section-title {
    color: var(--navy);
    font-size: 20px;
    margin: 0 0 14px;
  }
  
  @media (max-width: 700px) {
    .stats-grid {
      grid-template-columns: 1fr;
    }
  }
  .btn-danger {
    background: #f04438;
    color: white;
    border: 1px solid #d92d20;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
  }
  
  .btn-danger:hover {
    background: #d92d20;
  }