@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
    --bg: #040718;
    --bg-soft: #080d26;
    --panel: rgba(11, 18, 48, 0.88);
    --panel-solid: #0c1332;
    --panel-light: #121b42;
    --line: rgba(130, 111, 255, 0.22);
    --line-bright: rgba(151, 112, 255, 0.55);
    --purple-main: #8c52ff;
    --purple-hot: #b247ff;
    --cyan: #4de7ff;
    --lime: #8cff00;
    --pink: #ff4fd8;
    --orange: #ff9f43;
    --text: #f7f7ff;
    --muted: #9aa6c9;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at 8% 8%, rgba(114, 41, 255, 0.18), transparent 28rem),
        radial-gradient(circle at 88% 42%, rgba(0, 180, 255, 0.1), transparent 32rem),
        linear-gradient(180deg, #050817 0%, #070b20 48%, #030512 100%);
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(123, 102, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 102, 255, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

h1,
h2,
h3,
.brand-name {
    color: var(--text);
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: -0.035em;
}

p {
    color: var(--muted);
}

a {
    color: var(--cyan);
}

.wrapper {
    min-height: 100vh;
}

.container,
.container-header {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
}

/* Header */
header {
    position: sticky;
    z-index: 100;
    top: 0;
    border: 0;
    border-bottom: 1px solid rgba(138, 104, 255, 0.14);
    background: rgba(4, 7, 24, 0.76);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(20px);
}

.container-header {
    padding: 12px 0;
}

nav {
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, #9e5cff, #6d2cff);
    box-shadow: 0 0 28px rgba(135, 68, 255, 0.5), inset 0 1px rgba(255, 255, 255, 0.3);
    font: 800 22px/1 "Space Grotesk", sans-serif;
    transform: skew(-4deg);
}

.brand-name {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.brand-name span {
    color: #c9b5ff;
}

.nav-menu {
    margin: 0 auto;
    gap: 6px;
}

.nav-menu li {
    margin: 0;
}

.nav-menu li::marker {
    content: "";
}

.nav-menu a {
    display: block;
    padding: 9px 13px;
    border-radius: 10px;
    color: #b5bed9;
    font-size: 14px;
    font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    color: #fff;
    background: rgba(137, 96, 255, 0.13);
}

#logoutButton {
    color: #ff8edb;
}

.user-profile {
    color: var(--text);
    white-space: nowrap;
}

.user-profile p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #d9dded;
    background: rgba(255, 255, 255, 0.035);
    font-size: 13px;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    margin: -5px -7px -5px 1px;
    border: 1px solid rgba(163, 112, 255, 0.65);
    border-radius: 9px;
    object-fit: cover;
}

.user-profile a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.login-button,
.register-button {
    margin-left: 4px;
    border-radius: 10px;
    padding: 10px 14px;
    color: #d8def3;
    font-family: inherit;
    font-size: 14px;
}

.register-button,
.index-cta-button,
form button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #9b5cff, #692dff);
    box-shadow: 0 8px 24px rgba(115, 47, 255, 0.3), inset 0 1px rgba(255, 255, 255, 0.24);
}

.register-button:hover,
.index-cta-button:hover,
form button:hover {
    color: #fff;
    background: linear-gradient(135deg, #ad6cff, #7a3cff);
    transform: translateY(-1px);
}

.search-icon-container {
    position: static;
    inset: auto;
    margin-left: -14px;
}

.search-icon {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: #d8def3;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    font-size: 24px;
}

.menu-icon {
    border: 0;
    background: transparent;
}

/* Reusable surfaces and forms */
.container-login-register,
.contact-form-section,
.link-details,
.modal-content,
.search-overlay-content {
    border: 1px solid var(--line);
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(17, 25, 60, 0.98), rgba(7, 12, 34, 0.98));
    box-shadow: var(--shadow);
}

.container-login-register {
    position: relative;
    overflow: hidden;
    max-width: 520px;
    margin: 48px auto;
    border-radius: 24px;
    padding: 38px;
}

.container-login-register::before {
    position: absolute;
    top: -110px;
    right: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    content: "";
    background: rgba(132, 62, 255, 0.25);
    filter: blur(50px);
}

form input,
form button,
form textarea,
form select,
.modal-input,
.modal-dropdown,
.link-upload-category-select,
#sortLinks {
    min-height: 48px;
    border: 1px solid rgba(131, 121, 187, 0.3);
    border-radius: 12px;
    color: var(--text);
    background: rgba(4, 8, 26, 0.72);
    font-family: inherit;
}

