/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* ========================================
   TOP NAVIGATION
   ======================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.top-nav .logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fe2c55;
    display: flex;
    align-items: center;
}

.top-nav .nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.top-nav .btn-login {
    background: #fe2c55;
    padding: 6px 14px;
    border-radius: 4px;
}

/* ========================================
   VIDEO CONTAINER (TIKTOK SCROLL)
   ======================================== */
.video-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.video-container::-webkit-scrollbar {
    display: none;
}

.video-item {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

/* ========================================
   OVERLAY INFO (Kiri Bawah)
   ======================================== */
.overlay {
    position: absolute;
    bottom: 80px;
    left: 15px;
    right: 90px;
    z-index: 10;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
    pointer-events: none;
}

.overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.overlay p {
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.4;
    margin-bottom: 8px;
}

.overlay .price {
    color: #fe2c55;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   RIGHT ACTIONS (Tombol Samping Kanan)
   ======================================== */
.actions {
    position: absolute;
    right: 12px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    z-index: 100;
    pointer-events: auto;
}

.action-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: transform 0.2s;
    pointer-events: auto;
    position: relative;
    z-index: 101;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.action-btn span {
    font-size: 0.65rem;
}

.cart-btn {
    background: #fe2c55;
}

.wa-btn {
    background: #25D366;
}

.shopee-btn {
    background: #ee4d2d;
}

/* ========================================
   BOTTOM NAVIGATION
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    z-index: 200;
    border-top: 1px solid #222;
}

.bottom-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.bottom-nav a i {
    font-size: 1.3rem;
}

.bottom-nav .cart-badge {
    background: #fe2c55;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.65rem;
    position: absolute;
    top: -5px;
    right: -8px;
}

/* ========================================
   SOUND TOGGLE BUTTON
   ======================================== */
.sound-toggle {
    position: fixed;
    top: 70px;
    right: 15px;
    z-index: 250;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.sound-toggle:hover {
    background: #fe2c55;
    transform: scale(1.1);
}

.sound-toggle.muted {
    opacity: 0.6;
}

/* ========================================
   UNMUTE HINT (Tengah Video)
   ======================================== */
.unmute-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 50;
    pointer-events: auto;
    animation: pulseHint 2s ease-in-out infinite;
    border: 2px solid #fe2c55;
    cursor: pointer;
}

.unmute-hint i {
    font-size: 1.3rem;
    color: #fe2c55;
}

.unmute-hint.hidden {
    display: none;
}

@keyframes pulseHint {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

/* ========================================
   SITE LOGO (Dynamic)
   ======================================== */
.site-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fe2c55;
    vertical-align: middle;
    margin-right: 6px;
}

/* ========================================
   LIKE BUTTON ANIMATION
   ======================================== */
.action-btn.liked i {
    color: #fe2c55 !important;
    animation: likeAnimation 0.4s ease;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.like-count {
    font-size: 0.7rem;
    margin-top: 2px;
    font-weight: 600;
}

/* ========================================
   COMMENTS PANEL (Slide Up)
   ======================================== */
.comments-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comments-overlay.active {
    display: block;
    opacity: 1;
}

.comments-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    height: 70vh;
    background: #1c1c1e;
    border-radius: 16px 16px 0 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.comments-overlay.active .comments-panel {
    transform: translateY(0);
}

.comments-header {
    padding: 15px;
    border-bottom: 1px solid #2c2c2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.comments-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.comments-list::-webkit-scrollbar {
    width: 4px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fe2c55;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.comment-author .time {
    font-weight: normal;
    color: #888;
    font-size: 0.75rem;
    margin-left: 8px;
}

.comment-text {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-delete {
    background: none;
    border: none;
    color: #888;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 4px;
    padding: 0;
}

.comment-delete:hover {
    color: #fe2c55;
}

.comments-empty {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-size: 0.9rem;
}

/* ========================================
   COMMENT INPUT
   ======================================== */
.comment-input-wrapper {
    padding: 12px 15px;
    border-top: 1px solid #2c2c2e;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #1c1c1e;
}

.comment-input {
    flex: 1;
    background: #2c2c2e;
    border: 1px solid #3a3a3c;
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.comment-input:focus {
    border-color: #fe2c55;
}

.comment-submit {
    background: #fe2c55;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.comment-submit:hover {
    transform: scale(1.1);
}

.comment-submit:disabled {
    background: #555;
    cursor: not-allowed;
}

/* ========================================
   LOGIN PROMPT
   ======================================== */
.login-prompt {
    text-align: center;
    padding: 30px 20px;
    color: #888;
}

.login-prompt a {
    color: #fe2c55;
    text-decoration: none;
    font-weight: 600;
}

/* ========================================
   AUTH PAGES (Login/Register)
   ======================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a, #000);
}

.auth-box {
    background: #1c1c1e;
    padding: 35px 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(254,44,85,0.15);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #fe2c55;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: #2c2c2e;
    border: 1px solid #3a3a3c;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fe2c55;
}

.btn-primary {
    width: 100%;
    padding: 13px;
    background: #fe2c55;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #e0274d;
}

.auth-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
}

.auth-link a {
    color: #fe2c55;
    text-decoration: none;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(40,167,69,0.2);
    border: 1px solid #28a745;
    color: #5dd97e;
}

.alert-error {
    background: rgba(220,53,69,0.2);
    border: 1px solid #dc3545;
    color: #ff6b7a;
}

.alert-info {
    background: rgba(23,162,184,0.2);
    border: 1px solid #17a2b8;
    color: #5cd5e3;
}

/* ========================================
   ADMIN DASHBOARD
   ======================================== */
.admin-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #1c1c1e;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #fe2c55;
}

.stat-card h3 {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: bold;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
    cursor: pointer;
    border: none;
    color: white;
    font-weight: 500;
}

.btn-danger {
    background: #dc3545;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-success {
    background: #28a745;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.75rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #1c1c1e;
    border-radius: 8px;
    overflow: hidden;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2c2c2e;
}

table th {
    background: #2c2c2e;
    font-size: 0.85rem;
}

table td {
    font-size: 0.85rem;
}

table img,
table video {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* ========================================
   CHECKOUT
   ======================================== */
.checkout-container {
    min-height: 100vh;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #1a1a1a, #000);
}

.checkout-card {
    max-width: 500px;
    margin: 0 auto;
    background: #1c1c1e;
    padding: 25px;
    border-radius: 16px;
}

.checkout-card h2 {
    margin-bottom: 15px;
    color: #fe2c55;
}

.checkout-card .product-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.checkout-card video {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-card .product-details h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.checkout-card .product-details .price {
    color: #fe2c55;
    font-weight: bold;
    font-size: 1.1rem;
}

.buy-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s;
}

.buy-btn:hover {
    transform: translateY(-2px);
}

.buy-btn i {
    font-size: 1.3rem;
}

.buy-wa {
    background: #25D366;
}

.buy-shopee {
    background: #ee4d2d;
}

.buy-tokopedia {
    background: #42b549;
}

.buy-lazada {
    background: #0f146d;
}

/* ========================================
   CART
   ======================================== */
.cart-item {
    background: #1c1c1e;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-item video {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item .info {
    flex: 1;
}

.cart-item .info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item .info .price {
    color: #fe2c55;
    font-weight: bold;
}

.cart-item .remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* ========================================
   PROFILE PAGE
   ======================================== */
.profile-header {
    text-align: center;
    padding: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 600px) {
    .overlay h3 {
        font-size: 1rem;
    }
    
    .overlay p {
        font-size: 0.8rem;
    }
    
    .action-btn {
        width: 42px;
        height: 42px;
    }
    
    .action-btn i {
        font-size: 1.2rem;
    }
    
    .sound-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 65px;
        right: 10px;
    }
    
    .unmute-hint {
        font-size: 0.8rem;
        padding: 12px 20px;
    }
    
    .comments-panel {
        height: 75vh;
        max-width: 100%;
    }
}