* {
    box-sizing: border-box;
}
 
html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
    color: #0f172a;
    background: #f4f7fb;
}
 
/* =========================
   LOGIN PAGE
========================= */
 
.auth-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 28%),
        linear-gradient(135deg, #071224 0%, #0c1b33 45%, #102448 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
 
.auth-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    pointer-events: none;
}
 
.auth-glow-1 {
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.18);
    top: 60px;
    left: 80px;
}
 
.auth-glow-2 {
    width: 360px;
    height: 360px;
    background: rgba(34, 197, 94, 0.10);
    bottom: 40px;
    right: 70px;
}
 
.auth-shell {
    width: 100%;
    max-width: 1280px;
    display: grid;
    grid-template-columns: 1.1fr 460px;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 2;
}
 
.auth-left {
    display: flex;
    justify-content: center;
}
 
.auth-left-inner {
    width: 100%;
    max-width: 720px;
}
 
.auth-logo {
    width: 290px;
    max-width: 100%;
    display: block;
    margin: 0 auto 34px;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.24));
}
 
.auth-copy {
    text-align: left;
}
 
.auth-copy h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 62px;
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
}
 
.auth-copy p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.8;
    max-width: 620px;
}
 
.auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
 
.auth-features li {
    position: relative;
    padding-left: 28px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}
 
.auth-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.14);
}
 
.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.30);
}
 
.auth-card-head {
    margin-bottom: 26px;
}
 
.auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e0ecff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
 
.auth-card-head h2 {
    margin: 0 0 10px;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}
 
.auth-card-head p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}
 
.auth-form {
    max-width: 100%;
}
 
.field {
    margin-bottom: 18px;
}
 
.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
 
.field input {
    width: 100%;
    height: 56px;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background: #f8fafc;
    padding: 0 16px;
    font-size: 15px;
    color: #0f172a;
    transition: 0.2s ease;
}
 
.field input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}
 
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 10px 0 24px;
}
 
.remember-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}
 
.remember-wrap input {
    width: auto;
    height: auto;
    margin: 0;
}
 
.forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}
 
.forgot-link:hover {
    text-decoration: underline;
}
 
.primary-btn {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
    transition: 0.18s ease;
}
 
.primary-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}
 
.auth-login-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}
 
.auth-language-switcher {
    min-width: 170px;
}
 
.auth-language-switcher .language-select {
    max-width: 170px;
}
 
/* =========================
   DASHBOARD LAYOUT
========================= */
 
.dashboard-layout {
    min-height: 100vh;
    display: block;
    background: linear-gradient(180deg, #eef3f8 0%, #f6f9fc 100%);
}
 
.sidebar {
    background: linear-gradient(180deg, #091426 0%, #0d1c34 100%);
    color: #ffffff;
    padding: 22px;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}
 
.sidebar-top {
    margin-bottom: 30px;
}
 
.sidebar-logo {
    width: 210px;
    max-width: 100%;
    display: block;
}
 
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
 
.sidebar-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    padding: 13px 14px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.18s ease;
}
 
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}
 
.sidebar-bottom {
    margin-top: auto;
    padding-top: 24px;
}
 
.user-mini {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}
 
.logout-btn {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}
 
.logout-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}
 
.main-panel {
    flex: 1;
    min-width: 0;
    padding: 28px;
    margin-left: 270px;
}
 
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}
 
.topbar-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}
 
.topbar-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #64748b;
}
 
.panel-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
    overflow-x: auto;
}
 
/* =========================
   GENERIC UI
========================= */
 
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 30px;
}
 
.card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e2ebf6;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
 
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    border-color: #cfe0f4;
}
 
.card-title {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 700;
}
 
.card-value {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.04em;
    line-height: 1;
}
 
h1 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}
 
form {
    max-width: 100%;
}
 
input,
select,
textarea {
    width: 100%;
    max-width: 420px;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #d6e1ee;
    border-radius: 16px;
    outline: none;
    background: #f8fafc;
    transition: 0.2s ease;
    color: #0f172a;
}
 
textarea {
    height: auto;
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}
 
input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}
 
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 22px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
    transition: 0.18s ease;
    white-space: nowrap;
}
 
.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}
 
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
}
 
th,
td {
    padding: 15px 14px;
    border-bottom: 1px solid #ebf1f7;
    text-align: left;
}
 
th {
    background: #f8fbff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 800;
}
 
tr:hover td {
    background: #fbfdff;
}
 
