* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --bg-light: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-secondary: #6b7280;
    --border-light: #e5e7eb;
    --ad-bg: #f3f4f6;
    --safe-badge: #34d399;
}

body {
    background: var(--bg-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    margin: 0;
    color: var(--text-main);
    line-height: 1.5;
}

.phone-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 420px;
    border-radius: 32px;
    box-shadow: 0 20px 35px -8px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.05);
    padding: 28px 20px 32px 20px;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.5);
}

.status-section {
    text-align: center;
    margin-bottom: 24px;
}

.status-icon {
    font-size: 4.2rem;
    color: var(--primary);
    filter: drop-shadow(0 6px 8px rgba(16,185,129,0.2));
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-text {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 8px;
    color: var(--text-main);
}

.sub-text {
    font-size: 1rem;
    color: var(--text-secondary);
    background: var(--bg-light);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 40px;
    margin-top: 4px;
    font-weight: 450;
}

.routes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 28px 0;
}

.route-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    border: none;
    border-radius: 60px;
    padding: 0 20px 0 24px;
    height: 60px;
    color: white;
    font-size: 1.2rem;
    font-weight: 540;
    box-shadow: 0 8px 18px -6px rgba(16,185,129,0.5);
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
}

.route-btn:active {
    transform: scale(0.985);
    background: var(--primary-dark);
    box-shadow: 0 4px 10px -3px rgba(5,150,105,0.6);
}

.route-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.route-badge {
    background: rgba(255,255,255,0.25);
    border-radius: 40px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(2px);
}

.security-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

.ad-row {
    display: flex;
    gap: 12px;
    margin: 16px 0 24px 0;
}

.ad-btn {
    flex: 1;
    background: var(--ad-bg);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 14px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    -webkit-tap-highlight-color: transparent;
}

.ad-btn:active {
    background: #e9eaed;
    transform: scale(0.97);
}

.ad-title {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.ad-title i {
    color: var(--primary);
    font-size: 1rem;
}

.ad-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.favorite-links {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 16px 18px;
    margin-top: 8px;
    border: 1px solid var(--border-light);
}

.section-mini-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 10px;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
    gap: 6px;
    transition: all 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.link-item:active {
    opacity: 0.6;
    transform: translateY(2px);
}

.link-icon {
    background: white;
    width: 48px;
    height: 48px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid #eef2f6;
}

.link-icon i {
    display: inline-block;
}

.link-name {
    font-weight: 480;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
}

.security-note {
    text-align: center;
    margin-top: 20px;
    color: #9ca3af;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-note i {
    font-size: 0.65rem;
}

@keyframes pop {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.noise-element {
    display: none !important;
}

@media (max-width: 380px) {
    .links-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px 6px;
    }
    
    .link-icon {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    
    .link-name {
        max-width: 60px;
        font-size: 0.7rem;
    }
}