.gt-widget {
    background: #2d2d37;
    border: 1px solid #393946;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.gt-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
      background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
    background-size: 200% 100%;
    animation: gt-shimmer 3s linear infinite;
}

@keyframes gt-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gt-widget-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding-bottom: 12px;
    margin-bottom: 14px;
    gap: 8px;
}

.gt-widget-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.gt-widget-title i {
    font-size: 17px;
    color: #818cf8;
}

.gt-widget-head-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.gt-btn-list {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
    border: 1px solid #38644f;
    color: #ffffff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    height: 28px;
    padding: 0 11px;
    transition: color .15s, border-color .15s, background .15s;
}

.gt-btn-list:hover {
    color: #fff;
    background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f7d 0, #38644f 100%));
}

.gt-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gt-rank-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gt-rank-icon-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    /* background: rgba(99,102,241,.1); */
    /* border: 1px solid rgba(99,102,241,.25); */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gt-rank-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    /* filter: drop-shadow(0 2px 8px rgba(99,102,241,.35)); */
}

.gt-rank-icon-placeholder {
    font-size: 28px;
    color: rgba(255,255,255,.2);
}

.gt-rank-info {
    flex: 1;
    min-width: 0;
}

.gt-rank-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-rank-desc {
    font-size: 12px;
    color: rgba(255,255,255,.38);
    margin-top: 2px;
}

.gt-hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    /* background: rgba(99,102,241,.13); */
    border: 1px solid #38644f;
    /* color: #818cf8; */
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
}

.gt-hours-badge i { font-size: 12px; }

.gt-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gt-progress-bar-bg {
    position: relative;
    height: 8px;
    background: rgba(255,255,255,.07);
    border-radius: 99px;
    overflow: hidden;
}

.gt-progress-bar-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
      background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
    border-radius: 99px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
    min-width: 4px;
}

.gt-progress-bar-glow {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(129,140,248,.55), transparent);
    border-radius: 99px;
    animation: gt-glow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gt-glow {
    0%, 100% { opacity: 0; }
    50%       { opacity: 1; }
}

.gt-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gt-progress-label {
    font-size: 11px;
    color: rgba(255,255,255,.38);
    font-weight: 600;
}

.gt-progress-pct {
    font-size: 11px;
    font-weight: 800;
    color: #818cf8;
}

.gt-next-rank-hint {
    font-size: 11px;
    color: rgba(255,255,255,.28);
}

.gt-next-rank-hint b {
    color: rgba(255,255,255,.6);
}

.gt-achievements-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.gt-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 3px 10px 3px 5px;
    font-size: 11px;
    font-weight: 700;
    cursor: default;
    transition: transform .15s;
}

.gt-chip:hover { transform: translateY(-1px); }

.gt-chip-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.gt-chip-earned {
    background: rgb(91 91 93 / 15%);
    border: 1px solid #38644f;
    color: #e4e4e4;
}

.gt-chip-locked {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.22);
    filter: grayscale(1);
    opacity: .55;
}

.gt-chip-title {
    white-space: nowrap;
}

.gt-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    overflow-y: auto;
    padding: 20px 16px 40px;
}

.gt-modal.show { display: block; }

.gt-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(6px);
    z-index: -1;
}

.gt-modal-window {
    position: relative;
    width: min(560px, 100%);
    margin: 0 auto;
    background: #2d2d37;
    border: 1px solid #393946;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.7);
}

