:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent: #ff6b35;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --border: #444444;
    --x-color: #000000;
    --bluesky-color: #00bcd4;
    --gold: #FFBF00;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.disclaimer {
    background-color: var(--bg-secondary);
    border: 1px solid var(--warning);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.disclaimer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.social-links {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.status-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    min-height: 120px;
}

.status-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.status-info {
    text-align: center;
}

.status-info > div:first-child {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.refresh-info {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 6px;
}

.timezone-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.3;
}

.buttons-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buttons-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    text-align: center;
}

.links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.events-section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    height: 100%;
}

.events-header {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

.events-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.events-horizontal {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.event-item {
    text-align: center;
    padding: 8px 9px;
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    min-width: 200px;
    max-width: 240px;
    flex-shrink: 0;
}

.current-event {
    border-color: var(--success);
}

.upcoming-event {
    border-color: var(--warning);
}

.event-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.current-event .event-title {
    color: var(--success);
}

.upcoming-event .event-title {
    color: var(--warning);
}

.event-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-time:last-child {
    margin-bottom: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.social-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.x-link {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.x-link:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.bluesky-link {
    background-color: var(--bluesky-color);
    color: #ffffff;
    border-color: var(--bluesky-color);
}

.bluesky-link:hover {
    background-color: #00acc1;
    border-color: #00acc1;
    transform: translateY(-2px);
}

.loading, .error {
    text-align: center;
    padding: 40px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    margin: 20px 0;
}

.retry-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.retry-btn:hover {
    background-color: #e55a2e;
}

.section {
    margin-bottom: 50px;
}

.section h2 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.8rem;
    text-align: center;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 10px;
}

.regions-toggle {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.regions-toggle:hover {
    background-color: #e55a2e;
    transform: translateY(-1px);
}

.section-last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 25px;
}

/* Region header with button */
.region-header-wrapper {
    position: relative;
    margin-bottom: 25px;
    min-height: 70px;
}

.region-header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: 70px;
}


.region-header-content .section-header {
    margin-bottom: 5px;
}

.region-header-content h2 {
    margin-bottom: 0;
}

.region-header-content .section-last-updated {
    margin-bottom: 0;
}


.region-test-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35, #e55a2e, #ff6b35);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    overflow: hidden;
    z-index: 1;
    min-width: 180px;
}


.region-test-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}


.region-test-button:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.region-test-button:hover::before {
    left: 100%;
}

.region-test-button:active {
    transform: translateY(0);
}

.testing-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1005;
    min-width: 250px;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}



@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
}

.notification-progress {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.notification-bar {
    width: 100%;
    height: 4px;
    background-color: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.notification-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ff8c5a);
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}


.testing-notification.completion-notification {
    border-color: var(--success);
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 1005; /* Ensure same z-index as testing notification */
}


.notification-title.success {
    color: var(--success);
    font-weight: 600;
}

.notification-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Firefox warning */
.firefox-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.warning-icon {
    flex-shrink: 0;
    font-size: 2.2rem; /* Increased size */
    line-height: 1; /* Aligns better */
}

/* Test section */
.test-section {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.test-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.start-test-button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.start-test-button:hover:not(:disabled) {
    background-color: #e55a2e;
}

.start-test-button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Test progress */
.test-progress {
    text-align: center;
    margin: 20px 0;
}

.progress-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

#current-region {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background-color: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ff8c5a, var(--accent));
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    position: relative;
    animation: gradientShift 2s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

/* Live results */
.live-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.live-results h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#live-top-regions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.live-region-item {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 107, 53, 0.05));
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    
    transform: translateY(0);
    transition: background-color 0.4s ease, border-color 0.4s ease;

    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0px;
    margin-top: -8px;
}

.live-region-item.visible {
    transition: max-height 0.4s ease-out, 
                opacity 0.3s ease-in 0.1s,
                padding 0.4s ease-out,
                margin 0.4s ease-out,
                border-width 0.4s ease-out,
                background-color 0.4s ease,
                border-color 0.4s ease;
    opacity: 1;
    max-height: 100px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-width: 1px;
    margin-top: 0;
}