form input::placeholder,
form textarea::placeholder {
    color: #7883a6;
}

form input:focus,
form textarea:focus,
form select:focus,
.modal-input:focus,
.link-upload-input-url:focus {
    border-color: #8b61ff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(130, 77, 255, 0.14), 0 0 24px rgba(117, 67, 255, 0.12);
}

.divider::before,
.divider::after {
    border-color: var(--line) !important;
}

.divider span,
.auth-section-title {
    color: var(--muted) !important;
    background: transparent !important;
}

.google-signin-container {
    border: 1px dashed var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.cf-turnstile {
    display: flex;
    justify-content: center;
}

/* User dashboard */
.main-content {
    padding: 28px 0 50px;
}

.dashboard-shell {
    position: relative;
}

.dashboard-kicker {
    margin-bottom: 7px;
    color: var(--lime);
    font: 700 11px/1 "Space Grotesk", sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.user-header {
    justify-content: flex-start;
    margin: 10px 0 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 10%, rgba(137, 74, 255, 0.2), transparent 20rem),
        linear-gradient(120deg, rgba(17, 26, 64, 0.92), rgba(8, 13, 37, 0.92));
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.user-image-container {
    flex-shrink: 0;
}

.user-profile-image {
    width: 92px;
    height: 92px;
    border: 3px solid #7546ff;
    border-radius: 22px;
    box-shadow: 0 0 0 5px rgba(116, 65, 255, 0.13), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.user-page-title {
    flex: 1;
    margin: 0;
    color: var(--text);
    text-align: left;
    font-size: clamp(26px, 4vw, 42px);
}

.user-heading-group {
    flex: 1;
    min-width: 0;
}

.user-intro-container {
    max-width: none;
    margin: 10px 0 0;
}

.user-intro {
    min-height: 0;
    border: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
}

.user-intro:hover,
.user-intro:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
}

.categories-container {
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 2px 15px;
    scrollbar-color: #6f43e7 transparent;
}

.category-btn {
    min-width: 90px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 12px 15px;
    color: #aeb8d8;
    background: linear-gradient(150deg, rgba(18, 28, 68, 0.95), rgba(9, 14, 40, 0.95));
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.18);
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--line-bright);
    color: #fff;
    background: linear-gradient(135deg, rgba(130, 75, 255, 0.85), rgba(70, 45, 173, 0.85));
    box-shadow: 0 0 24px rgba(121, 67, 255, 0.2);
}

#categoryAddButton {
    border: 1px dashed var(--line-bright);
    border-radius: 13px;
    background: rgba(120, 69, 255, 0.12);
}

.breadcrumb {
    color: var(--muted);
}

.breadcrumb a {
    color: #9ea9cc;
}

#linkUploadForm {
    display: grid !important;
    grid-template-columns: 1fr 180px auto auto;
    gap: 10px;
    margin: 6px 0 24px !important;
    padding: 10px;
    border: 1px solid var(--line-bright);
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(11, 18, 47, 0.96), rgba(22, 16, 65, 0.96));
    box-shadow: 0 0 28px rgba(113, 63, 255, 0.14);
}

#linkUploadForm > * {
    margin: 0;
}

#linkUploadForm .link-upload-input-url {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    color: #fff;
    background: rgba(1, 5, 20, 0.58);
}

#linkUploadForm button {
    padding: 10px 17px;
}

#addEmptyLinkButton {
    border-color: var(--line);
    color: #c8d0ec;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.dashboard-toolbar {
    display: flex;
    max-width: none;
    margin: 0 0 12px;
    padding: 12px 4px;
    color: var(--muted);
    font-size: 13px;
}

#sortLinks {
    padding: 7px 12px !important;
}

.links-heading {
    margin: 24px 0 12px;
    font-size: 22px;
}

