/* LunarSMP V5 - experiencia, personalización y seguridad visual */
html{scroll-padding-top:118px}
body{overflow-x:clip}
.site-header{position:sticky;top:0;z-index:60;background:rgba(8,16,24,.94);backdrop-filter:blur(19px);-webkit-backdrop-filter:blur(19px);border-bottom:1px solid #35616b80;box-shadow:0 8px 28px #030b1159;padding:0 14px;margin:0 -14px}
section[id],main[id]{scroll-margin-top:120px}
.notification-bell{position:relative;flex:0 0 auto;width:36px;height:36px;display:grid;place-items:center;color:#8aeee4;font-size:23px;background:#173139;border:1px solid #37656c;border-radius:10px}
.notification-bell:hover{background:#27515b}
.notification-bell span{position:absolute;top:-8px;right:-8px;min-width:21px;height:21px;padding:0 4px;display:grid;place-items:center;border-radius:100px;background:#f97a87;color:#230d13;font-weight:900;font-size:10px;border:2px solid #09131a}
.notification-bell span[hidden]{display:none!important}
.social-hero-person{flex-wrap:wrap}.social-hero-person .social-badges{flex:1 1 100%}
.social-tenure,.social-crown{display:inline-flex;align-items:center;gap:5px;margin:4px 5px 2px 0;border:1px solid #8361a7aa;background:#45315a80;color:#dbc4ff;border-radius:30px;padding:5px 9px;font-size:10px;font-weight:900;letter-spacing:.15px;white-space:normal}
.social-crown{color:#ffe4a1;background:#81511f6c;border-color:#c99b49ba}
.social-public-name .social-tenure,.social-public-name .social-crown{margin:3px 5px 1px 0}
.social-profile-links{border:1px solid #3a5963;border-radius:12px;padding:15px;background:#122530;margin:12px 0}.social-profile-links>strong{font-size:12px}.social-links-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
.social-link-chip{display:inline-flex;align-items:center;gap:5px;color:#adf9ee;border:1px solid #4b8e8a;background:#1d454a;padding:9px 15px;border-radius:10px;font-size:11px;font-weight:800}.social-link-chip:hover{background:#2d6969;transform:translateY(-1px)}.social-link-chip:after{content:'↗';font-size:12px}
.social-social-field{padding:16px;border:1px solid #35535e;border-radius:12px;background:#132b354d}.social-social-field>strong{font-size:13px}.social-social-field>p{font-size:11px;color:#90a9b7;line-height:1.6}
.social-link-editor{display:grid;gap:9px}.social-link-edit-row{display:grid;grid-template-columns:126px 1fr;gap:9px}
.social-link-edit-row select,.social-owner-select{color:#e3f7f3;background:#0c1f29;border:1px solid #385d67;border-radius:9px;padding:10px 8px;font:inherit;font-size:12px;min-width:0}
.social-link-edit-row input{min-width:0;padding:10px!important;font-size:12px!important}
.social-banner-preview{min-height:100px;border-radius:11px;border:1px solid #43858a;background:linear-gradient(120deg,#1d6068,#183544);background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;color:#e4fffb;font-size:11px;text-shadow:0 1px 5px #001a22;padding:12px;text-align:center;margin:14px 0}
#social-banner-file{font-size:11px;width:100%;color:#a4bac2}.social-settings-card .social-inline-actions{margin-top:13px}
.social-public-cover.with-banner{background-size:cover;background-position:center}
.social-public-cover.with-banner>span{background:#081921ae;border:1px solid #c2f1e350;border-radius:7px;padding:7px;font-size:10px}
.social-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:22px}
.social-theme-choice{min-width:0;display:flex;flex-direction:column;gap:8px;padding:13px;border-radius:13px;border:1px solid #385764;color:#e8f7f3;background:#152a35;text-align:left;transition:border .16s,transform .16s}
.social-theme-choice:hover{transform:translateY(-2px);border-color:#59bcb3}.social-theme-choice.selected{border:2px solid #62f2db;box-shadow:0 0 0 2px #2c887c35}.social-theme-choice strong{font-size:13px}.social-theme-choice small{font-size:11px;color:#97afba;line-height:1.5}
.theme-swatch{display:block;height:110px;width:100%;border:1px solid #52717a;border-radius:9px;background:linear-gradient(90deg,#1f595d 30%,#0d1b27 30% 100%);position:relative;overflow:hidden}
.theme-swatch:after{content:'';display:block;position:absolute;top:20%;left:42%;width:43%;height:20%;border-radius:6px;background:#4ce6d2}
.theme-swatch.dark{background:linear-gradient(90deg,#0b1825 30%,#03080d 30% 100%)}.theme-swatch.light{background:linear-gradient(90deg,#d6e7e9 30%,#f8fcfd 30% 100%)}
.social-notification{display:flex;width:100%;align-items:flex-start;gap:11px;text-align:left;padding:15px;background:#122b35;border:1px solid #365b64;border-radius:12px;color:#e0f3f2}.social-notification.unread{background:#204a4f;border-color:#63bcae}.social-notification:hover{background:#2a5057}
.social-notification-dot{color:#5ce5d7;font-size:14px}.social-notification-info{display:flex;flex:1;flex-direction:column;gap:6px}.social-notification-info strong{font-size:12px}.social-notification-info small{font-size:10px;color:#9ab2c0}
.social-owner-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}.social-owner-controls small{font-size:10px;color:#eac3a2}.social-owner-controls .social-btn{font-size:10px;padding:9px 11px}
.ranking-crown{font-size:18px;filter:drop-shadow(0 1px 7px #e8b44f66);line-height:1}
/* Tema oscuro profundo, distinto al diseño normal. */
html[data-theme="dark"]{--bg:#03070d;--surface:#08131d;--surface2:#0e1b25;--outline:#1a2d39;color-scheme:dark}
html[data-theme="dark"] .site-header{background:rgba(3,7,13,.97)}
html[data-theme="dark"] .social-main{background:#050b12}
html[data-theme="dark"] .social-sidebar{background:linear-gradient(150deg,#091522,#050b15)}
html[data-theme="dark"] .social-dialog,html[data-theme="dark"] .social-public-dialog{background:#050b12}
html[data-theme="dark"] .social-hero-card{background:linear-gradient(115deg,#0a3538,#07131e)}
html[data-theme="dark"] .social-settings-card,html[data-theme="dark"] .social-profile-links,html[data-theme="dark"] .social-stat-block{background:#0b1923}
html[data-theme="dark"] .social-messenger,html[data-theme="dark"] .social-person-card{background:#0a1620}
/* Tema blanco - todas las superficies principales, modales, tablas y campos. */
html[data-theme="light"]{--bg:#f6fafc;--surface:#e6f0f4;--surface2:#e8f2f5;--outline:#cadae3;--white:#14303d;--muted:#526e7d;--aqua:#0f8f88;color-scheme:light}
html[data-theme="light"] body{color:#12313d;background:#f6fafc}
html[data-theme="light"] body:before{background-image:radial-gradient(#10496015 1px,transparent 1px)}
html[data-theme="light"] .aurora{opacity:.17}
html[data-theme="light"] .site-header{background:rgba(249,252,253,.96);border-color:#bed6dd;box-shadow:0 7px 24px #a5bcc129}
html[data-theme="light"] .desktop-nav a{color:#4d6571}html[data-theme="light"] .desktop-nav a:hover,html[data-theme="light"] .desktop-nav .nav-active{color:#0b7e79}
html[data-theme="light"] .hero-copy>p,html[data-theme="light"] .section-heading p{color:#4f6f7d}
html[data-theme="light"] .stat-card,html[data-theme="light"] .rankings-panel,html[data-theme="light"] .discover-card{background:#fff;border-color:#d0e0e6;box-shadow:0 10px 36px #1e4d5a0b}
html[data-theme="light"] .stat-title,html[data-theme="light"] .stat-foot,html[data-theme="light"] .stat-kicker{color:#526c77}
html[data-theme="light"] .panel-head,html[data-theme="light"] .table-header,html[data-theme="light"] .panel-footer{background:#eaf3f5;border-color:#cddde2;color:#436271}
html[data-theme="light"] .rank-row{color:#163743;border-color:#dce8eb}
html[data-theme="light"] .rank-row:hover{background:#dceeed}
html[data-theme="light"] .rank-player strong,html[data-theme="light"] .rank-number,html[data-theme="light"] .rank-total{color:#1f424d}
html[data-theme="light"] .podium-card{background:#e9f6f6;border-color:#b4d6d4;color:#17434a}
html[data-theme="light"] .search,html[data-theme="light"] .discover-search{background:#f8fcfc;border-color:#b9d3d9;color:#1a5960}
html[data-theme="light"] input,html[data-theme="light"] select{color:#183641}
html[data-theme="light"] .join-section{background:linear-gradient(120deg,#d4eee9,#c8e8f2);color:#1d4549;border-color:#bdd8de}
html[data-theme="light"] .join-section h2,html[data-theme="light"] .join-section p,html[data-theme="light"] .join-ip strong{color:#14444a}
html[data-theme="light"] .footer,html[data-theme="light"] .footer p{color:#526f79}
html[data-theme="light"] .auth-dialog,html[data-theme="light"] .player-dialog{background:#fff;color:#1a3844;border-color:#c2d9df}
html[data-theme="light"] .auth-dialog input,html[data-theme="light"] .auth-form input{color:#203b43;background:#f7fcfd;border-color:#bfd9df}
html[data-theme="light"] .chat-popover,html[data-theme="light"] .chat-pop-head,html[data-theme="light"] .chat-compose{background:#eef6f7;color:#183b44;border-color:#c4dce0}
html[data-theme="light"] .chat-message,html[data-theme="light"] .chat-message-main{color:#1b3843}
html[data-theme="light"] .chat-input-wrap{background:#fff;color:#234650}
html[data-theme="light"] .chat-input-wrap input{background:transparent;color:#19363d}
html[data-theme="light"] .social-dialog,html[data-theme="light"] .social-public-dialog{background:#fff;color:#1d3742;border-color:#cadce2;box-shadow:0 30px 95px #526c7766}
html[data-theme="light"] .social-sidebar{background:#e8f2f5;border-color:#c9dade}
html[data-theme="light"] .social-main{background:#fff;color:#1a3740}
html[data-theme="light"] .social-main-toolbar{color:#4c727c;border-color:#d2e0e5}
html[data-theme="light"] .social-main-toolbar button{background:#e7f1f3;color:#355561;border-color:#b3ccd4}
html[data-theme="light"] .social-side-nav>button{color:#405c67}html[data-theme="light"] .social-side-nav>button:hover{background:#d1e8e8;color:#0e585c}html[data-theme="light"] .social-side-nav>button.active{background:#c4e8e1;color:#146764}
html[data-theme="light"] .social-current{background:#d8ebed;border-color:#afcdd1}html[data-theme="light"] .social-current strong{color:#183e4c}
html[data-theme="light"] .social-heading p,html[data-theme="light"] .social-muted,html[data-theme="light"] .social-public-sub,html[data-theme="light"] .social-settings-card>p{color:#547581}
html[data-theme="light"] .social-hero-card{background:linear-gradient(125deg,#d0eeed,#e6f4f6);border-color:#abd5d6;color:#123b48}
html[data-theme="light"] .social-hero-lines{border-color:#b2d5d7}html[data-theme="light"] .social-hero-lines span{color:#3f707d}
html[data-theme="light"] .social-mini-grid>div,html[data-theme="light"] .social-person-card,html[data-theme="light"] .social-settings-card,html[data-theme="light"] .social-profile-links,html[data-theme="light"] .social-social-field,html[data-theme="light"] .social-public-counts>div,html[data-theme="light"] .social-stat-block,html[data-theme="light"] .social-public-stats{background:#f0f7f9;border-color:#c4dce1;color:#193a45}
html[data-theme="light"] .social-person-meta strong,html[data-theme="light"] .social-person-meta small{color:#365967}
html[data-theme="light"] .social-fields input,html[data-theme="light"] .social-fields textarea,html[data-theme="light"] .social-link-edit-row select,html[data-theme="light"] .social-owner-select,html[data-theme="light"] .social-search input,html[data-theme="light"] .social-dm-form textarea{background:#fff;color:#15313d;border-color:#b7cfd7}
html[data-theme="light"] .social-search{background:#f8fcfc;border-color:#a9cbd0}
html[data-theme="light"] .social-info-note,html[data-theme="light"] .social-empty{background:#e9f4f4;border-color:#bfd6dc;color:#3d626d}
html[data-theme="light"] .social-small-rank,html[data-theme="light"] .social-link-chip{background:#d9f4ee;color:#136c68;border-color:#a3d5cc}
html[data-theme="light"] .social-theme-choice{background:#edf6f7;color:#173943;border-color:#c4dae0}html[data-theme="light"] .social-theme-choice small{color:#4c6b77}
html[data-theme="light"] .social-notification{background:#eff7f8;color:#1b404b;border-color:#c5dce2}html[data-theme="light"] .social-notification.unread{background:#d4f3ed;border-color:#9acdc4}html[data-theme="light"] .social-notification-info small{color:#5d7984}
html[data-theme="light"] .social-messenger,html[data-theme="light"] .social-inbox{background:#f4f9fb;border-color:#bdd3d9}html[data-theme="light"] .social-inbox-title,html[data-theme="light"] .social-thread-head,html[data-theme="light"] .social-dm-form,html[data-theme="light"] .social-thread-hint{background:#e6f1f4;color:#466773;border-color:#c4d8de}
html[data-theme="light"] .social-inbox-row{color:#1e3d47;border-color:#cedee3}html[data-theme="light"] .social-inbox-row:hover,html[data-theme="light"] .social-inbox-row.selected{background:#daeeee}
html[data-theme="light"] .social-dm-bubble{background:#dfebf0;border-color:#b6d3da;color:#173944}html[data-theme="light"] .social-dm-bubble.mine{background:#bfece3;border-color:#87c8bb}
html[data-theme="light"] .social-public-bio,html[data-theme="light"] .social-public-joined{color:#446875;border-color:#c3d7de}
html[data-theme="light"] .social-tenure{background:#eee5fb;color:#673a8c;border-color:#cbb3e3}html[data-theme="light"] .social-crown{background:#fff0cb;color:#8a571e;border-color:#ddae62}
html[data-theme="light"] .notification-bell{background:#e2f2f1;color:#157873;border-color:#a2cfcc}
@media(max-width:900px){.social-theme-grid{grid-template-columns:1fr}.theme-swatch{height:70px}}
@media(max-width:650px){.site-header{margin:0 -7px;padding:10px 7px;top:0;z-index:80}.desktop-nav{padding-bottom:5px}.notification-bell{width:29px;height:29px;font-size:18px}}
@media(max-width:520px){.social-link-edit-row{grid-template-columns:1fr}.social-owner-controls{margin-left:0;width:100%}.social-owner-controls select{flex:1}.social-public-cover{min-height:104px}}

/* Evita que el nombre y las insignias pisen la portada del perfil. */
.social-public-head{align-items:flex-start}
.social-public-name{padding-top:38px}
