/**
 * ============================================================================
 * DOPPEL.CSS - Unified Stylesheet
 * ============================================================================
 * This file consolidates all CSS from PHP templates for the Yii2 Doppelgänger
 * project. Styles are organized by source file to maintain integrity and
 * prevent conflicts.
 * 
 * Note: Mobile optimizations are in /web/css/mobile.css
 * ============================================================================
 */

/* ============================================================================
   BASE MOBILE STYLES - Safe Areas & iOS Optimizations
   ============================================================================ */
:root {
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}

/* Prevent iOS zoom on input focus (font-size >= 16px) */
@media screen and (max-width: 767px) {
    input, select, textarea, .form-control {
        font-size: 16px !important;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }
    
    html {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Safe area padding for notched devices */
@media (max-width: 768px) {
    .navbar, .navbar-main {
        padding-left: calc(1rem + var(--safe-area-left));
        padding-right: calc(1rem + var(--safe-area-right));
    }
    
    .fixed-top {
        top: var(--safe-area-top);
    }
    
    .fixed-bottom {
        bottom: var(--safe-area-bottom);
    }
}

/* ============================================================================
   SECTION 1: views/layouts/main.php
   ============================================================================ */
#navbarBlur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.logo-container {
    text-align: center;
    width: 100%;
}

body.with-fixed-nav {
    padding-top: 60px;
}

.navbar-vertical.navbar-expand-xs {
    width: 14%;
}

/* ============================================================================
   SECTION 2: views/auth/login.php
   ============================================================================ */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f6f9;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-card h3 {
    text-align: center;
    margin-bottom: 20px;
}

.login-card .btn-success {
    width: 100%;
}

/* ============================================================================
   SECTION 3: views/auth/signup.php
   ============================================================================ */
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f6f9;
}

.register-card {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.register-card h3 {
    text-align: center;
    margin-bottom: 20px;
}

.register-card .btn-success {
    width: 100%;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================================
   SECTION 4: views/auth/profile.php
   ============================================================================ */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    margin-top: 50px;
}

.profile-card {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile-card .btn-primary,
.profile-card .btn-success {
    width: 100%;
}

#flash-messages {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: auto;
}

.flash-message {
    animation: slideDown 0.5s ease-out, fadeOut 0.5s ease-in 9.5s forwards;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ============================================================================
   SECTION 5: views/auth/payment.php
   ============================================================================ */
.btn-outline-secondary {
    border-color: #d1d5db;
    color: #6b7280;
}

.btn-outline-secondary:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

#qrModal .modal-content {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

#qrModal .modal-body {
    background: #fafafa;
}

.payment-row {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    align-items: flex-start;
}

.payment-main-container {
    flex: 1;
    min-width: 0;
}

.payment-side-container {
    flex: 0 0 400px;
}

.payment-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.payment-container .form-group {
    margin-bottom: 15px;
}

.payment-container .form-control {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    background: #fff;
}

.payment-container .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: none;
}

.payment-container .btn {
    width: 100%;
    padding: 10px 16px;
    background: #374151;
    border: 1px solid #374151;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-container .btn:hover {
    background: #4b5563;
    border-color: #4b5563;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: none;
}

.info-card .card-body {
    padding: 0;
}

.info-card .list-unstyled {
    margin: 0;
}

.info-card .list-unstyled li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
}

.info-card .list-unstyled li:last-child {
    border-bottom: none;
}

.info-card .list-unstyled li i {
    color: #6b7280;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-card .list-unstyled li span {
    color: #374151;
    font-size: 13px;
    line-height: 1.4;
}

.info-card .fw-bold {
    color: #111827;
    font-weight: 600;
}

.info-card .border-top {
    border-top: 1px solid #e5e7eb !important;
    margin-top: 16px;
    padding-top: 16px;
}

.info-card .btn-sm {
    background: #4b5563;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.info-card .btn-sm:hover {
    background: #374151;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    gap: 4px;
    justify-content: center;
}

.pagination .page-item .page-link {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s ease;
    font-size: 13px;
    font-weight: 500;
}

.pagination .page-item .page-link:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.pagination .page-item.active .page-link {
    background-color: #374151;
    border-color: #374151;
    color: white;
}

.pagination .page-item.disabled .page-link {
    background-color: #f9fafb;
    color: #9ca3af;
    border-color: #d1d5db;
}

.gridform-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    overflow-x: auto;
}

.table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    line-height: 3.2;
    margin: 0;
}

.table-compact > thead > tr > th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.table-compact > tbody > tr > td {
    padding: 4px 4px;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
}

.table-compact > tbody > tr:hover {
    background-color: #f9fafb;
}

.table-compact img {
    vertical-align: middle;
    display: inline-block;
}

.table-compact .btn {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-compact .btn-sm {
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 0.7rem;
}

.table-compact .truncate-text {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    font-size: 0.7rem;
    display: inline-block;
    vertical-align: middle;
}

.table-compact .truncate-text:hover {
    white-space: normal;
    overflow: visible;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 3px;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
    max-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-compact .spinner-border {
    width: 0.8rem;
    height: 0.8rem;
    border-width: 0.15em;
}

.table-compact .text-center {
    padding: 0;
    margin: 0;
}

.table-compact th:nth-child(1),
.table-compact td:nth-child(1) {
    width: 40px;
    min-width: 40px;
}

.table-compact th:nth-child(2),
.table-compact td:nth-child(2) {
    width: 50px;
    min-width: 50px;
}

.table-compact th:nth-child(3),
.table-compact td:nth-child(3) {
    width: 50px;
    min-width: 50px;
}

.table-compact th:nth-child(4),
.table-compact td:nth-child(4) {
    width: 80px;
    min-width: 80px;
}

.table-compact th:nth-child(5),
.table-compact td:nth-child(5) {
    width: 150px;
    min-width: 200px;
    max-width: 150px;
}

.table-compact th:nth-child(6),
.table-compact td:nth-child(6) {
    width: 100px;
    min-width: 100px;
}

.table-compact th:nth-child(7),
.table-compact td:nth-child(7) {
    width: 80px;
    min-width: 80px;
}

.address-with-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.address-with-qr .btn {
    flex-shrink: 0;
}

.address-with-qr .truncate-text {
    flex: 1;
    min-width: 0;
}

.truncate-text {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    font-size: 12px;
}

.truncate-text:hover {
    white-space: normal;
    overflow: visible;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 4px;
    border-radius: 3px;
    position: absolute;
    z-index: 10;
    max-width: 300px;
}

.bonus-content li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}

.bonus-content li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .payment-row {
        flex-direction: column;
        gap: 15px;
    }

    .payment-side-container {
        flex: none;
        width: 100%;
    }
}

/* ============================================================================
   SECTION 6: views/auth/dashboard.php
   ============================================================================ */
