/* ===== COMBINED HEADER STYLES ===== */
.crosstown-subheader {
  background: #181818;
  border-top: 1px solid #222;
  width: 100%;
}
.cro-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7em 1.5em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}
.cro-logo-label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cro-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  image-rendering: auto;
}
.cro-label {
  color: #fff;
  font-size: 1.45em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.cro-logout-btn {
  margin-left: auto;
  background: #ff4444;
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 22px;
  text-decoration: none;
  font-size: 1.08em;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(255,68,68,0.08);
}
.cro-logout-btn:hover {
  background: #e03b3b;
}
/* ===== USER INFO CARD ===== */
.user-info {
  background: #181818;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  padding: 1.5em 2em;
  margin: 1.5em auto 0 auto;
  max-width: 350px;
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: 1.1em;
}
.user-info img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #e3ca00;
  box-shadow: 0 0 8px #e3ca0044;
}
.user-info strong {
  font-size: 1.15em;
  color: #e3ca00;
}
.user-info span {
  color: #bbb;
}

/* ===== LOGOUT BUTTON ===== */
.logout-btn {
  background: linear-gradient(90deg, #e3ca00 0%, #f7e46a 100%);
  color: #222;
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.5em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1em;
  box-shadow: 0 2px 8px rgba(227,202,0,0.15);
  transition: background 0.2s, color 0.2s;
}
.logout-btn:hover {
  background: linear-gradient(90deg, #f7e46a 0%, #e3ca00 100%);
  color: #000;
}

.logout-form { margin-top: 1em; display:flex; justify-content:center; }
.role-avatar { width:48px; height:48px; border-radius:50%; }
.muted-username { font-size:0.9em; color:#888; }

@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

/* ===== GLOBAL STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

/* ===== HEADER (OLD - replaced by modern header styles below) ===== */
/*
header {
  background-color: #111;
  padding: 15px 0;
  border-bottom: 1px solid #222;
  flex-shrink: 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: 40px;
}

header .logo .brand {
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: lowercase;
  color: #fff;
}

header .logo .page-title {
  font-weight: 500;
  color: #ccc;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
    align-items: center;
    gap: 28px;
}

header nav ul li a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

header nav ul li a:hover {
  color: #e3ca00;
}

.apply-btn {
  background-color: #fff;
  color: #000;
  padding: 5px 18px;
  border-radius: 5px;
  font-weight: 700;
  margin-left: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s;
}

.apply-btn:hover {
  background-color: #000;
  color: #fff !important;
}

.premium-btn,
.return-btn {
  background-color: #e3ca00;
  padding: 5px 12px;
  border-radius: 5px;
  font-weight: 700;
  color: #000 !important;
  text-decoration: none;
  display: inline-block;
}

.premium-btn:hover,
.return-btn:hover {
  background-color: #d4bb00;
  color: #000 !important;
}
*/

/* Note: Modern header & footer styles are at the bottom of this file */

/* logout button style */
.logout-nav-btn {
  background-color: #ff4444;
  padding: 5px 12px;
  border-radius: 5px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  display: inline-block;
}
.logout-nav-btn:hover {
  background-color: #e03b3b;
  color: #fff !important;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* ===== FEATURES GRID ===== */
.features-page {
  padding: 2rem 1rem;
}

.features-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.features-page p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-category {
  background: #1e1e1e;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(227,202,0,0.5);
}

.feature-category h3 {
  margin-bottom: 0.5rem;
  color: #e3ca00;
  font-size: 1.2rem;
}

.feature-category ul {
  padding-left: 20px;
}

.feature-category li {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* ===== PREMIUM PAGE ===== */
.premium-page {
  background-color: #111;
  text-align: center;
}

.premium-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #e3ca00;
}

/* Premium aura behind main content */
.premium-page main {
    position: relative;
    z-index: 0;
    padding: 2rem 1rem;
}

.premium-page main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(227,202,0,0.2) 0%, rgba(0,0,0,0.9) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Premium page features container */
.premium-page .features-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== CTA LINKS ===== */
.cta-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem;
}

/* ===== FORM EMBEDS ===== */
.form-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.form-wrapper iframe {
    width: 100%;
    min-width: 900px;
    height: 1600px;
    border: 0;
}

@media (max-width: 768px) {
    .form-wrapper iframe {
        min-width: 100%;
        height: 1800px;
    }
}

/* ===== CROSSTOWN LOGIN PAGE ===== */
body.login-page {
    background: url("../images/crosstown-bg.png") no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.login-page .container {
    background-color: rgba(0,0,0,0.7);
    padding: 3rem 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    margin: 3rem auto;
    text-align: center;
}

.discord-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #5865F2;
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.2s;
    margin-top: 1.5rem;
}

.discord-login-btn img {
    height: 24px;
}

.discord-login-btn:hover {
    background-color: #4752c4;
}

.login-page .note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

/* ===== FOOTER (OLD - replaced by modern footer styles below) ===== */
/* 
footer {
  background-color: #111;
  padding: 30px 20px;
  border-top: 1px solid #222;
  flex-shrink: 0;
  margin-top: auto;
}

footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

footer p {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  color: #aaa;
  text-transform: lowercase;
}

footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

footer .footer-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

footer .footer-links li a:hover {
  color: #e3ca00;
}
*/

/* ===== CROSSTOWN SUBHEADER ===== */
.crosstown-subheader {
  background: #1a1a1a;
  border-top: 1px solid #333;
}
.crosstown-subheader .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.crosstown-subheader img {
  height: 28px;
  width: auto;
  max-height: 32px;
  object-fit: contain;
  image-rendering: auto;
}
.crosstown-subheader .label {
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  header nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }
}

.premium-page header .logo .page-title {
    color: #e3ca00 !important;
}

/* ===== MODERN HEADER & FOOTER STYLES (from index.html) ===== */

/* Override basic header with modern sticky header */
header {
    background: rgba(17, 17, 17, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 15px 20px !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border-bottom: none !important;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px !important;
    margin: 0 auto;
    gap: 20px;
    flex-wrap: nowrap;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

header .logo img {
    transition: transform 0.3s ease;
    height: 40px;
}

header .logo:hover img {
    transform: rotate(5deg) scale(1.1);
}

header .brand {
    font-weight: bold !important;
    font-size: 1.4em !important;
    color: #fff;
    transition: color 0.3s ease;
    text-transform: lowercase;
}

header .logo:hover .brand {
    color: #6ca0ff;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(108, 160, 255, 0.1);
    border-color: #6ca0ff;
}

.language-btn .flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.language-dropdown a:hover {
    background: rgba(108, 160, 255, 0.1);
    color: #6ca0ff;
}

.language-dropdown a img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

header nav ul {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

header nav ul li {
    position: relative;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
}

header nav ul li a:hover {
    color: #6ca0ff !important;
    background: rgba(108, 160, 255, 0.1);
    box-shadow: 0 0 15px rgba(108, 160, 255, 0.3);
}

header nav ul li a i.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s;
}

header nav ul li:hover a i.dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    min-width: 220px;
    padding: 10px 0;
    margin-top: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 160, 255, 0.2);
}

header nav ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95em;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: rgba(108, 160, 255, 0.15);
    color: #fff;
    padding-left: 25px;
}

.dropdown-menu a i {
    margin-right: 10px;
    color: #6ca0ff;
    width: 20px;
}

/* Updated button styles */
.premium-btn {
    background: linear-gradient(135deg, #e3ca00, #f4dc3a) !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(227, 202, 0, 0.3);
    transition: all 0.3s ease;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 202, 0, 0.5);
    background: linear-gradient(135deg, #e3ca00, #f4dc3a) !important;
}

.dashboard-btn {
    background: linear-gradient(135deg, #6ca0ff, #0938d1);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(108, 160, 255, 0.3);
    transition: all 0.3s ease;
}

.dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 160, 255, 0.5);
    background: linear-gradient(135deg, #6ca0ff, #0938d1) !important;
}

.apply-btn-header,
.apply-btn {
    background: #fff !important;
    color: #000 !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.apply-btn-header:hover,
.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    background: #fff !important;
    color: #000 !important;
}

/* Modern Footer Styles */
footer {
    padding: 80px 20px 30px !important;
    background: #0a0a0a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

footer .container {
    max-width: 1400px;
    margin: 0 auto;
}

footer .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

footer .footer-section {
    display: flex;
    flex-direction: column;
}

footer .footer-section h4 {
    color: #fff;
    font-size: 1em;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer .footer-text {
    color: #666;
    line-height: 1.8;
    margin-top: 15px;
    font-size: 0.95em;
    max-width: 300px;
}

footer .logo-text {
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
}

footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

footer .footer-links li {
    margin: 0;
}

footer .footer-links li a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 400;
    font-size: 0.95em;
    display: inline-block;
}

footer .footer-links li a:hover {
    color: #6ca0ff !important;
    transform: translateX(5px);
}

footer .social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

footer .social-links a {
    color: #888;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: transparent;
}

footer .social-links a:hover {
    color: #6ca0ff;
    background: rgba(108, 160, 255, 0.1);
}

footer .footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

footer .footer-bottom p {
    margin: 0;
    color: #555;
    font-size: 0.85em;
}

/* Responsive styles for modern header/footer */
@media (max-width: 768px) {
    header nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(10px);
        transition: left 0.3s;
        overflow-y: auto;
    }
    
    header nav.active {
        left: 0;
    }
    
    header nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    header nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    header nav ul li a {
        width: 100%;
        padding: 15px 10px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(10, 10, 10, 0.5);
    }
    
    header nav ul li:hover .dropdown-menu,
    header nav ul li.active .dropdown-menu {
        max-height: 500px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Footer responsive */
    footer {
        padding: 60px 20px 30px !important;
    }
    
    footer .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    
    footer .footer-section {
        text-align: left;
    }
    
    footer .footer-text {
        max-width: 100%;
    }
    
    footer .social-links {
        justify-content: flex-start;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}