* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	/*font-family:GoogleSans-Regular;*/
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: #e5e7eb;
}

body.no-scroll {
    overflow: hidden;
}

a {
    transition: opacity .15s;
	color:#62b6ff;

}
a:hover {
	color:#b9deff;
}

.mark {
	color: #e9622c;
}


/* ===== SIDEBAR ===== */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    background: rgba(15,23,42,.95);
	/*background-image: linear-gradient(-20deg, #0e2635 0% 0%, #352768 100%);*/
    border-right: 1px solid rgba(255,255,255,.05);
    padding: 24px 18px;
    transform: translateX(0);
    transition: transform .25s ease;
    z-index: 1000;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar .logo {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-top: 18px;
    margin-bottom: 28px;
}

.sidebar .logo span {
    color: #38bdf8;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    border-radius: 10px;

    color: #cbd5f5;
    text-decoration: none;
    margin-bottom: 6px;
    font-size: 14px;

    transition: .15s ease;
}

.nav a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;

    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}


.nav a.active,
.nav a:hover {
    background: rgba(56,189,248,.15);
    color: #e0f2fe;
}

/* ===== OVERLAY ===== */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    z-index: 900;
}

.overlay.show {
    display: block;
}

/* ===== MAIN ===== */

.main {
    margin-left: 240px;
    /*margin-left: 120px;*/
    padding: 32px;
    transition: margin .25s ease;
}

/* ===== TOPBAR ===== */

.topbar {
    position: fixed;
    top: 0;
    /*left: 240px;*/
    left: 240px;
    right: 0;
    height: 64px;
    background: rgba(15,23,42,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.05);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    z-index: 800;
}

.topbar.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* чтобы контент не залезал под topbar */
.main-content {
    /*padding-top: 88px;*/
    padding-top: 62px;
}

.burger {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #e5e7eb;
    position: relative;
}

.burger span::before,
.burger span::after {
    content: "";
    position: absolute;
    left: 0;
}

.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

.topbar h1 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    flex: 1;
}

/* ===== CARDS ===== */

