/* Elydris - Purple Theme Stylesheet */
:root {
    --primary-purple: #8b5cf6;
    --dark-purple: #6d28d9;
    --light-purple: #a78bfa;
    --bg-dark: #0f0f23;
    --bg-darker: #0a0a15;
    --bg-card: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --border-color: #2a2a3e;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

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

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating particles animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

/* Pulse glow animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Rotate animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    /* Banner image at top that fades out */
    background-image: 
        linear-gradient(to bottom, 
            rgba(10, 10, 21, 0.3) 0%,
            rgba(10, 10, 21, 0.6) 40%,
            rgba(10, 10, 21, 0.85) 70%,
            var(--bg-dark) 100%
        ),
        url('/assets/images/hero/main-banner.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* Texture overlay - subtle blend */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/background/texture-1.jpg');
    background-size: 800px 800px;
    background-position: 0 0;
    background-repeat: repeat;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

/* Animated particles */
body::after {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(167, 139, 250, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(109, 40, 217, 0.3), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(167, 139, 250, 0.3), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(2px 2px at 30% 80%, rgba(109, 40, 217, 0.3), transparent);
    background-size: 200% 200%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

main {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

/* Page title styling */
h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}\n\nh1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple), transparent);
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, 
        rgba(20, 12, 35, 0.85) 0%,
        rgba(45, 27, 78, 0.65) 50%,
        rgba(18, 10, 30, 0.85) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--dark-purple), var(--primary-purple), var(--light-purple), var(--primary-purple), var(--dark-purple)) 1;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.5);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    position: relative;
    z-index: 2;
}

.logo {
    display: inline-block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 10px rgba(139, 92, 246, 0.6));
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
    /* Remove black background */
    mix-blend-mode: screen;
    filter: brightness(1.2) contrast(1.1);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 15px rgba(139, 92, 246, 0.9));
}

.logo:hover img {
    filter: brightness(1.3) contrast(1.15);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.2));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a:hover::before, nav a.active::before {
    opacity: 1;
}

nav a:hover, nav a.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
    transform: translateY(-2px);
}

/* Play Now button - animated gold */
nav a[href="/play"], nav a[href*="/play.php"] {
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff, #FFD700, #FFA500, #FFD700, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
    position: relative;
}

@keyframes shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

nav a[href="/play"]:hover, nav a[href*="/play.php"]:hover {
    animation: shine 1.5s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    transform: translateY(-2px);
}

.auth-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

/* Header Icons (Search & Notifications) */
.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-purple);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-icon:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.header-icon i {
    transition: transform 0.3s ease;
}

.header-icon:hover i {
    transform: scale(1.1);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Tooltip */
.header-icon[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(42, 42, 62, 0.98));
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid var(--primary-purple);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.header-icon[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(26, 26, 46, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
}

.header-icon[data-tooltip]:hover::before,
.header-icon[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: linear-gradient(135deg, var(--light-purple), #c4b5fd);
}

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

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

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

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

/* Navigation dropdown */
nav .dropdown {
    position: relative;
}

nav .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(42, 42, 62, 0.98));
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem !important;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 0 !important;
}

nav .dropdown-menu a:last-child {
    border-bottom: none;
}

nav .dropdown-menu a:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-purple);
    transform: none;
    padding-left: 1.25rem !important;
}

nav .dropdown-menu a i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* User dropdown */

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.user-dropdown-trigger:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary-purple);
}

.user-dropdown-trigger .username {
    color: var(--primary-purple);
    font-weight: 600;
}

.user-dropdown-trigger .arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--primary-purple);
    transition: transform 0.3s ease;
}

.user-dropdown.active .arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(42, 42, 62, 0.98));
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.user-dropdown-menu a:last-child {
    border-bottom: none;
}

.user-dropdown-menu a:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-purple);
    padding-left: 1.25rem;
}

