[hidden] {display : none !important;}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    --cell: 200px;
    --c1: #c90045;
    --c2: #a4003a;

    /* background-image: 
        linear-gradient(90deg, #c90045 50%, #a4003a 0),
        linear-gradient(180deg,#c90045 50%, #a4003a 0); */

    background: conic-gradient(
        var(--c1) 0 25%,
        var(--c2) 0 50%,
        var(--c1) 0 75%,
        var(--c2) 0 100%
    );
    background-size: var(--cell) var(--cell);

    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);

    animation: bgUp 8s linear infinite;
}

@keyframes bgUp {
    from {background-position: 0 0;}
    to {background-position: 0 calc(-1 * var(--cell));}
}

.lower-info-header {
    position: relative;
    flex-grow: 1;
    padding-top: 90px;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.8);
}

.lower-info-header::before { /* does literally nothing but I need it */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 110px;
    pointer-events: none;
}

.upper-info-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 30px;
    z-index: 100;
}

.upper-info-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 130px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.8) 20%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0) 100%
    );

    z-index: -1;
}


.upper-info-header .logo {
    height: 80px;
}

.upper-info-header .logo:hover { 
    transform: scale(1.7) rotate(18000deg);
    transition: transform 20s;
    cursor: pointer;
}

.upper-info-header button,
.upper-info-header a.NewsB,
.upper-info-header a.MapsB,
.upper-info-header a.SubmitB,
.upper-info-header a.ProfileB,
.upper-info-header .FilterB {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 26px;
    background: none;
    color: white;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    padding: 10px 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.maps-icon {
    height: 43px;
    width: 43px;
    vertical-align: middle;
}

.upper-info-header button:hover,
.upper-info-header a.NewsB:hover,
.upper-info-header a.MapsB:hover,
.upper-info-header a.SubmitB:hover,
.upper-info-header a.ProfileB:hover,
.upper-info-header .FilterB:hover {
    background: none;
    border-color: transparent;
    cursor: pointer;
    opacity: 0.7;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 20px;

    flex-grow: 1;
    max-width: 800px;
    margin: 0 auto;
}

.search-bar {
    position: relative;
    flex-grow: 1;
    max-width: 800px;
    padding-right: 50px;
}

.search-bar > .searchimg {
    position: absolute;
    width: 25px;
    height: 25px;
    left: 5px;
    top: 5px;
}

.search-bar input {
    padding-left: 35px;
    width: 100%;
    height: 30px;
    font-size: 22px;
    border-radius: 5px;
    border: white 2px solid;
    background: transparent;
    color: white;
}

.search-bar input:focus {
    outline: none;
    box-shadow: none;
    border-color: white;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: -50px;
    right: -50px;
    background: linear-gradient(
        to bottom,
        rgba(64, 0, 8, 0.95) 0%,
        rgba(120, 3, 24, 0.95) 50%,
        rgba(64, 0, 8, 0.95) 100%
    );
    border: 3px solid #a40039;
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 2px solid rgba(164, 0, 57, 0.5);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s;
    min-height: 80px;
}

.suggestion-item:hover {
    background: rgba(201, 0, 69, 0.4);
    transform: scale(1.01);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-title {
    color: white;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 14px;
}

.suggestion-artist {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.suggestion-diff {
    color: #00A2FF;
    font-size: 14px;
}

.suggestion-cover {
    width: 120px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #00A2FF;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.suggestion-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.suggestion-title {
    color: white;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-artist {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Cascadia Mono", sans-serif;
    font-size: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.suggestion-diff {
    color: #00A2FF;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

.suggestion-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Cascadia Mono", sans-serif;
    font-size: 16px;
}

.FilterB {
    white-space: nowrap;
    cursor: pointer;
}

/* Filter panel - slides down from header */
.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 120px 60px 30px;
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.filter-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.25) 85%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: -1;
}

#filter-toggle:checked ~ .filter-panel {
    max-height: 300px;
    padding-top: 120px;
    padding-bottom: 40px;
    pointer-events: auto;
}

.filter-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-input {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 8px 12px;
    outline: none;
    width: 180px;
    transition: border-color 0.2s;
}

.filter-input:focus {
    border-color: rgba(255, 255, 255, 0.35);
}

.filter-input-sm {
    width: 70px;
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-dash {
    color: rgba(255, 255, 255, 0.3);
}

.filter-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-tag {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

.filter-tag.active {
    border-color: white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.ProfileB {
    margin-left: auto;
}

.avatar {
    position: relative;
    width: 80px;
    height: 75px;
    border-radius: 100%;
    border: var(--c1) 3px solid;
}

.avatar:hover {
    opacity: 0.8;
    transform: scale(1.02);
    cursor: pointer;
}

/* map grid */

.Maps-grid {
    display: grid;
    position: relative;
    gap: 20px;
    padding: 60px;
    grid-template-columns: repeat(4, 18vw);
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.Map-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    cursor: pointer;
    border: 4px solid #4d4d4d;
    box-shadow: 5px 0 32px rgba(0, 0, 0, 1);
    object-fit: cover;
    filter: brightness(0.9);
}

.Map-image:hover {
    filter: brightness(0.75);
}

.Map-card[data-status="ranked"] .Map-image {
    border-color: #00ff08
}

.Map-card[data-status="quality"] .Map-image {
      border-color: #00d5ff;
}

  .Map-card[data-status="challenge"] .Map-image {
      border-color: #ff9500;
}

.Maps-grid .Map-info {
    margin-left: 10px;
    font-size: clamp(14px, 1.2vw, 24px);
    font-family: "Cascadia Mono", sans-serif;
    color: white;
    text-shadow: 3px 2px black;
    filter: drop-shadow(2px 2px 1px black);
}

 /* map shit very informative I know */

/* .Maps-grid .Map-info .Map-artist {
    position: absolute;
    top: 5px;
    left: 10px;
    pointer-events: none;
} */

.Maps-grid .Map-info .Map-title {
    position: absolute;
    top: 5px;
    left: 10px;
    pointer-events: none;
} 

.Maps-grid .Map-info .Map-bpm {
    position: absolute;
    bottom: 15px;
    left:10px;
    pointer-events: none;
}

.Maps-grid .Map-info .Map-difficulty {
    position: absolute;
    bottom: 15px;
    right: 10px;
    pointer-events: none;
} 

/* side panels */

.side-panels {
    position: absolute;
    top: 50%;
    left: 0px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
}

.right-panel {
    position: relative;
    left: 30px;
}

.left-panel {
    position: relative;
    left: -30px;
}

.side-panels img:hover {
    cursor: pointer;
    filter: brightness(0.5);
}

.side-panels img {
    width: 200px;
    height: auto;
    pointer-events: auto;
}

.side-overlay {
    position: fixed;
    top: 0;
    width: 8vw;
    height: 100vh;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    border-radius: 8px;
    transition: opacity 0.2s ease;
    z-index: 50;
}

.left-overlay {
    left: 0;
}

.right-overlay {
    right: 0;
}

.left-panel:hover ~ .left-overlay,
.side-panels:hover .left-panel:hover ~ .left-overlay {
    opacity: 1;
}

.right-panel:hover ~ .right-overlay,
.side-panels:hover .right-panel:hover ~ .right-overlay {
    opacity: 1;
}

/* pages */

.pages-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.pageB {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    background: #555555;
    border: white 2px solid;
}

.pageB:hover {
    filter: brightness(0.6);
}

.pageB.active {
    background: white;
    color: black;
    border-color: white;
}

.page-number {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 32px;
    border-radius: 5px;
    width: 100px;
    height: 40px;
    text-align: center;
    background: #555555;
    border: white 2px solid;
    color: white;
    outline: none;
}


/* submit */

.submit-label {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.dragndrop {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 30px;
    color: white;
    position: fixed;
    width: 800px;
    height: 500px;
    background: linear-gradient(
        to bottom,
        #400008c5 0%,
        #b50318c5 50%,
        #400008c5 100%
    );
    border: #a40039 4px solid;
    box-shadow:
        10px 0 30px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dragndrop img {
    width: 260px;
    height: 260px;
}

.map-label {
    display: flex;
    flex-direction: column;
    gap: 260px;
    padding: 30px;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 30px;
    color: white;
    position: fixed;
    width: 800px;
    height: 500px;
    background: linear-gradient(
        to bottom,
        #400008c5 0%,
        #b50318c5 50%,
        #400008c5 100%
    );
    border: #a40039 4px solid;
    box-shadow:
        10px 0 30px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wrapper {
    display: flex;
    flex-direction: row;
    gap:40px;
    align-items: flex-start;
}

.cover {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border: #a40039 4px solid;
    box-shadow:
        10px 0 30px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.2);
}

.fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.field {
    border: #a40039 4px solid;
    box-shadow:
        10px 0 30px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.2);
    width: auto;
    height: 40px;
    font-size: 26px;
    font-family: "Cascadia Mono", sans-serif;
    color: white;
    background: rgba(0, 0, 0, 0.4);
}

.buttons{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.buttons button {
    flex: 1;
    padding: 8px;
    font-size: 18px;
    color: white;
    background-color: rgba(0, 0, 0, 0);
    font-family: "Cascadia Mono", sans-serif;
}

.Submit {
    border: green 3px solid;
}

.Cancel {
  border: red 3px solid;  
}
.buttons button:hover {
    cursor: pointer;
    opacity: 0.6;
}

.map-params {                                                                                                                                                                                                                                                                    position: fixed;                                                                                                                                                                                                                                                       
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 800px;
      background: linear-gradient(
          to bottom,
          #400008c5 0%,
          #b50318c5 50%,
          #400008c5 100%
      );
      border: #a40039 4px solid;
      box-shadow:
          10px 0 30px rgba(0, 0, 0, 0.6),
          0 10px 30px rgba(0, 0, 0, 0.6);
      padding: 30px;
      display: flex;
      flex-direction: column;
      gap: 24px;
      font-family: "Cascadia Mono", sans-serif;
      color: white;
  }

  .submit-card {
      display: flex;
      flex-direction: row;
      gap: 30px;
      align-items: flex-start;
  }

  .submit-cover {
      width: 180px;
      height: 180px;
      flex-shrink: 0;
      border: #a40039 4px solid;
      object-fit: cover;
  }

  .submit-fields {
      display: flex;
      flex-direction: column;
      gap: 12px;
      flex-grow: 1;
  }

  .submit-input {
      background: rgba(0, 0, 0, 0.4);
      border: #a40039 2px solid;
      color: white;
      font-family: "Cascadia Mono", sans-serif;
      font-size: 16px;
      padding: 8px 12px;
      width: 100%;
      box-sizing: border-box;
  }

  .submit-input::placeholder {
      color: rgba(255, 255, 255, 0.4);
  }

  .submit-input:focus {
      outline: none;
      border-color: #ff2060;
  }

  .submit-readonly {
      display: flex;
      flex-direction: row;
      gap: 12px;
      align-items: center;
      margin-top: 4px;
  }

  .submit-stat {
      color: rgba(255, 255, 255, 0.6);
      font-size: 14px;
  }

  .submit-diff {
      margin-left: auto;
      color: #ff2060;
      font-size: 18px;
      font-weight: bold;
  }

  .submit-buttons {
      display: flex;
      flex-direction: row;
      gap: 20px;
  }

  .submit-buttons button {
      flex: 1;
      padding: 10px;
      font-size: 16px;
      color: white;
      background: transparent;
      font-family: "Cascadia Mono", sans-serif;
      cursor: pointer;
  }

  .submit-buttons button:hover {
      opacity: 0.6;
  }


/* ==================== PROFILE PAGE ==================== */

/* Profile page needs scrollable body */
body.profile-page {
    height: auto;
    min-height: 100vh;
}

/* Banner */
.profile-banner {
    position: relative;
    width: 100%;
    height: 300px;
    background:
        linear-gradient(
            135deg,
            rgba(201, 0, 69, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            rgba(164, 0, 58, 0.7) 100%
        ),
        url('background.jpg') center/cover no-repeat;
    box-shadow:
        inset 0 -60px 80px rgba(0, 0, 0, 0.9),
        0 4px 30px rgba(0, 0, 0, 0.5);
    overflow: visible;
}

.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
    pointer-events: none;
}

/* Avatar */
.profile-avatar-wrapper {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--c1);
    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.8),
        0 8px 32px rgba(201, 0, 69, 0.5);
    object-fit: cover;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.8),
        0 12px 40px rgba(201, 0, 69, 0.7);
}

.profile-avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(201, 0, 69, 0.4);
    animation: avatar-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes avatar-pulse {
    0%, 100% { border-color: rgba(201, 0, 69, 0.4); transform: scale(1); }
    50% { border-color: rgba(201, 0, 69, 0.8); transform: scale(1.03); }
}

/* Profile Info */
.profile-info {
    text-align: center;
    padding: 80px 40px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.profile-username {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* Follow Button */
.profile-follow-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 8px;
    color: white;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-follow-btn:hover {
    box-shadow: 0 4px 20px rgba(201, 0, 69, 0.5);
    transform: scale(1.05);
}

.profile-follow-btn.followed {
    background: var(--c1);
    border-color: var(--c1);
}

.follow-heart {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.profile-follow-btn.followed .follow-heart {
    animation: heart-pop 0.4s ease-out;
}

@keyframes heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.profile-admin-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.profile-admin-btn {
      font-family: "Cascadia Mono", sans-serif;
      font-size: 13px;
      padding: 6px 16px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
  }

  .btn-mute {
      background: #F39C12;
      color: white;
  }

  .btn-ban {
      background: #E74C3C;
      color: white;
  }

/* Badges */
.profile-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.profile-badge {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.profile-badge:hover {
    transform: scale(1.08);
}

.badge-developer {
    color: #00A2FF;
    border-color: #00A2FF;
    background: rgba(0, 162, 255, 0.15);
    box-shadow: 0 0 12px rgba(0, 162, 255, 0.3);
}

.badge-mapper {
    color: var(--c1);
    border-color: var(--c1);
    background: rgba(201, 0, 69, 0.15);
    box-shadow: 0 0 12px rgba(201, 0, 69, 0.3);
}

.badge-verified {
    color: #22c55e;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.badge-top-player {
    color: #f59e0b;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.badge-early-supporter {
    color: #a855f7;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.badge-ranker{
    color: #1fe3fd;
    border-color: #153be4;
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.badge-admin {
    color: #6200ff;
    border-color: #cc00ff;
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

/* Stats */
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.profile-stat {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(201, 0, 69, 0.3);
    border-radius: 12px;
    padding: 15px 25px;
    min-width: 100px;
    transition: all 0.2s;
}

.profile-stat:hover {
    border-color: var(--c1);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(201, 0, 69, 0.3);
}

.profile-stat-value {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #00A2FF;
    text-shadow: 0 2px 6px rgba(0, 162, 255, 0.4);
}

.profile-stat-label {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* About Me */
.profile-about {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(201, 0, 69, 0.2);
    border-radius: 12px;
    padding: 20px 25px;
}

.profile-about-title {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px;
}

.profile-about-text {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

.profile-about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.profile-about-header .profile-about-title {
    margin: 0;
}

#about-edit-btn, #about-save-btn {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 12px;
    background: rgba(201, 0, 69, 0.2);
    border: 1px solid rgba(201, 0, 69, 0.4);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
}

#about-edit-btn:hover, #about-save-btn:hover {
    background: rgba(201, 0, 69, 0.4);
}

#about-textarea {
    width: 100%;
    min-height: 80px;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(201, 0, 69, 0.3);
    border-radius: 8px;
    padding: 8px;
    resize: vertical;
    box-sizing: border-box;
    overflow: hidden;
}

/* Tabs */
.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
    padding: 0 80px;
}

.profile-tab {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.profile-tab.active {
    color: white;
    border-bottom-color: var(--c1);
    text-shadow: 0 0 10px rgba(201, 0, 69, 0.5);
}

.profile-tab-content {
    display: none;
    padding-bottom: 60px;
}

.profile-tab-content.active {
    display: block;
}

/* Profile grid override (less margin, no side panels) */
.profile-maps-grid {
    margin-left: 80px;
    margin-right: 80px;
}

/* Accuracy badge on completed maps*/
.profile-accuracy {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
    pointer-events: none;
    z-index: 2;
}

.accuracy-perfect {
    background: rgba(0, 162, 255, 0.85);
    box-shadow: 0 0 12px rgba(0, 162, 255, 0.5);
}

.accuracy-high {
    background: rgba(34, 197, 94, 0.85);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.accuracy-medium {
    background: rgba(245, 158, 11, 0.85);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.accuracy-low {
    background: rgba(107, 114, 128, 0.85);
    box-shadow: 0 0 12px rgba(107, 114, 128, 0.5);
}

/* Empty state for tabs */
.profile-empty {
    text-align: center;
    padding: 80px 40px;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== MAP DETAIL PAGE ==================== */

body.map-detail-page {
    height: auto;
    min-height: 100vh;
}


/* .map-detail-hero {
    position: relative;
    width: 100%;
    height: 350px;
    background: center/cover no-repeat;
    overflow: hidden;
} */

/* .map-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.95) 100%
        );
    pointer-events: none;
} */

.map-detail-hero-text {
    position: absolute;
    bottom: 30px;
    left: 50px;
    z-index: 2;
}

.map-detail-hero-title {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
    margin: 0;
    line-height: 1.1;
}

.map-detail-hero-artist {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 22px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    margin-top: 8px;
}

/* Main content — two columns */
.map-detail-content {
    display: flex;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 50px 80px;
}

/* Left column — cover + download */
.map-detail-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.map-detail-cover {
    width: 320px;
    height: 320px;
    border-radius: 16px;
    border: 3px solid #00A2FF;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 162, 255, 0.2);
    object-fit: cover;
    transition: transform 0.2s;
}


.map-detail-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 30px;
    background: transparent;
    border: 2px solid #00A2FF;
    border-radius: 10px;
    color: white;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.map-detail-download:hover {
    background: #00A2FF;
    box-shadow: 0 4px 20px rgba(0, 162, 255, 0.5);
    transform: scale(1.02);
}

/* Right column — info */
.map-detail-info {
    flex-grow: 1;
    min-width: 0;
}

.map-detail-title {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.map-detail-artist {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px;
}

/* Mapper row */
.map-detail-mapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(201, 0, 69, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.map-detail-mapper:hover {
    border-color: var(--c1);
    background: rgba(255, 255, 255, 0.06);
}

.map-detail-mapper-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--c1);
    object-fit: cover;
}

.map-detail-mapper-label {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-detail-mapper-name {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.map-detail-upload {                                                                                                                                                                                                                                                       
      width: 100%;
      /* margin-top: 5px;                                                                                                                                                                                                                                                            padding: 10px;                                                                                                                                                                                                                                                          */
      background: rgba(255, 251, 0, 0);
      border: 1px solid #eeff00;
      border-radius: 8px;
      color: #ffffff;
      font-family: "Cascadia Mono", sans-serif;
      font-size: 20px;
      cursor: pointer;
      height: 50px;
  }

  .map-detail-upload:hover {
      background: rgba(255, 251, 0, 0.3);
  }

  .map-upload-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.4);
      z-index: 1000;
      align-items: center;
      justify-content: center;
  }

  .map-upload-modal-overlay.active {
      display: flex;
  }

  .map-upload-modal {
      background: #1a1a2e;
      border: 1px solid rgba(0, 162, 255, 0.3);
      border-radius: 12px;
      padding: 28px;
      width: 360px;
      font-family: "Cascadia Mono", sans-serif;
  }

  .map-upload-modal-sub {
      color: rgba(255, 255, 255, 0.5);
      font-size: 13px;
      margin: 0 0 16px 0;
  }

/* Status badge */
.map-detail-statuses {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.map-detail-status {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
    cursor: default;
}

.status-ranked {
    color: #22c55e;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.status-unranked {
    color: #9ca3af;
    border-color: #9ca3af;
    background: rgba(156, 163, 175, 0.15);
    box-shadow: 0 0 12px rgba(156, 163, 175, 0.2);
}

.status-quality {
    color: #00A2FF;
    border-color: #00A2FF;
    background: rgba(0, 162, 255, 0.15);
    box-shadow: 0 0 12px rgba(0, 162, 255, 0.3);
}

.status-challenge {
    color: #FF6B35;
    border-color: #FF6B35;
    background: rgba(255, 107, 53, 0.15);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.3);
}

/* Difficulty category badge */
.map-detail-diff-category {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
    cursor: default;
}

.diff-easy {
    color: #22c55e;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.diff-medium {
    color: #f59e0b;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.diff-hard {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.diff-logic {
    color: #a855f7;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
}

.diff-tasukete {
    color: #ec4899;
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.15);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

/* Stats grid */
.map-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.map-detail-stat {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(201, 0, 69, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    transition: all 0.2s;
}

.map-detail-stat:hover {
    border-color: var(--c1);
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(201, 0, 69, 0.3);
}

.map-detail-stat-value {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #00A2FF;
    text-shadow: 0 2px 6px rgba(0, 162, 255, 0.4);
}

.map-detail-stat-label {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Patterns */
.map-detail-patterns {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.map-detail-section-label {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.map-detail-pattern-tag {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    border: 2px solid;
    transition: transform 0.2s;
    cursor: default;
}

.pattern-streams {
    color: #00A2FF;
    border-color: #00A2FF;
    background: rgba(0, 162, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 162, 255, 0.25);
}

.pattern-jumps {
    color: #f59e0b;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.pattern-speed {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.pattern-stamina {
    color: #a855f7;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.pattern-tech {
    color: #22c55e;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

/* Description */
.map-detail-description {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(201, 0, 69, 0.2);
    border-radius: 12px;
    padding: 20px 25px;
}

.map-detail-description-text {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

/* Date info */
.map-detail-date {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 20px;
}

/* ==================== MAIN PAGE ==================== */

body.main-page {
    height: auto;
    min-height: 100vh;
}

.main-content {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px 80px;
}

/* Left sidebar — socials */
.main-sidebar-left {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-section-title {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.main-social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    text-decoration: none;
    color: white;
    transition: all 0.2s;
    cursor: pointer;
}

.main-social-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.main-social-icon {
    font-size: 28px;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.main-social-name {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.main-social-desc {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* Discord specific glow */
.social-discord:hover {
    border-color: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
}

.social-twitter:hover {
    border-color: #1DA1F2;
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.3);
}

.social-github:hover {
    border-color: #f0f6fc;
    box-shadow: 0 0 15px rgba(240, 246, 252, 0.2);
}

/* Center — news feed */
.main-news {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-news-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 25px 30px;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.main-news-card:hover {
    border-color: rgba(201, 0, 69, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.main-news-date {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.main-news-title {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.main-news-text {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.main-news-tag {
    display: inline-block;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
    border: 1px solid;
}

.news-tag-update {
    color: #00A2FF;
    border-color: #00A2FF;
    background: rgba(0, 162, 255, 0.15);
}

.news-tag-event {
    color: #f59e0b;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.news-tag-release {
    color: #22c55e;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

/* Right sidebar — ranked maps */
.main-sidebar-right {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-ranked-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-ranked-label {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 10px;
    border: 1px solid;
    display: inline-block;
    width: fit-content;
}

.ranked-label-ranked {
    color: #22c55e;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.ranked-label-quality {
    color: #00A2FF;
    border-color: #00A2FF;
    background: rgba(0, 162, 255, 0.1);
}

.ranked-label-challenge {
    color: #FF6B35;
    border-color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

.main-ranked-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.main-ranked-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.main-ranked-cover {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 2px solid #00A2FF;
    filter: brightness(0.85);
    transition: filter 0.2s;
}

.main-ranked-card:hover .main-ranked-cover {
    filter: brightness(0.7);
}

.main-ranked-info {
    padding: 12px 15px;
}

.main-ranked-title {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-ranked-meta {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

.main-ranked-stars {
    color: #00A2FF;
    font-weight: 700;
}

/* ==================== RANKING PAGE ==================== */

.ranking-page-title {
    font-family: "Cascadia Mono", sans-serif;
    color: white;
    font-size: 24px;
    margin: 24px 0 16px 0;
    padding-left: 20px;
}

.ranking-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px 40px 20px;
}

.ranking-empty {
    font-family: "Cascadia Mono", sans-serif;
    color: rgba(255, 255, 255, 0.4);
    padding: 40px 20px;
    font-size: 16px;
}

.ranking-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.432);
    /* background: rgba(255, 255, 255, 0.1); */
    border: 1px solid rgba(0, 162, 255, 0.4);
    border-radius: 10px;
    padding: 16px 20px;
}

.ranking-cover {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #00A2FF;
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
    font-family: "Cascadia Mono", sans-serif;
    color: white;
}

.ranking-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ranking-meta {
    display: flex;
    gap: 18px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.623);
    flex-wrap: wrap;
    padding-top: 10px;
}

.ranking-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ranking-btn-accept, .ranking-btn-decline {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 15px;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.15s;
}

.ranking-btn-accept {
    background: #00A2FF;
    color: white;
}

.ranking-btn-decline {
    background: rgba(255, 0, 0);
    color: rgb(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ranking-btn-accept:hover, .ranking-btn-decline:hover {
    opacity: 0.8;
}

/* MODAL */

.rank-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.rank-modal-overlay.active {
    display: flex;
}

.rank-modal {
    background: #1a1a2e;
    border: 1px solid rgba(0, 162, 255, 0.3);
    border-radius: 12px;
    padding: 28px;
    width: 400px;
    font-family: "Cascadia Mono", sans-serif;
}

.rank-modal-title {
    color: white;
    font-size: 18px;
    margin: 0 0 20px 0;
}

.rank-modal-textarea {
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 162, 255, 0.3);
    border-radius: 6px;
    color: white;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    padding: 10px;
    resize: none;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.rank-modal-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rank-modal-btn {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.15s;
}

.btn-quality {
    background: #4CAF50;
    color: white;
}

.btn-challenge {
    background: #FF6B35;
    color: white;
}

.btn-decline-confirm {
    background: #e53935;
    color: white;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.rank-modal-btn:hover {
    opacity: 0.8;
}

.ranking-header {
    display: flex;
    align-items: center;
}

/* ==================== COMMENTS ==================== */

.map-comments {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.map-comment {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 12px;
}

.map-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.map-comment-body {
    flex: 1;
    font-family: "Cascadia Mono", sans-serif;
}

.map-comment-header {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 4px;
}

.map-comment-author {
    color: #00A2FF;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.map-comment-date {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
}

.map-comment-text {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.map-comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.map-comment-input {
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0,162,255,0.3);
    border-radius: 8px;
    color: white;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    padding: 10px;
    resize: none;
    box-sizing: border-box;
}

.map-comment-submit {
    align-self: flex-end;
    background: #00A2FF;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.map-comment-submit:hover { opacity: 0.8; }

.map-comment-login {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 13px;
    margin-bottom: 16px;
}

.map-comment-login a { color: #00A2FF; }

.map-comments-empty {
    font-family: "Cascadia Mono", sans-serif;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    margin-bottom: 12px;
}

/* ==================== 404 PAGE ==================== */

.notfound-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 80px);
    font-family: "Cascadia Mono", sans-serif;
    text-align: center;
}

.notfound-code {
    font-size: 120px;
    font-weight: 700;
    color: #00A2FF;
    line-height: 1;
    text-shadow: 0 0 40px rgba(0, 162, 255, 0.4);
}

.notfound-msg {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
    margin-bottom: 32px;
}

.notfound-back {
    font-family: "Cascadia Mono", sans-serif;
    font-size: 14px;
    color: white;
    background: #00A2FF;
    padding: 10px 28px;
    border-radius: 8px;
    text-decoration: none;
}

.notfound-back:hover {
    opacity: 0.8;
}

/* ==================== AVATAR DROPDOWN ==================== */

.avatar-dropdown {
    position: relative;
    display: inline-block;
}

.avatar-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(201, 0, 69, 0.35);
    border-radius: 8px;
    padding: 6px;
    min-width: 130px;
    z-index: 200;
}

.avatar-dropdown:hover .avatar-menu {
    display: block;
}

.avatar-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.LogoutB {
    display: block;
    width: 100%;
    padding: 8px 14px;
    font-family: "Cascadia Mono", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
}

.LogoutB:hover {
    background: rgba(201, 0, 69, 0.3);
    color: white;
}
