/* RIX - Reykjavik Internet Exchange */

/* === CSS Variables === */
:root {
    --bg-dark: #0a0e17;
    --bg-secondary: #131825;
    --bg-tertiary: #1a2030;
    --text-primary: #e8edf4;
    --text-secondary: #a8b4c8;
    --accent-blue: #4a9eff;
    --accent-blue-bright: #6bb3ff;
    --accent-blue-dark: #2b7bd9;
    --glow-blue: rgba(74, 158, 255, 0.4);
    --glow-blue-strong: rgba(74, 158, 255, 0.6);
    --border-color: #2a3544;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px var(--glow-blue);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================================
   CUSTOM SCROLLBAR
   ================================ */

/* Firefox */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--accent-blue) rgba(255, 255, 255, 0.05);
}

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: var(--bg-secondary);
	border-radius: 10px;
	margin: 2px;
	border: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--accent-blue), var(--accent-blue-dark));
	border-radius: 10px;
	border: 2px solid var(--bg-secondary);
	transition: all var(--transition-medium);
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, var(--accent-blue-bright), var(--accent-blue));
	border-color: var(--bg-dark);
	box-shadow: 0 0 15px var(--glow-blue);
}

::-webkit-scrollbar-thumb:active {
	background: linear-gradient(180deg, var(--accent-blue-dark), #1a5fa8);
	box-shadow: 0 0 20px var(--glow-blue-strong);
}

::-webkit-scrollbar-corner {
	background: var(--bg-secondary);
}

/* Horizontal scrollbar */
::-webkit-scrollbar:horizontal {
	height: 12px;
}

/* Custom green scrollbar for specific elements */
.container::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.traffic-canvas::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #00c864, #00a050);
}

.container::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.traffic-canvas::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #00ff88, #00c864);
	box-shadow: 0 0 15px rgba(0, 200, 100, 0.6);
}

/* Thin scrollbar variant - add class "thin-scroll" */
.thin-scroll::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.thin-scroll::-webkit-scrollbar-thumb {
	border: 1px solid var(--bg-secondary);
}

/* Purple scrollbar variant - add class "purple-scroll" */
.purple-scroll::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #9b59b6, #7d3c98);
}

.purple-scroll::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #c084fc, #9b59b6);
	box-shadow: 0 0 15px rgba(155, 89, 182, 0.6);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: 
    linear-gradient(135deg, rgba(10, 14, 23, 0.95) 0%, rgba(13, 18, 25, 0.95) 100%),
    url("https://rix.hostname.is/assets/images/background.svg");
    background-attachment: fixed;
    min-height: 100vh;
}

h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px var(--glow-blue);
    letter-spacing: -0.02em;
}

/* === Header === */
header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(19, 24, 37, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-medium), filter var(--transition-medium);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--glow-blue));
}

.logo img {
    height: 50px;
    width: auto;
}

/* === Navigation === */
.rightSide {
    display: flex;
    align-items: center;
    gap: 0;
}

.mobile-menu-toggle {
    display: none !important;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--accent-blue-bright);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

.menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.menu a,
.menu-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    transition: all var(--transition-medium);
    position: relative;
    font-weight: 500;
    cursor: pointer;
}

.menu a:hover,
.menu-item:hover {
    color: var(--accent-blue-bright);
    background: var(--bg-tertiary);
    box-shadow: 0 0 15px var(--glow-blue);
    transform: translateY(-2px);
}

.menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: all var(--transition-medium);
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent-blue);
}

.menu a:hover::before {
    width: 80%;
}

.menu a.active {
    color: var(--accent-blue-bright);
    background: rgba(74, 158, 255, 0.1);
}

.menu a.active::before {
    width: 80%;
}

/* === Submenu === */
.menu-item {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-blue);
    margin-top: 0.2rem;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.menu-item:hover .submenu,
.submenu:hover {
    display: block;
    pointer-events: auto;
    opacity: 1;
    animation: fadeInDown 0.3s ease;
}

/* Bridge the gap between menu item and submenu */
.menu-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.2rem;
    background: transparent;
}

.submenu a {
    display: block;
    padding: 0.8rem 1.2rem;
    border-radius: 0;
}

.submenu a:hover {
    background: var(--bg-tertiary);
}

/* Mobile Navigation Responsive */
@media (max-width: 1160px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .menu {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        background: var(--bg-secondary) !important;
        border-left: 2px solid var(--border-color) !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 6rem 0 2rem !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.6) !important;
        transition: right 0.3s ease-in-out !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        align-items: stretch !important;
    }
    
    .menu.active {
        display: flex !important;
        right: 0 !important;
    }
    
    .menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: -1;
    }
    
    .menu.active::before {
        opacity: 1;
        pointer-events: auto;
    }
    
    .menu a,
    .menu-item {
        width: 100%;
        padding: 1.2rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: left;
    }
    
    .menu a::before {
        display: none;
    }
    
    .menu a.active {
        background: rgba(74, 158, 255, 0.2);
        border-left: 4px solid var(--accent-blue-bright);
    }
    
    .menu a:hover {
        background: rgba(74, 158, 255, 0.15);
        transform: none;
        box-shadow: none;
    }
    
    .submenu {
        position: static;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.3);
    }
    
    .submenu a {
        padding-left: 3rem;
        font-size: 0.9rem;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* === News Section === */
.news-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-soft);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-section h2 {
    font-size: 2rem;
    margin: 0;
    color: var(--accent-blue-bright);
    text-shadow: 0 0 15px var(--glow-blue);
}

.rss-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.rss-button:hover {
    background: var(--bg-dark);
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px var(--glow-blue);
    transform: translateY(-2px);
}

.rss-button .rss-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
    transition: transform var(--transition-medium);
}

.rss-button:hover .rss-icon {
    transform: rotate(12deg) scale(1.1);
}

.news-items {
    display: grid;
    gap: 1.5rem;
}

.news-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all var(--transition-medium);
    cursor: pointer;
}

.news-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--glow-blue);
    transform: translateY(-2px);
}

.news-date {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.news-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* === Blog Post Layout === */
.blog-post {
    display: grid;
    grid-template-columns: minmax(0, 850px) 300px;
    gap: 3rem;
    max-width: 1400px;
    align-items: start;
}

@media (max-width: 1200px) {
    .blog-post {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        order: -1;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent-blue-bright);
}

.breadcrumb .separator {
    color: var(--text-secondary);
    margin: 0 0.25rem;
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Blog Article */
.blog-article {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .blog-article {
        padding: 1.5rem;
    }
}

.blog-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.blog-meta time {
    color: var(--accent-blue);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1;
}

.blog-category {
    background: linear-gradient(135deg, var(--accent-blue-dark) 0%, var(--accent-blue) 100%);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px var(--glow-blue);
    line-height: 1;
}

.blog-header h1 {
    color: var(--text-primary);
    font-size: 2.75rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    text-shadow: 0 0 25px var(--glow-blue);
    font-weight: 800;
    letter-spacing: -0.5px;
    width: 100%;
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
        line-height: 1.25;
    }
}

.blog-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-style: italic;
    margin: 0;
    line-height: 1.7;
    font-weight: 400;
    width: 100%;
}

