/* Custom Properties for easy color changes */
:root {
    --bg-color: #121212; /* Dark background */
    --primary-color: #FF00AA; /* Neon Pink/Magenta */
    --secondary-color: #333333; /* Dark gray for cards/sections */
    --text-color: #E0E0E0; /* Light text */
    --accent-color: #9900FF; /* Neon Purple */
    --button-hover-glow: 0 0 15px rgba(255, 0, 170, 0.7), 0 0 30px rgba(255, 0, 170, 0.4);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* --- HEADER / NAV BAR --- */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    padding: 10px 15px;
    display: block;
    font-weight: 500;
}

.main-nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-button a {
    background-color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 20px;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-button a:hover {
    background-color: #B340FF; /* Slightly brighter purple */
    transform: translateY(-2px);
    color: var(--text-color);
}

/* --- USER PROFILE --- */
.user-profile {
    display: flex;
    align-items: center;
    position: relative;
}

.menu-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
    margin-right: 15px;
}

.profile-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    position: relative;
}

.profile-info:hover {
    background-color: #252525;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 10px;
    border: 2px solid var(--primary-color);
}

.username {
    font-weight: bold;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--secondary-color);
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.8);
    z-index: 1;
    border-radius: 5px;
    padding: 5px 0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #252525;
    color: var(--primary-color);
}

/* Class added by JS to show dropdown */
.show-dropdown .dropdown-content {
    display: block;
}

/* --- MAIN CONTENT / GRID --- */

.container {
    padding: 40px 5%;
    max-width: 1530px;
    margin: 0 auto;
}

/* --- HERO BANNER --- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 400px; /* Adjust as needed */
    margin-bottom: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image slightly */
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
    max-width: 600px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.banner-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 15px rgba(240, 216, 232, 0.8);
}

.banner-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.chat-now-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    animation: glow-button 2s infinite alternate; /* Button animation */
}

.chat-now-btn:hover {
    background-color: #FF33BB; /* Lighter pink */
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--button-hover-glow);
}

/* --- PROFILE GRIDS --- */

h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.profile-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px; /* Space between sections */
}

.profile-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--primary-color), 0 0 50px rgba(255, 0, 170, 0.1);
}
.profile-card1 {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card1:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--accent-color), 0 0 50px rgba(255, 0, 170, 0.1);
}
.profile-img {
    width: 100%;
    height: auto;
    display: block;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
}

/* The inline styles for status-tag will override this, but keep for fallback */
/* No longer needed if relying purely on inline styles for tag position/color */
/*
.status-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: red; 
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8em;
    animation: pulse 1.5s infinite;
}

.status-tag.new {
    background-color: var(--accent-color);
}
*/

.details .name {
    font-weight: bold;
    font-size: 1.2em;
}

.viewer-count {
    font-size: 0.9em;
    opacity: 0.8;
}

/* --- FOOTER --- */

.main-footer {
    background-color: var(--secondary-color);
    padding: 40px 5%;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section .socials a {
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s;
}

.footer-section .socials a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #252525;
    font-size: 0.9em;
    color: #888;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 170, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 170, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 170, 0); }
}

@keyframes glow-button {
    0% { box-shadow: 0 0 8px rgba(255, 0, 170, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 170, 0.9), 0 0 30px rgba(255, 0, 170, 0.6); }
    100% { box-shadow: 0 0 8px rgba(255, 0, 170, 0.5); }
}

/* --- RESPONSIVENESS (Mobile/Tablet adjustments) --- */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 70px; /* Below the header */
        left: 0;
        background-color: var(--secondary-color);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav ul li a {
        padding: 15px 5%;
        border-bottom: 1px solid #252525;
    }

    .main-header {
        padding: 15px 5%;
    }

    .nav-button a {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: block; /* Show menu icon on mobile */
    }

    .profile-info {
        padding: 0;
    }
    
    .username, .profile-info i {
        display: none; /* Hide text/dropdown icon to save space */
    }

    .hero-banner {
        height: 250px;
    }

    .banner-content h1 {
        font-size: 2em;
    }
    .banner-content p {
        font-size: 0.9em;
    }
    .chat-now-btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .footer-content {
        justify-content: flex-start;
    }
}
/* --- NEW LOGIN LINK STYLE --- */
.login-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border: 2px solid var(--primary-color); /* Neon border */
    border-radius: 5px;
    font-weight: bold;
    color: var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.login-link i {
    margin-right: 8px;
    font-size: 1.2em;
}

