:root {
    --pp-bg: #f4f6f8;
    --pp-card: #ffffff;
    --pp-text: #151515;
    --pp-muted: #717171;
    --pp-border: #e4e7ec;
    --pp-black: #0f1115;
    --pp-black-soft: #1b1f27;
    --pp-green: #14804a;
    --pp-red: #c03221;
    --pp-radius: 18px;
    --pp-shadow: 0 16px 45px rgba(15, 17, 21, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--pp-bg);
    color: var(--pp-text);
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(0,0,0,0.10), transparent 34%),
        linear-gradient(135deg, #f7f8fa 0%, #e8ebef 100%);
}

.auth-card {
    width: min(440px, 100%);
    background: var(--pp-card);
    border: 1px solid var(--pp-border);
    border-radius: 28px;
    box-shadow: var(--pp-shadow);
    padding: 34px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--pp-black);
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.08em;
    margin-bottom: 18px;
}

.auth-card h1,
.page-title h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    letter-spacing: -0.05em;
}

.auth-card p,
.page-title p {
    margin: 8px 0 0;
    color: var(--pp-muted);
    line-height: 1.5;
}

.form-group {
    margin-top: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 750;
}

.form-control {
    width: 100%;
    height: 48px;
    border: 1px solid var(--pp-border);
    border-radius: 14px;
    padding: 0 14px;
    background: #fff;
    color: var(--pp-text);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-control:focus {
    border-color: var(--pp-black);
    box-shadow: 0 0 0 4px rgba(15, 17, 21, 0.08);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--pp-muted);
    font-size: 0.94rem;
}

.btn {
    border: 0;
    cursor: pointer;
    min-height: 48px;
    border-radius: 14px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    transition: transform 160ms ease, opacity 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    width: 100%;
    margin-top: 20px;
    background: var(--pp-black);
    color: #fff;
}

.alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.94rem;
}