@media (max-width: 768px) {
    .blog-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}
/* Blog Content Styling */
.blog-content {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.blog-content > p:first-of-type {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.blog-content h2 {
    color: var(--accent-blue-bright);
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    text-shadow: 0 0 15px var(--glow-blue);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.blog-content h2:first-child {
    margin-top: 0;
}

.blog-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.blog-content ul {
    margin-bottom: 2rem;
    padding-left: 2.5rem;
}

.blog-content li {
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    line-height: 1.7;
    position: relative;
}

.blog-content li::marker {
    color: var(--accent-blue);
}

.blog-highlight {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(74, 158, 255, 0.05) 100%);
    border-left: 5px solid var(--accent-blue);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-highlight h3 {
    color: var(--accent-blue-bright);
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.blog-highlight ul {
    margin-bottom: 0;
}

.blog-highlight li {
    font-size: 1.05rem;
    padding-left: 0.5rem;
}

.blog-cta {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--accent-blue);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3.5rem 0;
    text-align: center;
    box-shadow: 0 0 25px var(--glow-blue);
}

.blog-cta h3 {
    color: var(--accent-blue-bright);
    margin-top: 0;
    margin-bottom: 1rem;
}

.blog-cta p {
    margin-bottom: 1.5rem;
}
.blog-cta h3 {
    color: var(--accent-blue-bright);
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    text-shadow: 0 0 15px var(--glow-blue);
}

.blog-cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-medium);
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 4px 12px var(--glow-blue);
}

.btn-primary:hover {
    background: var(--accent-blue-bright);
    border-color: var(--accent-blue-bright);
    box-shadow: 0 0 25px var(--glow-blue-strong);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue-bright);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 20px var(--glow-blue);
    transform: translateY(-3px);
}

/* Blog Footer */
.blog-footer {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-color);
}
.blog-tags {
    margin-bottom: 1.5rem;
}

.tag-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-right: 0.5rem;
}

.tag {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.blog-tags {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.tag-label {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--accent-blue-bright);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-blue);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.tag:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue-bright);
    box-shadow: 0 0 12px var(--glow-blue);
    transform: translateY(-2px);
}

.blog-share {
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.blog-share span {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.share-link {
    color: var(--accent-blue);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all var(--transition-fast);
    background: var(--bg-tertiary);
}

.share-link:hover {
    color: var(--accent-blue-bright);
    border-color: var(--accent-blue);
    background: var(--bg-dark);
    box-shadow: 0 0 10px var(--glow-blue);
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 2rem;
}

@media (max-width: 1200px) {
    .blog-sidebar {
        position: static;
    }
}

.sidebar-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-medium);
}

.sidebar-section:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--glow-blue);
}

.sidebar-section h3 {
    color: var(--accent-blue-bright);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
    text-shadow: 0 0 10px var(--glow-blue);
}

.related-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li {
    margin-bottom: 1.25rem;
}

.related-posts li:last-child {
    margin-bottom: 0;
}

.related-posts a {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-medium);
}

.related-posts a:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--glow-blue);
    transform: translateX(5px);
    background: var(--bg-dark);
}

.related-date {
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links li:last-child {
    margin-bottom: 0;
}

.quick-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    font-weight: 500;
}

.quick-links a::before {
    content: "→";
    margin-right: 0.75rem;
    color: var(--accent-blue);
    transition: all var(--transition-fast);
}

.quick-links a:hover {
    color: var(--accent-blue-bright);
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
    padding-left: 1.5rem;
}

.quick-links a:hover::before {
    transform: translateX(5px);
}

/* === Typography === */
h2 {
    color: var(--accent-blue-bright);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px var(--glow-blue);
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* === Links === */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--accent-blue-bright);
    text-shadow: 0 0 8px var(--glow-blue);
}

/* === Images === */
.container_center {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 550px;
    flex: 1;
    min-width: 300px;
}

.image-card h3 {
    color: var(--accent-blue-bright);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 0 0 15px var(--glow-blue);
}

.image-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.container_center img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-medium);
    background: var(--bg-secondary);
    padding: 1rem;
    cursor: pointer;
}

.container_center img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 25px var(--glow-blue);
    border-color: var(--accent-blue);
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-dialog {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-blue);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 60px var(--glow-blue-strong), 0 16px 48px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--accent-blue-bright);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-shadow: 0 0 20px var(--glow-blue);
    z-index: 10000;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
}

.modal-close:hover {
    color: #fff;
    background: var(--accent-blue);
    transform: rotate(90deg);
    box-shadow: 0 0 25px var(--glow-blue-strong);
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--accent-blue-bright);
    font-size: 1.8rem;
    text-shadow: 0 0 15px var(--glow-blue);
}

.modal-body {
    padding: 2rem;
}

.modal-content {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    background: var(--bg-dark);
}

.modal-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    
    .modal-dialog {
        max-width: 100%;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
        padding-right: 2rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-close {
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
}

/* ================================
   RIPE DATABASE MODAL
   ================================ */

/* Make AS/Network links clickable with visual feedback */
.data-table a[href*="apps.db.ripe.net"] {
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--accent-blue-bright);
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
}

.data-table a[href*="apps.db.ripe.net"]:hover {
    background: rgba(74, 158, 255, 0.1);
    color: #fff;
    text-shadow: 0 0 8px var(--glow-blue);
    transform: translateX(2px);
}

/* RIPE Modal Specific Styles */
#ripeModal .modal-dialog {
    max-width: 1000px;
}

#ripeModal .modal-header {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-bottom: 2px solid var(--accent-blue);
}

#ripeModal .modal-header h2 {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

#ripeModal .modal-header h2 .resource-type {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: var(--accent-blue);
    color: var(--bg-dark);
    border-radius: 20px;
    font-weight: 600;
    text-shadow: none;
}

#ripeModal .modal-body {
    padding: 1.5rem 2rem 2rem 2rem;
}

.ripe-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.ripe-loading::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    margin: 1.5rem auto 0;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: ripeSpinner 0.8s linear infinite;
}

@keyframes ripeSpinner {
    to {
        transform: rotate(360deg);
    }
}

.ripe-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    border-left: 4px solid #ff4444;
    padding: 1.5rem;
    border-radius: 8px;
    color: #ff9999;
}

.ripe-data-section {
    margin-bottom: 2rem;
}