.card {
    background: rgba(15,23,42,.85);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

/* ===== FORM ===== */

.field {
    margin-bottom: 16px;
}



label {
    display: flex;
    font-size: 14px;
    margin-bottom: 6px;
    color: #94a3b8;
    opacity: .8;
	gap:6px;
	align-items: center;
	white-space:nowrap;

}


input[type=text],
input[type=email],
input[type=number],
input[type=password],
textarea {
    width: 100%;
    padding: 12px 14px;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===== OPTIONS ===== */
/*
.option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

.option input {
    accent-color: #38bdf8;
}

*/


.options {
    display: flex;
	justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 0 20px 0;
}

.opt-btn {
    /*background: #1e293b;*/
    background: #132441;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
	width:100%;
	/*max-width:160px;*/
}

.opt-btn.active {
    background: #38bdf8;
    color: #020617;
}

.opt-btn .reset {
    display: none;
    margin-left: 6px;
    cursor: pointer;
}

.opt-btn.active .reset {
    display: inline;
}






.additional-features{
	display:block;
	margin-top:15px;
}

.active-features {
	display:grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 6px;
	width: 100%;
	font-size:14px;
}

.feature-status {
    /*background: #1e293b;*/
    background: #132441;
    padding: 8px 14px;
	border-radius: 6px;
    cursor: pointer;
    position: relative;
	width:100%;
	/*max-width:160px;*/
}

.feature-status.active {
	display:flex;
	justify-content: space-between;
    background: #2c3173;
    color: #fff;
}


.feature-status .reset {
    display: none;
    margin-left: 6px;
    cursor: pointer;
}

.feature-status.active .reset {
    display: inline;
}

/* ===== BUTTONS ===== */

.btn {
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
	border: 1px solid #19427d;
}

.btn-primary {
   /* background: linear-gradient(135deg, #38bdf8, #0ea5e9);*/
    background: linear-gradient(135deg, #38bdf8, #2f79c5);
    color: #020617;
}

.btn-secondary {
    background: rgba(255,255,255,.08);
    color: #e5e7eb;
}

/* ===== PROGRESS ===== */

.progress {
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-x {
    background: rgba(84,189,242,1);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    width: 72%;
}

/* ===== FOOTER ===== */

.footer {
    margin-top: 40px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .topbar {
        left: 0;
    }
	
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .burger {
        display: flex;
    }

    .main {
        margin-left: 0;
        padding: 20px;
    }
}











.user-menu {
    position: relative;
}

.user-email {
    cursor: pointer;
    font-size: 14px;
    color: #ddd;
}

.user-popup {
    position: absolute;
    top: 36px;
    right: 0;
    width: 180px;

    background: #141414;
    border: 1px solid #222;
    border-radius: 8px;

    display: none;
    flex-direction: column;

    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    z-index: 999;
}

.user-popup a {
    padding: 10px 14px;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
}

.user-popup a:hover {
    background: #1f1f1f;
    color: #fff;
}

.user-popup .divider {
    height: 1px;
    background: #222;
    margin: 6px 0;
}

.user-popup .danger {
    color: #ff6b6b;
}














.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

/* карточка */
.part {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}









.row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    align-items: end;
}

.col-main {
    flex: 1 1 200px;
}

.col-lm {
    flex: 0 1 200px;
    max-width: 300px;
}

.col-sm {
    flex: 0 1 200px;
    max-width: 340px;
}

.col-min {
    flex: 0 0 auto;
}





/* заголовок */

h3{
	margin-top:0px;
}

.part h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
}

/* поле */
.field-x {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-x label {
    font-size: 12px;
    color: #94a3b8;
}

.field-x input {
    height: 38px;
    padding: 0 12px;

    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 8px;

    color: #e5e7eb;
}

.field-x input:focus {
    outline: none;
    border-color: #38bdf8;
}

select {
    width: 100%;
    padding: 12px 42px 12px 14px;

    background: #020617;
    border: 1px solid #334155;
    border-radius: 10px;

    color: #e5e7eb;
    font-size: 14px;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    cursor: pointer;

    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<polyline points='6 9 12 15 18 9'/></svg>");

    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

select:focus {
    outline: none;
    border-color: #38bdf8;
}





























.input-hint {
    margin-left: 6px;
    font-size: 12px;
    max-width: 220px;

    display: inline-block;
    vertical-align: middle;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    color: #94a3b8;
}

.input-hint.ok {
    color: #22c55e;
}

.input-hint.error {
    color: #ef4444;
}

.input-hint.info {
    color: #38bdf8;
}

.input-hint.loading {
    color: #facc15;
}



.reset{
	cursor:pointer;
}









/* длинный URL */
.url-cell {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.infinity {
    opacity: 0.6;
}

.yes {
    color: #4ade80;
}

.no {
    color: #94a3b8;
}
















.links-card{
    width:100%;
    max-width:none;
}

.zones-card{
    width:100%;
    max-width:none;
}




/* pagination */
.pagination{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:18px 0 8px 0;
	/*justify-content: center*/
	/*color:#000;*/
}

.page-btn{
    padding:6px 10px;
    border-radius:6px;
    background:#2b2f3a;
    cursor:pointer;
    user-select:none;
	color:#fff;
}

.page-btn:hover{
    background:#3a3f4d;
}

.page-btn.active{
/*    background:#084971;*/
	background:#305079;
	color:#fff;
}

.page-btn.disabled{
    opacity:.4;
    pointer-events:none;
	color:#fff;
}








*:disabled {
	opacity: .5;
}








::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgb(72 189 245);
    border-left: 1px solid rgb(34, 48, 67);
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background: rgb(16 23 41);
    border-left: 1px solid rgb(34, 48, 67);
}

.numeric {
	/*font-variant-numeric: tabular-nums;*/
	/*font-family:mono;*/
	font-size:14px;
}

.right{
	text-align:right;

}



canvas {
  /*filter: drop-shadow(0 0 6px rgba(72,189,245,0.25));*/
}




.my-table {
  display: table;
  width: 100%; /* Optional: make the "table" fill its container */
  border-collapse: collapse; /* Optional: collapse borders */
  white-space: nowrap;
  font-size:14px;
}

.my-table-row {
  display: table-row;
  border-bottom:1px solid #1e293b;
  transition: background 250ms ease;
}

.my-table-th-row {
  display: table-row;
  border-bottom:1px solid #1e293b;
  font-weight:bold;
}

.my-table-row:hover {
    background:#161f35;
}

.my-table-cell {
  display: table-cell;
  padding: 10px 14px;
    max-width:150px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  
}


.data-no,.data-infinity {
	color: #5c6273;
	font-style: italic;
}

.data-yes {
	color: #26d16c;
	font-style: italic;
}

.td-ellipsis {
	max-width: 250px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	/*min-width:150px;*/
}



.col-desc, .col-url, .col-user-agent, .col-lang, .col-referer {
/*	display:grid;*/
/*	min-width:150px;*/
}

.col-date {
	white-space: nowrap;
	width:170px;
}











/* контейнер */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 10px;

    pointer-events: none;
}

/* уведомление */
.toast {
    min-width: 220px;
    max-width: 360px;

    padding: 12px 14px;
    border-radius: 10px;

    font-size: 14px;
    color: #fff;

    box-shadow: 0 6px 18px rgba(0,0,0,.35);

    transform: translateX(120%);
    opacity: 0;

    transition: .25s ease;

    pointer-events: auto;
    cursor: pointer;
}

/* анимация */
.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* типы */
.toast.success { background:#22c55e; }
.toast.error   { background:#ef4444; }
.toast.info    { background:#3b82f6; }
.toast.warn    { background:#f59e0b; }
















.empty-state {
	display:flex;
	justify-content: center;
    color: #7f8495;
    font-style: italic;
    text-align: center;
    pointer-events: none;
	width:100%;
	font-size:14px;
	align-items: center;
	min-height:240px;
	pointer-events:none;
	user-select:none;
}

.empty-info{
	display:none;
}


.empty-tab-list-state {
	display:flex;
	justify-content: center;
    color: #7f8495;
    font-style: italic;
    text-align: center;
    pointer-events: none;
	width:100%;
	font-size:14px;
	align-items: center;
	pointer-events:none;
	user-select:none;
}

.empty-tab-list-info{
	display:none;
	justify-content: center;
	width:100%;
}


.status {
	display:inline-block;
	height:10px;
	width:10px;
	background: gray;
	border-radius: 50%;
}

.status.active {
	background: #82b500;
}
.status.pending {
	background: #d99f16;
}
.status.deleted,.status.archived {
	background: #4b535d;
}
.status.banned {
	background: #d53807;
}












/* ===== Floating row menu ===== */

.row-action-menu{
    position:fixed;
    min-width:160px;
    background:#1e293b;
    border:1px solid #334155;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,.45);
    display:flex;
    flex-direction:column;
    padding:6px;
    z-index:2000;
}

.row-action-menu.hidden{
    display:none;
}

.row-action-menu button{
    background:none;
    border:none;
    color:#e2e8f0;
    text-align:left;
    padding:8px 10px;
    border-radius:8px;
    cursor:pointer;
    font-size:13px;
}

.row-action-menu button:hover{
    background:#334155;
}

.row-action-menu .danger{
    color:#f87171;
}

.row-action-menu .danger:hover{
    background:#7f1d1d;
}
.row-menu-trigger{
    width:32px;
    height:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    border:1px solid #334155;
    background:#1e293b;
    color:#cbd5e1;
    cursor:pointer;
    transition:.15s;
}

.row-menu-trigger:hover{
    background:#334155;
    color:#fff;
    border-color:#475569;
}

.row-menu-trigger:active{
    transform:scale(.95);
}












.modal-card.small{
    width:380px;
}

.modal-foot .danger{
    background:#dc2626;
    color:#fff;
    border:none;
}

.modal-foot .danger:hover{
    background:#b91c1c;
}










tr.deleting{
    opacity:.4;
    pointer-events:none;
    transition:opacity .25s ease;
}

tr.removing{
    opacity:0;
    transform:translateX(20px);
    transition:.25s ease;
}
