* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #2a2d35 0%, #1a1c22 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Main Container */
.container {
    width: 100%;
    margin: 0;
    background: linear-gradient(180deg, #2e3138 0%, #1e2027 100%);
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Header */
.header {
    padding: 30px 20px 10px;
    background: linear-gradient(180deg, #2e3138 0%, #292c33 100%);
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 14px;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    color: #e8e8ec;
    letter-spacing: 0.5px;
    text-align: center;
}

.logo-frame {
    position: relative;
    display: inline-block;
    padding: 14px;
    border-radius: 28px;
    background: linear-gradient(145deg, #3a3d46 0%, #2a2d35 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(180, 180, 190, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo-frame::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    border-radius: 50%;
}

.header-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.1));
}

.logo {
    position: relative;
    width: 45px;
    height: 45px;
}

.logo-star {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #5B8DEF 0%, #4A7BD4 100%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    position: relative;
}

.logo-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #ff6600;
    border-radius: 50%;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 22px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.protect-text {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    padding: 0 20px 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 20px 0;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 14px;
    color: #9a9ba0;
    margin-bottom: 12px;
}

.verified-badge {
    font-size: 12px;
    color: #9a9ba0;
    margin-bottom: 25px;
}

.verified-text {
    color: #81c784;
    font-weight: 500;
}

/* Stats */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10px;
    color: #7a7b80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Download Button */
.download-btn {
    width: 100%;
    background: linear-gradient(135deg, #606368 0%, #4a4d52 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 25px 0 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #6c6f74 0%, #55585d 100%);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn i {
    font-size: 18px;
}

.version-info {
    font-size: 12px;
    color: #808080;
    text-align: center;
}

/* Security Features */
.security-features {
    margin-top: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #ffffff;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.3s, transform 0.2s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(5px);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 2px solid;
}

.red-icon {
    border-color: #b0b3b8;
    color: #b0b3b8;
}

.green-icon {
    border-color: #81c784;
    color: #81c784;
}

.yellow-icon {
    border-color: #c8c8cc;
    color: #c8c8cc;
}

.blue-icon {
    border-color: #9ea1a8;
    color: #9ea1a8;
}

.green-check-icon {
    border-color: #81c784;
    color: #81c784;
    background: rgba(129, 199, 132, 0.08);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
}

.feature-description {
    font-size: 13px;
    color: #8a8b90;
    line-height: 1.5;
}

/* Security Badges */
.security-badges {
    display: flex;
    gap: 8px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.badge {
    flex: 1;
    min-width: 90px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #d0d0d0;
}

.badge i {
    color: #81c784;
    font-size: 12px;
}

/* Footer */
.footer {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copyright {
    font-size: 13px;
    margin-bottom: 6px;
    color: #ffffff;
}

.copyright-full {
    font-size: 11px;
    color: #808080;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-link {
    color: #9ea1a8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #d0d0d5;
    text-decoration: underline;
}

/* Download Modal */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-modal.show {
    display: flex;
    opacity: 1;
}

.download-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 100%;
    width: 100%;
}

.download-completed {
    text-align: center;
    padding: 30px 20px;
    max-width: 100%;
    width: 100%;
    display: none;
}

.download-completed.show {
    display: block;
}

.download-content.hide {
    display: none;
}

.shield-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-progress {
    position: absolute;
    width: 150px;
    height: 150px;
    transform: rotate(-90deg);
    top: 0;
    left: 0;
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.progress-circle {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(180, 180, 190, 0.5));
}

.shield-container svg defs {
    position: absolute;
}

.shield-icon-wrapper {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 200, 210, 0.35) 0%, rgba(200, 200, 210, 0.15) 40%, transparent 70%);
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 1;
}

.shield-icon {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #d0d0d5;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(200, 200, 210, 0.3),
                    0 0 40px rgba(200, 200, 210, 0.15),
                    0 0 60px rgba(200, 200, 210, 0.08);
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 30px rgba(200, 200, 210, 0.5),
                    0 0 50px rgba(200, 200, 210, 0.3),
                    0 0 70px rgba(200, 200, 210, 0.15);
    }
}

.download-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8a8d94 0%, #a0a3aa 50%, #b0b3b8 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(180, 180, 190, 0.4);
}

.progress-percentage {
    font-size: 16px;
    font-weight: 600;
    color: #d0d0d5;
}

/* Completed Screen */
.completed-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #81c784 0%, #4caf50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 8px 30px rgba(129, 199, 132, 0.3);
}

.completed-icon i {
    font-size: 60px;
    color: #ffffff;
}

.completed-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
}

.installation-steps-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.steps-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: left;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #606368 0%, #4a4d52 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.step-text {
    flex: 1;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
    padding-top: 6px;
}

/* Responsive */
@media (max-width: 480px) {
    .logo-frame {
        padding: 12px;
        border-radius: 24px;
    }

    .header-logo {
        width: 140px;
        height: 140px;
    }

    .hero-title {
        font-size: 24px;
    }

    .shield-container {
        width: 120px;
        height: 120px;
    }

    .circular-progress {
        width: 120px;
        height: 120px;
    }

    .shield-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .shield-icon {
        width: 60px;
        height: 60px;
        font-size: 40px;
    }

    .download-text {
        font-size: 16px;
    }

    .completed-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }

    .completed-icon i {
        font-size: 50px;
    }

    .completed-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .installation-steps-card {
        padding: 20px;
    }

    .step-text {
        font-size: 13px;
    }
}
