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

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0E1113;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: #D5F800;
}

a:visited {
    color: #A8C000;
}

header {
    background-color: #191C1E;
    padding: 20px 40px;
    border-bottom: 1px solid #2B3134;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.header-logo-link:hover .header-text {
    color: #D5F800;
}

.logo {
    height: 32px;
    width: auto;
}

.header-text {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.2s ease;
}

.header-nav {
    margin-left: auto;
}

.nav-link {
    color: #B0B8BF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #D5F800;
    background-color: rgba(213, 248, 0, 0.1);
}

.container {
    max-width: 1200px;
    min-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    flex: 1;
}

h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

/* Home page styles */
.regions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.region-card {
    background-color: #191C1E;
    border: 1px solid #41484D;
    border-radius: 8px;
    padding: 24px 32px;
}

.region-card:hover {
    border-color: rgba(180, 186, 189, 0.50);
}

.region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.region-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expand-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B4BABD;
    transition: color 0.2s ease;
}

.expand-button:hover {
    color: #D5F800;
}

.expand-icon {
    width: 20px;
    height: 20px;
}

.region-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rss-icon,
.rss-icon:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
    color: #B4BABD;
}

.rss-icon:hover {
    color: #E1E3E4;
}

.rss-icon svg {
    display: block;
    border-radius: 2px;
}

.region-id {
    color: #6B7280;
    font-weight: 400;
    font-size: 1rem;
}

.components-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2B3134;
}

.component-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 12px 32px;
}

.component-name {
    font-size: 1rem;
    color: #B4BABD;
    font-weight: 400;
}

.incident-history {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2B3134;
    display: flex;
    gap: 3px;
    align-items: flex-end;
}

.history-bar {
    flex: 1;
    height: 30px;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
}

.history-bar:hover {
    /* Opacity removed so tooltip can be fully opaque */
}

.history-bar.operational {
    background-color: #1c7b30;
}

.history-bar.degraded {
    background-color: #f4cb66;
}

.history-bar.outage {
    background-color: #fdafa9;
}

.history-bar.event {
    background-color: #806bff;
}

.history-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    min-width: 220px;
    max-width: 320px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
    white-space: normal;
    border: 1px solid #2B3134;
    margin-left: 0;
    margin-right: 0;
}

.history-bar::after {
    content: attr(data-date);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 999;
}

.history-bar:hover::after {
    opacity: 1;
}

.tooltip-incidents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tooltip-incidents-list li {
    margin: 8px 0;
    padding-left: 16px;
    position: relative;
}

.tooltip-incidents-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tooltip-incidents-list li.tooltip-incident::before {
    color: #FFC107;
}

.tooltip-incidents-list li.tooltip-event::before {
    color: #4A90E2;
}

.tooltip-incident-link {
    color: #ffffff;
    text-decoration: none;
    display: inline;
    transition: color 0.2s ease;
}

.tooltip-incident-link:hover {
    color: #D5F800;
    text-decoration: underline;
}

.tooltip-incident-status {
    color: #B4BABD;
    font-size: 0.85em;
}

.tooltip-no-incidents {
    color: #B4BABD;
    font-style: italic;
}

.tooltip-date {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #2B3134;
    color: #B4BABD;
    font-size: 0.875rem;
}