@keyframes region-enter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes region-exit {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

.live-region-item.entering {
    /* Hide the item instantly and then fade it in */
    opacity: 0;
    animation: region-enter 0.3s ease-in 0.2s forwards;
}

.exiting-clone {
    /* Cloned item sits on top and fades out while new item fades in underneath */
    position: absolute;
    width: calc(100% - 24px); /* Match padding */
    animation: region-exit 0.3s ease-out forwards;
}

.live-region-item.entering {
    animation: region-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.live-region-item.exiting {
    /* Send to back and animate out */
    z-index: -1;
    animation: region-exit 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.live-region-item[data-position="1"] {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), var(--bg-tertiary));
}

.live-region-item[data-position="2"] {
    border-color: var(--silver);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), var(--bg-tertiary));
}

.live-region-item[data-position="3"] {
    border-color: var(--bronze);
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), var(--bg-tertiary));
}

.region-rank {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary); /* Default color */
    min-width: 20px;
}

.live-region-item[data-position="1"] .region-rank {
    color: var(--gold);
}


.live-region-item[data-position="2"] .region-rank {
    color: var(--silver);
}

.live-region-item[data-position="3"] .region-rank {
    color: var(--bronze);
}

.region-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* Test controls */
.test-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.pause-test-button {
    background-color: var(--warning);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pause-test-button:hover {
    background-color: #e68900;
    transform: translateY(-1px);
}

.pause-test-button.continue {
    background-color: var(--success);
}

.pause-test-button.continue:hover {
    background-color: #45a049;
}

.retest-button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.retest-button:hover {
    background-color: #e55a2e;
    transform: translateY(-1px);
}

/* Queue Section Header with Button */
.queue-section-header {
    position: relative;
    margin-bottom: 25px;
    min-height: 70px;
}

.twitch-chat-button {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #9146ff, #772ce8);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.3);
    z-index: 1;
}

.twitch-chat-button:hover {
    background: linear-gradient(135deg, #8B42FF, #6B2BC4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(145, 70, 255, 0.4);
}

.twitch-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.queue-section-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.queue-section-info h2 {
    margin-bottom: 5px;
    text-align: center;
}

.queue-section-info .section-last-updated {
    margin-bottom: 0;
    text-align: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-tertiary);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    color: var(--accent);
    margin: 0;
    font-size: 1.4rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--error);
    color: white;
}

.modal-body {
    padding: 25px;
}

.step {
    margin-bottom: 30px;
}

.step:last-child {
    margin-bottom: 20px;
}

.step h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.step ol {
    margin-left: 20px;
    color: var(--text-secondary);
}

.step ol li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.step a {
    color: var(--accent);
    text-decoration: none;
}

.step a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select optgroup {
    color: var(--accent);
    font-weight: 600;
    font-style: normal;
    background-color: var(--bg-secondary);
}

.form-group select option {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    padding: 8px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.command-output {
    display: flex;
    gap: 10px;
    align-items: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
}

.command-output code {
    flex: 1;
    background: none;
    color: #60a5fa;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.copy-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background-color: #e55a2e;
}

.copy-btn.copied {
    background-color: var(--success);
}

.example-image {
    width: 100%;
    max-width: 363px;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin: 15px 0 5px 0;
}

.advanced-section {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0 20px 0;
}

.advanced-section h5 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1rem;
}

.advanced-section p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.advanced-section code {
    background-color: var(--bg-primary);
    color: #60a5fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.disclaimer-text {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--warning);
    border-radius: 6px;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Region Status Styles */
.regions-container {
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 2000px;
}

.regions-container.collapsed {
    max-height: 200px;
    cursor: pointer;
}

.regions-container.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
    z-index: 10;
}

.regions-container {
    position: relative;
}

