/* css/settings-notif.css — Precenly Nastavenia + Upozornenia
   Pridaj do dashboard.html: <link rel="stylesheet" href="css/settings-notif.css">
*/

/* ══════════════════════════════════════════════════════════════════════════════
   SETTINGS SUB-TAB NAVIGATION
   ══════════════════════════════════════════════════════════════════════════════ */

.settings-tabs-wrap {
    margin: 0 0 28px 0;
}

/* ── Settings tab panes ──────────────────────────────────────────────────── */
.settings-tab-pane {
    display: none;
}

.settings-tab-pane.active {
    display: block;
    animation: settFadeIn 0.25s ease;
}

@keyframes settFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SUBSCRIPTION CARD
   ══════════════════════════════════════════════════════════════════════════════ */

.subscription-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid var(--border-color, #eaeaea);
    border-radius: 12px;
    background: #fafafa;
}


.subscription-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.subscription-card-plan {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

.subscription-card-desc {
    font-size: 0.92rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.6;
}


/* ══════════════════════════════════════════════════════════════════════════════
   PAYMENT METHOD CARD
   ══════════════════════════════════════════════════════════════════════════════ */

.payment-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid var(--border-color, #eaeaea);
    border-radius: 10px;
    background: #fff;
}

.payment-card-icon {
    width: 44px;
    height: 44px;
    background: #f4f5f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    flex-shrink: 0;
}

.payment-card-info {
    flex: 1;
    min-width: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PHONE INPUT GROUP
   ══════════════════════════════════════════════════════════════════════════════ */

.phone-input-group {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 280px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.phone-code-select {
    position: relative;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color, #eee);
}

.phone-code-select select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    font-family: 'Urbanist', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    padding: 10px 28px 10px 12px;
    cursor: pointer;
    outline: none;
}

.phone-code-select::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #aaa;
    pointer-events: none;
}

.phone-input-group .settings-input {
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 12px !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   DANGER ZONE
   ══════════════════════════════════════════════════════════════════════════════ */

.danger-zone {
    border: 1px solid #fecaca !important;
    background: #fefafa !important;
}

.sett-btn-danger {
    background-color: #dc2626;
    color: white !important;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sett-btn-danger:hover {
    background-color: #b91c1c;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PORTAL DISABLED & COMING SOON
   ══════════════════════════════════════════════════════════════════════════════ */

.portal-disabled {
    opacity: 0.5;
}

.portal-disabled h3 {
    color: #aaa;
}

.portal-soon-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #888;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   NASTAVENIA — doplnky k existujúcemu settings UI
   ══════════════════════════════════════════════════════════════════════════════ */


/* Avatar sekcia */
.settings-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

#settingsAvatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px dashed transparent;
    transition: border-color 0.2s, opacity 0.2s;
}

#settingsAvatar:hover {
    border-color: #aaa;
    opacity: 0.85;
}

.avatar-upload-hint {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

#avatarProgress {
    width: 100%;
    height: 4px;
    margin-top: 8px;
    accent-color: #111;
}

/* Plan badge */
[data-settings-plan] {
    font-size: 0.72rem;
    padding: 6px 12px;
    background: #111;
    color: #fff;
    border-radius: 0;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

[data-settings-plan][data-plan="pro"] {
    background: #111;
}

[data-settings-plan][data-plan="team"] {
    background: #333;
}

[data-settings-plan][data-plan="basic"] {
    background: #888;
}

/* Tlačidlo zmeniť plán */
[data-settings-plan-change] {
    font-size: 0.82rem;
    color: #888;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

[data-settings-plan-change]:hover {
    color: #111;
}

/* ── Portál tlačidlá — data-portal atribút ────────────────────────────────── */
.portal-btn[data-portal] {
    /* prepisuje existujúci .portal-btn štýl */
    transition: all 0.15s;
}

/* ── Delete account btn ────────────────────────────────────────────────────── */
#deleteAccountBtn {
    color: #dc2626;
    border-color: #eaeaea;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SETTINGS MODAL (Plan + Delete)
   ══════════════════════════════════════════════════════════════════════════════ */

.sett-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sett-modal {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.sett-modal-sm {
    max-width: 400px;
}

.sett-modal-lg {
    max-width: 950px;
}

.sett-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sett-modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.sett-modal-close {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #888;
    padding: 4px;
    line-height: 1;
}

.sett-modal-close:hover {
    color: #111;
}

.sett-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* ── Toggle Switch pre cennik ──────────────────────────────────────────────── */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 40px 0;
}
.pricing-toggle .toggle-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #111);
}
.pricing-toggle .toggle-switch {
    position: relative;
    width: 56px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 32px;
    cursor: pointer;
    transition: background 0.3s;
}
.pricing-toggle .toggle-switch.active {
    background: #111;
}
.pricing-toggle .toggle-circle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.pricing-toggle .toggle-switch.active .toggle-circle {
    transform: translateX(24px);
}
.pricing-toggle .discount-badge {
    background: #111;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
}

/* ── Plan karty ────────────────────────────────────────────────────────────── */
.sett-plans-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 20px;
    justify-content: center;
}

.sett-plan-card {
    border: 1px solid var(--border-color, #eaeaea);
    border-radius: 12px;
    padding: 32px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    flex: 1 1 0;
    min-width: 0;
}

.sett-plan-card.dark {
    background: #111;
    color: #fff;
    border: none;
    padding: 40px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
    margin: 0 -10px;
}

.sett-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #111;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sett-plan-badge-current {
    background: #111;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sett-plan-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sett-plan-card.dark .sett-plan-name {
    color: #ccc;
}

.sett-plan-price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* Pre Team plan z index.html */
.sett-plan-card:last-child .sett-plan-name {
    color: #555;
}

.sett-plan-price span.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: #888;
}

.sett-plan-price span.period {
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    margin-left: -4px;
}

.sett-plan-card.dark .sett-plan-price {
    color: #fff;
}

.sett-plan-card.dark .sett-plan-price span.period,
.sett-plan-card.dark .sett-plan-price span.currency {
    color: #aaa;
}

.sett-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-top: 1px solid #f1f5f9;
    padding-top: 28px;
}

