:root {
        /* --- BRANDING PALETTE (MATCHING HOME) --- */
        --bg: #0d1117;         /* پس‌زمینه اصلی */
        --card-bg: #161b22;    /* پس‌زمینه کارت‌ها */
        --text-main: #f0f6fc;  /* متن اصلی */
        --text-muted: #8b949e; /* متن‌های فرعی */
        --border: #30363d;     /* رنگ حاشیه */
        --accent: #3b82f6;     /* آبی برند */
        --accent-hover: #60a5fa;
        --error: #f85149;      /* قرمز ارور */
        --success: #238636;    /* سبز موفقیت */
        --code-bg: #0d1117;    /* پس‌زمینه کدها */
      }

      * {
        box-sizing: border-box;
      }

      body {
        font-family: "Inter", sans-serif;
        background-color: var(--bg);
        color: var(--text-main);
        margin: 0;
        padding: 0;
        line-height: 1.6;
        min-height: 100vh;
      }

      /* --- LOCK SCREEN (BRANDED) --- */
      #lock-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(13, 17, 23, 0.95); /* تاریک و بلور */
        z-index: 9999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(15px);
      }

      .lock-box {
        background: var(--card-bg);
        padding: 50px 40px;
        border-radius: 16px;
        text-align: center;
        border: 1px solid var(--border);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        max-width: 90%;
        width: 420px;
      }

      .lock-icon {
        font-size: 3rem;
        margin-bottom: 20px;
        display: block;
        animation: float 3s ease-in-out infinite;
      }

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

      .lock-box h2 { color: var(--text-main); margin-bottom: 10px; }

      input[type="password"] {
        background: var(--bg);
        border: 1px solid var(--border);
        color: var(--text-main);
        padding: 14px;
        border-radius: 6px;
        font-size: 1rem;
        margin-top: 20px;
        width: 100%;
        outline: none;
        text-align: center;
        font-family: 'Fira Code', monospace;
        transition: 0.3s;
      }

      input[type="password"]:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
      }

      button.unlock-btn {
        background: var(--accent);
        color: white;
        border: none;
        padding: 14px;
        border-radius: 6px;
        font-weight: 700;
        cursor: pointer;
        margin-top: 15px;
        width: 100%;
        font-size: 1rem;
        transition: 0.3s;
      }

      button.unlock-btn:hover {
        background: var(--accent-hover);
        transform: translateY(-2px);
      }

      /* --- MAIN CONTENT --- */
      #main-content {
        display: none; /* مخفی تا زمانی که رمز زده شود */
        padding: 40px 20px;
      }

      .container {
        max-width: 800px;
        margin: 0 auto;
      }

      header {
        text-align: center;
        margin-bottom: 60px;
        border-bottom: 1px solid var(--border);
        padding-bottom: 40px;
      }

      h1 {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 15px;
        background: linear-gradient(135deg, var(--text-main), var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      .subtitle {
        color: var(--text-muted);
        font-size: 1.1rem;
        font-family: 'Fira Code', monospace;
      }

      /* --- CARDS --- */
      .card {
        background: var(--card-bg);
        border-radius: 12px;
        padding: 35px;
        margin-bottom: 30px;
        border: 1px solid var(--border);
      }

      h2 {
        color: var(--text-main);
        display: flex;
        align-items: center;
        margin-top: 0;
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border);
      }

      h2::before {
        content: "";
        display: inline-block;
        width: 4px;
        height: 24px;
        background-color: var(--accent);
        margin-right: 15px;
        border-radius: 2px;
      }

      h3 {
        color: var(--text-main);
        font-size: 1.1rem;
        margin-top: 30px;
      }

      p, li { color: var(--text-muted); }

      ul, ol { padding-left: 20px; }
      li { margin-bottom: 10px; }

      /* --- RESOURCE LINKS --- */
      .resource-link {
        display: flex;
        align-items: center;
        background: var(--bg); /* تیره تر از کارت */
        padding: 15px;
        border-radius: 8px;
        color: var(--text-main);
        text-decoration: none;
        margin-bottom: 15px;
        border: 1px solid var(--border);
        transition: all 0.2s ease;
      }

      .resource-link:hover {
        border-color: var(--accent);
        transform: translateX(5px);
      }

      .tag {
        font-size: 0.7rem;
        background: rgba(59, 130, 246, 0.1);
        padding: 4px 8px;
        border-radius: 4px;
        margin-right: 15px;
        color: var(--accent);
        font-weight: 700;
        text-transform: uppercase;
        font-family: 'Fira Code', monospace;
        min-width: 60px;
        text-align: center;
        border: 1px solid rgba(59, 130, 246, 0.2);
      }

      /* --- CODE BLOCKS --- */
      pre {
        background: #090c10;
        padding: 20px;
        border-radius: 8px;
        overflow-x: auto;
        border: 1px solid var(--border);
        margin: 20px 0;
      }

      code {
        font-family: "Fira Code", monospace;
        color: var(--text-main);
        font-size: 0.9rem;
      }
      
      /* Inline Code */
      p code, li code {
        background: rgba(110, 118, 129, 0.4);
        padding: 2px 6px;
        border-radius: 4px;
        color: var(--text-main);
        font-size: 0.85rem;
      }

      /* --- BUTTONS --- */
      .btn-repo {
        display: block;
        width: 100%;
        text-align: center;
        background: var(--accent);
        color: white;
        text-decoration: none;
        padding: 16px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 1rem;
        margin-top: 30px;
        transition: 0.3s;
      }

      .btn-repo:hover {
        background-color: var(--accent-hover);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
      }

      /* --- MISSION BOX --- */
      .mission-box {
        border: 1px solid rgba(59, 130, 246, 0.3);
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--card-bg) 100%);
      }

      /* --- TIP BOX --- */
      .tip-box {
        border-left: 4px solid var(--success);
      }

      /* --- FOOTER --- */
      footer {
        text-align: center;
        padding: 40px 0;
        color: var(--text-muted);
        font-size: 0.9rem;
        border-top: 1px solid var(--border);
        margin-top: 60px;
      }

      /* Responsive */
      @media (max-width: 600px) {
        .card { padding: 25px; }
        h1 { font-size: 1.8rem; }
        .lock-box { padding: 30px 20px; }
      }