.gt-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.gt-modal-head span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.gt-modal-head span i { color: #818cf8; font-size: 18px; }

.gt-modal-close {
    width: 30px; height: 30px;
    border: 1px solid #393946;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.4);
    cursor: pointer;
    font-size: 19px;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s, border-color .15s;
    flex-shrink: 0;
}

.gt-modal-close:hover { color: #fff; border-color: #6366f1; }

.gt-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #393946 transparent;
}

.gt-modal-body::-webkit-scrollbar { width: 5px; }
.gt-modal-body::-webkit-scrollbar-thumb { background: #393946; border-radius: 3px; }

.gt-modal-list {
    display: flex;
    flex-direction: column;
}

.gt-modal-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .15s;
}

.gt-modal-row:last-child { border-bottom: none; }

.gt-modal-row:hover { background: rgba(255,255,255,.03); }

.gt-modal-row--earned { opacity: 1; }
.gt-modal-row--locked { opacity: .5; filter: grayscale(.6); }

.gt-modal-rank-img-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    /* background: rgba(99,102,241,.09); */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gt-modal-rank-img-wrap img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.gt-modal-rank-info {
    flex: 1;
    min-width: 0;
}

.gt-modal-rank-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-modal-rank-desc {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    margin-top: 2px;
}

.gt-modal-rank-progress {
    margin-top: 7px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gt-modal-bar-bg {
    height: 5px;
    background: rgba(255,255,255,.07);
    border-radius: 99px;
    overflow: hidden;
}

.gt-modal-bar-fill {
    height: 100%;
    background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
    border-radius: 99px;
    transition: width .5s ease;
    min-width: 3px;
}

.gt-modal-bar-label {
    font-size: 10px;
    color: rgba(255,255,255,.3);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gt-modal-bar-label i { color: #6ee7b7; font-size: 12px; }

.gt-modal-rank-hours {
    font-size: 15px;
    font-weight: 800;
    color: #818cf8;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

.gt-modal-rank-hours span {
    font-size: 10px;
    font-weight: 600;
    opacity: .6;
}

.gt-award-popup {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 100010;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px) scale(.95);
    transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
}

.gt-award-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gt-award-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #2d2d37;
    border: 1px solid rgba(99,102,241,.5);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 8px 40px rgba(99,102,241,.35), 0 0 0 1px rgba(99,102,241,.15);
    min-width: 240px;
    max-width: 320px;
}

.gt-award-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(99,102,241,.6));
    animation: gt-bounce .6s cubic-bezier(.34,1.56,.64,1);
}

@keyframes gt-bounce {
    0%   { transform: scale(.5) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg);    opacity: 1; }
}

.gt-award-text {
    flex: 1;
}

.gt-award-lbl {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #818cf8;
    margin-bottom: 3px;
}

.gt-award-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.gt-award-sub {
    font-size: 11px;
    color: rgba(255,255,255,.38);
    margin-top: 2px;
}

@media (max-width: 480px) {
    .gt-rank-row { gap: 10px; }
    .gt-rank-icon-wrap { width: 52px; height: 52px; }
    .gt-rank-icon { width: 40px; height: 40px; }
    .gt-rank-title { font-size: 14px; }
    .gt-modal-window { border-radius: 14px; }
    .gt-award-popup { right: 12px; bottom: 16px; }
    .gt-award-card { min-width: 200px; }
}

.gt-top-widget {
    background: #2d2d37;
    border: 1px solid #393946;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
}

.gt-top-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.gt-top-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gt-top-head-left > i {
    font-size: 22px;
    color: #818cf8;
    flex-shrink: 0;
}

.gt-top-head-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gt-top-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.gt-top-sub {
    font-size: 10px;
    color: rgba(255,255,255,.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.gt-top-list {
    display: flex;
    flex-direction: column;
}

.gt-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    text-decoration: none;
    transition: background .15s;
}

.gt-top-row:last-child { border-bottom: none; }
.gt-top-row:hover { background: rgba(255,255,255,.04); text-decoration: none; }

.gt-top-pos {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.4);
}

.gt-top-pos--1 { background: linear-gradient(135deg,#f5c518,#d4920a); color: #1a1000; }
.gt-top-pos--2 { background: linear-gradient(135deg,#c0c0c0,#888); color: #111; }
.gt-top-pos--3 { background: linear-gradient(135deg,#cd7f32,#8b4513); color: #fff; }

.gt-top-avatar-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid;
    overflow: hidden;
    flex-shrink: 0;
}

.gt-top-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gt-top-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gt-top-login {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-top-group {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.gt-top-rank-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.gt-top-hours {
    font-size: 11px;
    font-weight: 700;
    color: #818cf8;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.gt-top-hours i { font-size: 12px; }