.sett-plan-features li {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sett-plan-card.dark .sett-plan-features li {
    color: #eee;
}

.feature-check {
    color: #111;
    font-weight: 700;
}

.sett-plan-card.dark .feature-check {
    color: #fff;
}

.sett-plan-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #111;
    border: 1px solid #111;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    text-align: center;
}

.sett-plan-btn:hover:not([disabled]) {
    background: #f4f4f4;
}

.sett-plan-card.dark .sett-plan-btn {
    background: #fff;
    color: #111;
    border: none;
}

.sett-plan-card.dark .sett-plan-btn:hover:not([disabled]) {
    background: #eee;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.sett-plan-btn-current {
    background: #f4f4f4;
    color: #888;
    border: 1px solid #e0e0e0;
    cursor: default;
}

.sett-plan-card.dark .sett-plan-btn-current {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border: none;
}

.sett-link-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    padding: 4px;
}

.sett-link-btn:hover {
    color: #111;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.sett-btn-secondary {
    padding: 9px 18px;
    background: transparent;
    color: #555;
    border: 1px solid var(--border-color, #eaeaea);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.sett-btn-secondary:hover {
    border-color: #aaa;
    color: #111;
}

.sett-btn-danger {
    padding: 9px 18px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.sett-btn-danger:hover:not([disabled]) {
    background: #b91c1c;
}

.sett-btn-danger:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ── Toast ─────────────────────────────────────────────────────────────────── */
.sett-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    z-index: 99999;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s;
    pointer-events: none;
}

.sett-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.sett-toast-success {
    background: #111;
}

.sett-toast-error {
    background: #333;
    border-left: 3px solid #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   UPOZORNENIA TAB
   ══════════════════════════════════════════════════════════════════════════════ */

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #eaeaea);
}

.notif-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin: 0;
}

