/*
Theme Name: Neoline.uz
Theme URI: https://Neoline.uz
Description: Neoline.uz
Author: Petr K.
Author URI: https://t.me/kuppeter
Version: 1.0
Tested up to: 1.0
Requires at least: 3.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: site, simple 
Text Domain: Neoline.uz
*/

@font-face {
    font-family: 'Cera Pro';
    src: url('fonts/CeraPro-Regular.ttf') format('truetype');
}

* {margin:0; padding:0;}

body {font-family:'Cera Pro',sans-serif; margin:0; font-size:16px; color:#4D4D4D;}

a {text-decoration:none;}

.wrapper {max-width:2600px; margin:0 auto;}

.top-line {display:flex; justify-content:center; background:#DFF6FF; height:60px; align-items:center; gap:100px;}
.top-line button {background:#01A0E2; padding:10px 20px; border-radius:10px; color:#fff; height:40px; border:none; cursor:pointer;}

header {box-shadow:0 2px 15px #0000001C; margin-bottom:45px; padding-bottom:75px; background:#fff;}
header>div,main,footer>div {max-width:1760px; margin:0 auto;}
header>div {position:relative;}
.head-block-1 {border-bottom:1px solid #EAEDEC; display:flex; justify-content:space-between;}
.head-block-1 a,.head-block-2 a {font-size:18px; color:#4D4D4D;}
.head-block-1 a:hover,.head-block-2 a:hover {color:#000; text-decoration:underline;}
.head-block-1 nav ul {display:flex; list-style:none; gap:40px; align-items:center; height:45px;}
.head-block-1>div {display:flex; align-items:center; gap:40px;}
.head-block-1>div span {display:flex; align-items:center; gap:10px;}
.head-block-1>div span .current {text-transform:uppercase; font-weight:bold;}
.head-block-2 {display:flex; flex-direction:column; position:absolute; width:100%; top:46px; z-index:9; background:#fff; align-items:center;}
.head-block-2 .h-b-2_content {display:flex; justify-content:space-between; align-items:center; padding:0 5px; width:1760px;}
.head-block-2.fixed {position:fixed; background:#fff; top:0; box-shadow:0 2px 15px #0000001C; width:100%; left:0; align-items:center;}
.head-block-2 nav ul {display:flex; list-style:none; gap:85px; align-items:center; height:75px;}
.head-block-2 nav a {font-weight:bold;}
.head-block-2 .h-b-2_content>div {display:flex; align-items:center; gap:20px;}
.head-block-2 .h-b-2_content>div .cart {background:#DFF6FF; position:relative;}
.head-block-2 .h-b-2_content>div small {background:#FF5655; width:18px; height:18px; border-radius:50%; position:absolute; color:#fff; top:-9px; right:-5px;
	display:flex; justify-content:center; align-items:center; border:1px solid #fff; font-size:14px;}
.head-block-2 .h-b-2_content>div .lk {background:#EAEDEC;}
.head-block-2 .h-b-2_content>div .cart,.head-block-2 .h-b-2_content>div .lk {width:40px; height:40px; display:flex; justify-content:center; 
	align-items:center;	border-radius:50%;}
.visibility-hidden {/*visibility:hidden;*/}
.head-block-2 .mobile-nav-wrap {display:none !important;}

main {padding:0 10px;}

footer {background:#383838; padding:0 15px 40px 15px;}
.footer-up {display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #515151; height:110px; padding-top:20px;}
.footer-up a {color:#fff; font-size:18px; font-weight:bold; display:flex; flex-direction:row-reverse; align-items:center; gap:20px;}
.footer-middle {display:flex; justify-content:space-between; margin-top:36px;}
.footer-middle .cols {display:flex; gap:85px;}
.footer-middle .cols span {display:flex; font-weight:bold; font-size:18px; color:#A1A1A1;}
.footer-middle .cols a {font-size:18px; color:#fff;}
.footer-middle .cols a:hover {text-decoration:underline;}
.footer-middle .cols ul {list-style:none; display:flex; flex-direction:column; gap:15px; margin-top:16px;}
.footer-middle .right .b1 {display:flex; flex-direction:column; margin-bottom:20px; gap:10px;}
.footer-middle .right .b1 a {font-size:24px; color:#fff; align-self:flex-end;}
.footer-middle .right .b2 {display:flex; flex-direction:column; gap:10px;}
.footer-middle .right .b2 span {align-self:flex-end;}
.footer-middle .right .b2>div {align-self:flex-end; display:flex; gap:10px;}
.footer-middle .right span {font-weight:bold; font-size:18px; color:#A1A1A1;}
.footer-down {font-size:18px; color:#A1A1A1; margin:80px 0 0 0;}

.ajax-go {color:transparent !important; background:#01A0E2 url(images/ajax-go-1.gif) center no-repeat !important; pointer-events:none;}

.dark {position:fixed; top:0; left:0; width:100%; height:100%; background:#333333a6; z-index:100; display:none;}
.dark.active {display:flex; align-items:center; justify-content:center;}
.dark .pop {background:#fff; max-width:530px; display:flex; flex-direction:column; gap:20px; align-items:center; padding:36px;
	position:relative; border-radius:40px; color:#4D4D4D; font-size:18px;}
.dark .pop .header {font-size:32px; font-weight:bold; color:#000; margin-top:-10px; text-align:center;}
.dark .pop input {height:60px; border-radius:10px; border:1px solid #DEDEDE; font-size:18px; color:#4D4D4D; padding:0 5px;}
.dark .pop button {height:63px; border-radius:20px; border:none; font-size:18px; font-weight:bold; color:#fff; background:#01A0E2;
	padding:0 30px; cursor:pointer;}
.dark .pop .close {font-size:32px; font-weight:bold; color:#4D4D4D; position:absolute; right:20px; top:5px; cursor:pointer;}
.dark .pop .code {display:none; text-align:center; letter-spacing:10px;}
.dark .pop .Ok {display:none; cursor:pointer; padding:10px 15px; border-radius:10px; background:#01A0E2; color:#fff;}


@media screen and (max-width:1920px){
	header>div,main,footer>div {max-width:1320px;}
	.head-block-2 nav ul {gap:64px;}
	.head-block-2 .h-b-2_content {width:1320px;}
}
@media screen and (max-width:1339px){
	.head-block-1 {padding:0 15px;}
	
	.head-block-2.fixed {width:100vw;}
	.head-block-2 nav ul {gap:40px;}
	.head-block-2 .h-b-2_content {width:99%;}
}
@media screen and (max-width:1146px){	
	.head-block-1 nav ul {gap:15px;}
	.head-block-1 a, .head-block-2 a {font-size:16px;}
	
	.head-block-2 nav ul {gap:20px;}
}
@media screen and (max-width:961px){
	.top-menu-desctop,.desctop-nav {display:none;}
	
	.head-block-1 {flex-direction:column;}
	.head-block-1>div {justify-content:center; margin:5px 0;}
	
	.head-block-2 {top:30px;}
	.head-block-2 .mobile-nav-wrap {display:flex !important; position:relative; justify-content:center;}
	.head-block-2 .mobile-nav-wrap>div {position:absolute; z-index:5; width:280px; left:-80px; top:36px; display:none;}	
	.head-block-2 .mobile-nav-wrap ul {display:flex; flex-direction:column; height:unset !important; background:#fffffff7; 
		gap:10px !important; align-items:flex-start !important; padding:7px;}
	.head-block-2 .mobile-nav-wrap ul li {margin-top:5px;}
	.head-block-2 .mobile-nav-wrap .mobile-nav {border-bottom:1px solid #aaa;}
	.head-block-2 .h-b-2_content {padding:8px 5px;}
	.head-block-2 .h-b-2_content>div {width:120px;}	
}

.add-to-cart:has(.not-available) {pointer-events:none; position:relative; padding-bottom:2px;}
.add-to-cart .not-available {position:absolute; bottom:3px; font-size:13px;}


@media screen and (max-width:670px){
	.top-line {height:unset; padding:5px; gap:20px;}
	
	header {padding-bottom:64px;}	
	
	.footer-up {flex-direction:column;}
	.footer-middle {flex-direction:column;}
	.footer-middle .cols {flex-wrap:wrap; justify-content:center; gap:36px;}
	.footer-middle .cols>div {width:80%;}
	.footer-middle .right {margin-top:30px; display:flex; flex-direction:column;}
	.footer-middle .right .b1 {align-items:center; text-align:center;}
	.footer-middle .right .b1 a {align-self:unset;}
	.footer-middle .right .b2 {align-items:center;}
	.footer-middle .right .b2>* {align-self:unset !important;}
	
	.footer-down {margin:30px 0 0 0; text-align:center;}
	
	.no-mob {display:none;}
}


/* стили телеграм */

.pop .divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.pop .divider span {
    background: white;
    padding: 0 10px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.pop .divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.pop .telegram-btn {
    width: 100%;
    background: #0088cc;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.pop .telegram-btn:hover {
    background: #006699;
}

.pop .telegram-btn.ajax-go {
    opacity: 0.6;
    pointer-events: none;
}
/* ===== TELEGRAM INFO BLOCK ===== */
.telegram-info-block {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    background: #f9f9f9;
}

.telegram-info-block legend {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.telegram-info-block p {
    margin: 10px 0;
    font-size: 14px;
}

.telegram-info-block strong {
    color: #01A0E2;
}

.telegram-bind-button {
    background: #0088cc;
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.telegram-bind-button:hover {
    background: #0077b5;
}

.telegram-unbind-button {
    background: #dc3545;
    color: #fff !important;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}

.telegram-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 13px;
    margin-left: 10px;
}

.telegram-status.connected {
    background: #d4edda;
    color: #155724;
}

.telegram-status.not-connected {
    background: #f8d7da;
    color: #721c24;
}
/* ===== FIRMWARE DASHBOARD - CLEAN STYLES ===== */
.bfc-firmware-dashboard {
    --s: #fff; --s2: #f5f7fa; --b: #e2e6ed;
    --a: #00a8e8; --a2: #0091cc; --g: #16a34a;
    --t: #1a1f2e; --m: #8a93a6;
    font-family: 'DM Sans', sans-serif;
    color: var(--t);
    padding: 8px 0 24px;
    width: 100%;
    display: block;
}

/* ===== HEADER ===== */
.bfc-firmware-dashboard .bfc-dashboard-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--b);
}

.bfc-firmware-dashboard .bfc-dashboard-header h2 {
    font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 800;
    color: var(--t); margin: 0; letter-spacing: -.03em;
}

.bfc-firmware-dashboard .bfc-dashboard-header p {
    font-size: 0.9rem; color: var(--m); margin: 4px 0 0;
}

.bfc-firmware-dashboard .bfc-device-count-badge {
    background: var(--s); border: 1px solid var(--b); border-radius: 100px;
    padding: 8px 18px; font-size: 0.85rem; color: var(--m);
    font-weight: 600; text-transform: uppercase; white-space: nowrap;
}

.bfc-firmware-dashboard .bfc-device-count-badge span { color: var(--a); }

/* ===== DEVICES LIST ===== */
.bfc-firmware-dashboard #bfc-devices-list {
    display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px;
    list-style: none; padding: 0;
}

.bfc-firmware-dashboard .bfc-device-card {
    background: var(--s); border: 1px solid var(--b); border-radius: 20px;
    overflow: hidden; transition: border-color .2s, box-shadow .2s;
}

.bfc-firmware-dashboard .bfc-device-card:hover {
    border-color: rgba(0,168,232,.4);
    box-shadow: 0 4px 18px rgba(0,168,232,.08);
}

/* ===== CARD HEADER ===== */
.bfc-firmware-dashboard .bfc-card-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 24px 28px; border-bottom: 1px solid var(--b);
    background: var(--s);
}

.bfc-firmware-dashboard .bfc-card-header-left {
    display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0;
}

.bfc-firmware-dashboard .bfc-device-icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--s2);
    border: 1px solid var(--b); display: flex; align-items: center;
    justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}

.bfc-firmware-dashboard .bfc-device-info h3 {
    font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700;
    color: var(--t); line-height: 1.3; margin: 0;
}

.bfc-firmware-dashboard .bfc-device-info .bfc-device-type,
.bfc-firmware-dashboard .bfc-device-info .bfc-serial {
    font-size: 0.85rem; color: var(--m); margin-top: 4px;
}

/* ===== BADGES ===== */
.bfc-firmware-dashboard .bfc-updates-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0,168,232,.1); border: 1px solid rgba(0,168,232,.25);
    color: #0080b8; padding: 8px 16px; border-radius: 100px;
    font-size: 0.85rem; font-weight: 500; flex-shrink: 0;
}

.bfc-firmware-dashboard .bfc-dot {
    width: 6px; height: 6px; background: var(--a); border-radius: 50%;
    animation: bfc-pulse 2s infinite;
}

.bfc-firmware-dashboard .bfc-ok-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.2);
    color: var(--g); padding: 8px 16px; border-radius: 100px;
    font-size: 0.85rem; font-weight: 500; flex-shrink: 0;
}

/* ===== UPDATES LIST ===== */
.bfc-firmware-dashboard .bfc-updates-list {
    list-style: none; margin: 0; padding: 0; border: none;
}

.bfc-firmware-dashboard .bfc-update-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 16px 28px; border-bottom: 1px solid var(--b);
    background: var(--s); transition: background .15s;
}

.bfc-firmware-dashboard .bfc-update-row:last-child { border-bottom: none; }
.bfc-firmware-dashboard .bfc-update-row:hover { background: #f5f7fa; }

.bfc-firmware-dashboard .bfc-update-name {
    font-size: 0.95rem; color: #6b7280; line-height: 1.5; flex: 1; min-width: 0;
}

/* ===== DOWNLOAD BUTTON ===== */
.bfc-firmware-dashboard .bfc-download-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; background: var(--s2); border: 1px solid var(--b);
    color: var(--t); padding: 10px 18px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 500; cursor: pointer;
    white-space: nowrap; flex-shrink: 0; transition: all .15s;
    border-bottom: none; min-width: 130px; margin-left: auto;
}

.bfc-firmware-dashboard .bfc-download-btn:hover {
    background: var(--a); border-color: var(--a); color: #fff;
}

.bfc-firmware-dashboard .bfc-download-btn svg {
    width: 16px; height: 16px; flex-shrink: 0;
}

/* ===== CARD FOOTER ===== */
.bfc-firmware-dashboard .bfc-card-footer {
    display: flex; justify-content: flex-end; padding: 20px 28px;
    background: #f8f9fb; border-top: 1px solid var(--b);
}

.bfc-firmware-dashboard .bfc-check-updates {
    display: flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid var(--b);
    color: var(--m); padding: 12px 20px; border-radius: 8px;
    font-size: 0.9rem; cursor: pointer; transition: all .15s;
    border-bottom: none; flex-shrink: 0;
}

.bfc-firmware-dashboard .bfc-check-updates:hover {
    border-color: rgba(0,168,232,.5); color: var(--a);
    background: rgba(0,168,232,.05);
}

.bfc-firmware-dashboard .bfc-check-updates svg {
    width: 16px; height: 16px; flex-shrink: 0;
}

/* ===== ADD SECTION ===== */
.bfc-firmware-dashboard .bfc-add-section {
    background: var(--s); border: 1px solid var(--b); border-radius: 14px;
    padding: 28px; margin-top: 30px;
}

.bfc-firmware-dashboard .bfc-add-section h3 {
    font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700;
    margin: 0 0 20px; color: var(--t);
}

.bfc-firmware-dashboard .bfc-form-row {
    display: flex; gap: 15px; flex-wrap: wrap; align-items: flex-end;
}

.bfc-firmware-dashboard .bfc-form-group { flex: 1; min-width: 200px; }

.bfc-firmware-dashboard .bfc-form-group label {
    display: block; font-size: 0.75rem; color: var(--m); margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: .06em; font-weight: 500;
}

.bfc-firmware-dashboard .bfc-form-group select,
.bfc-firmware-dashboard .bfc-form-group input[type="text"] {
    width: 100%; background: var(--s2); border: 1px solid var(--b);
    color: var(--t); padding: 12px 16px; border-radius: 9px;
    font-size: 0.95rem; outline: none; height: auto; line-height: 1.4;
}

.bfc-firmware-dashboard #bfc-add-device-form button[type="submit"],
.bfc-firmware-dashboard .bfc-submit-btn {
    background: var(--a); border: none; color: #fff; padding: 12px 28px;
    border-radius: 9px; font-size: 0.95rem; font-family: 'Syne', sans-serif;
    font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: all .15s; border-bottom: none;
}

.bfc-firmware-dashboard #bfc-add-device-form button[type="submit"]:hover,
.bfc-firmware-dashboard .bfc-submit-btn:hover {
    background: var(--a2); transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,168,232,.3);
}

/* ===== OVERRIDE THEME STYLES ===== */
.woocommerce-MyAccount-content .bfc-firmware-dashboard a,
.bfc-firmware-dashboard a { border-bottom: none; }
.bfc-firmware-dashboard button { border-bottom: none; }

@keyframes bfc-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ===== RESPONSIVE ===== */
@media (max-width:600px) {
    .bfc-firmware-dashboard .bfc-dashboard-header { 
        flex-direction: column; align-items: flex-start; gap: 10px; 
    }
    .bfc-firmware-dashboard .bfc-update-row { 
        flex-direction: column; align-items: flex-start; gap: 12px; 
    }
    .bfc-firmware-dashboard .bfc-form-row { flex-direction: column; }
    .bfc-firmware-dashboard .bfc-form-group { min-width: unset; width: 100%; }
    .bfc-firmware-dashboard .bfc-download-btn { width: 100%; }
}

/* ============================================ */
/* 404 Error Page */
/* ============================================ */
.error-404 {
	background: #F5F5F5;
	text-align: center;
	padding: 20px 20px 20px 20px;
	min-height: calc(100vh - 200px); /* Высота экрана минус шапка и футер */
	display: flex;
	align-items: center;
	justify-content: center;
}

.error-404 > div {
	max-width: 600px;
	margin: 0 auto;
}

.error-404-title {
	font-size: 120px;
	font-weight: 800;
	color: #01A0E2;
	line-height: 1;
	margin: 0 0 20px 0;
	letter-spacing: -2px;
}

.error-404-subtitle {
	font-size: 28px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px 0;
}

.error-404-text {
	font-size: 16px;
	color: #666;
	margin: 0 0 35px 0;
	line-height: 1.5;
}

.error-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

.error-actions .button {
	display: inline-block;
	padding: 14px 35px;
	text-decoration: none;
	border-radius: 20px;
	font-weight: 500;
	font-size: 16px;
	transition: all 0.3s;
	border: none;
	cursor: pointer;
}

.button-white {
	background: #FFFFFF;
	color: #333;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.button-white:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transform: translateY(-2px);
}

.button-blue {
	background: #01A0E2;
	color: #FFFFFF;
}

.button-blue:hover {
	background: #0189C5;
	transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
	.error-404 {
		padding: 50px 20px;
		min-height: calc(100vh - 150px);
	}
	
	.error-404-title {
		font-size: 80px;
	}
	
	.error-404-subtitle {
		font-size: 22px;
	}
	
	.error-404-text {
		font-size: 14px;
		margin-bottom: 30px;
	}
	
	.error-actions {
		flex-direction: column;
		gap: 12px;
	}
	
	.error-actions .button {
		width: 100%;
		padding: 14px 25px;
	}
}