/* public/css/styles.css */

:root {
    --bg-overlay: rgba(0, 15, 30, 0.75);
    --primary-green: #2d8a5e;
    --accent-purple: #9333ea;
    --highlight-teal: #4db8a0;
    --accent-red: #dc2626;
    --text-light: #f0f4f8;
    --text-muted: #b0c4de;
    --card-bg: rgba(15, 35, 55, 0.6);
    --border-voxel: #1a3a50;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

/* Custom scrollbar - highlight-teal */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 15, 30, 0.4);
}

::-webkit-scrollbar-thumb {
    background: var(--highlight-teal);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--highlight-teal) rgba(0, 15, 30, 0.4);
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000f1e;
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 184, 160, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    animation: toastSlideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.error {
    border-color: rgba(255, 107, 107, 0.4);
}

.toast.success {
    border-color: rgba(77, 184, 160, 0.4);
}

.toast.warning {
    border-color: rgba(251, 191, 36, 0.4);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.toast-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

@media (max-width: 640px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: unset;
        max-width: unset;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        var(--bg-overlay),
        url('https://images.unsplash.com/photo-1614732414444-096e5f1122d5?w=1920&q=80') center/cover;
    z-index: -1;
}

/* -------------------------------------------
   HERO BANNER - LINKTREE STYLE (Full Width)
   ------------------------------------------- */

.hero-banner {
    background: linear-gradient(180deg, #000f1e 0%, #001020 100%);
    padding: 80px 20px 90px;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(77, 184, 160, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 138, 94, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-banner-content {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-banner-headline {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 30px;
    color: var(--highlight-teal);
    letter-spacing: -3px;
}

.hero-banner-subline {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: rgba(176, 196, 222, 0.9);
    font-weight: 400;
    line-height: 1.7;
    max-width: 520px;
}

/* -------------------------------------------
   CLAIM FORM - Linktree Style
   ------------------------------------------- */

.claim-box {
    margin-top: 40px;
}

.claim-form {
    display: flex;
    gap: 0;
    max-width: 520px;
}

.claim-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(0, 15, 30, 0.8);
    border: 2px solid rgba(77, 184, 160, 0.2);
    border-right: none;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.claim-input-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.claim-input-wrapper:focus-within {
    background: rgba(0, 15, 30, 0.95);
    border-color: rgba(77, 184, 160, 0.6);
    box-shadow: 0 0 0 1px rgba(77, 184, 160, 0.3);
}

.claim-input-wrapper:focus-within::after {
    background: rgba(77, 184, 160, 0.3);
}

.claim-prefix {
    padding: 18px 0 18px 20px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: rgba(176, 196, 222, 0.7);
    white-space: nowrap;
    user-select: none;
}

.claim-input {
    flex: 1;
    padding: 18px 20px 18px 0;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--highlight-teal);
    background: transparent;
    border: none;
    outline: none;
    min-width: 0;
}

.claim-input::placeholder {
    color: rgba(176, 196, 222, 0.4);
}

.claim-button {
    padding: 18px 28px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #2d8a5e, #4db8a0);
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(45, 138, 94, 0.4);
    letter-spacing: 0.3px;
}

.claim-button:hover {
    background: linear-gradient(135deg, #4db8a0, #2d8a5e);
    box-shadow: 0 12px 28px rgba(45, 138, 94, 0.6);
    filter: brightness(1.1);
}

.claim-button:active {
    transform: scale(0.98);
    box-shadow: 0 6px 16px rgba(45, 138, 94, 0.4);
}

/* -------------------------------------------
   SHOWCASE SECTION - Server Page Preview
   ------------------------------------------- */

.showcase-section {
    background: #000f1e;
    padding: 70px 20px 80px;
    position: relative;
}

.showcase-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.showcase-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--highlight-teal);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

/* Browser Window Preview */
.showcase-preview {
    margin-bottom: 40px;
}

.preview-window {
    background: rgba(0, 15, 30, 0.6);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(77, 184, 160, 0.2);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(77, 184, 160, 0.1);
}

.preview-browser-bar {
    background: rgba(0, 20, 35, 0.8);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(77, 184, 160, 0.1);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(176, 196, 222, 0.3);
}

.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:last-child { background: #22c55e; }

.preview-url {
    flex: 1;
    background: rgba(0, 15, 30, 0.6);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.preview-content {
    padding: 24px;
}

.preview-hero {
    text-align: center;
    padding: 20px 0 24px;
    border-bottom: 1px solid rgba(77, 184, 160, 0.15);
    margin-bottom: 20px;
}

.preview-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green), var(--highlight-teal));
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.preview-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 6px;
}

.preview-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.preview-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 18px;
}

.preview-stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
}

.stat-value.green {
    color: var(--primary-green);
}

.preview-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.preview-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.preview-tag.green {
    background: rgba(45, 138, 94, 0.25);
    color: var(--primary-green);
    border: 1px solid rgba(45, 138, 94, 0.3);
}

.preview-tag.teal {
    background: rgba(77, 184, 160, 0.25);
    color: var(--highlight-teal);
    border: 1px solid rgba(77, 184, 160, 0.3);
}

.preview-tag.purple {
    background: rgba(147, 51, 234, 0.25);
    color: var(--accent-purple);
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.preview-cta {
    background: linear-gradient(135deg, var(--primary-green), var(--highlight-teal));
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    display: inline-block;
}

/* Feature List */
.showcase-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
}

.showcase-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.showcase-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* -------------------------------------------
   CONTAINER
   ------------------------------------------- */

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* -------------------------------------------
   HEADER (Brand Mark Only)
   ------------------------------------------- */

header {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease;
    position: relative;
    z-index: 10;
}

.brand-mark {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--highlight-teal);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Auth Navigation in Hero Banner */
.auth-nav-hero {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.auth-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-btn.login-btn {
    color: var(--highlight-teal);
    background: rgba(77, 184, 160, 0.1);
    border: 1px solid rgba(77, 184, 160, 0.3);
}

.auth-btn.login-btn:hover {
    background: rgba(77, 184, 160, 0.2);
    border-color: rgba(77, 184, 160, 0.5);
}

.auth-btn.register-btn {
    color: white;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--highlight-teal) 100%);
    border: none;
}

