:root {
    --bg-color: #0f0000;
    --bg-gradient: linear-gradient(180deg, #5c0d0d 0%, #0f0000 100%);
    --primary-color: #e50914;
    --primary-glow: rgba(229, 9, 20, 0.5);
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --card-bg: rgba(255, 255, 255, 0.05);
}

body.blue-theme {
    --bg-color: #00050f;
    --bg-gradient: linear-gradient(180deg, #0d1b5c 0%, #00050f 100%);
    --primary-color: #0d6efd;
    --primary-glow: rgba(13, 110, 253, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.brand-icon {
    color: var(--primary-color);
    font-size: 24px;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 20px;
}

.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

/* Hero Banner */
.hero-container {
    padding: 15px 20px;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    text-decoration: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-title {
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

/* Sections */
.section-container {
    padding: 15px 20px;
}

.section-heading {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

/* Portrait Grid */
.portrait-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .portrait-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portrait-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.portrait-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    background: var(--card-bg);
}

.portrait-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-circle {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    padding-left: 2px;
}

.portrait-title {
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.stars {
    color: #ffd700;
    font-size: 10px;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 25px 0;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    gap: 4px;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: white;
}

.nav-item.active .nav-icon-wrapper {
    position: relative;
}

.nav-item.active .nav-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.search-form {
    display: flex;
    margin-bottom: 20px;
}
.search-input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 20px;
    border-radius: 30px 0 0 30px;
    color: white;
    outline: none;
}
.search-button {
    background: var(--primary-color);
    border: none;
    padding: 12px 25px;
    border-radius: 0 30px 30px 0;
    color: white;
    cursor: pointer;
}
/* New Payment Modal Design Overrides */
.payment-modal {
    background-color: rgba(0,0,0,0.5) !important;
}
.new-modal-design {
    background: #ffffff !important;
    color: #333333 !important;
    padding: 30px 20px !important;
    border-radius: 20px !important;
    width: 90% !important;
    max-width: 400px !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
}
.new-close-btn {
    color: #aaaaaa !important;
    top: 10px !important;
    right: 15px !important;
    font-size: 30px !important;
    font-weight: normal !important;
}
.new-close-btn:hover {
    color: #333333 !important;
}
.new-modal-header {
    text-align: center !important;
    margin-bottom: 20px !important;
}
.new-modal-header h2 {
    color: #333333 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
}
.new-modal-header p {
    color: #666666 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}
.new-modal-divider {
    border: 0 !important;
    border-top: 1px solid #eeeeee !important;
    margin: 0 -20px 25px -20px !important;
}
.new-form-group {
    margin-bottom: 25px !important;
}
.new-form-group label {
    display: block !important;
    text-align: left !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
}
.new-form-group input {
    width: 100% !important;
    padding: 14px 15px !important;
    border: 2px solid #007bff !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background: #ffffff !important;
    color: #333333 !important;
    outline: none !important;
}
.new-form-group input::placeholder {
    color: #aaaaaa !important;
}
.payment-methods-box {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 25px !important;
}
.payment-logos {
    display: flex !important;
    gap: 4px !important;
}
.payment-logo {
    font-size: 10px !important;
    font-weight: bold !important;
    color: white !important;
    padding: 4px 6px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}
.logo-tigo { background: #0033a0 !important; }
.logo-voda { background: #e60000 !important; }
.logo-airtel { background: #ff0000 !important; }
.logo-halo { background: #ff6600 !important; color: white !important; }
.payment-price-text {
    color: #007bff !important;
    font-weight: bold !important;
    font-size: 18px !important;
}
.new-pay-btn {
    background: #20c997 !important;
    color: white !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    width: 100% !important;
    padding: 15px !important;
    font-size: 18px !important;
    border: none !important;
    cursor: pointer !important;
}

/* Pulse Animation */
@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(32, 201, 151, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(32, 201, 151, 0); }
}

/* Floating LIPIA Button */
.floating-lipia-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #20c997, #0ca678);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.4);
    animation: pulse-green 2s infinite;
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-lipia-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.6);
    animation: none;
}