.dashboard-body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.dashboard-card {
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    height: 100%;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-card .card-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.dashboard-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.flag-icon {
    width: 30px;
    height: 20px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 2px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table td {
    padding: 10px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.dashboard-table thead th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

#map {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.highcharts-credits {
    display: none !important;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
}

.news-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: white;
}

.news-item h6 {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #333;
}

.news-date {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}

.news-content {
    font-size: 0.95em;
    color: #555;
}

.horizontal-layout {
    display: flex;
    margin: -10px;
}

.horizontal-layout > .col {
    flex: 1;
    padding: 10px;
}

.map-table-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-section {
    flex-shrink: 0;
}

.table-section {
    flex-grow: 1;
}

.dashboard-alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.dashboard-alert.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.dashboard-header h4 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 10px;
    }

    .dashboard-card {
        padding: 15px;
        margin: 5px;
        height: auto;
    }

    .horizontal-layout {
        flex-direction: column;
        margin: -5px;
    }

    .horizontal-layout > .col {
        padding: 5px;
        width: 100%;
    }

    #map {
        height: 250px;
        margin-top: 15px;
    }

    .table-container {
        max-height: 300px;
    }

    .dashboard-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .dashboard-table td {
        padding: 8px;
        font-size: 0.9em;
    }

    .dashboard-table thead th {
        padding: 10px 8px;
        font-size: 0.9em;
    }

    .flag-icon {
        width: 25px;
        height: 15px;
        margin-right: 8px;
    }

    .news-item {
        padding: 12px;
        margin-bottom: 15px;
    }

    .news-item h6 {
        font-size: 0.95em;
    }

    .news-content {
        font-size: 0.9em;
    }

    .dashboard-card .card-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .dashboard-card .card-header h5 {
        font-size: 1em;
    }

    .dashboard-header h4 {
        font-size: 1.1em;
    }
}

@media (min-width: 1200px) {
    #map {
        height: 350px;
    }

    .table-container {
        max-height: 450px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .horizontal-layout {
        flex-wrap: wrap;
    }

    .horizontal-layout > .col {
        flex: 1 1 50%;
        min-width: 50%;
    }

    #map {
        height: 300px;
    }
}

/* ============================================================================
   SECTION 7: views/auth/faq.php
   ============================================================================ */
.faq-bg-gradient-primary {
    background-image: linear-gradient(310deg, #2e2e2f 0%, #3f3c47 100%);
}

/* ============================================================================
   SECTION 8: views/auth/terms.php
   ============================================================================ */
.terms-bg-gradient-primary {
    background-image: linear-gradient(310deg, #2e2e2f 0%, #3f3c47 100%);
}

.terms-body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.terms-container {
    max-width: none;
    margin: 0 auto;
    padding: 25px;
}

.terms-header {
    background-color: #0b0c0e;
    color: white;
    padding: 25px 0;
    text-align: center;
    border-bottom: 4px solid #292e31;
    margin-bottom: 30px;
}

.terms-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.terms-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.terms-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    background-color: white;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}

.terms-tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-tab:hover {
    background-color: #f1f1f1;
}

.terms-tab.active {
    border-bottom: 3px solid #4b3757;
    color: #2f4553;
    background-color: #f8f9fa;
}

.terms-tab-content {
    display: none;
    background-color: white;
    padding: 30px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.terms-tab-content.active {
    display: block;
}

.terms-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
    font-size: 1.6rem;
    font-weight: 600;
}

.terms-content h3 {
    color: #263a2b;
    margin: 25px 0 15px;
    font-size: 1.3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-highlight {
    background-color: #e8f4fc;
    padding: 18px;
    border-left: 4px solid #252627;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.terms-warning {
    background-color: #fde8e8;
    padding: 18px;
    border-left: 4px solid #e74c3c;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.terms-info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.terms-info-box i {
    color: #ad822c;
    margin-top: 3px;
    flex-shrink: 0;
}

.terms-footer {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #eaeaea;
    background-color: white;
    border-radius: 5px;
}

.terms-last-updated {
    font-style: italic;
    margin-top: 10px;
}

.terms-crypto-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.terms-crypto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #24643a;
}

@media (max-width: 768px) {
    .terms-tabs {
        flex-direction: column;
    }

    .terms-crypto-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   SECTION 9: views/auth/index.php (Landing Page)
   ============================================================================ */
.landing-hero-section {
    background: #f8f9fa;
    min-height: 100vh;
    color: #343a40;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.landing-navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo-container {
    display: flex;
    align-items: center;
}

.landing-logo-img {
    height: 50px;
    margin-right: 15px;
}

.landing-logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
}

.landing-logo-text span {
    color: #6c757d;
}

.landing-nav-links a {
    color: #343a40;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
}

.landing-nav-links a:hover {
    color: #6c757d;
}

.landing-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-hero-text {
    flex: 1;
    padding-right: 2rem;
}

.landing-hero-image {
    flex: 1;
    position: relative;
}

.landing-hero-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 27px rgba(0, 0, 0, 0.1);
}

.landing-h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.landing-lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.landing-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s ease;
}

.landing-btn-primary {
    background-color: #6c757d;
    color: white;
}

.landing-btn-primary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.landing-btn-outline-dark {
    border: 1px solid #343a40;
    color: #343a40;
    margin-left: 1rem;
}

.landing-btn-outline-dark:hover {
    background-color: #343a40;
    color: white;
}

.landing-features {
    background-color: rgba(148, 166, 185, 0);
    padding: 5rem 2rem;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.landing-section-title h2 {
    font-size: 2rem;
    color: #343a40;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.landing-feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.landing-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.landing-feature-icon {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.landing-feature-card h3 {
    margin-bottom: 1rem;
}

.landing-payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
}

.landing-payment-method {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.05);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.landing-payment-method i {
    margin-right: 5px;
    color: #6c757d;
}

.landing-privacy-section {
    background-color: #343a40;
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    margin: 1rem;
}

.landing-privacy-section h2 {
    margin-bottom: 1.5rem;
}

.landing-privacy-badge {
    display: inline-block;
    background-color: #28a745;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 2rem;
}

