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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: linear-gradient(180deg, #0a1628 0%, #0d1b2e 50%, #0a1628 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(15, 30, 50, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 30, 50, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 390px;
    margin: 0 auto;
    padding: 60px 20px 120px;
    position: relative;
    z-index: 1;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    grid-auto-rows: min-content;
    align-items: start;
}

.card {
    background: rgba(25, 35, 50, 0.6);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.card-label {
    padding: 10px 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #4ade80;
    letter-spacing: 0.02em;
}

.help-button {
    position: fixed;
    bottom: 140px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 100;
}

.help-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(0, 122, 255, 0.6);
}

.bottom-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    padding: 12px 20px 32px;
    gap: 12px;
    z-index: 99;
}

.tab {
    flex: 1;
    padding: 14px 20px;
    border-radius: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.tab.active {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.tab:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

/* Bottom Sheet */
.sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 200;
}

.sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 25, 35, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px 24px 0 0;
    padding: 8px 0 40px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 201;
    max-height: 80vh;
    overflow-y: auto;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin: 8px auto 20px;
}

.sheet-content {
    padding: 0 24px;
}

.sheet-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.sheet-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
}

.contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.contact-text-full {
    font-size: 17px;
    font-weight: 600;
    color: white;
    text-align: center;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .cards-grid {
        gap: 16px;
    }
    
    .card {
        border-radius: 20px;
    }
    
    .card-label {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .sheet-content h2 {
        font-size: 24px;
    }
    
    .contact-title {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 80px 40px 140px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .bottom-sheet {
        left: 50%;
        transform: translate(-50%, 100%);
        max-width: 600px;
        border-radius: 24px;
        margin-bottom: 20px;
    }
    
    .bottom-sheet.active {
        transform: translate(-50%, 0);
    }
}

