:root {
    --bg-main: #0b0c10;
    --bg-card: #14161a;
    --bg-card-hover: #1c1f24;
    --border: #2c2f36;
    --accent: #4caf50; /* The green from your screenshot */
    --text-primary: #ffffff;
    --text-secondary: #949ba4;
    --font-family: 'Inter', monospace; /* Keeping a hint of monospace feel but cleaner */
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
}

/* Header */
.hub-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.logo svg { color: var(--accent); }

.logo h1 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.status-badge {
    background: rgba(76, 175, 80, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent);
}

/* Grid Layout */
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Card Button Reset */
.card-form {
    display: block;
    width: 100%;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: #3a3f48;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Card Content */
.card-content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    transition: opacity 0.3s;
}

.icon-wrapper {
    width: 44px;
    height: 44px;
    background: #1f2229;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.text-content { flex: 1; }

.text-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.arrow-icon {
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.service-card:hover .arrow-icon {
    transform: translateX(4px);
    color: var(--accent);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 21, 0.9);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    z-index: 10;
}

.service-card.is-loading .loading-overlay {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

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

/* Mobile Optimization */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .status-badge {
        width: 100%;
        justify-content: center;
    }
    .grid-wrapper {
        grid-template-columns: 1fr;
    }
}
