* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    min-height: 100vh;
    color: #333;
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Space for fixed navbar */
}

/* Top Navigation Bar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar-left h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.login-logo {
    height: 67px;
    width: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-logo:hover {
    transform: scale(1.05);
}

/* Logo size controls */
.logo-controls {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1001;
    display: none;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.logo-controls label {
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

.logo-controls input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

.logo-controls button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.3s ease;
}

.logo-controls button:hover {
    background: #f7931e;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* Subscription info styles */
.subscription-info {
    margin-top: 10px;
}

.subscription-details {
    display: flex;
    gap: 15px;
    align-items: center;
    color: white;
    font-size: 13px;
}

.plan-info, .device-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.device-info {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
}

@media (max-width: 768px) {
    .subscription-details {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .plan-info, .device-info {
        font-size: 12px;
        padding: 3px 6px;
    }
}

.user-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    cursor: pointer;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.user-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.user-dropdown {
    position: absolute;
    top: 130%;
    right: -150px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.4), rgba(255, 140, 0, 0.6));
    border: 1px solid rgba(255, 69, 0, 0.5);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 69, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px;
    min-width: 220px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
    margin-right: 0;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown.show {
    display: block;
}

.user-details {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    text-align: right;
    white-space: pre-line;
    line-height: 1.5;
}

.user-dropdown .time-remaining {
    color: #000000;
    font-size: 13px;
    line-height: 1.4;
    display: block !important;
    font-weight: 400;
    text-align: right;
}

.time-remaining {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
    text-align: right;
    line-height: 1.4;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.time-remaining small {
    font-size: 11px;
    opacity: 0.85;
    display: inline;
    margin-left: 8px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.navbar-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.admin-btn {
    background: #ffd700;
    color: #b8860b;
}

.admin-btn:hover {
    background: #ffed4e;
    transform: translateY(-1px);
}

.topup-btn {
    background: #4ade80;
    color: #166534;
}

.topup-btn:hover {
    background: #6ee7b7;
    transform: translateY(-1px);
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.main-layout {
    display: flex;
    min-height: 100vh;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    /*top: 20px;*/
    /*left: 20px;*/
    z-index: 1001;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 107, 53, 1);
    transform: scale(1.05);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar {
    width: min(320px, 25vw);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(247, 147, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    padding: 0;
    position: fixed;
    top: 70px;
    height: calc(100vh - 70px);
    overflow: hidden;
    z-index: 999;
    border-right: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
}

.sidebar h3 {
    color: white;
    margin: 0 0 30px 0;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 30px 25px 20px 25px;
    background: rgba(255,255,255,0.05);
    border-bottom: 3px solid #ff6b35;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.category-menu {
    list-style: none;
    padding: 0 15px 20px 15px;
    margin: 0;
    flex: 1;
    min-height: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.category-menu li {
    margin-bottom: 4px;
}

.category-menu button {
     width: 100%;
     padding: 16px 20px;
     border: none;
     background: transparent;
     color: white;
     text-align: left;
     border-radius: 12px;
     cursor: pointer;
     font-size: 15px;
     font-weight: 500;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
     display: flex;
     align-items: center;
     gap: 12px;
 }
 
 .category-icon {
     font-size: 18px;
     display: inline-block;
     min-width: 24px;
     text-align: center;
 }

.category-menu button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.category-menu button:hover {
     background: rgba(255,255,255,0.15);
     color: white;
     transform: translateX(8px);
     box-shadow: 0 4px 15px rgba(255,255,255,0.1);
 }

.category-menu button:hover::before {
    left: 100%;
}

.category-menu button.active {
     background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 100%);
     color: white;
     box-shadow: 0 6px 20px rgba(255,255,255,0.2);
     transform: translateX(8px);
     border: 1px solid rgba(255,255,255,0.3);
 }
 
 .category-menu button.active:hover {
     background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.25) 100%);
     box-shadow: 0 8px 25px rgba(255,255,255,0.3);
 }
 
 .sidebar-footer {
   margin-top: auto;
   padding: 20px 25px;
   background: rgba(0,0,0,0.2);
   border-top: 1px solid rgba(255,255,255,0.1);
   flex-shrink: 0;
}
 
 .footer-info {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }
 
 .footer-text {
     color: rgba(255,255,255,0.8);
     font-size: 14px;
     font-weight: 600;
 }
 
 .footer-version {
     color: rgba(255,255,255,0.5);
     font-size: 12px;
     background: rgba(255,255,255,0.1);
     padding: 4px 8px;
     border-radius: 12px;
 }

.content {
    margin-left: min(320px, 25vw);
    padding: 20px;
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #ff6b35;
}

.header p {
    font-size: 1rem;
    color: #666;
}

.video-player {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
}

.video-player.active {
    display: block;
}

.video-player h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

#video {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Hide video timeline/progress bar and time display */
#video::-webkit-media-controls-timeline {
    display: none !important;
}

#video::-webkit-media-controls-current-time-display {
    display: none !important;
}

#video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

#video::-moz-range-progress {
    display: none !important;
}

#video::-moz-range-track {
    display: none !important;
}

