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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(138, 180, 248, 0.3) 0%, transparent 50%);
    animation: bgMove 20s ease infinite;
    z-index: -1;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.8);
    padding: 20px 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ffd700;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.btn-invite {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    transition: all 0.3s ease;
}

.btn-invite:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

/* Hero */
.hero {
    text-align: center;
    padding: 100px 0;
    animation: fadeIn 1s ease;
}

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

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8)); }
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 50px 0;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.stat:nth-child(1) { animation-delay: 0.2s; }
.stat:nth-child(2) { animation-delay: 0.4s; }
.stat:nth-child(3) { animation-delay: 0.6s; }

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

.stat:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.stat h2 {
    font-size: 48px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.6);
}

/* Features */
.features {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
}

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

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.5);
}

.feature h3 {
    font-size: 24px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature:hover h3 {
    color: #ffd700;
    transform: scale(1.1);
}

/* Commands Page */
.commands-page {
    padding: 50px 0;
}

.commands-page h1 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 50px;
}

.category {
    margin-bottom: 50px;
}

.category h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.command-list {
    display: grid;
    gap: 20px;
}

.command {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.command h3 {
    color: #ffd700;
    margin-bottom: 10px;
}

.aliases {
    color: #aaa;
    font-size: 14px;
}

/* Leaderboard */
.leaderboard-page {
    padding: 50px 0;
}

.leaderboard-page h1 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.tab.active {
    background: #5865F2;
}

.tab-content {
    display: none;
}

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

.tab-content h2 {
    text-align: center;
    margin-bottom: 30px;
}

.leaderboard {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.rank {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    min-width: 60px;
}

.name {
    flex: 1;
    font-size: 18px;
}

.value {
    font-size: 18px;
    color: #aaa;
}

/* Dashboard */
.dashboard-page {
    padding: 50px 0;
}

.dashboard-page h1 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.big-number {
    font-size: 48px;
    color: #ffd700;
    margin-top: 10px;
}

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

.guild-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.guild-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.no-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 15px;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.8);
    padding: 30px 0;
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffd700;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Commands Page */
.commands-page {
    padding: 50px 0;
    min-height: 80vh;
}

.commands-page h1 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    text-align: center;
    font-size: 18px;
    margin-bottom: 50px;
    opacity: 0.8;
}

.subtitle code {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 10px;
    color: #ffd700;
    font-size: 20px;
}

.category {
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease;
}

.category h2 {
    font-size: 32px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

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

.command-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.command-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.command-card h3 {
    color: #ffd700;
    font-size: 22px;
    margin-bottom: 10px;
}

.command-card p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.usage {
    display: block;
    font-size: 14px;
    color: #aaa;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
}

/* Dashboard */
.dashboard-section {
    padding: 50px 0;
    min-height: 80vh;
}

.login-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
}

.login-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 30px;
}

.login-card h2 {
    margin-bottom: 15px;
}

.login-card p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.login-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.server-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
}

.server-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.server-card h3 {
    margin-bottom: 10px;
}

.server-card p {
    opacity: 0.7;
    margin-bottom: 20px;
}

.btn-small {
    padding: 10px 25px;
    font-size: 14px;
}

/* User Profile Menu */
.user-profile {
    position: relative;
}

.profile-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 14px;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 180px;
    backdrop-filter: blur(20px);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.profile-menu a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

/* Login Page */
.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 50px 0;
}

.login-section .login-card {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.login-section h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.login-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.login-info {
    margin-top: 40px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-info p {
    margin: 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Guild Settings */
.guild-settings-page {
    padding: 50px 0;
    min-height: 80vh;
}

.guild-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guild-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.guild-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    border-color: #5865F2;
}

.tab-content {
    display: none;
}

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

.settings-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-card h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0.9;
}

.setting-item input,
.setting-item select,
.setting-item textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.setting-item input:focus,
.setting-item select:focus,
.setting-item textarea:focus {
    outline: none;
    border-color: #5865F2;
    background: rgba(0, 0, 0, 0.4);
}

.setting-item small {
    display: block;
    margin-top: 5px;
    opacity: 0.6;
    font-size: 12px;
}

.leaderboard-list {
    margin-top: 15px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-item .rank {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    min-width: 40px;
}

.leaderboard-item .name {
    flex: 1;
    font-size: 16px;
}

.leaderboard-item .value {
    font-size: 14px;
    opacity: 0.8;
}