.links-container {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.link-card-wrapper {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.link-card {
    height: 100%;
    min-height: 176px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 11px;
    color: var(--text);
    background:
        radial-gradient(circle at 0 100%, rgba(64, 201, 255, 0.06), transparent 13rem),
        linear-gradient(145deg, rgba(15, 24, 58, 0.98), rgba(8, 13, 36, 0.98));
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.link-card:hover {
    border-color: rgba(137, 94, 255, 0.55);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32), 0 0 25px rgba(106, 67, 255, 0.11);
    transform: translateY(-3px);
}

.link-card.pinned {
    border-color: rgba(140, 255, 0, 0.35);
    border-left: 3px solid var(--lime);
    background: linear-gradient(145deg, rgba(20, 39, 51, 0.98), rgba(8, 13, 36, 0.98));
}

.link-card.pinned::before {
    top: 8px;
    right: 8px;
    background: #668e20;
}

.link-card-image-container {
    width: 34%;
    min-width: 118px;
    margin-right: 14px;
    border-radius: 13px;
    background: #050817;
}

.link-card-image {
    width: 100%;
    height: 100%;
    min-height: 152px;
    margin: 0;
    border-radius: 13px;
    object-position: center;
}

.user-image-overlay {
    right: 7px;
    bottom: 7px;
    width: 34px;
    height: 34px;
    border: 2px solid #824dff;
    border-radius: 10px;
}

.link-card-link {
    min-width: 0;
}

.link-card-content h2 {
    margin: 4px 20px 6px 0;
    font-size: 17px;
    line-height: 1.3;
}

.link-card-title {
    color: #f7f8ff;
}

.link-card-description {
    color: #939fbe;
    font-size: 13px;
    line-height: 1.45;
}

.link-card-footer {
    margin-top: auto;
    border: 0;
    border-top: 1px solid rgba(123, 115, 169, 0.16);
    padding: 8px 0 0;
    color: #8490b2;
    background: transparent;
    line-height: 1.7;
}

.link-card-footer-link {
    color: #697596;
}

.vote-buttons {
    width: auto;
    gap: 4px;
}

.vote-up-button,
.vote-down-button {
    border: 0;
    padding: 3px 5px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 14px;
}

.vote-up-count,
.vote-down-count {
    color: #aab4d0;
    font-size: 11px;
}

.pagination-link {
    border: 1px solid var(--line);
    color: #bcc6e4;
    background: var(--panel);
}

.pagination-link.active {
    color: #fff;
    background: var(--purple-main);
}

/* Link detail */
.link-details {
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(132, 68, 255, 0.11), transparent 24rem),
        linear-gradient(145deg, rgba(17, 25, 60, 0.98), rgba(7, 12, 34, 0.98));
}

.link-details h1,
.link-details h2,
.link-details-info p {
    color: var(--text);
}

.link-details-image,
.youtube-embed iframe {
    border-radius: 16px;
}

.image-overlay {
    border: 1px solid var(--line);
    background: rgba(5, 9, 26, 0.88);
    backdrop-filter: blur(16px);
}

.visit-website-button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #9b5cff, #692dff);
    box-shadow: 0 8px 24px rgba(115, 47, 255, 0.28);
}

.link-and-profile-container {
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: rgba(5, 9, 27, 0.72) !important;
}

.link-and-profile-container a,
.link-and-profile-container strong,
.link-and-profile-container span {
    color: #aeb8d8 !important;
}

.profile-section {
    border-color: var(--line) !important;
}

.related-links h3 {
    color: var(--text);
}

/* General content pages */
.h1-title,
.h1-title-strong {
    color: var(--text);
}

.highlight {
    color: #a778ff;
}

.contact-layout {
    gap: 20px;
}

.contact-form-section {
    border-radius: 22px;
}

.form-group label {
    color: #cbd3ea;
}

#map {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    filter: saturate(0.7) hue-rotate(195deg) brightness(0.76);
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    padding: 30px 0;
    color: var(--muted);
    background: rgba(3, 5, 17, 0.82);
}

.footer-container {
    display: block;
}

.gamer-footer-banner {
    display: grid;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(130, 81, 255, 0.38);
    border-radius: 20px;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    background:
        radial-gradient(circle at 100% 50%, rgba(142, 62, 255, 0.28), transparent 24rem),
        linear-gradient(110deg, rgba(22, 17, 70, 0.98), rgba(16, 18, 63, 0.98));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.footer-quote,
.footer-perk {
    display: flex;
    min-height: 98px;
    align-items: center;
    gap: 15px;
    padding: 20px 24px;
}

.footer-perk {
    border-left: 1px solid rgba(137, 102, 255, 0.18);
}

.pixel-heart {
    color: #ff4dcc;
    font-size: 40px;
    line-height: 1;
    text-shadow: 4px 0 #aa1e8c, 0 0 18px rgba(255, 77, 204, 0.4);
}

.footer-quote p,
.footer-perk p {
    margin: 0;
    color: #c7cee5;
    font-size: 14px;
}

.footer-quote small,
.footer-perk small {
    display: block;
    margin-top: 4px;
    color: #8e99bb;
    font-size: 11px;
}

.footer-perk > span {
    color: #9870ff;
    font-size: 28px;
    text-shadow: 0 0 20px rgba(127, 79, 255, 0.45);
}

.footer-perk:first-of-type > span {
    color: var(--orange);
}

.footer-perk strong {
    color: #f5f6ff;
}

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

.footer-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.78;
}

