*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body.fx-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
    color: #e5e7eb;
    min-height: 100vh;
}

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.fx-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.fx-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(15, 23, 42, 0.9);
}

.fx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.fx-logo a {
    font-weight: 800;
    font-size: 20px;
    color: #e5e7eb;
}

.fx-logo span {
    color: #22c55e;
}

.fx-nav a {
    margin-left: 16px;
    font-size: 14px;
    color: #cbd5f5;
}

.fx-nav a.fx-btn {
    margin-left: 20px;
}

.fx-main {
    padding: 32px 0 56px;
}

.fx-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 16px 0;
    background: rgba(15, 23, 42, 0.9);
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
}

.fx-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    align-items: center;
}

.fx-hero-text h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.fx-hero-text p {
    color: #9ca3af;
    max-width: 480px;
}

.fx-hero-actions {
    margin: 20px 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fx-hero-list {
    margin: 0;
    padding-left: 18px;
    color: #9ca3af;
    font-size: 14px;
}

.fx-hero-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.95));
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.fx-hero-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.fx-hero-mini-sites {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.fx-hero-mini-sites span {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.fx-btn {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fx-btn-primary {
    background: linear-gradient(to right, #22c55e, #16a34a);
    color: #0b1120;
    font-weight: 600;
    border-color: transparent;
}

.fx-btn-ghost {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.5);
}

.fx-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.fx-btn-inline {
    margin-left: 8px;
}

.fx-page-title {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 16px;
}

.fx-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.fx-card-tight {
    padding: 16px;
}

.fx-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fx-form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.fx-form-group input[type="text"],
.fx-form-group input[type="email"],
.fx-form-group input[type="password"],
.fx-form-group input[type="number"],
.fx-form-group input[type="color"],
.fx-form-group textarea,
.fx-form-group select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 14px;
}

.fx-form-group textarea {
    resize: vertical;
}

.fx-form-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fx-form-addon {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 13px;
    color: #9ca3af;
    background: rgba(15, 23, 42, 0.9);
}

.fx-form-note {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 6px;
}

.fx-alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.fx-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #fecaca;
}

.fx-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.6);
    color: #bbf7d0;
}

.fx-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
    gap: 20px;
}

.fx-stats {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.fx-stat-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}

.fx-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.fx-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fx-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    font-size: 13px;
}

.fx-muted {
    color: #9ca3af;
    font-size: 12px;
}

.fx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.fx-table th,
.fx-table td {
    padding: 8px 6px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.fx-table th {
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
}

.fx-pagination {
    margin-top: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.fx-pagination a {
    border-radius: 999px;
    padding: 4px 9px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 12px;
    color: #cbd5f5;
}

.fx-pagination a.active {
    background: #22c55e;
    color: #0b1120;
    border-color: transparent;
}

.fx-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-top: 4px;
}

.fx-mt-lg {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .fx-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .fx-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .fx-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .fx-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .fx-nav a {
        margin-left: 0;
    }
}