.continents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.continent {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.continent h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.region-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.region-item:last-child {
    border-bottom: none;
}

.region-status-and-info {
    display: flex;
    align-items: center;
}

.region-status {
    margin-right: 10px;
    font-size: 1rem;
}

.region-info {
    flex: 1;
}

.region-name {
    font-weight: 500;
    color: var(--text-primary);
}

.region-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.last-seen {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-left: 0;
    width: 100%;
}

.disabled-regions-explanation {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    text-align: left;
}

.info-icon {
    color: var(--text-secondary);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Queue Times Styles */
.queue-modes {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.queue-mode {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.queue-mode-header {
    background-color: var(--bg-tertiary);
    padding: 15px 20px;
    border-bottom: 2px solid var(--accent);
}

.queue-mode-title {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.table-container {
    overflow-x: auto;
}

.queue-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.queue-table th {
    background-color: var(--bg-tertiary);
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    width: 25%;
}

.queue-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    width: 25%;
}

.queue-table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

.queue-table tbody tr:last-child td {
    border-bottom: none;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-online {
    background-color: var(--success);
}

.status-offline {
    background-color: var(--error);
}

.queue-time {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

.time-short {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.time-medium {
    background-color: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.time-long {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--error);
}

.time-unknown {
    background-color: rgba(128, 128, 128, 0.2);
    color: var(--text-secondary);
}

.time-error {
    background-color: rgba(244, 67, 54, 0.3);
    color: var(--error);
}

.time-dead {
    background-color: rgba(100, 100, 100, 0.3);
    color: #888888;
}

.table-region-name {
    font-weight: 500;
}

/* Bot Selector Styles */
.bot-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.bot-btn {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 2px solid var(--border);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.bot-btn:hover {
    background-color: var(--bg-primary);
    border-color: var(--accent);
    color: var(--text-primary);
}

.bot-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

.bot-btn.active:hover {
    background-color: #e55a2e;
    border-color: #e55a2e;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Responsiveness for Status Bar */
@media (max-width: 768px) {
    .status-bar {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 20px;
        text-align: center;
        min-height: auto;
    }
    
    .status-section,
    .events-section {
        order: 0;
    }
    
    .buttons-section {
        order: 1;
    }
    
    .events-horizontal {
        flex-direction: column;
        gap: 15px;
    }
    
    .event-item {
        min-width: auto;
        width: 100%;
        max-width: 280px;
    }
    
    .event-time {
        white-space: normal;
    }
    
    .status-info > div:first-child {
        font-size: 1.2rem;
    }
    
    .refresh-info {
        font-size: 0.95rem;
    }
    
    .timezone-info {
        font-size: 0.8rem;
    }
    
    .events-header {
        font-size: 1.2rem;
    }
    
    .section-header {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
        width: 100%;
        position: relative;
    }
    
    .section-header h2 {
        margin-bottom: 0;
        text-align: center;
    }
    
    .regions-toggle {
        flex-shrink: 0;
        align-self: center;
    }
    
    .regions-container.collapsed {
        max-height: 200px;
    }
    
    /* Queue section mobile adjustments */
    .queue-section-header {
        position: static;
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
	.twitch-chat-button {
		position: static;
		align-self: center;
		font-size: 0.95rem;
		padding: 12px 16px;
	}
    
    .queue-section-info {
        align-items: center;
    }
    
    .queue-section-info h2 {
        text-align: center;
    }
    
    .queue-section-info .section-last-updated {
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .command-output {
        flex-direction: column;
        gap: 10px;
    }
    
    .command-output code {
        text-align: center;
    }
    
    .example-image {
        max-width: 100%;
    }
    
    /* Mobile adjustments for region test */
    .region-header-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
        min-height: auto;
    }

    
    .region-test-button {
        position: static;
        transform: none;
        align-self: center;
        font-size: 0.9rem;
        padding: 10px 14px;
        min-width: auto;
    }

    
    .region-header-content {
        padding-right: 0;
        gap: 8px;
        min-height: auto;
    }

    
    .progress-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-text {
        text-align: center;
    }
    
    .bot-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .bot-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .continents-grid {
        grid-template-columns: 1fr;
    }

    .continent {
        padding: 15px;
    }

    .queue-table {
        font-size: 0.9rem;
    }

    .queue-table th,
    .queue-table td {
        padding: 8px 6px;
    }

    .disclaimer {
        padding: 12px;
    }

    .disclaimer p {
        font-size: 0.8rem;
    }

    .section-last-updated {
        font-size: 0.8rem;
    }

    .social-links {
        padding: 15px;
    }

    .links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .social-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .queue-table {
        font-size: 0.8rem;
        min-width: 500px;
    }

    .queue-table th,
    .queue-table td {
        padding: 6px 4px;
    }

    .queue-time {
        min-width: 40px;
        padding: 2px 6px;
        font-size: 0.9rem;
    }

    .continent h3 {
        font-size: 1.1rem;
    }

    .region-status {
        font-size: 0.9rem;
    }

    .region-name {
        font-size: 0.9rem;
    }

    .region-location {
        font-size: 0.75rem;
    }

    .last-seen {
        font-size: 0.75rem;
    }

    .disabled-regions-explanation {
        font-size: 0.8rem;
    }

    .social-links p {
        font-size: 0.85rem;
    }

    .social-link {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .social-icon {
        font-size: 1rem;
    }

    .social-links {
        padding: 15px;
    }
    
    .status-bar {
        gap: 15px;
    }
    
    .event-item {
        padding: 6px 10px;
        max-width: 260px;
    }
    
    .event-title {
        font-size: 0.8rem;
    }
    
    .event-time {
        font-size: 0.7rem;
    }
    
    .status-info > div:first-child {
        font-size: 1.1rem;
    }
    
    .refresh-info {
        font-size: 0.9rem;
    }
    
    .timezone-info {
        font-size: 0.75rem;
    }
    
    .events-header {
        font-size: 1.1rem;
    }
    
    .regions-container.collapsed {
        max-height: 180px;
    }
    
	.twitch-chat-button {
		font-size: 0.9rem;
		padding: 10px 14px;
	}

	.twitch-logo {
		width: 18px;
		height: 18px;
	}
    
    .region-test-button {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}


/* Promo Slide-in Block */
.promo-slide-block {
    position: fixed;
    top: 50%;
    right: -350px;
    transform: translateY(-50%);
    width: 350px;
    min-height: 200px;
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
    border-left: 3px solid #e74c3c;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    z-index: 1002;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.promo-slide-block.visible {
    right: 0;
}

.promo-content {
    padding: 30px 25px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.promo-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.promo-close-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    transform: scale(1.05);
}

.promo-title {
    color: #ffffff;
    margin: 0 0 25px 0;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
    padding-right: 50px; /* Account for close button */
}

.promo-main-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
    letter-spacing: 0.5px;
}

.promo-main-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.promo-menu-content {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 1400px;
    width: 95%;
    height: 90vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    color: #ffffff;
    display: flex;
    overflow: auto;
}

.promo-menu-panels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: 100%;
    width: 100%;
}

.promo-panel {
    padding: 25px 30px 25px 30px;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    position: relative;
    overflow: visible;
}

.promo-panel::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    right: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #333, transparent);
}

.promo-panel:last-child::after {
    display: none;
}

.promo-panel-left {
    background: linear-gradient(135deg, #1a1a1a, #1e1e1e);
}

.promo-panel-middle {
    background: linear-gradient(135deg, #1e1e1e, #1a1a1a);
    position: relative;
}

.promo-panel-right {
    background: linear-gradient(135deg, #1a1a1a, #1e1e1e);
}

/* Individual panel scrolling for desktop */
@media (min-width: 769px) {
    .promo-panel-left,
    .promo-panel-middle,
    .promo-panel-right {
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(231, 76, 60, 0.3) transparent;
    }
    
    .promo-panel-left::-webkit-scrollbar,
    .promo-panel-middle::-webkit-scrollbar,
    .promo-panel-right::-webkit-scrollbar {
        width: 6px;
    }
    
    .promo-panel-left::-webkit-scrollbar-track,
    .promo-panel-middle::-webkit-scrollbar-track,
    .promo-panel-right::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .promo-panel-left::-webkit-scrollbar-thumb,
    .promo-panel-middle::-webkit-scrollbar-thumb,
    .promo-panel-right::-webkit-scrollbar-thumb {
        background: rgba(231, 76, 60, 0.3);
        border-radius: 3px;
    }
    
    .promo-panel-left::-webkit-scrollbar-thumb:hover,
    .promo-panel-middle::-webkit-scrollbar-thumb:hover,
    .promo-panel-right::-webkit-scrollbar-thumb:hover {
        background: rgba(231, 76, 60, 0.5);
    }
}

/* Close button in right panel */
.promo-panel-right {
    position: relative;
}

.promo-menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.promo-menu-close-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.promo-panel h3 {
    color: #e74c3c;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(231, 76, 60, 0.3);
    letter-spacing: 0.5px;
}

.promo-panel-right h3 {
    padding-right: 50px; /* Account for close button */
}

.panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promo-panel-left .panel-content p {
    margin-bottom: 18px;
    line-height: 1.7;
    color: #cccccc;
    font-size: 0.95rem;
}

.promo-panel-left .panel-content p:last-child {
    margin-bottom: 0;
}

.promo-panel-left .panel-content p strong {
    color: #e74c3c;
    font-weight: 500;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(231, 76, 60, 0.05);
    border-left: 3px solid #e74c3c;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 400;
}

.benefit-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    color: #e74c3c;
}

.promo-panel-middle .panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.promo-panel-middle .benefits-list {
    flex: 0 1 auto;
    min-height: 0;
    margin-bottom: 0;
}

.promo-panel-middle .middle-panel-bottom {
    position: sticky;
    bottom: 0;
    background: #1e1e1e;
    padding: 20px 0 0 0;
    margin-top: auto;
    flex-shrink: 0;
    z-index: 1;
}

@media (min-width: 769px) {
    .promo-panel-middle {
        padding-bottom: 20px;
    }
}

.middle-panel-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.coupon-section {
    padding: 0;
    background: none;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 8px;
    position: relative;
}

.coupon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    gap: 4px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.coupon-container:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.08));
    border-color: rgba(231, 76, 60, 0.4);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}


.coupon-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #e74c3c, #c0392b);
}

.coupon-line {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}


.coupon-icon {
    font-size: 1.2rem;
    color: #e74c3c;
}



.coupon-text {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
    font-weight: 500;
}

.coupon-code {
    color: #e74c3c;
    font-weight: 700;
    background: rgba(231, 76, 60, 0.15);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 1rem;
    border: 1px solid rgba(231, 76, 60, 0.4);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin: 2px 0;
}




.trial-highlight {
    color: #e74c3c;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}


.trial-highlight {
    color: #e74c3c;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.referral-link {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.referral-link:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}


.trial-note {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 10px;
    line-height: 1.4;
}



.promo-panel-right .panel-content {
    align-items: center;
    padding-top: 10px;
}

.example-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}

.example-item {
    text-align: center;
}

.example-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #cccccc;
    text-align: left; /* Ensure left alignment */
    padding-left: 0; /* Reset any padding */
}


.example-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: #222;
    margin-bottom: 8px;
}

.example-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, #c0392b, #e74c3c);
    margin: 8px 0;
    border-radius: 1px;
    opacity: 0.6;
}

.disclaimer-note {
    margin-top: 15px;
    padding: 15px;
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
}

.disclaimer-note strong {
    color: #e74c3c;
    font-weight: 500;
}

/* Mobile responsive updates */
@media (max-width: 768px) {
    .coupon-container {
        padding: 10px 12px;
        gap: 3px;
    }
    
    .coupon-line {
        font-size: 0.85rem;
    }
    
    .coupon-code {
        font-size: 0.9rem;
        padding: 3px 8px;
    }
    
    .trial-note {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .coupon-container {
        padding: 10px 12px;
        gap: 3px;
    }
    
    .coupon-line {
        font-size: 0.8rem;
    }
    
    .coupon-code {
        font-size: 0.85rem;
        padding: 3px 6px;
    }
    
    .trial-note {
        font-size: 0.75rem;
    }
}

/* Mobile Responsiveness for Promo */
@media (max-width: 768px) {
    .promo-slide-block {
        display: none !important;
    }
    
    .promo-menu-content {
        width: 98%;
        margin: 10px;
        height: auto;
        max-height: 95vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .promo-menu-panels {
        display: block !important;
        height: auto !important;
        grid-template-columns: none !important;
    }
    
    .promo-panel {
        border-right: none;
        border-bottom: 1px solid #333;
        background: #1a1a1a !important;
        overflow: visible !important;
        height: auto !important;
        position: static !important;
        padding: 20px 15px 25px 15px;
    }
    
    .promo-panel::after {
        display: none;
    }
    
    .promo-panel:last-child {
        border-bottom: none;
    }
    
    .promo-panel-middle .middle-panel-bottom {
        position: static !important;
        margin-top: 20px;
        padding-top: 0;
    }
    
    .promo-menu-close-btn {
        position: fixed;
        top: 20px;
        right: 30px;
        z-index: 1010;
    }
    
    .promo-panel-right h3 {
        padding-right: 0;
    }
    
    .example-group {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .benefits-list {
        gap: 12px;
    }
    
    .benefits-list li {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .example-separator {
        margin: 6px 0;
    }
}

@media (max-width: 480px) {
    .promo-panel {
        padding: 18px 12px 20px 12px;
    }
    
    .promo-panel h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .benefits-list li {
        padding: 12px 14px;
        font-size: 0.9rem;
        gap: 12px;
    }
    
    .benefit-icon {
        font-size: 1.3rem;
    }
    
    .disclaimer-note {
        padding: 12px;
        margin-top: 12px;
        font-size: 0.8rem;
    }
    
    .example-separator {
        margin: 5px 0;
    }
    
    .coupon-section {
        padding: 12px 16px;
    }
    
	.trial-section {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 12px;
		width: 100%;
	}

    
    .referral-link {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .example-text {
        font-size: 0.9rem;
    }
}

/* Promo button styles */
.promo-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2d5a3d, #357a46);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
    z-index: 1;
    min-width: 200px;
    text-align: center;
}

.promo-button:hover {
    background: linear-gradient(135deg, #245032, #2d5a3d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.4);
}

.promo-button-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Mobile adjustments for promo button */
@media (max-width: 768px) {
    .promo-button {
        position: static;
        align-self: center;
        font-size: 0.95rem;
        padding: 12px 16px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .promo-button {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

/* Mobile Responsiveness for Promo */
@media (max-width: 768px) {
    .promo-slide-block {
        display: none !important;
    }
    
    .promo-menu-content {
        width: 98%;
        margin: 10px;
        height: 95vh;
        overflow-y: auto;
    }
    
    .promo-menu-panels {
        grid-template-columns: 1fr;
        gap: 0;
        display: flex !important;
        flex-direction: column !important;
        min-height: 100%;
        overflow: visible;
    }
    
	.promo-panel {
		border-right: none;
		border-bottom: 1px solid #333;
		background: #1a1a1a !important;
		flex: none;
		min-height: auto;
		overflow-y: visible;
		padding: 20px 15px 25px 15px;
		position: relative;
	}
    
    .promo-panel::after {
        display: none;
    }
    
    .promo-panel:last-child {
        border-bottom: none;
    }
    
    .promo-panel-left {
        order: 2 !important;
    }
    
    .promo-panel-middle {
        order: 1 !important;
    }
    
    .promo-panel-right {
        order: 3 !important;
    }
    
    .promo-menu-close-btn {
        position: fixed;
        top: 20px;
        right: 30px;
        z-index: 1010;
    }
    
    .promo-panel-right h3 {
        padding-right: 0;
    }
    
    .example-group {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .benefits-list {
        gap: 12px;
        margin-bottom: 25px; /* Consistent spacing on mobile */
    }
    
    .benefits-list li {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .example-separator {
        margin: 6px 0;
    }
    
    /* Mobile middle panel adjustments */
    .promo-panel-middle .middle-panel-bottom {
        margin-top: 0;
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .twitch-chat-button {
        display: none !important;
    }
}


/* Map Chances Button */
.map-chances-button {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
    overflow: hidden;
    z-index: 1;
    min-width: 180px;
}

.map-chances-button:hover {
    background: linear-gradient(135deg, #7d3c98, #6c3483);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.4);
}

.map-offerings-icon {
    height: calc(100% - 8px);
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(1.1);
    max-height: 55px;
}

/* Map Chances Modal */
.map-modal-content {
    max-width: 1200px;
    width: 95%;
}

.map-modal-content .modal-header {
    text-align: center;
}

.map-modal-content .modal-header h3 {
    text-align: center;
    width: 100%;
    margin: 0;
}

.map-loading,
.map-error {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.map-version-info {
    margin-bottom: 20px;
    padding: 15px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.version-item {
    margin-bottom: 8px;
}

.version-item:last-child {
    margin-bottom: 0;
}

.map-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.map-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    min-width: 800px;
}

.map-table th {
    background-color: var(--bg-secondary);
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.map-table th:first-child {
    width: 140px;
    text-align: center;
}

.map-table th:nth-child(2) {
    width: auto;
    min-width: 350px;
}

.map-table th:nth-child(3),
.map-table th:nth-child(4) {
    width: 120px;
    text-align: center;
}

.map-table td:nth-child(3) {
    background-color: rgba(76, 175, 80, 0.1);   /* light‑green for Current % column */
}



.map-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
    height: 80px;
}

.map-table td:nth-child(3) {
    background-color: rgba(76, 175, 80, 0.1);
}

.map-table tbody tr:hover {
    background-color: rgba(255, 107, 53, 0.1);
}

/*.map-table tbody tr:hover td:nth-child(3) {
    background-color: rgba(76, 175, 80, 0.15);
} This was making the current % block also green*/

.map-table tbody tr:last-child td {
    border-bottom: none;
}

.map-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.map-name {
    font-weight: 500;
    font-size: 1rem;
}

.map-chance {
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

.map-chance.current {
    color: var(--text-primary);
}

.map-chance.previous {
    color: #888888;
}

.map-chance.increased {
    color: var(--text-primary);
}

.map-chance.decreased {
    color: var(--text-primary);
}

.map-chance.unchanged {
    color: var(--text-primary);
}

/* Image Enlargement Modal */
.image-enlargement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1010;
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.enlarged-image {
    width: 60vw;
    height: 40vw;
    max-width: 800px;
    max-height: 533px;
    min-width: 400px;
    min-height: 267px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

/* Mobile adjustments for map chances */
@media (max-width: 768px) {
    .map-chances-button {
        position: static;
        align-self: center;
        font-size: 0.9rem;
        padding: 12px 16px;
        min-width: auto;
        order: -1;
        margin-bottom: 15px;
        gap: 6px;
        height: 50px;
    }
    
    .map-offerings-icon {
        height: 50px; /* Fixed height instead of percentage */
        width: 50px;  /* Fixed width for consistency */
        max-height: none; /* Remove the max-height constraint */
    }

    
    .region-header-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .map-modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .map-version-info {
        font-size: 0.85rem;
        padding: 12px 0;
    }
    
    .map-table {
        font-size: 0.9rem;
        min-width: 600px;
    }
    
    .map-table th,
    .map-table td {
        padding: 8px 6px;
    }
    
    .map-table td {
        height: 70px;
    }
    
    .map-table th:first-child {
        width: 110px;
    }
    
    .map-table th:nth-child(2) {
        min-width: 250px;
    }
    
    .map-table th:nth-child(3),
    .map-table th:nth-child(4) {
        width: 100px;
    }
    
    .map-image {
        width: 95px;
        height: 63px;
    }
    
    .map-name {
        font-size: 0.9rem;
    }
    
    .map-chance {
        font-size: 0.9rem;
    }
    
    .enlarged-image {
        width: 90vw;
        height: 60vw;
        max-width: 600px;
        max-height: 400px;
        min-width: 300px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .map-chances-button {
        font-size: 0.85rem;
        padding: 10px 14px;
        gap: 5px;
        height: 45px;
    }
    
    .map-offerings-icon {
        height: 40px; /* Slightly smaller for very small screens */
        width: 40px;
        max-height: none;
    }


    
    .map-table {
        font-size: 0.8rem;
        min-width: 500px;
    }
    
    .map-table th:nth-child(2) {
        min-width: 200px;
    }
    
    .map-table td {
        height: 60px;
    }
    
    .map-image {
        width: 80px;
        height: 53px;
    }
    
    .enlarged-image {
        width: 95vw;
        height: 63vw;
        max-width: 500px;
        max-height: 333px;
        min-width: 250px;
        min-height: 167px;
    }
}

.map-disclaimer {
    background-color: #1c1c1c;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.map-disclaimer strong {
    color: #ff6b6b;
    font-size: 1rem;
}