.landing-footer {
    background-color: #343a40;
    color: white;
    padding: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .landing-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .landing-hero-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .landing-h1 {
        font-size: 2.5rem;
    }

    .landing-payment-methods {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================================
   SECTION 10: modules/ticket/views/client/index.php
   ============================================================================ */
.ticket-widget .flash-message {
    animation: fadeOut 5s forwards;
    animation-delay: 3s;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* ============================================================================
   SECTION 11: modules/proxy/views/proxy/index.php
   ============================================================================ */
.proxy-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    gap: 4px;
}

.proxy-price-badge {
    font-size: 12px !important;
    padding: 4px 8px !important;
    min-width: 50px;
    display: inline-block;
    text-align: center;
}

/* HOST column - prevent text overflow on desktop */
.table-compact td:nth-child(3),
.table-compact th:nth-child(3) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* IP and Host columns - compact with ellipsis */
.table-compact td[data-label="IP"],
.table-compact td[data-label="Host"] {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.proxy-pagination .page-item .page-link {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background-color: #f7fafc;
    color: #4a5568;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.proxy-pagination .page-item .page-link:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.proxy-pagination .page-item.active .page-link {
    background-color: #718096;
    border-color: #718096;
    color: white;
}

.proxy-pagination .page-item.disabled .page-link {
    background-color: #f7fafc;
    color: #a0aec0;
    border-color: #e2e8f0;
}

.proxy-progress {
    background-color: #f8f9fa;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    height: 24px;
    margin-bottom: 0;
    overflow: hidden;
}

.proxy-form-control {
    display: block;
    width: 100%;
    padding: 0.1rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4rem;
    color: #495057;
    appearance: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d2d6da;
    border-radius: 0.5rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.proxy-progress-bar {
    color: #495057;
    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    transition: width 0.6s ease;
    text-shadow: none;
}

.proxy-progress-container {
    display: flex;
    align-items: center;
}

.proxy-speed-text {
    margin-left: 8px;
    font-size: 12px;
    color: #6c757d;
}

.leaflet-control-attribution {
    opacity: 0;
    visibility: hidden;
}

.proxy-table thead th {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.proxy-table tbody td {
    vertical-align: middle;
    border-top: 1px solid #e9ecef;
}

.proxy-table tbody tr:hover {
    background-color: #f8f9fa;
}

.proxyform-container {
    margin: 0px auto;
    padding: 5px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gridform-container {
    margin: 12px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.proxy-table-compact > tbody > tr > td,
.proxy-table-compact > thead > tr > th {
    padding: 1px 8px;
    font-size: 14px;
    vertical-align: middle;
}

.proxy-table-compact tr[data-key] {
    height: 24px !important;
}

.proxy-table-compact tr[data-key] td {
    padding: 2px 4px !important;
}

.period-option {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.period-option:hover {
    background-color: #f5f5f5;
}

.period-option.selected {
    background-color: #337ab7;
    color: white;
    border-color: #2e6da4;
}

#total-price {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
}

.period-hours {
    font-size: 12px;
    color: #666;
}

.proxy-flash-message {
    animation: slideDown 0.5s ease-out, fadeOut 0.5s ease-in 9.5s forwards;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.zip-filter-container {
    display: contents;
    flex-direction: column;
    gap: 5px;
}

.zip-filter-container input,
.zip-filter-container select {
    width: 100% !important;
}

.scamalytics-report.compact .card {
    font-size: 0.85rem;
}

.scamalytics-report.compact .card-header h6 {
    font-size: 0.9rem;
}

.scamalytics-report.compact h6 {
    font-size: 0.8rem;
    font-weight: 600;
}

.scamalytics-report.compact .row.g-1 > div {
    margin-bottom: 0.3rem;
}

.scamalytics-report.compact .border {
    border-color: #dee2e6 !important;
}

.scamalytics-report.compact .text-muted {
    font-size: 0.75rem;
}

.scamalytics-report.compact .badge {
    font-weight: 500;
}

/* Geo Modal Styles */
.geo-modal .modal-dialog {
    max-width: 900px;
    margin: 1.75rem auto;
}

.geo-modal .modal-content {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.geo-modal .modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

.geo-modal .modal-body {
    padding: 1.25rem;
}

.geo-modal #geo-map {
    height: 500px;
    border-radius: 8px;
    z-index: 1;
}

.geo-modal .modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

/* Copy Menu Styles */
.copy-menu {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
}

.copy-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.copy-menu-item:hover {
    background: #f5f5f5;
}

/* Check IP Modal */
.check-ip-modal .modal-dialog {
    max-width: 600px;
}

.check-ip-modal .modal-content {
    border-radius: 8px;
}

/* Cart Modal */
.cart-modal .modal-dialog {
    max-width: 500px;
}

.cart-modal .modal-content {
    border-radius: 8px;
}

/* Fingerprint Badge */
.fingerprint-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Country Flags Line */
.country-flags-line {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.country-flags-line a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.country-flags-line img {
    margin-right: 5px;
    border: 1px solid #ddd;
}

/* Proxy Table Specific Columns */
.proxy-table th:nth-child(1),
.proxy-table td:nth-child(1) {
    width: 60px;
    min-width: 60px;
}

.proxy-table th:nth-child(2),
.proxy-table td:nth-child(2) {
    width: 50px;
    min-width: 50px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .proxyform-container {
        padding: 10px;
    }

    .gridform-container {
        padding: 10px;
    }

    .country-flags-line {
        justify-content: center;
    }
}

/* ============================================================================
   SECTION 12: modules/history/views/history/index.php
   ============================================================================ */
.history-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    gap: 4px;
}

.history-price-badge {
    font-size: 12px !important;
    padding: 4px 8px !important;
    min-width: 50px;
    display: inline-block;
    text-align: center;
}

.history-pagination .page-item .page-link {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background-color: #f7fafc;
    color: #4a5568;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.history-pagination .page-item .page-link:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.history-pagination .page-item.active .page-link {
    background-color: #718096;
    border-color: #718096;
    color: white;
}

.history-pagination .page-item.disabled .page-link {
    background-color: #f7fafc;
    color: #a0aec0;
    border-color: #e2e8f0;
}

.history-form-control {
    display: block;
    width: 100%;
    padding: 0.1rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4rem;
    color: #495057;
    appearance: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d2d6da;
    border-radius: 0.5rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.history-table thead th {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.history-table tbody td {
    vertical-align: middle;
    border-top: 1px solid #e9ecef;
}

.history-table tbody tr:hover {
    background-color: #f8f9fa;
}

.history-proxyform-container {
    margin: 15px auto;
    padding: 7px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.history-gridform-container {
    margin: 12px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.history-table-compact > tbody > tr > td,
.history-table-compact > thead > tr > th {
    padding: 1px 8px;
    font-size: 14px;
    vertical-align: middle;
}

.history-table-compact tr[data-key] {
    height: 24px !important;
}

.history-table-compact tr[data-key] td {
    padding: 2px 4px !important;
}

.history-truncate:hover {
    overflow: visible;
    white-space: normal;
    width: auto;
}

.history-period-option {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.history-period-option:hover {
    background-color: #f5f5f5;
}

.history-period-option.selected {
    background-color: #337ab7;
    color: white;
    border-color: #2e6da4;
}

#history-total-price {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
}

/* ============================================================================
   SECTION 99: Strict UI Refinement Overrides
   ============================================================================ */
:root {
    --ui-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ui-text: #1a1e24;
    --ui-muted: #6c757d;
    --ui-border: #e9ecef;
    --ui-bg: #f7f8fa;
    --ui-panel: #ffffff;
    --ui-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    --ui-radius: 10px;
    --ui-sidebar-width: 248px;
    --ui-header-height: 56px;
}

html,
body {
    font-family: var(--ui-font);
    font-size: 13px;
    color: var(--ui-text);
    background: var(--ui-bg);
}

body {
    min-height: 100vh;
}

small,
.small,
.text-muted,
.app-nav__meta,
.app-header__eyebrow,
.app-balance-card__meta,
.ticket-date,
.proxy-speed__value,
.table thead th,
.badge {
    font-size: 11px;
}

a {
    transition: color 0.18s ease, opacity 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.app-body--auth {
    overflow-x: hidden;
}

.app-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 30, 36, 0.26);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1040;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--ui-sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 16px 12px 12px;
    background: var(--ui-panel);
    border-right: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow);
    z-index: 1050;
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px 14px;
    color: inherit;
    text-decoration: none;
}

.app-sidebar__brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.app-sidebar__brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.app-sidebar__brand-text strong {
    font-size: 14px;
    font-weight: 600;
}

.app-sidebar__brand-text span {
    color: var(--ui-muted);
}

.app-balance-card,
.proxyform-container,
.gridform-container,
.history-proxyform-container,
.history-gridform-container,
.payment-container,
.info-card,
.profile-card,
.login-card,
.register-card,
.chat-container .card,
.create-ticket-container .card,
.ticket-list-container .card {
    background: var(--ui-panel);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow);
}

.app-balance-card {
    padding: 10px 12px;
    margin: 6px 4px 14px;
}

.app-balance-card__label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ui-muted);
}

.app-balance-card__amount {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.app-balance-card__amount a {
    color: var(--ui-text);
    text-decoration: none;
}

.app-balance-card__meta {
    margin-top: 4px;
    color: var(--ui-muted);
}

.app-nav__section + .app-nav__section {
    margin-top: 10px;
}

.app-nav__heading {
    margin: 0 0 6px;
    padding: 0 10px;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

.app-nav {
    display: grid;
    gap: 2px;
}

.app-nav__link {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ui-text);
    text-decoration: none;
    line-height: 1.2;
}

.app-nav__link:hover,
.app-nav__link:focus {
    background: #f8f9fa;
    border-color: var(--ui-border);
    color: var(--ui-text);
    opacity: 1;
}

.app-nav__link.is-active {
    background: #f3f5f7;
    border-color: var(--ui-border);
    color: var(--ui-text);
}

.app-nav__icon {
    width: 18px;
    margin-right: 10px;
    text-align: center;
    color: var(--ui-muted);
    font-size: 14px;
    flex: 0 0 18px;
}

.app-nav__link.is-active .app-nav__icon {
    color: var(--ui-text);
}

.app-nav__label {
    flex: 1 1 auto;
}

.app-nav__footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--ui-border);
}

.app-main {
    min-height: 100vh;
    margin-left: var(--ui-sidebar-width);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--ui-header-height);
    padding: 10px 18px;
    background: rgba(247, 248, 250, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ui-border);
}

.app-header__start,
.app-header__actions,
.guest-topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-header__title h1 {
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
}

.app-header__eyebrow {
    display: block;
    margin-bottom: 1px;
    color: var(--ui-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-header__menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ui-text);
    box-shadow: var(--ui-shadow);
}

.app-header__menu-button i {
    font-size: 16px;
    line-height: 1;
}

.header-pill,
.modal-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--ui-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ui-text);
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    box-shadow: var(--ui-shadow);
}

.header-pill:hover,
.modal-confirm-btn:hover {
    background: #f8f9fa;
    color: var(--ui-text);
}

.header-pill--primary {
    background: var(--ui-text);
    border-color: var(--ui-text);
    color: #fff;
}

.header-pill--primary:hover {
    background: #30343a;
    border-color: #30343a;
    color: #fff;
}

.app-content,
.guest-content {
    padding: 18px;
}

.app-content__inner,
.guest-content__inner {
    max-width: 100%;
}

.guest-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--ui-header-height);
    padding: 10px 18px;
    background: rgba(247, 248, 250, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ui-border);
}

.guest-topbar__brand img {
    height: 32px;
    width: auto;
    display: block;
}

.card,
.modal-content,
.table,
.alert,
.form-control,
.form-select,
.select2-container--krajee-bs5 .select2-selection,
.btn:not(.header-pill):not(.modal-confirm-btn) {
    border-color:#1d344c23;
    box-shadow: none;
}

.card,
.modal-content {
    box-shadow: var(--ui-shadow);
}

.card-header,
.ticket-header,
.create-header,
.chat-header {
    background: #fbfcfd;
    border-bottom: 1px solid var(--ui-border);
}

.form-control,
.form-select,
.select2-container--krajee-bs5 .select2-selection {
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px;
    color: var(--ui-text);
}

.form-control:focus,
.form-select:focus,
.select2-container--krajee-bs5.select2-container--focus .select2-selection {
    border-color: #ced4da;
    box-shadow: 0 0 0 0.1rem rgba(26, 30, 36, 0.06);
}

.btn,
.page-link {
    font-size: 12px;
    line-height: 1.2;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    --bs-table-striped-bg: #f8f9fa;
    margin-bottom: 0;
    color: var(--ui-text);
}

.table > :not(caption) > * > * {
    padding: 8px 12px;
    vertical-align: middle;
    border-color: var(--ui-border);
}

.table thead th {
    color: var(--ui-muted);
    font-weight: 600;
    letter-spacing: 0.03em;
    background: #fbfcfd;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table tbody tr:nth-of-type(even) {
    background: #f8f9fa;
}

.table tbody tr:hover {
    background: #f4f6f8;
}

.table .badge,
.status-badge,
.chat-status,
.price-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.table-header-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table-header-label i {
    font-size: 12px;
    color: var(--ui-muted);
}

.table-icon-btn,
.buy-btn,
.btn-view-ticket,
.btn-ticket-new,
.btn-back,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1;
    transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.table-icon-btn {
    width: 28px;
    padding: 0;
    border: 1px solid var(--ui-border);
    background: #fff;
    color: var(--ui-text);
}

.table-icon-btn:hover,
.table-icon-btn:focus {
    background: #f8f9fa;
    color: var(--ui-text);
}

.map-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 4px;
    color: var(--ui-muted);
    text-decoration: none;
}

