@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
       font-family: 'Poppins',sans-serif;
}

.profile-page {
     color: #f5f6fa;
     background: #000;
}
.profile-actions {
     display: flex;
     width: min(760px, 100%);
     justify-content: flex-end;
     gap: 9px;
     margin: 18px auto 12px;
}
.profile-action {
     display: inline-flex;
     min-height: 38px;
     align-items: center;
     justify-content: center;
     padding: 8px 14px;
     border: 1px solid #303642;
     border-radius: 9px;
     background: #12151d;
     color: #e4e6eb;
     font: inherit;
     font-size: .8rem;
     font-weight: 700;
     text-decoration: none;
     cursor: pointer;
     transition: .2s ease;
}
.profile-action:hover { border-color: #ffab4a; color: #ffab4a; }
.profile-action.admin { border-color: #ffab4a; background: #ffab4a; color: #17110a; }
.profile-action.admin:hover { background: #ffc078; }
.profile-action.logout { border-color: #63353a; color: #ff9299; }
.profile-action.logout:hover { border-color: #ff6b6b; background: #251316; }
#banner-wrapper,
#profile-container,
.k-friends,
#history-list {
     width: min(760px, 100%);
}
#banner-wrapper {
     margin: 0 auto;
     background: linear-gradient(135deg,#171a22,#312416);
     border-color: #292e39;
}
#banner-wrapper::after {
     background: linear-gradient(to bottom, transparent, #000);
}
#profile-container {
     padding: 20px 22px;
     border: 1px solid #252a34;
     border-radius: 16px;
     background: #10131a;
     box-shadow: 0 16px 42px rgba(0,0,0,.24);
}
#profile-container div,
#profile-container p,
#profile-container h1,
#profile-container span,
#profile-container code { background-color: transparent; }
#dashboard-nome {
     color: #f5f6fa !important;
     -webkit-text-stroke: 0;
     font-size: clamp(1.45rem, 4vw, 2rem);
     letter-spacing: -.04em;
}
#profile-container #avatar-letra { background: #ffab4a; }
.profile-page .k-friends {
     margin: 16px auto 0;
     border-color: #252a34;
     border-radius: 14px;
     background: linear-gradient(135deg, #12151d, #0d1016 78%);
     box-shadow: 0 12px 32px rgba(0,0,0,.16);
}
.profile-page .k-friends-head {
     min-height: 56px;
     padding: 14px 18px;
     border-bottom-color: #252a34;
}
.profile-page .k-friends-head h2 {
     color: #f5f6fa;
     font-size: .98rem;
}
.profile-page .k-friends-group > h3 { color: #9da4b1; }
.profile-page .friend-row {
     min-height: 54px;
     padding: 10px 16px;
     border-bottom-color: #20242e;
}
.profile-page .friend-row:hover { background: rgba(255,255,255,.025); }
.profile-page .friend-row .f-name { color: #f1f2f5; }
.profile-page #history-list {
     padding: 12px;
     border: 1px solid #252a34;
     border-radius: 14px;
     background: #10131a;
}
.profile-page .profile-history-title {
     width: min(760px, 100%);
     margin: 28px auto 12px;
     color: #f5f6fa !important;
     font-size: 1.5rem;
     text-align: left !important;
}
.profile-page #history-clear {
     border: 1px solid #303642 !important;
     border-radius: 9px !important;
     background: #12151d !important;
     color: #ffab4a !important;
}
.profile-page #history-clear:hover { border-color: #ffab4a !important; }
@media (max-width: 760px) {
     .profile-actions { margin-top: 14px; }
     #profile-container { gap: 14px !important; padding: 17px 14px; }
     .profile-page .k-friends-head { align-items: flex-start; }
}
@media (max-width: 480px) {
     .profile-actions { justify-content: stretch; }
     .profile-action { flex: 1; padding-inline: 8px; font-size: .74rem; }
     #profile-container { align-items: flex-start !important; flex-direction: column; }
     #profile-container > div:last-child { width: 100%; }
}

#profile-container {
     padding: 20px;
     border-radius: 10px;
     max-width: 720px;
     margin: -48px auto 0;
     position: relative;
     z-index: 2;
     /* Fundo transparente: o bloco sobe sobre o banner e não pode
        tapar a faixa de baixo dele (só avatar + nome flutuam aqui). */
     background-color: transparent;
}
/* Keep the avatar and text floating above the profile card surface. */
#profile-container div,
#profile-container p,
#profile-container h1,
#profile-container span,
#profile-container code {
     background-color: transparent;
}

/* ===== Banner personalizável ===== */
#banner-wrapper {
     position: relative;
     max-width: 760px;
     aspect-ratio: 760 / 240;
     min-height: 200px;
     border-radius: 14px;
     overflow: hidden;
     cursor: pointer;
     background: linear-gradient(135deg,#1a1a1a,#3a2b1a);
     border: 1px solid #2b2b2b;
}
/* Degradê na base: o banner derrete no fundo da página em vez de
   terminar numa linha reta atrás do nome. */
#banner-wrapper::after {
     content: '';
     position: absolute;
     left: 0;
     right: 0;
     bottom: 0;
     height: 70px;
     background: linear-gradient(to bottom, transparent, rgb(29,29,29));
     pointer-events: none;
}
#banner-img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
     background: transparent;
}
#banner-placeholder {
     position: absolute;
     inset: 0;
     display: grid;
     place-items: center;
     color: #8a8a8a;
     font-size: 14px;
     background: transparent;
}
#banner-placeholder span {
     background: rgba(0,0,0,.45);
     padding: 8px 14px;
     border-radius: 999px;
     border: 1px dashed #555;
}
#banner-actions {
     display: none;
}
#banner-actions button {
     background: rgba(0,0,0,.75);
     border: 1px solid #444;
     color: #ffab4a;
     font-size: 12px;
     padding: 6px 12px;
     border-radius: 999px;
     cursor: pointer;
}
#banner-actions button:hover {
     background: #ffab4a;
     color: #000;
     border-color: #ffab4a;
}
#banner-presets {
     position: absolute;
     right: 10px;
     bottom: 48px;
     display: flex;
     gap: 8px;
     background: rgba(0,0,0,.8);
     padding: 8px 10px;
     border-radius: 999px;
     border: 1px solid #333;
}
#banner-presets button {
     width: 28px;
     height: 28px;
     border-radius: 50%;
     border: 2px solid #fff3;
     cursor: pointer;
}
#banner-presets button:hover { border-color: #ffab4a; transform: scale(1.1); }

