/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    transition: background-color 0.3s ease, color 0.3s ease;
}
[data-theme="dark"] body {
    background-color: #0a0c14;
    color: #e0e0e0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1e293b;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #475569;
}

/* ===== GLASS HEADER ===== */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .glass-header {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border-radius: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid #e0e0e0;
    color: #1a1a1a;
    border-radius: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}
[data-theme="dark"] .btn-secondary {
    border-color: #2a3040;
    color: #e0e0e0;
}
.btn-secondary:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: translateY(-2px);
}

/* ===== BADGES ===== */
.badge-admin {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.badge-translator {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9999px;
    background: #3b82f6;
    color: white;
}
.badge-developer {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9999px;
    background: #10b981;
    color: white;
}
.badge-member {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9999px;
    background: #6b7280;
    color: white;
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== GAME CARD ===== */
.game-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}
[data-theme="dark"] .game-card {
    background: #1a1f2e;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .game-card:hover {
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.2);
}
.game-card img {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.game-card:hover img {
    transform: scale(1.02);
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .filter-section {
    background: rgba(26, 31, 46, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

/* ===== TABLE WRAPPER ===== */
.table-wrapper {
    overflow-x: auto;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
.table-wrapper table {
    min-width: 100%;
    border-collapse: collapse;
}
.table-wrapper th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}
[data-theme="dark"] .table-wrapper th {
    color: #9ca3af;
}
.table-wrapper td {
    padding: 0.75rem 1rem;
    white-space: nowrap;
    font-size: 0.875rem;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.1), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1), transparent 50%),
                #f9fafb;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}
[data-theme="dark"] .hero-section {
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.15), transparent 50%),
                #0a0c14;
}
.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
[data-theme="dark"] .hero-subtitle {
    color: #9ca3af;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    min-width: 160px;
    transition: all 0.3s ease;
}
[data-theme="dark"] .stat-card {
    background: #1a1f2e;
    border-color: #2a3040;
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: #8b5cf6;
}
.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 1rem;
    color: white;
    font-size: 1.5rem;
}
.stat-info {
    text-align: left;
}
.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}
[data-theme="dark"] .stat-label {
    color: #9ca3af;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    animation: bounce 2s ease-in-out infinite;
}
.scroll-text {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.section-title i {
    color: #8b5cf6;
}
.section-subtitle {
    color: #6b7280;
}
[data-theme="dark"] .section-subtitle {
    color: #9ca3af;
}
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
[data-theme="dark"] .filter-tab {
    background: #1a1f2e;
    border-color: #2a3040;
    color: #9ca3af;
}
.filter-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: transparent;
    color: white;
}
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.game-card-link {
    text-decoration: none;
    color: inherit;
}
.game-thumbnail {
    position: relative;
    overflow: hidden;
}
.game-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}
.game-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0,0,0,0.7);
    color: white;
    backdrop-filter: blur(4px);
}
.game-badge.genre {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}
.game-badge.hot {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.game-card:hover .game-overlay {
    opacity: 1;
}
.overlay-content {
    width: 100%;
    padding: 1rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}
.game-card:hover .overlay-content {
    transform: translateY(0);
}
.overlay-stats {
    display: flex;
    gap: 1rem;
    color: white;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}
.game-info {
    padding: 1rem;
}
.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.game-author {
    font-size: 0.8rem;
    color: #6b7280;
}
[data-theme="dark"] .game-author {
    color: #9ca3af;
}
.game-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #fbbf24;
}
.game-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}
[data-theme="dark"] .game-footer {
    border-top-color: #2a3040;
    color: #9ca3af;
}
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-illustration {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.empty-text {
    color: #6b7280;
    margin-bottom: 1.5rem;
}
[data-theme="dark"] .empty-text {
    color: #9ca3af;
}

/* ===== PAGINATION ===== */
.pagination-premium {
    margin-top: 2rem;
    text-align: center;
}
.pagination-info {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}
[data-theme="dark"] .pagination-info {
    color: #9ca3af;
}
.info-current, .info-total {
    font-weight: 600;
    color: #8b5cf6;
}
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.pagination-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
}
[data-theme="dark"] .pagination-nav {
    background: #1a1f2e;
    border-color: #2a3040;
    color: #9ca3af;
}
.pagination-nav.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}
.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.5rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
}
[data-theme="dark"] .page-number {
    color: #9ca3af;
}
.page-number.current {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
}
.page-number:hover:not(.current) {
    background: #f3f4f6;
}
[data-theme="dark"] .page-number:hover:not(.current) {
    background: #2a3040;
}

