body {
    background: linear-gradient(180deg, #eef1f5 0%, #f8f9fa 320px);
    font-family: 'Inter', -apple-system, sans-serif;
    color: #2b2f36;
}

.custom-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #eaecef;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(20, 30, 45, 0.04);
}

.custom-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: #1b1f27;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.custom-navbar .navbar-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.custom-navbar .container {
    max-width: 900px;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 899.98px) {
    .custom-navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 400px) {
    .custom-navbar .container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .custom-navbar .navbar-buttons {
        width: 100%;
        justify-content: center;
    }
}

.welcome-box {
    max-width: 900px;
    margin: 60px auto;
    padding: 46px 50px;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(20, 30, 45, 0.10), 0 2px 8px rgba(20, 30, 45, 0.06);
    background-color: #ffffff;
    border: 1px solid #eaecef;
    text-align: center;
}

.welcome-image {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(20, 30, 45, 0.10);
    border: 1px solid #eaecef;
}

.welcome-title {
    color: #1b1f27;
    margin-bottom: 6px;
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -0.01em;
}

.hero {
    padding: 6px 0 8px;
}

.hero h1 {
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #1b1f27, #3a4250);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 600;
}

.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2f855a;
    background: #e8f7ef;
    border: 1px solid #cdeedc;
    padding: 6px 14px;
    border-radius: 999px;
    margin: 14px 0 4px;
}

.badge-trust::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38a169;
    display: inline-block;
}

.badge-telegram {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    background: #229ED9;
    border: 1px solid #229ED9;
    padding: 7px 16px;
    border-radius: 999px;
    margin: 20px 0 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.badge-telegram:hover {
    background: #1c8ac0;
    border-color: #1c8ac0;
    color: #ffffff;
    transform: translateY(-1px);
}

.badge-telegram svg {
    flex-shrink: 0;
}

.welcome-text {
    margin: 28px 0 6px;
    text-align: center;
    padding: 0 10px;
    color: #5b6472;
    line-height: 1.7;
    font-size: 0.98rem;
}

hr.soft {
    border: none;
    border-top: 1px solid #edeff2;
    margin: 34px 0 26px;
}

.search-heading h4 {
    font-weight: 700;
    color: #1b1f27;
}

.search-heading p {
    font-size: 0.9rem;
}

.proxy-field {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.proxy-field .form-label {
    margin: 0;
    font-weight: 600;
    color: #2b2f36;
    white-space: nowrap;
}

#proxyForm .form-select,
#proxyForm .form-control {
    border-radius: 9px;
    border: 1px solid #dde1e6;
    padding: 10px 14px;
    min-width: 210px;
}

#proxyForm .form-select:focus,
#proxyForm .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
}

.btn {
    padding: 11px 28px;
    font-weight: 600;
    border-radius: 9px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #2b6cee;
    border-color: #2b6cee;
}

.btn-primary:hover {
    background: #1f56c9;
    border-color: #1f56c9;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: #2b6cee;
    color: #2b6cee;
}

.btn-outline-primary:hover {
    background: #2b6cee;
    border-color: #2b6cee;
    transform: translateY(-1px);
}

.btn-telegram {
    background: #229ED9;
    border-color: #229ED9;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-telegram:hover {
    background: #1c8ac0;
    border-color: #1c8ac0;
    color: #ffffff;
    transform: translateY(-1px);
}

.site-footer {
    margin-top: 50px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #8a94a6;
    font-size: 0.85rem;
    border-top: 1px solid #e2e5ea;
}

.site-footer p {
    margin: 0;
}

.showcase-img {
    max-height: 800px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    margin-top: 35px;
}

.modal-content {
    border-radius: 14px;
    border: none;
}

/* ==========================================================
   Responsive / Mobile-friendly rules
   ========================================================== */

/* Tablets and small laptops */
@media (max-width: 991.98px) {
    .welcome-box {
        max-width: 90%;
        margin: 40px auto;
        padding: 36px 30px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }
}

