* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #111;
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card {
    background: #222;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 40px;
    margin-bottom: 10px;
}

.logo svg {
    width: 40px;
    height: 40px;
    fill: #0066cc;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.subtitle {
    color: #888;
    font-size: 14px;
}

.btn {
    display: block;
    background: #0066cc;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0052a3;
}

.apps {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.app-item {
    display: flex;
    align-items: center;
    background: #333;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.app-icon {
    font-size: 24px;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.app-info {
    flex: 1;
}

.app-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    margin-bottom: 2px;
}

.app-desc {
    color: #888;
    font-size: 11px;
}

.badge {
    background: #0066cc;
    color: #fff;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.cert-item {
    display: flex;
    align-items: center;
    background: #333;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: #444;
}

.certificate-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    padding-right: 5px;
}

.certificate-grid::-webkit-scrollbar {
    width: 4px;
}

.certificate-grid::-webkit-scrollbar-track {
    background: #222;
    border-radius: 2px;
}

.certificate-grid::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px;
}

.certificate-grid::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.cert-icon {
    font-size: 16px;
    margin-right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.app-icon svg,
.cert-icon svg {
    width: 20px;
    height: 20px;
    fill: #0066cc;
}

.warning svg {
    width: 16px;
    height: 16px;
    fill: #cc4444;
    vertical-align: middle;
    margin-right: 4px;
}

.contact svg {
    width: 12px;
    height: 12px;
    fill: #0066cc;
    vertical-align: middle;
}

.cert-info {
    flex: 1;
}

.cert-name {
    font-weight: 600;
    color: #fff;
    font-size: 12px;
    margin-bottom: 2px;
}

.cert-size {
    color: #888;
    font-size: 10px;
    line-height: 1.3;
}

.download-count {
    color: #0066cc;
    font-size: 9px;
    font-weight: 600;
    margin-top: 2px;
}

.install-btn {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.install-btn:hover {
    background: #0052a3;
}

.cert-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.cert-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cert-btn:hover {
    background: #218838;
}

/* Footer */
.footer {
    color: white;
    padding: 15px 20px;
    margin-top: 50px;
    border-radius: 8px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    color: #9ca3af;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text:hover {
    color: #d1d5db;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
}

.footer-contact a:nth-child(1) {
    background: transparent;
}

.footer-contact a:nth-child(2) {
    background: transparent;
}

.footer-contact a:nth-child(3) {
    background: transparent;
}

.footer-contact a:nth-child(4) {
    background: transparent;
}

.footer-contact a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.footer-contact img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 13px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-text {
        font-size: 12px;
    }
    
    .footer-contact {
        justify-content: center;
        align-self: center;
    }
    
    .footer-copyright {
        align-self: center;
    }
}

.warning {
    background: #2d1b1b;
    border-left: 3px solid #cc4444;
    padding: 10px;
    border-radius: 0 6px 6px 0;
    margin: 15px 0;
    font-size: 11px;
    color: #ff9999;
}

.video-section {
    margin: 20px 0;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

.video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
}

.video-container video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Tab Styles */
.tab-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.tab-btn {
    background: #333;
    color: #888;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-height: 44px;
}

.tab-btn.active {
    background: #0066cc;
    color: #fff;
}

.tab-btn:hover:not(.active) {
    background: #444;
    color: #ccc;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Language Toggle Styles */
.language-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
    background: #333;
    border-radius: 20px;
    padding: 5px;
    border: 1px solid #444;
}

.lang-btn {
    background: transparent;
    color: #888;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 35px;
}

.lang-btn.active {
    background: #0066cc;
    color: #fff;
}

.lang-btn:hover:not(.active) {
    background: #444;
    color: #ccc;
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 15px;
        position: relative;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
    }
}

/* Desktop Responsive Design */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 30px;
    }
    
    .card {
        padding: 30px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .warning {
        padding: 20px;
        font-size: 14px;
    }
    
    .footer {
        margin-top: 30px;
        padding: 25px;
    }
    
    .footer-contact {
        gap: 25px;
    }
    
    .footer-contact a {
        width: 40px;
        height: 40px;
    }
    
    .footer-contact a svg {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 800px;
    }
    
    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cert-card {
        padding: 20px;
    }
    
    .tab-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .certificate-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Desktop hover effects - only apply on larger screens */
@media (min-width: 768px) {
    .btn:hover {
        background: #0052a3;
        transform: translateY(-2px);
        transition: all 0.3s ease;
    }
    
    .cert-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    .tab-btn:hover:not(.active) {
        background: #333;
        transition: all 0.3s ease;
    }
}