/* ========== VARIABLES & RESET ========== */
:root {
    --bg-dark: #0f0c05;
    --primary-yellow: #facc15;
    --primary-orange: #f97316;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(30, 25, 10, 0.4);
    --glass-border: rgba(250, 204, 21, 0.2);
    --discord-color: #5865F2;
    --discord-hover: #4752C4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, 
        rgba(250, 204, 21, 0.15) 0%, 
        rgba(249, 115, 22, 0.08) 30%, 
        transparent 70%
    );
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    mix-blend-mode: plus-lighter;
    transition: width 0.3s ease, height 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 2px, transparent 2px), linear-gradient(135deg, rgba(250, 204, 21, 0.03), rgba(249, 115, 22, 0.03));
    background-size: 30px 30px, 400% 400%;
    animation: bgMovement 20s ease-in-out infinite alternate;
}

@keyframes bgMovement {
    0% { background-position: 0px 0px, 0% 0%; }
    100% { background-position: 60px 60px, 100% 100%; }
}

/* ========== BACKGROUND ANIMATIONS ========== */
.blob-container, .background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-yellow) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-orange) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #fb923c 0%, transparent 70%);
    animation-delay: -10s;
}

.blob-4 {
    top: 80%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary-yellow) 0%, transparent 70%);
    animation-delay: -7s;
}

.blob-5 {
    top: 20%;
    right: -20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #f97316 0%, transparent 70%);
    animation-delay: -12s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.1); }
    100% { transform: translate(-5%, 10%) scale(0.9); }
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    animation: slowFloat 15s infinite alternate ease-in-out;
}

@keyframes slowFloat {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(15deg) scale(1.1); }
    100% { transform: translateY(20px) rotate(-10deg) scale(0.9); }
}

:root {
    --primary-yellow: #facc15;
    --primary-orange: #f97316;
    --dark-bg: #0a0a0a;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-outfit: 'Outfit', sans-serif;
    
    /* Liquid Tokens */
    --liquid-radius: 42px;
    --liquid-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --liquid-blur: blur(24px) saturate(160%);
}

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

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

/* ========== LIQUID GLASS PANELS ========== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--liquid-blur);
    -webkit-backdrop-filter: var(--liquid-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--liquid-radius);
    box-shadow: var(--liquid-shadow);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(250, 204, 21, 0.1);
}

.highlight {
    background: linear-gradient(90deg, var(--primary-yellow), var(--primary-orange), var(--primary-yellow));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: shineText 3s linear infinite;
}

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

.version-badge {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(249, 115, 22, 0.2));
    border: 1px solid var(--primary-orange);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-yellow);
    display: inline-block;
    vertical-align: middle;
}

.hidden {
    display: none !important;
}

/* ========== NAVBAR (CRYSTAL LIGHT DESIGN) ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(250, 204, 21, 0.05);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-yellow) 20%, 
        var(--primary-orange) 50%, 
        var(--primary-yellow) 80%, 
        transparent 100%
    );
    filter: blur(1px);
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.3));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-yellow);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 1.2rem 2.8rem;
    border-radius: 100px; /* Pill shape */
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 16px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
}

.btn-outline:hover {
    background: rgba(250, 204, 21, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 15px 45px rgba(250, 204, 21, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-yellow);
}

.btn-discord {
    background-color: var(--discord-color);
    color: white;
    width: 100%;
    margin-top: 1.5rem;
}

.btn-discord:hover {
    background-color: var(--discord-hover);
    transform: translateY(-2px);
}

/* ========== HERO SECTION ========== */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 2rem;
}

.hero-content {
    text-align: center;
    padding: 4rem 3rem;
    border-radius: 30px;
    max-width: 800px;
    width: 100%;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-logo {
    max-width: 100%;
    height: auto;
    width: 450px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.5));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hidden-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* IP Copy Button Specifics */
#copyIpBtn {
    position: relative;
    overflow: hidden;
}

.ip-text {
    transition: transform 0.3s ease;
}

.copy-icon {
    opacity: 0.7;
}