/* ===== CATEGORIES ===== */
.categories-section {
    background: #f9fafb;
    padding: 4rem 2rem;
}
[data-theme="dark"] .categories-section {
    background: #111827;
}
.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
}
[data-theme="dark"] .category-card {
    background: #1a1f2e;
    border-color: #2a3040;
}
.category-card:hover {
    transform: translateY(-4px);
    border-color: #8b5cf6;
}
.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}
[data-theme="dark"] .category-name {
    color: #f3f4f6;
}
.category-count {
    font-size: 0.7rem;
    color: #6b7280;
}
[data-theme="dark"] .category-count {
    color: #9ca3af;
}
.category-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(99,102,241,0.1));
    opacity: 0;
    transition: opacity 0.3s;
}
.category-card:hover .category-hover {
    opacity: 1;
}

/* ===== CTA SECTION ===== */
.cta-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}
.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.cta-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}
.cta-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}
.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #f9fafb;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e5e7eb;
}
[data-theme="dark"] .footer {
    background: #111827;
    border-top-color: #2a3040;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}
.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}
.footer-section ul {
    list-style: none;
}
.footer-section li {
    margin-bottom: 0.5rem;
}
.footer-section a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}
[data-theme="dark"] .footer-section a {
    color: #9ca3af;
}
.footer-section a:hover {
    color: #8b5cf6;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    transition: all 0.2s;
}
[data-theme="dark"] .social-links a {
    background: #1a1f2e;
    border-color: #2a3040;
    color: #9ca3af;
}
.social-links a:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: translateY(-2px);
}
.footer-bottom {
    text-align: center;
    padding: 2rem 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.75rem;
    color: #6b7280;
}
[data-theme="dark"] .footer-bottom {
    border-top-color: #2a3040;
    color: #9ca3af;
}

/* ===== GLOBAL FIX ===== */
body {
    overflow-x: hidden;
}

/* Biar full lebar di HP */
.container,
.hero-container,
.featured-section,
.categories-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* ===== TABLET ===== */
@media (max-width: 768px) {
    .container, .hero-container, .featured-section, .categories-section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero-section {
        padding: 1.5rem 0.75rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    /* Game tetap 1 kolom tapi full width */
    .game-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Kategori 2 kolom biar gak terlalu panjang */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        min-width: auto;
        width: 100%;
    }
}

/* ===== HP ===== */
@media (max-width: 480px) {

    /* FULL WIDTH TANPA “TERASA KEKECILAN” */
    .container, .hero-container, .featured-section, .categories-section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .hero-section {
        padding: 1.2rem 0.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* STAT jadi full lebar */
    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-card {
        width: 100%;
        padding: 0.6rem;
    }

    /* GRID FULL WIDTH */
    .game-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* BUTTON FULL */
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    /* FILTER jangan makan tempat */
    .filter-tab {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }

    /* PAGINATION lebih kecil */
    .pagination-nav {
        padding: 0.25rem 0.6rem;
    }

    .page-number {
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.7rem;
    }

    /* Space buat navbar bawah */
    main {
        padding-bottom: 3.5rem;
    }
}

.glass-header {
    transition: transform 0.3s ease;
}



/* =========================
   PREMIUM ROLE SYSTEM V5
   CLEAN • LUXURY • CONSISTENT
========================= */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    backdrop-filter: blur(6px);
}

/* ===== ADMIN BADGE (ULTRA LUXURY) ===== */
.badge-admin {
    background: linear-gradient(
        120deg,
        #8f6b1f,
        #caa64b,
        #fff4c4,
        #d4af37,
        #caa64b,
        #8f6b1f
    );
    background-size: 250% auto;

    color: #1a1a1a;
    font-weight: 700;

    box-shadow:
        0 6px 20px rgba(202,166,75,0.35),
        inset 0 1px 0 rgba(255,255,255,0.4);

    animation: shineFlow 6s linear infinite;
}

/* shine tipis */
.badge-admin::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );

    opacity: 0.3;
    animation: shinePass 8s ease-in-out infinite;
}