.auth-btn.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 184, 160, 0.3);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(77, 184, 160, 0.1);
    border: 1px solid rgba(77, 184, 160, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.user-dropdown-btn:hover {
    background: rgba(77, 184, 160, 0.15);
    border-color: rgba(77, 184, 160, 0.5);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--highlight-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 184, 160, 0.3);
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: var(--text-light);
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(77, 184, 160, 0.1);
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(77, 184, 160, 0.2);
    margin: 8px 0;
}

/* -------------------------------------------
   HERO SECTION - THE MAIN EVENT
   ------------------------------------------- */

.hero {
    text-align: center;
    padding: 40px 0 50px;
    margin-bottom: 50px;
    position: relative;
    animation: fadeInDown 0.8s ease 0.1s backwards;
}

/* Decorative top accent */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--highlight-teal));
    border-radius: 2px;
}

/* Bottom separator */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-voxel), transparent);
}

.hero-headline {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--highlight-teal) 60%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1.5px;
    padding-bottom: 4px;
}

.hero-subline {
    font-size: clamp(1.05rem, 4vw, 1.25rem);
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-disclaimer {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 20px;
    background: rgba(45, 138, 94, 0.1);
    border: 1px solid rgba(45, 138, 94, 0.25);
    border-radius: 100px;
    opacity: 0.85;
}

/* -------------------------------------------
   LEGACY LOGO STYLES (kept for compatibility)
   ------------------------------------------- */

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--highlight-teal) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* -------------------------------------------
   SERVER LIST
   ------------------------------------------- */

.server-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 50px;
}

/* Base server card */
.server-card {
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeInUp 0.6s ease backwards;
    position: relative;
}

.server-card:nth-child(1) { animation-delay: 0.1s; }
.server-card:nth-child(2) { animation-delay: 0.2s; }
.server-card:nth-child(3) { animation-delay: 0.3s; }

/* FIRST SERVER - Emerald Premium */
.server-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(45, 138, 94, 0.2) 0%, rgba(77, 184, 160, 0.15) 100%);
    border: 2px solid var(--primary-green);
    box-shadow: 0 8px 20px rgba(45, 138, 94, 0.2);
}


.server-card:nth-child(1):hover {
    border-color: var(--highlight-teal);
    box-shadow: 0 12px 30px rgba(77, 184, 160, 0.25);
    transform: translateY(-6px) scale(1.01);
}

.server-card:nth-child(1) .server-name {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary-green), var(--highlight-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-card:nth-child(1) .copy-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--highlight-teal));
    box-shadow: 0 4px 10px rgba(45, 138, 94, 0.25);
}

/* SECOND SERVER - Purple Elite */
.server-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.18) 0%, rgba(168, 85, 247, 0.12) 100%);
    border: 2px solid var(--accent-purple);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.2);
}


.server-card:nth-child(2):hover {
    border-color: #a855f7;
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.25);
    transform: translateY(-6px) scale(1.01);
}

.server-card:nth-child(2) .server-name {
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--accent-purple), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-card:nth-child(2) .copy-btn {
    background: linear-gradient(135deg, var(--accent-purple), #a855f7);
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.25);
}

/* THIRD SERVER - Red VIP */
.server-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.3) 0%, rgba(239, 68, 68, 0.22) 100%);
    border: 2px solid var(--accent-red);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}