.badge-green,
.badge-red,
.badge-yellow,
.badge-blue,
.badge-gray {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}
 
.badge-green {
    background: #dcfce7;
    color: #166534;
}
 
.badge-red {
    background: #fee2e2;
    color: #991b1b;
}
 
.badge-yellow {
    background: #fef3c7;
    color: #92400e;
}
 
.badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}
 
.badge-gray {
    background: #e5e7eb;
    color: #475569;
}
 
.mt-2 {
    margin-top: 8px;
}
 
.mb-4 {
    margin-bottom: 16px;
}
 
/* =========================
   COMPARISON BASE
========================= */
 
.cmp-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 18px;
    flex-wrap: wrap;
}
 
.cmp-title {
    margin: 0 0 8px;
    font-size: 42px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
}
 
.cmp-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
    max-width: 760px;
}
 
.cmp-columns-wrap {
    position: relative;
    flex-shrink: 0;
}
 
.cmp-columns-btn {
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #dbe7f5;
    background: #ffffff;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}
 
.cmp-columns-btn:hover {
    background: #f8fbff;
}
 
.cmp-columns-menu {
    position: absolute;
    right: 0;
    top: 52px;
    width: 220px;
    min-width: 220px;
    max-height: 360px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}
 
.cmp-columns-menu.open {
    display: flex;
}
 
.cmp-columns-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
}
 
.cmp-columns-menu label:hover {
    background: #f8fbff;
}
 
.cmp-columns-menu input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    accent-color: #2563eb;
    flex-shrink: 0;
    appearance: auto;
    background: transparent !important;
}
 
.cmp-table-wrap {
    background: #ffffff;
    border: 1px solid #e8eef6;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}
 
.cmp-table {
    width: 100%;
    margin-top: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0;
    background: transparent;
    table-layout: fixed;
}
 
.cmp-table thead th {
    background: #f8fbff;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
    font-weight: 800;
    border-bottom: 1px solid #e8eef6;
    border-right: 1px solid #edf2f7;
    white-space: normal;
    padding: 10px 8px !important;
}
 
.cmp-table thead th:last-child {
    border-right: none;
}
 
.cmp-table th,
.cmp-table td {
    padding: 10px 8px !important;
    font-size: 12px;
    vertical-align: middle;
}
 
.cmp-table tbody td {
    border-bottom: 1px solid #ebf1f7;
    border-right: 1px solid #f1f5f9;
    background: #ffffff;
}
 
.cmp-table tbody td:last-child {
    border-right: none;
}
 
.cmp-table tbody tr:hover td {
    background: #f8fbff !important;
}
 
.col-product { width: 21%; }
.col-our_price { width: 8%; text-align: center; }
.col-technopolis,
.col-technomarket,
.col-zora,
.col-pazaruvaj,
.col-lowest { width: 8%; text-align: center; }
.col-offers { width: 6%; text-align: center; }
.col-position { width: 7%; text-align: center; }
.col-diff,
.col-diff_percent { width: 8%; text-align: center; }
.col-toggle { width: 4%; text-align: center; }
 
.cmp-product-link {
    display: inline-block;
    color: #4338ca;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.25;
    word-break: break-word;
}
 
.cmp-product-link:hover {
    text-decoration: underline;
}
 
.cmp-price {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}
 
.cmp-lowest-price-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    font-weight: 900;
    white-space: nowrap;
    font-size: 11px;
}
 
.cmp-offers-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 900;
    font-size: 11px;
}
 
.cmp-diff-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    min-width: 64px;
}
 
.cmp-diff-arrow {
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}
 
.cmp-diff-chip.up {
    background: #dcfce7;
    color: #166534;
}
 
.cmp-diff-chip.down {
    background: #fee2e2;
    color: #991b1b;
}
 
.cmp-diff-chip.flat {
    background: #e5e7eb;
    color: #475569;
}
 
.cmp-arrow-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 1px solid #dbe7f5;
    background: #ffffff;
    color: #2563eb;
    border-radius: 999px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.18s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    line-height: 1;
    padding: 0;
}
 
.cmp-arrow-btn:hover {
    background: #eef6ff;
    border-color: #bfdbfe;
}
 
.cmp-arrow-btn.active {
    background: #2563eb;
    color: #ffffff;
    transform: rotate(180deg);
}
 
.cmp-offers-row td {
    padding: 0 !important;
    background: #f8fafc !important;
    border-top: 0 !important;
    border-right: none !important;
}
 
.cmp-offers-panel {
    display: none;
    padding: 14px;
    background: #f8fafc;
}
 