/* ===== TRANSLATOR ===== */
.badge-translator {
    background: linear-gradient(135deg, #4facfe, #6a82fb);
    color: #fff;
    animation: subtleBreath 6s ease-in-out infinite;
}

/* ===== DEVELOPER ===== */
.badge-developer {
    background: linear-gradient(135deg, #7f7fd5, #86a8e7);
    color: #fff;
    animation: subtleBreath 6s ease-in-out infinite;
}

/* ===== DONOR ===== */
.badge-donor {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    animation: subtleBreath 6s ease-in-out infinite;
}

/* ===== MEMBER ===== */
.badge-member {
    background: #6b7280;
    color: #e5e7eb;
}


/* =========================
   USERNAME SYSTEM (ULTRA REFINED)
========================= */

/* ===== ADMIN (ULTRA LUXURY CLEAN) ===== */
.username-admin {
    font-weight: 900;
    letter-spacing: 0.6px;
    position: relative;
    display: inline-block;

    background: linear-gradient(
        115deg,
        #8f6b1f 0%,
        #caa64b 15%,
        #fff8dc 30%,
        #d4af37 45%,
        #fff4c4 60%,
        #caa64b 75%,
        #8f6b1f 100%
    );
    background-size: 300% auto;

    -webkit-background-clip: text;
    color: transparent;

    animation:
        shineFlow 8s linear infinite,
        glowSmooth 5s ease-in-out infinite;
}

/* aura halus */
.username-admin::before {
    content: "";
    position: absolute;
    inset: -6px;

    background: radial-gradient(
        circle,
        rgba(255,215,0,0.12),
        rgba(255,215,0,0.05),
        transparent 70%
    );

    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
}

/* shine cinematic */
.username-admin::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255,255,255,0.25) 45%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0.25) 55%,
        transparent 100%
    );

    opacity: 0.25;
    animation: shinePass 9s ease-in-out infinite;
}

.username-admin:hover {
    transform: scale(1.02);
}


/* ===== TRANSLATOR ===== */
.username-translator {
    font-weight: 600;
    background: linear-gradient(120deg, #4facfe, #a1c4fd);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;

    animation:
        shineFlow 8s linear infinite,
        floatSoft 7s ease-in-out infinite;
}

/* ===== DEVELOPER ===== */
.username-developer {
    font-weight: 600;
    background: linear-gradient(120deg, #7f7fd5, #86a8e7, #91eae4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;

    animation:
        shineFlow 8s linear infinite,
        floatSoft 7s ease-in-out infinite;
}

/* ===== DONOR ===== */
.username-donor {
    font-weight: 600;
    background: linear-gradient(120deg, #f59e0b, #f97316);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;

    animation:
        shineFlow 7s linear infinite,
        floatSoft 6s ease-in-out infinite;
}

/* ===== MEMBER ===== */
.username-member {
    font-weight: 500;
    color: #d1d5db;
    transition: color 0.3s ease;
}

.username-member:hover {
    color: #ffffff;
}


/* =========================
   UI ELEMENTS
========================= */

.profile-cover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 70%);
}

.stat-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.social-btn {
    transition: all 0.25s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.achievement-badge {
    transition: transform 0.2s ease;
}

.achievement-badge:hover {
    transform: scale(1.05);
}


/* =========================
   ANIMATIONS
========================= */

@keyframes shineFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes shinePass {
    0% { transform: translateX(-120%) skewX(-15deg); opacity: 0; }
    20% { opacity: 0.3; }
    50% { opacity: 0.5; }
    80% { opacity: 0.3; }
    100% { transform: translateX(120%) skewX(-15deg); opacity: 0; }
}

@keyframes floatSoft {
    0%,100% { transform: translateY(0px); }
    50% { transform: translateY(-1px); }
}

@keyframes glowSmooth {
    0%,100% { filter: brightness(1); }
    50% { filter: brightness(1.12); }
}

@keyframes subtleBreath {
    0%,100% { filter: brightness(1); }
    50% { filter: brightness(1.06); }
}

/* Dropdown share - responsive untuk mobile */
@media (max-width: 640px) {
    #shareDropdown {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        max-width: 100%;
        border-radius: 1rem 1rem 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    #shareDropdown:not(.hidden) {
        transform: translateY(0);
    }
    
    .share-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    
    .share-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (min-width: 641px) {
    #shareDropdown {
        position: absolute;
        right: 0;
        top: 100%;
        bottom: auto;
        width: 220px;
        border-radius: 0.5rem;
    }
}

/* Mencegah zoom pada seluruh halaman */
body {
    touch-action: pan-x pan-y; /* Mencegah pinch zoom */
}

/* Untuk input agar tetap bisa zoom (opsional) */
input, textarea, select {
    font-size: 16px; /* Mencegah zoom otomatis pada input di iOS */
}


/* Navbar hide on scroll dengan bounce effect */
.glass-header {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateY(0);
    will-change: transform;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-header.hide {
    transform: translateY(-100%);
}