.notif-read-all-btn {
    background: none;
    border: none;
    font-size: 0.78rem;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
}

.notif-read-all-btn:hover {
    color: #111;
}

/* Zoznam notifikácií */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-color, #eaeaea);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.notif-item:hover {
    border-color: #aaa;
}

.notif-item.unread {
    background: #f8f8f8;
    border-color: #ddd;
}

/* Neprečítaný indikátor — bodka */
.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #111;
    flex-shrink: 0;
    transition: background 0.2s;
}

.notif-dot.read {
    background: transparent;
}

.notif-icon {
    color: #aaa;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.notif-item.unread .notif-icon {
    color: #111;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-message {
    font-size: 0.84rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 3px;
}

.notif-item.unread .notif-message {
    color: #111;
    font-weight: 500;
}

.notif-time {
    font-size: 0.72rem;
    color: #bbb;
}

.notif-del-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.15s;
    opacity: 0;
}

.notif-item:hover .notif-del-btn {
    opacity: 1;
}

.notif-del-btn:hover {
    color: #dc2626;
}

/* Empty state */
.notif-empty {
    max-width: 360px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

.notif-empty-icon {
    width: 60px;
    height: 60px;
    background: #f4f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #ccc;
}

.notif-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.notif-empty-body {
    font-size: 0.84rem;
    color: #888;
    line-height: 1.6;
}

.payment-card-expiry {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}

/* Badge v sidebari — pridaj data-notif-badge na span v nav-item */
[data-notif-badge] {
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 16px;
    height: 18px;
    border-radius: 8px;
    padding: 0px 8px;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ── PONUKA (property_offer) notifikácia ─────────────────────────────────── */
.notif-item.type-offer {
    border-left: 2px solid #00a844;
    padding-left: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    cursor: default;
}

.notif-item.type-offer.unread {
    background: #f0faf4;
    border-color: #00a844;
}

.notif-item.type-offer .notif-dot {
    background: #00a844;
    margin-top: 5px;
}

.notif-offer-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00a844;
    background: #e8f5e9;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 5px;
}

/* Expand panel — zobrazí sa po kliknutí */
.notif-offer-expand {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: none;
}

.notif-offer-expand.visible {
    display: block;
}

.notif-offer-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 7px;
    margin-bottom: 10px;
    display: block;
}

