body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    background: var(--tg-theme-bg-color, #ffffff);
    color: var(--tg-theme-text-color, #000000);
}

.container {
    max-width: 400px;
    margin: 0 auto;
}

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

.app-grid {
    display: grid;
    gap: 15px;
}

.app-card {
    background: var(--tg-theme-secondary-bg-color, #f8f8f8);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--tg-theme-hint-color, #e0e0e0);
    transition: all 0.2s ease;
}

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

.app-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.app-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.app-description {
    font-size: 0.9em;
    color: var(--tg-theme-hint-color, #666);
}

.error {
    background: #ffe6e6;
    color: #d00;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--tg-theme-button-color, #007acc);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.card {
    background: var(--tg-theme-secondary-bg-color, #f8f8f8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.debug-info {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 10px;
    font-family: monospace;
}
