.top-notification-banner {
    background: linear-gradient(to right, #4A56E2, #3A45B2); /* Blue gradient */
    color: #FFFFFF; /* White text */
    font-weight: 500; /* Slightly bolder text */
    text-align: center;
    padding: 8px 10px;
    font-size: 0.85em;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Subtle shadow */
    /* position: fixed; */ /* Optional: if you want it to stick at the top on scroll */
    /* top: 0; */
    /* left: 0; */
    /* z-index: 1001; */ /* Ensure it's above other content if fixed */
}

body {
    background-color: #121212; /* Dark background */
    color: #E0E0E0; /* Light grey text */
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    width: 100%;
    max-width: 1200px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5em;
    font-weight: 600;
    color: #FFFFFF;
    display: flex; /* Added to help align image if needed */
    align-items: center; /* Added to help align image if needed */
}

#site-logo {
    height: 50px; /* Increased size */
    width: auto;   /* Maintain aspect ratio */
    display: block;
}

.site-status-indicator {
    display: flex;
    align-items: center;
    margin-left: 12px; /* Space between logo and status */
    background-color: #2C2C2C; /* Dark background like input fields */
    padding: 6px 12px;
    border-radius: 20px; /* Rounded pill shape */
    border: 1px solid #444444;
}

.status-text {
    font-size: 0.85em;
    color: #E0E0E0; /* Light grey text */
    margin-right: 8px;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: #2ECC71; /* Green color for online */
    animation: blinkAnimation 1.5s infinite alternate;
}

@keyframes blinkAnimation {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

nav {
    display: flex;
    gap: 20px;
}

.status-item {
    font-size: 0.9em;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #2a2a2a; /* Slightly lighter dark shade for status items */
}

.partial-outage {
    color: #FFD700; /* Yellow for outage */
}

.high-demand {
    color: #FF6B6B; /* A reddish color for high demand */
    /* You can add a background or border if you like */
    /* background-color: #3e2e2e; */
}

.wallet-status {
    color: #32CD32; /* Green for success/connected */
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically for initial view */
    width: 100%;
    max-width: 800px; /* Max width for main content area */
    padding: 40px;
    box-sizing: border-box;
    text-align: center;
}

.hero h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.hero .highlight {
    color: #8A2BE2; /* Purple highlight */
}


.hero h2 {
    font-size: 1.2em;
    color: #B0B0B0;
    margin-bottom: 15px; /* Adjusted for logos */
}

.platform-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between logos */
    margin-bottom: 30px;
}

