/* ========================================
   BERINSPA - MODERN AESTHETIC DESIGN
   ======================================== */

/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e1e2f;
    --dark-light: #2d2d44;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --gray-bg: #f9fafb;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #1e1e2f 0%, #2d2d44 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: var(--gray-bg);
    color: var(--dark);
    line-height: 1.5;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo span {
    background: none;
    -webkit-text-fill-color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--primary);
    font-weight: 600;
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== MAIN CONTAINER - DESKTOP ========== */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

/* ========== CREATE POST CARD ========== */
.create-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.create-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.create-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.create-header h3 {
    font-size: 18px;
    color: var(--dark);
}

.create-post-form textarea {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    transition: all 0.2s ease;
}

.create-post-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-row {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.form-row select,
.form-row input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    background: var(--white);
}

/* ========== POST CARD ========== */
/* ========== POST CARD ========== */
.post-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.post-header {
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-info {
    flex: 1;
    min-width: 0;
}

.post-author-info a {
    text-decoration: none;
}

.post-author-info strong {
    display: block;
    font-size: 15px;
    color: var(--dark);
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-author-info strong:hover {
    color: var(--primary);
}

.post-author-info span {
    font-size: 12px;
    color: var(--gray);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-badge.experience { background: #e0e7ff; color: #4f46e5; }
.category-badge.passion { background: #fce7f3; color: #ec4899; }
.category-badge.insight { background: #d1fae5; color: #10b981; }
.category-badge.learning { background: #fed7aa; color: #f59e0b; }
.category-badge.achievement { background: #fee2e2; color: #ef4444; }

.post-content {
    padding: 0 20px 16px;
}

.post-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 12px;
    word-wrap: break-word;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.tag {
    background: var(--gray-bg);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary);
    color: white;
}

.post-media {
    margin-top: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.post-media img,
.post-media video {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-stats {
    padding: 12px 20px;
    display: flex;
    gap: 24px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    color: var(--gray);
    font-size: 13px;
}

.post-actions {
    padding: 12px 20px 20px;
    display: flex;
    gap: 32px;
}

/* Warna like - MERAH seperti Instagram */
.action-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #8e8e8e; /* Warna abu-abu default */
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.action-btn:hover { 
    background: #f3f4f6; 
}

/* Warna saat liked - MERAH */
.action-btn.liked { 
    color: #ed4956; /* Warna merah khas Instagram */
}

.action-btn.liked i {
    animation: likePop 0.3s ease;
}

/* Animasi bounce tombol like */
.like-btn {
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.like-btn:active {
    transform: scale(1.3) !important;
}

/* Animasi pop icon love */
@keyframes likePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* DESKTOP LAYOUT */
.desktop-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 32px;
}

.desktop-feed {
    flex: 1;
    min-width: 0;
}

.desktop-sidebar {
    width: 340px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .desktop-layout {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .desktop-sidebar {
        display: none;
    }
    
    .desktop-feed {
        width: 100%;
    }
    
    .post-card {
        border-radius: 0;
        margin-bottom: 8px;
    }
    
    .post-header {
        padding: 12px 16px;
    }
    
    .post-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 14px;
    }
    
    .post-content {
        padding: 0 16px 12px;
    }
    
    .post-stats {
        padding: 10px 16px;
    }
    
    .post-actions {
        padding: 8px 16px 16px;
        gap: 16px;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .category-badge {
        padding: 4px 10px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .post-author-info strong {
        font-size: 13px;
    }
    
    .post-author-info span {
        font-size: 10px;
    }
    
    .post-actions {
        gap: 8px;
        flex-wrap: wrap;
    }
}

.action-btn:hover {
    background: var(--gray-bg);
    color: var(--primary);
}

.action-btn.liked {
    color: var(--danger);
}

/* ========== SIDEBAR - DESKTOP ========== */
.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gradient-card {
    background: var(--gradient);
    color: white;
}

.gradient-card h3 {
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-top: 16px;
    transition: all 0.2s;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

.trending-tag {
    display: inline-block;
    background: var(--gray-bg);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    margin: 0 6px 10px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.trending-tag:hover {
    background: var(--primary);
    color: white;
}

.quote-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: none;
}

.quote-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #92400e;
}

.quote-author {
    font-size: 13px;
    color: #b45309;
    text-align: right;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 24px;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-link {
    padding: 10px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background: var(--gradient);
    color: white;
}

/* ========== MOBILE BOTTOM NAVIGATION ========== */
.desktop-nav {
    display: flex;
}

.mobile-bottom-nav,
.mobile-only {
    display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }
    
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Hide desktop navigation */
    .desktop-nav {
        display: none !important;
    }
    
    /* Show mobile elements */
    .mobile-bottom-nav,
    .mobile-only {
        display: flex;
    }
    
    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 8px 16px;
        justify-content: space-around;
        z-index: 1000;
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        color: #8e8e8e;
        font-size: 10px;
        transition: all 0.2s ease;
        padding: 8px 12px;
        border-radius: 30px;
    }
    
    .bottom-nav-item i {
        font-size: 22px;
    }
    
    .bottom-nav-item.active {
        color: var(--primary);
    }
    
    /* Main container padding for bottom nav */
    .main-container {
        padding-bottom: 80px !important;
        margin-bottom: 0 !important;
    }
    
    /* Post card mobile */
    .post-card {
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .post-header {
        padding: 12px 16px;
    }
    
    .post-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .post-content {
        padding: 0 16px 12px;
    }
    
    .post-actions {
        padding: 8px 16px;
        gap: 16px;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Create card mobile */
    .create-card {
        margin: 0 0 12px 0;
        border-radius: 12px;
        padding: 16px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Stories row */
    .stories-container {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 12px 16px;
        background: white;
        border-bottom: 1px solid #e5e7eb;
        scrollbar-width: none;
    }
    
    .stories-container::-webkit-scrollbar {
        display: none;
    }
    
    .story-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        min-width: 65px;
        cursor: pointer;
    }
    
    .story-ring {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
        padding: 2px;
    }
    
    .story-avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: bold;
        color: var(--primary);
    }
    
    .story-name {
        font-size: 10px;
        color: #4b5563;
    }
    
    /* Floating create button */
    .floating-create-btn {
        display: flex;
        position: fixed;
        bottom: 80px;
        right: 16px;
        background: var(--gradient);
        width: 52px;
        height: 52px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        cursor: pointer;
        z-index: 99;
        transition: all 0.2s;
    }
    
    .floating-create-btn:active {
        transform: scale(0.95);
    }
    
    .floating-create-btn i {
        font-size: 22px;
        color: white;
    }
    
    /* Create modal */
    .create-modal {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 20px 20px 0 0;
        z-index: 1050;
        animation: slideUp 0.3s ease;
    }
    
    .create-modal.active {
        display: block;
    }
    
    .create-modal-header {
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
    
    .modal-overlay.active {
        display: block;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    /* Mobile header */
    .header.mobile-only {
        display: flex !important;
        position: sticky;
        top: 0;
        background: white;
        z-index: 100;
    }
}

/* Desktop styles - ensure everything is visible */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    
    .header.mobile-only {
        display: none !important;
    }
}

/* ========== TOAST NOTIFICATION ========== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1200;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-content {
    background: var(--dark);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
}

.toast-success .toast-content {
    background: var(--success);
}

.toast-error .toast-content {
    background: var(--danger);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeInUp 0.4s ease;
}
/* Modal Edit Profil */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal-header h3 {
    font-size: 20px;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #1f2937;
}

/* Form Edit Profil */
.form-group {
    padding: 0 24px 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Avatar Upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
    background-size: cover;
    background-position: center;
}

.avatar-upload-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #f3f4f6;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    width: calc(100% - 48px);
    margin: 0 24px 24px;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    animation: toastFadeIn 0.3s ease;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-content {
    background: #1e1e2f;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-success .toast-content {
    background: #10b981;
}

.toast-error .toast-content {
    background: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        border-radius: 20px;
    }
    
    .form-group {
        padding: 0 16px 16px;
    }
    
    .btn-primary {
        width: calc(100% - 32px);
        margin: 0 16px 20px;
    }
    
    .avatar-upload {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Sembunyikan di mobile, tampil di desktop */
.desktop-only {
    display: block;
}

@media (max-width: 968px) {
    .desktop-only {
        display: none !important;
    }
}

/* Modal Komentar */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    margin: 0;
    font-size: 18px;
}
.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}
.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 300px;
    max-height: 400px;
}
.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-content {
    flex: 1;
}
.comment-author {
    font-weight: 600;
    font-size: 13px;
    color: #1e1e2f;
    text-decoration: none;
}
.comment-author:hover {
    text-decoration: underline;
}
.comment-text {
    font-size: 13px;
    color: #374151;
    margin: 4px 0;
    line-height: 1.4;
}
.comment-time {
    font-size: 10px;
    color: #9ca3af;
}
.delete-comment {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 12px;
    padding: 0 4px;
}
.delete-comment:hover {
    color: #ef4444;
}
.comment-input-wrapper {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.comment-input-area {
    flex: 1;
    display: flex;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 24px;
    padding: 4px 12px;
    align-items: center;
}
.comment-input-area textarea {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
}
.submit-comment-btn {
    background: none;
    border: none;
    color: #6366f1;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
}
.submit-comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.loading-comments {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}
.empty-comments {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}