.user-dropdown-menu a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.user-info {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.username {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Cards */
.card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(42, 42, 62, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 92, 246, 0.02) 2px, rgba(139, 92, 246, 0.02) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 92, 246, 0.02) 2px, rgba(139, 92, 246, 0.02) 4px);
    pointer-events: none;
    z-index: 1;
}

.card > * {
    position: relative;
    z-index: 2;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

/* Card Content Styling */
.card a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.card a:hover {
    color: var(--light-purple);
    border-bottom-color: var(--light-purple);
}

.card p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.card ul, .card ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.card li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.card strong {
    color: var(--text-primary);
    font-weight: 600;
}

.card h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.card .text-center {
    text-align: center;
}

.card .text-secondary {
    color: var(--text-secondary);
}

/* Card Header Flex Layout */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.card-header-flex > div:first-child {
    flex: 1;
}

/* Guild Search Styling */
.guild-search-container {
    min-width: 300px;
}

.guild-search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guild-search-form .search-input-wrapper {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

/* Reset generic search-input-wrapper icon positioning for guild search */
.guild-search-form .search-input-wrapper i {
    position: static;
    transform: none;
    left: auto;
    top: auto;
}

.guild-search-form .search-input-wrapper:focus-within {
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.guild-search-form .search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
}

.guild-search-form .search-input-wrapper input::placeholder {
    color: var(--text-secondary);
}

.guild-search-form .search-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    color: var(--primary-purple);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    min-width: 40px;
}

.guild-search-form .search-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--light-purple);
    transform: scale(1.1);
}

.guild-search-form .search-btn i {
    font-size: 1rem;
}

.guild-search-form .clear-search {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.guild-search-form .clear-search:hover {
    color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
}

.search-results-notice {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results-notice i {
    color: var(--primary-purple);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .guild-search-container {
        min-width: 100%;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(10, 10, 21, 0.9), rgba(26, 26, 46, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.95), rgba(30, 30, 50, 0.95));
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(10, 10, 21, 0.9), rgba(26, 26, 46, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), inset 0 1px 3px rgba(139, 92, 246, 0.1);
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.95), rgba(30, 30, 50, 0.95));
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.02) 20px
    );
    pointer-events: none;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-color: var(--error);
    color: var(--error);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: var(--warning);
    color: var(--warning);
}

/* News Article */
.news-article {
    margin-bottom: 2rem;
    position: relative;
}

.news-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.news-article:hover .news-image {
    border-color: var(--primary-purple);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transform: scale(1.01);
}

.news-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-purple);
}

.news-content {
    line-height: 1.8;
    color: var(--text-secondary);
    position: relative;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

/* Table */
.table-container {
    overflow-x: auto;
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
}

.table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table th {
    background: linear-gradient(135deg, rgba(10, 10, 21, 0.95), rgba(26, 26, 46, 0.95));
    padding: 1rem;
    text-align: left;
    color: var(--primary-purple);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-purple);
    position: relative;
}

table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--light-purple), transparent);
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

table tr {
    position: relative;
    transition: all 0.3s ease;
}

table tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-purple), var(--light-purple));
    transition: height 0.3s ease;
}

table tr:hover::before {
    height: 100%;
}

table tr:hover {
    background: rgba(139, 92, 246, 0.05);
    transform: translateX(5px);
}

.rank {
    font-weight: bold;
    color: var(--primary-purple);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 400px;
    margin: 2rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple), #c084fc);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.4));
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(45, 27, 78, 0.95));
    border-top: 2px solid var(--primary-purple);
    padding: 1.5rem 0;
    margin-top: 4rem;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--light-purple), var(--primary-purple), var(--light-purple), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-block {
    min-width: 0;
}