.cmp-offers-panel.open {
    display: block;
}
 
.cmp-offers-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
 
.cmp-offers-title {
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
}
 
.cmp-offers-summary {
    font-size: 12px;
    color: #64748b;
}
 
.cmp-offers-grid {
    display: grid;
    gap: 10px;
}
 
.cmp-offer-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: 0.18s ease;
}
 
.cmp-offer-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
 
.cmp-offer-card.top-1 {
    background: #fff7ed;
    border-color: #facc15;
}
 
.cmp-offer-card.top-2 {
    background: #f8fafc;
    border-color: #cbd5e1;
}
 
.cmp-offer-card.top-3 {
    background: #eff6ff;
    border-color: #93c5fd;
}
 
.cmp-offer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
 
.cmp-offer-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    background: #f1f5f9;
    color: #0f172a;
    flex-shrink: 0;
}
 
.cmp-offer-rank.top-1 {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}
 
.cmp-offer-rank.top-2 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #374151;
}
 
.cmp-offer-rank.top-3 {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}
 
.cmp-offer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
 
.cmp-offer-store {
    font-weight: 800;
    color: #0f172a;
}
 
.cmp-offer-meta {
    font-size: 12px;
    color: #64748b;
}
 
.cmp-offer-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
 
.cmp-offer-price {
    font-weight: 800;
    color: #0f172a;
}
 
.cmp-lowest-pill {
    background: #dcfce7;
    color: #166534;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
 
/* =========================
   TOPBAR EXTRAS
========================= */
 
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
 
.topbar-icon {
    width: 44px;
    height: 44px;
    border: 1px solid #dbe7f5;
    background: #f8fbff;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
}
 
.topbar-icon:hover {
    background: #eef6ff;
    transform: translateY(-1px);
}
 
.topbar-icon i,
.topbar-icon svg {
    width: 20px;
    height: 20px;
}
 
.topbar-icon.ringing {
    animation: bellRing 0.8s ease;
}
 
.topbar-icon.has-unread {
    border-color: #bfdbfe;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}
 
@keyframes bellRing {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(4deg); }
    100% { transform: rotate(0deg); }
}
 
.user-menu {
    position: relative;
}
 
.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fbff;
    border: 1px solid #dbe7f5;
    padding: 8px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.18s ease;
    font-weight: 700;
    color: #0f172a;
}
 
.user-btn:hover {
    background: #eef6ff;
}
 
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}
 
.user-name {
    white-space: nowrap;
}
 
.user-dropdown {
    position: absolute;
    right: 0;
    top: 56px;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    padding: 8px;
    display: none;
    z-index: 100;
}
 

 
.user-dropdown a {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: #0f172a;
    border-radius: 10px;
    font-weight: 600;
}
 
.user-dropdown a:hover {
    background: #f8fbff;
}
 
.dropdown-divider {
    height: 1px;
    background: #e5edf7;
    margin: 8px 0;
}
 
.dropdown-logout-btn {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    color: #dc2626;
}
 
.dropdown-logout-btn:hover {
    background: #fef2f2;
}
 
.dashboard-footer {
    margin-top: 30px;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}
 
/* =========================
   MISC
========================= */
 
#scrollTopBtn {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
}
 
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
 
#scrollTopBtn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
 
.alert-success {
    margin-bottom: 22px;
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, #edf9f1 0%, #e6f6eb 100%);
    color: #177245;
    border: 1px solid #bfe8cf;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(23, 114, 69, 0.06);
}
 
/* =========================
   LANGUAGE SWITCHER
========================= */
 
.language-switcher {
    min-width: 170px;
}
 
.language-select {
    width: 100%;
    max-width: 170px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #dbe7f5;
    border-radius: 12px;
    background: #f8fbff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}
 
.language-select:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}
 
/* =========================
   GLOBAL LOADER
========================= */
 
.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
 
.global-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
 
.loader-box {
    text-align: center;
    padding: 24px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    border: 1px solid #e5edf7;
    min-width: 180px;
}
 
.spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 4px solid #dbe7f5;
    border-top-color: #2563eb;
    animation: loaderSpin 0.8s linear infinite;
}
 
.loader-text {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
 
@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}
 
/* =========================
   NOTIFICATIONS
========================= */
 
.notification-wrapper {
    position: relative;
}
 
.notification-btn {
    position: relative;
}
 
.notification-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 3;
    box-shadow: 0 0 0 2px #ffffff;
}
 
