/* --- GLOBAL STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- NAVIGATION BAR --- */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #141414;
    border-bottom: 1px solid #222;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.logo-container img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #b0b0b0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.nav-btn:hover, .nav-btn.active {
    color: #ffffff;
    background-color: #222;
}

#link-btn {
    background-color: #ff4757;
    color: #ffffff;
}

#link-btn:hover {
    background-color: #ff6b81;
}

/* --- PROFILE AVATAR & DROPDOWN STYLING --- */
.user-profile-menu {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.profile-avatar-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.profile-avatar-btn:hover {
    border-color: #ff4757;
}

.profile-avatar-btn img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    image-rendering: pixelated;
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background-color: #1a1a1a;
    min-width: 220px;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 100;
    padding: 15px;
    text-align: left;
}

.dropdown-content.show {
    display: block;
}

.dropdown-header {
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.dropdown-header h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.dropdown-header p {
    color: #888;
    font-size: 0.75rem;
    font-family: monospace;
    word-break: break-all;
    margin: 0;
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dropdown-links a, .dropdown-links button {
    background: transparent;
    border: none;
    color: #b0b0b0;
    padding: 8px 10px;
    text-align: left;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    transition: background 0.2s, color 0.2s;
}

.dropdown-links a:hover, .dropdown-links button:hover {
    background-color: #222;
    color: #ffffff;
}

.dropdown-links button.unlink-btn {
    color: #ff4757;
}

.dropdown-links button.unlink-btn:hover {
    background-color: rgba(255, 71, 87, 0.15);
}

/* --- MAIN CONTENT SECTIONS --- */
main {
    flex: 1;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

p {
    color: #b0b0b0;
    line-height: 1.5;
}

.server-box {
    background-color: #141414;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: inline-block;
}

/* --- SHOP STYLING --- */
.shop-category h2 {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.shop-item {
    background-color: #141414;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shop-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.shop-item .price {
    color: #ff4757;
    font-weight: bold;
    margin-bottom: 15px;
}

.buy-btn {
    background-color: #ff4757;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.buy-btn:hover {
    background-color: #ff6b81;
}

/* Greyed out locked state for unlinked users */
.buy-btn.locked {
    background-color: #222 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.4;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #141414;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.85rem;
}