.status-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.status-badge.small {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.status-badge.operational {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(40, 155, 63, 0.30);
}

.status-badge.degraded {
    background-color: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.status-badge.outage {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.status-badge.degraded_performance,
.status-badge.partial_outage {
    background-color: transparent;
    color: white;
    border: 2px dashed #eda900;
}

.status-badge.major_outage {
    background-color: #972118;
    color: white;
}

.status-badge.status-investigating,
.status-badge.status-identified,
.status-badge.status-monitoring {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #8E6500;
}

.status-badge.status-resolved,
.status-badge.status-postmortem {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(180, 186, 189, 0.30);
}

.status-badge.status-scheduled {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #3A2A99;
}

.status-badge.status-in-progress {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #3A2A99;
}

.status-badge.status-completed,
.status-badge.status-cancelled {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(180, 186, 189, 0.30);
}

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

.status-indicator.operational {
    background-color: #D5F800;
    box-shadow: 0 0 8px rgba(213, 248, 0, 0.6);
}

.status-indicator.degraded {
    background-color: #FFC107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

.status-indicator.outage {
    background-color: #F44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
}

.status-indicator.degraded_performance {
    background-color: #FFD700;
}

.status-indicator.major_outage {
    background-color: #FFA500;
}

.overall-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 60px;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid;
}

.overall-status.operational {
    background-color: #093912;
    border-color: #0d4719;
}

.overall-status.disruption {
    background-color: #641610;
    border-color: #7b201a;
}

.overall-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.overall-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.overall-rss-link,
.overall-rss-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.overall-rss-link:hover {
    color: #ffffff;
}

footer {
    background-color: #191C1E;
    border-top: 1px solid #2B3134;
    padding: 30px 40px;
    text-align: center;
    margin-top: 80px;
}

.footer-text {
    color: #B4BABD;
    font-size: 0.95rem;
}

.footer-text .heart {
    color: #D5F800;
    font-size: 1.1rem;
    margin: 0 4px;
}

.footer-text a {
    color: inherit;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: none;
}

.recent-incidents {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.incident-card {
    background-color: #191C1E;
    border: 1px solid #41484D;
    border-radius: 8px;
    padding: 20px 28px;
}

.incident-card:hover {
    border-color: rgba(180, 186, 189, 0.50);
}

#incident-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#event-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
}

/* Override flex for incident detail page - elements should stack vertically */
#incident-content > .incident-header {
    display: block;
}

#incident-content > .incident-header > * {
    margin-bottom: 1.6em;
}

#incident-content > .incident-header > *:last-child {
    margin-bottom: 0;
}

#event-content > .incident-header {
    display: block;
}

#event-content > .incident-header > * {
    margin-bottom: 1.6em;
}

#event-content > .incident-header > *:last-child {
    margin-bottom: 0;
}

.incident-info {
    flex: 1;
}