.ripe-data-section h3 {
    color: var(--accent-blue-bright);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    text-shadow: 0 0 10px var(--glow-blue);
}

.ripe-data-table {
    width: 100%;
    background: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.ripe-data-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.ripe-data-row:last-child {
    border-bottom: none;
}

.ripe-data-row:hover {
    background: rgba(74, 158, 255, 0.05);
}

.ripe-data-label {
    padding: 0.8rem 1rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(74, 158, 255, 0.05);
    border-right: 1px solid var(--border-color);
}

.ripe-data-value {
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    word-break: break-word;
}

.ripe-data-value code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--accent-blue-bright);
    font-size: 0.9em;
}

.ripe-raw-data {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.ripe-raw-data h3 {
    margin-bottom: 1rem;
}

.ripe-raw-data pre {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
}

.ripe-raw-data code {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ripe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ripe-tag {
    background: var(--accent-blue);
    color: var(--bg-dark);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ripe-external-link:hover {
    background: var(--accent-blue-bright) !important;
    box-shadow: 0 0 20px var(--glow-blue);
    transform: translateY(-2px);
}

.ripe-embedded-section iframe {
    transition: opacity 0.3s ease;
}

.ripe-embedded-section iframe:hover {
    opacity: 0.98;
}

.ripe-error iframe {
    transition: opacity 0.3s ease;
}

.ripe-error iframe:hover {
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    #ripeModal .modal-dialog {
        max-width: 100%;
    }
    
    .ripe-data-row {
        grid-template-columns: 1fr;
    }
    
    .ripe-data-label {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    #ripeModal .modal-header h2 {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* === Horizontal Rule === */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    margin: 3rem 0;
    box-shadow: 0 0 10px var(--glow-blue);
}

/* === Footer === */
.footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.footer p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer a {
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* === Mobile Menu (Old - Disabled) === */
/* Disabled in favor of new 1160px breakpoint mobile menu */

/* === Responsive Design === */
@media (max-width: 480px) {
    h2 {
        font-size: 1.75rem;
    }

    .logo img {
        height: 40px;
    }

    .container {
        padding: 1.5rem 1rem;
    }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Selection Styling === */
::selection {
    background: var(--accent-blue);
    color: var(--bg-dark);
    text-shadow: none;
}

::-moz-selection {
    background: var(--accent-blue);
    color: var(--bg-dark);
    text-shadow: none;
}

/* === Scrollbar Styling === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue-dark);
    border-radius: 6px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--glow-blue);
}

/* === Document/Agreement Pages === */

/* Document container */
.document {
    max-width: 900px;
}

/* Headings hierarchy for documents */
h3 {
    color: var(--accent-blue);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

h4 {
    color: var(--accent-blue-bright);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

h5 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Lists in documents */
ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

ul li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

ul li::marker {
    color: var(--accent-blue);
}

/* Pricing components */
.pricing-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-blue);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all var(--transition-medium);
}

.pricing-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-blue);
    border-color: var(--accent-blue);
}

.pricing-item h5 {
    margin-bottom: 0.5rem;
    color: var(--accent-blue-bright);
    font-size: 1.1rem;
}

.pricing-item .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin: 0;
    text-shadow: 0 0 10px var(--glow-blue);
}

/* Effective date */
.effective-date {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Emphasis */
em {
    color: var(--accent-blue-bright);
    font-style: italic;
}

/* Data grid layout for AS numbers and Networks */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.data-section {
    display: flex;
    flex-direction: column;
}

.data-section h2 {
    margin-bottom: 1rem;
}

.data-block {
    flex: 1;
}

/* Data table for AS numbers and Networks */
.data-table-wrapper {
    margin: 2rem 0;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--accent-blue-bright);
    border-bottom: 2px solid var(--accent-blue);
    font-size: 1.1rem;
}

.data-table th a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 0.5rem;
    transition: color var(--transition-fast);
}

.data-table th a:hover {
    color: var(--accent-blue);
}

.data-table td {
    padding: 0.5rem 1.5rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(74, 158, 255, 0.05);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table pre {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    display: inline-block;
}

.data-table pre a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1rem;
    margin: 0.25rem 0;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
    text-align: center;
    border-radius: 4px;
}

.data-table pre a:hover {
    color: var(--accent-blue-bright);
    border-left-color: var(--accent-blue);
    background: rgba(74, 158, 255, 0.1);
}

/* Pre-formatted text (forms, contact info) */
pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-blue);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre b,
pre strong {
    color: var(--accent-blue-bright);
    font-weight: 600;
}

/* Text alignment utilities */
.text-center {
    text-align: center;
    display: block;
    color: var(--accent-blue-bright);
}

pre .text-center,
pre strong.text-center {
    text-align: center;
    display: block;
    color: var(--accent-blue-bright);
}

/* === Members/Connected Page === */
.rix-ips {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0 2rem 0;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
}

.rix-ips div {
    color: var(--accent-blue-bright);
    padding: 0.5rem 1rem;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 4px;
}

.members-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.members-table thead {
    background: var(--bg-tertiary);
}

.members-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.members-table th.as-number,
.members-table th.network {
    text-align: center;
}

.members-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.members-table tbody tr:hover {
    background: rgba(74, 158, 255, 0.05);
}

.members-table tbody tr:last-child {
    border-bottom: none;
}

.members-table td {
    padding: 1rem;
    color: var(--text-secondary);
    vertical-align: top;
}

.members-table td.location {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    min-width: 100px;
}

.members-table td.location div {
    color: var(--accent-blue-bright);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.members-table td.location a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.8rem;
}

.members-table td.location a:hover {
    color: var(--accent-blue-bright);
}

.members-table td.location:contains("N/A"),
.members-table td:has-text("N/A") {
    color: var(--text-secondary);
    opacity: 0.5;
    font-style: italic;
}

.members-table td a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.members-table td a:hover {
    color: var(--accent-blue-bright);
    text-shadow: 0 0 10px var(--glow-blue);
}

