

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

nav {
    user-select: none;
    -webkit-user-select: none;
}

.homepage, .homepage * {
    user-select: none;
    -webkit-user-select: none;
}

:root {
    --bg-color: #0c0c0c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-red: #dc143c;
    --accent-red-hover: #ff1a4a;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-red: linear-gradient(135deg, #dc143c 0%, #7a0019 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0c0c0c;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 5px;
    border: 2px solid #0c0c0c;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Ref Banner Styles */
.ref-banner {
    width: 100%;
    background: #2ecc71;
    /* Zielony kolor */
    color: #000;
    padding: 6px 20px;
    /* Dodano padding boczny */
    font-size: 0.85rem;
    font-weight: 700;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    display: none;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.2);
    text-align: center;
}

.ref-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.ref-banner-content::before,
.ref-banner-content::after {
    content: "";
    flex: 1;
    height: 1px;
    border-bottom: 4px dotted #000;
    opacity: 0.6;
}

nav {
    transition: top 0.3s;
}

body.has-ref-banner nav {
    top: 33px;
}

body.has-ref-banner {
    padding-top: 33px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Elements */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-bottom {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -300px;
    left: -300px;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff 40%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 3rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    background: var(--gradient-red);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.5);
    background: var(--accent-red-hover);
}

/* Bots Grid */
.section {
    padding: 100px 10%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::after {
    content: '';
    height: 3px;
    width: 60px;
    background: var(--accent-red);
    display: block;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.bot-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.bot-card:hover {
    transform: translateY(-10px);
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bot-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(220, 20, 60, 0.1);
    color: var(--accent-red);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bot-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.bot-card p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.bot-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.bot-link:hover {
    color: var(--accent-red);
}

/* Coming Soon */
.bot-card.soon {
    opacity: 0.7;
    border-style: dashed;
}

.bot-card.soon h3 {
    color: var(--text-dim);
}

/* Auth Section */
#auth-section {
    display: flex;
    align-items: center;
}

#user-info {
    background: var(--glass-bg);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

/* Admin Buttons */
.admin-btn {
    padding: 6px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
}

.admin-btn.delete {
    background: rgba(220, 20, 60, 0.1);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.admin-btn.delete:hover {
    background: var(--accent-red);
    color: white;
}

.admin-btn.edit {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.admin-btn.edit:hover {
    background: var(--text-main);
    color: black;
}

/* Spacer between content and footer */
.main-spacer {
    height: 100px;
    width: 100%;
}

/* Footer Improvements */
footer {
    padding: 100px 10% 60px;
    background: linear-gradient(to bottom, transparent, rgba(220, 20, 60, 0.03));
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
    text-align: left;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
    display: block;
}

.footer-brand p {
    color: var(--text-dim);
    max-width: 400px;
    font-size: 0.95rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-dev span {
    color: var(--text-main);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p,
.hero .cta-button {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero p {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero .cta-button {
    animation-delay: 0.4s;
    opacity: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .bots-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Global Navbar Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-profile span {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
}

.logout-mini {
    background: transparent;
    border: none;
    color: var(--text-dim) !important;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    margin-left: 5px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.logout-mini:hover {
    color: #ff4a4a !important;
}

/* Dashboard / Panel */
.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.guild-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s ease-in-out, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guild-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.guild-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guild-icon img {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
}

.guild-name {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guild-action-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.btn-configure {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid #ff4a4a !important;
}

.btn-configure:hover {
    background: rgba(255, 74, 74, 0.1);
    box-shadow: 0 0 15px rgba(255, 74, 74, 0.2);
    border-color: #ff7676 !important;
}

.btn-add {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-add:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

#loading {
    text-align: center;
    padding: 80px;
    color: var(--text-dim);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.no-guilds {
    text-align: center;
    padding: 60px;
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 25px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

/* Custom Dropdown Sort */
.custom-select {
    position: relative;
    user-select: none;
    cursor: pointer;
    min-width: 200px;
}

.select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.select-trigger:hover {
    color: var(--accent-red);
}

.select-trigger svg {
    transition: transform 0.3s ease;
    color: var(--text-dim);
}

.custom-select.active .select-trigger svg {
    transform: rotate(180deg);
    color: var(--accent-red);
}

.select-options {
    position: absolute;
    top: calc(100% + 20px);
    right: -10px;
    background: #111111;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    z-index: 1000;
    width: 280px;
    backdrop-filter: blur(25px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    display: none;
    padding: 8px;
    transform-origin: top right;
}

.select-options.show {
    display: block;
    animation: selectPop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.select-option {
    padding: 12px 16px;
    color: var(--text-dim);
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 2px;
}

.select-option:last-child {
    margin-bottom: 0;
}

.select-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(5px);
}

.select-option.selected {
    color: #fff;
    background: var(--gradient-red);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

@keyframes selectPop {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }

}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 3px;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
}

.lang-btn {
    padding: 6px 14px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    color: #fff;
    background: var(--accent-red);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

/* Bot Tabs */
.bot-tab {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.bot-tab.active {
    background: var(--gradient-red);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.3);
}

.bot-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-right: 0;
        margin-bottom: 10px;
    }
}