@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #080B11;
    --bg-secondary: rgba(10, 15, 30, 0.45);
    --bg-navbar: rgba(8, 11, 17, 0.94);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --accent-orange: #F59E0B;
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables Override */
[data-theme="light"] {
    --bg-primary: #f1f5f9; /* Slate 100 */
    --bg-secondary: rgba(255, 255, 255, 0.7); /* Translucent White */
    --bg-navbar: rgba(241, 245, 249, 0.94);
    --border-color: rgba(15, 23, 42, 0.08); /* Slate 900 border */
    --border-hover: rgba(15, 23, 42, 0.16);
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --card-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 10% 20%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(59, 130, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-secondary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-hover);
}

/* Typography & Layouts */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Hide Scrollbar Completely */
::-webkit-scrollbar {
    display: none !important;
}
html, body {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

/* Premium Toggle Button */
.vpn-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.vpn-toggle-btn.active {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #10B981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.vpn-toggle-btn i {
    transition: transform 0.2s;
}

.vpn-toggle-btn.active i {
    transform: scale(1.1);
}

/* Searchable Select Custom Styles */
.searchable-select-option {
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.searchable-select-option:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.searchable-select-option.selected {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255,255,255,0.02);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--accent-red);
    color: white;
}

/* Forms and Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* Fix dropdown options visibility in dark mode */
.form-select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-shield {
    background: var(--gradient-primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-links .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    margin-right: 0.5rem;
    outline: none;
}

.nav-links .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Landing Page Hero */
.hero {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-card {
    padding: 2.5rem;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    flex: 1;
    margin-top: 0 !important;
}

.sidebar {
    width: 260px;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-secondary);
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.sidebar-btn:hover, .sidebar-btn.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sidebar-btn.active {
    border-left: 3px solid var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
}

.main-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
}

/* Dashboard Cards & Layouts */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-footer {
    font-size: 0.75rem;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-footer.descending {
    color: var(--accent-red);
}

/* Analytics Graph Panels */
.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    padding: 1.5rem;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-container {
    position: relative;
    flex: 1;
    width: 100%;
    height: 240px; /* Bounded height prevents overflow of canvas */
}

/* Lists and Tables */
.links-section {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.link-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.link-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.link-urls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.link-short {
    color: var(--accent-blue);
    font-weight: 500;
    text-decoration: none;
}

.link-rules {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.badge-green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.badge-red { background: rgba(239, 68, 68, 0.1); color: var(--accent-red); }
.badge-orange { background: rgba(245, 158, 11, 0.1); color: var(--accent-orange); }

.link-actions {
    display: flex;
    gap: 0.75rem;
}

/* Custom Tag / Multiselect styling */
.country-selector {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.country-option {
    padding: 0.35rem 0.65rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.country-option:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.country-option.selected {
    background: var(--accent-purple) !important;
    border-color: var(--accent-purple) !important;
    color: #ffffff !important;
}

/* Auth / Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 450px;
    padding: 2.5rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: white;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10000;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transform: translateX(100px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.toast-error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

/* Tab Switcher */
.tab-container {
    display: none;
}

.tab-container.active {
    display: block;
}

/* Block page styles */
.block-container {
    max-width: 500px;
    margin: auto;
    text-align: center;
    padding: 3rem;
    margin-top: 10vh;
}

.block-icon {
    font-size: 4rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    }
}

.block-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.block-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.block-details {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    font-size: 0.85rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.block-detail-row {
    display: flex;
    justify-content: space-between;
}

.block-detail-label {
    color: var(--text-secondary);
}

.block-detail-value {
    font-weight: 600;
}

/* Responsive adjustments */
@media(max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    .hero-content h1 {
        font-size: 2.75rem;
    }
}

/* Checkbox Hamburger Menu */
.menu-toggle-checkbox {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.mobile-menu-toggle:hover {
    color: var(--accent-blue);
}

@media(max-width: 768px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 1rem 1.5rem;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-navbar);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        gap: 1.25rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(12px);
        align-items: stretch;
        z-index: 999;
    }
    .menu-toggle-checkbox:checked ~ .nav-links {
        display: flex !important;
        animation: slideDown 0.25s ease-out forwards;
    }
    .nav-links a {
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1rem;
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }
    .nav-links .theme-toggle-btn {
        margin: 0.5rem auto !important;
    }
    .nav-links .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.65rem !important;
        font-size: 0.95rem !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    
    /* Dashboard Responsive Sidebar & Layout */
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        overflow-x: auto;
        padding: 0.75rem 1rem;
        white-space: nowrap;
        gap: 0.75rem;
        position: sticky;
        top: 64px;
        height: auto;
        z-index: 100;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        margin-top: 0 !important;
        border-top: none !important;
        padding-top: 0.5rem !important;
        display: inline-flex;
    }
    #sidebar-btn-admin {
        margin-top: 0 !important;
        border-top: none !important;
        padding-top: 0.5rem !important;
        display: inline-flex;
    }
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    /* Responsive Link Items */
    .link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    .link-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Article Page Layouts */
    .article-container {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    .article-header h1 {
        font-size: 2rem;
    }
    .article-cta {
        padding: 2rem 1rem;
    }
    
    /* Modal adjustment */
    .modal-content {
        width: 92%;
        padding: 1.5rem;
    }
}

@media(max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .hero-card {
        padding: 1.5rem 1rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    .section-header .btn {
        width: 100%;
    }
}

/* Custom Range Input Styling (Prevents right-gap at 100) */
.form-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    margin: 1rem 0;
    cursor: pointer;
    transition: background 0.3s;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
    transition: transform 0.2s;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.form-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
    transition: transform 0.2s;
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.25);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    margin-right: 0.5rem;
}
.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}
[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Blog Component Styles */
.blog-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 3rem 2rem 0 2rem;
}
.blog-title-section {
    text-align: center;
    margin-bottom: 4rem;
}
.blog-title-section h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.blog-title-section p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.1rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
.blog-card {
    padding: 2.25rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}
.blog-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}
.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: auto;
}