.members-table td div {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.members-table td.network {
    text-align: center;
}

.members-table td.network a {
    font-size: 1.2rem;
    text-decoration: none;
}

/* ================================
   STATISTICS PAGE
   ================================ */

/* ================================
   STATISTICS PAGE
   ================================ */

/* Statistics sidebar */
.stats-sidebar {
	position: fixed;
	right: 20px;
	top: 100px;
	width: 250px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1.5rem;
	z-index: 100;
}

.stats-sidebar h3 {
	margin: 0 0 1rem 0;
	font-size: 1.1rem;
	color: var(--accent-blue);
	text-shadow: 0 0 10px var(--glow-blue);
}

.stats-nav {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.stats-nav a {
	padding: 0.5rem 0.75rem;
	color: var(--text-secondary);
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	font-size: 0.85rem;
	border-left: 3px solid transparent;
}

.stats-nav a:hover {
	background: var(--bg-medium);
	border-left-color: var(--accent-blue);
	color: var(--accent-blue);
	padding-left: 1rem;
}

.stats-nav a.active {
	background: var(--bg-medium);
	border-left-color: var(--accent-blue);
	color: var(--accent-blue);
}

/* Custom scrollbar for sidebar */
.stats-sidebar::-webkit-scrollbar {
	width: 6px;
}

.stats-sidebar::-webkit-scrollbar-track {
	background: var(--bg-medium);
	border-radius: 3px;
}

.stats-sidebar::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 3px;
}

.stats-sidebar::-webkit-scrollbar-thumb:hover {
	background: var(--accent-blue);
}

/* Statistics content area */

.stats-content h1,
.stats-content h2 {
	text-align: center;
}

.stats-content hr {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.stats-content .color-list {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	justify-content: center;
}

.as_item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	transition: all 0.3s ease;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.as_item:hover {
	border-color: var(--accent-blue);
	box-shadow: 0 0 20px var(--glow-blue);
}

.as_item img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	margin-top: 1rem;
	border: 1px solid var(--border);
	transition: all 0.3s ease;
}

.as_item img:hover {
	border-color: var(--accent-blue);
	transform: scale(1.01);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.row {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.mb-1 {
	margin-bottom: 1rem;
}

.pop {
	padding: 0.4rem 0.8rem;
	background: var(--bg-medium);
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 0.85rem;
	transition: all 0.3s ease;
	text-decoration: none;
	color: var(--text-secondary);
}

.pop:hover {
	background: var(--surface);
	border-color: var(--accent-blue);
	color: var(--accent-blue);
	box-shadow: 0 0 10px var(--glow-blue);
}

.color-list {
	list-style: none;
	padding: 1.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	margin: 2rem 0;
}

.color-list li {
	margin-bottom: 0.75rem;
	align-items: center;
}

.color-list li:last-child {
	margin-bottom: 0;
}

.color-list p {
	margin: 0;
}

.color {
	width: 40px;
	height: 20px;
	border: 1px solid var(--border);
	margin-right: 0.5rem;
	flex-shrink: 0;
}

.line {
	background: linear-gradient(180deg, transparent 40%, #0066cc 40%, #0066cc 60%, transparent 60%);
}

.disc {
	background: #00cc66;
	border-radius: 50%;
	width: 20px;
	height: 20px;
}

.blue {
	background-color: #0066cc;
}

.green {
	background-color: #00cc66;
}

.darkgreen {
	background-color: #008844;
}

/* ================================
   GRAPH PAGES (galag, etc.)
   ================================ */

.graph-section {
	margin-bottom: 3rem;
}

.graph-section h2 {
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
	color: var(--text-primary);
}

.graph-container {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1.5rem;
}

.graph-container img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid var(--border);
	flex: 1;
}

.graph-stats {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 250px;
}

.stat-row {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	background: var(--bg-medium);
	border-radius: 4px;
	border-left: 3px solid var(--accent-blue);
}

.stat-label {
	font-weight: 600;
	color: var(--text-secondary);
	min-width: 80px;
}

.stat-value {
	color: var(--accent-blue);
	font-weight: 500;
	text-align: right;
}

/* Responsive graph layout */
@media (max-width: 768px) {
	.graph-container {
		flex-direction: column;
	}

	.graph-stats {
		width: 100%;
		min-width: 0;
	}
}

/* Responsive statistics sidebar */
@media (max-width: 1200px) {
	.stats-sidebar {
		position: static;
		width: 100%;
		max-height: 300px;
		margin: 0 0 2rem 0;
		right: auto;
		top: auto;
	}

	.stats-content {
		margin-right: 0;
	}
}

@media (max-width: 768px) {
	.stats-sidebar {
		max-height: 200px;
		padding: 1rem;
	}

	.stats-sidebar h3 {
		font-size: 1rem;
	}

	.stats-nav a {
		font-size: 0.8rem;
		padding: 0.4rem 0.6rem;
	}
}

/* Responsive members table */
@media (max-width: 1200px) {
    .members-table {
        font-size: 0.9rem;
    }
    
    .members-table th,
    .members-table td {
        padding: 0.75rem;
    }
    
    .members-table td.location {
        min-width: 80px;
    }
}

@media (max-width: 768px) {
    .rix-ips {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .members-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .members-table th,
    .members-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Document version info */
.document-version {
    text-align: right;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Strong/bold text emphasis */
b,
strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Autogenerated timestamp */
.autogenerated {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
    text-align: center;
}

/* Responsive data grid */
@media (max-width: 768px) {
    .data-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ================================
   ORDER PAGE
   ================================ */

.hidden {
	display: none !important;
}

.order-page {
	max-width: 900px;
	margin: 0 auto;
}

.product-header {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 2rem;
	margin-bottom: 2rem;
}

.product-header h1 {
	color: var(--accent-blue);
	margin-bottom: 0.5rem;
	font-size: 2rem;
}

.product-header .product-description {
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
}

.product-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

.spec-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-secondary);
}

.spec-item strong {
	color: var(--text-primary);
}

.order-form {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 2rem;
}

.form-section {
	margin-bottom: 2rem;
}

.form-section h3 {
	color: var(--text-primary);
	margin-bottom: 1rem;
	font-size: 1.3rem;
	border-bottom: 2px solid var(--accent-blue);
	padding-bottom: 0.5rem;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	color: var(--text-primary);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.form-group label.required::after {
	content: " *";
	color: #ff4444;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 0.75rem;
	background: var(--bg-medium);
	border: 1px solid var(--border);
	border-radius: 4px;
	color: var(--text-primary);
	font-size: 1rem;
	font-family: inherit;
}

.form-group select option {
	background: var(--bg-dark);
	color: var(--text-primary);
	padding: 0.5rem;
}

.form-group select option:hover,
.form-group select option:checked {
	background: var(--accent-blue);
	color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--accent-blue);
	box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.form-group textarea {
	min-height: 100px;
	resize: vertical;
}

.form-group small {
	display: block;
	color: var(--text-secondary);
	margin-top: 0.25rem;
	font-size: 0.875rem;
}

.contract-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.contract-option {
	position: relative;
}

.contract-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.contract-card {
	display: block;
	padding: 1.5rem;
	background: var(--bg-medium);
	border: 2px solid var(--border);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.contract-option input[type="radio"]:checked + .contract-card {
	border-color: var(--accent-blue);
	background: rgba(74, 158, 255, 0.1);
	box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.contract-card:hover {
	border-color: var(--accent-blue);
}

.contract-card .duration {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--accent-blue);
	margin-bottom: 0.5rem;
}

.contract-card .price {
	font-size: 1.1rem;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.contract-card .total {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.contract-card .discount {
	display: inline-block;
	background: #00cc66;
	color: white;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-top: 0.5rem;
}

.checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
	width: auto;
	margin-top: 0.25rem;
}

.checkbox-group label {
	margin-bottom: 0;
}

.order-summary {
	background: var(--bg-medium);
	border: 2px solid var(--accent-blue);
	border-radius: 8px;
	padding: 1.5rem;
	margin-top: 2rem;
}

.order-summary h4 {
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	color: var(--text-secondary);
}

.summary-row.hidden {
	display: none;
}

.summary-row.total {
	border-top: 2px solid var(--border);
	margin-top: 0.5rem;
	padding-top: 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
}

.summary-row.total .amount {
	color: var(--accent-blue);
}

.summary-row.vat-note {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-top: 0.5rem;
	justify-content: center;
}

.form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
}

.btn {
	padding: 1rem 2rem;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.btn-primary {
	background: var(--accent-blue);
	color: white;
	flex: 1;
}

.btn-primary:hover {
	background: #3a8ee5;
	box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.btn-secondary {
	background: transparent;
	color: var(--text-primary);
	border: 2px solid var(--border);
}

.btn-secondary:hover {
	border-color: var(--accent-blue);
	color: var(--accent-blue);
}

/* Responsive order page */
@media (max-width: 768px) {
	.contract-options {
		grid-template-columns: 1fr;
	}

	.form-actions {
		flex-direction: column;
	}

	.product-header h1 {
		font-size: 1.5rem;
	}

	.order-page {
		padding: 1rem;
	}

	.product-header,
	.order-form {
		padding: 1.5rem;
	}
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft), 0 0 15px var(--glow-blue);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--transition-medium), 
                visibility var(--transition-medium),
                transform var(--transition-medium),
                background var(--transition-fast),
                box-shadow var(--transition-fast);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================================
   CONTACT PAGE
   ================================ */

.contact-page {
	max-width: 1200px;
	margin: 0 auto;
}

.contact-page h1 {
	margin-bottom: 1rem;
}

.page-intro {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin-bottom: 3rem;
	line-height: 1.6;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	margin-bottom: 4rem;
	align-items: start;
}

/* ================================
   CONNECT AGREEMENT FORM
   ================================ */

.agreement-form {
	margin: 2rem 0;
}

.agreement-form h3,
.agreement-form h4 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: var(--accent-blue);
}

.agreement-form h4 {
	font-size: 1.1rem;
	margin-top: 1.5rem;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group.full-width {
	grid-column: 1 / -1;
}

.form-group label {
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
	padding: 0.75rem;
	background: var(--bg-dark);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	color: var(--text-primary);
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--accent-blue);
}

.form-group select {
	cursor: pointer;
}

.form-group select option {
	background: var(--bg-dark);
	color: var(--text-primary);
}

.form-group textarea {
	resize: vertical;
	min-height: 100px;
	font-family: inherit;
}

.form-group small {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	margin: 1rem 0;
	transition: background 0.3s ease;
}

.checkbox-label:hover {
	background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"] {
	margin-top: 0.25rem;
	width: 18px;
	height: 18px;
	cursor: pointer;
	flex-shrink: 0;
}

.checkbox-label span {
	line-height: 1.6;
	color: var(--text-primary);
}

.form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text-primary);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* Responsive agreement form */
@media (max-width: 768px) {
	.form-grid {
		grid-template-columns: 1fr;
	}
	
	.form-actions {
		flex-direction: column;
	}
	
	.form-actions .btn {
		width: 100%;
	}
}


.contact-info h2,
.contact-form-section h2 {
	color: var(--accent-blue);
	font-size: 1.5rem;
	margin-bottom: 2rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--accent-blue);
}

.contact-info,
.contact-form-section {
	height: 100%;
}

.info-block {
	margin-bottom: 1.5rem;
	padding: 1.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.info-block:last-child {
	margin-bottom: 0;
}

.info-block h3 {
	color: var(--text-primary);
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
}

.info-block p {
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
	line-height: 1.6;
}

.info-block a {
	color: var(--accent-blue);
	text-decoration: none;
	transition: color 0.3s ease;
}

.info-block a:hover {
	color: var(--accent-blue-bright);
	text-decoration: underline;
}

.info-note {
	font-size: 0.9rem;
	color: var(--text-secondary);
	opacity: 0.8;
	margin-top: 0.25rem;
}

.location-list {
	list-style: none;
	padding: 0;
}

.location-list li {
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border);
}

.location-list li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.location-list strong {
	display: block;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.location-list span {
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.contact-form-section {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
}

.contact-form {
	flex: 1;
}

.contact-form .form-group {
	margin-bottom: 1.5rem;
}

.contact-form .form-group:last-of-type {
	margin-bottom: 0;
}

.contact-form .form-actions {
	margin-top: 2rem;
}

.contact-resources {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 2px solid var(--border);
}

.contact-resources h2 {
	color: var(--text-primary);
	font-size: 1.5rem;
	margin-bottom: 2rem;
	text-align: center;
}

.resource-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}

.resource-card {
	padding: 1.5rem;
	background: var(--surface);
	border: 2px solid var(--border);
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.resource-card:hover {
	border-color: var(--accent-blue);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

.resource-card h3 {
	color: var(--accent-blue);
	font-size: 1.2rem;
	margin-bottom: 0.75rem;
	margin-top: 0;
}

.resource-card p {
	color: var(--text-secondary);
	line-height: 1.6;
	margin: 0;
	flex: 1;
}

/* Responsive contact page */
@media (max-width: 968px) {
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.contact-form-section {
		order: 2;
	}

	.contact-info {
		order: 1;
	}
}

@media (max-width: 768px) {
	.contact-page {
		padding: 1rem;
	}

	.page-intro {
		font-size: 1rem;
		margin-bottom: 2rem;
	}

	.resource-grid {
		grid-template-columns: 1fr;
	}

	.info-block {
		padding: 1rem;
	}

	.contact-form-section {
		padding: 1.5rem;
	}

	.contact-resources {
		margin-top: 3rem;
		padding-top: 2rem;
	}
}

.back-to-top:hover {
    background: var(--accent-blue-bright);
    box-shadow: var(--shadow-soft), 0 0 25px var(--glow-blue-strong);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Responsive back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ================================
   TRAFFIC GRAPHS (Canvas)
   ================================ */

.color-list {
	margin: 2rem 0;
}

.color-list .row {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.color-list .col {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.color.disc {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex-shrink: 0;
}

.color.green {
	background: linear-gradient(135deg, #00c864, #00ff88);
	box-shadow: 0 0 10px rgba(0, 200, 100, 0.5);
}

.color.blue {
	background: linear-gradient(135deg, #0064ff, #00a0ff);
	box-shadow: 0 0 10px rgba(0, 100, 255, 0.5);
}

.color.purple {
	background: linear-gradient(135deg, #9b59b6, #c084fc);
	box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.graph-section {
	margin: 3rem 0;
}

.graph-section h2 {
	margin-bottom: 1.5rem;
	color: var(--accent-blue);
}

.traffic-graph-container {
	background: rgba(0, 0, 0, 0.4);
	border-radius: 12px;
	padding: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.traffic-canvas {
	width: 100%;
	height: 400px;
	display: block;
	margin-bottom: 1.5rem;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.3);
}

.graph-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
	font-size: 0.875rem;
	color: var(--text-secondary);
	font-weight: 500;
}

.stat-value {
	font-size: 1rem;
	color: var(--accent-blue);
	font-weight: 600;
}

/* Responsive traffic graphs */
@media (max-width: 968px) {
	.traffic-canvas {
		height: 300px;
	}
	
	.traffic-graph-container {
		padding: 1.5rem;
	}
	
	.graph-stats {
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
	}
}

@media (max-width: 580px) {
	.traffic-canvas {
		height: 250px;
	}
	
	.traffic-graph-container {
		padding: 1rem;
	}
	
	.graph-stats {
		grid-template-columns: 1fr;
	}
	
	.stat-row {
		padding: 0.5rem 0.75rem;
	}
	
	.stat-label {
		font-size: 0.8rem;
	}
	
	.stat-value {
		font-size: 0.9rem;
	}
}

/* === Client Portal Page === */
.portal-page {
	padding: 2rem 1rem;
	max-width: 1400px;
	margin: 0 auto;
}

.portal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding: 2rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.portal-welcome h1 {
	font-size: 2.5rem;
	color: var(--accent-blue-bright);
	margin-bottom: 0.5rem;
	text-shadow: 0 0 15px var(--glow-blue);
}

.portal-subtitle {
	color: var(--text-secondary);
	font-size: 1.1rem;
}

.portal-user {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.user-info {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.user-company {
	font-weight: 600;
	color: var(--text-primary);
	font-size: 1.1rem;
}

.user-id {
	color: var(--accent-blue);
	font-size: 0.9rem;
	font-weight: 500;
}

.btn-logout {
	padding: 0.75rem 1.5rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition-medium);
}

.btn-logout:hover {
	background: var(--accent-blue-dark);
	border-color: var(--accent-blue);
	box-shadow: 0 0 15px var(--glow-blue);
}

/* Portal Stats */
.portal-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.stat-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 1.5rem;
	display: flex;
	gap: 1.5rem;
	align-items: center;
	transition: all var(--transition-medium);
}

.stat-card:hover {
	border-color: var(--accent-blue);
	box-shadow: 0 0 20px var(--glow-blue);
	transform: translateY(-2px);
}

.stat-icon {
	color: var(--accent-blue);
	display: flex;
	align-items: center;
	justify-content: center;
}

.stat-content {
	flex: 1;
}

.stat-card .stat-label {
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.stat-card .stat-value {
	color: var(--text-primary);
	font-size: 1.8rem;
	font-weight: 700;
}

.status-active {
	color: #4caf50 !important;
}

.status-suspended {
	color: #ff9800 !important;
}

.status-banned {
	color: #f44336 !important;
}

.status-pending {
	color: #2196f3 !important;
}

/* Portal Tabs */
.portal-tabs {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--border-color);
	flex-wrap: wrap;
}

.tab-button {
	padding: 1rem 2rem;
	background: transparent;
	border: none;
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all var(--transition-medium);
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}

.tab-button:hover {
	color: var(--accent-blue-bright);
}

.tab-button.active {
	color: var(--accent-blue-bright);
	border-bottom-color: var(--accent-blue);
}

/* Tab Content */
.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

.tab-description {
	color: var(--text-secondary);
	margin-bottom: 2rem;
	font-size: 1.1rem;
}

/* Services Tab */
.services-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.services-header h2 {
	color: var(--accent-blue-bright);
	font-size: 2rem;
}

.services-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.service-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 1.5rem;
	transition: all var(--transition-medium);
}

.service-card:hover {
	border-color: var(--accent-blue);
	box-shadow: 0 0 15px var(--glow-blue);
}

.service-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.service-title {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.service-title h3 {
	color: var(--text-primary);
	font-size: 1.4rem;
}

.service-status {
	padding: 0.4rem 1rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
}

.service-status.active {
	background: rgba(76, 175, 80, 0.2);
	color: #4caf50;
	border: 1px solid rgba(76, 175, 80, 0.4);
}

.service-status.pending {
	background: rgba(33, 150, 243, 0.1);
	color: #2196f3;
	border: 1px solid rgba(33, 150, 243, 0.3);
}

.service-status.suspended {
	background: rgba(255, 152, 0, 0.1);
	color: #ff9800;
	border: 1px solid rgba(255, 152, 0, 0.3);
}

.service-status.terminated {
	background: rgba(244, 67, 54, 0.1);
	color: #f44336;
	border: 1px solid rgba(244, 67, 54, 0.3);
}

.service-actions {
	display: flex;
	gap: 0.5rem;
}

.btn-icon {
	padding: 0.5rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--accent-blue);
	cursor: pointer;
	transition: all var(--transition-medium);
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-icon:hover {
	background: var(--accent-blue-dark);
	border-color: var(--accent-blue);
	box-shadow: 0 0 10px var(--glow-blue);
}

.btn-icon.rotated svg {
	transform: rotate(180deg);
}

.service-info {
	margin-bottom: 1rem;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.info-label {
	color: var(--text-secondary);
	font-size: 0.85rem;
	font-weight: 500;
}

.info-value {
	color: var(--text-primary);
	font-size: 1.05rem;
	font-weight: 600;
}

.service-details {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-color);
}

.service-details.hidden {
	display: none;
}

.details-section {
	margin-bottom: 1.5rem;
}

.details-section h4 {
	color: var(--accent-blue-bright);
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.details-section ul {
	list-style: none;
	padding: 0;
}

.details-section li {
	color: var(--text-secondary);
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.details-section li:last-child {
	border-bottom: none;
}

.usage-stats {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.usage-item {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem;
	background: var(--bg-tertiary);
	border-radius: 6px;
	border: 1px solid var(--border-color);
}

.usage-item span:first-child {
	color: var(--text-secondary);
}

.usage-item span:last-child {
	color: var(--accent-blue);
	font-weight: 600;
}

/* Service Options */
.service-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.service-option-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	transition: all var(--transition-medium);
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
}

.service-option-card:hover {
	border-color: var(--accent-blue);
	box-shadow: 0 0 20px var(--glow-blue);
	transform: translateY(-5px);
}

.option-icon {
	color: var(--accent-blue);
	margin-bottom: 1.5rem;
}

.service-option-card h3 {
	color: var(--text-primary);
	font-size: 1.4rem;
	margin-bottom: 1rem;
}

.service-option-card p {
	color: var(--text-secondary);
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.option-price {
	color: var(--accent-blue);
	font-weight: 700;
	font-size: 1.1rem;
}

/* Billing & Invoices */
.billing-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.billing-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
}

.billing-card h3 {
	color: var(--text-secondary);
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

.balance-amount {
	color: var(--accent-blue-bright);
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.billing-card p {
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
}

.payment-info {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	color: var(--text-primary);
}

.payment-info svg {
	color: var(--accent-blue);
}

/* Invoice Table */
.invoices-list {
	margin-top: 2rem;
}

.invoices-list h3 {
	color: var(--accent-blue-bright);
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.invoice-table-wrapper {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow-x: auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.invoice-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 800px;
}

.invoice-table thead {
	background: var(--bg-tertiary);
}

.invoice-table th {
	padding: 1.25rem 1.5rem;
	text-align: left;
	color: var(--text-secondary);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.85rem;
	white-space: nowrap;
	border-bottom: 2px solid var(--border-color);
}

.invoice-table td {
	padding: 1.25rem 1.5rem;
	color: var(--text-primary);
	vertical-align: middle;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.invoice-table tbody tr {
	transition: background 0.2s ease;
}

.invoice-table tbody tr:hover {
	background: var(--bg-tertiary);
}

.status-badge {
	padding: 0.4rem 1rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	display: inline-block;
}

.status-badge.paid {
	background: rgba(76, 175, 80, 0.2);
	color: #4caf50;
	border: 1px solid rgba(76, 175, 80, 0.4);
}

.status-badge.pending {
	background: rgba(255, 152, 0, 0.2);
	color: #ff9800;
	border: 1px solid rgba(255, 152, 0, 0.4);
}

.btn-small {
	padding: 0.4rem 0.8rem;
	font-size: 0.85rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--accent-blue);
	cursor: pointer;
	transition: all var(--transition-fast);
	margin-right: 0.5rem;
}

.btn-small:hover {
	background: var(--accent-blue-dark);
	border-color: var(--accent-blue);
}

/* Account Settings */
.settings-section {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	margin-bottom: 2rem;
}

.settings-section h3 {
	color: var(--accent-blue-bright);
	font-size: 1.4rem;
	margin-bottom: 1.5rem;
}

.settings-form {
	max-width: 600px;
}

.settings-form .form-group {
	margin-bottom: 1.5rem;
}

.settings-form label {
	display: block;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form input[type="tel"] {
	width: 100%;
	padding: 0.75rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	font-size: 1rem;
}

.settings-form input:focus {
	outline: none;
	border-color: var(--accent-blue);
	box-shadow: 0 0 10px var(--glow-blue);
}

.settings-form input[readonly] {
	background: rgba(255, 255, 255, 0.02);
	cursor: not-allowed;
	color: var(--text-secondary);
}

.settings-form .checkbox-group {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.settings-form .checkbox-group input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.settings-form .checkbox-group label {
	margin: 0;
	cursor: pointer;
	color: var(--text-primary);
}

/* Portal Link in Menu */
.portal-link {
	background: var(--accent-blue-dark) !important;
	border-radius: 6px !important;
	padding: 0.5rem 1rem !important;
}

.portal-link:hover {
	background: var(--accent-blue) !important;
	box-shadow: 0 0 10px var(--glow-blue) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.invoice-table th,
	.invoice-table td {
		padding: 1rem 1.25rem;
		font-size: 0.9rem;
	}
}

@media (max-width: 968px) {
	.portal-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.portal-user {
		width: 100%;
		justify-content: space-between;
	}
	
	.portal-stats {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
	
	.info-grid {
		grid-template-columns: 1fr;
	}
	
	.invoice-table th,
	.invoice-table td {
		padding: 0.75rem 1rem;
		font-size: 0.85rem;
	}
}

@media (max-width: 768px) {
	.invoice-table {
		min-width: 600px;
	}
}

@media (max-width: 580px) {
	.portal-welcome h1 {
		font-size: 1.8rem;
	}
	
	.portal-tabs {
		gap: 0.5rem;
	}
	
	.tab-button {
		padding: 0.75rem 1rem;
		font-size: 0.9rem;
	}
	
	.stat-card {
		padding: 1rem;
	}
	
	.service-card {
		padding: 1rem;
	}
	
	.service-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
}

/* === Invoice Page === */
.invoice-page {
	padding: 2rem 1rem;
	max-width: 1200px;
	margin: 0 auto;
}

.invoice-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.action-buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.action-buttons .btn {
	min-height: 44px;
}

.invoice-container {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 3rem;
	box-shadow: var(--shadow-soft);
}

/* Invoice Header */
.invoice-header-section {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid var(--border-color);
	flex-wrap: wrap;
	gap: 2rem;
}

.invoice-logo {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.company-info h1 {
	font-size: 1.4rem;
	color: var(--accent-blue-bright);
	margin-bottom: 0.25rem;
	letter-spacing: 0.5px;
}

.company-info p {
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.invoice-title-section {
	text-align: right;
}

.invoice-title {
	font-size: 2.5rem;
	color: var(--accent-blue-bright);
	margin-bottom: 1rem;
	text-shadow: 0 0 15px var(--glow-blue);
}

.invoice-meta {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.meta-item {
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
}

.meta-label {
	color: var(--text-secondary);
	font-weight: 600;
}

.meta-value {
	color: var(--text-primary);
	font-weight: 600;
	min-width: 150px;
	text-align: right;
}

.due-date {
	color: var(--accent-blue);
}

/* Billing Information */
.billing-info-section {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 3rem;
	margin-bottom: 3rem;
}

.billing-column h3 {
	color: var(--accent-blue-bright);
	font-size: 1.2rem;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.address-block {
	color: var(--text-primary);
	line-height: 1.8;
	font-size: 0.95rem;
}

.address-block strong {
	color: var(--accent-blue);
}

/* Services Table */
.invoice-services {
	margin-bottom: 3rem;
}

.invoice-services h3 {
	color: var(--accent-blue-bright);
	font-size: 1.3rem;
	margin-bottom: 1.5rem;
}

.services-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bg-tertiary);
	border-radius: 8px;
	overflow: hidden;
}

.services-table-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 -1rem;
	padding: 0 1rem;
}

.services-table thead {
	background: var(--bg-dark);
}

.services-table th {
	padding: 1rem;
	text-align: left;
	color: var(--accent-blue-bright);
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid var(--border-color);
}

.services-table td {
	padding: 1.25rem 1rem;
	color: var(--text-primary);
	border-bottom: 1px solid var(--border-color);
	vertical-align: top;
}

.services-table tbody tr:last-child td {
	border-bottom: none;
}

.services-table tbody tr:hover {
	background: rgba(74, 158, 255, 0.05);
}

.service-detail {
	color: var(--text-secondary);
	font-size: 0.85rem;
	display: block;
	margin-top: 0.25rem;
}

.text-right {
	text-align: right;
}

/* Invoice Summary */
.invoice-summary-section {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 3rem;
	margin-bottom: 3rem;
	align-items: start;
}

.summary-notes h4 {
	color: var(--accent-blue-bright);
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
}

.summary-notes p {
	color: var(--text-secondary);
	line-height: 1.8;
	font-size: 0.9rem;
}

.summary-notes a {
	color: var(--accent-blue);
	text-decoration: none;
}

.summary-notes a:hover {
	text-decoration: underline;
}

.summary-totals {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1.5rem;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem 0;
	color: var(--text-primary);
	font-size: 1rem;
}

.summary-row span:first-child {
	color: var(--text-secondary);
}

.summary-row span:last-child {
	font-weight: 600;
}

.summary-row.subtotal-row {
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	margin: 0.5rem 0;
	padding: 1rem 0;
}

.summary-row.total-row {
	border-top: 2px solid var(--accent-blue);
	margin-top: 0.5rem;
	padding-top: 1rem;
}

.summary-row.total-row span {
	font-size: 1.3rem;
	font-weight: 700;
}

.total-amount {
	color: var(--accent-blue-bright);
	text-shadow: 0 0 10px var(--glow-blue);
}

.discount {
	color: #4caf50;
}

/* Invoice Footer */
.invoice-footer-section {
	padding-top: 2rem;
	border-top: 2px solid var(--border-color);
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-column h4 {
	color: var(--accent-blue-bright);
	font-size: 1rem;
	margin-bottom: 0.75rem;
}

.footer-column p {
	color: var(--text-secondary);
	line-height: 1.8;
	font-size: 0.9rem;
}

.payment-status {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	background: var(--bg-dark);
	border-radius: 6px;
	border: 1px solid var(--border-color);
	margin-top: 0.5rem;
}

.payment-status.pending {
	border-color: #ff9800;
}

.payment-status.pending svg {
	color: #ff9800;
}

.payment-status.pending span {
	color: #ff9800;
	font-weight: 700;
	font-size: 1rem;
}

.payment-status.paid {
	border-color: #4caf50;
}

.payment-status.paid svg {
	color: #4caf50;
}

.payment-status.paid span {
	color: #4caf50;
	font-weight: 700;
	font-size: 1rem;
}

.invoice-footer-note {
	text-align: center;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
}

.invoice-footer-note p {
	color: var(--text-secondary);
}

.invoice-footer-note p:first-child {
	color: var(--accent-blue-bright);
	font-size: 1.1rem;
}

/* Print Styles */
@media print {
	.no-print {
		display: none !important;
	}
	
	body {
		background: white;
	}
	
	.invoice-container {
		background: white;
		border: none;
		box-shadow: none;
		padding: 0;
	}
	
	.invoice-page {
		padding: 0;
	}
	
	.services-table,
	.summary-totals {
		background: white;
	}
	
	.invoice-header-section,
	.invoice-footer-section {
		border-color: #ccc;
	}
	
	* {
		color: #000 !important;
		text-shadow: none !important;
	}
	
	.invoice-title {
		color: #333 !important;
	}
	
	.accent-blue,
	.accent-blue-bright {
		color: #2b7bd9 !important;
	}
}

/* Responsive Design */
@media (max-width: 968px) {
	.invoice-page {
		padding: 1.5rem 1rem;
	}
	
	.invoice-container {
		padding: 2rem 1.5rem;
	}
	
	.invoice-header-section {
		flex-direction: column;
		gap: 1.5rem;
	}
	
	.invoice-title-section {
		text-align: left;
	}
	
	.meta-item {
		justify-content: flex-start;
	}
	
	.meta-value {
		text-align: left;
	}
	
	.billing-info-section {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	
	.invoice-summary-section {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	
	.summary-totals {
		order: -1;
	}
	
	.footer-columns {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (max-width: 768px) {
	/* Stack table for mobile - show as cards */
	.services-table-wrapper {
		margin: 0;
		padding: 0;
		overflow-x: visible;
	}
	
	.services-table thead {
		display: none;
	}
	
	.services-table,
	.services-table tbody {
		display: block;
		width: 100%;
	}
	
	.services-table tr {
		display: block;
		margin-bottom: 1.5rem;
		background: var(--bg-dark);
		border: 1px solid var(--border-color);
		border-radius: 8px;
		padding: 1rem;
		width: 100%;
	}
	
	.services-table td {
		display: flex;
		padding: 0.75rem 0;
		border: none;
		text-align: left !important;
		justify-content: space-between;
		align-items: flex-start;
		gap: 1rem;
	}
	
	.services-table td:before {
		content: attr(data-label);
		flex-shrink: 0;
		width: 120px;
		font-weight: 600;
		color: var(--accent-blue);
		text-transform: uppercase;
		font-size: 0.75rem;
		letter-spacing: 0.5px;
	}
	
	.services-table td:first-child {
		display: block;
		padding-bottom: 1rem;
		border-bottom: 1px solid var(--border-color);
		margin-bottom: 0.75rem;
	}
	
	.services-table td:first-child:before {
		display: none;
	}
	
	.services-table tbody tr:hover {
		background: var(--bg-dark);
	}
}

@media (max-width: 580px) {
	.invoice-page {
		padding: 1rem 0.5rem;
	}
	
	.invoice-container {
		padding: 1.5rem 1rem;
		border-radius: 8px;
	}
	
	.invoice-title {
		font-size: 1.75rem;
	}
	
	.invoice-logo {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
	
	.invoice-logo img {
		height: 40px !important;
	}
	
	.company-info h1 {
		font-size: 1.1rem;
	}
	
	.invoice-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}
	
	.action-buttons {
		flex-direction: column;
		width: 100%;
	}
	
	.action-buttons .btn {
		width: 100%;
		justify-content: center;
	}
	
	.billing-info-section,
	.invoice-summary-section {
		gap: 1.5rem;
	}
	
	.summary-row {
		font-size: 0.9rem;
	}
	
	.summary-row.total-row span {
		font-size: 1.15rem;
	}
	
	.summary-totals {
		padding: 1.25rem;
	}
	
	.services-table td:before {
		width: 100px;
		font-size: 0.7rem;
	}
	
	.invoice-services h3 {
		font-size: 1.1rem;
	}
	
	.summary-notes h4 {
		font-size: 1rem;
	}
	
	.summary-notes p {
		font-size: 0.85rem;
	}
}
