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

    body {
      font-family: 'Arial', sans-serif;
      background: linear-gradient(135deg, #1f1700 0%, #2d2000 45%, #161102 100%);
      color: #FFD700;
      overflow-x: hidden;
    }

    #flyingImageBackdrop {
      position: fixed;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      z-index: 0;
    }

    /* Background layering is scoped to the homepage content only. Shared overlays
       (navbar/account/staff/footer) must keep the exact same stacking model as
       every other page. */
    body > main,
    body > section,
    body > header {
      position: relative;
      z-index: 1;
    }

    .flying-bg-track {
      position: absolute;
      left: 0;
      top: 0;
      pointer-events: none;
      will-change: transform;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
    }

    .flying-bg-track.ltr {
      animation-name: trackLtr;
    }

    .flying-bg-track.rtl {
      animation-name: trackRtl;
    }

    .flying-bg-image {
      position: absolute;
      left: 0;
      top: 0;
      opacity: 0.11;
      filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.2));
      user-select: none;
      pointer-events: none;
      will-change: transform, opacity;
      animation-iteration-count: infinite;
      animation-name: spriteWobble;
      transform-origin: center;
    }

    @keyframes trackLtr {
      from { transform: translate3d(-24vw, 0, 0); }
      to { transform: translate3d(124vw, 0, 0); }
    }

    @keyframes trackRtl {
      from { transform: translate3d(124vw, 0, 0); }
      to { transform: translate3d(-24vw, 0, 0); }
    }

    @keyframes spriteWobble {
      0% { transform: translate3d(0, 0, 0) rotate(-2deg) scale(0.98); opacity: 0.06; }
      20% { transform: translate3d(0, -8px, 0) rotate(1deg) scale(1.02); opacity: 0.13; }
      45% { transform: translate3d(0, 7px, 0) rotate(3deg) scale(1.04); opacity: 0.11; }
      70% { transform: translate3d(0, -5px, 0) rotate(-1deg) scale(1.01); opacity: 0.12; }
      100% { transform: translate3d(0, 0, 0) rotate(-2deg) scale(0.98); opacity: 0.07; }
    }

    .navbar {
      background: rgba(0, 0, 0, 0.9);
      padding: 1rem 2rem;
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 1000;
      backdrop-filter: blur(10px);
      border-bottom: 2px solid #FFD700;
      display: flex;
      align-items: center;
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 1rem;
      position: absolute;
      right: 2rem;
    }

    .cheesecoin-display {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-right: 1rem;
      padding-left: 1rem;
      border-left: 1px solid #FFD700;
    }

    .cheesecoin-display img {
      width: 30px;
      height: 30px;
    }

    .cheesecoin-display span {
      color: #FFD700;
      font-weight: bold;
      font-size: 1.2rem;
    }

    .navbar .logo {
       height: 100px;
       width: auto;
       cursor: default;
       transition: transform 0.3s ease;
       position: relative;
       z-index: 1002;
       pointer-events: none;
     }

     .navbar .logo:hover {
       transform: none;
     }

    .login-link {
      color: #FFD700;
      text-decoration: none;
      font-weight: bold;
      padding: 0.7rem 1.5rem;
      border-radius: 25px;
      transition: all 0.3s ease;
      border: 2px solid #FFD700;
      margin-left: 1rem;
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
      box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
      font-size: 1rem;
      letter-spacing: 0.5px;
    }

    .login-link:hover {
      background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
      color: #000;
      border-color: #FFD700;
      box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
      transform: translateY(-2px);
    }

    .profile-link {
      position: relative;
      margin-left: 1rem;
      cursor: pointer;
    }

    .profile-link img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 2px solid #FFD700;
    }

     /* Elchgeweih für User ID 79 */
    .elch-ears {
      position: absolute;
      top: -35px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 40px;
      pointer-events: none;
      opacity: 1;
      z-index: 5;
    }

    .elch-ears::before,
    .elch-ears::after {
      content: '';
      position: absolute;
      bottom: 0;
      width: 3px;
      height: 35px;
      background: linear-gradient(180deg, #D4AF37 0%, #C4A574 30%, #8B7355 70%, #5D4E37 100%);
      border-radius: 2px;
      box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
      transform-origin: bottom center;
    }

    /* Left antler - attached to left side, extends up and out */
    .elch-ears::before {
      left: 15px;
      transform: rotate(-30deg);
    }

    /* Right antler - attached to right side, extends up and out */
    .elch-ears::after {
      right: 15px;
      transform: rotate(30deg);
    }

    /* Additional tines using background gradients */
    .elch-ears {
      background: 
        /* Left antler upper tine */
        linear-gradient(45deg, transparent 45%, #D4AF37 48%, #8B7355 52%, transparent 55%) 5px 5px / 14px 3px no-repeat,
        /* Left antler middle tine */
        linear-gradient(30deg, transparent 45%, #D4AF37 48%, #8B7355 52%, transparent 55%) 2px 15px / 12px 3px no-repeat,
        /* Right antler upper tine */
        linear-gradient(135deg, transparent 45%, #D4AF37 48%, #8B7355 52%, transparent 55%) 41px 5px / 14px 3px no-repeat,
        /* Right antler middle tine */
        linear-gradient(150deg, transparent 45%, #D4AF37 48%, #8B7355 52%, transparent 55%) 46px 15px / 12px 3px no-repeat;
    }

    .profile-link:hover .elch-ears::before {
      animation: antlerWiggleLeft 0.8s ease-in-out infinite;
    }

    .profile-link:hover .elch-ears::after {
      animation: antlerWiggleRight 0.8s ease-in-out infinite;
    }

    @keyframes antlerWiggleLeft {
      0%, 100% { transform: rotate(-30deg); }
      50% { transform: rotate(-35deg); }
    }

    @keyframes antlerWiggleRight {
      0%, 100% { transform: rotate(30deg); }
      50% { transform: rotate(35deg); }
    }

    .notification-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      background: #FFD700;
      color: #000;
      font-size: 0.75rem;
      font-weight: bold;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid #000;
      animation: pulse 2s infinite;
    }

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


    .profile-dropdown {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
      border: 2px solid #FFD700;
      border-radius: 15px;
      padding: 1rem;
      min-width: 220px;
      display: none;
      z-index: 2000;
      box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
      backdrop-filter: blur(10px);
      animation: dropdownFadeIn 0.3s ease-out;
    }

    @keyframes dropdownFadeIn {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }

    .profile-dropdown.show {
      display: block;
    }

    .profile-dropdown .profile-pic {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: 2px solid #FFD700;
      margin: 0 auto 1rem;
      display: block;
    }

    .profile-dropdown .username {
      color: #FFD700;
      font-weight: bold;
      margin-bottom: 1rem;
      text-align: center;
    }

    .profile-dropdown .expand-btn {
      background: none;
      border: none;
      color: #FFD700;
      cursor: pointer;
      font-size: 1.2rem;
      margin-bottom: 1rem;
      display: block;
      width: 100%;
      text-align: center;
    }

    .profile-dropdown .expand-btn:hover {
      color: #fff;
    }

    .profile-dropdown .additional-info {
      max-height: 0;
      overflow: hidden;
      border-top: 1px solid #FFD700;
      padding-top: 0;
      text-align: center;
      transition: max-height 0.3s ease, padding-top 0.3s ease;
    }

    .profile-dropdown .additional-info.show {
      max-height: 300px;
      padding-top: 1rem;
    }

    .profile-dropdown .role {
      display: block;
      margin: -0.18rem auto 0.7rem auto;
      padding: 0.1rem 0.2rem;
      font-size: 0.88rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      background: transparent;
      border: 0;
      border-radius: 0;
      text-align: center;
      color: #ffe082;
      text-shadow: 0 0 8px rgba(255, 224, 130, 0.62), 0 0 14px rgba(255, 199, 71, 0.5);
      animation: roleLedPulse 2.1s ease-in-out infinite;
    }

    .profile-dropdown .role.role-led-admin {
      color: #ffd24d;
      text-shadow: 0 0 9px rgba(255, 210, 77, 0.85), 0 0 18px rgba(255, 153, 0, 0.65), 0 0 28px rgba(255, 110, 0, 0.45);
      animation-duration: 1.7s;
    }

    .profile-dropdown .role.role-led-moderator {
      color: #7fe3ff;
      text-shadow: 0 0 8px rgba(127, 227, 255, 0.8), 0 0 16px rgba(60, 185, 255, 0.58), 0 0 24px rgba(21, 143, 255, 0.42);
      animation-duration: 1.9s;
    }

    .profile-dropdown .role.role-led-user {
      color: #b9ff8f;
      text-shadow: 0 0 8px rgba(185, 255, 143, 0.75), 0 0 14px rgba(111, 236, 89, 0.55), 0 0 22px rgba(65, 194, 62, 0.4);
      animation-duration: 2.3s;
    }
    @keyframes roleLedPulse {
      0%, 100% { opacity: 0.94; filter: brightness(0.98); transform: translateY(0); }
      50% { opacity: 1; filter: brightness(1.08); transform: translateY(0); }
    }

    .profile-dropdown .dropdown-btn {
      display: block;
      width: 100%;
      background: #FFD700;
      color: #000;
      border: none;
      padding: 0.8rem;
      margin-bottom: 0.5rem;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      text-align: center;
    }

    .profile-dropdown .dropdown-btn:hover {
      background: #000;
      color: #FFD700;
    }

    .profile-dropdown .dropdown-btn:hover img {
      border: none !important;
      box-shadow: none !important;
    }

    .profile-dropdown .logout-btn {
      background: #ff6b6b;
      color: #fff;
    }

    .profile-dropdown .logout-btn:hover {
      background: #cc5555;
    }

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

    .nav-links a {
      color: #FFD700;
      text-decoration: none;
      font-weight: bold;
      padding: 0.5rem 1rem;
      border-radius: 25px;
      transition: all 0.3s ease;
      border: 2px solid transparent;
    }

    .nav-links a:hover {
      background: #FFD700;
      color: #000;
      border-color: #FFD700;
    }

    .nav-dropdowns {
      display: flex;
      gap: 1rem;
    }

    .dropdown {
      background: rgba(255, 215, 0, 0.1);
      color: #FFD700;
      border: 1px solid #FFD700;
      border-radius: 5px;
      padding: 0.5rem;
      font-size: 0.9rem;
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .dropdown:hover, .dropdown:focus {
      background: rgba(255, 215, 0, 0.3);
      transform: scale(1.05);
      box-shadow: 0 0 10px #FFD700;
    }

    .dropdown option {
      background: #000;
      color: #FFD700;
    }

    body.light-mode {
      background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
      color: #000;
    }

    .light-mode .navbar {
      background: rgba(255, 255, 255, 0.9);
      border-bottom: 2px solid #000;
    }

    .light-mode .nav-links a {
      color: #000;
    }

    .light-mode .nav-links a:hover {
      background: #000;
      color: #FFD700;
    }

    .light-mode .hero {
      background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    }

    .light-mode .features-section {
      background: rgba(255, 255, 255, 0.9);
    }

    .light-mode .feature-card {
      background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
      border: 1px solid #000;
    }

    .light-mode .feature-card h3 {
      color: #000;
    }

    .light-mode .feature-card p {
      color: #333;
    }

    .light-mode .feature-card a {
      background: #000;
      color: #FFD700;
    }

    .light-mode .feature-card a:hover {
      background: #FFD700;
      color: #000;
    }

    .light-mode .footer {
      background: rgba(255, 255, 255, 0.9);
      border-top: 2px solid #000;
    }

    .light-mode .footer-content p {
      color: #000;
    }

    .light-mode .footer-links a {
      color: #000;
    }

    .light-mode .footer-links a:hover {
      color: #333;
    }

    .light-mode .dropdown {
      background: rgba(0, 0, 0, 0.1);
      color: #000;
      border: 1px solid #000;
    }

    .light-mode .dropdown option {
      background: #fff;
      color: #000;
    }

    .hero {
      height: 60vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 0 2rem;
      background: linear-gradient(45deg, rgba(255, 215, 0, 0.32) 0%, rgba(255, 215, 0, 0.16) 45%, rgba(30, 22, 3, 0.48) 100%);
      position: relative;
      margin-top: var(--navbar-height, 110px);
    }

    body.android-note-active .hero {
      margin-top: calc(var(--navbar-height, 110px) + var(--android-note-height, 40px));
    }

    .hero h1 {
      font-size: 3rem;
      margin-bottom: 1rem;
      text-shadow: 0 0 20px #FFD700;
      animation: fadeInUp 1s ease-out;
    }

    .hero p {
      font-size: 1.3rem;
      margin-bottom: 2rem;
      max-width: 600px;
    }

    .features-section {
      padding: 5rem 2rem;
      background: linear-gradient(180deg, rgba(255, 215, 0, 0.14) 0%, rgba(31, 23, 0, 0.52) 100%);
    }

    .features-section h2 {
      text-align: center;
      font-size: 2.5rem;
      margin-bottom: 3rem;
      color: #FFD700;
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .feature-card {
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(27, 20, 2, 0.68) 100%);
      border: 1px solid #FFD700;
      border-radius: 15px;
      padding: 2rem;
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      opacity: 0;
      transform: translateY(50px);
      animation: fadeInUp 1s ease-out forwards;
    }

    .feature-card:nth-child(1) { animation-delay: 0.2s; }
    .feature-card:nth-child(2) { animation-delay: 0.4s; }
    .feature-card:nth-child(3) { animation-delay: 0.6s; }
    .feature-card:nth-child(4) { animation-delay: 0.8s; }
    .feature-card:nth-child(5) { animation-delay: 1.0s; }
    .feature-card:nth-child(6) { animation-delay: 1.2s; }
    .feature-card:nth-child(7) { animation-delay: 1.4s; }

    .feature-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
    }

    .feature-card h3 {
      color: #FFD700;
      margin-bottom: 1rem;
      font-size: 1.5rem;
    }

    .feature-card p {
      color: #ccc;
      margin-bottom: 1.5rem;
    }

    .feature-card a {
      background: #FFD700;
      color: #000;
      padding: 0.8rem 1.5rem;
      border-radius: 25px;
      text-decoration: none;
      font-weight: bold;
      transition: all 0.3s ease;
      display: inline-block;
    }

    .feature-card a:hover {
      background: #000;
      color: #FFD700;
      transform: scale(1.05);
    }

    .footer {
       background: rgba(0, 0, 0, 0.9);
       padding: 1rem 2rem;
       border-top: 2px solid #FFD700;
       text-align: left;
     }

     .footer-content {
       display: flex;
       justify-content: space-between;
       align-items: center;
       text-align: left;
     }

     .footer-content p {
       color: #FFD700;
       margin: 0;
       text-align: left;
     }

     .footer-links {
       display: flex;
       gap: 1rem;
     }

     .footer-links a {
       color: #FFD700;
       text-decoration: none;
       font-weight: bold;
       transition: color 0.3s ease;
     }

     .footer-links a:hover {
       color: #fff;
     }

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

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

      .hero p {
        font-size: 1rem;
      }

      .nav-links {
        flex-direction: column;
        gap: 1rem;
      }

      .features-grid {
        grid-template-columns: 1fr;
      }
    }
      /* Navbar layout fix for macOS/Safari */
    .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
    }

    .nav-right {
      position: static !important;
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    /* Android BK-Navigator note */
    :root {
      --android-note-height: 40px;
    }

    .android-note {
      position: fixed;
      top: var(--navbar-height, 110px);
      left: 0;
      right: 0;
      height: var(--android-note-height);
      line-height: var(--android-note-height);
      font-size: 0.9rem;
      background: linear-gradient(180deg, rgba(255, 215, 0, 0.18) 0%, rgba(36, 26, 2, 0.85) 100%);
      border-bottom: 2px solid #FFD700;
      color: #FFD700;
      display: none;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      z-index: 900;
      font-weight: bold;
      text-align: center;
      padding: 0 1rem;
    }

    .android-note a {
      color: #FFD700;
      text-decoration: underline;
    }

        /* Mobile dropdown panels (web-overview style, top-down) */
    .mobile-top-panel {
      position: fixed;
      left: 0;
      right: 0;
      top: 0;
      background: linear-gradient(180deg, rgba(255, 215, 0, 0.2) 0%, rgba(35, 26, 3, 0.9) 100%);
      border-bottom: 2px solid #FFD700;
      padding: 1.5rem 1rem;
      display: none;
      flex-direction: column;
      gap: 0.75rem;
      z-index: 1100;
      max-height: 70vh;
      overflow-y: auto;
    }

    .mobile-top-panel.show {
      display: flex;
    }

    .mobile-top-panel .nav-links {
      display: flex !important;
      flex-direction: column;
      gap: 0.6rem;
    }

    .mobile-top-panel .nav-links a {
      text-align: center;
      padding: 0.8rem 1rem;
      border-radius: 10px;
    }

    .mobile-top-panel .nav-links a:hover {
      background: #FFD700;
      color: #000;
    }

    .mobile-top-panel .nav-dropdowns {
      display: flex !important;
      flex-direction: column;
      gap: 0.6rem;
    }

    .mobile-top-panel .dropdown {
      width: 100%;
    }

    .mobile-top-panel .user-meta-panel,
    .mobile-top-panel .login-link {
      display: flex !important;
      position: static !important;
      margin: 0;
      justify-content: center;
    }

    .mobile-top-panel .user-meta-panel {
      width: 100%;
      flex-wrap: wrap;
      justify-content: center;
    }

    .mobile-top-panel .user-meta-panel .cheesecoin-display {
      border-left: none;
      padding-left: 0;
      margin-right: 0;
    }

    .mobile-top-toggle {
      background: #FFD700;
      color: #000;
      border: none;
      border-radius: 0 0 6px 6px;
      padding: 0.35rem 0.9rem;
      font-weight: bold;
      cursor: pointer;
      display: none;
      transition: all 0.3s ease;
    }

    .mobile-top-toggle:hover {
      background: #000;
      color: #FFD700;
    }

    .mobile-top-controls {
      display: none;
      align-items: center;
      gap: 0.5rem;
      margin-left: auto;
    }

    .mobile-top-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      display: none;
      z-index: 990;
    }

    .mobile-top-overlay.show {
      display: block;
    }

    .mobile-top-panel .profile-dropdown {
      position: static !important;
      display: block !important;
      background: linear-gradient(180deg, rgba(255, 215, 0, 0.14) 0%, rgba(30, 23, 3, 0.8) 100%);
      border: 1px solid #FFD700;
      border-radius: 10px;
      margin-top: 0.5rem;
      text-align: center;
      width: 100%;
      align-items: center;
    }

    .mobile-top-panel .profile-link {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }

    .mobile-top-panel .expand-btn {
      display: inline-flex;
      margin: 0 auto 0.5rem;
    }

    .mobile-top-panel .user-meta-panel,
    .mobile-top-panel .login-link {
      width: 100%;
    }

    body.android-note-active .mobile-top-panel {
      top: calc(var(--navbar-height, 110px) + var(--android-note-height));
    }

    @media (max-width: 900px) {
      .android-note {
        padding: 0.6rem 0.9rem;
      }

      body.not-android .android-note {
        display: none;
      }

      body.android-note-active .android-note {
        display: flex;
      }

      body.mobile-menu-ready .nav-links,
      body.mobile-menu-ready .nav-dropdowns,
      body.mobile-menu-ready .user-meta-panel,
      body.mobile-menu-ready .login-link,
      body.mobile-menu-ready .cheesecoin-display {
        display: none !important;
      }

      body.mobile-menu-ready .mobile-top-toggle {
        display: inline-flex;
      }

      body.mobile-menu-ready .mobile-top-controls {
        display: flex;
      }

      body {
        overflow-x: hidden;
      }

      .navbar {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        align-items: center;
      }

      .navbar .logo {
        height: 50px;
        width: auto;
      }

      .mobile-top-panel .user-meta-panel {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.75rem 0.9rem !important;
      }

      .mobile-top-panel .user-meta-panel .cheesecoin-display {
        margin-right: 0;
      }

      .mobile-top-panel .user-meta-panel > div[style*="width: 1px"] {
        display: none !important;
      }

      .nav-links {
        gap: 0.5rem;
      }

      .nav-links a {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
      }

      .login-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin-left: 0;
      }

      .hero {
        height: 50vh;
        padding: 1rem;
        margin-top: calc(var(--navbar-height, 110px));
      }

      .hero h1 {
        font-size: clamp(1.2rem, 5vw, 2rem);
        margin-bottom: 0.5rem;
      }

      .hero p {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        margin-bottom: 1rem;
      }

      .features-section {
        padding: 2rem 1rem;
      }

      .features-section h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 1.5rem;
      }

      .feature-card {
        padding: 1rem;
      }

      .feature-card h3 {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 0.5rem;
      }

      .profile-dropdown {
        min-width: 180px;
        left: auto;
        right: 0;
        transform: translateX(0);
      }

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

    }

    /* Small Devices & Large Phones (481px - 768px) */
    @media (max-width: 768px) and (min-width: 481px) {
      .navbar {
        padding: 0.7rem 1.5rem;
        gap: 1rem;
      }

      .navbar .logo {
        height: 60px;
        width: auto;
      }

      .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
      }

      .nav-links a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
      }

      .hero h1 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 0.8rem;
      }

      .hero p {
        font-size: clamp(1rem, 4vw, 1.1rem);
        max-width: 500px;
        margin-bottom: 1.5rem;
      }

      .features-section {
        padding: 3rem 1.5rem;
      }

      .features-section h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 2rem;
      }

      .features-grid {
        gap: 1.5rem;
      }

      .feature-card {
        padding: 1.5rem;
      }

      .feature-card h3 {
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
      }

      .footer {
        padding: 1rem;
      }

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

    /* Tablets (769px - 1024px) */
    @media (min-width: 769px) and (max-width: 1024px) {
      .navbar {
        padding: 0.8rem 2rem;
        gap: 1.2rem;
      }

      .navbar .logo {
        height: 70px;
        width: auto;
      }

      .nav-links {
        gap: 1.2rem;
      }

      .nav-links a {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
      }

      .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.8rem;
      }

      .feature-card {
        padding: 1.5rem;
      }

      .feature-card h3 {
        font-size: 1.3rem;
      }

      .hero h1 {
        font-size: 2.5rem;
      }

      .hero p {
        font-size: 1.1rem;
      }
    }

    /* Small Laptops (<1080p, 1025px - 1440px) */
    @media (min-width: 1025px) and (max-width: 1440px) {
      html {
        font-size: 15px;
      }

      .navbar {
        padding: 0.9rem 2.5rem;
      }

      .navbar .logo {
        height: 80px;
        width: auto;
      }

      .nav-links {
        gap: 1.5rem;
      }

      .nav-links a {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
      }

      .hero h1 {
        font-size: 2.8rem;
      }

      .hero p {
        font-size: 1.15rem;
      }

      .features-section h2 {
        font-size: 2.3rem;
      }

      .feature-card h3 {
        font-size: 1.4rem;
      }

      .features-grid {
        gap: 2rem;
        max-width: 1100px;
      }
    }

    /* Large Laptops & Desktops (1441px+) */
    @media (min-width: 1441px) {
      html {
        font-size: 16px;
      }

      .navbar {
        padding: 1rem 3rem;
      }

      .navbar .logo {
        height: 100px;
        width: auto;
      }

      .nav-links {
        gap: 2rem;
      }

      .nav-links a {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
      }

      .hero {
        height: 60vh;
      }

      .hero h1 {
        font-size: 3.2rem;
      }

      .hero p {
        font-size: 1.3rem;
      }

      .features-section h2 {
        font-size: 2.5rem;
      }

      .feature-card h3 {
        font-size: 1.5rem;
      }

      .features-grid {
        gap: 2.5rem;
        max-width: 1300px;
      }
    }

    /* Ultra-Wide Displays (2000px+) */
    @media (min-width: 2000px) {
      html {
        font-size: 18px;
      }

      .navbar {
        padding: 1.2rem 4rem;
      }

      .features-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1600px;
      }
    }

    /* Landscape Mode Adjustments */
    @media (max-height: 600px) and (orientation: landscape) {
      .navbar {
        padding: 0.5rem 2rem;
      }

      .navbar .logo {
        height: 50px;
      }

      .hero {
        height: auto;
        padding: 1rem 2rem;
        min-height: 200px;
      }

      .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
      }

      .hero p {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
      }
    }

    /* Pixel-Density Scaling (High DPI Displays) */
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
      .hero h1,
      .features-section h2 {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
      }

      .nav-links a {
        border-width: 1.5px;
      }
    }

    /* Safe Area Support (Notch Devices) */
    @supports (padding: max(0px)) {
      .navbar {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
      }

      .footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
      }
    }

    /* Flexible Grid Auto-Fit */
    .features-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      grid-auto-flow: dense;
    }

    /* Prevent Zoom on Input Focus (Mobile) */
    input, select, textarea {
      font-size: 16px !important;
    }

    /* Smooth Scaling */
    html {
      scroll-behavior: smooth;
    }

    /* Ensure Maximum Readability */
    body {
      line-height: 1.6;
    }

    /* Print Styles */
    @media print {
      .navbar,
      .footer,
      .mobile-top-toggle {
        display: none !important;
      }

      body {
        background: white;
        color: black;
      }

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

    /* ===== FOOTER ACTION BUTTONS ===== */
    .footer {
      background: rgba(0, 0, 0, 0.9) !important;
      padding: 1rem 2rem !important;
      border-top: 2px solid #FFD700 !important;
      text-align: center !important;
    }

    .footer-content {
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      text-align: left !important;
      gap: 1.5rem;
    }

    .footer-content p {
      color: #FFD700 !important;
      margin: 0 !important;
      text-align: left !important;
      flex: 0 0 auto;
    }

    .footer-action-buttons {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.8rem;
      margin: 0;
      padding: 0;
      flex: 1;
      flex-wrap: wrap;
    }

    .footer-links {
      display: flex !important;
      gap: 1.5rem !important;
      align-items: center;
      margin: 0 !important;
      flex: 0 0 auto;
      flex-wrap: nowrap;
    }

    .footer-links a {
      color: #FFD700 !important;
      text-decoration: none !important;
      font-weight: bold !important;
      font-size: 0.9rem;
      transition: color 0.3s ease !important;
      white-space: nowrap;
    }

    .footer-links a:hover {
      color: #fff !important;
    }

    .footer-action-btn {
      position: relative;
      padding: 0.65rem 1.5rem;
      font-size: 0.85rem;
      font-weight: 800;
      text-decoration: none;
      border: 2px solid #FFD700;
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
      color: #FFD700;
      border-radius: 25px;
      cursor: pointer;
      transition: all 0.3s ease;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
      white-space: nowrap;
    }

    .footer-action-btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 0;
    }

    .footer-action-btn span {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }

    .footer-action-btn .btn-icon {
      display: inline-block;
      width: 0.9em;
      height: 0.9em;
      flex-shrink: 0;
    }

    .footer-action-btn:hover {
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.15) 100%);
      color: #fff;
      border-color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
    }

    .footer-action-btn:hover::before {
      opacity: 1;
    }

    .footer-action-btn:active {
      transform: translateY(0);
    }

    /* Mobile Responsive Buttons */
    @media (max-width: 1200px) {
      .footer-content {
        gap: 1rem;
      }

      .footer-links {
        gap: 1rem;
      }

      .footer-links a {
        font-size: 0.85rem;
      }

      .footer-action-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
      }
    }

    @media (max-width: 768px) {
      .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
      }

      .footer-content p {
        text-align: center;
        width: 100%;
        font-size: 0.85rem;
      }

      .footer-links {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem;
      }

      .footer-action-buttons {
        width: 100%;
        order: 2;
        gap: 0.6rem;
      }

      .footer-action-btn {
        padding: 0.55rem 1rem;
        font-size: 0.75rem;
      }

      .footer-action-btn .btn-icon {
        width: 0.85em;
        height: 0.85em;
      }
    }

    @media (max-width: 480px) {
      .footer {
        padding: 0.8rem 1rem !important;
      }

      .footer-content {
        gap: 0.6rem;
      }

      .footer-content p {
        font-size: 0.75rem;
      }

      .footer-links a {
        font-size: 0.75rem;
      }

      .footer-action-buttons {
        gap: 0.5rem;
      }

      .footer-action-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.7rem;
      }
    }