.map-action-link:hover {
    color: var(--ui-text);
}

.proxy-speed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.proxy-speed__track {
    width: 92px;
    height: 6px;
    border-radius: 999px;
    background: #edf0f2;
    overflow: hidden;
}

.proxy-speed__fill {
    height: 100%;
    border-radius: inherit;
}

.proxy-speed__value {
    color: var(--ui-muted);
    line-height: 1;
    white-space: nowrap;
}

.ticket-table {
    margin-bottom: 0;
}

.ticket-table th,
.ticket-table td {
    padding: 8px 12px;
    border-color: var(--ui-border);
}

.ticket-table th {
    background: #fbfcfd;
    color: var(--ui-muted);
}

.ticket-table tbody tr:nth-of-type(even) {
    background: #f8f9fa;
}

.pagination .page-link {
    border-color: var(--ui-border);
    color: var(--ui-text);
    box-shadow: none;
}

.pagination .page-item.active .page-link {
    background: var(--ui-text);
    border-color: var(--ui-text);
}

@media (max-width: 768px) {
    html,
    body,
    .table,
    .form-control,
    .form-select,
    .btn,
    .page-link {
        font-size: 13px;
    }

    .table thead th,
    .table tbody td,
    .ticket-table th,
    .ticket-table td,
    .proxy-speed__value,
    .badge,
    .status-badge,
    .chat-status {
        font-size: 11px;
    }

    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .app-main {
        margin-left: 0;
    }

    .app-header__menu-button {
        display: inline-flex;
    }

    .app-body.app-menu-open {
        overflow: hidden;
    }

    .app-body.app-menu-open .app-sidebar {
        transform: translateX(0);
    }

    .app-body.app-menu-open .app-overlay {
        opacity: 1;
        visibility: visible;
    }

    .app-header,
    .guest-topbar,
    .app-content,
    .guest-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .app-header,
    .guest-topbar {
        min-height: 52px;
    }

    .app-content,
    .guest-content {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .table > :not(caption) > * > * {
        padding: 8px 10px;
    }

    .header-pill span {
        display: none;
    }
}

.guest-topbar__nav,
.guest-footer__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.guest-topbar__link,
.guest-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ui-muted);
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
}

.guest-topbar__link:hover,
.guest-topbar__link.is-active,
.guest-footer__link:hover {
    background: #fff;
    border-color: var(--ui-border);
    color: var(--ui-text);
}

.guest-footer {
    padding: 0 18px 18px;
}

.public-page {
    display: grid;
    gap: 14px;
}

.public-page__hero,
.public-card,
.public-widget,
.public-panel {
    background: var(--ui-panel);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow);
}

.public-page__hero {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.public-page__eyebrow {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-page__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--ui-text);
}

.public-page__lead {
    margin: 0;
    color: var(--ui-muted);
    font-size: 13px;
    line-height: 1.5;
}

.public-grid,
.public-widget-grid,
.contact-grid,
.blog-grid {
    display: grid;
    gap: 12px;
}

.public-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.public-widget-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.contact-grid,
.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.public-card,
.public-widget,
.public-panel {
    padding: 16px;
}

.public-card h2,
.public-card h3,
.public-widget h2,
.public-widget h3,
.public-panel h2,
.public-panel h3 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--ui-text);
}