.login-link:hover {
    color: var(--text-color);
    background-color: var(--primary-color); /* Fill on hover */
    box-shadow: 0 0 15px var(--primary-color); /* Glow on hover */
}

/* Remove old profile styles if they conflict */
.profile-info, .username, .avatar, .dropdown-content {
    /* Set display:none or remove the styles entirely if the code is now removed from HTML */
    display: none !important;
}

/* Ensure the user profile container alignment remains correct */
.user-profile {
    display: flex;
    align-items: center;
    position: relative;
    /* Reset padding if necessary */
    padding: 0; 
}


/* --- PROFILE PAGE SPECIFIC STYLES --- */

/* Use the container class already defined in your index.html CSS */

.profile-container {
    padding: 30px 0;
}

/* --- Live Status Bar (Top of Profile) --- */
.live-status-bar {
    background-color: var(--secondary-color); /* Dark gray */
    padding: 15px 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-color);
    border-left: 5px solid var(--primary-color);
}

.live-dot {
    color: #FF00AA; /* Primary Color for Live */
    margin-right: 10px;
    animation: pulse 1.5s infinite; /* Reusing existing pulse animation */
}

.viewer-count-display {
    color: var(--accent-color); /* Neon Purple */
}

/* --- Main Content Card Layout --- */
.main-content-card {
    display: flex;
    gap: 30px;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* --- Image Section --- */
.profile-img-section {
    flex: 0 0 40%; /* Fixed width for image */
    max-width: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.profile-image-main {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    transition: transform 0.5s;
}

.profile-image-main:hover {
    transform: scale(1.03);
}

/* --- Info Section --- */
.profile-info-section {
    flex: 1; /* Takes up remaining space */
}

.model-name-large {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 0, 170, 0.5);
}

.separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    margin: 20px 0;
}

.meta-details {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 1em;
    color: #999;
    font-weight: 400;
}

.meta-item strong {
    color: var(--text-color);
    font-weight: 600;
}

.icon-primary {
    color: var(--primary-color);
    margin-right: 5px;
}

.description-text {
    font-size: 1.1em;
    margin-bottom: 40px;
    line-height: 1.8;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Button Row --- */
.button-row {
    display: flex;
    gap: 20px;
    margin-top: auto; /* Push buttons to the bottom */
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-back {
    background-color: #555;
    color: white;
}

.btn-back:hover {
    background-color: #777;
    transform: scale(1.05);
}

.btn-join {
    background-color: var(--primary-color); /* Neon Pink */
    color: var(--bg-color); /* Dark text on bright button */
    flex-grow: 1; /* Make the join button the main focus */
}

.btn-join:hover {
    background-color: #FF33BB;
    transform: translateY(-2px);
    box-shadow: var(--button-hover-glow); /* Reusing the glow from banner */
}

.btn-next {
    background-color: var(--accent-color); /* Neon Purple */
    color: white;
}

.btn-next:hover {
    background-color: #B340FF;
    transform: scale(1.05);
}

/* --- Responsive Adjustments for Profile Page --- */
@media (max-width: 900px) {
    .main-content-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .profile-img-section {
        flex: none;
        max-width: 100%;
    }

    .button-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .live-status-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .model-name-large {
        font-size: 2.5em;
    }
}


/* --- CATEGORY PAGE SPECIFIC STYLES --- */

.page-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

/* --- Category Filter Navigation --- */
.category-filter-nav {
    margin-bottom: 40px;
    overflow-x: auto; /* Allows horizontal scrolling on small screens */
    padding-bottom: 10px;
}

.category-filter-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    white-space: nowrap; /* Prevents wrapping */
}

.filter-link {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    color: var(--text-color);
    transition: all 0.3s;
    font-size: 0.95em;
}

.filter-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-link.active-filter {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 0, 170, 0.7);
}

/* --- Category Tiles Grid --- */
.category-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-tile {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    padding: 25px;
    text-align: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--primary-color);
}

.tile-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.category-tile:hover .tile-icon {
    transform: scale(1.1) rotate(5deg);
}

.tile-title {
    font-size: 1.8em;
    color: var(--text-color);
    margin-bottom: 5px;
}

.model-count {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 25px;
}

