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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.platform-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    cursor: pointer;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.platform-card.loading,
.platform-card.empty,
.platform-card.error {
    background: white;
    color: #666;
    cursor: default;
}

.platform-card.loading:hover,
.platform-card.empty:hover,
.platform-card.error:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.platform-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.platform-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.platform-desc {
    font-size: 14px;
    opacity: 0.9;
}

footer {
    text-align: center;
    margin-top: 40px;
}

.admin-link {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.admin-link:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.back-link {
    display: inline-block;
    margin-top: 10px;
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
}

.admin-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    margin-left: 10px;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.form-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.form-card h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #34495e;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.platforms-list {
    margin-top: 30px;
}

.platform-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-info {
    flex: 1;
}

.platform-info h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.platform-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 3px;
}

.platform-actions {
    display: flex;
    gap: 10px;
}
