* {
    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(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
    animation: slideDown 0.8s ease-out;
}

.logo {
    margin-bottom: 15px;
}

.header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 300;
}

.status-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-badge.online {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 25px;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 10px;
    font-weight: 700;
}

.card p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.card-features {
    list-style: none;
    margin-bottom: 25px;
    font-size: 13px;
}

.card-features li {
    color: #6b7280;
    padding: 6px 0;
    display: flex;
    align-items: center;
}

.card-features li::before {
    content: '✓';
    color: #667eea;
    margin-right: 8px;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #667eea;
    border: 2px solid #667eea;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.footer {
    text-align: center;
    color: white;
    opacity: 0.7;
    font-size: 13px;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.footer a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid white;
}

.footer a:hover {
    opacity: 1;
}

.info-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 40px;
    animation: slideUp 0.8s ease-out 0.3s backwards;
}

.info-section h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.info-section p {
    opacity: 0.9;
    line-height: 1.6;
    font-size: 14px;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-top: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.card-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-admin h2,
.card-admin p,
.card-admin li {
    color: white;
}

.card-admin p {
    opacity: 0.9;
}

.card-admin li {
    opacity: 0.85;
}

.card-admin li::before {
    color: #fbbf24;
}

.card-admin .btn-primary {
    background: white;
    color: #667eea;
}

.card-admin .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 12px;
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .header {
        margin-bottom: 28px;
    }

    .header h1 {
        font-size: 1.65rem;
    }

    .header p {
        font-size: 0.95rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .card {
        padding: 22px 18px;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card h2 {
        font-size: 1.2rem;
    }

    .card p,
    .card-features {
        font-size: 0.85rem;
    }

    .info-section {
        padding: 18px;
        margin-bottom: 24px;
        font-size: 0.9rem;
    }

    .info-section h3 {
        font-size: 1rem;
    }

    .info-section p {
        line-height: 1.55;
        word-break: break-word;
    }

    .quick-links {
        gap: 8px;
    }

    .quick-link {
        font-size: 0.8rem;
        padding: 10px 12px;
    }

    .footer {
        font-size: 0.75rem;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .header h1 {
        font-size: 1.45rem;
    }
}

.badge {
    display: inline-block;
    background: #f3f4f6;
    color: #667eea;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.quick-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.quick-link {
    font-size: 12px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 4px;
    text-decoration: none;
    color: #667eea;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: #667eea;
    color: white;
}