.alert-error {
    background: #fff1ef;
    border: 1px solid #ffd6cf;
    color: var(--pp-red);
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: var(--pp-green);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    background: var(--pp-black);
    color: #fff;
    padding: 22px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    color: var(--pp-black);
    display: grid;
    place-items: center;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.sidebar-brand strong {
    display: block;
    line-height: 1.1;
}

.sidebar-brand span {
    display: block;
    color: rgba(255,255,255,0.58);
    font-size: 0.84rem;
    margin-top: 3px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.sidebar-nav a {
    color: rgba(255,255,255,0.78);
    padding: 12px 13px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.10);
}

.admin-main {
    min-width: 0;
}

.topbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--pp-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pp-muted);
    font-weight: 700;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pp-black);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.content {
    padding: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.stat-card,
.panel-card {
    background: var(--pp-card);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    box-shadow: 0 10px 32px rgba(15, 17, 21, 0.05);
}

.stat-card {
    padding: 20px;
}

.stat-card span {
    color: var(--pp-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
    letter-spacing: -0.05em;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 16px;
    margin-top: 18px;
}

.panel-card {
    padding: 22px;
}

.panel-card h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.todo-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.todo-list li {
    border: 1px solid var(--pp-border);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--pp-muted);
    background: #fbfcfd;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.82rem;
}

@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid,
    .panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .content,
    .topbar,
    .sidebar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .auth-card {
        padding: 24px;
    }

    .topbar {
        height: auto;
        min-height: 72px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

.page-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.badge-dark {
    background: var(--pp-black);
    color: #fff;
}

.badge-gold {
    background: #fff7e8;
    color: #b7791f;
}

.badge-green {
    background: #ecfdf3;
    color: var(--pp-green);
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-head p,
.muted {
    color: var(--pp-muted);
    margin: 6px 0 0;
    line-height: 1.45;
}

.btn-small {
    min-height: 38px;
    border-radius: 12px;
    padding: 0 14px;
    background: var(--pp-black);
    color: #fff;
    white-space: nowrap;
}

.btn-inline {
    width: auto;
    margin-top: 0;
}

.btn-light {
    background: #fff;
    color: var(--pp-black);
    border: 1px solid var(--pp-border);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 740px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--pp-border);
    vertical-align: middle;
}

.admin-table th {
    color: var(--pp-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table td {
    color: var(--pp-text);
    font-size: 0.94rem;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mini-stats span {
    border: 1px solid var(--pp-border);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--pp-muted);
    font-weight: 800;
    background: #fbfcfd;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
    gap: 16px;
    margin-top: 18px;
}

.admin-form h2 {
    margin: 8px 0 0;
    font-size: 1.12rem;
    letter-spacing: -0.03em;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid.compact {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.textarea {
    min-height: 96px;
    padding-top: 12px;
    resize: vertical;
}

.textarea-large {
    min-height: 150px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    padding: 14px;
    background: #fbfcfd;
}

.checkbox-card input {
    margin-top: 4px;
}

.checkbox-card strong,
.checkbox-card small {
    display: block;
}

.checkbox-card small {
    color: var(--pp-muted);
    margin-top: 4px;
    line-height: 1.4;
}

select.form-control {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--pp-muted) 50%), linear-gradient(135deg, var(--pp-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

@media (max-width: 980px) {
    .two-column-layout,
    .form-grid,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .page-title-row,
    .panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-inline {
        width: 100%;
    }
}

.title-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.business-table {
    min-width: 1060px;
}

.business-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.business-thumb {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.business-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-cell strong,
.business-cell small {
    display: block;
}

.business-cell small,
.admin-table small,
.field-hint {
    color: var(--pp-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.badge-line {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.folder-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 850;
    color: var(--pp-black);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.btn-mini {
    min-height: 34px;
    border-radius: 10px;
    padding: 0 11px;
    font-size: 0.82rem;
}

.btn-danger {
    background: #fff1ef;
    color: var(--pp-red);
    border: 1px solid #ffd6cf;
}

.empty-cell,
.empty-state {
    color: var(--pp-muted);
    text-align: center;
    padding: 28px;
}

.form-section-head {
    margin: 26px 0 8px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.form-section-head p {
    margin: 5px 0 0;
    color: var(--pp-muted);
    line-height: 1.45;
}

.full-span {
    grid-column: 1 / -1;
}

.nested-grid {
    gap: 10px !important;
}

.file-control {
    padding-top: 11px;
}

.folder-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid var(--pp-border);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 850;
    color: var(--pp-muted);
    background: #fbfcfd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-preview-row,
.media-main-grid {
    display: grid;
    grid-template-columns: minmax(160px, 0.45fr) minmax(260px, 1fr);
    gap: 14px;
    margin: 14px 0 4px;
}

.media-preview-card,
.media-main-card {
    border: 1px solid var(--pp-border);
    border-radius: 18px;
    background: #fbfcfd;
    padding: 12px;
    display: grid;
    gap: 9px;
}

.media-preview-card span,
.media-main-card span {
    color: var(--pp-muted);
    font-weight: 850;
    font-size: 0.84rem;
}

.media-preview-card img,
.media-main-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    background: #eef1f5;
}

.media-preview-card:not(.wide) img,
.media-main-card:not(.wide) img {
    height: 150px;
    object-fit: contain;
    background: #fff;
}

.media-folder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.media-folder-card {
    background: var(--pp-card);
    border: 1px solid var(--pp-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(15, 17, 21, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.media-folder-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pp-shadow);
}

.media-folder-cover {
    height: 150px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
    font-size: 2.4rem;
}

.media-folder-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-folder-body {
    padding: 15px;
    display: grid;
    gap: 7px;
}

.media-folder-body strong,
.media-folder-body small,
.media-folder-body code {
    display: block;
}

.media-folder-body small {
    color: var(--pp-muted);
}

.media-folder-body code,
.media-card code,
.page-title code {
    font-size: 0.78rem;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 5px 7px;
    overflow-wrap: anywhere;
}

.media-folder-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.media-folder-meta span {
    border: 1px solid var(--pp-border);
    border-radius: 999px;
    padding: 6px 9px;
    color: var(--pp-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.media-detail-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
}

.media-placeholder {
    height: 150px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f3f4f6;
    color: var(--pp-muted);
    font-weight: 800;
}

.media-gallery-panel {
    margin-top: 16px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.media-card {
    border: 1px solid var(--pp-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fbfcfd;
}

.media-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #eef1f5;
}

.media-card-body {
    padding: 12px;
    display: grid;
    gap: 7px;
}

.media-card-body strong,
.media-card-body small {
    display: block;
    overflow-wrap: anywhere;
}

.media-card-body small {
    color: var(--pp-muted);
}

@media (max-width: 1180px) {
    .media-folder-grid,
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .media-folder-grid,
    .media-grid,
    .media-preview-row,
    .media-main-grid,
    .media-detail-grid {
        grid-template-columns: 1fr;
    }

    .title-actions {
        justify-content: stretch;
    }

    .title-actions .btn {
        width: 100%;
    }
}

.stat-card-link {
    display: block;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.stat-card-link:hover {
    transform: translateY(-2px);
    border-color: #cbd0d8;
    box-shadow: var(--pp-shadow);
}

/* v1.3.1 refinements */
body {
    background:
        radial-gradient(circle at top right, rgba(15, 17, 21, 0.06), transparent 28%),
        linear-gradient(180deg, #f7f8fa 0%, #eef1f5 100%);
}

.sidebar {
    background: linear-gradient(180deg, #0c0f14 0%, #141922 100%);
    box-shadow: 12px 0 35px rgba(15, 17, 21, 0.08);
}

.sidebar-logo {
    letter-spacing: -0.06em;
}

.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 950;
    flex: 0 0 28px;
}

.sidebar-nav a.active .nav-icon,
.sidebar-nav a:hover .nav-icon {
    background: #fff;
    color: var(--pp-black);
}

.panel-card,
.stat-card {
    box-shadow: 0 14px 34px rgba(15, 17, 21, 0.055);
}

.badge-red {
    background: #fff1ef;
    color: var(--pp-red);
}

.toast-stack {
    position: fixed;
    right: 22px;
    top: 92px;
    z-index: 2000;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
}

.toast {
    display: grid;
    grid-template-columns: 38px 1fr 26px;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--pp-border);
    box-shadow: 0 20px 50px rgba(15, 17, 21, 0.14);
    transition: opacity 220ms ease, transform 220ms ease;
}

.toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-weight: 950;
}

.toast-success .toast-icon {
    background: #ecfdf3;
    color: var(--pp-green);
}

.toast-error .toast-icon {
    background: #fff1ef;
    color: var(--pp-red);
}

.toast strong,
.toast p {
    margin: 0;
}

.toast p {
    margin-top: 3px;
    color: var(--pp-muted);
    line-height: 1.35;
}

.toast-close {
    border: 0;
    background: transparent;
    color: var(--pp-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 17, 21, 0.46);
    backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: min(430px, 100%);
    background: #fff;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 30px 70px rgba(0,0,0,0.24);
    padding: 24px;
    animation: modalIn 180ms ease-out;
}

.modal-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #fff1ef;
    color: var(--pp-red);
    display: grid;
    place-items: center;
    font-weight: 950;
    margin-bottom: 14px;
}

.modal-card h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.modal-card p {
    margin: 8px 0 0;
    color: var(--pp-muted);
    line-height: 1.45;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

body.modal-open {
    overflow: hidden;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 18px;
}

.pagination-link {
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pp-border);
    border-radius: 12px;
    background: #fff;
    color: var(--pp-black);
    font-weight: 850;
}

.pagination-link.active {
    background: var(--pp-black);
    border-color: var(--pp-black);
    color: #fff;
}

.pagination-link.disabled {
    pointer-events: none;
    opacity: 0.45;
}

.narrow-form {
    width: min(560px, 100%);
    margin-top: 18px;
}

@media (max-width: 640px) {
    .toast-stack {
        top: 14px;
        right: 16px;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

/* v1.5.1 production polish */
.nav-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    display: block;
}

.nav-icon {
    font-size: 0;
}

.form-panel {
    margin-bottom: 18px;
}

.compact-form .btn-inline {
    margin-top: 18px;
}

.table-actions {
    flex-wrap: wrap;
}

.admin-table th:last-child,
.admin-table td:last-child {
    text-align: right;
}

.admin-table td:last-child .table-actions {
    justify-content: flex-end;
}

.sidebar-nav a {
    letter-spacing: -0.01em;
}

.sidebar-brand {
    align-items: center;
}

.panel-card.form-panel {
    border-color: #dfe3e9;
}


/* v1.6.1: bolji media menadžer i stabilniji prikaz fotografija */
.working-hours-grid {
    margin-top: 4px;
}

.media-folder-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.media-folder-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    min-height: 100%;
}

.media-folder-cover {
    height: 178px;
    position: relative;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #343a46);
}

.media-folder-cover img {
    filter: none;
}

.media-folder-cover-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.25rem;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.media-folder-body {
    gap: 9px;
    background: #fff;
}

.media-folder-body strong {
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.media-folder-body code {
    margin-top: 2px;
}

.media-folder-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.media-folder-actions .btn {
    min-height: 38px;
}

.media-main-card img,
.media-preview-card img,
.media-card img {
    border: 1px solid var(--pp-border);
}

.media-card-body code {
    display: none;
}

@media (max-width: 560px) {
    .media-folder-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.6.1 dodatno: media kartice bez preklapanja teksta preko slike */
.media-folder-card {
    position: relative;
    overflow: hidden;
}

.media-folder-cover {
    display: block;
    width: 100%;
    height: 190px;
    border-radius: 22px 22px 0 0;
    text-decoration: none;
}

.media-folder-body {
    position: relative;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.media-folder-meta span {
    background: #fff;
}

.media-folder-actions .btn {
    flex: 1 1 140px;
    justify-content: center;
}

.media-card-body code,
.media-folder-body code,
.folder-pill {
    display: none !important;
}


/* v2.0.1 usluge */
.multi-select {
    height: auto;
    min-height: 116px;
    padding: 8px 12px;
    background-image: none !important;
}

.multi-select option {
    padding: 8px 10px;
    border-radius: 8px;
}

.chip-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.chip-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid var(--pp-border);
    color: var(--pp-black);
    font-size: 0.78rem;
    font-weight: 850;
}

.chip-list.small {
    max-width: 260px;
}

/* v2.5.1 admin cleanup */
.content { padding: 26px 30px 34px; }
.page-title { margin-bottom: 18px; }
.page-title h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -0.045em; }
.page-title p,
.panel-head p,
.form-section-head p,
.field-hint { display: none !important; }
.page-title .badge { display: none; }
.panel-head.compact-head { align-items: center; margin-bottom: 14px; }
.panel-head.compact-head h2 { margin: 0; }
.form-panel-clean { margin-top: 18px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.form-actions .btn-primary { width: auto; margin-top: 0; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat-card { min-height: 120px; }
.panel-card { border-radius: 20px; }
.admin-table { min-width: 820px; }
.admin-table th { color: #6b7280; background: #fafbfc; }
.admin-table th:first-child { border-top-left-radius: 12px; }
.admin-table th:last-child { border-top-right-radius: 12px; }
.admin-table tr:hover td { background: #fafbfc; }
.btn-primary { background: var(--pp-black); color: #fff; }
.btn-light:hover { border-color: #cbd5e1; background: #f8fafc; }
.compact-list { gap: 8px; }
.compact-list li { padding: 10px 12px; }

/* Media manager: compact folder cards, no oversized banner */
.compact-media-grid,
.media-folder-grid.compact-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 420px));
    gap: 16px;
    justify-content: start;
    align-items: stretch;
}
.compact-media-card,
.media-folder-card.compact-media-card {
    max-width: 420px;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15,17,21,.06);
}
.compact-media-card .media-folder-cover {
    height: 138px;
    border-radius: 20px 20px 0 0;
}
.compact-media-card .media-folder-body {
    padding: 14px;
    gap: 8px;
}
.compact-media-card .media-folder-body strong {
    font-size: .98rem;
}
.compact-media-card .media-folder-body small {
    min-height: 20px;
}
.compact-media-card .media-folder-meta span {
    padding: 5px 9px;
    font-size: .78rem;
}
.compact-media-card .media-folder-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.compact-media-card .media-folder-actions .btn {
    width: 100%;
    flex: none;
}
.media-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); }
.media-main-grid { grid-template-columns: 190px minmax(260px, 1fr); }
.media-main-card img { height: 160px; }
.media-main-card:not(.wide) img { object-fit: contain; background:#fff; }
.media-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.media-card img { height: 135px; }

@media (max-width: 760px) {
    .compact-media-grid,
    .media-folder-grid.compact-media-grid,
    .media-detail-grid,
    .media-main-grid { grid-template-columns: 1fr; }
    .compact-media-card,
    .media-folder-card.compact-media-card { max-width: none; }
    .form-actions .btn { width: 100%; }
}

.media-upload-form {
    display: grid;
    gap: 14px;
}

.media-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.media-upload-form .file-control {
    min-height: 48px;
    padding: 12px 14px;
    line-height: 1.2;
}

.media-upload-button {
    margin-top: 4px;
    padding-left: 20px;
    padding-right: 20px;
}

.business-thumb img {
    background: #fff;
}

@media (max-width: 760px) {
    .media-upload-grid {
        grid-template-columns: 1fr;
    }
}

/* Payment manager */
.page-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted, #667085);
    font-size: 0.95rem;
}

.payments-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.payment-card {
    margin-bottom: 18px;
}

.payment-note-card h2,
.payment-card h2 {
    margin: 0;
}

.payment-env-box {
    border: 1px solid var(--boja-border, #e4e7ec);
    border-radius: 18px;
    padding: 16px;
    margin-top: 14px;
    background: #fbfcfe;
}

.payment-env-box h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--boja-tamna, #101828);
}

.switch-line,
.mini-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--boja-tamna, #101828);
}

.payment-flow-list {
    margin: 14px 0 0;
    padding-left: 22px;
    color: var(--boja-tekst, #344054);
    line-height: 1.7;
}

.payment-table .table-input {
    min-width: 120px;
    min-height: 40px;
    padding: 8px 10px;
}

.payment-table textarea.table-input {
    min-width: 260px;
    min-height: 76px;
    resize: vertical;
}

.table-price-grid {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) 78px;
    gap: 8px;
}

.promotion-table .mini-check {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.86rem;
}

.mt-8 {
    margin-top: 8px;
}

.badge-red {
    background: #fee4e2;
    color: #b42318;
}

@media (max-width: 1100px) {
    .payments-grid {
        grid-template-columns: 1fr;
    }
}

/* v3.0.0 payments redesign */
.payments-title-row {
    align-items: flex-start;
    gap: 14px;
}

.payment-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    margin: 0 0 18px;
    background: #fff;
    border: 1px solid var(--pp-border, #e5e7eb);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15,17,21,.05);
}

.payment-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 13px;
    text-decoration: none;
    color: #667085;
    font-weight: 850;
    font-size: .92rem;
    transition: .18s ease;
}

.payment-tab:hover {
    color: #101114;
    background: #f7f8fb;
}

.payment-tab.active {
    color: #fff;
    background: #101114;
    box-shadow: 0 12px 26px rgba(15,17,21,.18);
}

.payment-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.payment-stat-card {
    min-height: 138px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
    box-shadow: 0 16px 38px rgba(15,17,21,.06);
}

.payment-stat-card span,
.payment-settings-strip span {
    display: block;
    color: #667085;
    font-size: .86rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.payment-stat-card strong {
    display: block;
    color: #101114;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    letter-spacing: -.04em;
    line-height: 1.05;
}

.payment-stat-card small {
    display: block;
    margin-top: 10px;
    color: #667085;
    font-weight: 750;
}

.payment-stat-card.dark {
    background: radial-gradient(circle at top right, rgba(215,157,45,.38), transparent 38%), #101114;
    border-color: #101114;
}

.payment-stat-card.dark span,
.payment-stat-card.dark small { color: rgba(255,255,255,.72); }
.payment-stat-card.dark strong { color: #fff; }
.payment-stat-card.warning { border-color: rgba(215,157,45,.32); background: #fffbf2; }
.payment-stat-card.danger { border-color: rgba(180,35,24,.18); background: #fff7f6; }

.payment-pro-card {
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15,17,21,.07);
}

.payment-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid #eef0f4;
    background: linear-gradient(180deg, #fff, #fbfcfe);
}

.payment-card-head h2 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -.02em;
}

.payment-card-head p {
    display: block !important;
    margin: 7px 0 0;
    color: #667085;
    font-size: .92rem;
}

.payment-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f5f6f8;
    color: #101114;
    font-weight: 850;
    white-space: nowrap;
}

.payment-history-table small {
    color: #667085;
}

.payment-error-line {
    display: block;
    max-width: 260px;
    margin-top: 7px;
    color: #b42318 !important;
    line-height: 1.35;
}

.payment-muted { color: #98a2b3; }

.payment-method-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
}

.payment-settings-card {
    padding-bottom: 24px;
}

.payment-settings-card > .form-grid,
.payment-settings-card > .paypal-env-grid,
.payment-settings-card > .form-actions,
.payment-settings-card > .payment-settings-strip {
    margin-left: 24px;
    margin-right: 24px;
}

.payment-settings-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 18px;
}

.payment-settings-strip > div {
    padding: 15px;
    border-radius: 18px;
    border: 1px solid #eceff3;
    background: #fbfcfe;
}

.payment-settings-strip strong {
    color: #101114;
    font-size: 1.05rem;
}

.payment-switch {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f7f8fb;
    border: 1px solid #e5e7eb;
    font-weight: 900;
    color: #101114;
}

.paypal-env-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.paypal-env-card {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
}

.paypal-env-card.live {
    background: linear-gradient(180deg, #fff, #fffbf2);
    border-color: rgba(215,157,45,.28);
}

.paypal-env-icon,
.package-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff7e6;
    color: #b7791f;
    font-weight: 950;
}

.paypal-env-card h3 {
    margin: 12px 0 16px;
}

.payment-help-card {
    padding: 22px;
    align-self: start;
}

.payment-help-card h2 {
    margin: 0 0 16px;
}

.payment-flow-steps {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
}

.payment-flow-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #101114;
    color: #fff;
    font-weight: 950;
}

.payment-flow-steps p {
    display: block !important;
    margin: 6px 0 0;
    color: #667085;
    line-height: 1.5;
}

.payment-package-grid,
.promotion-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.payment-package-card,
.promotion-package-card {
    padding: 18px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(15,17,21,.06);
}

.promotion-package-card.golden {
    border-color: rgba(215,157,45,.38);
    background: linear-gradient(180deg, #fff, #fffbf2);
}

.package-topline,
.promotion-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.package-status {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    font-weight: 850;
    color: #101114;
}

.package-big-value {
    margin: 14px 0 16px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 950;
    letter-spacing: -.06em;
    color: #101114;
}

.package-big-value span {
    font-size: 1rem;
    letter-spacing: 0;
    color: #667085;
}

.package-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
    margin-bottom: 16px;
}

.promotion-name-input {
    font-size: 1.08rem;
    font-weight: 900;
}

.promotion-title-row strong {
    color: #b7791f;
    white-space: nowrap;
}

.promotion-description {
    min-height: 104px;
    resize: vertical;
}

.promotion-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 16px;
}

.promotion-option-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    font-weight: 800;
    font-size: .88rem;
}

@media (max-width: 1120px) {
    .payment-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .payment-method-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .payment-stat-grid,
    .payment-settings-strip,
    .paypal-env-grid,
    .package-form-grid,
    .promotion-option-grid { grid-template-columns: 1fr; }
    .payment-card-head { flex-direction: column; }
    .payment-settings-card > .form-grid,
    .payment-settings-card > .paypal-env-grid,
    .payment-settings-card > .form-actions,
    .payment-settings-card > .payment-settings-strip {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* v3.1.0 payments polish */
.payment-settings-wide {
    width: 100%;
}

.payment-compact-grid,
.package-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.payment-package-grid,
.promotion-package-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
}

.payment-package-card,
.promotion-package-card {
    min-width: 0;
    overflow: hidden;
}

.payment-package-card .form-group,
.promotion-package-card .form-group,
.payment-package-card .form-control,
.promotion-package-card .form-control {
    min-width: 0;
}

.add-package-card {
    border-style: dashed;
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.package-icon svg,
.paypal-env-icon svg {
    width: 21px;
    height: 21px;
    display: block;
}

.package-big-value.muted {
    color: #98a2b3;
}

.package-status {
    max-width: 145px;
}

.promotion-title-row {
    align-items: stretch;
}

.promotion-title-row .promotion-name-input {
    min-width: 0;
}

.promotion-title-row strong {
    align-self: center;
    max-width: 42%;
    text-align: right;
    line-height: 1.25;
}

.promotion-option-grid {
    grid-template-columns: 1fr;
}

.promotion-option-grid label {
    justify-content: flex-start;
    min-height: 44px;
    line-height: 1.25;
    white-space: normal;
}

.promotion-option-grid label span {
    display: inline-block;
    overflow-wrap: anywhere;
}

.payment-pro-card .pagination {
    padding: 16px 24px 22px;
    border-top: 1px solid #eef0f4;
}

@media (min-width: 1500px) {
    .payment-package-grid,
    .promotion-package-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .payment-compact-grid,
    .package-form-grid {
        grid-template-columns: 1fr !important;
    }

    .promotion-title-row {
        flex-direction: column;
    }

    .promotion-title-row strong {
        max-width: none;
        text-align: left;
    }
}

/* Settings module */
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 20px;
}

.settings-tab {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--pp-border);
    background: #fff;
    color: var(--pp-muted);
    font-weight: 850;
    box-shadow: 0 8px 24px rgba(15, 17, 21, 0.04);
}

.settings-tab.active,
.settings-tab:hover {
    background: var(--pp-black);
    border-color: var(--pp-black);
    color: #fff;
}

.settings-card {
    padding: 22px;
}

.settings-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.settings-card-head h2 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.settings-card-head p {
    margin: 4px 0 0;
    color: var(--pp-muted);
    line-height: 1.45;
}

.settings-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff7e8;
    color: #b56f00;
}

.settings-icon-lock {
    background: #f2f4f7;
    color: var(--pp-black);
}

.settings-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.settings-document-card {
    max-width: 980px;
}

.settings-textarea {
    min-height: 430px;
    padding: 14px;
    line-height: 1.65;
    resize: vertical;
}

.settings-small-textarea {
    min-height: 132px;
    padding: 14px;
    line-height: 1.55;
    resize: vertical;
}

.settings-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.settings-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--pp-border);
    background: #f9fafb;
    font-weight: 850;
    margin-bottom: 4px;
}

.settings-switch input {
    width: 18px;
    height: 18px;
    accent-color: var(--pp-black);
}

@media (max-width: 980px) {
    .settings-two-column {
        grid-template-columns: 1fr;
    }
}

.push-debug-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 6px 6px 0 0;
    padding: 4px 9px;
    border: 1px solid rgba(15, 17, 21, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--pp-muted);
}

/* v5.0.0 settings polish */
.settings-title-row {
    align-items: flex-start;
    gap: 14px;
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    margin: 0 0 18px;
    background: #fff;
    border: 1px solid var(--pp-border, #e5e7eb);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 17, 21, .05);
}

.settings-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #667085;
    font-weight: 850;
    font-size: .92rem;
    text-decoration: none;
    box-shadow: none;
    transition: .18s ease;
}

.settings-tab:hover {
    color: #101114;
    background: #f7f8fb;
}

.settings-tab.active {
    color: #fff;
    background: #101114;
    box-shadow: 0 12px 26px rgba(15, 17, 21, .18);
}

.settings-tab-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
}

.settings-tab-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.settings-pro-card {
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 17, 21, .07);
}

.settings-narrow-card {
    max-width: 980px;
}

.settings-document-card-pro {
    max-width: 1120px;
}

.settings-card-head-pro {
    margin-bottom: 0;
}

.settings-heading-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.settings-heading-inline h2 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -.02em;
}

.settings-heading-inline p {
    display: block !important;
    margin: 7px 0 0;
    color: #667085;
    font-size: .92rem;
    line-height: 1.45;
}

.settings-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 16px;
    background: #fff7e8;
    color: #b56f00;
}

.settings-icon svg {
    width: 23px;
    height: 23px;
}

.settings-form-body {
    padding: 24px;
}

.settings-form-body .form-group {
    margin-bottom: 18px;
}

.settings-form-grid {
    gap: 16px;
}

.settings-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
    margin-top: 8px;
}

