/* Basic styles (replacing external style_kontol.css) */
body {
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: system-ui, -apple-system, sans-serif;
}
/* overlay gelap supaya teks tetap terbaca */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
    pointer-events: none;
}
.gradient-text {
    background: linear-gradient(to right, #f97316, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.4);
}
.result-enter {
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}
.vault-item {
    background: rgba(39, 39, 42, 0.7);
    border: 1px solid #3f3f46;
    border-radius: 16px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s;
}
.vault-item:hover {
    border-color: #f59e0b;
    transform: scale(1.05);
}
.stat-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    object-fit: contain;
}
.like-number, .stat-number {
    font-size: 1.5rem;
    line-height: 1.2;
}
.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Music Player Styles */
.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.song-item:hover {
    background: rgba(63, 63, 70, 0.6);
}
.song-item.playing {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
}
.song-number {
    width: 24px;
    text-align: center;
    color: #a1a1aa;
    font-size: 0.875rem;
    font-weight: 600;
}
.song-item.playing .song-number {
    color: #f97316;
}
.song-info {
    flex: 1;
    min-width: 0;
}
.song-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-artist {
    font-size: 0.75rem;
    color: #a1a1aa;
}
.progress-container {
    height: 6px;
    background: #3f3f46;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
}
#progress-bar {
    height: 100%;
    background: linear-gradient(to right, #f97316, #eab308);
    width: 0%;
    border-radius: 999px;
    transition: width 0.1s linear;
}
.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #27272a;
    border: 1px solid #3f3f46;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.control-btn:hover {
    background: #3f3f46;
    border-color: #f97316;
}
.control-btn.play-main {
    width: 48px;
    height: 48px;
    background: linear-gradient(to right, #f97316, #eab308);
    border: none;
    font-size: 1.2rem;
}
.control-btn.play-main:hover {
    transform: scale(1.05);
}
#nowPlaying.active {
    display: flex !important;
}
.clan-emblem-container {
    position: relative;
    width: 48px;
    height: 48px;
}
.clan-frame, .clan-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Rank cards: Windows horizontal rapi, Android ke bawah (stack) */
.rank-cards-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    align-items: stretch;
}
@media (min-width: 640px) {
    .rank-cards-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: auto;
        align-items: stretch;
    }
    .rank-cards-row > div {
        flex: 0 1 auto;
        min-width: 150px;
        max-width: 220px;
    }
}
@media (max-width: 639px) {
    .rank-cards-row > div {
        width: 100%;
        max-width: none;
    }
}

/* Profile header styles (inspired by adenpedia.my.id) */
.featured-visits {
    font-size: 0.8rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.featured-visits .tool-visit-count {
    font-weight: 600;
    color: #4ade80;
}
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(39, 39, 42, 0.9);
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    font-size: 0.8rem;
    font-family: ui-monospace, monospace;
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0;
    line-height: 1.25;
}

.category-pill:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}
.category-pill.copied {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}
.profile-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}
.profile-avatar-wrap img.avatar-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}
.profile-avatar-wrap img.avatar-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Captain Info Card — fixed layout, zoom-stable */
.captain-card {
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid #3f3f46;
    border-radius: 20px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.captain-card .captain-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
}
.captain-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    flex-shrink: 0;
}
.captain-avatar img.main {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.captain-avatar img.frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    object-fit: contain;
    pointer-events: none;
}


.captain-login {
    font-size: 0.75rem;
    color: #a1a1aa;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 6px;
}
.captain-login .time {
    font-weight: 700;
    color: #4ade80;
}
.captain-login .online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 1.5s infinite;
}
.captain-nick {
    font-size: 1.25rem;
    font-weight: 700;

    color: #fff;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.captain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(250, 204, 21, 0.1);
    border: 1.5px solid #facc15;
    color: #facc15;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    flex-shrink: 0;
    white-space: nowrap;
}
.captain-uid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    font-size: 0.8rem;
    font-family: ui-monospace, monospace;
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.captain-uid:hover {
    border-color: #22c55e;
    color: #4ade80;
}

.captain-clan-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid #3f3f46;
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Currency selector */
.currency-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #3f3f46;
}
.currency-bar .label {
    font-size: 0.8rem;
    color: #a1a1aa;
    font-weight: 500;
    margin-right: 4px;
}
.currency-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    cursor: pointer;
    transition: all 0.2s;
}
.currency-btn:hover {
    border-color: #facc15;
    color: #fde047;
}
.currency-btn.active {
    background: rgba(250, 204, 21, 0.18);
    border-color: #facc15;
    color: #facc15;
}