.footer-link {
    color: #949fbe;
}

.footer-link:hover {
    color: var(--cyan);
}

.footer-copyright {
    color: #687391;
}

.notification,
.loading-indicator,
.link-adding-indicator {
    border: 1px solid var(--line-bright);
    border-radius: 14px;
    color: #fff;
    background: rgba(9, 14, 38, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.spinner {
    border-color: rgba(255, 255, 255, 0.14);
    border-top-color: var(--cyan);
}

/* Homepage */
.home {
    overflow: hidden;
}

.game-hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(3, 6, 23, 0.98) 0%, rgba(3, 6, 23, 0.85) 31%, rgba(3, 6, 23, 0.16) 65%, rgba(3, 6, 23, 0.3) 100%),
        linear-gradient(0deg, #050817 0%, transparent 28%),
        url("/static/images/index/amigoadvisor-dashboard-hero.webp") center / cover no-repeat;
}

.game-hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    pointer-events: none;
    content: "";
    background: linear-gradient(transparent, #050817);
}

.game-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 650px;
    align-items: center;
    padding-top: 28px;
    padding-bottom: 70px;
}

.game-hero-copy {
    width: min(590px, 54%);
}

.game-eyebrow {
    margin-bottom: 15px;
    color: #ae91ff;
    font: 700 11px/1.4 "Space Grotesk", sans-serif;
    letter-spacing: 0.22em;
}

.game-eyebrow > span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 2px;
    background: var(--lime);
    box-shadow: 0 0 14px var(--lime);
}

.game-hero h1 {
    margin-bottom: 22px;
    color: #f5f5ff;
    font-size: clamp(46px, 6.3vw, 82px);
    line-height: 0.98;
    text-transform: uppercase;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}

.game-hero h1 > span {
    display: block;
    color: var(--lime);
    font-size: 1.08em;
    letter-spacing: -0.055em;
    text-shadow: 4px 4px 0 #2f5c00, 0 0 28px rgba(140, 255, 0, 0.18);
}

.game-hero-lead {
    max-width: 550px;
    margin-bottom: 28px;
    color: #c3cbe2;
    font-size: 17px;
    line-height: 1.7;
}

.game-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.index-cta-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 13px;
    padding: 12px 22px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: 180ms ease;
}

.index-cta-button > span {
    font-size: 20px;
}

.game-secondary-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    padding: 12px 20px;
    color: #dce2f6;
    background: rgba(8, 13, 37, 0.52);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.game-secondary-button:hover {
    border-color: var(--line-bright);
    color: #fff;
    background: rgba(111, 64, 231, 0.2);
}

.game-trust-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.game-trust-row p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.game-trust-row strong {
    color: #eef1ff;
}

.player-stack {
    display: flex;
}

.player-stack span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    margin-left: -8px;
    border: 2px solid #080c25;
    border-radius: 11px;
    background: #151d48;
}

.player-stack span:first-child {
    margin-left: 0;
}

.hero-pixel {
    position: absolute;
    z-index: 3;
    width: 8px;
    height: 8px;
    background: var(--pink);
    box-shadow: 12px 0 var(--pink), 24px 8px var(--pink), 0 12px var(--pink);
    opacity: 0.4;
}

.hero-pixel-one {
    top: 18%;
    left: 46%;
}

.hero-pixel-two {
    right: 7%;
    bottom: 18%;
    background: var(--cyan);
    box-shadow: 12px 0 var(--cyan), 24px 8px var(--cyan), 0 12px var(--cyan);
}

.category-preview {
    position: relative;
    z-index: 5;
    display: grid;
    margin-top: -46px;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.category-preview-card {
    display: grid;
    min-height: 120px;
    place-items: center;
    align-content: center;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 14px;
    color: var(--text);
    background: linear-gradient(145deg, rgba(17, 26, 64, 0.98), rgba(8, 13, 36, 0.98));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: 180ms ease;
}

.category-preview-card:hover {
    border-color: var(--line-bright);
    transform: translateY(-5px);
}

.category-preview-card > span {
    margin-bottom: 9px;
    font-size: 28px;
    filter: drop-shadow(0 0 12px rgba(132, 79, 255, 0.4));
}

.category-preview-card strong {
    font: 700 13px/1.3 "Space Grotesk", sans-serif;
}

.category-preview-card small {
    color: #6f7b9e;
    font-size: 10px;
}

.featured-links-section,
.game-features {
    padding-top: 100px;
    padding-bottom: 20px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.section-heading h2,
.game-quest h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 48px);
}