.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    max-width: min(400px, calc(100vw - 40px));
    max-height: 520px;
    background: #ffffff;
    border: 1px solid #dbe6f3;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}
 
.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
 
.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
 
.notification-dropdown-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
 
.mark-all-read-btn {
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    padding: 0;
}
 
.mark-all-read-btn:hover {
    text-decoration: underline;
}
 
.mark-all-read-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: none;
}
 
.notification-list {
    max-height: 438px;
    overflow-y: auto;
}
 
.notification-list::-webkit-scrollbar {
    width: 8px;
}
 
.notification-list::-webkit-scrollbar-track {
    background: transparent;
}
 
.notification-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    border: 2px solid #ffffff;
}
 
.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
 
.notification-item:last-child {
    border-bottom: none;
}
 
.notification-item:hover {
    background: #f8fbff;
}
 
.notification-item.is-unread {
    background: #f4f8ff;
}
 
.notification-item.is-read {
    background: #ffffff;
}
 
.notification-item.is-new-highlight {
    animation: newNotificationFlash 2.4s ease;
}
 
@keyframes newNotificationFlash {
    0% {
        background: #dbeafe;
        box-shadow: inset 0 0 0 1px #93c5fd;
    }
    100% {
        background: #f4f8ff;
        box-shadow: inset 0 0 0 0 transparent;
    }
}
 
.notification-message {
    display: block;
    max-width: 270px;
    font-size: 14px;
    color: #334155;
    line-height: 1.75;
    white-space: normal;
    word-break: break-word;
}
 
.notification-date {
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
}
 
.notification-loading,
.notification-empty,
.notification-error {
    padding: 28px 18px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}
 
/* =========================
   TABLE ACTIONS / ICONS
========================= */
 
.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}
 
.table-actions form {
    margin: 0;
}
 
.icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #dbe7f5;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.18s ease;
    color: #2563eb;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}
 
.icon-btn:hover {
    background: #eef6ff;
    transform: translateY(-1px);
}
 
.icon-btn i,
.icon-btn svg {
    width: 18px;
    height: 18px;
}
 
.icon-btn.danger {
    color: #dc2626;
}
 
.icon-btn.danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
}
 
/* =========================
   PAGINATION
========================= */
 
.app-pagination {
    margin-top: 20px;
}
 
.app-pagination-mobile {
    display: none;
}
 
.app-pagination-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
 
.app-pagination-summary {
    font-size: 14px;
    color: #64748b;
}
 
.app-pagination-summary strong {
    color: #0f172a;
    font-weight: 800;
}
 
.app-pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
 
.pg-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #dbe7f5;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition: 0.18s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}
 
.pg-btn:hover {
    background: #eef6ff;
    border-color: #bfdbfe;
}
 
.pg-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
 
.pg-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
 
.pg-dots {
    padding: 0 4px;
    color: #64748b;
    font-weight: 700;
}
 
/* =========================
   COMPARISON STAT CARDS — matches screenshot exactly
   (horizontal: icon left, label+value right)
========================= */
 
.cmp-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
 
.cmp-stat-card {
    position: relative;
    border-radius: 22px;
    padding: 22px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e2ebf6;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    transition: all 0.2s ease;
    overflow: hidden;
}
 
.cmp-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}
 
.cmp-stat-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.07);
}
 
.cmp-stat-icon svg,
.cmp-stat-icon i {
    width: 26px;
    height: 26px;
}
 
.cmp-stat-icon-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}
 
.cmp-stat-icon-indigo {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
}
 
.cmp-stat-icon-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
 
.cmp-stat-icon-green {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}
 
.cmp-stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
 
.cmp-stat-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}
 
.cmp-stat-value {
    font-size: 44px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.04em;
    line-height: 1;
}
 
/* =========================
   TOOLBAR — matches screenshot exactly
   Search | Sort by | Per page | Status | [icons] [Колони]
========================= */
 
.cmp-toolbar-shell {
    background: #ffffff;
    border: 1px solid #e2ebf6;
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    margin-bottom: 20px;
}
 
.cmp-toolbar-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
 
.cmp-toolbar-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 120px 120px;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
 
.cmp-toolbar-side {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
 
.cmp-toolbar-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
 
.cmp-toolbar-label {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.01em;
}
 
.cmp-toolbar-input,
.cmp-toolbar-select {
    width: 100%;
    max-width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #dbe7f5;
    background: #f8fbff;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
    transition: 0.18s ease;
    font-family: Inter, Arial, sans-serif;
}
 
.cmp-toolbar-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}
 