@media (max-width: 600px) {
     #banner-wrapper { border-radius: 10px; }
     #profile-container { margin-top: -36px; }
}

#dashboard-nome {
     -webkit-text-stroke-width: 1px;
      -webkit-text-stroke-color: black;
     font-size: 32px;
     font-weight: 700;
}

#avatar-wrapper {
     position: relative;
}

#avatar-letra {
     cursor: pointer;
     transition: transform 0.2s, box-shadow 0.2s;
}

#dashboard-avatar {
     cursor: pointer;
}
#dashboard-avatar:hover {
     cursor: pointer;
     
}

/* ===== Amigos (segue o visual do site: fundo escuro, detalhe laranja) ===== */
.k-friends {
     max-width: 760px;
     margin: 22px auto 0;
     border: 1px solid #2a2a2a;
     border-radius: 10px;
     overflow: hidden;
}
.k-friends-head {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
     padding: 12px 14px;
     border-bottom: 1px solid #2a2a2a;
}
.k-friends-head h2 {
     margin: 0;
     color: #f8f8f7;
     font-size: 15px;
     font-weight: 600;
}
.k-friends-head h2 span { color: #ffab4a; font-weight: 600; }
.k-friends-head .k-head-actions { display: flex; gap: 8px; align-items: center; }
#friend-open-add {
     background: #ffab4a;
     color: #000;
     border: none;
     border-radius: 6px;
     font-weight: 600;
     font-size: 13px;
     padding: 7px 12px;
     cursor: pointer;
}
#friend-open-add:hover { background: #fff; }
#friend-refresh {
     background: transparent;
     border: 1px solid #333;
     color: #999;
     border-radius: 6px;
     padding: 6px 10px;
     font-size: 13px;
     cursor: pointer;
}
#friend-refresh:hover { color: #ffab4a; border-color: #ffab4a; }
.k-friends-group { padding: 6px 0 2px; }
.k-friends-group > h3 {
     margin: 0;
     padding: 8px 14px 2px;
     color: #888;
     font-size: 12px;
     font-weight: 500;
}
.k-friends-group > h3 span { color: #ffab4a; }
.friend-row {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 8px 14px;
     border-bottom: 1px solid #222;
}
.friend-row:last-child { border-bottom: none; }
.friend-row img,
.friend-row video {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     object-fit: cover;
     background: #000;
     flex-shrink: 0;
}
.friend-row .f-info { flex: 1; min-width: 0; }
.friend-row .f-name {
     color: #f8f8f7;
     font-size: 13px;
     font-weight: 600;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
}
.friend-row .f-code { color: #777; font-size: 11px; letter-spacing: 1px; }
.friend-row .f-actions { display: flex; gap: 6px; flex-shrink: 0; }
.friend-row .f-actions button {
     font-size: 12px;
     padding: 5px 10px;
     border-radius: 6px;
     cursor: pointer;
}
.f-btn-go {
     background: #ffab4a; color: #000; border: none; font-weight: 600;
}
.f-btn-go:hover { background: #fff; }
.f-btn-line {
     background: transparent; border: 1px solid #333; color: #bbb;
}
.f-btn-line:hover { border-color: #ffab4a; color: #ffab4a; }
.f-btn-danger { background: transparent; border: 1px solid #333; color: #777; }
.f-btn-danger:hover { border-color: #d32f2f; color: #ff6b6b; }
.k-empty { color: #666; font-size: 12px; margin: 0; padding: 8px 14px 10px; }

/* Modal adicionar amigo */
#friend-modal {
     display: none;
     position: fixed;
     inset: 0;
     background: rgba(0,0,0,.7);
     z-index: 9998;
     align-items: center;
     justify-content: center;
     padding: 16px;
}
#friend-modal.open { display: flex; }
#friend-modal .k-modal-box {
     background: #1d1d1d;
     border: 1px solid #2a2a2a;
     border-radius: 10px;
     max-width: 420px;
     width: 100%;
     padding: 16px;
}
#friend-modal .k-modal-box h3 { margin: 0 0 2px; color: #f8f8f7; font-size: 15px; }
#friend-modal .k-modal-box p.hint { margin: 0 0 12px; color: #777; font-size: 12px; }
#friend-modal .k-add-row { display: flex; gap: 8px; }
#friend-q {
     flex: 1;
     min-width: 0;
     background: #000 !important;
     border: 1px solid #333;
     border-radius: 6px;
     color: #fff;
     padding: 8px 10px;
     font-size: 13px;
}
#friend-q:focus { border-color: #ffab4a; outline: none; }
#friend-add {
     background: #ffab4a; color: #000; border: none; border-radius: 6px;
     font-weight: 600; font-size: 13px; padding: 8px 14px; cursor: pointer;
     white-space: nowrap;
}
#friend-add:hover { background: #fff; }
#friend-msg { display: none; font-size: 12px; margin: 8px 0 0; }
#friend-search-results { display: flex; flex-direction: column; margin-top: 8px; }
#friend-search-results .friend-row { padding-left: 0; padding-right: 0; }
#friend-modal-close {
     margin-top: 12px;
     width: 100%;
     background: transparent;
     border: 1px solid #333;
     color: #999;
     border-radius: 6px;
     padding: 8px;
     font-size: 13px;
     cursor: pointer;
}
#friend-modal-close:hover { color: #fff; border-color: #555; }