.section-heading > a {
    color: #a993e7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.section-heading.centered {
    justify-content: center;
    text-align: center;
}

.section-heading.centered p:last-child {
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 30px;
    background: linear-gradient(150deg, rgba(19, 28, 67, 0.96), rgba(8, 13, 35, 0.96));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.feature-card::after {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    content: "";
    background: currentColor;
    opacity: 0.08;
    filter: blur(10px);
}

.feature-purple {
    color: #a267ff;
}

.feature-cyan {
    color: var(--cyan);
}

.feature-lime {
    color: var(--lime);
}

.feature-number {
    position: absolute;
    top: 25px;
    right: 25px;
    color: rgba(255, 255, 255, 0.12);
    font: 800 42px/1 "Space Grotesk", sans-serif;
}

.feature-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 34px;
    border: 1px solid currentColor;
    border-radius: 17px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    box-shadow: 0 0 28px color-mix(in srgb, currentColor 17%, transparent);
    font-size: 24px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 21px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.75;
}

.game-quest {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 230px;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-top: 95px;
    margin-bottom: 95px;
    border: 1px solid rgba(137, 79, 255, 0.45);
    border-radius: 26px;
    padding: 45px;
    background:
        radial-gradient(circle at 87% 20%, rgba(139, 65, 255, 0.34), transparent 20rem),
        linear-gradient(120deg, #15103f, #0b1232 65%, #141047);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3), 0 0 45px rgba(101, 45, 234, 0.1);
}

.quest-badge {
    position: absolute;
    top: 0;
    left: 45px;
    padding: 7px 12px;
    border-radius: 0 0 9px 9px;
    color: #172400;
    background: var(--lime);
    font: 800 9px/1 "Space Grotesk", sans-serif;
    letter-spacing: 0.14em;
}

.quest-copy {
    max-width: 650px;
}

.quest-copy p:last-child {
    line-height: 1.7;
}

.game-quest .index-cta-button {
    flex-shrink: 0;
}

.quest-xp {
    position: absolute;
    right: 20px;
    bottom: 12px;
    color: rgba(140, 255, 0, 0.2);
    font: 800 22px/1 "Space Grotesk", sans-serif;
    transform: rotate(-5deg);
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 0;
    }

    .nav-menu a {
        padding-inline: 8px;
    }

    #linkUploadForm {
        grid-template-columns: 1fr 160px auto;
    }

    #addEmptyLinkButton {
        grid-column: 1 / -1;
    }

    .links-container {
        grid-template-columns: 1fr;
    }

    .category-preview {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .feature-card {
        min-height: 230px;
    }

    .gamer-footer-banner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-quote {
        grid-column: 1 / -1;
        border-bottom: 1px solid rgba(137, 102, 255, 0.18);
    }
}