.cmp-toolbar-input:focus,
.cmp-toolbar-select:focus {
    border-color: #93c5fd;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}
 
.cmp-toolbar-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 13px;
    border: 1px solid #dbe7f5;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    cursor: pointer;
    transition: 0.18s ease;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    flex-shrink: 0;
}
 
.cmp-toolbar-icon:hover {
    background: #eef6ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}
 
.cmp-toolbar-icon svg {
    width: 20px;
    height: 20px;
}
 
.cmp-columns-btn-premium {
    height: 48px;
    border-radius: 13px;
    padding: 0 16px;
    border: 1px solid #dbe7f5;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    transition: 0.18s ease;
    white-space: nowrap;
    font-family: Inter, Arial, sans-serif;
}
 
.cmp-columns-btn-premium:hover {
    background: #f8fbff;
}
 
.cmp-columns-btn-premium svg,
.cmp-columns-btn-premium i {
    width: 18px;
    height: 18px;
    color: #2563eb;
}
 
/* position badge — #1 #2 #3 style gray pill */
.cmp-position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}
 
/* =========================
   RESPONSIVE
========================= */
 
@media (max-width: 1450px) {
    .cmp-toolbar-main {
        grid-template-columns: 1fr 1fr 110px 110px;
    }
}
 
@media (max-width: 1100px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
 
    .auth-left {
        display: none;
    }
 
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
 
    .cmp-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
 
    .cmp-toolbar-main {
        grid-template-columns: 1fr 1fr;
    }
 
    .cmp-toolbar-side {
        width: 100%;
        justify-content: flex-start;
    }
 
    .auth-login-top {
        justify-content: center;
    }
 
    .auth-language-switcher {
        width: 100%;
        max-width: 220px;
    }
 
    .auth-language-switcher .language-select {
        max-width: 100%;
    }
}
 
@media (max-width: 980px) {
    .cmp-offer-card {
        flex-direction: column;
        align-items: flex-start;
    }
 
    .cmp-offer-right {
        width: 100%;
        justify-content: space-between;
    }
 
    .cmp-columns-menu {
        left: 0;
        right: auto;
        width: 100%;
        min-width: 100%;
    }
}
 
@media (max-width: 760px) {
    .dashboard-layout {
        flex-direction: column;
    }
 
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        left: auto;
        top: auto;
        overflow-y: visible;
    }
 
    .main-panel {
        padding: 18px;
        margin-left: 0;
    }
 
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
 
    .dashboard-cards,
    .cmp-cards-grid {
        grid-template-columns: 1fr;
    }
 
    .dashboard-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
 
    .topbar-right {
        width: 100%;
        flex-wrap: wrap;
    }
 
    .language-switcher {
        width: 100%;
    }
 
    .language-select {
        max-width: 100%;
    }
 
    .notification-dropdown {
        right: auto;
        left: 0;
        width: 100%;
        min-width: 280px;
        max-width: calc(100vw - 36px);
    }
 
    .notification-message {
        max-width: 100%;
    }
 
    .cmp-toolbar-main {
        grid-template-columns: 1fr;
    }
 
    .cmp-toolbar-side {
        width: 100%;
        justify-content: flex-start;
    }
 
    .cmp-stat-value {
        font-size: 36px;
    }
}
 
@media (max-width: 700px) {
    .cmp-toolbar-main {
        grid-template-columns: 1fr;
    }
}
 
@media (max-width: 640px) {
    .app-pagination-desktop {
        display: none;
    }
 
    .app-pagination-mobile {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }
}
 
/* =========================
   DARK MODE
========================= */
 