.notification {
    margin-top: 1.5rem;
    color: var(--primary-yellow);
    font-weight: 500;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
    padding: 6rem 5%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* ========== FEATURES SECTION ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(250, 204, 21, 0.08);
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== RULES SECTION ========== */
.rules-list {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.rule-item:hover {
    transform: translateX(10px);
    background: rgba(250, 204, 21, 0.1);
}

.rule-item i {
    font-size: 2rem;
    color: var(--primary-yellow);
}

.rule-item p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* ========== TEAM SECTION ========== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(250, 204, 21, 0.3);
}

.role-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.members {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.member {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.member i {
    color: var(--primary-orange);
    font-size: 0.9rem;
}

/* Role Specific Colors */
.role-owner .role-title { color: #ef4444; border-bottom-color: rgba(239, 68, 68, 0.3); }
.role-coowner .role-title { color: #f97316; border-bottom-color: rgba(249, 115, 22, 0.3); }
.role-manager .role-title { color: #eab308; border-bottom-color: rgba(234, 179, 8, 0.3); }
.role-dev .role-title { color: #3b82f6; border-bottom-color: rgba(59, 130, 246, 0.3); }
.role-admin .role-title { color: #a855f7; border-bottom-color: rgba(168, 85, 247, 0.3); }
.role-mod .role-title { color: #10b981; border-bottom-color: rgba(16, 185, 129, 0.3); }
.role-helper .role-title { color: #0ea5e9; border-bottom-color: rgba(14, 165, 233, 0.3); }
.role-builder .role-title { color: #ec4899; border-bottom-color: rgba(236, 72, 153, 0.3); }

/* ========== MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--primary-yellow);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.impressum-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.impressum-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}

.impressum-link:hover {
    color: var(--primary-yellow);
}

.impressum-link:hover::after {
    width: 100%;
}

/* ========== IMPRESSUM MODAL ========== */
.impressum-modal-content {
    max-width: 520px;
    text-align: left;
}

.impressum-modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.6rem;
}

.impressum-body h3 {
    font-size: 1rem;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.impressum-body p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.impressum-mail {
    color: var(--primary-yellow);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.impressum-mail:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ========== DONATE BUTTON (NAVBAR) ========== */

.btn-donate-nav {
    position: relative;
    background: linear-gradient(135deg, #ff6b6b, #ee0979, #ff6b6b);
    background-size: 200% auto;
    color: #fff;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 18px rgba(238, 9, 121, 0.4);
    letter-spacing: 0.02em;
    animation: donatePulse 3s ease-in-out infinite;
}

@keyframes donatePulse {
    0%, 100% { box-shadow: 0 0 18px rgba(238, 9, 121, 0.4); }
    50%       { box-shadow: 0 0 30px rgba(238, 9, 121, 0.75), 0 0 60px rgba(255, 107, 107, 0.25); }
}

.btn-donate-nav:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 28px rgba(238, 9, 121, 0.6);
}

.donate-heart-icon {
    animation: heartBeat 1.4s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14%       { transform: scale(1.25); }
    28%       { transform: scale(1); }
    42%       { transform: scale(1.15); }
    70%       { transform: scale(1); }
}

/* ========== EXTERNAL DONATION CARD ========== */

.donation-external-card {
    max-width: 750px;
    margin: 2.5rem auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.donation-external-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
}

.dono-card-icon {
    font-size: 3.5rem;
    color: var(--primary-yellow);
    background: rgba(250, 204, 21, 0.1);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    flex-shrink: 0;
}

.dono-card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.dono-card-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

.donation-external-card .btn-large {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
}

@media (max-width: 650px) {
    .donation-external-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2.5rem 1.5rem;
    }
}

/* ========== LEGAL DISCLOSURE BOX ========== */

.donate-legal-box {
    max-width: 850px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-align: left;
    overflow: hidden;
}

.legal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-yellow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.dono-link-share {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dono-link-share span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.dono-link-share code {
    background: #000;
    color: var(--primary-yellow);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
}

.copy-small-btn {
    background: var(--primary-yellow);
    color: #000;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* ========== DONATION NOTICE MODAL ========== */

.dono-notice-modal {
    max-width: 450px;
    text-align: center;
    padding: 2.5rem;
}

.notice-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.dono-notice-modal h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.dono-notice-modal p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.notice-details {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.notice-details ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.notice-details li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.notice-details li i {
    color: var(--primary-yellow);
    width: 20px;
    text-align: center;
}

.modal-legal-note {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid #ff5f56;
}

.modal-legal-note p {
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
    text-align: left;
    color: var(--text-muted);
}

.notice-small {
    margin-top: 1.2rem;
    font-size: 0.75rem !important;
    opacity: 0.6;
}

/* ========== BACK TO TOP (CENTERED) ========== */

.back-to-top-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 998;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.back-to-top-container.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.btn-back-to-top {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-back-to-top i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-back-to-top:hover {
    background: var(--primary-yellow);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(250, 204, 21, 0.3);
}

.btn-back-to-top:hover i {
    transform: translateY(-3px);
}

/* ========== FOOTER REFINEMENT ========== */

.footer {
    padding: 3rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-dot {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.legal-footer-btn {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* ========== LEGAL PAGE REDESIGN ========== */

.legal-container {
    max-width: 1000px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.legal-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.legal-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
    background: rgba(255, 255, 255, 0.05);
}

.legal-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-yellow);
}

.legal-card-header i {
    font-size: 1.5rem;
}

.legal-card h2 {
    font-size: 1.4rem;
    margin: 0;
}

.legal-card-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-card-body strong {
    color: var(--text-main);
}

.legal-card-body ul {
    padding-left: 1.2rem;
    margin: 1rem 0;
}

.legal-card-body li {
    margin-bottom: 0.5rem;
}

.legal-wide-card {
    grid-column: 1 / -1;
}


/* ========== COOKIE BANNER (UNIFIED OBJECT) ========== */

@keyframes slideUpBanner {
    from { transform: translate(-50%, 100%) scale(0.9); opacity: 0; }
    to   { transform: translate(-50%, 0) scale(1);    opacity: 1; }
}

@keyframes slideDownBanner {
    from { transform: translate(-50%, 0) scale(1);    opacity: 1; }
    to   { transform: translate(-50%, 100%) scale(0.9); opacity: 0; }
}

.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(15, 12, 5, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
    padding: 2rem;
    width: 90%;
    max-width: 1100px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideUpBanner 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-banner:hover {
    border-color: var(--primary-yellow);
    transform: translateX(-50%) translateY(-8px);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 1), 0 0 40px rgba(250, 204, 21, 0.15);
}

.cookie-banner.hiding {
    animation: slideDownBanner 0.5s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 260px;
}

.cookie-banner-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cookie-link {
    color: var(--primary-yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.cookie-link:hover { opacity: 0.75; }

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

/* Cookie-specific button variants */
.cookie-btn-settings {
    background: transparent;
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: var(--text-muted);
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 10px;
}
.cookie-btn-settings:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    background: rgba(250, 204, 21, 0.05);
}

.cookie-btn-essential {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 10px;
}
.cookie-btn-essential:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
    color: #000;
    border: none;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Settings panel */
.cookie-settings-panel {
    border-top: 1px solid rgba(250, 204, 21, 0.15);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.3s ease;
}

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

.cookie-settings-panel h3 {
    font-size: 1rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 0.6rem;
}

.cookie-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cookie-option-info strong {
    font-size: 0.95rem;
    color: var(--text-main);
}

.cookie-option-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(22px);
}

.cookie-toggle-slider.always-on {
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle-slider.always-on::before {
    transform: translateX(22px);
}

.cookie-settings-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .navbar { flex-direction: column; gap: 1rem; padding: 1rem; }
    .nav-links { gap: 1rem; }
    .action-buttons { flex-direction: column; }
    .btn-large { width: 100%; }
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .cookie-banner-actions { width: 100%; justify-content: stretch; }
    .cookie-btn-settings,
    .cookie-btn-essential,
    .cookie-btn-accept { flex: 1; justify-content: center; }
}

/* ========== COOKIE MANAGEMENT (PREMIUM REDESIGN) ========== */

.cookie-hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease;
}

.cookie-hero-icon {
    font-size: 4rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.3));
}

.cookie-objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cookie-obj-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--liquid-radius);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--liquid-blur);
}

.cookie-obj-card.interactive:hover {
    border-color: var(--primary-yellow);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 30px rgba(250, 204, 21, 0.1);
}

.cookie-obj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-obj-status {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.cookie-obj-status.active {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.cookie-obj-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.cookie-obj-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cookie-obj-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.status-text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.cookie-obj-status.active + .status-text {
    color: #4ade80;
}

/* Action Bar */
.cookie-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

.cookie-action/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    padding: 2.5rem;
    border-radius: var(--liquid-radius);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.role-title {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.members {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.member {
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Role Specific Colors */
.role-owner .role-title { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
.role-owner:hover { border-color: #ef4444; box-shadow: 0 15px 45px rgba(239, 68, 68, 0.2); }

.role-coowner .role-title { color: #991b1b; border-color: rgba(153, 27, 27, 0.3); }
.role-coowner:hover { border-color: #991b1b; box-shadow: 0 15px 45px rgba(153, 27, 27, 0.2); }

.role-manager .role-title { color: #22d3ee; border-color: rgba(34, 211, 238, 0.3); }
.role-manager:hover { border-color: #22d3ee; box-shadow: 0 15px 45px rgba(34, 211, 238, 0.2); }

.role-dev .role-title { color: #06b6d4; border-color: rgba(6, 182, 212, 0.3); }
.role-dev:hover { border-color: #06b6d4; box-shadow: 0 15px 45px rgba(6, 182, 212, 0.2); }

.role-admin .role-title { color: #facc15; border-color: rgba(250, 204, 21, 0.3); }
.role-admin:hover { border-color: #facc15; box-shadow: 0 15px 45px rgba(250, 204, 21, 0.2); }

.role-mod .role-title { color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.role-mod:hover { border-color: #4ade80; box-shadow: 0 15px 45px rgba(74, 222, 128, 0.2); }

.role-builder .role-title { color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); }
.role-builder:hover { border-color: #3b82f6; box-shadow: 0 15px 45px rgba(59, 130, 246, 0.2); }

.role-helper .role-title { color: #a855f7; border-color: rgba(168, 85, 247, 0.3); }
.role-helper:hover { border-color: #a855f7; box-shadow: 0 15px 45px rgba(168, 85, 247, 0.2); }

.role-media .role-title { color: #f472b6; border-color: rgba(244, 114, 182, 0.3); }
.role-media:hover { border-color: #f472b6; box-shadow: 0 15px 45px rgba(244, 114, 182, 0.2); }

.cookie-action-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cookie-action-info i {
    color: var(--primary-yellow);
    font-size: 1.2rem;
}

.cookie-action-btns {
    display: flex;
    gap: 1rem;
}

@media (max-width: 800px) {
    .cookie-action-bar {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cookie-action-btns {
        width: 100%;
        flex-direction: column;
    }
}

/* ========== TOAST NOTIFICATION ========== */

.cookie-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(74, 222, 128, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.cookie-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.btn-back-home {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Specific Fixes for Legal & Cookie Pages */
.legal-page {
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-page .footer {
    padding: 2rem 1rem;
    margin-top: auto; /* Pushes footer to the bottom */
    margin-bottom: 0;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-page .content-section, 
.legal-page .section-container, 
.legal-page .footer {
    overflow: hidden;
}

.role-media .role-title { color: #f472b6; border-color: rgba(244, 114, 182, 0.3); }
.role-media { border-color: rgba(244, 114, 182, 0.1); }
.role-media:hover { border-color: #f472b6; box-shadow: 0 15px 45px rgba(244, 114, 182, 0.2); }

/* ========== MOBILE RESPONSIVENESS FIXES ========== */

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    :root {
        --liquid-radius: 24px;
    }
    
    .section-container {
        padding: 1.5rem;
    }
    
    .hero-section {
        padding-top: 2rem;
    }

    .features-grid, .team-grid, .cookie-objects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .rule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .cookie-toast {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        text-align: center;
    }
}

.success-pop {
    animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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