.video-player {
    position: relative;
}

.category {
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-title {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 20px;
    /*border-left: 4px solid #667eea;
    padding-left: 15px;*/
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.video-thumbnail {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
    border-radius: 8px 8px 0 0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
    background-color: #b0b0b0;
    display: block;
}

.video-info {
    padding: 12px;
}

.video-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-button {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.play-button:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: scale(1.02);
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    /*padding: 40px;*/
}

.error {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    color: white;
    text-align: center;
    margin: 20px 0;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Large Desktop - 8 columns */
@media (min-width: 1600px) {
    .video-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .user-dropdown {
        top: 130%;
        right: -150px;
        min-width: 220px;
        padding: 14px;
    }
}

/* Desktop - 6 columns */
@media (min-width: 1200px) and (max-width: 1599px) {
    .video-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .user-dropdown {
        top: 130%;
        right: -150px;
        min-width: 200px;
        padding: 12px;
    }
}

/* Medium Desktop - 4 columns */
@media (min-width: 900px) and (max-width: 1199px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .user-dropdown {
        top: 130%;
        right: -140px;
        min-width: 190px;
        padding: 11px;
    }
}

/* Tablet - 3 columns */
@media (max-width: 1023px) and (min-width: 768px) {
    .content {
        margin-left: 0;
        padding: 20px;
    }

    .sidebar {
        width: min(280px, 80vw);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1002;
        top: 70px;
        height: calc(100vh - 70px);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    /* Medium screen navbar improvements */
    .login-logo {
        height: 60px;
        max-width: 180px;
    }
    
    .navbar-right {
        gap: 15px;
    }
    
    .user-badge {
        font-size: 14px;
    }
    
    .time-remaining {
        font-size: 13px;
        min-width: 170px;
    }
    
    .nav-btn {
        padding: 7px 14px;
        font-size: 14px;
    }
    
    .user-dropdown {
        top: 130%;
        right: -120px;
        min-width: 180px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: min(280px, 80vw);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Tablet navbar improvements */
    .top-navbar {
        padding: 0 15px;
    }
    
    .login-logo {
        height: 55px;
        max-width: 150px;
    }
    
    .navbar-right {
        gap: 12px;
    }
    
    .user-info {
        gap: 2px;
    }
    
    .user-badge {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .time-remaining {
        font-size: 12px;
        padding: 5px 10px;
        min-width: 160px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .mobile-menu-toggle {
        top: 80px;
        left: 15px;
    }
    
    .user-dropdown {
        top: 130%;
        right: -100px;
        min-width: 170px;
        padding: 10px;
        background: linear-gradient(135deg, rgba(255, 69, 0, 0.4), rgba(255, 140, 0, 0.6)) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border: 1px solid rgba(255, 69, 0, 0.5) !important;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 90vw;
    }
    
    .category-menu {
        padding: 15px;
    }
    
    .category-menu button {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Mobile navbar improvements */
    .top-navbar {
        padding: 0 10px;
        height: 60px;
    }
    
    body {
        padding-top: 60px;
    }
    
    .login-logo {
        height: 45px;
        max-width: 120px;
    }
    
    .navbar-left {
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .navbar-right {
        gap: 8px;
    }
    
    .user-info {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
    
    .user-badge {
        font-size: 14px;
        padding: 3px 6px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        min-width: auto;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    

    
    .user-badge span {
        display: none;
    }
    
    .user-dropdown {
        position: absolute;
        top: 130%;
        right: -80px;
        background: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 8px;
        min-width: 160px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        display: none;
        margin-top: 5px;
    }
    
    .user-dropdown.show {
        display: block;
    }
    
    .time-remaining {
        display: none;
    }
    
    .navbar-buttons {
        gap: 5px;
    }
    
    .nav-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: auto;
    }
    
    .mobile-menu-toggle {
        top: 75px;
        left: 10px;
        padding: 8px;
        font-size: 16px;
    }
    
    .sidebar {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .logo-controls {
        top: 70px;
        right: 10px;
        padding: 8px;
        min-width: 120px;
    }
    
    .logo-controls label {
        font-size: 11px;
    }
    
    .logo-controls button {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .top-navbar {
        padding: 0 5px;
        height: 55px;
    }
    
    body {
        padding-top: 55px;
    }
    
    .login-logo {
        height: 40px;
        max-width: 100px;
    }
    
    .navbar-buttons {
        gap: 3px;
    }
    
    .nav-btn {
        padding: 4px 6px;
        font-size: 11px;
        border-radius: 4px;
    }
    
    .mobile-menu-toggle {
        top: 70px;
        left: 8px;
        padding: 6px;
        font-size: 14px;
    }
    
    .sidebar {
        top: 55px;
        height: calc(100vh - 55px);
        width: 95vw;
    }
    
    .logo-controls {
        /* top: 65px; */
        right: 5px;
        padding: 6px;
        min-width: 100px;
    }
    
    .logo-controls input[type="range"] {
        height: 20px;
    }
}

/* Top-up Page Styles */
.top-up-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.top-up-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.top-up-header h1 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.top-up-header p {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.top-up-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.user-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.user-info p {
    color: #666;
    font-size: 1.1em;
}

.top-up-options h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.package-card {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.package-card h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.package-card .price {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.package-card .discount {
    font-size: 0.9em;
    color: #ffeb3b;
    margin-bottom: 15px;
    font-weight: bold;
}

.btn-topup {
    background: white;
    color: #ff6b35;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-topup:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.top-up-contact {
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.top-up-contact h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.top-up-contact p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-contact, .btn-logout {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.btn-contact {
    background: #4CAF50;
    color: white;
}

.btn-contact:hover {
    background: #45a049;
    transform: scale(1.05);
}

.btn-logout {
    background: #f44336;
    color: white;
}

.btn-logout:hover {
    background: #da190b;
    transform: scale(1.05);
}

/* Responsive for top-up page */
@media (max-width: 768px) {
    .top-up-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .top-up-header h1 {
        font-size: 2em;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-contact, .btn-logout {
        width: 200px;
    }
}

/* Tablet - 3 columns */
@media (max-width: 1023px) and (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .video-thumbnail {
        height: 180px;
    }

    .video-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Mobile - 2 columns */
@media (max-width: 767px) {
    .top-navbar {
        padding: 0 10px;
        height: 60px;
        flex-wrap: wrap;
    }
    
    body {
        padding-top: 60px;
    }
    
    .navbar-left h2 {
        font-size: 18px;
    }
    
    .navbar-right {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .user-info {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
    
    .user-badge {
        font-size: 16px;
        padding: 4px 8px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        min-width: auto;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    

    
    .user-badge span {
        display: none;
    }
    
    .user-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 15px;
        min-width: 200px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        display: none;
        margin-top: 5px;
    }
    
    .user-dropdown.show {
        display: block;
    }
    
    .time-remaining {
        display: none;
    }
    
    .nav-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1002;
        width: 280px;
        top: 60px;
        height: calc(100vh - 60px);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        padding: 10px;
        padding-top: 70px;
    }

    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .category-title {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 15px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .video-card {
        border-radius: 8px;
    }

    .video-thumbnail {
        height: 140px;
    }

    .video-thumbnail img {
         width: 100%;
         height: 100%;
         object-fit: contain;
     }

    .video-info {
        padding: 8px;
    }

    .video-title {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .play-button {
        padding: 6px 10px;
        font-size: 0.7rem;
        width: 100%;
    }
    
    /* Top-up page mobile adjustments */
    .top-up-container {
        padding: 20px;
        margin: 10px;
        max-width: 95%;
    }
    
    .top-up-header h1 {
        font-size: 1.8em;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-contact, .btn-logout {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .category-title {
        font-size: 1.3rem;
    }
}

/* Top-up Page Styles */
.topup-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.topup-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.iframe-container {
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: 10px;
}

.topup-header h1 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.topup-header .user-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.topup-header .user-info p {
    margin: 5px 0;
    color: #666;
    font-size: 1.1em;
}

.topup-nav {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.back-btn {
    background: rgba(255, 107, 53, 0.9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(255, 107, 53, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.package-selection h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.package-card {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.package-card.selected {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.package-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.package-card .price {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffd700;
}

.package-card p {
    font-size: 1em;
    opacity: 0.9;
}

.contact-section {
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.contact-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.contact-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.contact-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.contact-info {
    color: #666;
    font-size: 1.1em;
}

.contact-info p {
    margin: 8px 0;
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.5rem;
    padding: 40px;
}

#playlist.loading {
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #333 !important;
}

/* Responsive for top-up page */
@media (max-width: 768px) {
    .user-dropdown {
        right: -10px;
        min-width: 200px;
        padding: 12px;
    }
    
    .topup-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .topup-header h1 {
        font-size: 2em;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card {
        padding: 20px;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        right: -5px;
        min-width: 180px;
        padding: 10px;
    }
}

/* Expired Message Styles */
.expired-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #ff6b6b;
}

.expired-message h2 {
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.expired-message p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.expired-message p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
}

.expired-image {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.responsive-image:hover {
    transform: scale(1.02);
}

/* Responsive design for different devices */
@media (max-width: 768px) {
    .expired-image {
        margin-top: 15px;
    }
    
    .responsive-image {
        max-width: 90%;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .expired-image {
        margin-top: 10px;
    }
    
    .responsive-image {
        max-width: 85%;
        border-radius: 6px;
    }
}