body,
.sidebar,
.topbar,
.panel-card,
.card,
.cmp-stat-card,
.cmp-toolbar-shell,
.cmp-table-wrap,
.cmp-offer-card,
.dashboard-footer,
.user-btn,
.user-dropdown,
.notification-dropdown,
.topbar-icon,
.icon-btn,
.cmp-toolbar-icon,
.cmp-columns-btn,
.cmp-columns-btn-premium,
.cmp-toolbar-input,
.cmp-toolbar-select,
.cmp-filter-select,
.cmp-search-input-premium,
.cmp-search-input-wide,
.page-size-select,
.language-select,
.pg-btn,
.loader-box {
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
 
body.dark-mode {
    background: #0b1220;
    color: #e5e7eb;
}
 
body.dark-mode .dashboard-layout {
    background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
}
 
body.dark-mode .sidebar {
    background: linear-gradient(180deg, #020817 0%, #0f172a 100%);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.35);
}
 
body.dark-mode .sidebar-nav a {
    color: rgba(255, 255, 255, 0.78);
}
 
body.dark-mode .sidebar-nav a:hover,
body.dark-mode .sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
 
body.dark-mode .topbar,
body.dark-mode .panel-card,
body.dark-mode .card,
body.dark-mode .cmp-stat-card,
body.dark-mode .cmp-toolbar-shell,
body.dark-mode .cmp-table-wrap,
body.dark-mode .dashboard-footer,
body.dark-mode .user-dropdown,
body.dark-mode .notification-dropdown,
body.dark-mode .loader-box {
    background: #111827;
    border-color: #1f2937;
    color: #e5e7eb;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}
 
body.dark-mode .topbar-title,
body.dark-mode h1,
body.dark-mode .cmp-title,
body.dark-mode .card-value,
body.dark-mode .cmp-stat-value,
body.dark-mode .cmp-price,
body.dark-mode .cmp-offer-store,
body.dark-mode .cmp-offer-price,
body.dark-mode .notification-dropdown-title,
body.dark-mode .notification-item-title,
body.dark-mode .user-dropdown a,
body.dark-mode .dropdown-logout-btn,
body.dark-mode .loader-text {
    color: #f9fafb;
}
 
body.dark-mode .topbar-subtitle,
body.dark-mode .cmp-subtitle,
body.dark-mode .card-title,
body.dark-mode .cmp-stat-label,
body.dark-mode .cmp-control-label,
body.dark-mode .page-size-label,
body.dark-mode .cmp-offer-meta,
body.dark-mode .dashboard-footer,
body.dark-mode .app-pagination-summary,
body.dark-mode .notification-date,
body.dark-mode .notification-loading,
body.dark-mode .notification-empty,
body.dark-mode .notification-error,
body.dark-mode .cmp-toolbar-label {
    color: #9ca3af;
}
 
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .cmp-toolbar-input,
body.dark-mode .cmp-toolbar-select,
body.dark-mode .cmp-filter-select,
body.dark-mode .cmp-search-input-premium,
body.dark-mode .cmp-search-input-wide,
body.dark-mode .page-size-select,
body.dark-mode .language-select {
    background: #0f172a;
    color: #f9fafb;
    border-color: #334155;
}
 
body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus,
body.dark-mode .cmp-toolbar-input:focus,
body.dark-mode .cmp-toolbar-select:focus,
body.dark-mode .cmp-filter-select:focus,
body.dark-mode .cmp-search-input-premium:focus,
body.dark-mode .cmp-search-input-wide:focus,
body.dark-mode .page-size-select:focus,
body.dark-mode .language-select:focus {
    background: #0f172a;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}
 
body.dark-mode .topbar-icon,
body.dark-mode .icon-btn,
body.dark-mode .cmp-toolbar-icon,
body.dark-mode .cmp-columns-btn,
body.dark-mode .cmp-columns-btn-premium,
body.dark-mode .user-btn,
body.dark-mode .pg-btn {
    background: #0f172a;
    border-color: #334155;
    color: #93c5fd;
}
 
body.dark-mode .topbar-icon:hover,
body.dark-mode .icon-btn:hover,
body.dark-mode .cmp-toolbar-icon:hover,
body.dark-mode .cmp-columns-btn:hover,
body.dark-mode .cmp-columns-btn-premium:hover,
body.dark-mode .user-btn:hover,
body.dark-mode .pg-btn:hover {
    background: #172033;
}
 
body.dark-mode .cmp-columns-menu {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
 
body.dark-mode .cmp-columns-menu label {
    color: #e5e7eb;
}
 
body.dark-mode .cmp-columns-menu label:hover {
    background: #0f172a;
}
 
body.dark-mode table {
    background: #111827;
}
 
body.dark-mode th {
    background: #0f172a;
    color: #9ca3af;
    border-bottom-color: #1f2937;
}
 
body.dark-mode td {
    border-bottom-color: #1f2937;
    color: #e5e7eb;
}
 
body.dark-mode tr:hover td,
body.dark-mode .cmp-table tbody tr:hover td {
    background: #172033;
}
 
body.dark-mode .cmp-offers-row td,
body.dark-mode .cmp-offers-panel {
    background: #0f172a;
}
 
body.dark-mode .cmp-offer-card {
    background: #111827;
    border-color: #1f2937;
}
 
body.dark-mode .cmp-offer-card.top-1 {
    background: rgba(146, 64, 14, 0.18);
    border-color: rgba(250, 204, 21, 0.35);
}
 
body.dark-mode .cmp-offer-card.top-2 {
    background: rgba(71, 85, 105, 0.18);
    border-color: rgba(148, 163, 184, 0.35);
}
 
body.dark-mode .cmp-offer-card.top-3 {
    background: rgba(29, 78, 216, 0.16);
    border-color: rgba(147, 197, 253, 0.35);
}
 
body.dark-mode .cmp-product-link {
    color: #a5b4fc;
}
 
body.dark-mode .cmp-product-link:hover {
    color: #c7d2fe;
}
 
body.dark-mode .badge-blue {
    background: rgba(29, 78, 216, 0.22);
    color: #bfdbfe;
}
 
body.dark-mode .badge-green {
    background: rgba(22, 101, 52, 0.25);
    color: #bbf7d0;
}
 
body.dark-mode .badge-red {
    background: rgba(153, 27, 27, 0.22);
    color: #fecaca;
}
 
body.dark-mode .badge-yellow {
    background: rgba(146, 64, 14, 0.22);
    color: #fde68a;
}
 
body.dark-mode .badge-gray {
    background: rgba(71, 85, 105, 0.24);
    color: #cbd5e1;
}
 
body.dark-mode .cmp-lowest-pill {
    background: rgba(22, 101, 52, 0.26);
    color: #bbf7d0;
}
 
body.dark-mode .cmp-diff-win {
    color: #4ade80;
}
 
body.dark-mode .cmp-diff-lose {
    color: #f87171;
}
 
body.dark-mode .cmp-diff-neutral {
    color: #cbd5e1;
}
 
body.dark-mode .notification-dropdown {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
 
body.dark-mode .notification-dropdown-header {
    background: #111827;
    border-bottom-color: #1f2937;
}
 
body.dark-mode .notification-item {
    border-bottom-color: #1f2937;
}
 
body.dark-mode .notification-item.is-unread {
    background: #0f172a;
}
 
body.dark-mode .notification-item.is-read {
    background: #111827;
}
 
body.dark-mode .notification-item:hover {
    background: #172033;
}
 
body.dark-mode .notification-item.is-new-highlight {
    animation: newNotificationFlashDark 2.4s ease;
}
 
@keyframes newNotificationFlashDark {
    0% {
        background: rgba(37, 99, 235, 0.28);
        box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.35);
    }
    100% {
        background: #0f172a;
        box-shadow: inset 0 0 0 0 transparent;
    }
}
 
body.dark-mode .notification-message {
    color: #e5e7eb;
}
 
body.dark-mode .notification-count {
    box-shadow: 0 0 0 2px #111827;
}
 
body.dark-mode .notification-list::-webkit-scrollbar-thumb {
    background: #475569;
    border-color: #111827;
}
 
body.dark-mode .dropdown-divider {
    background: #1f2937;
}
 
body.dark-mode .user-dropdown a:hover {
    background: #0f172a;
}
 
body.dark-mode .dropdown-logout-btn:hover {
    background: rgba(127, 29, 29, 0.22);
}
 
body.dark-mode .global-loader {
    background: rgba(2, 6, 23, 0.86);
}
 
body.dark-mode #scrollTopBtn {
    background: #3b82f6;
}
 
body.dark-mode #scrollTopBtn:hover {
    background: #2563eb;
}
 
body.dark-mode .cmp-table-wrap {
    background: #111827;
    border-color: #1f2937;
}
 
body.dark-mode .cmp-table thead th {
    background: #0f172a;
    color: #9ca3af;
    border-bottom-color: #1f2937;
    border-right-color: #1f2937;
}
 
body.dark-mode .cmp-table tbody td {
    border-bottom-color: #1f2937;
    border-right-color: #1f2937;
    background: #111827;
    color: #e5e7eb;
}
 
body.dark-mode .cmp-table tbody tr:hover td {
    background: #172033 !important;
}
 
body.dark-mode .cmp-lowest-price-text {
    background: rgba(22, 101, 52, 0.22);
    color: #86efac;
}
 
body.dark-mode .cmp-offers-count-pill {
    background: rgba(67, 56, 202, 0.22);
    color: #c7d2fe;
}
 
body.dark-mode .cmp-diff-chip.up {
    background: rgba(22, 101, 52, 0.25);
    color: #bbf7d0;
}
 
body.dark-mode .cmp-diff-chip.down {
    background: rgba(153, 27, 27, 0.24);
    color: #fecaca;
}
 
body.dark-mode .cmp-diff-chip.flat {
    background: rgba(71, 85, 105, 0.24);
    color: #cbd5e1;
}
 
body.dark-mode .cmp-offers-row td,
body.dark-mode .cmp-offers-panel {
    background: #0f172a !important;
}
 
body.dark-mode .cmp-offers-title {
    color: #f9fafb;
}
 
body.dark-mode .cmp-offers-summary {
    color: #9ca3af;
}
 
body.dark-mode .cmp-position-badge {
    background: rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
}
 
/* =========================
   NOTIFICATIONS — mobile
========================= */
 
@media (max-width: 760px) {
    .notification-dropdown {
        right: auto;
        left: 0;
        width: 100%;
        min-width: 280px;
        max-width: calc(100vw - 36px);
    }
 
    .notification-message {
        max-width: 100%;
    }
}
/* 🟢 Technika.bg е #1 → override на жълтото */
.cmp-offer-card.our-top {
    border: 2px solid #22c55e !important;
    background: rgba(34, 197, 94, 0.12) !important;
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.25) !important;
}

/* маха жълтия badge */
.cmp-offer-card.our-top .cmp-offer-rank {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #15803d !important;
}

/* 🔴 Technika.bg НЕ е #1 → override на синьо/сиво */
.cmp-offer-card.our-not-top {
    border: 2px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.25) !important;
}

/* маха син/сив badge */
.cmp-offer-card.our-not-top .cmp-offer-rank {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #b91c1c !important;
}
.price-status {
    font-size: 13px;
    color: #667085;
    transition: all 0.3s ease;
}

.price-status.loading {
    color: #2563eb;
}

.price-status.success {
    color: #16a34a;
}

.price-status.error {
    color: #dc2626;
}
.topbar,
.topbar-right,
.user-menu {
    overflow: visible !important;
}

.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.user-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 6px 12px 6px 8px;
    border: 1px solid #d9e2ef;
    border-radius: 16px;
    background: #f8fbff;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: none;
}

