/* Instructions Page Styles */
body {
    background: none !important;
}

.instructions-container {
    min-height: 100vh !important;
    background: #f7f9fc !important;
    position: relative !important;
    z-index: 1 !important;
}

.instructions-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 2rem 0 1rem;
    text-align: center;
    color: white;
}

.instructions-title { font-size: 2.2rem; font-weight: 700; margin-bottom: .5rem; text-shadow: none; }

.instructions-title i {
    margin-right: 1rem;
    color: #ffd700;
}

.instructions-subtitle { font-size: 1rem; opacity: .95; margin-bottom: 0; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Platform Selector */
.platform-selector { background:#fff; border-radius: 12px; padding: 1.5rem 1.25rem; margin: 1.25rem 0; box-shadow: 0 8px 18px rgba(0,0,0,.06); }

.platform-selector h2 { text-align:center; color:#2c3e50; font-size:1.5rem; margin-bottom: 1rem; font-weight:600; }

.platform-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1rem; margin-top: 1rem; }

.platform-card { display:flex; align-items:center; padding: 1rem; border:1px solid #e5e7eb; border-radius: 12px; text-decoration:none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; background:#fff; position:relative;
    overflow: hidden;
    min-height: 84px;
}

.platform-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,.08); border-color:#3b82f6; text-decoration:none; }

.platform-card.active { border-color:#3b82f6; background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%); color:#1f2937; }

.platform-card.active .platform-info h3,
.platform-card.active .platform-info p { color: #1f2937; }

.platform-icon { width:48px; height:48px; display:flex; align-items:center; justify-content:center; border-radius:50%; background: linear-gradient(135deg, #3b82f6, #2563eb); color:#fff; margin-right: 12px; flex-shrink:0; }

.platform-card.active .platform-icon {
    background: rgba(255, 255, 255, 0.2);
}

.platform-icon i {
    font-size: 1.5rem;
}

.platform-info {
    flex-grow: 1;
}

.platform-info h3 { margin: 0 0 0.5rem 0; font-size: 1.1rem; font-weight: 600; color: #2c3e50; }

.platform-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.platform-status { position:absolute; right:10px; top:10px; padding:5px 9px; border-radius:999px; font-size:11px; font-weight:600; }

.platform-status.available {
    background: #d4edda;
    color: #155724;
}

.platform-status.coming-soon {
    background: #fff3cd;
    color: #856404;
}

.platform-card.active .platform-status.available {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Instruction Content */
.instruction-content { background:#fff; border-radius:12px; padding:0; margin:1.25rem 0; box-shadow: 0 8px 18px rgba(0,0,0,.06); overflow:hidden; }

.instruction-header-section { background: linear-gradient(135deg,#3b82f6,#2563eb); padding: 1.25rem; color:#fff; }

.current-platform {
    display: flex;
    align-items: center;
}

.platform-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 1.5rem;
}

.platform-icon-large i {
    font-size: 2rem;
    color: white;
}

.platform-details h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.platform-details p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.instruction-steps { padding: 1.25rem 1rem; }

/* Installation Guide Styles */
.installation-guide h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.installation-guide h2::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin-right: 1rem;
    border-radius: 2px;
}

.step-container {
    margin: 2rem 0;
}

.step { display:flex; margin-bottom:.9rem; padding:1rem; border-radius:10px; background:#f8f9fa; border-left:3px solid #e9ecef; transition: all .18s ease; }

.step:hover,
.step.current {
    border-left-color: #3b82f6;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.step-number { width:32px; height:32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h3 { color:#2c3e50; font-size: 1.05rem; margin: 0 0 .35rem 0; font-weight:600; }

.step-content p { color:#6c757d; margin:0; line-height:1.5; font-size:.95rem; }

.step-content strong {
    color: #667eea;
    font-weight: 600;
}

.step-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.step-content a:hover {
    text-decoration: underline;
}

/* Alternative Method */
.alternative-method {
    margin-top: 3rem;
    padding: 2rem;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    background: #f8f9fa;
}

.alternative-method h3 {
    color: #e67e22;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.alternative-method h3 i {
    margin-right: 0.5rem;
}

/* Note Box */
.note-box {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.note-box p {
    margin: 0;
    color: #2d3436;
    font-weight: 500;
}

.note-box strong {
    color: #2d3436;
}

/* Instruction Footer */
.instruction-footer { background:#f8f9fa; padding: 1.5rem 1rem; border-top:1px solid #e9ecef; }

.support-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.support-box h3 { color:#2c3e50; margin-bottom:.6rem; font-size:1.2rem; }

.support-box h3 i {
    color: #667eea;
    margin-right: 0.5rem;
}

.support-box p { color:#6c757d; margin-bottom: 1.2rem; line-height:1.5; }

.support-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary { background: linear-gradient(135deg, #3b82f6, #2563eb); color:#fff; }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* No Instruction */
.no-instruction {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 20px 24px rgba(0, 0, 0, 0.08);
}

.no-instruction-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.no-instruction-icon i {
    font-size: 2.5rem;
    color: #e17055;
}

.no-instruction h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-instruction p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .instructions-title {
        font-size: 2rem;
    }
    
    .instructions-subtitle {
        font-size: 1rem;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-card { flex-direction: column; text-align: center; min-height: 120px; }
    
    .platform-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .current-platform {
        flex-direction: column;
        text-align: center;
    }
    
    .platform-icon-large {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: flex-start;
    }
    
    .support-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn { width: 180px; justify-content: center; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .platform-selector,
    .instruction-steps {
        padding: 1.5rem;
    }
    
    .instruction-header-section {
        padding: 1.5rem;
    }
    
    .instruction-footer {
        padding: 2rem 1.5rem;
    }
}

/* ===== Modal Styles ===== */
.instr-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 1000; }
.instr-modal-overlay.open { display: flex; }
.instr-modal { width: min(920px, 100%); max-height: min(80vh, 780px); background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; box-shadow: 0 10px 40px rgba(0,0,0,.18); overflow: hidden; display: flex; flex-direction: column; }
.instr-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #e5e7eb; background: #f8fafc; }
.instr-modal-title { display:flex; align-items:center; gap:12px; }
.instr-modal-icon { width:32px; height:32px; border-radius:8px; background:linear-gradient(135deg,#3b82f6,#2563eb); color:#fff; display:flex; align-items:center; justify-content:center; }
.instr-modal-text h4 { margin:0; font-weight:600; font-size:15px; color:#1f2937; }
.instr-modal-text small { color:#64748b; font-weight:500; }
.instr-close { width:32px; height:32px; border:none; background:#eef2f7; border-radius:8px; color:#334155; display:flex; align-items:center; justify-content:center; }
.instr-close:hover { background:#e2e8f0; }
.instr-modal-body { padding: 14px 16px; overflow: auto; }
.instr-modal-body .installation-guide { padding: 0; }