.notif-offer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.notif-offer-stat {
    background: #f4f4f4;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

.notif-offer-stat strong {
    display: block;
    font-size: 14px;
    color: #111;
    font-weight: 700;
    margin-top: 1px;
}

.notif-offer-stat.highlight strong {
    color: #00a844;
}

.notif-offer-note {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 12px;
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
    border-left: 2px solid #ddd;
    line-height: 1.5;
}

.notif-offer-actions {
    display: flex;
    gap: 8px;
}

.notif-offer-btn-primary {
    flex: 1;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.notif-offer-btn-primary:hover {
    background: #333;
}

.notif-offer-btn-primary:disabled {
    background: #888;
    cursor: default;
}

.notif-offer-btn-ghost {
    background: none;
    border: 1px solid #ddd;
    color: #555;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.notif-offer-btn-ghost:hover {
    border-color: #aaa;
    color: #111;
}

/* Toggle šípka pre expand */
.notif-offer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #00a844;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.notif-offer-toggle svg {
    transition: transform 0.2s;
}

.notif-item.type-offer.expanded .notif-offer-toggle svg {
    transform: rotate(180deg);
}

/* Mobile */
@media (max-width: 768px) {
    .settings-tabs-wrap {
        margin-bottom: 20px;
    }

    .settings-avatar-wrap {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px 0;
    }

    .subscription-card,
    .payment-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
    }

    .subscription-card-icon,
    .payment-card-icon {
        margin: 0 auto;
    }

    .subscription-card-body,
    .payment-card-info {
        text-align: center;
    }

    .subscription-card button,
    .payment-card button {
        width: 100%;
    }

    .settings-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 0;
    }

    .settings-input,
    .phone-input-group {
        width: 100% !important;
        max-width: none !important;
    }

    .sett-plans-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .sett-plan-card.dark {
        margin: 0;
        z-index: 1;
    }

    .sett-modal {
        padding: 20px 16px;
    }

    /* Vylepšenie pre Save button */
    #saveSettingsBtn {
        width: 100%;
        padding: 16px;
    }

    /* ── Oprava: portfolio.css skrýva .pf-nav-tabs na mobile — prebíjame ID selektorom ── */
    #settingsSubTabs {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: static;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: inset 0 -1px 0 #eaeaea;
    }
    #settingsSubTabs::-webkit-scrollbar {
        display: none;
    }
    #settingsSubTabs .pf-nav-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 0.82rem;
        justify-content: center;
        text-align: center;
        border-bottom: none;
        background: transparent;
        box-shadow: none;
        width: auto;
    }
    #settingsSubTabs .pf-nav-tab.active {
        box-shadow: inset 0 -3px 0 #111;
        background: transparent;
    }

    /* ── Email view display — stack vertically ── */
    #emailViewDisplay {
        max-width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px;
    }
    #emailViewDisplay .settings-input {
        width: 100% !important;
    }
    #changeEmailBtn {
        margin-left: 0 !important;
        width: 100%;
    }

    /* ── Email / heslo edit formuláre — full width ── */
    #emailEditDisplay,
    #passwordEditDisplay {
        padding: 16px !important;
    }
    #emailEditDisplay form,
    #passwordEditDisplay form {
        max-width: 100% !important;
    }

    /* ── Feedback submit riadok — stack vertically ── */
    #dashboard-feedback-form > div:last-child {
        flex-direction: column;
        align-items: stretch;
    }
    #dash-fb-submit {
        width: 100%;
    }
}

/* ── Veľmi malé obrazovky (<480px) ─────────────────────────────────────────── */
@media (max-width: 480px) {
    #settingsSubTabs .pf-nav-tab {
        padding: 10px 12px;
        font-size: 0.75rem;
        gap: 0;
    }
    #settingsSubTabs .pf-nav-tab svg {
        display: none;
    }
    .panel {
        padding: 16px;
    }
    .sett-plan-price {
        font-size: 2.2rem;
    }
    .sett-plan-card {
        padding: 24px 16px;
    }
    .sett-modal {
        padding: 16px;
        border-radius: 8px;
    }
    .sett-modal-footer {
        flex-direction: column-reverse;
    }
    .sett-modal-footer button {
        width: 100%;
    }
    #saveSettingsBtn {
        padding: 14px;
    }
}

/* ── Tablet (769px – 1024px) ────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .settings-section {
        max-width: 100%;
    }
    .settings-input {
        width: 220px;
    }
    .sett-plans-grid {
        gap: 10px;
    }
    .sett-plan-card {
        padding: 24px 16px;
    }
    .sett-plan-price {
        font-size: 2.4rem;
    }
    .sett-modal-lg {
        max-width: 720px;
    }
}

/* �����������������������������������������������������������������������������
   NEW DARK NOTIFICATIONS & OFFERS THEME
����������������������������������������������������������������������������� */