@media (max-width: 768px) {
    .container,
    .container-header {
        width: min(94%, 1180px);
    }

    .brand-name {
        font-size: 16px;
    }

    .menu-icon {
        order: 4;
        color: #fff;
    }

    .nav-menu {
        top: 64px;
        left: 3%;
        width: 94%;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 10px;
        background: rgba(8, 13, 36, 0.98);
        box-shadow: var(--shadow);
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        padding: 13px;
    }

    .user-profile {
        margin-left: auto;
    }

    .login-button {
        display: none;
    }

    .register-button {
        padding: 9px 11px;
        font-size: 12px;
    }

    .search-icon-container {
        display: none;
    }

    .main-content {
        padding-top: 18px;
    }

    .user-header {
        align-items: flex-start;
        padding: 18px;
    }

    .user-page-title {
        width: 100%;
        text-align: center;
    }

    .user-heading-group {
        width: 100%;
    }

    .user-intro {
        text-align: center;
    }

    #linkUploadForm {
        grid-template-columns: 1fr;
    }

    .dashboard-toolbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .link-card {
        flex-direction: row;
        align-items: stretch;
        min-height: 150px;
    }

    .link-card-content {
        align-items: stretch;
    }

    .link-card-image-container {
        width: 34%;
        min-width: 105px;
        margin: 0 12px 0 0;
    }

    .link-card-image {
        min-height: 130px;
        margin: 0;
    }

    .container-login-register {
        margin: 28px auto;
        padding: 26px 20px;
    }

    .game-hero,
    .game-hero-inner {
        min-height: 670px;
    }

    .game-hero {
        background:
            linear-gradient(0deg, #050817 4%, rgba(3, 6, 23, 0.55) 52%, rgba(3, 6, 23, 0.1)),
            url("/static/images/index/amigoadvisor-dashboard-hero.webp") 62% center / cover no-repeat;
    }

    .game-hero-inner {
        align-items: flex-end;
    }

    .game-hero-copy {
        width: 100%;
    }

    .game-hero h1 {
        max-width: 600px;
        font-size: clamp(42px, 11vw, 68px);
    }

    .game-hero-lead {
        max-width: 500px;
        color: #e0e5f5;
        font-size: 15px;
    }

    .category-preview {
        margin-top: -25px;
    }

    .game-quest {
        align-items: flex-start;
        flex-direction: column;
        margin-block: 70px;
        padding: 45px 28px 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 520px) {
    .brand-name {
        display: none;
    }

    .link-card {
        flex-direction: column;
    }

    .link-card-image-container {
        width: 100%;
        height: 170px;
        margin: 0 0 12px;
    }

    .link-card-image {
        height: 170px;
    }

    .game-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .category-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-preview-card {
        min-height: 102px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .gamer-footer-banner {
        grid-template-columns: 1fr;
    }

    .footer-quote,
    .footer-perk {
        min-height: 78px;
    }

    .footer-quote {
        grid-column: auto;
    }

    .footer-perk {
        border-top: 1px solid rgba(137, 102, 255, 0.18);
        border-left: 0;
    }
}

@media (max-width: 380px) {
    .container-login-register {
        overflow: visible;
        padding-inline: 18px;
    }

    .container-login-register::before {
        display: none;
    }
}

/* Premium user dashboard */
.dashboard-page {
    padding: 24px 0 54px;
}

.dashboard-page .dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-profile-hero {
    position: relative;
    order: 1;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(125, 88, 255, 0.32);
    border-radius: 26px;
    background:
        linear-gradient(90deg, rgba(2, 5, 20, 0.97) 0%, rgba(2, 5, 20, 0.84) 39%, rgba(2, 5, 20, 0.08) 72%),
        linear-gradient(0deg, rgba(3, 6, 21, 0.82), transparent 38%),
        url("/static/images/index/amigoadvisor-dashboard-hero.webp") center / cover no-repeat;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44), 0 0 45px rgba(91, 46, 226, 0.1);
}

.dashboard-profile-hero::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(rgba(122, 86, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 86, 255, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(90deg, black, transparent 66%);
}

.dashboard-hero-copy {
    position: relative;
    z-index: 2;
    width: 54%;
    padding: 58px 0 80px 50px;
}

.dashboard-hero-copy .dashboard-kicker {
    margin-bottom: 16px;
    color: #b798ff;
    letter-spacing: 0.22em;
}

.dashboard-hero-copy h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 0.92;
    text-transform: uppercase;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.dashboard-hero-copy h1 span {
    display: block;
    margin-bottom: 5px;
    color: var(--lime);
    letter-spacing: -0.055em;
    text-shadow: 4px 4px 0 #315e00, 0 0 24px rgba(140, 255, 0, 0.2);
}

.dashboard-hero-copy > p:last-child {
    color: #d1d8eb;
    font-size: 17px;
    line-height: 1.65;
}

.dashboard-hero-status {
    position: absolute;
    z-index: 3;
    right: 18px;
    top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 9px 12px;
    color: #e5e9f8;
    background: rgba(5, 8, 27, 0.72);
    font-size: 11px;
    backdrop-filter: blur(14px);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 12px var(--lime);
}

.dashboard-page #linkUploadForm {
    z-index: 5;
    order: 2;
    width: calc(100% - 88px);
    margin: -65px auto 24px !important;
    border: 1px solid rgba(151, 107, 255, 0.75);
    border-radius: 17px;
    padding: 10px;
    background: rgba(12, 17, 48, 0.92);
    box-shadow: 0 0 0 5px rgba(104, 51, 232, 0.08), 0 18px 45px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(20px);
}

.dashboard-page #linkUploadForm .link-upload-input-url {
    padding-inline: 18px;
}

.dashboard-page #linkUploadForm button[type="submit"] {
    min-width: 110px;
    background: linear-gradient(135deg, #a65eff, #6d35ff);
}

.dashboard-page #categoriesContainer {
    order: 3;
    gap: 11px;
    margin: 0;
    padding: 0 4px 24px;
    scrollbar-width: none;
}

.dashboard-page #categoriesContainer::-webkit-scrollbar {
    display: none;
}

.dashboard-page .category-item {
    flex: 0 0 auto;
}

.dashboard-page .category-btn {
    display: flex;
    min-width: 105px;
    height: 76px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    border-radius: 15px;
    padding: 9px 13px;
    font-size: 12px;
}

