/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --secondary: #FF6584;
    --dark: #1A1A2E;
    --dark-card: #16213E;
    --light: #F8F9FE;
    --gray: #EAEAEA;
    --text-light: #FFFFFF;
    --text-dark: #2D2D3F;
    --shadow: 0 10px 40px rgba(108, 99, 255, 0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
    background: var(--light);
    color: var(--text-dark);
    line-height: 1.8;
    direction: rtl;
}

/* ============================================
   FONTS - IMPORT FROM GOOGLE
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=B+Mitra&family=B+Titr&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'B Titr', 'Segoe UI', Tahoma, sans-serif;
    font-weight: normal;
}

.banner-text h1 {
    font-family: 'B Titr', 'Segoe UI', Tahoma, sans-serif;
}

.page-title {
    font-family: 'B Titr', 'Segoe UI', Tahoma, sans-serif;
}

.command-card .cmd-name {
    font-family: 'B Mitra', 'Courier New', monospace;
    font-weight: bold;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ============================================
   HEADER / BANNER
   ============================================ */
.banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-card) 100%);
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 0 0 50px 50px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    transform: rotate(15deg);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.banner-text {
    flex: 0 0 70%;
    color: var(--text-light);
}

.banner-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'B Titr', 'Segoe UI', Tahoma, sans-serif;
}

.banner-text .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 15px;
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
}

.banner-text .bio {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.8;
    max-width: 600px;
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
}

.banner-image {
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.3);
    object-fit: cover;
    transition: var(--transition);
}

.banner-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.5);
}

/* ============================================
   INDEX PAGE - COMMAND GRID
   ============================================ */
.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'B Titr', 'Segoe UI', Tahoma, sans-serif;
}

.page-title span {
    background: var(--primary);
    color: white;
    font-size: 1rem;
    padding: 4px 16px;
    border-radius: 30px;
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
}

.page-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.05rem;
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 30px 0 50px;
}

.command-card {
    background: white;
    padding: 22px 18px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.command-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.command-card .cmd-number {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
}

.command-card .cmd-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    background: var(--light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.command-card:hover .cmd-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.command-card .cmd-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'B Mitra', 'Courier New', monospace;
}

.command-card .cmd-desc {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
}

/* ============================================
   COMMAND DETAIL PAGE
   ============================================ */
.command-page {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.cmd-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--light);
}

.cmd-header .cmd-badge {
    background: var(--primary);
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'B Mitra', 'Courier New', monospace;
}

.cmd-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    font-family: 'B Titr', 'Segoe UI', Tahoma, sans-serif;
}

.section-block {
    margin-bottom: 35px;
    padding: 25px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.section-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.section-block:nth-child(1) { background: linear-gradient(135deg, #f0f4ff, #e8edff); }
.section-block:nth-child(2) { background: linear-gradient(135deg, #fff0f3, #ffe8ec); }
.section-block:nth-child(3) { background: linear-gradient(135deg, #f0fff4, #e8ffee); }
.section-block:nth-child(4) { background: linear-gradient(135deg, #fff8f0, #fff2e8); }

.section-block h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'B Titr', 'Segoe UI', Tahoma, sans-serif;
}

.section-block:nth-child(1) h2 { color: #4A6CF7; }
.section-block:nth-child(2) h2 { color: #E74C6F; }
.section-block:nth-child(3) h2 { color: #27AE60; }
.section-block:nth-child(4) h2 { color: #E67E22; }

.section-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.option-item {
    background: rgba(255,255,255,0.7);
    padding: 12px 18px;
    border-radius: 10px;
    font-family: 'B Mitra', 'Courier New', monospace;
    font-size: 0.95rem;
    border-right: 4px solid var(--primary);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    text-align: right;
}

.option-item:hover {
    background: white;
    transform: translateX(-5px);
}

.option-item code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: bold;
    direction: ltr;
    display: inline-block;
}

.example-box {
    background: var(--dark);
    color: #e0e0e0;
    padding: 25px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    overflow-x: auto;
    border-left: 4px solid var(--primary);
    position: relative;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
}

.example-box::before {
    content: '$ ';
    color: var(--primary);
    font-weight: 700;
}

.example-box code {
    font-family: 'Courier New', monospace;
    color: #4FC3F7;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0 15px;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */
.share-section {
    margin: 40px 0 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fe, #eef0ff);
    border-radius: var(--radius);
    text-align: center;
}

.share-section h3 {
    font-family: 'B Titr', 'Segoe UI', Tahoma, sans-serif;
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.telegram:hover {
    background: #006699;
}

.share-btn.bale {
    background: #FF7A00;
}

.share-btn.bale:hover {
    background: #CC6200;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-btn.instagram:hover {
    transform: translateY(-3px) scale(1.02);
}

.share-btn i {
    font-size: 1.3rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 50px 0 30px;
    margin-top: 60px;
    border-radius: 50px 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-family: 'B Titr', 'Segoe UI', Tahoma, sans-serif;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: var(--transition);
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
}

.footer-section a:hover {
    color: var(--primary);
    padding-right: 8px;
}

.footer-section .social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-section .social-icons a {
    background: rgba(255,255,255,0.05);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
}

.footer-section .social-icons a:hover {
    background: var(--primary);
    color: white;
    padding-right: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    font-family: 'B Mitra', 'Segoe UI', Tahoma, sans-serif;
}

.footer-bottom .oin {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .command-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .banner-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .banner-text {
        flex: 0 0 100%;
    }
    
    .banner-text .bio {
        max-width: 100%;
    }
    
    .banner-image {
        flex: 0 0 100%;
    }
    
    .command-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .banner {
        padding: 25px 0;
        border-radius: 0 0 30px 30px;
    }
    
    .banner-text h1 {
        font-size: 1.8rem;
    }
    
    .banner-image img {
        width: 120px;
        height: 120px;
    }
    
    .command-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .command-card {
        padding: 15px 12px;
    }
    
    .command-page {
        padding: 20px;
    }
    
    .cmd-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cmd-header h1 {
        font-size: 1.6rem;
    }
    
    .section-block {
        padding: 18px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .command-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .command-card .cmd-number {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
        top: -8px;
        right: -8px;
    }
    
    .command-card .cmd-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    
    .banner-text h1 {
        font-size: 1.4rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section .social-icons {
        justify-content: center;
    }
}