/* --- VARIABLE & RESET --- */
:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --accent: #60a5fa;
    --card-bg: rgba(255, 255, 255, 0.8);
    --jakarta: 'Plus Jakarta Sans', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    transition: background-color 0.5s ease, color 0.5s ease;
    font-family: var(--jakarta);
    line-height: 1.5;
}

/* --- TEMA 1: MODERN WHITE (DEFAULT) --- */
body.theme-modern { 
    --bg: #f8fafc; 
    --text: #0f172a; 
    --accent: #3b82f6; 
    --card-bg: #ffffff;
}

/* --- TEMA 2: DARK GOLD (PREMIUM) --- */
body.theme-dark-gold { 
    --bg: #0f172a; 
    --text: #f1f5f9; 
    --accent: #e2b850; 
    background-image: radial-gradient(circle at top right, #1e293b, #0f172a);
}
body.theme-dark-gold .link-btn { 
    border: 1px solid rgba(226, 184, 80, 0.3); 
    background: rgba(226, 184, 80, 0.05); 
    color: #f1f5f9;
}
body.theme-dark-gold .link-btn i {
    color: #e2b850;
}

/* --- TEMA 3: GLASSMORPHISM --- */
body.theme-glass { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    --text: #ffffff; 
    --accent: #ffffff;
}
body.theme-glass .link-btn { 
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    color: #ffffff;
}
body.theme-glass .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* --- TEMA 4: SUNSET GRADIENT --- */
body.theme-sunset { 
    background: linear-gradient(to bottom right, #ff5f6d, #ffc371);
    background-attachment: fixed;
    --text: #ffffff; 
    --accent: #ffffff;
}
body.theme-sunset .link-btn { 
    background: rgba(255, 255, 255, 0.2); 
    border: none; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.1); 
    color: #ffffff;
}

/* --- TEMA 5: MINIMALIST MONO --- */
body.theme-minimal { 
    --bg: #ffffff; 
    --text: #000000; 
    --accent: #000000; 
}
body.theme-minimal .link-btn { 
    border: 2px solid #000000; 
    border-radius: 0; 
    background: transparent; 
}

/* --- KOMPONEN UI --- */
.profile-container {
    width: 100%;
    max-width: 450px;
    text-align: center;
    z-index: 1;
}

.avatar {
    width: 110px;
    height: 110px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
}

.avatar img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

h1#name-display {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: rgba(0,0,0,0.05);
    margin-top: 5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.links-wrapper { 
    margin-top: 35px; 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}

.link-btn {
    padding: 18px 25px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.05);
}

.link-btn:hover { 
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.link-btn:active {
    transform: scale(0.97);
}

.link-btn i { 
    font-size: 1.4rem; 
    width: 30px; 
    color: var(--accent); 
    text-align: center; 
}

.link-btn span {
    flex-grow: 1;
    text-align: left;
}

/* --- LOADING SCREEN --- */
#loading { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--bg); 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    z-index: 9999; 
    transition: opacity 0.5s ease;
}

#loading i {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 15px;
}

#loading p {
    color: var(--text);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.footer {
    margin-top: 50px;
    font-size: 0.75rem;
    opacity: 0.6;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Report Button */
.report-btn {
    background: none;
    border: none;
    color: var(--text);
    opacity: 0.3;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 30px;
    cursor: pointer;
    transition: opacity 0.3s;
}
.report-btn:hover { opacity: 1; color: #ff4d4d; }

/* Report Modal */
.report-modal {
    display: none;
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: var(--bg);
    color: var(--text);
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.modal-content h3 { margin-bottom: 10px; font-weight: 800; }
.modal-content p { font-size: 0.9rem; opacity: 0.7; margin-bottom: 20px; }
.modal-content select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(128,128,128,0.2);
    background: rgba(128,128,128,0.1);
    color: var(--text);
    margin-bottom: 25px;
    font-family: inherit;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}
.btn-cancel { background: none; border: none; color: var(--text); font-weight: 700; cursor: pointer; }
.btn-confirm {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}