.settings-textarea {
    min-height: 460px;
    padding: 15px;
    line-height: 1.65;
    resize: vertical;
}

.settings-small-textarea {
    min-height: 138px;
    padding: 15px;
    line-height: 1.55;
    resize: vertical;
}

.settings-two-column.settings-push-grid {
    gap: 18px;
    align-items: start;
}

.settings-stat-grid {
    margin-bottom: 18px;
}

.settings-stat-grid .payment-stat-card strong {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.settings-switch-wide {
    margin: 0 0 18px;
    width: 100%;
    justify-content: flex-start;
    border-radius: 16px;
    min-height: 50px;
    background: #fbfcfe;
}

.settings-switch-wide span {
    color: #101114;
}

.push-debug-pill {
    display: none;
}

@media (max-width: 1120px) {
    .settings-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .settings-tabs {
        gap: 8px;
        padding: 7px;
    }

    .settings-tab {
        width: 100%;
        justify-content: flex-start;
    }

    .settings-form-body {
        padding: 18px 16px;
    }

    .settings-form-grid,
    .settings-stat-grid {
        grid-template-columns: 1fr !important;
    }

    .settings-heading-inline {
        align-items: flex-start;
    }

    .settings-form-actions {
        justify-content: stretch;
    }

    .settings-form-actions .btn {
        width: 100%;
    }
}


/* v7.7.0 payment pending actions + business request button alignment */
.payment-row-actions,
.business-request-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-row-actions form,
.business-request-actions form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.payment-row-actions .btn,
.business-request-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    line-height: 1;
    white-space: nowrap;
}

