/* =================================================================
   GRAND COUNTRY ROLEPLAY - WEBSITE V2
   Premium Gaming Portal Design System
   
   Design Philosophy:
   - Glassmorphism with depth
   - Red & Blue accent gradients
   - Smooth micro-interactions
   - Professional gaming aesthetic
================================================================= */

/* ============ IMPORTS & FONTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@500;700;900&display=swap');

/* ============ CSS CUSTOM PROPERTIES ============ */
:root {
  /* Brand Colors */
  --color-primary: #e81111;
  --color-primary-light: #ff4444;
  --color-primary-dark: #b30000;
  --color-secondary: #3498db;
  --color-secondary-light: #5dade2;
  --color-accent-gold: #ffc107;
  --color-accent-green: #4ade80;
  
  /* Dark Theme Palette - LIGHTER VERSION */
  --bg-dark-primary: #0f1115;
  --bg-dark-secondary: #181b22;
  --bg-dark-tertiary: #1f232b;
  --bg-dark-card: #252a35;
  --bg-dark-elevated: #2d333f;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b8bcc8;
  --text-tertiary: #8891a0;
  --text-muted: #5a6270;
  
  /* Glass Effects */
  --glass-bg: rgba(37, 42, 53, 0.85);
  --glass-bg-light: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-light: rgba(255, 255, 255, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #e81111 0%, #ff4444 50%, #e81111 100%);
  --gradient-secondary: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-dark-secondary) 0%, var(--bg-dark-primary) 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 33, 40, 0.9), rgba(18, 20, 26, 0.95));
  --gradient-glow-red: radial-gradient(ellipse at center, rgba(232, 17, 17, 0.15) 0%, transparent 70%);
  --gradient-glow-blue: radial-gradient(ellipse at center, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
  --gradient-mesh: 
    radial-gradient(ellipse at 0% 0%, rgba(232, 17, 17, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(232, 17, 17, 0.03) 0%, transparent 50%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow-red: 0 0 40px rgba(232, 17, 17, 0.3);
  --shadow-glow-blue: 0 0 40px rgba(52, 152, 219, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  
  /* Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --border-radius-2xl: 24px;
  --border-radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Spacing */
  --navbar-height: 72px;
  --container-max: 1400px;
  --section-padding: 80px;
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: var(--navbar-height);
}

/* Background Mesh */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: -1;
}

main {
  flex-grow: 1;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary-light);
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
}

/* ============ UTILITY CLASSES ============ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 11, 13, 0.95);
  box-shadow: var(--shadow-lg);
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.navbar-logo:hover {
  transform: scale(1.02);
}

.navbar-logo img {
  height: 42px;
  width: 42px;
  border-radius: var(--border-radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.navbar-logo h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.navbar-logo h1 span {
  color: var(--color-primary);
  font-weight: 900;
}

/* Navigation Links */
.navbar-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: var(--text-primary);
}

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-button-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-full);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.cta-button-nav:hover {
  background: var(--glass-bg-light);
  border-color: var(--glass-border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-button-nav i,
.cta-button-nav svg {
  width: 16px;
  height: 16px;
}

.cta-button-nav.cta-button-login {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(232, 17, 17, 0.3);
}

.cta-button-nav.cta-button-login:hover {
  box-shadow: 0 6px 25px rgba(232, 17, 17, 0.4);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.navbar-extra {
  display: none;
}

.navbar-extra a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
}

.navbar-extra a:hover {
  background: var(--glass-bg-light);
}

.navbar-extra i,
.navbar-extra svg {
  width: 22px;
  height: 22px;
}

/* Mobile Navigation */
.navbar-nav-mobile {
  position: fixed;
  top: var(--navbar-height);
  right: -100%;
  width: 280px;
  height: calc(100vh - var(--navbar-height));
  background: var(--bg-dark-secondary);
  border-left: 1px solid var(--glass-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: right var(--transition-smooth);
  z-index: 999;
  overflow-y: auto;
}

.navbar-nav-mobile.active {
  right: 0;
}

.nav-link-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
}

.nav-link-mobile:hover {
  color: var(--text-primary);
  background: var(--bg-dark-elevated);
  border-color: var(--glass-border-light);
  transform: translateX(4px);
}

.cta-button-nav-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  margin-top: 8px;
}

.cta-button-nav-mobile:hover {
  background: var(--bg-dark-elevated);
}

.cta-button-nav-mobile.cta-button-login-mobile {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(232, 17, 17, 0.3);
}

.cta-button-nav-mobile i,
.cta-button-nav-mobile svg {
  width: 18px;
  height: 18px;
}

/* Nav Backdrop */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 998;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* User Profile (Logged In) */
.user-profile-container {
  position: relative;
}

.user-profile-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.user-profile-button:hover {
  background: var(--glass-bg-light);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-dark-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  display: none;
  animation: fadeInDropdown 0.2s ease;
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logout-dropdown-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.logout-dropdown-button:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Mobile Profile - REDESIGNED */
.user-profile-button-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(74, 222, 128, 0.05));
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--border-radius-lg);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.user-profile-button-mobile:hover {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.1));
  border-color: rgba(74, 222, 128, 0.35);
  transform: translateX(4px);
}