.notif-list-dark {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* �� Standard Items �� */
.notif-item-dark {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 4px;
    background: #111;
    border: 1px solid #222;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
    color: #fff;
}
.notif-item-dark:hover {
    background: #151515;
    border-color: #333;
}
.notif-item-dark.unread {
    border-left: 3px solid #ffddaa;
}

.notif-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-content-dark {
    flex: 1;
    min-width: 0;
}
.notif-title-dark {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.notif-body-dark {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
}

.notif-time-right {
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notif-action-btn-dark {
    background: #222;
    color: #fff;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.notif-action-btn-dark:hover {
    background: #333;
}

/* �� Offers �� */
.notif-card-offer {
    display: flex;
    border-radius: 4px;
    background: #111;
    border: 1px solid #222;
    overflow: hidden;
    position: relative;
}
.notif-card-offer.unread {
    border-left: 3px solid #00a844;
}

.offer-image-wrap {
    width: 280px;
    position: relative;
    flex-shrink: 0;
}
.offer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}
.offer-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 1;
}
.offer-tag svg {
    width: 8px;
    height: 8px;
}
.offer-tag.tag-hot svg circle { stroke: #ff4500; fill: #ff4500; }
.offer-tag.tag-rec svg circle { stroke: #00a844; fill: #00a844; }

.offer-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.offer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.offer-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.offer-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}
.offer-stat-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 4px;
}
.offer-stat-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.offer-insight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #111;
    border-top: 1px solid #222;
    padding-top: 16px;
    margin-bottom: 20px;
}
.offer-insight svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.offer-insight span {
    font-size: 0.82rem;
    font-style: italic;
    color: #aaa;
    line-height: 1.4;
}

.offer-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}
.notif-offer-btn-primary {
    background: #fff;
    color: #111;
    border: none;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.5px;
}
.notif-offer-btn-primary:hover {
    background: #ddd;
}

@media (max-width: 768px) {
    .notif-card-offer {
        flex-direction: column;
    }
    .offer-image-wrap {
        width: 100%;
        height: 180px;
    }
}

/* NEW: SPLIT & BORDER RADIUS UPDATE */
.notif-container-max {
    max-width: 75%;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .notif-container-max {
        max-width: 100%;
    }
}

.notif-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.notif-item-dark {
    border-radius: 12px !important;
}

.notif-card-offer {
    border-radius: 12px !important;
}

.notif-offer-btn-primary {
    border-radius: 6px !important;
    text-transform: none;
    font-size: 0.8rem;
    padding: 10px 18px;
}

/* NEW LIGHT THEME FOR NOTIFICATIONS */

.notif-main-header {
    margin-bottom: 32px;
}
.notif-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}
.notif-main-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.notif-section-title-new {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: #111;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.notif-slider-wrap {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.offer-card-light {
    scroll-snap-align: start;
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.offer-card-light:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.offer-image-wrap {
    position: relative;
    height: 200px;
}
.offer-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-tag-light {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #111;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.offer-tag-light-old_DUMMY {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    color: #111;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-time-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #111;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: none;
}
.offer-time-badge-old_DUMMY {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    color: #111;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: lowercase;
}

.offer-del-btn-ov {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    z-index: 20;
    transition: background 0.15s, color 0.15s;
}
.offer-del-btn-ov-old_DUMMY {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    z-index: 10;
}
.offer-del-btn-ov:hover {
    background: rgba(220,38,38,0.9);
    color: #fff;
}
.offer-del-btn-ov-hover-old_DUMMY {
    background: rgba(220,38,38,0.9);
}
.offer-card-light:hover .offer-del-btn-ov {
    opacity: 1;
}
.offer-card-light-hover-old_DUMMY {
    opacity: 1;
}

.offer-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.offer-card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 2px 0;
}
.offer-card-price-old_DUMMY {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 4px 0;
}
.offer-card-sqm {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 24px;
}
.offer-card-sqm-old_DUMMY {
    font-size: 0.85rem;
    font-weight: 600;
    color: #777;
    margin-bottom: 20px;
}
.offer-card-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 28px;
    font-weight: 400;
}
.offer-card-desc-old_DUMMY {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 28px;
}