.dashboard-page .category-btn::before {
    color: #b892ff;
    content: "◆";
    font-size: 19px;
    line-height: 1;
    text-shadow: 0 0 16px rgba(143, 83, 255, 0.7);
}

.dashboard-page .category-btn.active::before {
    color: var(--lime);
    content: "⚡";
}

.dashboard-page .category-btn[data-category-name="main-page"]::before {
    content: "🏠";
}

.dashboard-page .category-btn[data-category-name*="casa" i]::before {
    content: "🏠";
}

.dashboard-page .category-btn[data-category-name*="code" i]::before,
.dashboard-page .category-btn[data-category-name*="program" i]::before {
    content: "⌁";
}

.dashboard-page .category-btn[data-category-name*="fitness" i]::before {
    content: "🏋";
}

.dashboard-page .category-btn[data-category-name*="juguete" i]::before {
    content: "🧸";
}

.dashboard-page .category-btn[data-category-name*="médico" i]::before,
.dashboard-page .category-btn[data-category-name*="medico" i]::before {
    content: "✚";
}

.dashboard-page .category-btn[data-category-name*="videojuego" i]::before,
.dashboard-page .category-btn[data-category-name*="gaming" i]::before {
    content: "🎮";
}

.dashboard-page .category-btn[data-category-name*="youtube" i]::before {
    content: "▶";
}

.dashboard-page #categoryAddButton::before {
    content: "＋";
}

.dashboard-page .category-edit-button,
.dashboard-page .category-delete-button {
    z-index: 4;
    top: -5px;
    width: 20px;
    height: 20px;
    opacity: 0;
    font-size: 11px;
    transition: opacity 160ms ease, transform 160ms ease;
}

.dashboard-page .category-edit-button {
    left: -3px;
}

.dashboard-page .category-delete-button {
    right: -3px;
}

.dashboard-page .category-item:hover .category-edit-button,
.dashboard-page .category-item:hover .category-delete-button,
.dashboard-page .category-edit-button:focus-visible,
.dashboard-page .category-delete-button:focus-visible {
    opacity: 1;
}

.dashboard-page .breadcrumb {
    order: 4;
    margin: 0 2px 10px;
    color: #677394;
    font-size: 11px;
}

.dashboard-page .user-header {
    order: 5;
    min-height: 92px;
    margin: 0 0 18px;
    border-radius: 18px;
    padding: 14px 18px;
    background:
        radial-gradient(circle at 94% 0, rgba(143, 69, 255, 0.16), transparent 20rem),
        linear-gradient(120deg, rgba(15, 24, 58, 0.96), rgba(8, 13, 36, 0.96));
}

.dashboard-page .user-profile-image {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.dashboard-page .user-page-title {
    font-size: 25px;
}

.dashboard-page .user-intro-container {
    margin-top: 5px;
    margin-bottom: 0;
}

.dashboard-page .user-intro {
    font-size: 13px;
}

.dashboard-page .dashboard-toolbar {
    order: 6;
    width: 100%;
    max-width: none !important;
    margin: 6px 0 14px !important;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 13px 16px;
    background: linear-gradient(100deg, rgba(16, 25, 59, 0.94), rgba(11, 16, 44, 0.94));
}

.dashboard-page .dashboard-toolbar h2 {
    margin: 0 auto 0 0;
    font-size: 23px;
}

.dashboard-page .dashboard-toolbar h2 span {
    color: #9da8c8;
    font-size: 15px;
}

.dashboard-page #sortLinks {
    min-height: 38px;
    color: #dfe4f5;
    font-size: 12px;
}

.dashboard-page #linksContainer {
    order: 7;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.dashboard-page .link-card-wrapper {
    width: 100%;
}

.dashboard-page .link-card {
    min-height: 205px;
    align-items: stretch;
    border-color: rgba(116, 103, 184, 0.27);
    border-radius: 19px;
    padding: 12px;
    background:
        radial-gradient(circle at 100% 0, rgba(100, 61, 238, 0.1), transparent 24rem),
        linear-gradient(135deg, rgba(15, 25, 59, 0.98), rgba(7, 13, 36, 0.98));
}

.dashboard-page .link-card:hover {
    border-color: rgba(144, 97, 255, 0.58);
    transform: translateY(-2px);
}

.dashboard-page .link-card-image-container {
    flex: 0 0 220px;
    width: 220px;
    min-width: 220px;
    height: 181px;
    margin-right: 20px;
}

