* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    
    /* --- KODE BACKGROUND GAMBAR --- */
    background-image: linear-gradient(rgba(10, 10, 10, 0.3), rgba(15, 5, 5, 0.5)), url('backround-ammar.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    /* ------------------------------------------------------ */
    
    color: #ffffff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100%; 
    min-height: 100vh;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 2px solid rgba(255, 0, 60, 0.2);
    border-right: 2px solid rgba(255, 0, 60, 0.2);
    padding-bottom: 80px;
    box-shadow: 0 0 50px rgba(255, 0, 60, 0.1);
}

.content-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* --- TOMBOL KEMBALI --- */
.back-btn-container {
    width: 100%;
    padding: 20px 20px 0;
    display: flex;
    justify-content: flex-start;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff003c;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    background: rgba(255, 0, 60, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 60, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.back-btn:hover {
    background: #ff003c;
    color: #fff;
    transform: translateX(-5px);
}

/* --- HEADER --- */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    padding: 20px 20px;
    text-align: center;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff003c;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
    margin-bottom: 15px;
}

.username {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #ff003c;
}

.bio {
    font-size: 12px;
    color: #aaaaaa;
    margin-top: 5px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- KATEGORI & LINK --- */
.section-title {
    font-size: 13px;
    font-weight: 800;
    margin: 30px 20px 15px 20px;
    color: #ff003c;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 0, 60, 0.3);
    padding-bottom: 8px;
    display: inline-block;
}

.grid-wrapper {
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
}

.full-wrapper {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30,30,30,0.8), rgba(15,15,15,0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px; 
    padding: 20px 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.link-card.full-width {
    flex-direction: row;
    justify-content: flex-start;
    padding: 15px 20px;
    gap: 15px;
}

.link-card:hover {
    background: rgba(255, 0, 60, 0.1);
    border-color: #ff003c;
    box-shadow: 0 5px 20px rgba(255, 0, 60, 0.3);
    transform: scale(1.05) skewX(-2deg); 
}

.link-icon {
    font-size: 28px;
    margin-bottom: 10px;
    color: #ffffff;
    transition: 0.3s;
}

.link-card.full-width .link-icon {
    margin-bottom: 0;
    font-size: 24px;
    color: #ff003c;
}

.link-card:hover .link-icon {
    color: #ff003c;
    transform: scale(1.1);
}

.link-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- FOTO PROFIL TEMAN --- */
.friend-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 0, 60, 0.4);
    margin-bottom: 10px;
    transition: 0.3s;
}

.link-card:hover .friend-avatar {
    border-color: #ff003c;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
    transform: scale(1.1);
}

/* --- ANIMASI MUNCUL DARI KIRI --- */
@keyframes slideDariKiri {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.anim-item {
    opacity: 0; 
    animation: slideDariKiri 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: var(--d); 
}

/* --- POPUP NOTIFIKASI DARI ATAS --- */
.top-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 60, 0.95);
    border: 1px solid #ff4d79;
    border-radius: 8px;
    padding: 15px 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(255, 0, 60, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    
    opacity: 0;
    animation: turunDariAtas 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 5.0s; 
}

@keyframes turunDariAtas {
    from { top: -100px; opacity: 0; transform: translateX(-50%) scale(0.9); }
    to { top: 20px; opacity: 1; transform: translateX(-50%) scale(1); }
}

.notif-kiri {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notif-kiri i {
    font-size: 24px;
    color: white;
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.notif-teks h4 { margin: 0 0 3px 0; font-size: 14px; color: white; }
.notif-teks p { margin: 0; font-size: 11px; color: rgba(255,255,255,0.8); }

.btn-notif {
    background: white;
    color: #ff003c;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.2s;
}

.btn-notif:hover {
    background: #222;
    color: white;
  }