.payment-history-table td:last-child,
.business-table td:last-child {
    vertical-align: middle;
}

.payment-error-line {
    color: #a15c07 !important;
}

/* v1.0.0.0 manual payment methods polish */
.payments-methods-form {
    display: block;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.payment-method-card {
    padding: 22px;
    overflow: hidden;
}

.payment-method-card-wide {
    grid-column: 1 / -1;
}

.payment-method-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.payment-method-head h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #101114;
}

.payment-method-head p {
    margin: 0;
    color: #667085;
    line-height: 1.45;
}

.payment-method-head .payment-switch {
    margin-left: auto;
    flex: 0 0 auto;
}

.payment-method-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: #fff7e8;
    color: #b7791f;
}

.payment-method-icon svg {
    width: 25px;
    height: 25px;
}

.payment-method-icon.paypal {
    background: #eef6ff;
    color: #155eef;
}

.payment-method-icon.aircash {
    background: #fff7e8;
    color: #b7791f;
}

.payment-method-icon.bank {
    background: #ecfdf3;
    color: #067647;
}

.payment-sticky-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding: 16px;
    background: rgba(246, 247, 251, .78);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
}

.badge-blue {
    background: #e0f2fe !important;
    color: #075985 !important;
}

.payment-history-table th,
.payment-history-table td {
    vertical-align: middle;
}