.tile-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    font-weight: bold;
    color: var(--bg-color);
    letter-spacing: 1px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    .category-filter-nav ul {
        justify-content: flex-start;
    }
}


/* --- MESSAGES PAGE SPECIFIC STYLES --- */

.messages-page-container {
    padding-top: 40px;
    padding-bottom: 40px;
    /* Maximize container for chat usability */
    max-width: 1400px; 
}

.messages-layout-card {
    display: flex;
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    height: 80vh; /* Set a fixed height for a scrollable chat experience */
    min-height: 600px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* --- 1. Conversation List Sidebar --- */
.chat-sidebar {
    flex: 0 0 320px; /* Fixed width for the sidebar */
    border-right: 1px solid #252525;
    background-color: #222;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid #444;
}

.sidebar-header h3 {
    color: var(--primary-color);
    font-size: 1.5em;
}

.search-box {
    position: relative;
    padding: 10px 15px;
    border-bottom: 1px solid #444;
}

.search-box input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: none;
    border-radius: 20px;
    background-color: #333;
    color: var(--text-color);
}

.search-box .fa-search {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.contact-list {
    list-style: none;
    overflow-y: auto;
    flex-grow: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.contact-item:hover {
    background-color: #333;
}

.contact-item.active {
    background-color: #444;
    border-left: 3px solid var(--primary-color);
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--accent-color);
}

.contact-info {
    flex-grow: 1;
    overflow: hidden;
}

.contact-name {
    font-weight: bold;
    color: var(--text-color);
    display: block;
}

.contact-name .fa-heart {
    color: var(--primary-color);
    font-size: 0.9em;
}

.last-message {
    font-size: 0.9em;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-count {
    padding: 4px 8px;
    border-radius: 50%;
    font-size: 0.8em;
    color: white;
    font-weight: bold;
    margin-left: 10px;
}

.online-dot {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 10px;
    background-color: #2ECC71; /* Green dot */
    border-radius: 50%;
}


/* --- 2. Active Chat Area --- */
.chat-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    background-color: #222;
}

.current-contact-details {
    display: flex;
    align-items: center;
}

.contact-name-status {
    margin-left: 10px;
}

.contact-name-status h4 {
    color: var(--primary-color);
    margin-bottom: 2px;
}

.live-status {
    font-size: 0.9em;
    color: #aaa;
}

.live-dot {
    color: red;
    font-size: 0.6em;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

.btn-live-link {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-live-link:hover {
    background-color: #B340FF;
    transform: translateY(-1px);
}

/* --- Message History --- */
.chat-history {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    /* Custom scrollbar style */
    scrollbar-color: var(--primary-color) #222;
    scrollbar-width: thin;
}

.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    max-width: 65%;
}

.message p {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.message.received {
    align-self: flex-start;
}

.message.received p {
    background-color: #3a3a3a;
    border-bottom-left-radius: 0;
}

.message.sent {
    align-self: flex-end;
}

.message.sent p {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-bottom-right-radius: 0;
}

.timestamp {
    font-size: 0.7em;
    color: #777;
    margin-left: 5px;
    align-self: flex-end; /* Time for sent message */
}

.message.received .timestamp {
    align-self: flex-start; /* Time for received message */
}

/* --- Message Input Area --- */
.chat-input-area {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid #444;
    background-color: #222;
    gap: 10px;
}

.message-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #555;
    border-radius: 25px;
    background-color: #333;
    color: var(--text-color);
    font-size: 1em;
}

.btn-attach, .btn-send {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-attach {
    background-color: #555;
}

.btn-attach:hover {
    background-color: #777;
}

.btn-send:hover {
    background-color: var(--primary-color);
}


/* --- Responsive Adjustments for Chat --- */
@media (max-width: 800px) {
    .messages-layout-card {
        flex-direction: column;
        height: 90vh;
    }

    .chat-sidebar {
        flex: none;
        height: 40%; /* Give sidebar some vertical space */
        border-right: none;
        border-bottom: 1px solid #252525;
    }
    
    .chat-main {
        height: 60%;
    }

    .contact-list {
        display: flex;
        overflow-x: auto; /* Scroll horizontally for contacts */
        flex-shrink: 0;
        padding: 5px 0;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        min-width: 100px;
        border-bottom: none;
        border-right: 1px solid #333;
        padding: 10px 5px;
    }
    
    .contact-info {
        display: none; /* Hide message text on mobile list view */
    }
    
    .contact-avatar {
        margin: 0;
        margin-bottom: 5px;
    }
    
    .unread-count, .online-dot {
        position: static;
        margin-top: 5px;
    }

    .chat-header {
        padding: 10px 15px;
    }
    
    .btn-live-link {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}

/* --- TOP-UP PAGE SPECIFIC STYLES --- */

.topup-page-container {
    display: flex;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.topup-card {
    background-color: var(--secondary-color);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(var(--primary-rgb), 0.2);
    color: var(--text-color);
}

.card-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
}

.balance-info {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #bbb;
}

#current-balance {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2em;
}

.separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #444, rgba(0, 0, 0, 0));
    margin: 30px 0;
}

/* --- Package Selection --- */
.package-selection h3,
.payment-selection h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.package-option {
    display: block;
    cursor: pointer;
    border: 2px solid #555;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.2s ease;
    position: relative;
    background-color: #2a2a2a;
}

/* Hide the actual radio button */
.package-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.package-option:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

/* Style for selected package */
.package-option input[type="radio"]:checked + .package-content {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.7);
    background-color: #333;
}

.package-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid transparent; /* Required for the shadow effect */
    border-radius: 8px;
    padding: 5px;
}