.footer-left {
    text-align: left;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-left p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-heading {
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-purple);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

.discord-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.discord-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #5865F2;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.discord-icon:hover {
    background: #7289da;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.discord-icon svg {
    width: 24px;
    height: 24px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Show Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    /* Hide desktop auth section on very small screens, move it into nav */
    .auth-section {
        order: 2;
    }
    
    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(42, 42, 62, 0.98));
        backdrop-filter: blur(10px);
        border-left: 1px solid var(--primary-purple);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem !important;
        text-align: left;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
        border-radius: 0;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        background: rgba(139, 92, 246, 0.15);
        border-left: 3px solid var(--primary-purple);
    }
    
    /* Mobile dropdown */
    nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(139, 92, 246, 0.05);
        margin-left: 1rem;
        display: none;
    }
    
    nav .dropdown.active .dropdown-menu {
        display: block;
    }
    
    nav .dropdown > a::after {
        content: ' ▾';
        float: right;
        transition: transform 0.3s ease;
    }
    
    nav .dropdown.active > a::after {
        transform: rotate(180deg);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Mobile Overlay */
@media (max-width: 768px) {
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Profile Pages */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: var(--text-secondary);
}

.info-row .value {
    color: var(--text-primary);
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    border-color: var(--error-color);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    border-color: #34c759;
    color: #5dd879;
}

.alert-warning {
    background: rgba(255, 159, 10, 0.1);
    border-color: #ff9f0a;
    color: #ffb340;
}

.required {
    color: var(--error-color);
    font-weight: bold;
}

/* Page Loading Bar */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple), var(--primary-purple));
    background-size: 200% 100%;
    z-index: 10000;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-purple), 0 0 20px rgba(139, 92, 246, 0.5);
    animation: shimmer 1.5s ease-in-out infinite;
}

.page-loader.active {
    width: 100%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmer {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.page-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0 0.5rem 0;
    text-align: center;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-heading i {
    color: var(--primary-purple);
}

.page-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-heading {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.link-styled {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.link-styled:hover {
    color: var(--light-purple);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Additional decorative elements */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
    margin: 2rem 0;
    position: relative;
}

.divider::after {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-dark);
    padding: 0 1rem;
    color: var(--primary-purple);
}

/* Sparkle effect for special elements */
@keyframes sparkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.sparkle {
    position: relative;
    overflow: hidden;
}

.sparkle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
    opacity: 0;
    animation: sparkle 2s ease-in-out infinite;
}

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

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(139, 92, 246, 0.1);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* Glow text effect */
.glow-text {
    text-shadow: 
        0 0 10px rgba(139, 92, 246, 0.5),
        0 0 20px rgba(139, 92, 246, 0.3),
        0 0 30px rgba(139, 92, 246, 0.2);
}

/* Animated border */
.animated-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, var(--primary-purple), var(--light-purple)) border-box;
    border-radius: 10px;
}

/* Stats numbers with count animation */
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.text-purple { color: var(--primary-purple); }
.text-secondary { color: var(--text-secondary); }

/* Admin Panel */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

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

.badge:hover::before {
    left: 100%;
}

.badge-admin {
    background: var(--primary-purple);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.badge-owner {
    background: linear-gradient(135deg, #8b5cf6, #d946ef, #8b5cf6);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4), 0 0 20px rgba(217, 70, 239, 0.3);
}

.badge-moderator {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Vote Sites */
.vote-site {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    position: relative;
}

.vote-site::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-purple), var(--light-purple));
    border-radius: 0 4px 4px 0;
}

.vote-site h3 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.vote-cooldown {
    color: var(--warning);
    font-size: 0.9rem;
}

/* Store Items */
.store-item {
    text-align: center;
    transition: all 0.3s ease;
}

.store-item:hover {
    transform: scale(1.02);
}

.store-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.store-item:hover img {
    border-color: var(--primary-purple);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.price {
    font-size: 1.5rem;
    color: var(--success);
    font-weight: bold;
    margin: 1rem 0;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 2rem 0;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(42, 42, 62, 0.9));
    color: white;
    border: 2px solid rgba(139, 92, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-purple);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-color: var(--primary-purple);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
}

