/* CoastalMC Network Portal V4 — utility-first, inspired by classic Minecraft portals.
   This file layers over style.css to preserve existing player-service forms and staff controls.
   Optional future world image: add your own CoastalMC screenshot and set --coastal-scene
   to url('/assets/coastal-lobby.webp'). No NetherGames imagery is redistributed. */
:root{--navy:#07182b;--canvas:#171b1d;--panel:#242c30;--panel-strong:#29343a;--panel-border:#4f6068;--gold:#f2c568;--gold-bright:#ffd88a;--body-copy:#d0dade;--coastal-scene:none}
html,body{background:var(--canvas)!important;color:#f4f3ed!important;font-family:Arial,Helvetica,sans-serif!important;user-select:none;-webkit-user-select:none}
input,textarea,select,pre,code,[contenteditable=true]{user-select:text!important;-webkit-user-select:text!important}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid #f6cf81!important;outline-offset:2px}
.app-shell{background:#171b1d!important;min-height:100vh}
.portal-header{height:68px;background:var(--navy)!important;border-bottom:2px solid #26384d;z-index:50}
.header-inner{max-width:1480px;width:calc(100% - 58px);gap:20px}
.header-brand{margin-right:8px;white-space:nowrap}
.header-wordmark{font-weight:800;font-size:23px;letter-spacing:-.9px}
.header-wordmark>span{color:var(--gold)}
.header-subtitle{font-size:9px;letter-spacing:1.4px;color:#9cacc3;margin-left:7px}
.header-links{gap:0;margin:0;justify-content:flex-start;min-width:0}
.header-links .nav-link{background:transparent!important;border-radius:0!important;padding:12px 10px!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.15px;color:#e3e8f0!important;min-height:49px}
.header-links .nav-link:hover{color:var(--gold)!important}
.header-links .nav-link.is-active{color:var(--gold)!important;box-shadow:inset 0 -3px var(--gold)}
.header-links .nav-quick-search{display:flex!important;gap:5px}
.nav-search-icon{font-size:19px;line-height:0.7;display:inline-flex}
.header-actions{gap:15px;flex:none}
.store-link{font-size:12px;font-weight:800;white-space:nowrap;color:#f4ca70}
.store-link:hover{color:#ffe1a0}
.user-menu-wrap{position:relative}
.header-user{border:1px solid #587080;border-radius:6px;background:#203447;color:#fff;min-height:37px;padding:4px 8px 4px 5px}
.header-user:hover,.header-user[aria-expanded=true]{background:#31475b;border-color:#9dafb8}
.header-user .discord-avatar-mark.small{width:29px;height:29px}
.account-chevron{font-size:17px;color:#d5c5a7;padding:0 3px}
.portal-account-menu{position:absolute;right:0;top:calc(100% + 9px);width:214px;background:#202939;border:1px solid #47576a;border-radius:7px;z-index:70;box-shadow:0 18px 45px #0008;padding:8px}
.portal-account-menu[hidden]{display:none!important}
.portal-account-menu button{display:block;width:100%;padding:12px 13px;border:0;text-align:left;border-radius:4px;background:transparent;color:#ecf0f5;font-size:12px;font-weight:700}
.portal-account-menu button:hover{background:#354359}
.portal-account-menu .account-signout{color:#ffc4ae}
.account-menu-divider{margin:5px 3px;border-top:1px solid #4a5362}
.mobile-toggle{color:#f5ebdc!important;background:#273c52!important}
.content-wrap{width:min(1110px,calc(100% - 56px));max-width:1110px;padding-top:40px;min-height:calc(100vh - 68px)}
.site-foot{color:#9eaab0}
.page-intro h1{font-size:32px;letter-spacing:-.8px}
.page-intro .overline,.overline{color:var(--gold);letter-spacing:1.25px}

/* Focused account center: grouped services, no decorative fake data. */
.account-center-page{max-width:1020px;margin:0 auto 25px}
.center-welcome{background:linear-gradient(130deg,#1d2a34 0%,#1b2226 100%);border:1px solid #455967;border-radius:10px;padding:33px 37px 30px;position:relative}
.center-welcome h1{font-size:clamp(28px,3.8vw,38px);letter-spacing:-.8px;margin:13px 0 12px;font-weight:800}
.center-welcome-row{display:flex;align-items:center;justify-content:space-between;gap:26px}
.center-welcome-row>div{flex:1;min-width:0}
.center-welcome-row p{color:#bfccd2;font-size:14px;line-height:1.7;margin:0;max-width:510px}
.center-profile{border:1px solid #60717a;border-radius:6px;background:#2b3a43;color:#f4f4f0;display:flex;align-items:center;gap:12px;text-align:left;padding:11px 13px;flex:none;min-width:230px}
.center-profile:hover{background:#354952}
.center-profile span:nth-child(2){flex:1;min-width:0}
.center-profile strong,.center-profile small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.center-profile strong{font-weight:800;font-size:13px}
.center-profile small{font-size:11px;color:#becbd0;margin-top:5px}
.center-profile>span:last-child{font-size:18px;color:var(--gold)}
.account-center-main{max-width:675px;margin:34px auto 0}
.center-section-head{text-align:center;margin-bottom:22px}
.center-section-head h2{font-size:25px;letter-spacing:-.5px;margin:0 0 8px}
.center-section-head p{font-size:13px;color:#b8c4ca;margin:0}
.account-center-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.portal-tile{border:1px solid #596a72;border-radius:7px;background:#293640;color:#f3f3ef;text-align:center;min-height:140px;padding:21px 13px 17px;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;transition:background .14s,border-color .14s,transform .14s}
.portal-tile:hover{border-color:#e8bd64;background:#354451;transform:translateY(-1px)}
.portal-tile:nth-child(-n+3){background:#e9b85e;border-color:#f0cd84;color:#151d27}
.portal-tile:nth-child(-n+3):hover{background:#ffcf76}
.portal-tile-icon{font-size:25px;line-height:1.1;min-height:30px;font-weight:800}
.portal-tile strong{font-size:13px;font-weight:800;display:block;margin-top:12px}
.portal-tile small{line-height:1.45;font-size:11px;font-weight:500;max-width:155px;margin-top:7px;color:#cbd6df}
.portal-tile:nth-child(-n+3) small{color:#3e3b30}
.center-bottom{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:30px 0}
.center-network,.center-stats{background:#222c31;border:1px solid #4e6269;border-radius:8px;padding:24px;display:flex;flex-direction:column;gap:12px}
.center-network h3,.center-stats h3{font-size:17px;margin:7px 0}
.center-network p,.center-stats p{color:#c2cdd1;font-size:12px;line-height:1.6;margin:0}
.center-network .action-button{align-self:flex-start;margin-top:auto}
.center-port{color:var(--gold);font-weight:700}
.center-stat-row{display:flex;gap:21px;margin-top:3px}
.center-stat-row span{font-size:12px;color:#bbc6ca}
.center-stat-row strong{display:block;font-size:16px;color:#f2c66e;margin-top:3px}
.center-stats .consumer-inline-link{margin-top:auto}
.center-bottom .action-button.outline{border-color:#536a77;background:#25313a;color:#f5ecdb}

/* Player-facing requests: preserve original answers and keep history separate. */
.record-tabs{display:flex;border-bottom:1px solid #43525a;gap:8px;margin:0 0 25px}
.record-tabs button{background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;color:#b7c5cc;font-size:13px;font-weight:800;padding:15px 20px 13px;margin-bottom:-1px}
.record-tabs button:hover{color:#f5d18a}
.record-tabs button.active,.record-tabs button[aria-selected=true]{border-bottom-color:var(--gold);color:var(--gold)}
.consumer-records{max-width:100%}
.consumer-record,.staff-record,.questionnaire,.template-choice,.consumer-no-records{border-color:#4b5d66!important}
.consumer-record,.staff-record{background:#232c31!important}
.consumer-record-answers pre{user-select:text!important;-webkit-user-select:text!important}

/* Enquiry launcher, search and settings popups. */
body.portal-modal-open{overflow:hidden}
.portal-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:19px;background:rgba(3,8,17,.76);backdrop-filter:blur(3px);z-index:100}
.portal-modal{display:flex;flex-direction:column;width:min(100%,590px);max-height:min(790px,calc(100vh - 38px));background:#2b3545;color:#f5f4f1;border:1px solid #617080;border-radius:11px;box-shadow:0 30px 100px rgba(0,0,0,.65);overflow:hidden}
.portal-modal.enquiry-modal{width:min(100%,555px)}
.portal-modal.search-modal{width:min(100%,640px);align-self:flex-start;margin-top:min(17vh,130px)}
.portal-modal.settings-modal{width:min(100%,500px)}
.modal-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 25px 20px;border-bottom:1px solid #4b5b6d;flex:none;background:#303d4e}
.modal-title h2{font-size:21px;line-height:1.2;font-weight:800;margin:9px 0 9px;color:#fff}
.modal-title p{color:#c2cbd3;font-size:12px;line-height:1.6;margin:0;max-width:450px}
.modal-title .overline{font-size:9px}
.modal-close{border:0;border-radius:5px;color:#cad3dc;background:#455367;font-size:24px;line-height:1;width:35px;height:35px;flex:none}
.modal-close:hover{background:#63748a;color:white}
.modal-categories{padding:18px 20px 8px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#788596 #2a3442;scrollbar-width:thin}
.modal-category-section{margin:0 0 22px}
.modal-category-section h3{font-size:11px;text-transform:uppercase;letter-spacing:1.2px;color:#bbc7d3;font-weight:800;margin:8px 0 14px}
.enquiry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.enquiry-choice{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:92px;background:#47546b;border:1px solid #60708a;border-radius:6px;padding:13px 8px;text-align:center;color:#f1f4f9}
.enquiry-choice:hover:not(:disabled){background:#d9a54e;color:#19212b;border-color:#f8d188}
.enquiry-choice:disabled{opacity:.44;cursor:not-allowed}
.enquiry-choice-symbol{font-size:20px;min-height:23px;font-weight:700;line-height:1}
.enquiry-choice-label{font-size:12px;font-weight:800;line-height:1.3}
.enquiry-choice-label small{display:none}
.enquiry-choice-arrow{position:absolute;right:10px;top:8px;font-size:11px;opacity:.6}
.modal-footnote{font-size:11px;color:#b7c5d2;line-height:1.6;padding:13px 23px 20px;margin:0;flex:none;border-top:1px solid #465568}
.portal-search-field{display:flex;gap:10px;align-items:center;margin:20px 23px 13px;border:1px solid #7695b3;background:#182436;border-radius:7px;padding:11px 14px}
.portal-search-field>span{font-size:23px}
.portal-search-field input{flex:1;min-width:0;background:transparent;border:0;color:#fff;outline:none!important;padding:2px;font-size:14px}
.portal-search-field input::placeholder{color:#98a9b9}
.portal-search-field kbd{font-family:inherit;font-size:10px;color:#bac5d4;border:1px solid #475a6c;padding:4px 6px;border-radius:3px}
.portal-search-results{padding:0 23px 15px;overflow-y:auto;min-height:100px}
.search-result{background:transparent;border:0;border-bottom:1px solid #455265;width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;padding:15px 10px;color:#fff}
.search-result:hover{background:#404d5d}
.search-result strong,.search-result small{display:block}
.search-result strong{font-size:13px}
.search-result small{color:#bdc8d1;font-size:11px;margin-top:5px}
.search-kind{font-size:10px;color:#f1cd85;text-transform:uppercase;letter-spacing:.4px}
.search-empty{padding:20px 10px;color:#bbc8d0;font-size:13px}
.settings-preference{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 25px;border-bottom:1px solid #4b596a}
.settings-preference strong{font-size:13px}
.settings-preference p{font-size:12px;color:#bdc9d3;line-height:1.6;margin:7px 0 0}
.portal-switch input{width:20px;height:20px;accent-color:var(--gold);cursor:pointer}
.portal-switch span{display:none}
.settings-modal .modal-footnote{border-top:0}
.portal-reduced-motion *, .portal-reduced-motion *::before,.portal-reduced-motion *::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* Real-data leaderboard and explicit vanilla XP tool. */
.network-rankings,.calculator-panel{background:#222b30;border:1px solid #4a5d67;border-radius:9px;padding:28px;margin-top:5px}
.network-rankings-head{display:flex;justify-content:space-between;gap:25px;align-items:flex-end;border-bottom:1px solid #44525b;padding-bottom:22px;margin-bottom:10px}
.network-rankings-head h2,.calculator-head h2{font-size:21px;margin:0 0 8px}
.network-rankings-head p,.calculator-head p{font-size:12px;color:#bfc9cf;margin:0;line-height:1.6}
.network-rankings-filters{display:flex;align-items:center;gap:14px}
.network-rankings-filters label{font-size:11px;color:#c1d0d6;font-weight:700}
.network-rankings-filters select,.network-rankings-filters input,.calculator-inputs input{display:block;margin-top:8px;background:#171f23;color:#f1f3f3;border:1px solid #5d707a;border-radius:5px;padding:10px 12px;font-size:13px;width:190px}
.network-leaderboard{border-collapse:collapse;width:100%;font-size:13px}
.network-leaderboard th{text-align:left;color:#aebec5;font-size:11px;text-transform:uppercase;letter-spacing:1px;border-bottom:1px solid #45555e;padding:16px 13px}
.network-leaderboard td{padding:15px 13px;border-bottom:1px solid #3b494e}
.network-leaderboard th:last-child,.network-leaderboard td:last-child{text-align:right}
.network-leaderboard td:nth-child(2){font-weight:700}
.leaderboard-position{font-size:12px;color:#bdc7cc}
.leaderboard-position.position-top{color:#f2c566;font-weight:800}
.leaderboard-note,.leaderboard-empty p,.calc-disclaimer{font-size:11px;color:#aebec4;line-height:1.65}
.leaderboard-note{margin:22px 0 0}
.leaderboard-empty{text-align:center;padding:50px 20px}
.leaderboard-empty strong{font-size:15px}
.leaderboard-empty p{max-width:450px;margin:10px auto 0}
.calculator-panel{max-width:740px;margin:0 auto}
.calculator-inputs{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:26px 0}
.calculator-inputs label{font-size:12px;font-weight:800;color:#e1e6e8}
.calculator-inputs input{width:100%}
.calculator-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.calculator-stats>div{background:#19242a;border:1px solid #475863;border-radius:6px;padding:18px 15px}
.calculator-stats span{display:block;font-size:11px;color:#b5c4cc;margin-bottom:10px}
.calculator-stats strong{font-size:24px;color:#f1c66b}
.calc-disclaimer{margin:20px 0 0}

@media(max-width:1200px){
 .header-inner{width:calc(100% - 30px);gap:10px}
 .header-links .nav-link{font-size:10px!important;padding:11px 7px!important}
 .header-subtitle{display:none}
}
@media(max-width:910px){
 .header-links{gap:0}
 .header-links .nav-link{font-size:10px!important;padding:10px 6px!important}
 .header-brand{margin-right:0}
 .center-profile{min-width:180px}
}
@media(max-width:760px){
 .portal-header{height:65px}
 .header-inner{width:calc(100% - 26px)}
 .header-links{display:none;background:#0e2237;position:absolute;top:65px;left:0;right:0;flex-direction:column;align-items:stretch;padding:12px 18px;border-bottom:1px solid #465b70}
 .header-links.open{display:flex}
 .header-links .nav-link{font-size:13px!important;min-height:43px;justify-content:flex-start;padding:12px 13px!important}
 .header-actions{gap:8px}
 .store-link{display:none}
 .header-wordmark{font-size:20px}
 .header-user{padding:3px 5px}
 .header-user>span:nth-child(2){max-width:86px;overflow:hidden;text-overflow:ellipsis}
 .content-wrap{width:calc(100% - 28px);padding-top:24px}
 .center-welcome{padding:26px 22px}
 .center-welcome-row{align-items:flex-start;flex-direction:column}
 .center-profile{width:100%;max-width:400px}
 .account-center-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .center-bottom{grid-template-columns:1fr}
 .network-rankings-head{align-items:stretch;flex-direction:column}
 .network-rankings-filters{width:100%}
 .network-rankings-filters label{flex:1;min-width:0}
 .network-rankings-filters select,.network-rankings-filters input{width:100%}
}
@media(max-width:460px){
 .portal-tile{min-height:123px;padding:17px 10px}
 .portal-tile strong{font-size:12px}
 .portal-tile small{font-size:10px}
 .center-welcome h1{font-size:29px}
 .modal-title{padding:18px}
 .modal-categories{padding:13px}
 .enquiry-grid{gap:7px}
 .enquiry-choice{min-height:85px;padding:10px 5px}
 .enquiry-choice-label{font-size:11px}
 .portal-overlay{padding:9px}
 .portal-modal{max-height:calc(100vh - 18px)}
 .portal-search-field{margin:16px 15px}
 .portal-search-results{padding:0 15px}
 .network-rankings,.calculator-panel{padding:20px 16px}
 .calculator-stats{grid-template-columns:1fr}
 .record-tabs button{padding:13px 10px}
}


/* Uniform vector iconography; no platform-dependent glyphs or emoji placeholders. */
.portal-svg{display:block;width:24px;height:24px;flex:none;overflow:visible}
.portal-tile-icon .portal-svg{width:27px;height:27px}
.enquiry-choice-symbol .portal-svg{width:22px;height:22px}
.nav-search-icon .portal-svg{width:17px;height:17px}
.portal-search-field .portal-svg{width:19px;height:19px}
.auth-discord-symbol{display:inline-flex;align-items:center;justify-content:center;flex:none}
.auth-discord-symbol .portal-svg{width:19px;height:19px}
.enquiry-choice:disabled .enquiry-choice-label small{display:block;font-size:10px;font-weight:600;margin-top:4px;color:#d0ced2}
.enquiry-choice:hover:not(:disabled) .portal-svg{color:#19212b}


/* V4 visual refinement — player-facing pages (no API or schema changes). */
.account-center-page{margin-bottom:14px}
.account-center-main{margin-top:29px}
.center-section-head{margin-bottom:19px}
.center-welcome{padding:29px 34px 27px;border-radius:8px}
.center-welcome h1{margin:12px 0 9px}
.center-welcome p{line-height:1.55}
.account-center-grid{gap:11px}
.portal-tile{min-height:128px;padding-top:17px;padding-bottom:14px}
.portal-tile strong{margin-top:9px}
.portal-tile small{margin-top:5px}

/* One utility strip replaces the two large footer cards. */
.network-quickbar{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);margin:25px 0 0;background:#222c31;border:1px solid #4e6269;border-radius:7px;overflow:hidden}
.network-quickbar-server{min-width:0;display:flex;align-items:center;gap:13px;padding:18px 22px}
.network-quickbar-server img{width:52px;height:52px;flex:none;object-fit:contain;image-rendering:pixelated}
.network-quickbar-server>div{min-width:0;flex:1}
.network-quickbar-server .overline,.network-quickbar-status .overline{font-size:9px;letter-spacing:1.15px}
.network-quickbar-server h3{font-size:16px;margin:6px 0 5px;line-height:1.2}
.network-quickbar-server p{font-size:11px;color:#cad6d8;margin:0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.network-server-host{font-weight:800;color:#f1d398}
.network-port{color:#adbcc5}
.network-copy-button{flex:none;display:inline-flex;align-items:center;gap:7px;border:1px solid #6b7a80;background:#2a3840;color:#f3eee5;border-radius:5px;padding:9px 11px;font-size:11px;font-weight:800;min-height:36px}
.network-copy-button:hover{border-color:#dfb76b;background:#384750}
.network-copy-button .portal-svg{width:15px;height:15px}
.network-quickbar-status{border-left:1px solid #4e6269;display:flex;flex-direction:column;justify-content:center;padding:15px 22px;gap:10px;min-width:0}
.network-quickbar-label{display:flex;align-items:center;gap:8px;min-width:0}
.network-quickbar-label strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.network-quickbar-label button{background:transparent;border:0;color:#f2c568;font-size:10px;font-weight:800;margin-left:auto;white-space:nowrap;padding:3px 0}
.network-quickbar-label button:hover{text-decoration:underline}
.connection-indicator{width:7px;height:7px;border-radius:50%;background:#a0adb9;flex:none}
.connection-indicator.is-linked{background:#7dce9a}
.network-mini-stats{display:flex;gap:18px;align-items:center}
.network-mini-stats span{font-size:10px;color:#b5c6cc}
.network-mini-stats strong{font-size:13px;color:#f2c568;margin-left:5px}
.network-quickbar-status>small{color:#8fabb8;font-size:10px;line-height:1.5}

/* The game identity is a primary player profile, not a second login box. */
.minecraft-profile{position:relative;background:#222c30!important;border-color:#55686b!important;overflow:hidden;border-radius:8px}
.minecraft-profile:before{content:'';height:3px;position:absolute;left:0;top:0;right:0;background:linear-gradient(90deg,#628e53 0 15%,#497f45 15% 34%,#75a25b 34% 52%,#5a8f50 52% 80%,#426f3d 80%)}
.minecraft-profile-top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 27px 20px}
.minecraft-profile-title{display:flex;align-items:center;gap:19px;min-width:0}
.minecraft-block-art{flex:none;width:86px;height:86px;object-fit:contain;image-rendering:pixelated}
.minecraft-profile-title>div{min-width:0}
.minecraft-profile-title h2{font-size:clamp(22px,2.7vw,29px);letter-spacing:-.7px;color:#f5f3ec;overflow-wrap:anywhere;margin:9px 0 9px;line-height:1.1}
.minecraft-profile-tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.minecraft-profile-tags>span{font-size:11px;color:#bccec8}
.minecraft-profile-tags .minecraft-rank{background:#324e48;border:1px solid #5b937b;border-radius:3px;padding:4px 7px;color:#d2ecdb;font-weight:800;text-transform:capitalize}
.minecraft-profile-footer{border-top:1px solid #465b61;padding:13px 27px;display:flex;gap:28px;align-items:center;background:#1d282d}
.minecraft-profile-footer>div{min-width:85px;display:flex;flex-direction:column;gap:5px}
.minecraft-profile-field{color:#8fb0b7;font-size:9px;font-weight:800;letter-spacing:1px}
.minecraft-profile-footer strong{font-size:12px;color:#e3eae8}
.minecraft-profile-action{margin-left:auto;border:1px solid #556d73;background:#273840;color:#f0ddba;border-radius:5px;min-height:36px;padding:8px 11px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:800;white-space:nowrap}
.minecraft-profile-action:hover{background:#354a53}
.minecraft-profile-action .portal-svg{width:15px;height:15px}
.minecraft-link-setup{border-top:1px solid #4b646a}
.profile-info-grid{display:grid;grid-template-columns:1fr 1.16fr;gap:14px;margin-top:15px}
.profile-info-grid>.surface{background:#222b30!important;border-color:#4d6167!important;min-width:0;border-radius:7px}
.profile-card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px 16px;border-bottom:1px solid #46575e}
.profile-card-heading h2{font-size:16px;margin:6px 0 0}
.profile-discord-identity{display:flex;gap:12px;align-items:center;padding:19px 20px 18px}
.profile-discord-identity strong,.profile-discord-identity small{display:block}
.profile-discord-identity strong{font-size:15px}
.profile-discord-identity small{font-size:11px;color:#b5c3ca;margin-top:5px}
.profile-facts{margin:0;padding:0}
.profile-facts>div{display:flex;justify-content:space-between;gap:10px;padding:12px 20px;border-top:1px solid #43535a;font-size:11px}
.profile-facts dt{color:#aabcc4}
.profile-facts dd{font-weight:800;margin:0;color:#f1ede4;overflow-wrap:anywhere;text-align:right}
.profile-discord-id{font-family:ui-monospace,monospace;font-size:11px;user-select:text!important;-webkit-user-select:text!important}
.profile-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.profile-stat-grid>div{padding:16px 20px;border-bottom:1px solid #415359;min-width:0}
.profile-stat-grid>div:nth-child(odd){border-right:1px solid #415359}
.profile-stat-grid span{display:block;color:#a9b9c0;font-size:11px;margin-bottom:7px}
.profile-stat-grid strong{font-size:19px;color:#eec56f;word-break:break-word}
.profile-sync-note{font-size:10px!important;line-height:1.55!important;color:#a5b6bf!important;margin:0!important;padding:14px 20px}
.security-surface{margin-top:15px!important;padding:19px 22px!important;border-color:#4e6067!important;background:#222b30!important}
.security-surface h2{margin:6px 0;font-size:16px}
.security-surface p{margin:0;font-size:11px;line-height:1.55}

/* Tickets and applications share an easily scanned, understated record style. */
.consumer-records{display:grid;gap:12px}
.refined-record{border-radius:7px!important;padding:0!important;overflow:hidden;position:relative}
.refined-record:before{content:'';position:absolute;top:0;bottom:0;left:0;width:3px;background:#6e8590}
.refined-record:has(.state-pending):before,.refined-record:has(.state-in_review):before{background:#e6b95f}
.refined-record:has(.state-answered):before,.refined-record:has(.state-accepted):before{background:#7fc3a1}
.refined-record:has(.state-denied):before{background:#be7777}
.refined-record-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 23px 0}
.refined-record-kind{display:inline-flex;align-items:center;gap:9px;color:#ebc16f;font-size:11px;font-weight:800;line-height:1.4}
.refined-record-kind .portal-svg{width:17px;height:17px}
.refined-record .state{margin-left:auto;flex:none}
.refined-record>h3{font-size:18px;line-height:1.3;letter-spacing:-.35px;margin:13px 23px 12px;overflow-wrap:anywhere}
.refined-record-meta{display:flex;gap:15px;flex-wrap:wrap;color:#a6b7c0;font-size:11px;padding:0 23px 19px}
.refined-record-meta span+span{border-left:1px solid #62737a;padding-left:15px}
.refined-record .consumer-staff-reply{margin:0 23px 17px;border:1px solid #37675a;border-radius:6px;background:#1b332f;padding:14px 17px}
.refined-record .consumer-staff-reply p{color:#cfe9e0;white-space:pre-wrap;overflow-wrap:anywhere}
.record-reply-heading{display:flex;gap:8px;align-items:center;color:#abe4c8;font-size:11px}
.record-reply-heading .portal-svg{width:16px;height:16px}
.refined-record-actions{border-top:1px solid #45555b;padding:0 23px;display:flex;align-items:center;gap:25px;flex-wrap:wrap;min-height:56px;background:#1e292e}
.refined-record-actions .consumer-record-answers{flex:none;border:none!important;padding:0;margin:0;background:transparent}
.refined-record-actions .consumer-record-answers>summary{padding:17px 0!important;color:#edc16e;font-size:11px;font-weight:800}
.refined-record-actions .consumer-record-answers[open]{flex-basis:100%;order:3;padding:4px 0 14px!important}
.refined-record-actions .consumer-record-answers pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;background:#171f22;border:1px solid #53626a;border-radius:5px;padding:15px;font-size:12px}
.refined-no-answers{font-size:11px;color:#9caeb7}
.refined-record-actions>.ticket-thread{border:0!important;margin:0!important;padding:0!important;flex:1;min-width:140px}
.refined-record-actions .ticket-thread>.consumer-inline-link{margin:0;font-size:11px;display:inline-flex;align-items:center;gap:7px}
.refined-record-actions .ticket-thread .portal-svg{width:15px;height:15px}
.refined-record-actions .ticket-thread:has(.thread-content:not(:empty)){flex-basis:100%}
.refined-record-actions .thread-content{padding-top:6px;padding-bottom:17px}
.refined-record-actions .thread-message{max-width:100%}
.refined-record-actions .consumer-record-answers summary span{margin-left:8px}

/* Data-dependent leaderboard empty state remains explicit, without fabricated results. */
.refined-leaderboard-empty{padding:35px 22px 31px;text-align:center}
.leaderboard-void-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 15px;background:#293840;border:1px solid #4f616c;border-radius:7px;color:#f2c568}
.leaderboard-void-icon .portal-svg{width:30px;height:30px}
.refined-leaderboard-empty strong{font-size:16px;display:block;margin-top:5px}
.refined-leaderboard-empty p{max-width:430px;margin:11px auto 17px}
.refined-leaderboard-empty .consumer-inline-link{font-size:11px;font-weight:800}

/* Layout refinement on tablets / phones. */
@media(max-width:850px){
 .network-quickbar{grid-template-columns:1fr}
 .network-quickbar-status{border-left:0;border-top:1px solid #4e6269}
 .minecraft-profile-footer{gap:17px}
}
@media(max-width:730px){
 .profile-info-grid{grid-template-columns:1fr}
 .minecraft-profile-top{padding:18px;gap:10px}
 .minecraft-profile-footer{padding:13px 17px;gap:16px;flex-wrap:wrap}
 .minecraft-profile-action{margin-left:0}
 .center-welcome{padding:23px 21px}
 .network-quickbar-server{padding:16px 18px}
 .network-quickbar-status{padding:16px 18px}
 .refined-record-head{padding:18px 17px 0}
 .refined-record>h3{margin:13px 17px 12px}
 .refined-record-meta{padding:0 17px 16px}
 .refined-record-actions{padding:0 17px;gap:16px}
 .refined-record .consumer-staff-reply{margin:0 17px 16px}
}
@media(max-width:460px){
 .network-quickbar-server{gap:10px;flex-wrap:wrap}
 .network-quickbar-server img{width:45px;height:45px}
 .network-copy-button{width:100%;justify-content:center}
 .network-quickbar-label{flex-wrap:wrap}
 .network-quickbar-label button{margin-left:auto}
 .minecraft-block-art{width:66px;height:66px}
 .minecraft-profile-title{gap:12px}
 .minecraft-profile-title h2{font-size:20px}
 .minecraft-profile-top>.state{display:none}
 .minecraft-profile-footer>div{min-width:40%}
 .refined-record-head .state{font-size:9px;padding:6px 8px}
 .refined-record>h3{font-size:16px}
 .refined-record-actions{display:block;padding:0 17px 10px}
 .refined-record-actions>.ticket-thread{padding:8px 0!important}
 .profile-card-heading{padding:16px}
 .profile-stat-grid>div{padding:15px}
}



/* CoastalMC Harbor: original Minecraft-inspired illustrated hub backdrop.
   Scene stored locally at /assets/coastalmc-hub-background.svg.
   The desktop view has a fixed darkened scene; mobile uses normal scroll positioning.
   All account forms remain readable and panel colors match the store. */
html{background:#0d151c!important}
html body{
  background-color:#101923!important;
  background-image:
    linear-gradient(90deg,rgba(8,15,21,.24) 0%,rgba(9,16,23,.31) 48%,rgba(8,15,21,.25) 100%),
    linear-gradient(0deg,rgba(8,15,22,.37),rgba(8,15,22,.04) 46%,rgba(8,15,22,.14)),
    url('/assets/coastalmc-hub-background.svg')!important;
  background-position:center,center,center center!important;
  background-size:cover,cover,cover!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
}
body .app-shell,body .main-shell,body .auth-screen{background:transparent!important}
body .app-shell{min-height:100vh;isolation:isolate}
body .content-wrap,body .main-shell{background:transparent!important}
body .center-welcome{background:rgba(26,35,43,.96)!important;backdrop-filter:blur(3px)}
body .network-quickbar{background:rgba(28,39,45,.96)!important}
body .portal-tile:not(:nth-child(-n+3)){background:rgba(37,50,61,.97)}
body .portal-tile:not(:nth-child(-n+3)):hover{background:rgba(54,70,81,.98)}
body .minecraft-profile,body .profile-info-grid>.surface,body .security-surface,body .refined-record,body .network-rankings,body .calculator-panel{background:rgba(31,43,49,.97)!important}
body .site-foot{border-top-color:rgba(190,208,212,.28);color:#c2d0d5}
body .auth-screen{min-height:100vh}
body .auth-card{background:#222d34!important}
@media(max-width:760px){
 html body{background-attachment:scroll!important;background-position:center,center,center top!important}
 body .center-welcome{backdrop-filter:none}
}
@media(prefers-reduced-transparency:reduce){
 html body{background-image:linear-gradient(rgba(11,18,25,.68),rgba(11,18,25,.74)),url('/assets/coastalmc-hub-background.svg')!important}
 body .center-welcome{backdrop-filter:none}
}
