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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #1877F2 0%, #0e5ebf 100%);
    min-height: 100vh;
    padding: 20px 20px 30px;
}

.container {
    max-width: 480px;
    margin: 30px auto;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 24px 24px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.promo-header {
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f6fe;
    position: relative;
    width: 100%;
}

.promo-header img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #f0f6fe;
    border-radius: 16px;
    transition: transform 0.25s ease;
}

.promo-header img:hover {
    transform: scale(1.01);
}

.promo-text {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 100%);
    border-radius: 12px;
    border: 2px solid #1877F2;
}

.promo-text .line1 {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1877F2;
    letter-spacing: 0.5px;
}

.promo-text .line2 {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #1877F2;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.logo {
    text-align: center;
    margin-bottom: 16px;
}

.logo img {
    width: 60px;
    height: auto;
}

h1 {
    font-size: 24px;
    color: #1877F2;
    text-align: center;
    margin-bottom: 4px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.benefits-section {
    margin: 24px 0 20px;
}

.benefits-title {
    font-size: 16px;
    font-weight: 700;
    color: #1877F2;
    text-align: center;
    margin-bottom: 16px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background: #1877F2;
    border-radius: 50%;
    opacity: 0.7;
}

.benefits-list li small {
    color: #888;
    font-size: 12px;
}

.action-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 16px;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 40px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    background: white;
    color: #1877F2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-primary {
    background: #1877F2;
    color: white;
    box-shadow: 0 6px 14px rgba(24,119,242,0.35);
}

.btn-primary:hover {
    background: #1464c9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(24,119,242,0.4);
}

.btn-secondary {
    background: white;
    color: #1877F2;
    border: 1.5px solid #1877F2;
}

.btn-secondary:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 8px;
    color: #999;
    font-size: 13px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.footer {
    text-align: center;
    margin-top: 24px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: 30px;
    color: white;
    font-size: 15px;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: toastFadeInOut 3.5s ease;
    max-width: 90%;
    text-align: center;
    background: #1877F2;
}

.toast-success { background: #1877F2; }
.toast-error { background: #dc3545; }
.toast-info { background: #17a2b8; }

@keyframes toastFadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.install-banner {
    display: none;
    background: #1877F2;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.install-banner.show {
    display: flex;
}

.install-banner p {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.install-banner .btn-install {
    background: white;
    color: #1877F2;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.install-banner .btn-install:hover {
    transform: scale(1.05);
}

.install-banner .btn-close-install {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 16px;
    transition: 0.2s;
    opacity: 0.8;
    white-space: nowrap;
}

.install-banner .btn-close-install:hover {
    background: rgba(255,255,255,0.15);
    opacity: 1;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}
.loading-overlay.show {
    display: flex;
}
.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-overlay p {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 420px) {
    .card { padding: 16px 16px 24px; }
    .btn-primary, .btn-secondary { font-size: 15px; padding: 14px; }
    .promo-header { border-radius: 12px; }
    .promo-header img { border-radius: 12px; }
    .benefits-list li { font-size: 13px; padding: 6px 0 6px 24px; }
    .benefits-list li::before { width: 14px; height: 14px; top: 12px; }
    .promo-text { padding: 10px 12px; }
    .promo-text .line1 { font-size: 14px; }
    .promo-text .line2 { font-size: 17px; }
    .install-banner { flex-wrap: wrap; }
    .install-banner .btn-install { width: 100%; text-align: center; }
    .install-banner .btn-close-install { width: 100%; text-align: center; }
}