.rank-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Rank Badges - Top 3 special styling */
.rank-badge.rank-1,
.rank-1 .rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.rank-badge.rank-2,
.rank-2 .rank-badge {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #000;
    box-shadow: 0 2px 10px rgba(192, 192, 192, 0.5);
}

.rank-badge.rank-3,
.rank-3 .rank-badge {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: #fff;
    box-shadow: 0 2px 10px rgba(205, 127, 50, 0.5);
}

/* ===== RANKINGS PAGE ===== */
.category-title {
    margin: 2rem 0 1.5rem 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.rankings-table {
    width: 100%;
}

.rankings-table tr {
    transition: background 0.2s;
}

.rankings-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

.player-name {
    font-weight: 600;
    color: var(--primary-purple);
}

.player-name:hover {
    text-decoration: underline;
}

.stat-highlight {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 1.1rem;
}

.rankings-empty {
    text-align: center;
    padding: 3rem;
}

.rankings-empty i {
    font-size: 4rem;
    opacity: 0.3;
    color: var(--primary-purple);
}

.rankings-info-list {
    line-height: 2;
}

/* ===== NOTIFICATIONS PAGE ===== */
.notification-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    bottom: -2px;
}

.filter-btn i {
    font-size: 0.9rem;
}

.filter-btn:hover {
    color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.05);
}

.filter-btn.active {
    color: var(--primary-purple);
    border-bottom-color: var(--primary-purple);
    font-weight: 600;
}

.notification-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s;
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(109, 40, 217, 0.05));
    border-color: var(--primary-purple);
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.notification-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
    color: var(--primary-purple);
}

.notification-icon.achievement {
    color: #f59e0b;
}

.notification-icon.message {
    color: #3b82f6;
}

.notification-icon.guild {
    color: #10b981;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.notification-message {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

.notification-actions form {
    display: inline;
}

.notification-actions button {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-actions button:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

/* ===== SEARCH PAGE ===== */
.search-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-header h1 {
    margin: 0 0 1rem 0;
    color: var(--primary-purple);
    font-size: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.8);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-purple);
    font-size: 1.1rem;
}