.public-widget {
    min-height: 164px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.public-widget__list,
.public-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-widget__list a,
.public-list a {
    color: var(--ui-text);
    text-decoration: none;
}

.public-widget__list small,
.public-list small,
.public-meta {
    color: var(--ui-muted);
    font-size: 11px;
}

.public-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.public-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ui-muted);
    text-decoration: none;
    font-size: 12px;
}

.public-link:hover {
    color: var(--ui-text);
}

.public-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.public-feature__icon,
.public-inline-icon {
    width: 18px;
    flex: 0 0 18px;
    text-align: center;
    color: var(--ui-muted);
    font-size: 1rem;
}

.public-feature__body {
    min-width: 0;
}

.public-feature__body strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    line-height: 1.3;
}

.public-feature__body span,
.public-card p,
.public-widget p,
.public-panel p,
.public-card li,
.public-widget li,
.public-panel li {
    color: var(--ui-text);
    font-size: 13px;
    line-height: 1.5;
}

.public-card p,
.public-widget p,
.public-panel p {
    margin: 0;
}

.public-search {
    display: flex;
    gap: 8px;
}

.public-search .form-control {
    min-height: 32px;
}

.public-search .btn {
    min-height: 32px;
    padding: 6px 10px;
}

.public-news-list,
.public-doc-list {
    display: grid;
    gap: 10px;
}

.public-news-item,
.public-doc-item,
.public-contact-item,
.public-blog-item {
    padding: 10px 12px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fbfcfd;
}

.public-news-item h3,
.public-doc-item h3,
.public-contact-item h3,
.public-blog-item h3 {
    margin-bottom: 4px;
    font-size: 13px;
}

.public-news-excerpt,
.public-blog-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--ui-muted);
}

.public-blog-excerpt--single {
    -webkit-line-clamp: 1;
}

.docs-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 12px;
}

.docs-sidebar {
    align-self: start;
    position: sticky;
    top: 72px;
}

.docs-sidebar__list,
.toc-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-sidebar__list a,
.toc-list a {
    display: block;
    padding: 7px 10px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    color: var(--ui-text);
    text-decoration: none;
    background: #fff;
}

.docs-main section {
    scroll-margin-top: 76px;
}

.code-snippet,
pre code {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #f8f9fa;
    color: #20252b;
    font-size: 12px;
    line-height: 1.45;
    overflow-x: auto;
}

.check-ip-result {
    padding: 10px 12px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fbfcfd;
}

.check-ip-result__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--ui-border);
}

.check-ip-result__row:last-child {
    border-bottom: 0;
}

.rbls-blocklist {
    font-size: 10px;
    line-height: 1.15;
}

.rbls-summary {
    margin-bottom: 6px;
    font-size: 11px;
}

.rbls-item {
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    padding: 3px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
}

.rbls-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rbls-status {
    flex-shrink: 0;
}

.rbls-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid transparent;
}

.rbls-dot--listed {
    background: rgba(220, 53, 70, 0.896);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.25);
}

.rbls-dot--clean {
    background: rgba(25, 135, 84, 0.886);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.25);
}

.rbls-dot--whitelist {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.25);
}

.rbls-dot--timeout {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border-color: rgba(255, 193, 7, 0.35);
}

.rbls-dot--pending {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.18);
}

.modal-content {
    border: 1px solid var(--ui-border);
    border-radius: 7px;
    box-shadow: var(--ui-shadow);
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 4px;
}

.modal-header {
    border-bottom: 1px solid var(--ui-border);
}

.modal-footer {
    border-top: 1px solid var(--ui-border);
}

.modal-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--ui-text);
}

.modal-title i,
.modal-body i,
.modal-footer i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.modal-content .alert {
    margin-bottom: 12px;
    padding: 10px 12px;
}

.modal-content .fingerprint-option {
    padding: 12px !important;
    border-radius: 8px !important;
}

.modal-content .fingerprint-option i,
.modal-content .fingerprint-option .fab,
.modal-content .fingerprint-option .fas,
.modal-content .fingerprint-option .fa {
    font-size: 1rem !important;
    width: 18px;
    margin-bottom: 6px !important;
}

.modal-content .fingerprint-option h4 {
    font-size: 13px !important;
    margin-bottom: 4px !important;
}

.modal-content .fingerprint-option p,
.modal-content .period-option,
.modal-content label,
.modal-content .form-check-label {
    font-size: 12px !important;
}

.modal-content .period-option {
    padding: 8px 10px;
}

.btn-close {
    width: 24px;
    height: 24px;
    padding: 4px;
    background-size: 10px;
    opacity: 0.45;
}

.btn-close:hover {
    opacity: 0.7;
}

