

.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.worker-status-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.worker-status-bar code {
    background: var(--bg-input);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    color: var(--accent-blue);
    font-family: monospace;
}

.tab-page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-page.active {
    display: block;
}

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

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.page-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.friend-stats {
    display: flex;
    gap: 12px;
}

.stat-pill {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-pill.online i { color: var(--accent-green); }
.stat-pill.total i { color: var(--accent-blue); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.profile-card {
    margin-bottom: 28px;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--nintendo-red);
}

.profile-tag-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.profile-tag-row h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.nso-membership-badge {
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.friend-code {
    color: var(--text-secondary);
    font-size: 14px;
}

.friend-code span {
    color: var(--accent-blue);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.friend-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.friend-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
}

.friend-avatar-wrap {
    position: relative;
    width: 56px;
    height: 56px;
}

.friend-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    position: absolute;
    bottom: 0;
    right: 0;
}

.status-dot.online { background-color: var(--accent-green); }
.status-dot.offline { background-color: var(--text-muted); }

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-game {
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friend-online-platform {
    color: #1fd46a;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friend-game.friend-game-playing { color: var(--text-primary); font-weight: 600; }

.friend-time {
    color: var(--text-muted);
    font-size: 12px;
}

.services-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.service-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.service-tab-btn.active {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}

.service-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.service-content.active {
    display: block;
}

.splatoon-hero {
    background: linear-gradient(135deg, #1b004c, #3d007a);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid rgba(156, 39, 176, 0.4);
}

.splatoon-badge {
    background: #e6ff00;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.acnh-hero {
    background: linear-gradient(135deg, #004d40, #00796b);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 230, 118, 0.4);
}

.acnh-badge {
    background: #00e676;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.smash-hero {
    background: linear-gradient(135deg, #b71c1c, #880e4f);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid rgba(230, 0, 18, 0.4);
}

.smash-badge {
    background: #ff1a2d;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.game-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tag-live {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.tag-accent {
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    padding: 28px;
    position: relative;
    box-shadow: var(--shadow-card);
    animation: modalPop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.hidden { display: none !important; }