.search-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-results {
    margin-bottom: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.results-header h2 {
    color: var(--primary-purple);
    font-size: 1.5rem;
    margin: 0;
}

.result-count {
    background: rgba(139, 92, 246, 0.2);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
}

.result-item {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(42, 42, 62, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.result-item h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.25rem;
}

.result-item h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-item h3 a:hover {
    color: var(--primary-purple);
}

.result-meta {
    display: flex;
    gap: 1.5rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.result-meta i {
    color: var(--primary-purple);
}

.result-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-top: 0.75rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(42, 42, 62, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

.no-results i {
    font-size: 4rem;
    color: var(--primary-purple);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: white;
    margin: 1rem 0 0.5rem 0;
}

.no-results p {
    color: rgba(255, 255, 255, 0.6);
}

.tag-badge {
    background: linear-gradient(135deg, var(--primary-purple), #7c3aed);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.level-badge {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #22c55e;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== EDIT PROFILE PAGE ===== */
.edit-profile-card {
    max-width: 600px;
    margin: 2rem auto;
}

.profile-avatar-section {
    text-align: center;
    padding: 2rem 0;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 1rem auto;
    border: 4px solid var(--primary-purple);
    overflow: hidden;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn {
    cursor: pointer;
    display: inline-block;
}

.file-input-hidden {
    display: none;
}

.file-info {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.char-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.section-divider {
    height: 2px;
    border: none;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    margin: 2.5rem 0;
    position: relative;
}

.section-divider::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 0 1rem;
    color: var(--primary-purple);
    font-size: 1rem;
}

.password-help {
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }

    .search-input-wrapper {
        min-width: 100%;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .result-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

/* ===== PROFILE PAGE ===== */
.profile-header {
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
    padding: 3rem 2rem;
    border-radius: 12px 12px 0 0;
    text-align: center;
    color: white;
}

.profile-card {
    padding: 0;
}

.profile-card > div:not(.profile-header) {
    padding: 2rem;
}

.profile-body {
    padding: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--dark-gray);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.profile-username {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.profile-stats-quick {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.profile-stat-box {
    text-align: center;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.profile-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.profile-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 600;
    color: #9ca3af;
}

.profile-tab:hover {
    color: var(--primary-purple);
}

.profile-tab.active {
    color: var(--primary-purple);
    border-bottom-color: var(--primary-purple);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* ===== SETTINGS PAGE ===== */
.settings-section {
    margin-bottom: 2rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.checkbox-group:hover {
    border-color: var(--primary-purple);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 0.25rem;
}

.checkbox-content {
    flex: 1;
}

.checkbox-content label {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: block;
    margin-bottom: 0.25rem;
}

.checkbox-content description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
}

.info-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(109, 40, 217, 0.05));
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.info-box a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.info-box a:hover {
    color: var(--light-purple);
    border-bottom-color: var(--light-purple);
}

.info-box p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.info-box ul, .info-box ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.info-box h3 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.danger-zone {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border: 2px solid var(--error);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.danger-zone h2 {
    color: var(--error);
}

/* ===== ACHIEVEMENTS PAGE ===== */
.achievements-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
    border-radius: 12px;
    color: white;
    margin-bottom: 2rem;
}

.achievements-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

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

.achievement-stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.achievement-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.achievement-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    transition: all 0.3s;
}

.achievement-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.2);
    border-color: var(--primary-purple);
}

.achievement-item.unlocked {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(109, 40, 217, 0.05));
}

.achievement-item.locked {
    opacity: 0.6;
}

.achievement-item.locked .achievement-icon {
    filter: grayscale(100%);
    opacity: 0.5;
}

.achievement-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
    color: var(--primary-purple);
}

.achievement-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

/* ===== GUILD PAGE ===== */
.guild-header {
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.guild-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.guild-tag {
    font-size: 1.5rem;
    opacity: 0.9;
}

.guild-stats-bar {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

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

.guild-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.guild-stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
}

/* ===== VOTE PAGE ===== */
.vote-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(109, 40, 217, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    flex: 1;
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 768px) {
    .vote-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Authentication Pages (login, register) */
.card a:hover {
    opacity: 0.8;
}

/* Email Verification Page */
.alert i.fas {
    display: block;
}

/* Create Guild Page */
.create-guild-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-help {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.guild-preview {
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.guild-preview h3 {
    margin: 0 0 0.5rem 0;
}

.guild-preview .tag {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Button Size Variants */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Guilds Page Fixes */
.guilds-page .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.guilds-page .info-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.guilds-page .info-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guilds-page .info-list li i {
    color: var(--primary-purple);
    font-size: 0.9rem;
}

/* Global info list styling */
.info-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.info-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-list li i {
    color: var(--primary-purple);
    font-size: 0.9rem;
}

.guilds-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.guilds-page .stat-item {
    text-align: center;
}

.guilds-page .stat-label {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.guilds-page .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.guilds-page .rank-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.guilds-page .rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.guilds-page .rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #000;
}

.guilds-page .rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: #fff;
}

.guilds-page .rank-badge:not(.rank-1):not(.rank-2):not(.rank-3) {
    background: var(--dark-gray);
    color: #fff;
}

.guilds-page .guild-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guilds-page .guild-tag {
    font-size: 0.85rem;
    color: var(--primary-purple);
    font-weight: 600;
}

.guilds-page .table td {
    vertical-align: middle;
}

.guilds-page .table tr[style*="cursor"] {
    transition: all 0.2s;
}

.guilds-page .table tr[style*="cursor"]:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* Notifications Page Fixes */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.notifications-header h1 {
    margin: 0;
}

.notifications-header form {
    margin: 0;
}

.settings-section .btn {
    margin-right: 0.75rem;
}

.settings-section .btn:last-child {
    margin-right: 0;
}

@media (max-width: 768px) {
    .guilds-page .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .guilds-page .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .guilds-page .guild-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .notifications-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-secondary {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--primary-purple);
}

.text-error {
    color: var(--error);
}

.text-success {
    color: #10b981;
}

/* Margin utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Grid utilities */
/* Grid utilities */
@media (max-width: 768px) {
@media (max-width: 768px) {
/* Settings page specific */
/* Settings page specific */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h2 {
    margin-bottom: 0.75rem;
}

.settings-section .text-secondary {
    margin-bottom: 1.5rem;
}

/* Settings page security cards */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.security-card h3 {
    margin-bottom: 0.5rem;
}

.security-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Settings divider */
.settings-divider {
    height: 2px;
    border: none;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), var(--primary-purple), rgba(139, 92, 246, 0.4), transparent);
    margin: 3rem 0;
    position: relative;
}

.settings-divider::after {
    content: '⚙';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 0 1rem;
    color: var(--primary-purple);
    font-size: 1.2rem;
}

/* Danger zone item */
.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    gap: 2rem;
}

.danger-item h3 {
    margin-bottom: 0.5rem;
    color: var(--error);
}

.danger-item p {
    font-size: 0.9rem;
    margin: 0;
}

.btn-danger {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Form button group */
.btn-group {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.info-box.mt-4 {
    margin-top: 2rem;
}

.info-box .btn {
    margin-top: 1rem;
}

/* ==================== FAQ Page ==================== */
.faq-page .faq-section {
    margin-bottom: 2rem;
}

.faq-page .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-page .faq-item {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-page .faq-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple);
    transform: translateX(5px);
}

.faq-page .faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-page .faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-page .faq-answer a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-page .faq-answer a:hover {
    color: var(--light-purple);
    border-bottom-color: var(--light-purple);
}

.faq-page .faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-page .faq-answer ol, .faq-page .faq-answer ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.faq-page .faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-page .faq-footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    text-align: center;
}

.faq-page .faq-footer a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-page .faq-footer a:hover {
    color: var(--light-purple);
    border-bottom-color: var(--light-purple);
}

/* ==================== Rules Page ==================== */
.rules-page .rules-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.rules-page .rules-notice i {
    color: #f59e0b;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rules-page .rules-notice a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.rules-page .rules-notice a:hover {
    color: var(--light-purple);
    border-bottom-color: var(--light-purple);
}

.rules-page .rules-section {
    margin-bottom: 2rem;
}

.rules-page .rule-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rules-page .rule-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple);
}

.rules-page .rule-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.rules-page .rule-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.rules-page .rule-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.rules-page .punishment-table {
    margin-top: 1rem;
}

.rules-page .rules-footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    text-align: center;
}

.rules-page .rules-footer p {
    margin: 0.5rem 0;
}

.rules-page .rules-footer a,
.rules-page .info-box a,
.rules-page a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.rules-page .rules-footer a:hover,
.rules-page .info-box a:hover,
.rules-page a:hover {
    color: var(--light-purple);
    border-bottom-color: var(--light-purple);
}

/* ==================== Guides Page ==================== */
.guides-page .guides-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.guides-page .guide-category {
    margin-bottom: 1rem;
}

.guides-page .category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guides-page .guides-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.guides-page .guide-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.guides-page .guide-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.guides-page .guide-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.guides-page .guide-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.guides-page .guide-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.guides-page .guide-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.guides-page .difficulty {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.guides-page .difficulty.beginner {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.guides-page .difficulty.intermediate {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.guides-page .difficulty.advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.guides-page .read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.guides-page .guides-footer {
    margin-top: 2rem;
}

.guides-page .guides-footer a,
.guides-page .info-box a,
.guides-page a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.guides-page .guides-footer a:hover,
.guides-page .info-box a:hover,
.guides-page a:hover {
    color: var(--light-purple);
    border-bottom-color: var(--light-purple);
}

/* ==================== Events Page ==================== */
.events-page .events-notice {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.events-page .events-notice i {
    color: var(--primary-purple);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.events-page .events-notice a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.events-page .events-notice a:hover {
    color: var(--light-purple);
    border-bottom-color: var(--light-purple);
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1.5rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
}

.calendar-month-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin: 0;
}

.calendar-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
}

/* Calendar Grid */
.calendar-wrapper {
    margin-bottom: 2rem;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-indicator {
    width: 20px;
    height: 4px;
    border-radius: 2px;
}

.today-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-purple);
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.15);
}

.calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    visibility: visible;
}

.calendar-day-header {
    background: linear-gradient(135deg, rgba(10, 10, 21, 0.95), rgba(26, 26, 46, 0.95));
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    color: var(--primary-purple);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.calendar-day {
    background: rgba(26, 26, 46, 0.6);
    min-height: 120px;
    padding: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.calendar-day.empty {
    background: rgba(10, 10, 21, 0.3);
    cursor: default;
}

.calendar-day:not(.empty):hover {
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.02);
    z-index: 10;
}

.calendar-day.today {
    background: rgba(139, 92, 246, 0.15);
    border: 2px solid var(--primary-purple);
}

.calendar-day.today .day-number {
    color: var(--primary-purple);
    font-weight: 700;
}

.calendar-day.has-event {
    background: rgba(139, 92, 246, 0.05);
}

.calendar-day.has-event:hover {
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.day-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.event-indicator {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Event Tooltip */
.event-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: 90vw;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(42, 42, 62, 0.98));
    border: 2px solid var(--primary-purple);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    pointer-events: none;
}

.event-tooltip::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--primary-purple);
}

.calendar-day.has-event:hover .event-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-header {
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    color: white;
}

.tooltip-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.tooltip-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.tooltip-body {
    padding: 1rem;
    color: var(--text-secondary);
}

.tooltip-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tooltip-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.tooltip-prizes,
.tooltip-info,
.tooltip-bonus {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 6px;
}

.tooltip-prizes i,
.tooltip-info i,
.tooltip-bonus i {
    color: var(--primary-purple);
    margin-top: 0.2rem;
}

.tooltip-bonus {
    background: rgba(245, 158, 11, 0.1);
}

.tooltip-bonus i {
    color: #f59e0b;
}

/* Recurring Events */
.events-page .events-section {
    margin-bottom: 2rem;
}

.events-page .recurring-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.events-page .recurring-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.events-page .recurring-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple);
    transform: translateY(-5px);
}

.events-page .recurring-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

.events-page .recurring-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.events-page .recurring-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.events-page .recurring-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-purple);
    font-weight: 600;
}

.events-page .events-footer {
    margin-top: 2rem;
}

.events-page .events-footer a,
.events-page .info-box a,
.events-page a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.events-page .events-footer a:hover,
.events-page .info-box a:hover,
.events-page a:hover {
    color: var(--light-purple);
    border-bottom-color: var(--light-purple);
}

/* ==================== Responsive Styles for New Pages ==================== */
@media (max-width: 768px) {
    .guides-page .guides-list {
        grid-template-columns: 1fr;
    }
    
    .events-page .recurring-events-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendar-legend {
        gap: 1rem;
    }
    
    .calendar-month-title {
        font-size: 1.5rem;
    }
    
    .calendar-nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.5rem;
    }
    
    .calendar-day-header {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    .event-tooltip {
        position: fixed;
        left: 5%;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        max-width: none;
    }
    
    .event-tooltip::before {
        display: none;
    }
    
    .rules-page .rule-item {
        flex-direction: column;
    }
    
    .rules-page .rule-number {
        align-self: flex-start;
    }
}