.offer-card-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}
.offer-btn-black {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 10px 32px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    text-transform: none;
}
.offer-btn-black-old_DUMMY {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.offer-btn-black:hover {
    background: #333;
}

.sys-log-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    position: relative;
}
.sys-log-item:hover {
    background: #f1f1f1;
}

.sys-log-icon {
    width: 40px;
    height: 40px;
    background: #111;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sys-log-icon.icon-light {
    background: #e5e5e5;
    color: #111;
}

.sys-log-content {
    flex: 1;
    min-width: 0;
}

.sys-log-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.sys-log-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.sys-log-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.sys-log-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: #aaa;
}

.sys-log-del {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}
.sys-log-item:hover .sys-log-right {
    opacity: 0;
}
.sys-log-item:hover .sys-log-del {
    opacity: 1;
}
.sys-log-del:hover {
    background: #dc2626;
}


/* �����������������������������������������������������������������������������
   PRE��TAN� STAV � spr�vy s� za�ediven� po kliknut� (pre��tan�)
����������������������������������������������������������������������������� */

/* Syst�mov� z�znamy (log) � pre��tan� */
.sys-log-item:not(.unread) {
    opacity: 0.5;
    background: #fafafa;
}

.sys-log-item:not(.unread) .sys-log-title { color: #aaa; font-weight: 500; }
.sys-log-item:not(.unread) .sys-log-icon { background: #fdfdfd !important; border: none !important; }
.sys-log-item:not(.unread) .sys-log-icon svg { stroke: #d0d0d0 !important; }
.sys-log-item:not(.unread):hover { opacity: 1; background: #f5f5f5; }

/* Ponuky nehnute�nost� (offer cards) � pre��tan� */
.offer-card-light:not(.unread) {
    opacity: 0.55;
    filter: grayscale(0.25);
}

.offer-card-light:not(.unread):hover {
    opacity: 0.9;
    filter: none;
}

/* Plynul� prechod pre oba typy */
.sys-log-item,
.offer-card-light {
    transition: opacity 0.25s ease, background 0.2s ease, filter 0.25s ease;
}

/* �����������������������������������������������������������������������������
   NOV� IKONKY � tmav� zaoblen� �tvorec (pod�a dizajnu)
����������������������������������������������������������������������������� */

/* Tmav� z�kladn� ikona */
.sys-log-icon.icon-dark {
    background: #27272D !important; border: 1px solid #3A3A40;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.sys-log-icon.icon-dark svg {
    stroke: #fff;
}

/* �erven�/varovn� ikona */
.sys-log-icon.icon-danger {
    background: #dc2626 !important;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.sys-log-icon.icon-danger svg {
    stroke: #fff;
}

/* Modrá ikona pre @mention notifikácie */
.sys-log-icon.icon-mention {
    background: #2563eb !important;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.sys-log-icon.icon-mention svg {
    stroke: #fff;
}

/* Kurzor pointer na celom riadku � nazna�uje klikate�nos� */
.sys-log-item {
    cursor: pointer;
}

/* �����������������������������������������������������������������������������
   READ DOT � mal� bodka nazna�uj�ca stav (pre/nepre��tan�)
����������������������������������������������������������������������������� */
.sys-log-read-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #ddd;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Nepre��tan� � bodka je pln� (modr�/tmav�) */
.sys-log-item.unread .sys-log-read-dot {
    background: #111;
    border-color: #111;
}

/* Hover na riadku � bodka sa zv�razn� */
.sys-log-item:hover .sys-log-read-dot {
    border-color: #555;
}

@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}


/* ══════════════════════════════════════════════════════════════════════════════
   SEARCH ALERTY (#saContainer)
   ══════════════════════════════════════════════════════════════════════════════ */

.sa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border-color, #eaeaea);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.sa-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    flex-shrink: 0;
    margin-right: 2px;
}

.sa-header-content {
    flex: 1;
    min-width: 0;
}

.sa-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px 0;
    letter-spacing: normal;
}

.sa-section-desc {
    font-size: 0.82rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Tlačidlá */
.sa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    white-space: nowrap;
}

.sa-btn-primary {
    background: #111;
    color: #fff;
}

.sa-btn-primary:hover { background: #333; }

.sa-btn-ghost {
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
}

.sa-btn-ghost:hover { background: #f5f5f5; }

.sa-btn-preview {
    background: #f5f5f5;
    color: #555;
    font-size: 0.78rem;
    padding: 5px 10px;
}

.sa-btn-preview:hover { background: #eaeaea; }

.sa-btn-delete {
    background: transparent;
    color: #d32f2f;
    font-size: 0.78rem;
    padding: 5px 10px;
    border: 1px solid #ffd0d0;
    border-radius: 7px;
}

.sa-btn-delete:hover { background: #fff5f5; }

/* Alert karty */
.sa-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sa-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 16px 18px;
    transition: border-color 0.15s;
}

.sa-card:hover { border-color: #ccc; }

.sa-card--inactive {
    opacity: 0.55;
}

.sa-card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.sa-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sa-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
}

.sa-card-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.sa-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #888;
}

/* Toggle switch */
.sa-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.sa-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.sa-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 20px;
    transition: background 0.2s;
}

.sa-toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.sa-toggle-input:checked + .sa-toggle-slider { background: #111; }
.sa-toggle-input:checked + .sa-toggle-slider::before { transform: translateX(16px); }

/* Tagy */
.sa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.sa-tag {
    background: #f3f3f3;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.74rem;
    color: #555;
}

/* Footer karty */
.sa-card-footer {
    display: flex;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* Formulár - Premium Redesign */
.sa-form-wrap {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-form-wrap:hover {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

.sa-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sa-form-row { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.sa-form-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sa-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.01em;
}

.sa-label span {
    font-weight: 400;
    color: #888;
}

.sa-input {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #111;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.sa-input::placeholder {
    color: #cbd5e1;
}

.sa-input:focus { 
    border-color: #111; 
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}

.sa-select { 
    appearance: none; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); 
    background-repeat: no-repeat; 
    background-position: right 14px center; 
    padding-right: 36px; 
}

.sa-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.sa-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 8px;
    transition: background 0.15s;
}

.sa-checkbox-label:hover {
    background: #f1f5f9;
}

.sa-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}

.sa-form-actions .sa-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
}

.sa-form-actions .sa-btn svg {
    width: 16px;
    height: 16px;
}

.sa-form-error {
    font-size: 0.85rem;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 500;
}

/* Empty state */
.sa-empty {
    text-align: center;
    padding: 32px 16px;
    color: #888;
}

.sa-empty-icon {
    width: 56px;
    height: 56px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.sa-empty-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
}

.sa-empty-body {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
    max-width: 320px;
    margin: 0 auto;
}

/* Ikona pre search_alert notifikácie */
.icon-search-alert { background: #1a73e8; }

/* Search alert notifikácie — cena + plocha pod správou */
.sys-log-property-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: #111;
    margin-top: 4px;
    letter-spacing: -0.01em;
}

/* Search alert notif-action-btn — viditeľné tlačidlo */
.sys-log-item .notif-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 5px 12px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    grid-column: 1 / -1;
}

.sys-log-item .notif-action-btn:hover { background: #333; }

/* Count badge na karte alertu */
.sa-card-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sa-count-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #1a73e8;
    background: #e8f0fe;
    border-radius: 20px;
    padding: 2px 9px;
    white-space: nowrap;
}

.sa-count-badge.sa-count-loading {
    color: #999;
    background: #f3f3f3;
    font-weight: 400;
    animation: sa-pulse 1.4s ease-in-out infinite;
}

.sa-delta-badge {
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 2px 8px;
    white-space: nowrap;
}
.sa-delta-new  { color: #137333; background: #e6f4ea; }
.sa-delta-chg  { color: #1a73e8; background: #e8f0fe; }
.sa-delta-rem  { color: #c5221f; background: #fce8e6; }
.sa-delta-info { color: #888;    background: #f1f3f4; font-weight: 400; }

/* Scanning / loading stav */
.sa-count-badge.sa-count-scanning {
    color: #1a73e8;
    background: #e8f0fe;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sa-scan-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #1a73e8;
    animation: sa-scan-pulse 1.1s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes sa-scan-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.7); }
}

/* Info box po prvom skene */
.sa-baseline-info {
    margin: 8px 0 4px;
    font-size: 0.75rem;
    color: #666;
    background: #f8f9fa;
    border-left: 3px solid #dadce0;
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
}

@keyframes sa-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Edit tlačidlo */
.sa-btn-edit {
    background: #f0f4ff;
    color: #1a73e8;
    border: 1px solid #d0e0ff;
    font-size: 0.78rem;
    padding: 5px 10px;
    border-radius: 7px;
}

.sa-btn-edit:hover { background: #e0ecff; }

/* Nadpis formulára */
.sa-form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: -0.01em;
}

.sa-form-back-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 6px;
    margin-right: -6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.sa-form-back-btn:hover {
    background: #f1f5f9;
    color: #111;
}

/* Location autocomplete dropdown */
.sa-loc-dropdown {
    position: absolute;
    z-index: 200;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    min-width: 100%;
    max-width: 380px;
    overflow: hidden;
    margin-top: 3px;
}

.sa-loc-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 13px;
    cursor: pointer;
    transition: background 0.12s;
}

.sa-loc-item:hover { background: #f5f7ff; }
.sa-loc-item + .sa-loc-item { border-top: 1px solid #f2f2f2; }

.sa-loc-main {
    font-size: 0.83rem;
    font-weight: 500;
    color: #111;
}

.sa-loc-sub {
    font-size: 0.74rem;
    color: #888;
    margin-top: 1px;
}

/* Rodičovský element poľa musí byť position:relative */
.sa-form-row { position: relative; }

/* Radio group pre typ transakcie */
.sa-radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.sa-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 8px;
    transition: background 0.15s;
}

.sa-radio-label:hover {
    background: #f1f5f9;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NEW ALERTS UI (Limit, Badges, Modals)
───────────────────────────────────────────────────────────────────────────── */

/* Status Badge */
.sa-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}
.sa-status-active { background: #e6f4ea; color: #137333; }
.sa-status-paused { background: #f1f3f4; color: #5f6368; }

/* Limit Banner */
.sa-limit-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff3cd;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #ffeeba;
}

/* Changes Button */
.sa-btn-changes {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 5px 12px;
}

/* Change Modal */
.sa-change-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sa-change-modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.sa-change-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #eaeaea;
}

.sa-change-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
}

.sa-change-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.sa-change-modal-close:hover {
    color: #111;
}

.sa-change-modal-body {
    padding: 24px;
    overflow-y: auto;
    background: #fafafa;
}

.sa-change-modal-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
    text-align: right;
}

.sa-change-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.sa-change-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.sa-change-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: border-color 0.15s;
}

.sa-change-card:hover {
    border-color: #ccc;
}

.sa-change-card-info {
    flex: 1;
    min-width: 0;
}

.sa-change-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-change-card-title:hover {
    text-decoration: underline;
}

.sa-change-card-price {
    font-size: 0.85rem;
    color: #444;
}

.sa-old-price {
    text-decoration: line-through;
    color: #999;
}

.sa-price-diff {
    font-weight: 600;
    margin-left: 6px;
}
.sa-price-down { color: #137333; }
.sa-price-up { color: #d32f2f; }

.sa-change-card-addr {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

/* H1: Navigácia v histórii zmien */
.sa-change-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 16px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 16px;
}

.sa-change-nav-label {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}