@media (max-width: 992px) {
    .guest-topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .guest-topbar__nav {
        order: 3;
        width: 100%;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .guest-footer {
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 12px;
    }

    .public-page__hero,
    .public-card,
    .public-widget,
    .public-panel,
    .public-news-item,
    .public-doc-item,
    .public-contact-item,
    .public-blog-item,
    .check-ip-result {
        padding: 12px;
    }

    .public-widget-grid,
    .contact-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .public-widget-grid,
    .contact-grid,
    .blog-grid,
    .public-grid {
        grid-template-columns: 1fr;
    }

    .guest-topbar__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.history-period-hours {
    font-size: 12px;
    color: #666;
}

.history-flash-message {
    animation: slideDown 0.5s ease-out, fadeOut 0.5s ease-in 9.5s forwards;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Copy menu for history */
.history-copy-menu {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
}

/* Copy notification */
.history-copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* ============================================================================
   END OF DOPPEL.CSS
   ============================================================================ */

/* ==========================================================================
   Service landing, resources and table border fixes
   ========================================================================== */
.app-nav--resources {
    display: grid;
    gap: 8px;
}

.app-nav__resource-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.app-nav__resource-row .app-nav__link {
    justify-content: center;
    min-height: 36px;
    padding: 8px 10px;
}

.app-nav__resource-row .app-nav__icon {
    margin-right: 6px;
}

.table,
.grid-view table,
.proxy-table,
.history-table,
.dashboard-table {
    border-collapse: separate;
    border-spacing: 0;
}

.table > :not(caption) > * > :last-child,
.grid-view table > :not(caption) > * > :last-child,
.proxy-table > :not(caption) > * > :last-child,
.history-table > :not(caption) > * > :last-child,
.dashboard-table > :not(caption) > * > :last-child {
    border-right: 1px solid var(--ui-border, #e9ecef);
}

.table > :not(caption) > * > :first-child,
.grid-view table > :not(caption) > * > :first-child,
.proxy-table > :not(caption) > * > :first-child,
.history-table > :not(caption) > * > :first-child,
.dashboard-table > :not(caption) > * > :first-child {
    border-left: 1px solid var(--ui-border, #e9ecef);
}

.table thead th:last-child,
.grid-view thead th:last-child,
.proxy-table thead th:last-child,
.history-table thead th:last-child,
.dashboard-table thead th:last-child {
    background-clip: padding-box;
    box-shadow: inset -1px 0 0 var(--ui-border, #e9ecef);
}

.landing-v2 {
    display: grid;
    gap: 18px;
}

.landing-v2__hero,
.landing-v2__split,
.landing-v2__checks,
.landing-v2__card,
.landing-v2__figure {
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--ui-shadow);
}

.landing-v2__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 18px;
    padding: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 14%, rgba(25, 135, 84, 0.12), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(13, 110, 253, 0.11), transparent 30%),
        #fff;
}

.landing-v2__copy {
    align-self: center;
    display: grid;
    gap: 14px;
    padding: 8px;
}

.landing-v2__eyebrow {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-v2 h1,
.landing-v2 h2,
.landing-v2 h3 {
    color: var(--ui-text);
}

.landing-v2 h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(28px, 5vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.landing-v2 h2 {
    margin: 0 0 8px;
    font-size: clamp(18px, 2vw, 28px);
    letter-spacing: -0.03em;
}

.landing-v2 h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.landing-v2 p {
    margin: 0;
    color: var(--ui-muted);
    font-size: 14px;
    line-height: 1.6;
}

.landing-v2__actions,
.landing-v2__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.landing-v2__badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid var(--ui-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ui-text);
    font-size: 12px;
}

.world-connect {
    position: relative;
    min-height: 380px;
    border: 1px solid rgba(26, 30, 36, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(6, 15, 25, 0.94), rgba(17, 39, 55, 0.92)),
        #101820;
}

.world-connect__map {
    position: absolute;
    inset: 34px 24px 76px;
    opacity: 0.5;
    background:
        radial-gradient(ellipse at 22% 38%, transparent 0 10%, #5f7f76 10.5% 17%, transparent 17.5%),
        radial-gradient(ellipse at 48% 32%, transparent 0 8%, #5f7f76 8.5% 15%, transparent 15.5%),
        radial-gradient(ellipse at 67% 43%, transparent 0 9%, #5f7f76 9.5% 20%, transparent 20.5%),
        radial-gradient(ellipse at 78% 70%, transparent 0 6%, #5f7f76 6.5% 12%, transparent 12.5%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 44px);
    filter: saturate(1.2);
}

.world-connect__node {
    position: absolute;
    width: 13px;
    height: 13px;
    border: 2px solid #d7fff0;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.15), 0 0 24px rgba(34, 197, 94, 0.8);
    animation: nodePulse 2.2s ease-in-out infinite;
}

.world-connect__node--na { left: 24%; top: 42%; }
.world-connect__node--eu { left: 49%; top: 34%; animation-delay: 0.3s; }
.world-connect__node--as { left: 70%; top: 45%; animation-delay: 0.6s; }
.world-connect__node--au { left: 79%; top: 71%; animation-delay: 0.9s; }

.world-connect__route {
    position: absolute;
    height: 2px;
    transform-origin: left center;
    background: linear-gradient(90deg, transparent, #7dd3fc, #22c55e, transparent);
    background-size: 220% 100%;
    opacity: 0.9;
    animation: routeFlow 1.8s linear infinite;
}

.world-connect__route--one { left: 26%; top: 44%; width: 25%; transform: rotate(-14deg); }
.world-connect__route--two { left: 51%; top: 36%; width: 23%; transform: rotate(18deg); animation-delay: 0.35s; }
.world-connect__route--three { left: 71%; top: 48%; width: 25%; transform: rotate(61deg); animation-delay: 0.7s; }

.world-connect__caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    backdrop-filter: blur(10px);
}

.world-connect__caption span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.landing-v2__grid,
.landing-v2__media-grid,
.landing-v2__check-grid,
.manual-media-grid {
    display: grid;
    gap: 12px;
}

.landing-v2__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-v2__card {
    padding: 16px;
}

.landing-v2__card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #f3f6f8;
    color: #1a1e24;
    font-size: 18px;
}

.landing-v2__split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.landing-v2__media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-v2__checks {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.landing-v2__check-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-v2__figure {
    margin: 0;
    overflow: hidden;
}

.landing-v2__figure img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #f4f6f8;
}

.landing-v2__figure figcaption {
    padding: 10px 12px;
    color: var(--ui-muted);
    font-size: 12px;
}

.policy-page .public-list--bullets,
.manual-page .public-list--bullets {
    padding-left: 18px;
    list-style: disc;
}

.policy-page .public-list--bullets li,
.manual-page .public-list--bullets li {
    display: list-item;
}

.contact-hero {
    justify-items: start;
}

.contact-hero__logo {
    width: 120px;
    height: auto;
    margin-bottom: 6px;
}

.manual-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.manual-section {
    scroll-margin-top: 80px;
}

.manual-section > * + * {
    margin-top: 14px;
}

.manual-media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manual-media-grid--checks .landing-v2__figure img {
    aspect-ratio: 4 / 3;
}

@keyframes routeFlow {
    from { background-position: 180% 0; }
    to { background-position: -40% 0; }
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.28); }
}

@media (max-width: 1100px) {
    .landing-v2__grid,
    .landing-v2__check-grid,
    .manual-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .landing-v2__hero,
    .landing-v2__split,
    .manual-lang-grid {
        grid-template-columns: 1fr;
    }

    .landing-v2__media-grid {
        grid-template-columns: 1fr;
    }

    .world-connect {
        min-height: 300px;
    }
}

@media (max-width: 560px) {
    .landing-v2__grid,
    .landing-v2__check-grid,
    .manual-media-grid,
    .app-nav__resource-row {
        grid-template-columns: 1fr;
    }

    .world-connect__caption {
        align-items: flex-start;
        flex-direction: column;
    }
}

.guest-topbar__nav {
    margin-left: auto;
}

/* Index correction: logo hero, real SVG world map, no screenshots on landing. */
.landing-v2__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.landing-v2__brand strong {
    display: block;
    margin-top: 3px;
    color: var(--ui-text);
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.landing-v2__logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    padding: 8px;
    border: 1px solid rgba(26, 30, 36, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.landing-v2__text-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--ui-shadow);
}

.world-connect__map,
.world-connect__node,
.world-connect__route {
    display: none;
}

.world-connect__svg {
    position: absolute;
    inset: 18px 18px 68px;
    width: calc(100% - 36px);
    height: calc(100% - 86px);
}

.world-connect__grid path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

.world-connect__continents path {
    fill: rgba(126, 167, 154, 0.72);
    stroke: rgba(202, 255, 235, 0.32);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.world-connect__route-svg {
    fill: none;
    stroke: url(#routeGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 18 18;
    animation: worldRouteDash 1.3s linear infinite;
    vector-effect: non-scaling-stroke;
}

.world-connect__route-svg--two { animation-delay: 0.18s; }
.world-connect__route-svg--three { animation-delay: 0.36s; }
.world-connect__route-svg--four { animation-delay: 0.54s; }

.world-connect__nodes circle {
    fill: #22c55e;
    stroke: #d7fff0;
    stroke-width: 4;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.9));
    transform-box: fill-box;
    transform-origin: center;
    animation: worldNodePulse 2s ease-in-out infinite;
}

.world-connect__nodes circle:nth-child(2) { animation-delay: 0.22s; }
.world-connect__nodes circle:nth-child(3) { animation-delay: 0.44s; }
.world-connect__nodes circle:nth-child(4) { animation-delay: 0.66s; }
.world-connect__nodes circle:nth-child(5) { animation-delay: 0.88s; }

@keyframes worldRouteDash {
    from { stroke-dashoffset: 72; }
    to { stroke-dashoffset: 0; }
}

@keyframes worldNodePulse {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.45); opacity: 1; }
}

@media (max-width: 820px) {
    .landing-v2__text-panel {
        grid-template-columns: 1fr;
    }

    .landing-v2__logo {
        width: 64px;
        height: 64px;
    }
}

/* Better map rendering: dotted world-map silhouette inspired by network-map references. */
.world-connect {
    background:
        radial-gradient(circle at 50% 42%, rgba(34, 197, 94, 0.14), transparent 36%),
        radial-gradient(circle at 76% 34%, rgba(125, 211, 252, 0.12), transparent 24%),
        linear-gradient(135deg, #06101a 0%, #0b1720 48%, #071019 100%);
}

.world-connect__svg {
    inset: 12px 10px 68px;
    width: calc(100% - 20px);
    height: calc(100% - 80px);
}

.world-connect__grid path {
    stroke: rgba(125, 211, 252, 0.06);
}

#mapDots circle {
    fill: rgba(158, 197, 184, 0.92);
}

.world-connect__continents path {
    fill: url(#mapDots);
    stroke: rgba(130, 255, 210, 0.18);
    stroke-width: 1.4;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.16));
}

.world-connect__route-svg {
    stroke-width: 3.2;
    stroke-dasharray: 12 18;
    opacity: 0.95;
}

.world-connect__route-svg--five { animation-delay: 0.72s; }

.world-connect__nodes circle:nth-child(6) { animation-delay: 1.1s; }

/* Use real jVectorMap world geometry on the landing page. */
.world-connect__real-map {
    position: absolute;
    inset: 12px 10px 66px;
    z-index: 1;
}

.world-connect__real-map::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(125, 211, 252, 0.045) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(125, 211, 252, 0.045) 0 1px, transparent 1px 42px);
    mask-image: radial-gradient(circle at 50% 50%, #000 0 72%, transparent 98%);
}

.world-connect__real-map .jvectormap-container {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
}

.world-connect__real-map .jvectormap-region {
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.12));
}