.user-btn:hover {
    background: #f3f7fd;
    border-color: #c9d8ea;
}

.user-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.user-menu.open .user-btn {
    background: #eef4ff;
    border-color: #bfd1ea;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    line-height: 1;
}

.user-btn-chevron {
    width: 15px;
    height: 15px;
    color: #7b8798;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.user-menu.open .user-btn-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    display: block !important;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e4ebf3;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.user-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.dropdown-item,
.dropdown-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 0;
    background: transparent;
    border-radius: 12px;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.16s ease, color 0.16s ease;
}

.dropdown-item:hover,
.dropdown-logout-btn:hover {
    background: #f5f8fc;
}

.dropdown-item i,
.dropdown-logout-btn i {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    margin: 8px 4px;
    background: #e8edf3;
    border-radius: 999px;
}

.dropdown-logout-btn,
.dropdown-logout-btn i {
    color: #ef4444;
}

.user-menu:hover .user-dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
}

.user-menu:hover .user-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.dark-mode .user-btn {
    background: #111827;
    border-color: #263244;
    color: #f8fafc;
}

.dark-mode .user-btn:hover {
    background: #172131;
    border-color: #334155;
}

.dark-mode .user-menu.open .user-btn {
    background: #1a2536;
    border-color: #3a4a60;
}

.dark-mode .user-name {
    color: #f8fafc;
}

.dark-mode .user-btn-chevron {
    color: #c4cfdd;
}

.dark-mode .user-dropdown {
    background: #0f172a;
    border-color: #253247;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
}

.dark-mode .dropdown-item,
.dark-mode .dropdown-logout-btn {
    color: #e5e7eb;
}

.dark-mode .dropdown-item:hover,
.dark-mode .dropdown-logout-btn:hover {
    background: #182235;
}

.dark-mode .dropdown-divider {
    background: #243244;
}

.dark-mode .dropdown-logout-btn,
.dark-mode .dropdown-logout-btn i {
    color: #f87171;
}
.settings-coming-soon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.settings-coming-soon-box {
    width: 100%;
    max-width: 760px;
    padding: 36px 42px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #facc15;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.settings-coming-soon-icon {
    display: block;
    font-size: 72px;
    line-height: 1;
    margin-bottom: 16px;
}

.settings-coming-soon-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: #92400e;
}

.settings-coming-soon-subtitle {
    margin-top: 10px;
    font-size: 15px;
    color: #a16207;
}