.incident-description {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.incident-description h1,
.incident-description h2,
.incident-description h3,
.incident-description h4,
.incident-description h5,
.incident-description h6 {
    margin-top: 8px;
    margin-bottom: 6px;
    color: #D5F800;
    text-align: left;
}

.incident-description h1 { font-size: 1.3em; }
.incident-description h2 { font-size: 1.2em; }
.incident-description h3 { font-size: 1.1em; }
.incident-description h4 { font-size: 1em; }
.incident-description h5 { font-size: 0.95em; }
.incident-description h6 { font-size: 0.9em; }

.incident-description strong {
    font-weight: 700;
    color: #D5F800;
}

.incident-description em {
    font-style: italic;
}

.incident-description ul {
    margin: 8px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.incident-description li {
    margin: 2px 0;
    color: #ffffff;
    line-height: 1.4;
}

.incident-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
    color: #B4BABD;
}

.incident-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.incident-meta-label {
    color: #6B7280;
}

.incident-components {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 10px;
}

.incident-components > strong {
    color: #B4BABD;
}

.incident-components-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.incident-component-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.incident-component-name {
    color: white;
    font-weight: normal;
}

.event-components-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.event-component-chip {
    background-color: #2b3134;
    color: #e1e3e4;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.component-tag {
    background-color: rgba(213, 248, 0, 0.1);
    color: #D5F800;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.incident-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.no-incidents {
    text-align: center;
    padding: 40px;
    color: #B4BABD;
    font-size: 1rem;
    background-color: #191C1E;
    border: 1px solid #41484D;
    border-radius: 8px;
}

/* Incident detail page styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 700;
}

.breadcrumb-link {
    text-decoration: none;
}

.breadcrumb-separator {
    color: #B4BABD;
}

.breadcrumb-current {
    color: #E1E3E4;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #B4BABD;
}

.error {
    text-align: center;
    padding: 60px 20px;
}

.error h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #D5F800;
}

.error p {
    font-size: 18px;
    color: #B4BABD;
    margin-bottom: 30px;
}

.error a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #D5F800;
    color: #0D0D0D;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.error a:hover {
    background-color: #c4e600;
}

.incident-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

.incident-title strong {
    color: #D5F800;
}

.incident-title em {
    font-style: italic;
}

.incident-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(180, 186, 189, 0.30);
}

.status-investigating,
.status-identified,
.status-monitoring {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #8E6500;
}

.status-resolved,
.status-postmortem {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(180, 186, 189, 0.30);
}

.status-scheduled {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #3A2A99;
}

.status-in-progress {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #3A2A99;
}

.status-completed,
.status-cancelled {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(180, 186, 189, 0.30);
}

.incident-region {
    color: #B4BABD;
    font-size: 16px;
}

.incident-region strong {
    color: #ffffff;
}

.incident-region a {
    color: #ffffff;
    text-decoration: none;
}

.incident-region a:hover {
    text-decoration: underline;
}

.incident-region .region-domain {
    color: #B4BABD;
    margin-left: 8px;
    word-break: break-word;
}

.incident-region .region-list {
    margin-top: 8px;
}

.incident-region .region-item {
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.incident-region .region-item:last-child {
    margin-bottom: 0;
}

.incident-dates {
    margin-top: 20px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #2B3134;
}

.date-item {
    margin-bottom: 10px;
    font-size: 14px;
}

.date-item:last-child {
    margin-bottom: 0;
}

.date-label {
    color: #B4BABD;
    margin-right: 8px;
}

.date-value {
    color: #ffffff;
}

.incident-timeline {
    margin-top: 40px;
}

.timeline-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
}

.timeline-event {
    position: relative;
    padding-left: 30px;
    padding-bottom: 60px;
}

.timeline-event:last-child {
    padding-bottom: 0;
}

/* Connecting line between dots */
.timeline-event::before {
    content: '';
    position: absolute;
    left: -1px;
    width: 2px;
    background-color: #2B3134;
}

.timeline-event:first-child:not(:only-child)::before {
    top: 10px;
    bottom: 0;
}

.timeline-event:not(:first-child):not(:last-child)::before {
    top: 0;
    bottom: 0;
}

.timeline-event:last-child:not(:only-child)::before {
    top: 0;
    height: 10px;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
}

.timeline-event.resolved .timeline-dot {
    background-color: #ffffff;
}

.timeline-timestamp {
    font-size: 14px;
    color: #B4BABD;
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
}

.timeline-description h1,
.timeline-description h2,
.timeline-description h3,
.timeline-description h4,
.timeline-description h5,
.timeline-description h6 {
    margin-top: 10px;
    margin-bottom: 8px;
    color: #D5F800;
    text-align: left;
}

.timeline-description h1 { font-size: 1.5em; }
.timeline-description h2 { font-size: 1.3em; }
.timeline-description h3 { font-size: 1.1em; }
.timeline-description h4 { font-size: 1em; }
.timeline-description h5 { font-size: 0.9em; }
.timeline-description h6 { font-size: 0.85em; }

.timeline-description strong {
    font-weight: 700;
    color: #FFFFFF;
}

.timeline-description em {
    font-style: italic;
}

.timeline-description ul {
    margin: 8px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.timeline-description li {
    margin: 2px 0;
    color: #ffffff;
    line-height: 1.4;
}

.event-status-header {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Region detail page styles */
.region-title {
    font-size: clamp(1.3rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

.rss-feed-link {
    margin-top: 12px;
    font-size: clamp(0.7rem, 2vw, 0.95rem);
    color: #B4BABD;
}

.rss-feed-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
}

.rss-feed-link .rss-icon {
    color: #B4BABD;
}

.rss-feed-link a:hover .rss-icon {
    color: #E1E3E4;
}

#region-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.region-header-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2B3134;
}


.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    margin-top: 50px;
}

.section-title:first-of-type {
    margin-top: 0;
}

.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    header {
        padding: 16px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-logo-link {
        gap: 12px;
    }

    .header-text {
        font-size: 1rem;
    }

    .header-nav {
        margin-left: 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        font-size: 0.85rem;
        padding: 8px 12px;
        text-align: center;
    }

    .container {
        padding: 40px 20px;
        min-width: 0;
    }

    #region-page {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .overall-status {
        padding: 20px;
        margin-bottom: 40px;
    }

    .overall-status h2 {
        font-size: 1.3rem;
    }

    .overall-status p {
        font-size: 0.9rem;
    }

    .region-card {
        padding: 20px;
    }

    .region-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .region-name {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }

    .region-id {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .status-badge {
        font-size: 0.85rem;
        padding: 6px 16px;
    }

    .component-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-left: 20px;
    }

    .incident-history {
        gap: 2px;
    }

    .history-bar {
        height: 25px;
    }

    footer {
        padding: 24px 20px;
        margin-top: 60px;
    }

    .incident-card {
        padding: 16px 20px;
    }

    .incident-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .incident-description {
        font-size: 1rem;
    }

    .incident-meta {
        flex-direction: column;
        gap: 8px;
    }

    .incident-title {
        font-size: 24px;
    }

    .timeline-title {
        font-size: 20px;
    }

    #region-breadcrumb-name {
        display: inline-block;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }

    .components-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices (phones in portrait, less than 480px) */
@media (max-width: 480px) {
    .container {
        padding: 30px 16px;
    }

    #incident-content {
        gap: 20px;
    }

    #event-content {
        gap: 20px;
    }

    #region-page {
        padding: 30px 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .incident-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .timeline-title {
        font-size: 1.25rem;
    }

    .date-item {
        font-size: 0.85rem;
    }

    .component-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .region-item {
        font-size: 0.85rem;
    }

    .region-domain {
        font-size: 0.75rem;
    }

    #region-breadcrumb-name {
        max-width: 120px;
    }
}