.server-card:nth-child(3):hover {
    border-color: #ef4444;
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.4);
    transform: translateY(-6px) scale(1.01);
}

.server-card:nth-child(3) .server-name {
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--accent-red), #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-card:nth-child(3) .copy-btn {
    background: linear-gradient(135deg, var(--accent-red), #ef4444);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

.server-card:nth-child(3) .copy-btn.copied {
    background: linear-gradient(135deg, var(--accent-red), #ef4444) !important;
}

/* Category-based server card styling */
.server-card[data-category="rpg"] {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.18) 0%, rgba(168, 85, 247, 0.12) 100%);
    border: 2px solid var(--accent-purple);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.2);
}

.server-card[data-category="rpg"]:hover {
    border-color: #a855f7;
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.25);
    transform: translateY(-6px) scale(1.01);
}

.server-card[data-category="rpg"] .server-name {
    background: linear-gradient(135deg, var(--accent-purple), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-card[data-category="rpg"] .copy-btn {
    background: linear-gradient(135deg, var(--accent-purple), #a855f7);
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.25);
}

.server-card[data-category="pvp"] {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.2) 0%, rgba(194, 65, 12, 0.15) 100%);
    border: 2px solid #ea580c;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.2);
}

.server-card[data-category="pvp"]:hover {
    border-color: #c2410c;
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.25);
    transform: translateY(-6px) scale(1.01);
}

.server-card[data-category="pvp"] .server-name {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-card[data-category="pvp"] .copy-btn {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

.server-card[data-category="survival"] {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(153, 27, 27, 0.15) 100%);
    border: 2px solid var(--accent-red);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.2);
}

.server-card[data-category="survival"]:hover {
    border-color: #ef4444;
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.25);
    transform: translateY(-6px) scale(1.01);
}