.dashboard-page .link-card-image {
    width: 100%;
    height: 181px;
    min-height: 181px;
    border-radius: 14px;
    object-fit: cover;
}

.dashboard-page .link-card-link-wrapper,
.dashboard-page .link-card-content {
    min-width: 0;
    height: 100%;
}

.dashboard-page .link-card-content h2 {
    margin: 7px 38px 8px 0;
    font-size: 20px;
}

.dashboard-page .link-card-description {
    max-width: 760px;
    color: #a8b3d0;
    font-size: 14px;
    line-height: 1.55;
}

.dashboard-page .link-card-footer {
    display: grid;
    margin-top: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 20px;
    padding-top: 11px;
}

.dashboard-page .link-card-footer-link {
    grid-column: 1 / -1;
    color: #687595;
}

.dashboard-page .link-card-category {
    display: inline-block;
    border: 1px solid rgba(139, 93, 255, 0.28);
    border-radius: 7px;
    padding: 2px 7px;
    color: #c8b8ff;
    background: rgba(115, 66, 234, 0.16);
}

.dashboard-page .vote-buttons {
    align-self: end;
}

.dashboard-page .link-card-delete-button,
.dashboard-page .link-card-edit-image-button,
.dashboard-page .link-card-edit-title-button,
.dashboard-page .link-card-edit-description-button,
.dashboard-page .link-card-pin-button {
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #d7ddf0;
    background: rgba(5, 9, 27, 0.82);
    box-shadow: none;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.dashboard-page .link-card:hover .link-card-delete-button,
.dashboard-page .link-card:hover .link-card-edit-image-button,
.dashboard-page .link-card:hover .link-card-edit-title-button,
.dashboard-page .link-card:hover .link-card-edit-description-button,
.dashboard-page .link-card:hover .link-card-pin-button,
.dashboard-page .link-card button:focus-visible {
    opacity: 1;
}

.dashboard-page .link-card-delete-button {
    top: 9px;
    right: 9px;
    cursor: pointer;
}

.dashboard-page .link-card-edit-image-button {
    top: 9px;
    left: 9px;
}

.dashboard-page .link-card-pin-button {
    left: 11px;
    bottom: 11px;
    width: auto;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 10px;
}

.dashboard-page .link-card-edit-title-button,
.dashboard-page .link-card-edit-description-button {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    font-size: 11px;
}

.dashboard-page .pagination {
    order: 8;
}

@media (max-width: 800px) {
    .dashboard-profile-hero {
        min-height: 460px;
        background:
            linear-gradient(0deg, rgba(2, 5, 20, 0.96) 0%, rgba(2, 5, 20, 0.24) 75%),
            url("/static/images/index/amigoadvisor-dashboard-hero.webp") 65% center / cover no-repeat;
    }

    .dashboard-hero-copy {
        position: absolute;
        inset: auto 0 0;
        width: 100%;
        padding: 40px 24px 76px;
    }

    .dashboard-hero-copy h1 {
        font-size: clamp(42px, 11vw, 64px);
    }

    .dashboard-page #linkUploadForm {
        width: calc(100% - 28px);
        margin-top: -58px !important;
    }

    .dashboard-page .dashboard-toolbar {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .dashboard-page .dashboard-toolbar h2 {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .dashboard-page {
        padding-top: 12px;
    }

    .dashboard-profile-hero {
        min-height: 500px;
        border-radius: 20px;
    }

    .dashboard-hero-status {
        right: 10px;
        top: 10px;
    }

    .dashboard-hero-copy > p:last-child {
        font-size: 14px;
    }

    .dashboard-page #linkUploadForm {
        grid-template-columns: 1fr;
        margin-bottom: 16px !important;
    }

    .dashboard-page .category-btn {
        min-width: 92px;
        height: 70px;
    }

    .dashboard-page .user-header {
        align-items: center;
        flex-direction: row;
        text-align: left;
    }

    .dashboard-page .user-image-container {
        margin: 0 13px 0 0;
    }

    .dashboard-page .user-heading-group,
    .dashboard-page .user-page-title {
        text-align: left;
    }

    .dashboard-page .link-card {
        flex-direction: column;
    }

    .dashboard-page .link-card-image-container {
        width: 100%;
        height: 210px;
        margin: 0 0 14px;
    }

    .dashboard-page .link-card-image {
        height: 210px;
    }

    .dashboard-page .link-card-delete-button,
    .dashboard-page .link-card-edit-image-button,
    .dashboard-page .link-card-edit-title-button,
    .dashboard-page .link-card-edit-description-button,
    .dashboard-page .link-card-pin-button {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