.world-connect__real-map .jvectormap-marker {
    animation: worldNodePulse 2s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.9));
}

.world-connect__overlay {
    position: absolute;
    inset: 12px 10px 66px;
    z-index: 3;
    width: calc(100% - 20px);
    height: calc(100% - 78px);
    pointer-events: none;
}

.world-connect__overlay .world-connect__route-svg {
    stroke-width: 3.4;
    stroke-dasharray: 10 20;
    opacity: 0.98;
}

.world-connect__caption {
    z-index: 4;
}

/* Landing map final tuning: light grey background, visible animated routes, no caption. */
.world-connect {
    background:
        radial-gradient(circle at 50% 42%, rgba(13, 110, 253, 0.08), transparent 38%),
        radial-gradient(circle at 80% 28%, rgba(34, 197, 94, 0.08), transparent 26%),
        linear-gradient(135deg, #eef1f4 0%, #dfe4e8 52%, #f6f7f8 100%);
}

.world-connect__real-map,
.world-connect__overlay {
    inset: 14px 10px 14px;
    height: calc(100% - 28px);
}

.world-connect__real-map::before {
    background:
        repeating-linear-gradient(0deg, rgba(31, 41, 55, 0.035) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(31, 41, 55, 0.035) 0 1px, transparent 1px 42px);
}

.world-connect__real-map .jvectormap-region {
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.08));
}

.world-connect__real-map .jvectormap-marker {
    filter: drop-shadow(0 0 8px rgba(13, 110, 253, 0.65));
}

.world-connect__overlay {
    width: calc(100% - 20px);
    z-index: 10;
}

.world-connect__overlay .world-connect__route-svg {
    stroke: #0d6efd;
    stroke-width: 4.8;
    stroke-linecap: round;
    stroke-dasharray: 14 16;
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(13, 110, 253, 0.8));
}

.world-connect__route-svg--two,
.world-connect__route-svg--four {
    stroke: #16a34a !important;
    filter: drop-shadow(0 0 5px rgba(22, 163, 74, 0.72));
}

.world-connect__caption {
    display: none !important;
}

/* Route correction: thin black point-to-point continent links. */
.world-connect__overlay .world-connect__route-svg {
    stroke: rgba(17, 24, 39, 0.82) !important;
    stroke-width: 1.65 !important;
    stroke-dasharray: 7 10;
    opacity: 0.9;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7));
}

.world-connect__route-svg--two,
.world-connect__route-svg--four {
    stroke: rgba(17, 24, 39, 0.82) !important;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7));
}

/* Final hard override for landing map routes after screenshot review. */
.world-connect__overlay .world-connect__routes .world-connect__route-svg,
.world-connect__overlay .world-connect__routes .world-connect__route-svg--one,
.world-connect__overlay .world-connect__routes .world-connect__route-svg--two,
.world-connect__overlay .world-connect__routes .world-connect__route-svg--three,
.world-connect__overlay .world-connect__routes .world-connect__route-svg--four,
.world-connect__overlay .world-connect__routes .world-connect__route-svg--five {
    fill: none !important;
    stroke: #111827 !important;
    stroke-width: 1.35 !important;
    stroke-linecap: round !important;
    stroke-dasharray: 5 8 !important;
    opacity: 0.72 !important;
    filter: none !important;
    animation: worldRouteDash 1.6s linear infinite !important;
}

/* Dynamic point-accurate map network. */
.world-connect__nodes {
    pointer-events: none;
}

.world-connect__pin-halo {
    fill: rgba(255, 255, 255, 0.72);
    stroke: rgba(17, 24, 39, 0.08);
    stroke-width: 1;
}

.world-connect__pin-ring {
    fill: #ffffff;
    stroke: #111827;
    stroke-width: 1.35;
}

.world-connect__pin-core {
    fill: #19b86a;
    stroke: #ffffff;
    stroke-width: 1.2;
}

.world-connect__pin {
    filter: drop-shadow(0 3px 7px rgba(15, 23, 42, 0.22));
    transform-box: fill-box;
    transform-origin: center;
    animation: worldPinBreathe 2.4s ease-in-out infinite;
}

.world-connect__pin:nth-child(2) { animation-delay: 0.18s; }
.world-connect__pin:nth-child(3) { animation-delay: 0.36s; }
.world-connect__pin:nth-child(4) { animation-delay: 0.54s; }
.world-connect__pin:nth-child(5) { animation-delay: 0.72s; }
.world-connect__pin:nth-child(6) { animation-delay: 0.9s; }

.world-connect__overlay .world-connect__routes .world-connect__route-svg {
    stroke: rgba(17, 24, 39, 0.66) !important;
    stroke-width: 1.15 !important;
    stroke-dasharray: 4 7 !important;
    opacity: 0.78 !important;
}

.world-connect__overlay .world-connect__routes .world-connect__route-svg:nth-child(2) { animation-delay: 0.16s !important; }
.world-connect__overlay .world-connect__routes .world-connect__route-svg:nth-child(3) { animation-delay: 0.32s !important; }
.world-connect__overlay .world-connect__routes .world-connect__route-svg:nth-child(4) { animation-delay: 0.48s !important; }
.world-connect__overlay .world-connect__routes .world-connect__route-svg:nth-child(5) { animation-delay: 0.64s !important; }

@keyframes worldPinBreathe {
    0%, 100% { opacity: 0.92; }
    50% { opacity: 1; }
}

/* Smaller pins and crypto-style rotating IP labels. */
.world-connect__pin-halo {
    fill: rgba(255, 255, 255, 0.62) !important;
    stroke: rgba(17, 24, 39, 0.06) !important;
}

.world-connect__pin-ring {
    fill: #ffffff !important;
    stroke: #111827 !important;
    stroke-width: 1.05 !important;
}

.world-connect__pin-core {
    fill: #19b86a !important;
    stroke: #ffffff !important;
    stroke-width: 0.8 !important;
}

