@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    color: #1a1a1a;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   1. HEADER GLASSMORPHISM & NAVBAR BRAND
   ========================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5%;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 10px;
}

.brand-logo-fallback {
    width: 38px;
    height: 38px;
    background: #111111;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.brand-name {
    font-size: 19px;
    font-weight: 800;
    color: #111111 !important;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.btn-admin-link {
    text-decoration: none;
    font-size: 12px;
    color: #111;
    font-weight: 700;
    background: rgba(0,0,0,0.05);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.btn-admin-link:hover {
    background: #111;
    color: #fff;
}

/* ==========================================
   2. HERO BANNER SECTION
   ========================================== */
.hero-section {
    padding: 40px 20px 25px 20px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #111111;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-title-text {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.hero-desc-text {
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto;
    color: #ffffff !important;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ==========================================
   3. BANNER PROMO SLIDER
   ========================================== */
.banner-promo-container {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 25px auto 35px auto !important;
    padding: 0 15px !important;
}

.banner-slider {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    scrollbar-width: none !important;
}

.banner-slider::-webkit-scrollbar {
    display: none !important;
}

.banner-slide-item {
    flex: 0 0 100% !important;
    scroll-snap-align: start !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

.banner-promo-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.banner-promo-img:hover {
    transform: scale(1.01) !important;
}

/* ==========================================
   4. KATEGORI INSTAGRAM STYLE & WARNA TEKS
   ========================================== */
.category-instagram-container {
    max-width: 1100px !important;
    margin: 30px auto !important;
    padding: 0 15px !important;
}

.ig-section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff !important;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.ig-story-slider {
    display: flex !important;
    gap: 24px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow-x: auto !important;
    padding: 10px 4px 16px 4px !important;
    scrollbar-width: none !important;
}

.ig-story-slider::-webkit-scrollbar { 
    display: none !important; 
}

.ig-story-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    flex: 0 0 90px !important;
    transition: transform 0.25s ease !important;
}

.ig-story-circle {
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    padding: 3px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
}

.ig-story-img-wrapper {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ig-story-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.ig-story-item.active .ig-story-circle {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    transform: scale(1.08) !important;
}

.ig-story-item:hover {
    transform: translateY(-4px) !important;
}

.ig-story-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.ig-story-item.active .ig-story-label {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* ==========================================
   5. ABOUT SECTION
   ========================================== */
.about-section {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

.about-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .about-card { grid-template-columns: 1.2fr 0.8fr; }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.feature-box {
    background: #fafafa;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
}

.feature-box h4 { font-size: 12px; margin-bottom: 2px; color: #111; }
.feature-box p { font-size: 10px; color: #71717a; }

/* ==========================================
   6. KATALOG PRODUK FEED & SHARE BUTTONS
   ========================================== */
.feed-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 15px 60px 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) { .feed-container { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feed-container { grid-template-columns: repeat(3, 1fr); } }

.card-item {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e4e4e7;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.08);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f4f4f5;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-item:hover .card-image-wrapper img {
    transform: scale(1.04);
}

/* Tombol Share Mengambang di Foto */
.btn-share-floating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, background 0.2s;
    z-index: 5;
}

.btn-share-floating:hover {
    transform: scale(1.1);
    background: #ffffff;
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #111;
    color: #fff;
    text-decoration: none;
    padding: 11px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    transition: background 0.2s ease;
}

.btn-whatsapp:hover {
    background: #25d366;
}

.btn-share-inline {
    background: #f4f4f5;
    color: #111;
    border: 1px solid #e4e4e7;
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-share-inline:hover {
    background: #e4e4e7;
}

/* ==========================================
   7. DASHBOARD ADMIN
   ========================================== */
.admin-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 15px;
}

.form-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #e4e4e7;
    margin-bottom: 20px;
}

.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    font-size: 13px;
    background: #fafafa;
}

.btn-primary {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
}

.table-responsive { overflow-x: auto; background: #fff; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f4f4f5; font-size: 13px; }

/* ==========================================
   8. FOOTER
   ========================================== */
.footer {
    padding: 40px 20px;
    text-align: center;
    font-size: 12px;
    background-image: none !important;
    box-shadow: none !important;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer h3, .footer p, .footer span {
    color: inherit;
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 8px;
        margin-top: 4px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr !important;
    }
}