.user-profile-button-mobile .user-avatar-mobile {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-accent-green), #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.user-profile-button-mobile .user-info-mobile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.user-profile-button-mobile .user-name-mobile {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.user-profile-button-mobile .user-status-mobile {
  font-size: 0.75rem;
  color: var(--color-accent-green);
  font-weight: 500;
}

.logout-mobile-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.logout-mobile-button:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Desktop Dropdown Menu Items */
.user-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-dropdown-menu .dropdown-item:first-child {
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.user-dropdown-menu .dropdown-item:last-child {
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.user-dropdown-menu .dropdown-item:hover {
  background: var(--glass-bg-light);
  color: var(--text-primary);
}

.user-dropdown-menu .dropdown-item.logout-dropdown-button:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-dark-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 40px 24px 30px;
  margin-top: auto;
}

footer .socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

footer .socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
}

footer .socials a:hover {
  background: var(--bg-dark-elevated);
  border-color: var(--glass-border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

footer .socials a img {
  width: 22px;
  height: 22px;
  filter: invert(1) brightness(0.8);
  transition: filter var(--transition-fast);
}

footer .socials a:hover img {
  filter: invert(1) brightness(1);
}

footer .links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}

footer .links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

footer .links a:hover {
  color: var(--text-primary);
}

footer .credit {
  text-align: center;
}

footer .credit p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

footer .credit a {
  color: var(--color-primary);
  font-weight: 600;
}

footer .credit a:hover {
  color: var(--color-primary-light);
}

/* ============ BUTTONS ============ */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(232, 17, 17, 0.35);
  text-decoration: none;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(232, 17, 17, 0.45);
  color: var(--text-primary);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:active {
  transform: translateY(-1px);
}

.cta-button.secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.cta-button.secondary:hover {
  background: var(--bg-dark-elevated);
  border-color: var(--glass-border-light);
  box-shadow: var(--shadow-lg);
}

.discord-button {
  background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}

.discord-button:hover {
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.45);
}

/* ============ CARDS ============ */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  border-color: rgba(232, 17, 17, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(232, 17, 17, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============ FORM ELEMENTS ============ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--glass-border-light);
  background: rgba(0, 0, 0, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(232, 17, 17, 0.15);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0a6b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 48px;
}

.form-group select option {
  background: var(--bg-dark-card);
  color: var(--text-primary);
}

.form-helper-text {
  display: block;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* Checkbox */
.form-group.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-group.remember-me label {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ============ MODALS ============ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 20px;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-xl);
  padding: 32px;
  max-width: 450px;
  width: 100%;
  position: relative;
  transform: scale(0.9) translateY(-20px);
  opacity: 0;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-xl);
}

.modal-backdrop.show .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.modal h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  padding-right: 40px;
}

.modal p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Popup Modal (Error, etc.) */
.popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.popup-backdrop.show {
  display: flex;
}

.popup-modal {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-xl);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(232, 17, 17, 0.1);
  animation: popupEnter 0.3s ease;
}

@keyframes popupEnter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-modal h3 {
  color: #ef4444;
  font-size: 1.3rem;
  margin-bottom: 12px;
  padding-right: 40px;
}

.popup-modal p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.popup-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
  background: var(--glass-bg-light);
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.popup-close-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* ============ LOADING STATES ============ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 11, 13, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay.show {
  display: flex;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(232, 17, 17, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(232, 17, 17, 0.5);
  }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-dark-elevated);
  border-radius: 5px;
  border: 2px solid var(--bg-dark-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
    --section-padding: 40px;
  }
  
  .navbar {
    padding: 0 16px;
  }
  
  .navbar-logo h1 {
    font-size: 1.1rem;
  }
  
  .navbar-logo img {
    height: 38px;
    width: 38px;
  }
  
  .navbar-navigation,
  .navbar-actions {
    display: none;
  }
  
  .navbar-extra {
    display: flex;
  }
  
  footer {
    padding: 32px 16px 24px;
  }
  
  footer .links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .modal {
    padding: 24px;
    margin: 16px;
  }
}

@media (max-width: 480px) {
  .navbar-logo h1 span {
    display: none;
  }
  
  footer .socials {
    gap: 12px;
  }
  
  footer .socials a {
    width: 44px;
    height: 44px;
  }
}
