@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Quicksand:wght@400;600;700&display=swap');

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(136, 112, 242, 0.5) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(136, 112, 242, 0.45); border-radius: 10px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(136, 112, 242, 0.75); }

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0b1120;
    font-family: 'Quicksand', sans-serif;
    color: white;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.widget-wrapper {
    position: relative;
    width: 880px;
    height: 680px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.glass-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sharp-box {
    width: 230px;
    height: 36px;
    background-color: #121212;
    clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 0% 100%);
    position: absolute;
    top: 21px;
    left: 13.43px;
    z-index: 10;
    display: flex;
    align-items: center;
    padding-left: 18px;
    box-sizing: border-box;
}

.status-dot {
    color: #8870F2;
    font-size: 7px;
    margin-right: 6px;
    text-shadow: 0 0 6px #8870F2;
}

.status-text {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    font-family: 'Fredoka', sans-serif;
}

.lang-switcher {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(136, 112, 242, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.lang-btn {
    font-family: 'Fredoka', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    text-align: center;
    flex: 1;
}

.lang-btn:hover {
    color: #8870F2;
    background-color: rgba(136, 112, 242, 0.1);
}

.lang-btn.active {
    background-color: #8870F2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(136, 112, 242, 0.5);
}

.search-box {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 852px;
    height: 48px;
    top: 55px;
    background-color: rgba(25, 25, 30, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-group {
    display: flex;
    gap: 18px;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    width: 80px;
}

.nav-group.right { justify-content: flex-end; }
.nav-group i { cursor: pointer; transition: all 0.3s ease; }
.nav-group i:hover { color: #8870F2; transform: translateY(-1px); }

.tabs-container {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.nav-pill {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Fredoka', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-pill:hover {
    background-color: rgba(136, 112, 242, 0.1);
    border-color: rgba(136, 112, 242, 0.5);
    color: #8870F2;
    transform: translateY(-1px);
}

.nav-pill.active {
    background-color: rgba(136, 112, 242, 0.15);
    border-color: #8870F2;
    color: #8870F2;
    box-shadow: 0 0 10px rgba(136, 112, 242, 0.3);
}

.panels-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 852px;
    height: 610px;
    top: 55px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    perspective: 1000px;
}

.panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    background-image: radial-gradient(circle at 100% 100%, rgba(136, 112, 242, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, filter 0.8s ease;
    contain: layout style;
}

.panel.active { transform: translateY(0) scale(1); opacity: 1; z-index: 20; filter: blur(0); }
.panel.hidden-below { transform: scale(0.9) translateY(-10px); opacity: 0.3; z-index: 5; filter: blur(4px); pointer-events: none; }
.panel.hidden-above { transform: translateY(100%); opacity: 0; z-index: 25; }

.profile-header { position: relative; width: 100%; height: 170px; flex-shrink: 0; }
.cover-image { width: 100%; height: 100%; background-color: #1a2942; background-size: cover; background-position: center; }
.avatar-container { position: absolute; bottom: -50px; left: 30px; z-index: 10; }
.avatar-image {
    width: 100px; height: 100px; border-radius: 50%;
    background-color: #0f172a; background-size: cover;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(136, 112, 242, 0.6);
    box-sizing: content-box; padding: 5px;
    background-clip: content-box; box-shadow: 0 10px 25px rgba(136, 112, 242, 0.25);
}

.profile-body { flex-grow: 1; padding: 5px 35px; box-sizing: border-box; position: relative; }
.profile-title-bar { position: absolute; top: 5px; left: 150px; display: flex; align-items: center; gap: 15px; }
.profile-name { font-family: 'Fredoka', sans-serif; font-size: 38px; font-weight: 600; margin: 0; letter-spacing: 1px; color: white; }

.about-box {
    position: absolute; top: 70px; left: 20px; 
    height: 350px;
    width: 570px;
    background-color: rgba(15, 15, 15, 0.5); backdrop-filter: blur(12px);
    border: 1px solid rgba(136, 112, 242, 0.3); border-radius: 12px;
    padding: 12px 20px; box-sizing: border-box; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-tag {
    display: inline-flex; align-items: center;
    background-color: rgba(255, 255, 255, 0.05); padding: 6px 14px;
    border-radius: 8px; font-weight: 700; font-size: 13px; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 8px; border: 1px solid rgba(136, 112, 242, 0.4);
}
.about-content { font-size: 15px; color: rgba(255, 255, 255, 0.9); line-height: 1.55; }
.about-content strong { color: #8870F2; font-weight: 600; }

.side-column {
    position: absolute; right: 20px; top: 70px;
    width: 220px;
    display: flex; flex-direction: column; gap: 10px;
}

.status-side-box, .social-side-box, .music-side-box {
    background-color: rgba(15, 15, 15, 0.5); backdrop-filter: blur(12px);
    border: 1px solid rgba(136, 112, 242, 0.3); border-radius: 12px;
    padding: 12px 14px; box-sizing: border-box; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-side-box { flex-shrink: 0; }
.status-top-label {
    font-size: 10px; font-weight: 700; color: #8870F2; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 9px; display: flex; align-items: center; gap: 6px;
    font-family: 'Fredoka', sans-serif;
}
.status-row { display: flex; align-items: center; justify-content: space-around; }
.status-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.status-item-label { font-size: 8.5px; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.status-open, .status-slot-number { font-size: 14px; color: #8870F2; font-weight: 700; text-shadow: 0 0 8px rgba(136, 112, 242, 0.8); }
.status-divider-v { width: 1px; height: 24px; background-color: rgba(136, 112, 242, 0.3); }

.social-side-box {
    flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 14px;
}
.social-icons-rect { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: nowrap; }
.social-icon-btn {
    width: 30px; height: 30px; flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: rgba(255, 255, 255, 0.75); font-size: 13px; transition: all 0.3s ease;
}
.social-icon-btn:hover { background-color: #8870F2; color: white; box-shadow: 0 0 12px rgba(136, 112, 242, 0.8); transform: translateY(-2px); }

.check-legit-pill {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background-color: transparent; border: 1px solid rgba(136, 112, 242, 0.5);
    border-radius: 8px; padding: 6px 16px; color: #8870F2; font-size: 10.5px;
    font-family: 'Fredoka', sans-serif; text-decoration: none; font-weight: 700;
    transition: all 0.3s ease;
}
.check-legit-pill:hover { background-color: rgba(136, 112, 242, 0.15); color: #fff; box-shadow: 0 0 10px rgba(136, 112, 242, 0.4); }

.music-side-box { flex-shrink: 0; flex-grow: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; }
.mp-header-content { display: flex; align-items: center; gap: 10px; }
.mp-thumb {
    width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
    background-size: cover; background-position: center; background-color: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.mp-info { width: 100%; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-title-wrap { overflow: hidden; white-space: nowrap; width: 100%; }

.music-info-scroll { display: inline-block; min-width: 100%; animation: bounce-scroll 6s linear infinite alternate; }
.music-info-scroll .song-name { font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.3); letter-spacing: 0.5px;}
.artist { font-size: 9.5px; color: #8870F2; font-weight: 600; }

.mp-progress { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.mp-progress-bar { 
    width: 100%; height: 4px; background: rgba(255,255,255,0.1); 
    border-radius: 3px; position: relative; overflow: hidden;
}
.mp-progress-fill { 
    width: 0%; 
    height: 100%; background: #8870F2; border-radius: 3px; 
    position: absolute; left: 0; top: 0; box-shadow: 0 0 10px #8870F2; 
}
.mp-time { display: flex; justify-content: space-between; font-size: 8px; color: rgba(255,255,255,0.6); font-family: 'Quicksand', sans-serif; font-weight: 600; }

.music-controls { display: flex; justify-content: center; align-items: center; gap: 14px; color: #8870F2; font-size: 12px; }
.music-controls i { cursor: pointer; transition: all 0.3s ease; }
.mp-controls { margin-top: 6px; margin-bottom: 0; }
.mp-play-btn { 
    width: 26px; height: 26px; background: rgba(255, 255, 255, 0.05); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    border: 1px solid rgba(136, 112, 242, 0.3); color: #fff; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}
.mp-play-btn i { font-size: 11px; margin-left: 2px; }
.mp-play-btn:hover { background: rgba(136, 112, 242, 0.2); box-shadow: 0 0 15px rgba(136, 112, 242, 0.4); transform: scale(1.05); }
.hover-glow:hover { color: #fff; text-shadow: 0 0 10px rgba(136, 112, 242, 0.8); }

.panel-title {
    color: #8870F2; text-align: center; font-family: 'Fredoka', sans-serif;
    font-size: 26px; margin: 65px 0 15px 0; text-shadow: 0 0 10px rgba(136, 112, 242, 0.4); flex-shrink: 0;
}
.tos-content { flex-grow: 1; overflow-y: auto; padding: 0 30px 40px 30px; box-sizing: border-box; color: rgba(255, 255, 255, 0.85); font-size: 13px; line-height: 1.6; }
.tos-content::-webkit-scrollbar { width: 6px; }
.tos-content::-webkit-scrollbar-thumb { background: rgba(136, 112, 242, 0.4); border-radius: 10px; }
.tos-section {
    background-color: rgba(15, 15, 15, 0.5); backdrop-filter: blur(12px);
    border: 1px solid rgba(136, 112, 242, 0.2); border-radius: 14px; padding: 18px 22px; margin-bottom: 18px;
}
.tos-section h3 {
    color: #8870F2; font-family: 'Fredoka', sans-serif; font-size: 16px;
    margin-top: 0; margin-bottom: 12px; border-bottom: 1px dashed rgba(136, 112, 242, 0.3); padding-bottom: 10px;
}
.tos-section ul { padding-left: 22px; }
.tos-section li { margin-bottom: 8px; }
.tos-section li strong { color: #b3d9ff; font-weight: 700; }

.com-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; margin-top: 60px; }
.com-pill {
    background-color: rgba(255, 255, 255, 0.05); backdrop-filter: blur(5px);
    border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 25px; color: rgba(255, 255, 255, 0.7); font-size: 11px;
    font-weight: 600; font-family: 'Fredoka', sans-serif; cursor: pointer; transition: all 0.3s ease;
}
.com-pill:hover { border-color: #8870F2; color: #8870F2; }
.com-pill.active {
    background-color: rgba(136, 112, 242, 0.15); border-color: #8870F2;
    color: #8870F2; box-shadow: 0 0 10px rgba(136, 112, 242, 0.3);
}

.commission-content {
    display: flex; flex-direction: column; height: calc(100% - 90px);
    padding: 0 20px 5px 20px; box-sizing: border-box; overflow: hidden;
}
.com-section { display: none; flex-direction: column; height: 100%; opacity: 0; transform: translateY(15px); }
.com-section.active { display: flex; animation: tabFadeIn 0.4s ease forwards; }

.com-grid-2 { display: flex; gap: 30px; justify-content: space-between; height: 100%; min-height: 0; }
.com-col { flex: 1; display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; }
.com-col-full { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; }

.com-grid-3 { display: flex; gap: 16px; justify-content: space-between; height: 100%; min-height: 0; }
.com-col-3 { flex: 1; display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; }

.price-category-h {
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.02); border-radius: 12px;
    padding: 10px 14px; border: 1px solid rgba(136, 112, 242, 0.2);
    height: 145px; overflow-y: auto; position: relative; scrollbar-width: none;
}
.price-category-h::-webkit-scrollbar { display: none; }

.price-category-h h4 {
    color: #8870F2; font-family: 'Fredoka', sans-serif; font-size: 12px; margin: 0 0 8px 0;
    border-bottom: 1px dashed rgba(136, 112, 242, 0.3); padding-bottom: 6px; text-transform: uppercase; text-align: center;
}
.sample-frame-3col { grid-template-columns: repeat(2, 1fr); }

.price-category {
    background-color: rgba(255, 255, 255, 0.02); border-radius: 12px;
    padding: 12px 15px; border: 1px solid rgba(136, 112, 242, 0.2); flex-shrink: 0;
    height: 145px; overflow-y: auto; position: relative; scrollbar-width: none;
}
.price-category::-webkit-scrollbar { display: none; }
.price-category h3 {
    color: #8870F2; font-family: 'Fredoka', sans-serif; font-size: 13px;
    border-bottom: 1px dashed rgba(136, 112, 242, 0.3); padding-bottom: 8px; margin-top: 0; text-transform: uppercase; text-align: center;
}
.price-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 4px;
}
.price-row span { color: rgba(255, 255, 255, 0.8); }
.price-row strong { color: #fff; font-size: 12px; }

.sample-frame {
    flex-grow: 1; 
    min-height: 0; 
    margin-bottom: 0;
    overflow-y: auto; 
    overflow-x: hidden;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(136, 112, 242, 0.3); 
    border-radius: 12px; 
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-content: start;
    cursor: pointer;
}

.illustration-frame {
    grid-template-columns: repeat(3, 1fr);
}
.sample-frame::-webkit-scrollbar { width: 5px; }
.sample-frame::-webkit-scrollbar-thumb { background: rgba(136, 112, 242, 0.4); border-radius: 10px; }

.dummy-skeleton {
    width: 100%; 
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(136, 112, 242, 0.05) 0%, rgba(136, 112, 242, 0.15) 50%, rgba(136, 112, 242, 0.05) 100%);
    background-size: 200% 100%; animation: shimmer 1.6s infinite ease-in-out;
    border: 1px dashed rgba(136, 112, 242, 0.2);
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.4s ease;
    cursor: pointer;
    opacity: 0.5;
}
.dummy-skeleton:hover { transform: scale(1.04); }

.dummy-skeleton.has-img {
    background-color: transparent;
    animation: none;
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.setting-content { padding: 0 30px; height: calc(100% - 95px); overflow-y: auto; overflow-x: hidden; }
#password-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 15px; }
#password-screen input {
    background: rgba(0, 0, 0, 0.5); border: none; border-bottom: 2px solid rgba(136, 112, 242, 0.5);
    color: white; padding: 12px 15px; outline: none; font-family: 'Quicksand'; text-align: center; width: 220px; font-size: 16px; transition: 0.3s;
}
#password-screen input:focus { border-bottom-color: #8870F2; box-shadow: 0 10px 15px -10px rgba(136, 112, 242, 0.5); }
.login-btn, .save-btn {
    background: #8870F2; color: white; border: none; padding: 10px 30px; border-radius: 30px;
    cursor: pointer; font-family: 'Fredoka'; transition: 0.3s; font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
}
.login-btn:hover, .save-btn:hover { box-shadow: 0 0 15px rgba(136, 112, 242, 0.6); transform: translateY(-2px); }

.save-btn-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 14px 0 18px;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.98) 55%, rgba(18, 18, 18, 0));
    z-index: 40;
    pointer-events: none;
}
.save-btn-bar .save-btn { pointer-events: auto; padding: 13px 42px; font-size: 13px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); }

.settings-card {
    background: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(136, 112, 242, 0.2);
    border-radius: 12px;
    margin-bottom: 18px;
    overflow: hidden;
}
.sc-header {
    background: rgba(136, 112, 242, 0.1);
    padding: 12px 15px;
    font-family: 'Fredoka';
    font-size: 15px;
    color: #8870F2;
    border-bottom: 1px solid rgba(136, 112, 242, 0.15);
}
.sc-body { padding: 15px; }
.row-flex { display: flex; gap: 15px; align-items: flex-end; }
.flex-1 { flex: 1; }
.mb-10 { margin-bottom: 12px; }
.input-wrap { display: flex; flex-direction: column; gap: 6px; }
.input-wrap label { font-size: 11px; color: rgba(255, 255, 255, 0.65); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.modern-input {
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1);
    color: white; padding: 10px 12px; border-radius: 8px; font-family: 'Quicksand'; font-size: 14px; outline: none; transition: 0.3s; width: 100%; box-sizing: border-box;
}
.modern-input:focus { border-color: #8870F2; background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 10px rgba(136, 112, 242, 0.2); }
.select-custom { appearance: none; cursor: pointer; }
.select-custom option { background-color: #1a1a1a; color: white; }
.number-custom { text-align: center; }

.number-custom::-webkit-outer-spin-button,
.number-custom::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.number-custom { -moz-appearance: textfield; }
@media (max-width: 700px) {
    .status-row-flex { flex-wrap: wrap; }
}

/* ================= MOBILE LAYOUT ================= */
@media screen and (max-width: 768px) {
    * { box-sizing: border-box !important; }

    body {
        overflow: hidden !important;
        position: fixed !important;
        width: 100vw !important; height: 100vh !important;
        display: flex; align-items: center; justify-content: center;
        margin: 0; padding: 0;
    }

    .widget-wrapper {
        width: 95vw !important;
        height: 92vh !important;
        max-width: 450px !important;
        position: relative !important;
        left: 0 !important; top: 0 !important; margin: 0 !important;
    }

    /* Thanh search / tabs */
    .search-box {
        position: relative !important;
        width: calc(100% - 20px) !important;
        top: 8px !important; left: 10px !important;
        transform: none !important;
        height: auto !important;
        padding: 10px 8px !important;
        display: flex !important;
        overflow: hidden !important;
    }

    .nav-group { width: auto !important; gap: 10px !important; }
    .nav-group i { font-size: 13px !important; }

    .tabs-container {
        flex-grow: 1 !important;
        justify-content: center !important;
        gap: 6px !important;
        overflow: visible !important;
        padding: 4px 0 !important;
    }
    .nav-pill { flex-shrink: 0 !important; padding: 6px 10px !important; font-size: 9px !important; }

    /* Khung panel */
    .panels-container {
        width: calc(100% - 20px) !important;
        left: 10px !important;
        top: 47.5px !important;
        height: calc(100% - 85px) !important;
        transform: none !important;
    }

    .panel {
        width: 100% !important;
        height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* HOME */
    .profile-header { height: 130px !important; }
    .avatar-container { bottom: -40px !important; left: 50% !important; transform: translateX(-50%) !important; }

    .profile-body {
        padding: 5px 15px 90px 15px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .profile-title-bar {
        position: relative !important; left: 0 !important; top: 0 !important;
        margin: 48px 0 0 0 !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .about-box, .side-column {
        position: relative !important;
        top: auto !important; left: auto !important; right: auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }

    /* TOS */
    .panel-title { margin: 60px 0 15px 0 !important; }
    .tos-content { padding: 0 15px 90px 15px !important; }

    /* COMMISSION / SAMPLE-PRICE */
    .com-tabs { margin-top: 55px !important; flex-wrap: wrap !important; gap: 8px !important; }
    .commission-content {
        height: auto !important;
        padding: 0 15px 90px 15px !important;
        overflow: visible !important;
    }
    .com-section.active { display: flex !important; }
    .com-grid-2, .com-grid-3 {
        flex-direction: column !important;
        gap: 15px !important;
        height: auto !important;
    }
    .com-col, .com-col-3, .com-col-full { height: auto !important; }
    .price-category, .price-category-h { height: auto !important; max-height: 200px !important; }
    .sample-frame { min-height: 220px !important; }

    /* SETTINGS */
    .setting-content { padding: 0 15px 90px 15px !important; height: auto !important; }
    .img-editor-top-row { flex-direction: column !important; gap: 15px !important; }
    .img-editor-col-avatar { width: 140px !important; align-self: center; }

    .save-btn-bar { position: sticky !important; }

    .report-floating-btn { font-size: 10px !important; padding: 6px 12px !important; }
}

.social-link-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.social-link-row:last-child { margin-bottom: 0; }
.social-link-icon { font-size: 18px; width: 22px; text-align: center; }

.drive-link-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(136, 112, 242, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
}
.drive-link-row:last-child { margin-bottom: 0; }
.drive-link-row label {
    font-size: 12px;
    font-weight: 700;
    color: #b9a9ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Fredoka', sans-serif;
}
.drive-link-row input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.drive-link-row input:focus { border-color: #8870F2; background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 10px rgba(136, 112, 242, 0.2); }

.pc-add-category-btn {
    background: #8870F2;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.pc-add-category-btn:hover { box-shadow: 0 0 12px rgba(136, 112, 242, 0.6); transform: translateY(-1px); }

.price-category-block {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(136, 112, 242, 0.35);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.pc-header {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(136, 112, 242, 0.25);
}

.pc-remove-btn {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.pc-remove-btn:hover { background: rgba(255, 77, 77, 0.3); }

.pc-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }

.pc-line {
    display: grid;
    grid-template-columns: 1fr 90px 32px;
    gap: 8px;
    align-items: center;
}

.pl-remove-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.pl-remove-btn:hover { background: rgba(255, 77, 77, 0.25); border-color: #ff4d4d; color: #ff4d4d; }

.pc-add-line-btn {
    background: rgba(136, 112, 242, 0.15);
    border: 1px dashed #8870F2;
    color: #b9a9ff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.pc-add-line-btn:hover { background: rgba(136, 112, 242, 0.3); }


.gallery-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.96);
    width: 730px; height: 570px; border-radius: 20px; overflow: hidden; z-index: 5000;
    display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: 0.25s ease;
    background: rgba(12, 12, 18, 0.97); backdrop-filter: blur(20px); border: 1px solid rgba(136, 112, 242, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.gallery-modal.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }
.gm-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 12px; border-bottom: 1px solid rgba(136, 112, 242, 0.15); flex-shrink: 0; }
.gm-title { font-family: 'Fredoka', sans-serif; font-size: 15px; color: #8870F2; }
.gm-close-btn { background: rgba(136, 112, 242, 0.1); border: 1px solid rgba(136, 112, 242, 0.35); color: #8870F2; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gm-close-btn:hover { background: #8870F2; color: #fff; }
.gm-grid-scroll { flex: 1; overflow-y: auto; padding: 16px 20px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; align-content: start; }
.gm-img-cell { position: relative; width: 100%; padding-bottom: 100%; border-radius: 10px; overflow: hidden; cursor: pointer; border: 1px solid rgba(136, 112, 242, 0.15); }
.gm-img-cell img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.gm-img-cell img.loaded { opacity: 1; }
.gm-cell-skeleton { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(136, 112, 242, 0.04) 0%, rgba(136, 112, 242, 0.14) 45%, rgba(136, 112, 242, 0.04) 90%); background-size: 200% 100%; animation: shimmer 1.5s infinite ease-in-out; }
.gm-cell-skeleton.hidden { opacity: 0; }

.gallery-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.25s; }

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}
.custom-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(20, 20, 24, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-16px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90vw;
}
.custom-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.custom-toast.toast-success { border-color: rgba(74, 222, 128, 0.4); }
.custom-toast.toast-success i { color: #4ade80; }
.custom-toast.toast-error { border-color: rgba(255, 77, 77, 0.4); }
.custom-toast.toast-error i { color: #ff4d4d; }

.custom-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.custom-confirm-overlay.open { opacity: 1; pointer-events: auto; }
.custom-confirm-box {
    background: #17171c;
    border: 1px solid rgba(136, 112, 242, 0.3);
    border-radius: 16px;
    padding: 24px 26px;
    max-width: 340px;
    width: 90vw;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(10px) scale(0.96);
    transition: transform 0.25s ease;
}
.custom-confirm-overlay.open .custom-confirm-box { transform: translateY(0) scale(1); }
.custom-confirm-box .cc-icon { font-size: 26px; color: #8870F2; margin-bottom: 10px; }
.cc-message {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
}
.cc-actions { display: flex; gap: 10px; justify-content: center; }
.cc-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: 0.2s;
}
.cc-btn-no { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.15); }
.cc-btn-no:hover { background: rgba(255, 255, 255, 0.15); }
.cc-btn-yes { background: linear-gradient(135deg, #8870F2, #6a4fd6); color: #fff; }
.cc-btn-yes:hover { box-shadow: 0 0 15px rgba(136, 112, 242, 0.6); transform: translateY(-1px); }
.gallery-lightbox.open { opacity: 1; pointer-events: all; }
.glb-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(14px); }
.glb-close { position: absolute; top: 20px; right: 24px; z-index: 2; background: rgba(136, 112, 242, 0.12); border: 1px solid rgba(136, 112, 242, 0.4); color: #8870F2; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.glb-close:hover { background: #8870F2; color: #fff; }
.glb-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 11px; color: rgba(255, 255, 255, 0.35); user-select: none; }
.glb-stage { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: grab; overflow: hidden; z-index: 1; }
.glb-stage.dragging { cursor: grabbing; }
.glb-img-border-wrap { position: absolute; top: 0; left: 0; transform-origin: 0 0; padding: 10px; background: rgba(15, 15, 18, 0.9); border: 3px solid #8870F2; border-radius: 14px; opacity: 0; transition: opacity 0.3s ease; }
#glb-img { border-radius: 6px; display: block; opacity: 0; transition: opacity 0.35s ease; position: relative; z-index: 2; }

.glb-img-mosaic {
    position: absolute;
    inset: 10px;
    background-size: cover;
    background-position: center;
    filter: blur(14px) saturate(1.1);
    transform: scale(1.08);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}
.glb-img-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8870F2; font-size: 32px; z-index: 2; transition: opacity 0.3s; }
.glb-img-loader.hidden { opacity: 0; }
.glb-zoom-btns { position: absolute; bottom: 22px; right: 28px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.glb-zoom-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(136, 112, 242, 0.12); border: 1px solid rgba(136, 112, 242, 0.35); color: #8870F2; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.glb-zoom-btn:hover { background: #8870F2; color: #fff; }

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes bounce-scroll { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(calc(var(--c-width) - 100%)); } }
@keyframes tabFadeIn { to { opacity: 1; transform: translateY(0); } }

.widget-wrapper::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(rgba(136, 112, 242, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(136, 112, 242, 0.04) 1px, transparent 1px);
    background-size: 30px 30px; transform: rotate(-10deg); z-index: 0; pointer-events: none;
}

.report-floating-btn {
    position: fixed; bottom: 20px; left: 20px; background: rgba(255, 77, 77, 0.1); border: 1px solid rgba(255, 77, 77, 0.4);
    color: #ff4d4d; padding: 8px 16px; border-radius: 20px; font-family: 'Fredoka', sans-serif; font-size: 11px; cursor: pointer; z-index: 10;
    backdrop-filter: blur(5px); transition: all 0.3s ease; display: flex; align-items: center; gap: 6px;
}
.report-floating-btn:hover { background: #ff4d4d; color: white; box-shadow: 0 0 15px rgba(255, 77, 77, 0.5); transform: translateY(-2px); }
.report-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.3s ease; }
.report-modal.open { opacity: 1; pointer-events: all; }
.report-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); }
.report-modal-content { position: relative; width: 300px; background: rgba(15, 15, 18, 0.95); border: 1px solid rgba(255, 77, 77, 0.3); border-radius: 16px; padding: 25px 20px; text-align: center; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); transform: scale(0.9); transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1; }
.report-modal.open .report-modal-content { transform: scale(1); }
.rm-close-btn { position: absolute; top: 12px; right: 12px; background: none; border: none; color: rgba(255, 255, 255, 0.5); font-size: 16px; cursor: pointer; transition: 0.2s; }
.rm-close-btn:hover { color: #ff4d4d; }
.rm-icon { font-size: 32px; color: #ff4d4d; margin-bottom: 10px; text-shadow: 0 0 15px rgba(255, 77, 77, 0.5); }
.rm-title { font-family: 'Fredoka', sans-serif; color: white; margin: 0 0 8px 0; font-size: 18px; }
.rm-message { font-size: 12px; color: rgba(255, 255, 255, 0.7); line-height: 1.4; margin: 0 0 20px 0; }
.rm-socials { display: flex; flex-direction: column; gap: 10px; }
.rm-pill { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 20px; text-decoration: none; font-family: 'Fredoka', sans-serif; font-size: 13px; transition: 0.3s; }
.fb-pill { background: rgba(24, 119, 242, 0.1); border: 1px solid #1877f2; color: #1877f2; }
.fb-pill:hover { background: #1877f2; color: white; box-shadow: 0 0 15px rgba(24, 119, 242, 0.4); }
.x-pill { background: rgba(255, 255, 255, 0.05); border: 1px solid white; color: white; }
.x-pill:hover { background: white; color: black; box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }
.ig-pill { background: rgba(225, 48, 108, 0.1); border: 1px solid #e1306c; color: #e1306c; }
.ig-pill:hover { background: #e1306c; color: white; box-shadow: 0 0 15px rgba(225, 48, 108, 0.4); }

.scroll-arrow-indicator {
    position: sticky; bottom: -2px; left: 0; width: 100%; text-align: center;
    color: #8870F2; font-size: 13px; animation: blinkArrow 1.2s infinite alternate; pointer-events: none; padding-bottom: 4px; box-sizing: border-box;
}
@keyframes blinkArrow {
    0% { opacity: 0.1; transform: translateY(-3px); }
    100% { opacity: 1; transform: translateY(3px); text-shadow: 0 0 10px rgba(136, 112, 242, 0.8); }
}

.no-image-msg {
    grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; min-height: 120px; color: rgba(255, 255, 255, 0.4); gap: 8px; font-family: 'Fredoka', sans-serif; font-size: 13px; user-select: none;
}
.no-image-msg i { font-size: 24px; color: rgba(136, 112, 242, 0.5); }
.cover-image { position: relative; overflow: hidden; }
.avatar-image { position: relative; overflow: hidden; }
.editor-live-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transform-origin: center center;
    transform: translate(var(--img-x, 0%), var(--img-y, 0%)) scale(var(--img-z, 1));
}

.img-editor-top-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.img-editor-col { display: flex; flex-direction: column; }
.img-editor-col-cover { flex: 1 1 420px; min-width: 260px; }
.img-editor-col-avatar { flex: 0 0 150px; width: 150px; }

.img-editor-row { margin-bottom: 22px; }
.img-editor-row:last-child { margin-bottom: 0; }
.img-editor-label { display: block; font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 6px; font-family: 'Quicksand'; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img-editor-input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.img-editor-input-row .modern-input { flex: 1; min-width: 0; }
.img-editor-preview-btn {
    background: rgba(136, 112, 242, 0.15); border: 1px solid rgba(136, 112, 242, 0.4);
    color: #8870F2; border-radius: 8px; padding: 0 14px; cursor: pointer; font-size: 13px;
    white-space: nowrap; transition: background 0.2s; flex-shrink: 0;
}
.img-editor-preview-btn:hover { background: rgba(136, 112, 242, 0.3); }

.img-editor-stage-wrap { position: relative; width: 100%; }

.img-editor-stage {
    position: relative; overflow: hidden; background: #0f172a; width: 100%;
    border: 1px dashed rgba(136, 112, 242, 0.5); cursor: grab; user-select: none;
}
.img-editor-stage:active { cursor: grabbing; }
.img-editor-stage-avatar { aspect-ratio: 1 / 1; border-radius: 12px; }
.img-editor-stage-cover { aspect-ratio: 852 / 170; border-radius: 8px; }

.img-editor-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transform-origin: center center; pointer-events: none;
    transform: translate(var(--img-x, 0%), var(--img-y, 0%)) scale(var(--img-z, 1));
}

.img-editor-zoom-btns {
    position: absolute; bottom: 6px; right: 6px; display: flex; gap: 4px; z-index: 5;
}
.img-editor-zoom-btns button {
    width: 24px; height: 24px; border-radius: 6px; border: none; cursor: pointer;
    background: rgba(0,0,0,0.55); color: #fff; font-size: 11px;
    display: flex; align-items: center; justify-content: center;
}
.img-editor-zoom-btns button:hover { background: rgba(136, 112, 242, 0.7); }