* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 92px 0 0 0;

}

body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(7, 8, 12, 0.78);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1000;
    height: 92px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 40px;
    gap: 16px;
    box-sizing: border-box;
}

.logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo-img {
    width: auto;
    height: 150px;
    max-width: none;
    max-height: none;
    transform: translateY(8px);
    transition: height 0.3s ease, transform 0.3s ease;
    border-radius: 0;
    box-shadow: none;
}

.page-title {
    flex: 2;
    text-align: center;
    min-width: 0;
}

.page-title h1 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin: 0;
    line-height: 1;
}

.header-menu {
    flex: 0 0 auto;
    min-width: 170px;
}

.header-menu-toggle {
    display: none;
}

.header-menu .auth-links {
    display: flex;
}

.auth-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-links .auth-action {
    text-decoration: none;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    padding: 11px 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: transform 0.2s ease, background-color 0.2s ease,
        border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-links .auth-action:hover {
    transform: translateY(-2px);
}

.auth-links .auth-action:focus-visible,
.auth-links > a:not(.auth-action):focus-visible,
.auth-links button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.auth-action-login {
    background: rgba(14, 14, 14, 0.5);
    border-color: rgba(255, 255, 255, 0.38) !important;
}

.auth-action-login:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.75) !important;
}

.auth-action-dashboard {
    background: linear-gradient(115deg, #bd2aa5, #197eae);
    box-shadow: 0 8px 22px rgba(29, 143, 179, 0.25);
}

.auth-action-dashboard:hover {
    box-shadow: 0 12px 28px rgba(34, 193, 211, 0.36);
}

.auth-action-join {
    background: rgba(244, 67, 54, 0.16);
    border-color: rgba(244, 67, 54, 0.75) !important;
}

.auth-action-join:hover {
    background: rgba(244, 67, 54, 0.3);
    box-shadow: 0 8px 22px rgba(244, 67, 54, 0.18);
}

.auth-action-band {
    background: linear-gradient(135deg, #ff5a4d, #d92e28);
    box-shadow: 0 8px 22px rgba(244, 67, 54, 0.32);
}

.auth-action-band:hover {
    background: linear-gradient(135deg, #ff7468, #e53935);
    box-shadow: 0 12px 28px rgba(244, 67, 54, 0.45);
}

.auth-links > a:not(.auth-action) {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    padding: 8px 4px;
    transition: color 0.2s ease;
}

.auth-links > a:not(.auth-action):hover {
    color: #fff;
}

.auth-links .logout-form {
    display: inline-flex;
}

.auth-links button {
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 650;
    padding: 8px 4px;
    border: 0;
}

.auth-links button:hover { color: #fff; background: transparent; }

.account-menu {
    position: relative;
}

.account-menu summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 650;
    list-style: none;
    white-space: nowrap;
}

.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary span { transition: transform 0.2s ease; }
.account-menu[open] summary span { transform: rotate(180deg); }
.account-menu summary:hover { color: #fff; }
.account-menu summary:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.9); outline-offset: 3px; }

.account-menu__panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: grid;
    min-width: 190px;
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(8, 9, 13, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.account-menu__panel a,
.account-menu__panel button {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.84rem;
    text-align: left;
}

.account-menu__panel a:hover,
.account-menu__panel button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.account-menu__panel .logout-form { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 4px; padding-top: 4px; }

.site-messages {
    width: min(92%, 980px);
    margin: 0 auto 20px;
}

.site-messages .message {
    padding: 12px 16px;
    border: 1px solid rgba(244, 67, 54, 0.45);
    border-radius: 8px;
    background: #211;
}

.site-messages .success { border-color: #22c55e; background: #102418; }

.legal-page {
    max-width: 850px;
    line-height: 1.75;
}

body > header nav ul {
    list-style: none;
    padding: 0;
}

body > header nav ul li {
    display: inline-block;
    margin: 0 20px;
}

body > header nav ul li a {
    text-decoration: none;
    color: #f44336;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

body > header nav ul li a:hover {
    color: #fff;
}

body > header.shrunken {
    padding: 0;
    background-color: #111;
    background: linear-gradient(to right, #000, rgba(0, 0, 0, 0.9));
    height: 74px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(244, 67, 54, 0.25);
}

body > header.shrunken .logo-img {
    height: 100px;
    transform: translateY(5px);
}

body > header.shrunken .page-title h1 {
    font-size: 1.5rem;
}

main {
    flex: 1;
    display: block;
    margin: 0;
    padding: 30px 0 40px;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #f44336;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

button {
    background-color: #f44336;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d32f2f;
}

/* Ultra Modern Footer Styles */
.modern-footer {
    position: relative;
    background: #000;
    color: #fff;
    width: 100%;
    overflow: hidden;
    margin-top: auto;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #000;
}

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

.footer-content {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 60px 40px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
    position: relative;
    box-sizing: border-box;
}

.footer-section {
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
}

.footer-logo-img {
    display: block;
    width: 210px;
    height: 96px;
    object-fit: contain;
    object-position: left center;
    border-radius: 0;
    box-shadow: none;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.footer-location {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
    color: #f44336;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer-links a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #f44336;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(244, 67, 54, 0.15);
    padding: 25px 40px;
    background: #000;
}

.footer-credits {
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.footer-copyright {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    flex: 1;
    text-align: left;
}

.footer-dev-credit {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.footer-dev-credit span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.dev-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dev-logo-viewport {
    display: block;
    width: 172px;
    height: 52px;
    overflow: hidden;
}

.dev-logo {
    display: block;
    width: 172px;
    max-width: none;
    max-height: none;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    filter: brightness(0.95);
    transform: translateY(-36px);
    transition: all 0.3s ease;
}

.dev-logo-link:hover .dev-logo {
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(244, 67, 54, 0.4));
    transform: translateY(-36px) scale(1.04);
}

@media (max-width: 768px) {
    .footer-credits {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-dev-credit {
        justify-content: center;
    }
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 50px 20px 35px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-logo-link {
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .header-nav {
        padding: 0 24px;
    }
    
    .footer-bottom {
        padding: 25px 24px;
    }
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 50px 24px 35px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-logo-link {
        margin: 0 auto;
    }
}

@media (max-width: 820px) {
    body {
        padding-top: 74px;
    }

    body > header,
    body > header.shrunken {
        height: 74px;
        min-height: 74px;
    }

    .header-nav {
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 8px 16px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo-img,
    body > header.shrunken .logo-img {
        height: 90px;
        max-width: none;
        max-height: none;
        transform: translateY(4px);
    }

    .page-title {
        display: none;
    }

    .header-menu {
        position: relative;
        flex: 0 0 auto;
        min-width: 0;
    }

    .header-menu-toggle {
        display: inline-flex;
        min-width: 48px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        cursor: pointer;
        font-size: 0.78rem;
        font-weight: 750;
        list-style: none;
    }

    .header-menu-toggle:hover {
        border-color: rgba(21, 207, 224, 0.7);
        background: rgba(21, 207, 224, 0.12);
    }

    .header-menu-toggle:focus-visible {
        outline: 3px solid #f2d753;
        outline-offset: 3px;
    }

    .header-menu:not(.is-open) > .auth-links {
        display: none;
    }

    .header-menu.is-open > .auth-links {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        display: flex;
        width: min(82vw, 310px);
        max-height: calc(100vh - 100px);
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 3px;
        overflow-y: auto;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
        background: rgba(8, 9, 13, 0.98);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
    }

    .header-menu.is-open .auth-links > a,
    .header-menu.is-open .auth-links button {
        display: flex;
        width: 100%;
        min-height: 42px;
        align-items: center;
        padding: 10px 12px;
        text-align: left;
    }

    .header-menu.is-open .account-menu {
        width: 100%;
    }

    .header-menu.is-open .account-menu summary {
        min-height: 42px;
        padding: 10px 12px;
    }

    .header-menu.is-open .account-menu__panel {
        position: static;
        min-width: 0;
        margin-top: 3px;
        padding: 4px;
        border: 0;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
    }

    .header-menu.is-open .logout-form {
        width: 100%;
    }

    .auth-links .auth-action {
        font-size: 0.76rem;
        padding: 9px 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 16px 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo-img {
        width: 190px;
        height: 86px;
    }
    
    .footer-links ul {
        align-items: center;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 20px 16px;
    }
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

a {
    color: #f44336;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

.trial-banner {
    margin: 0;
    padding: 10px 18px;
    background: #fff4d6;
    color: #3f2d00;
    border-bottom: 1px solid #d8a43a;
    text-align: center;
    font-size: 0.92rem;
}

.trial-banner a {
    color: #7a4300;
    font-weight: 700;
    text-decoration: underline;
}

.sonar-essential-message {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 4px solid #f44336;
    background: rgba(244, 67, 54, 0.08);
    line-height: 1.55;
}


.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}