@media (max-width: 1100px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .payment-method-card {
        padding: 18px 16px;
    }

    .payment-method-head {
        flex-wrap: wrap;
    }

    .payment-method-head .payment-switch {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .payment-sticky-actions,
    .payment-sticky-actions .btn {
        width: 100%;
    }
}

/* v1.0.0.1 legal rich editor + single-toast cleanup */
.rich-editor {
    border: 1px solid var(--border-color, #e4e7ec);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 17, 21, 0.05);
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f5f7 100%);
    border-bottom: 1px solid #e4e7ec;
}

.rich-editor-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #1d2939;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar button:focus-visible {
    border-color: #0f8f6a;
    box-shadow: 0 8px 18px rgba(15, 143, 106, .14);
    outline: none;
    transform: translateY(-1px);
}

.rich-editor-surface {
    min-height: 440px;
    padding: 22px;
    color: #1d2939;
    font-size: 15px;
    line-height: 1.55;
    outline: none;
}

.rich-editor-surface:focus {
    box-shadow: inset 0 0 0 2px rgba(15, 143, 106, .16);
}

.rich-editor-surface h1,
.rich-editor-surface h2,
.rich-editor-surface h3 {
    color: #111827;
    line-height: 1.22;
    letter-spacing: -0.03em;
}

.rich-editor-surface h2 {
    margin: 18px 0 8px;
    font-size: 1.35rem;
}

.rich-editor-surface h3 {
    margin: 16px 0 6px;
    font-size: 1.12rem;
}

.rich-editor-surface p {
    margin: 0 0 10px;
}

.rich-editor-surface ul,
.rich-editor-surface ol {
    margin: 0 0 12px 22px;
    padding: 0;
}

.rich-editor-surface li {
    margin: 4px 0;
}

.rich-editor-surface a {
    color: #0f7f5f;
    font-weight: 800;
    text-decoration: none;
}

.rich-editor-surface p:empty,
.rich-editor-surface div:empty {
    display: none;
}

.rich-editor-surface br + br + br {
    display: none;
}

.rich-editor-source {
    display: none;
}

@media (max-width: 640px) {
    .rich-editor-toolbar {
        gap: 6px;
        padding: 10px;
    }

    .rich-editor-toolbar button {
        flex: 1 1 auto;
        min-width: 84px;
    }

    .rich-editor-surface {
        min-height: 340px;
        padding: 16px;
    }
}