/* Page visibility control */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Subscription Page Styles */
.subscription-section {
    background-color: #191C1E;
    border: 1px solid #2B3134;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.subscription-form {
    max-width: 500px;
    margin-top: 20px;
}

.subscription-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #B8BDC1;
}

.subscription-form input[type="email"] {
    width: 100%;
    padding: 12px;
    background-color: #0E1113;
    border: 1px solid #2B3134;
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 16px;
}

.subscription-form input[type="email"]:focus {
    outline: none;
    border-color: #D5F800;
}

.subscription-form button,
.subscription-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.subscription-form button,
.primary-btn {
    background-color: #D5F800;
    color: #0E1113;
}

.subscription-form button:hover,
.primary-btn:hover {
    background-color: #E6FF33;
}

.subscription-form button:disabled,
.primary-btn:disabled {
    background-color: #3B4144;
    color: #606060;
    cursor: not-allowed;
    opacity: 0.6;
}

.subscription-form button:disabled:hover,
.primary-btn:disabled:hover {
    background-color: #3B4144;
}

.logout-btn {
    background-color: transparent;
    color: #B0B8BF;
    padding: 6px 14px;
    font-size: 14px;
    margin-left: 10px;
    border: 1px solid #3B4144;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    color: #D5F800;
    border-color: #D5F800;
    background-color: rgba(213, 248, 0, 0.05);
}

.danger-btn {
    background-color: #4A1F1F;
    color: #FF6B6B;
    margin-left: 12px;
}

.danger-btn:hover {
    background-color: #5A2F2F;
}

.message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.message.success {
    background-color: #1F4A1F;
    color: #90EE90;
    border: 1px solid #2F5A2F;
}

.message.error {
    background-color: #4A1F1F;
    color: #FF6B6B;
    border: 1px solid #5A2F2F;
}

.message.info {
    background-color: #1F2F4A;
    color: #90C8EE;
    border: 1px solid #2F3F5A;
}

.regions-checkboxes {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-checkbox {
    background-color: #0E1113;
    border: 1px solid #2B3134;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
}

.region-checkbox:hover {
    border-color: #D5F800;
    background-color: #191C1E;
}

.region-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #D5F800;
    flex-shrink: 0;
}