.platform-logos img {
    height: 24px; /* Adjust size as needed */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.platform-logos img:hover {
    opacity: 1;
}

.hero p {
    font-size: 1.1em;
    color: #A0A0A0; /* Lighter grey for sub-headline */
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.promotion-form {
    background-color: #1E1E1E; /* Darker card background */
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9em;
    color: #B0B0B0;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: #2C2C2C; /* Dark input background */
    border: 1px solid #444444;
    border-radius: 6px;
    color: #E0E0E0;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group input[type="text"]::placeholder {
    color: #777777;
}

.form-group select {
    /* margin-bottom: 10px; */ /* Space now handled by #promotion-details margin-top */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27292.4%27%20height%3D%27292.4%27%3E%3Cpath%20fill%3D%27%23B0B0B0%27%20d%3D%27M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.promotion-details-message {
    font-size: 0.85em;
    color: #A0A0A0; /* Lighter grey for details */
    margin-top: 5px; /* Space above the message */
    min-height: 2.5em; /* Ensure space even if message is short, prevents layout jump */
    text-align: center;
    padding: 5px 0;
}

#promotion-details {
    text-align: center;
    font-size: 0.9em;
    margin-top: 15px;
    margin-bottom: 20px;
    margin-left: 12px; /* Align with select box's left padding */
    margin-right: 12px; /* Align with select box's right padding */
    /* This makes the block's width effectively 100% - 24px of its container */
    /* max-width is no longer needed with these margins */
    box-sizing: border-box; /* Ensure padding/border are included in width/height */
}

.cta-button {
    background-color: #6A0DAD; /* Purple button */
    color: #FFFFFF;
    border: none;
    padding: 15px;
    width: 100%;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.cta-button:hover {
    background-color: #5A0BAB; /* Darker purple on hover */
}

.error-message {
    color: #FF4136; /* A bright red color */
    font-size: 0.9em;
    margin-top: 10px;
    text-align: center; /* Or left, depending on preference */
}

.field-error-message {
    color: #FF4136; /* A bright red color */
    font-size: 0.85em;
    margin-top: 5px;
    display: block; /* Ensure it takes its own line */
    text-align: left; /* Align with form field labels */
}

.header-button {
    padding: 8px 15px;
    font-size: 0.9em; /* Slightly smaller than main CTA */
    width: auto; /* Override width from .cta-button */
    margin-left: 15px; /* Space from balance display */
}

#site-logo {
    height: 40px; /* Adjust as needed */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Or inline-block if preferred for alignment */
}

.header-status {
    display: flex; 
    align-items: center;
    gap: 10px;
}

/* Username Modal Specific Styles */
.username-modal-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.username-modal-content p {
    font-size: 0.9em;
    color: #A0A0A0;
    margin-bottom: 20px;
}

.platform-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between logos */
    margin-bottom: 30px;
}

.platform-logos img {
    height: 24px; /* Adjust size as needed */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.platform-logos img:hover {
    opacity: 1;
}

.username-modal-content input[type="text"] {
    width: calc(100% - 24px); /* Account for padding */
    padding: 12px;
    margin-bottom: 20px;
    background-color: #2C2C2C;
    border: 1px solid #444444;
    border-radius: 6px;
    color: #E0E0E0;
    font-size: 1em;
    box-sizing: border-box;
}

.username-modal-content input[type="text"]::placeholder {
    color: #777777;
}

.username-modal-content .cta-button {
    width: 100%;
    padding: 12px;
}

#user-pseudonym {
    color: #E0E0E0;
    font-size: 0.9em;
    margin-left: 15px;
    display: none; /* Initially hidden, shown by JS */
    text-transform: uppercase; /* Display text in uppercase */
    /* Additional styling if needed, inherits from .status-item */
}

/* Promotion Status Overlay Specific Styles */
.promotion-status-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-size: 1.5em;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8A2BE2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto 10px auto;
}

.address-generation-loading {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.address-generation-text {
    margin-top: 14px;
    font-size: 1.08em;
    color: #B0B0B0;
    letter-spacing: 0.03em;
    font-weight: 500;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Modal Styles */
.modal {
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1E1E1E; /* Dark background for modal */
    color: #E0E0E0;
    margin: auto;
    padding: 25px;
    border: 1px solid #444;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.recently-promoted {
    width: 100%;
    max-width: 1000px; /* Wider for this section */
    text-align: center;
    margin-bottom: 40px;
}

.recently-promoted h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.highlight-secondary {
    color: #8A2BE2; /* Purple highlight */
    text-decoration: underline;
    text-decoration-color: #8A2BE2;
    text-underline-offset: 4px;
}

.promoted-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.promoted-link {
    text-decoration: none;
    color: inherit; /* Inherit text color from parent */
    display: block; /* Make the link a block to encompass the item */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.promoted-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.promoted-item {
    background-color: #1E1E1E; /* Darker card background */
    border-radius: 10px;
    padding: 15px;
    width: 200px; /* Adjust as needed */
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.promoted-item img {
    width: 50px; /* Smaller image size */
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.item-info {
    text-align: left;
}

.item-info .coin-name {
    font-size: 1em;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 0 5px 0;
}

.item-info .marketcap {
    font-size: 0.85em;
    color: #00C853; /* Green for marketcap, adjust if needed */
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.2em;
    }
    .hero p {
        font-size: 1em;
    }
    .promotion-form {
        padding: 20px;
    }
    .promoted-grid {
        flex-direction: column;
        align-items: center;
    }
    .promoted-item {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3em;
    }
    .status-item {
        font-size: 0.8em;
    }
    .hero h1 {
        font-size: 1.8em;
    }
    .cta-button {
        font-size: 1em;
        padding: 12px;
    }
    .recently-promoted h2 {
        font-size: 1.5em;
    }
}