.package-content .tokens {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
}

.package-content .price {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 5px;
}

.package-option.recommended .package-content .tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #FFD700; /* Gold */
    color: #333;
    font-size: 0.7em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 5px;
    transform: rotate(5deg);
}

/* --- Payment Selection --- */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #2a2a2a;
}

.payment-option:hover {
    background-color: #333;
}

.payment-option input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--primary-color); /* Neon color for radio button */
}

.payment-option .fas {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 1.2em;
}


/* --- Checkout Summary --- */
.checkout-summary {
    padding-top: 15px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1.1em;
    color: #ccc;
}

.summary-line.total-amount {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary-color);
    border-top: 2px dashed #444;
    padding-top: 15px;
    margin-top: 10px;
}

.btn-checkout {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--bg-color); /* Dark text on neon button */
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-checkout:hover {
    background-color: #ff3399; /* Slightly darker pink */
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.8);
}

.secure-text {
    text-align: center;
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 550px) {
    .topup-card {
        padding: 20px;
    }
    .packages-grid {
        grid-template-columns: 1fr; /* Stack packages vertically on small screens */
    }
    .package-content .price {
        font-size: 1.3em;
    }
    .btn-checkout {
        font-size: 1.1em;
        padding: 12px;
    }
}
/* --- AUTHENTICATION PAGES (Login & Register) --- */

.auth-page-container {
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically center the card */
    min-height: calc(100vh - 100px); /* Adjust based on header/footer height */
    padding: 30px 20px;
    box-sizing: border-box; /* Include padding in element's total width and height */
}

.auth-card {
    background-color: var(--secondary-color);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 630px; /* Slightly narrower for forms */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(var(--primary-rgb), 0.2);
    color: var(--text-color);
    text-align: center; /* Center align elements within the card */
}

.auth-title {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
}

.auth-subtitle {
    color: #bbb;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.auth-form {
    text-align: left; /* Align form elements to the left within the card */
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #ccc;
    font-size: 0.95em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.input-group label .fas {
    margin-right: 8px;
    color: var(--accent-color);
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"] {
    width: calc(100% - 22px); /* Account for padding */
    padding: 12px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #333;
    color: var(--text-color);
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input::placeholder {
    color: #888;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.forgot-password,
.auth-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover,
.auth-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Custom Checkbox Styling */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-size: 0.9em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: #ccc;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #444;
    border-radius: 3px;
    border: 1px solid #666;
    transition: background-color 0.2s, border-color 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #555;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
/* End Custom Checkbox */


.auth-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--bg-color); /* Dark text on neon button */
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.auth-btn:hover {
    background-color: #ff3399; /* Slightly darker pink */
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.8);
}

.auth-btn .fas {
    margin-right: 8px;
}

.auth-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.95em;
    color: #bbb;
}

/* --- Responsive Adjustments --- */
@media (max-width: 500px) {
    .auth-card {
        padding: 30px 20px;
    }
    .auth-title {
        font-size: 1.8em;
    }
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .input-group input {
        width: calc(100% - 20px);
    }
}


