/* Service Tabs */
.service-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    background: rgba(15, 52, 96, 0.3);
    border: 2px solid #16213e;
    border-radius: 15px;
    padding: 15px 30px;
    color: #e5e5e5;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tab-button:active {
    transform: translateY(0px) scale(0.98);
    transition: transform 0.1s ease;
}

.tab-button.active {
    border-color: currentColor;
    box-shadow: 0 0 20px currentColor;
}

/* Habbo Tab */
.tab-button[data-service="habbo"] {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
}

.tab-button[data-service="habbo"]:hover,
.tab-button[data-service="habbo"].active {
    background: rgba(255, 193, 7, 0.2);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* RuneScape Tab */
.tab-button[data-service="runescape"] {
    color: #ff5722;
    background: rgba(255, 87, 34, 0.1);
    border-color: #ff5722;
}

.tab-button[data-service="runescape"]:hover,
.tab-button[data-service="runescape"].active {
    background: rgba(255, 87, 34, 0.2);
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.3);
}

/* Steam Tab (Grey finish) */
.tab-button[data-service="steam"] {
    color: #b3b3b3;
    background: rgba(179, 179, 179, 0.1);
    border-color: #b3b3b3;
}

.tab-button[data-service="steam"]:hover,
.tab-button[data-service="steam"].active {
    background: rgba(179, 179, 179, 0.2);
    box-shadow: 0 4px 8px rgba(179, 179, 179, 0.3);
}

/* OpenSea Tab */
.tab-button[data-service="opensea"] {
    color: #2081E2; /* OpenSea primary */
    background: rgba(32, 129, 226, 0.12);
    border-color: #2081E2;
    position: relative; /* allow floating badge positioning */
    /* keep overflow hidden so shine effect remains clipped to button */
}

.tab-button[data-service="opensea"]:hover,
.tab-button[data-service="opensea"].active {
    background: rgba(32, 129, 226, 0.2);
    box-shadow: 0 4px 8px rgba(32, 129, 226, 0.35);
}

/* Prevent the OpenSea tab from scaling the badge by disabling tab hover scale */
.tab-button[data-service="opensea"]:hover {
    transform: none !important;
}

/* Align NEW badge nicely in tab button */
.tab-button .badge-new {
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(32,129,226,0.35);
}

/* Fade the NEW badge on the OpenSea tab in and out */
.tab-button[data-service="opensea"] .badge-new {
    position: absolute;
    top: 2px; /* snug to the top edge inside the radius */
    right: 8px;
    margin-left: 0;
    padding: 2px 7px;
    font-size: 0.65rem;
    z-index: 3; /* above icon/text and shine */
    pointer-events: none;
    border-radius: 999px;
    animation: newBadgeFade 2.2s ease-in-out infinite alternate;
    will-change: opacity, filter;
    text-shadow: 0 0 6px rgba(32,129,226,0.7), 0 0 12px rgba(32,129,226,0.45);
}

.badge-new {
    display: inline-block;
    margin-left: 25px;
    padding: 4px 10px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #0b1b2e;
    background: linear-gradient(135deg, #ffd95a, #ffd95a);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    vertical-align: middle;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(243, 211, 32, 0.35);
}

/* Back to Home Button */
.back-to-home-btn {
    background: rgba(100, 181, 246, 0.1);
    border: 2px solid rgba(100, 181, 246, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    margin-right: 20px;
    padding: 0;
}

.back-to-home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.2), transparent);
    transition: left 0.5s;
    border-radius: 50%;
}

.back-to-home-btn:hover::before {
    left: 100%;
}

.back-to-home-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(100, 181, 246, 0.4), 0 0 15px rgba(88, 101, 242, 0.3);
    background: rgba(100, 181, 246, 0.15);
    border-color: rgba(100, 181, 246, 0.5);
}

.back-to-home-btn i {
    color: #64b5f6;
    font-size: 1.2rem;
    line-height: 1;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.back-to-home-btn:hover i {
    color: #90caf9;
}

/* X effect on click */
.back-to-home-btn::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(100, 181, 246, 0.7);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    text-shadow: 0 0 6px rgba(100, 181, 246, 0.4), 0 0 12px rgba(88, 101, 242, 0.3);
    visibility: hidden;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
}

.back-to-home-btn.clicked::after {
    visibility: visible;
    animation: xAppear 0.5s ease-out forwards;
}

.back-to-home-btn.clicked i {
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.back-to-home-btn:not(.clicked) i {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease 0.3s;
}