/* Phones (landscape) and small tablets */
@media (max-width: 767.98px) {
    body {
        background: linear-gradient(180deg, #eef1f5 0%, #f8f9fa 220px);
    }

    .welcome-box {
        max-width: 100%;
        margin: 20px auto;
        padding: 28px 20px;
        border-radius: 14px;
    }

    .welcome-title {
        font-size: 1.4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .welcome-text {
        font-size: 0.92rem;
        padding: 0;
    }

    .proxy-field {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .proxy-field .form-label {
        white-space: normal;
        margin-bottom: 2px;
    }

    #proxyForm .form-select,
    #proxyForm .form-control {
        min-width: 0;
        width: 100%;
    }

    #proxyForm button[type="submit"] {
        width: 100%;
    }

    .custom-navbar .navbar-brand {
        font-size: 1.05rem;
    }

    .custom-navbar .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .showcase-img {
        max-height: none;
    }

    .modal-dialog {
        margin: 10px;
    }
}

/* Small phones */
@media (max-width: 479.98px) {
    .welcome-box {
        padding: 22px 14px;
    }

    .welcome-title {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .badge-trust {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .badge-telegram {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .site-footer {
        font-size: 0.78rem;
        min-height: 56px;
    }
}

.search-box{
    max-width:900px;
    margin:55px auto;
    padding:35px;
    border-radius:22px;

    background:linear-gradient(135deg,#0d9f5b,#0b7d48);

    box-shadow:
        0 18px 45px rgba(0,0,0,.18);

    color:#fff;
}

.search-box h3{
    font-weight:800;
}

.search-box .form-control,
.search-box .form-select{
    height:52px;
    border-radius:12px;
    border:none;
    box-shadow:none;
}

.search-box .form-control:focus,
.search-box .form-select:focus{
    box-shadow:0 0 0 .25rem rgba(255,255,255,.25);
}

.search-box .btn{
    height:52px;
    border-radius:12px;
    font-weight:700;
    font-size:16px;
}

.search-popup {
    background: linear-gradient(135deg, #0d9f5b, #0b7d48);
    border: none;
    border-radius: 22px;
    color: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.search-popup .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.search-popup .modal-title {
    font-weight: 800;
}

.search-popup .modal-body {
    padding-top: 14px;
}

.search-popup .form-control,
.search-popup .form-select {
    height: 52px;
    border-radius: 12px;
    border: none;
    box-shadow: none;
}

.search-popup .form-control:focus,
.search-popup .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.search-popup .btn {
    height: 52px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
}

.search-popup .form-check-input {
    border: none;
    cursor: pointer;
}

@media (max-width: 575.98px) {
    .search-popup {
        border-radius: 16px;
    }

    .search-popup .modal-header {
        padding: 16px 18px 0;
    }

    .search-popup .modal-body {
        padding: 12px 18px 18px;
    }

    .search-popup .form-control,
    .search-popup .form-select,
    .search-popup .btn {
        height: 46px;
        font-size: 15px;
    }
}

@media (max-width:768px){

    .search-box{
        padding:25px;
        margin:40px 15px;
    }

}
.register-box{
    max-width:500px;
    margin:60px auto;
}

.register-card{
    background:white;
    padding:40px;
    border-radius:22px;
    box-shadow:0 15px 40px rgba(0,0,0,.12);
}

.tor-strip{
    text-align:center;
    padding:16px 12px;
}

.tor-pill{
    display:inline-block;
    max-width:100%;
    background:#e8f7ef;
    border:1px solid #cdebd9;
    border-radius:12px;
    padding:6px 14px;
    color:#2f855a;
    font-size:0.8rem;
    line-height:1.6;
    word-break:break-all;
}

.tor-pill .tor-label{
    font-weight:700;
    margin-right:4px;
}

.tor-pill a{
    color:#2f855a;
    font-weight:600;
    text-decoration:none;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

.tor-pill a:hover{
    text-decoration:underline;
}

@media (max-width:768px){
    .tor-pill{
        padding:6px 10px;
        border-radius:10px;
        font-size:0.75rem;
    }
}

.site-footer a{
    color:#2f855a;
    font-weight:600;
    text-decoration:none;
}

.site-footer a:hover{
    text-decoration:underline;
}

.site-footer .footer-sep{
    color:#c9d0da;
    margin:0 6px;
}

.legal-card{
    background:#ffffff;
    max-width:860px;
    margin:50px auto;
    padding:40px;
    border-radius:22px;
    box-shadow:0 15px 40px rgba(0,0,0,.12);
}

.legal-card h1{
    font-size:1.65rem;
    font-weight:800;
    color:#1b1f27;
    margin-bottom:4px;
}

.legal-card .legal-updated{
    color:#8a94a6;
    font-size:0.85rem;
    margin-bottom:24px;
}

.legal-card h2{
    font-size:1.05rem;
    font-weight:700;
    color:#1b1f27;
    margin-top:26px;
    margin-bottom:8px;
}

.legal-card p,
.legal-card li{
    color:#4a5568;
    font-size:0.93rem;
    line-height:1.75;
}

.legal-card ul{
    padding-left:22px;
}

.legal-card a{
    color:#2f855a;
    font-weight:600;
    text-decoration:none;
}

.legal-card a:hover{
    text-decoration:underline;
}

@media (max-width:768px){
    .legal-card{
        margin:30px 15px;
        padding:24px 18px;
        border-radius:16px;
    }
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 24px;
    background: #1b1f27;
    color: #e8ebf0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.cookie-banner-link {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-banner-link:hover {
    color: #38a169;
}

.cookie-banner-btn {
    border: none;
    background: #0d9f5b;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 26px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-banner-btn:hover {
    background: #0b7d48;
}

@media (max-width: 575.98px) {
    .cookie-banner {
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
    }

    .cookie-banner-text {
        font-size: 0.82rem;
    }
}
