/* ===================================
   Devices Page Custom Styles
   =================================== */

/* Downloader Code Section */
.downloader-code-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
    position: relative;
    overflow: hidden;
}

.downloader-code-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.code-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.code-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
}

.code-content {
    flex: 1;
}

.code-content h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 900;
    color: #1a1a1a;
}

.code-content p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.code-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
}

.copy-code-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.copy-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Apps Section */
.apps-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.apps-section:nth-child(even) {
    background: white;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.app-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.app-header {
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
}

.platform {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 16px;
}

.platform.android {
    color: #4CAF50;
}

.platform.ios {
    color: #5E5E5E;
}

.platform.windows {
    color: #0078D4;
}

.platform i {
    font-size: 20px;
}

.app-badge {
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    border: 1px solid #ddd;
}

.app-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.app-body {
    padding: 30px;
}

.app-body h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 900;
    color: #1a1a1a;
}

.app-body p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.code-box {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.code-label {
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.code-chip {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.app-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.download-btn,
.copy-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.download-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.copy-btn {
    background: white;
    color: #FF6B35;
    border: 2px solid #FF6B35;
}

.copy-btn:hover {
    background: #FF6B35;
    color: white;
}

/* TV Grid */
.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tv-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.tv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #FF6B35;
}

.tv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 20px;
}

.tv-card h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 900;
    color: #1a1a1a;
}

.tv-card p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.tv-card strong {
    color: #FF6B35;
    font-weight: 900;
}

.tv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.tv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Installation Guide Section */
.installation-guide {
    padding: 80px 0;
    background: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
}

.guide-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.guide-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    flex-shrink: 0;
}

.guide-content {
    flex: 1;
}

.guide-content h3 {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 900;
    color: #1a1a1a;
}

.guide-content p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 17px;
    line-height: 1.7;
}

.guide-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: white;
    color: #FF6B35;
    border: 2px solid #FF6B35;
}

.btn-secondary:hover {
    background: #FF6B35;
    color: white;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.back-to-top {
    background: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation: pulse 2s infinite;
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    animation: pulse 2s infinite 0.5s;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 107, 53, 0.6);
    }
}

.floating-btn i {
    font-size: 26px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        left: 20px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .floating-btn i {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .code-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .code-number {
        font-size: 36px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guide-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
    }

    .guide-content h3 {
        font-size: 24px;
    }

    .guide-buttons {
        justify-content: center;
    }

    .app-actions {
        flex-direction: column;
    }

    .download-btn,
    .copy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .code-number {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .copy-code-btn {
        width: 100%;
        justify-content: center;
    }

    .app-body {
        padding: 20px;
    }

    .tv-card {
        padding: 30px 20px;
    }
}