.region-checkbox label {
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.region-checkbox .region-id {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.region-checkbox .region-label {
    color: #808080;
    font-size: 13px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.subscription-actions {
    margin-top: 30px;
}

#subscription-manage p:first-child {
    margin-bottom: 30px;
    font-size: 16px;
    color: #B8BDC1;
}

#user-email {
    color: #D5F800;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: #191C1E;
    border: 1px solid #3B4144;
    border-radius: 8px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

.modal-content h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-content p {
    color: #B8BDC1;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-warning {
    color: #FFB84D !important;
    font-size: 14px !important;
    padding: 12px;
    background-color: rgba(255, 184, 77, 0.1);
    border-left: 3px solid #FFB84D;
    border-radius: 4px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.modal-cancel-btn,
.modal-confirm-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-cancel-btn {
    background-color: transparent;
    color: #B0B8BF;
    border: 1px solid #3B4144;
}

.modal-cancel-btn:hover {
    color: #D5F800;
    border-color: #D5F800;
    background-color: rgba(213, 248, 0, 0.05);
}

.modal-confirm-btn {
    background-color: #DC3545;
    color: #ffffff;
}

.modal-confirm-btn:hover {
    background-color: #C82333;
}

.modal-confirm-btn:active {
    background-color: #BD2130;
}

/* Privacy Page Styles */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.privacy-content h1 {
    color: #D5F800;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.privacy-content h2 {
    color: #D5F800;
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.privacy-content .effective-date {
    color: #808080;
    font-size: 0.9em;
    margin-bottom: 30px;
}

.privacy-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #B0B8BF;
}

.privacy-content ul {
    margin: 10px 0 20px 25px;
    color: #B0B8BF;
    line-height: 1.8;
}

.privacy-content li {
    margin-bottom: 10px;
}

.privacy-content a {
    color: #D5F800;
    text-decoration: underline;
}

.privacy-content a:hover {
    color: #E6FF33;
}

.privacy-summary {
    background-color: #191C1E;
    border-left: 3px solid #D5F800;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.privacy-summary p {
    margin: 0;
    color: #ffffff;
}

.privacy-highlight {
    background-color: #1a2a1a;
    border-left: 3px solid #D5F800;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.privacy-highlight p {
    margin: 0;
    color: #ffffff;
}

.privacy-content hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #2B3134;
}

.privacy-footer {
    text-align: center;
    color: #808080;
    font-size: 0.95em;
    margin-top: 30px;
}

.privacy-footer a {
    color: #D5F800;
}

/* Standard violet hyperlink */
.standard-violet-link {
    color: #BFB5FF;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 0;
    border-radius: 3px;
    line-height: 1;
    background: linear-gradient(to right, #6046FF 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: right center;
    transition: background-position 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                color 0.35s ease-in 0.1s;
}

.standard-violet-link:visited {
    color: #BFB5FF;
}

.standard-violet-link:hover {
    color: #EFEDFF;
    background-position: left center;
}

.standard-violet-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
}

.standard-violet-link:focus {
    color: #BFB5FF;
    outline: none;
}

.standard-violet-link:focus::after {
    border-color: #D5F800;
    filter: blur(1px);
}

/* Plain violet link — same as standard-violet-link but without the sliding background */
.plain-grey-link {
    color: #B4BABD;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 0;
    border-radius: 3px;
    line-height: 1;
    transition: color 0.35s ease-in;
}

.plain-grey-link:visited {
    color: #B4BABD;
}

.plain-grey-link:hover {
    color: #E1E3E4;
}

.plain-grey-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
}

.plain-grey-link:focus {
    color: #B4BABD;
    outline: none;
}

.plain-grey-link:focus::after {
    border-color: #D5F800;
    filter: blur(1px);
}

.plain-violet-link {
    color: #BFB5FF;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 0;
    border-radius: 3px;
    line-height: 1;
    transition: color 0.35s ease-in;
}

.plain-violet-link:visited {
    color: #BFB5FF;
}

.plain-violet-link:hover {
    color: #EFEDFF;
}

.plain-violet-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
}

.plain-violet-link:focus {
    color: #BFB5FF;
    outline: none;
}

.plain-violet-link:focus::after {
    border-color: #D5F800;
    filter: blur(1px);
}