.world-connect__ip-line {
    font-family: "Courier New", monospace;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.02em;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.82);
    stroke-width: 2px;
    fill: rgba(17, 24, 39, 0.86);
    pointer-events: none;
}

.world-connect__ip-hash {
    fill: rgba(17, 24, 39, 0.52);
    font-size: 6px;
}

.landing-v2__anonymity {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 8% 20%, rgba(25, 135, 84, 0.09), transparent 28%),
        #fff;
    box-shadow: var(--ui-shadow);
}

.landing-v2__anonymity h2 {
    margin: 0 0 8px;
}

.landing-v2__anonymity p + p {
    margin-top: 8px;
}

.landing-v2__crypto {
    display: grid;
    align-content: center;
    gap: 12px;
}

.landing-v2__coin-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.landing-v2__coin-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--ui-border);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--ui-text);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 820px) {
    .landing-v2__anonymity {
        grid-template-columns: 1fr;
    }

    .world-connect__ip-line {
        display: none;
    }
}

/* Neutral grey landing palette override. */
.landing-v2__hero {
    background:
        radial-gradient(circle at 12% 14%, rgba(100, 116, 139, 0.10), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(71, 85, 105, 0.08), transparent 30%),
        #f4f5f6 !important;
}

.world-connect {
    background:
        radial-gradient(circle at 50% 42%, rgba(100, 116, 139, 0.08), transparent 38%),
        radial-gradient(circle at 80% 28%, rgba(71, 85, 105, 0.07), transparent 26%),
        linear-gradient(135deg, #eef0f2 0%, #dfe3e7 52%, #f7f8f9 100%) !important;
}

.world-connect__real-map .jvectormap-region {
    fill: #7f8a87 !important;
}

.landing-v2__anonymity {
    background:
        radial-gradient(circle at 8% 20%, rgba(100, 116, 139, 0.08), transparent 28%),
        #f7f8f9 !important;
}

/* Strong visible table borders for proxy, history and payment pages. */
.proxy-table,
.history-table,
.payment-table,
.table-compact.proxy-table,
.table-compact.history-table,
.table-compact.payment-table {
    border-collapse: collapse !important;
    border: 1px solid #b8c0ca !important;
}

.proxy-table > :not(caption) > * > *,
.history-table > :not(caption) > * > *,
.payment-table > :not(caption) > * > *,
.table-compact.proxy-table > :not(caption) > * > *,
.table-compact.history-table > :not(caption) > * > *,
.table-compact.payment-table > :not(caption) > * > * {
    border: 1px solid #bec3c738 !important;
    background-clip: padding-box;
}

.proxy-table thead th,
.history-table thead th,
.payment-table thead th {
    background: #eef2f5 !important;
    color: #1f2937 !important;
    border-color: #aab4bf !important;
}

.proxy-table tbody tr:nth-child(even) td,
.history-table tbody tr:nth-child(even) td,
.payment-table tbody tr:nth-child(even) td {
    background: #f8fafc !important;
}

.proxy-table tbody tr:hover td,
.history-table tbody tr:hover td,
.payment-table tbody tr:hover td {
    background: #edf4fb !important;
}

/* Buy Proxy modal compact layout and larger fingerprint icons. */
#period-modal .modal-dialog {
    max-width: 680px !important;
}

#period-modal .modal-content {
    border-radius: 7px;
}

#period-modal .modal-header,
#period-modal .modal-body,
#period-modal .modal-footer {
    padding: 12px 16px;
}

#period-modal .alert {
    margin-bottom: 12px !important;
    padding: 8px 12px !important;
}

#period-modal .fingerprint-option {
    padding: 12px !important;
}

#period-modal .fingerprint-option i,
#period-modal .fingerprint-option .fab,
#period-modal .fingerprint-option .fas,
#period-modal .fingerprint-option .fa {
    font-size: 56px !important;
    line-height: 1 !important;
    width: auto !important;
    margin-bottom: 8px !important;
}

#period-modal .fingerprint-option h4,
#period-modal .period-option h4 {
    font-size: 15px !important;
}

#period-modal .fingerprint-option p,
#period-modal .period-option p {
    font-size: 12px !important;
}

/* FAQ and Terms language tabs. */
.policy-tabs-page {
    gap: 16px;
}

.policy-language-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #fff;
}

.policy-language-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    border: 1px solid #d8dee6;
    border-radius: 999px;
    color: #334155;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
}

.policy-language-tabs .nav-link.active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.policy-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.policy-card h2 {
    display: flex;
    align-items: center;
    gap: 9px;
}

.policy-card h2 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #eef2f5;
    color: #111827;
    font-size: 15px;
}

.policy-important {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #f2d48b;
    border-radius: 10px;
    background: #fff8e5;
    color: #6b4e00 !important;
    font-weight: 700;
}

.policy-important i {
    margin-top: 2px;
    flex: 0 0 auto;
}

/* Reworked FAQ/Terms pages: stable custom tabs without Bootstrap pill shift. */
.policy-shell {
    display: grid;
    gap: 16px;
}

.policy-hero-card,
.policy-lang-bar,
.policy-lang-panel.is-active {
    border: 1px solid #d8dee6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.policy-hero-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background:
        radial-gradient(circle at 8% 20%, rgba(100, 116, 139, 0.10), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f4f6f8 100%);
}

.policy-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.policy-hero-card h1 {
    margin: 0 0 8px;
    color: #111827;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.policy-hero-card p,
.policy-panel-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.policy-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.policy-hero-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #d8dee6;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
}

.policy-lang-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.policy-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    transform: none !important;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.policy-lang-btn:hover {
    background: #f1f5f9;
    color: #111827;
}

.policy-lang-btn.is-active {
    background: #111827;
    border-color: #111827;
    color: #fff;
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.14);
}

.policy-lang-panel {
    display: none;
}

.policy-lang-panel.is-active {
    display: grid;
    gap: 14px;
    padding: 16px;
    animation: policyPanelIn 0.18s ease-out both;
}

.policy-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    background: #f8fafc;
}

.policy-panel-head span {
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.policy-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.policy-info-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 100%;
    padding: 16px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
}

.policy-info-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #111827;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.policy-info-card h2 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #eef2f6;
    color: #111827;
    flex: 0 0 34px;
    font-size: 16px;
}

.policy-highlight {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.policy-highlight--warning {
    border-color: #f2d48b;
    background: #fff8e5;
    color: #6b4e00;
}

.policy-highlight i {
    margin-top: 2px;
    flex: 0 0 auto;
}

.policy-info-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: #334155;
}

.policy-info-card li {
    font-size: 13px;
    line-height: 1.5;
}

@keyframes policyPanelIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .policy-hero-card,
    .policy-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .policy-lang-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .policy-lang-bar,
    .policy-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Minimal policy pages: language select instead of tabs. */
.policy-lang-bar,
.policy-lang-btn {
    display: none !important;
}

.policy-lang-select-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d8dee6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.policy-lang-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.policy-lang-select {
    width: min(240px, 100%);
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d8dee6;
    border-radius: 12px;
    background: #f8fafc;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.policy-lang-select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.policy-panel-head {
    background: #ffffff;
    border-color: #eef2f6;
}

.policy-info-card {
    box-shadow: none;
}

.policy-info-card ul {
    padding-left: 16px;
}

.policy-highlight {
    border-radius: 12px;
}

@media (max-width: 560px) {
    .policy-lang-select-row {
        flex-direction: column;
        align-items: stretch;
    }

    .policy-lang-select {
        width: 100%;
    }
}