/* Single Blog Post Page Styles */
.article-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem 2rem 0 2rem;
}
.back-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}
.back-link:hover {
    opacity: 0.8;
    transform: translateX(-4px);
}
.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.article-content {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 1.05rem;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.article-content ul, .article-content ol {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.article-cta {
    margin-top: 4rem;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

/* Changelog Styles */
.changelog-container {
    max-width: 850px;
    margin: 4rem auto;
    padding: 0 2rem;
}
.changelog-timeline {
    position: relative;
    padding-left: 2.5rem;
    border-left: 2px solid var(--accent-blue);
    margin-bottom: 3rem;
}
.changelog-timeline::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.changelog-header-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.changelog-version {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}
.changelog-badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    padding: 0.25rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
}
.changelog-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive Grid Utility Classes */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.grid-2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .grid-2col {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

/* Fixed Navbar Sibling Offset */
.navbar + * {
    margin-top: 76px !important;
}
@media (max-width: 768px) {
    .navbar + * {
        margin-top: 64px !important;
    }
    
    /* Mobile Layout Safety Adjustments to prevent Horizontal Overflow */
    body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .hero {
        padding: 2rem 1.25rem !important;
        gap: 2rem !important;
    }
    
    #how-it-works, #features, #pricing {
        padding: 0 1.25rem !important;
        margin: 4rem auto !important;
    }
    
    .glass-panel {
        padding: 1.5rem !important;
    }
    
    input, select, textarea, button {
        max-width: 100% !important;
    }
}

/* Mobile Ordering for Sandbox & Responsive Table Transformation */
.hero-title {
    font-size: 3.25rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.hero-buttons-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.3 !important;
    }
    .hero {
        flex-direction: column !important;
    }
    #landing-sandbox-container {
        order: -1 !important;
        margin-bottom: 1.5rem !important;
    }
    .hero-content {
        order: 1 !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.35 !important;
    }
    .hero-buttons-container {
        flex-direction: column !important;
        width: 100% !important;
    }
    .hero-buttons-container a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    #sandbox table {
        min-width: unset !important;
        width: 100% !important;
    }
    
    #sandbox table, 
    #sandbox thead, 
    #sandbox tbody, 
    #sandbox th, 
    #sandbox td, 
    #sandbox tr {
        display: block !important;
        width: 100% !important;
    }
    #sandbox thead {
        display: none !important;
    }
    #sandbox tr {
        margin-bottom: 1.25rem !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        padding: 0.75rem 1rem !important;
        box-shadow: var(--card-shadow) !important;
    }
    #sandbox td {
        padding: 0.4rem 0 !important;
        border: none !important;
        text-align: left !important;
    }
    #sandbox td::before {
        content: attr(data-label) ": ";
        font-weight: 700 !important;
        color: var(--text-secondary) !important;
        display: block !important;
        font-size: 0.75rem !important;
        text-transform: uppercase !important;
        margin-bottom: 0.15rem !important;
    }
    #sandbox td[data-label="Action"] {
        text-align: right !important;
        margin-top: 0.5rem !important;
        border-top: 1px solid var(--border-color) !important;
        padding-top: 0.75rem !important;
    }
    #sandbox td[data-label="Action"]::before {
        display: none !important;
    }
}