.server-card[data-category="survival"] .server-name {
    background: linear-gradient(135deg, var(--accent-red), #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-card[data-category="survival"] .copy-btn {
    background: linear-gradient(135deg, var(--accent-red), #ef4444);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}

.server-card[data-category="creative"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 2px solid #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.server-card[data-category="creative"]:hover {
    border-color: #059669;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
    transform: translateY(-6px) scale(1.01);
}

.server-card[data-category="creative"] .server-name {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-card[data-category="creative"] .copy-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.server-card[data-category="social"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 2px solid #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.server-card[data-category="social"]:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25);
    transform: translateY(-6px) scale(1.01);
}

.server-card[data-category="social"] .server-name {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-card[data-category="social"] .copy-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
    position: relative;
}

.server-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
    margin-bottom: 6px;
}

.server-tags {
    display: flex;
    gap: 6px;
}

.tag {
    background: rgba(45, 138, 94, 0.25);
    color: var(--primary-green);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(45, 138, 94, 0.3);
}

.tag.survival {
    background: rgba(220, 38, 38, 0.25);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.3);
}

.tag.pvp {
    background: rgba(234, 88, 12, 0.25);
    color: #ea580c;
    border-color: rgba(234, 88, 12, 0.3);
}

.tag.rpg {
    background: rgba(147, 51, 234, 0.25);
    color: var(--accent-purple);
    border-color: rgba(147, 51, 234, 0.3);
}

.tag.creative {
    background: rgba(16, 185, 129, 0.25);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.tag.social {
    background: rgba(59, 130, 246, 0.25);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Featured badge */
.featured-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
    white-space: nowrap;
}

/* Featured badge styles based on server category */
.server-card:nth-child(1) .featured-badge {
    background: linear-gradient(135deg, var(--primary-green), var(--highlight-teal));
    box-shadow: 0 2px 8px rgba(45, 138, 94, 0.3);
}

.server-card:nth-child(2) .featured-badge {
    background: linear-gradient(135deg, var(--accent-purple), #a855f7);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.server-card:nth-child(3) .featured-badge {
    background: linear-gradient(135deg, var(--accent-red), #ef4444);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

/* Category-specific featured badge styles (fallback for any position) */
.tag.survival ~ .featured-badge,
.server-card:has(.tag.survival) .featured-badge {
    background: linear-gradient(135deg, var(--accent-red), #ef4444);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.tag.pvp ~ .featured-badge,
.server-card:has(.tag.pvp) .featured-badge {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.tag.rpg ~ .featured-badge,
.server-card:has(.tag.rpg) .featured-badge {
    background: linear-gradient(135deg, var(--accent-purple), #a855f7);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.tag.creative ~ .featured-badge,
.server-card:has(.tag.creative) .featured-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.tag.social ~ .featured-badge,
.server-card:has(.tag.social) .featured-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.server-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.server-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.server-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.ping {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.ping-value {
    color: var(--primary-green);
    font-weight: 600;
    transition: color 0.3s ease;
}

.ping-value.high-ping {
    color: #d97706;
}

.player-count.offline {
    color: #dc2626;
}

.status-dot.offline {
    background: #dc2626;
    animation: none;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.copy-btn {
    color: var(--text-light);
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.98);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* -------------------------------------------
   FOOTER
   ------------------------------------------- */

footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border-voxel);
}

.footer-link {
    display: inline-block;
    color: var(--highlight-teal);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-green);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* -------------------------------------------
   ANIMATIONS
   ------------------------------------------- */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 138, 94, 0.7);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
        box-shadow: 0 0 0 4px rgba(45, 138, 94, 0);
    }
}

/* -------------------------------------------
   RESPONSIVE
   ------------------------------------------- */

@media (max-width: 640px) {
    .hero-banner {
        padding: 50px 20px 60px;
    }

    .hero-banner-headline {
        font-size: 2.4rem;
        letter-spacing: -1.5px;
        margin-bottom: 20px;
    }

    .hero-banner-subline {
        font-size: 0.95rem;
    }

    .claim-box {
        margin-top: 30px;
    }

    .claim-form {
        flex-direction: column;
        gap: 12px;
    }

    .claim-input-wrapper {
        border-radius: 12px;
    }

    .claim-prefix {
        padding: 16px 0 16px 18px;
    }

    .claim-input {
        padding: 16px 18px 16px 0;
    }

    .claim-button {
        border-radius: 12px;
        padding: 16px 24px;
    }

    .showcase-section {
        padding: 50px 20px 60px;
    }

    .showcase-label {
        font-size: 0.75rem;
        margin-bottom: 30px;
    }

    .preview-content {
        padding: 16px;
    }

    .preview-title {
        font-size: 1.2rem;
    }

    .preview-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 0.85rem;
    }

    .preview-tags {
        flex-wrap: wrap;
    }

    .showcase-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
        padding-left: 20px;
    }

    .showcase-features li {
        font-size: 0.85rem;
    }

    .container {
        padding: 30px 16px 50px;
    }

    .brand-mark {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    header {
        margin-bottom: 16px;
    }

    .hero {
        padding: 30px 0 40px;
        margin-bottom: 40px;
    }

    .hero-headline {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .hero-subline {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .hero-disclaimer {
        font-size: 0.7rem;
        padding: 8px 16px;
        letter-spacing: 0.5px;
    }

    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .server-card {
        padding: 24px;
    }

    .server-name {
        font-size: 1.3rem;
    }

    .server-card:nth-child(1) .server-name,
    .server-card:nth-child(2) .server-name,
    .server-card:nth-child(3) .server-name {
        font-size: 1.4rem;
    }

    .server-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .server-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-btn {
        width: 100%;
    }
}
/* ==================== NAVBAR STYLES ==================== */

nav {
    background: rgba(0, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(77, 184, 160, 0.1);
    padding: 16px 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-size: 16px !important;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.navbar-top {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 1.8rem !important;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--highlight-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    text-decoration: none;
    vertical-align: middle;
    position: relative;
    top: 2px;
}

.navbar-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem !important;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-link:hover {
    color: var(--highlight-teal);
    background: rgba(77, 184, 160, 0.1);
}

.navbar-link.active {
    color: var(--highlight-teal);
    background: rgba(77, 184, 160, 0.15);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--highlight-teal);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Add spacing after navbar - except for hero banner */
nav + *:not(.hero-banner) {
    margin-top: 30px;
}

/* Remove top margin and extend hero banner behind navbar */
body:has(nav) .hero-banner {
    margin-top: 0 !important;
    padding-top: 0;
}

body:has(nav) .hero-banner-content {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
    }

    .hamburger-menu {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(0, 15, 30, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-bottom: 1px solid rgba(77, 184, 160, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .navbar-menu.active {
        max-height: 500px;
        opacity: 1;
        padding: 20px;
    }

    .navbar-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .navbar-link {
        width: 100%;
        text-align: left;
        padding: 14px 16px;
        border-radius: 8px;
    }

    .auth-nav-header {
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(77, 184, 160, 0.1);
    }

    .auth-nav-header .auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .auth-nav-header .auth-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .auth-nav-header .user-dropdown {
        width: 100%;
    }

    .auth-nav-header .user-dropdown-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   LOADING STATES
   ========================================== */

/* Spinner Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    border: 3px solid rgba(77, 184, 160, 0.1);
    border-top-color: var(--highlight-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Spinner Sizes */
.spinner-small .spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner-medium .spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.spinner-large .spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Page Loading Overlay */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-loading-overlay.show {
    opacity: 1;
}

.page-loading-content {
    text-align: center;
}

.loading-message {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 24px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Element Loading State */
.element-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.element-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
