/* HCA2 admin - Jan design nyelve (SalesPager 2026). A style.css UTAN toltodik, csak felulir. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../landing_templates/salespager_hammer/fonts2026/inter-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../landing_templates/salespager_hammer/fonts2026/inter-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../landing_templates/salespager_hammer/fonts2026/inter-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../landing_templates/salespager_hammer/fonts2026/inter-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('../landing_templates/salespager_hammer/fonts2026/inter-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('../landing_templates/salespager_hammer/fonts2026/inter-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../landing_templates/salespager_hammer/fonts2026/bebasneue-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../landing_templates/salespager_hammer/fonts2026/bebasneue-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --a-red: #D71912;
    --a-red-hover: #F7A4A1;
    --a-black: #000000;
    --a-white: #FFFFFF;
    --a-grey: #EBEBEB;
    --a-body: #636363;
    --a-grey-mid: #868686;
    --a-muted: #B9B9B9;
    --a-bg: #F8F8F8;
    --a-green: #1E8E3E;
    --a-overlay: rgba(0, 0, 0, .8);
    --a-shadow: 0 8px 32px rgba(0, 0, 0, .06);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    --a-header-h: 72px;
    --a-sidebar-w: 260px;
    --a-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23636363' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- alap ---------- */

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
    color: var(--a-black);
    background: var(--a-bg);
    -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--a-muted); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--a-grey-mid); }
.red { color: var(--a-red) !important; }
.error { color: var(--a-red); font-size: 14px; }
.success { color: var(--a-green); font-size: 14px; }
.copied { color: var(--a-red); font-size: 12px; text-transform: none; letter-spacing: 0; }
.overlay { background: var(--a-overlay); z-index: 20; }

/* ---------- gombok (pill, Jan CTA-stilus) ---------- */

.a-btn,
.btn-black,
.btn-landing,
.set-current,
#set-current-page,
.clear-filter,
.favorit-control form input,
.favorit-control .hide-favorites-btn,
.item-content-box button,
.item-content-box a,
.edit-contorl-btns button,
.edit-contorl-btns a,
.back-btn,
.add-category-box input[name="submit"],
.save-tags-btn,
.login-submit input,
.generate-pass,
.sb-set {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 40px;
    margin: 0;
    padding: 9px 22px;
    max-width: none;
    float: none;
    border: 1px solid var(--a-black);
    border-radius: 51px;
    background: var(--a-white);
    color: var(--a-black);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
.a-btn:hover,
.btn-black:hover,
.set-current:hover,
#set-current-page:hover,
.clear-filter:hover,
.favorit-control form input:hover,
.favorit-control .hide-favorites-btn:hover,
.item-content-box button:hover,
.item-content-box a:hover,
.edit-contorl-btns button:hover,
.edit-contorl-btns a:hover,
.back-btn:hover,
.generate-pass:hover,
.sb-set:hover {
    background: var(--a-black);
    color: var(--a-white) !important;
}
/* elsodleges: piros */
.btn-landing,
.sb-create,
.edit-contorl-btns button:last-child,
.item-content-box .case-study-download,
.add-category-box input[name="submit"],
.save-tags-btn,
.login-submit input,
.card__head .btn-black,
.pg-actions button[type="submit"] {
    background: var(--a-red);
    border-color: var(--a-red);
    color: var(--a-white);
}
.btn-landing:hover,
.sb-create:hover,
.edit-contorl-btns button:last-child:hover,
.item-content-box .case-study-download:hover,
.add-category-box input[name="submit"]:hover,
.save-tags-btn:hover,
.login-submit input:hover,
.card__head .btn-black:hover,
.pg-actions button[type="submit"]:hover {
    background: var(--a-black);
    border-color: var(--a-black);
    color: var(--a-white);
}
/* veszelyes: torles */
.edit-contorl-btns button[value="delete"],
.btn-danger {
    background: var(--a-white);
    border-color: var(--a-red);
    color: var(--a-red);
}
.edit-contorl-btns button[value="delete"]:hover,
.btn-danger:hover {
    background: var(--a-red);
    border-color: var(--a-red);
    color: var(--a-white) !important;
}
/* kicsi valtozat */
.set-current,
#set-current-page,
.sb-set,
.generate-pass,
.btn-small {
    min-height: 30px;
    padding: 4px 12px;
    font-size: 12px;
}

/* ---------- fejlec ---------- */

header {
    background: var(--a-red);
    position: relative;
    height: var(--a-header-h);
    box-sizing: border-box;
    z-index: 5;
}
.admin-logo {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    line-height: 0;
    z-index: 1;
}
.admin-logo img { width: 120px; height: auto; display: block; }
.search-form-box {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 0;
    box-sizing: border-box;
}
.search-form-box form {
    display: flex;
    align-items: center;
    height: 44px;
    background: var(--a-white);
    border-radius: 51px;
    overflow: hidden;
}
.search-form-box input {
    flex: 1 1 auto;
    width: auto;
    height: 44px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 20px;
    color: var(--a-black);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
}
.search-form-box input::placeholder { color: var(--a-grey-mid); }
.search-form-box button {
    flex: 0 0 auto;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: var(--a-white);
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background .2s;
}
.search-form-box button img { width: 20px; height: 20px; display: block; }
.search-form-box button:hover { background: var(--a-grey); }
.menu { top: 22px; left: 18px; }
.menu div { background: var(--a-white); border-radius: 2px; }

.profil-box { right: 48px; display: flex; align-items: center; }
.profil-box a { color: var(--a-white); font-weight: 500; font-size: 15px; padding: 10px 24px 10px 8px; }
.profil-box > a { padding: 0; margin-right: 24px; line-height: 0; }
.all-favorites { width: 28px; height: 28px; }
.count-fav {
    top: -8px;
    left: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    background: var(--a-black);
    color: var(--a-white);
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}
.profil-box ul { min-width: 0; }
.profil-box > ul > li > a:after { right: 4px; }
.profil-box li ul {
    background: var(--a-white);
    border-radius: 16px;
    top: 44px;
    left: auto;
    right: 0;
    overflow: hidden;
    box-shadow: none;
}
.profil-box > ul > li:hover > ul { box-shadow: 0 12px 32px rgba(0, 0, 0, .16); padding: 8px 0; }
.profil-box li ul li { width: 200px; }
.profil-box li ul a { color: var(--a-black); font-weight: 400; padding: 9px 18px; border: 0; }
.profil-box li ul a:hover { background: var(--a-grey); }

/* ---------- tartalom + oldalsav ---------- */

.content { background: var(--a-bg); height: calc(100% - 72px); }
.content.login { background: var(--a-bg); }
.sidebar {
    width: 200px;
    background: var(--a-white);
    border-right: 1px solid var(--a-grey);
    height: calc(100% - 144px);
    padding: 28px 28px 44px 32px;
    transition: width .3s ease-in-out, padding .3s ease-in-out;
    color: var(--a-black);
}
.sidebar.show { width: 200px; padding: 28px 28px 44px 32px; }
.right-content {
    margin-left: var(--a-sidebar-w);
    padding: 40px 48px 64px;
    transition: margin .3s ease-in-out;
}
.sb-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 9px 16px;
    margin: 0 0 20px;
    border-radius: 51px;
    border: 1px solid var(--a-red);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.sidebar .sb-create { color: var(--a-white); }
.sb-current {
    padding: 12px 14px;
    margin: 0 0 24px;
    background: var(--a-bg);
    border-radius: 12px;
}
.sb-current__label { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--a-grey-mid); line-height: 1.3; }
.sb-current__name { font-size: 14px; font-weight: 600; margin-top: 4px; line-height: 1.3; word-break: break-word; }
.sidebar .sb-current__name a { color: var(--a-red); text-decoration: none; }
.sidebar .sb-current__name a:hover { text-decoration: underline; }
.sb-current__none { color: var(--a-grey-mid); font-weight: 400; }
.sidebar a { color: var(--a-black); }
.sidebar > ul > li > a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 4px 0;
    transition: color .2s;
}
.sidebar > ul > li > a span { color: var(--a-grey-mid); font-weight: 400; font-size: 18px; line-height: 1; }
.sidebar > ul > li > a:hover,
.sidebar > ul > li > a:hover span { color: var(--a-red); }
.sidebar > ul > li { margin-bottom: 22px; }
.sidebar ul li.home-btn a { font-family: var(--font-body); font-weight: 600; }
.sidebar ul img { margin-right: 10px; vertical-align: -2px; }
.sidebar ul > li > ul { margin-top: 14px; }
.sidebar ul > li > ul > li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--a-body);
    cursor: pointer;
    transition: color .15s;
}
.sidebar ul > li > ul > li:hover { color: var(--a-black); }
.sidebar ul > li > ul > li.grey { color: var(--a-muted); }
.sidebar ul > li > ul > li p { width: auto; flex: 1 1 auto; line-height: 1.35; }
.sidebar ul > li > ul > li span,
.item-content-box ul > li > span,
.edit-right .item-content-box ul > li > span {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin: 2px 10px 0 0;
    border: 1.5px solid var(--a-muted);
    border-radius: 4px;
    background: var(--a-white);
    box-sizing: border-box;
    transition: background .15s, border-color .15s;
}
.selected-filter span,
.selected-filter > span { background: var(--a-red) !important; border-color: var(--a-red) !important; }
.sidebar ul > li > ul > li.selected-filter { color: var(--a-black); }
.sb-set {
    margin-left: 8px;
    min-height: 24px;
    padding: 2px 10px;
    font-size: 11px;
    border-color: var(--a-muted);
    color: var(--a-body);
    white-space: nowrap;
    line-height: 1.2;
    vertical-align: middle;
}
.sidebar .sb-set { color: var(--a-body); }
.sidebar ul > li > ul > li .sb-cur { font-style: normal; color: var(--a-red); font-size: 12px; margin-left: 6px; }
.sidebar ul > li > ul > li em { font-style: normal; color: var(--a-grey-mid); }
.clear-filter { margin-top: 24px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 9px 16px; }

/* ---------- cimek ---------- */

.search-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--a-black);
    margin-bottom: 32px;
}
.elements-number {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--a-grey-mid);
    text-transform: none;
    margin-left: 12px;
    vertical-align: 6px;
}

/* ---------- csempek (dashboard, kereses) ---------- */

.masonry { margin: 0; column-gap: 24px; font-size: 14px; }
.item { margin: 0 0 24px; transition: none; }
.search-results-img-box,
.search-results-img-box.item {
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--a-grey);
    vertical-align: top;
}
.right-content.search-results img { border-radius: 0; }
.search-results-img-box > a { display: block; line-height: 0; }
.search-results-img-box > a img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .3s ease-in;
}
.search-results-img-box:hover > a img { transform: scale(1.05); }
.search-results-img-box > span {
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    box-sizing: border-box;
    padding: 12px 48px 12px 50px;
    background: var(--a-overlay);
    color: var(--a-white);
    font-size: 13px;
    line-height: 1.4;
    border-radius: 0;
    z-index: 1;
}
.search-results-img-box > span img {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: auto;
    background: none;
    padding: 0;
    border-radius: 0;
}
.add-to-current {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--a-white);
    color: var(--a-black);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    transition: background .2s, color .2s;
}
.add-to-current:hover { background: var(--a-red); color: var(--a-white); }
.add-to-current:disabled { opacity: .45; cursor: default; }
.add-to-current:disabled:hover { background: var(--a-white); color: var(--a-black); }
.case_study { width: 56px; height: 56px; right: 8px; bottom: 8px; line-height: 0; }
.case_study img { width: 100%; height: auto; }

/* ---------- kedvencek ---------- */

.favorit-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 400;
}
.favorit-control > span { margin: 0; text-decoration: none; color: inherit; cursor: default; }
.favorit-control > span:hover { color: inherit; }
.favorit-control form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.favorit-control form input { text-decoration: none; font-size: 14px; font-weight: 500; }
.favorit-control .btn-landing { margin: 0; }
.favorites-img-box { height: 240px; margin: 0 16px 16px 0; }
.favorites-img-box img { border-radius: 16px; }
.favorites-img-box .add-to-current { left: 28px; top: 10px; }
.del-favorit {
    top: -8px;
    left: -8px;
    width: 26px;
    height: 26px;
    padding: 0;
    line-height: 26px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--a-red);
    color: var(--a-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    z-index: 2;
}

/* ---------- kartyak (elem nezet, szerkesztes, uj user, pages) ---------- */

.item-popup,
.edit-item-popup,
.card {
    background: var(--a-white);
    border-radius: 24px;
    border-top: 0;
    padding: 32px;
    box-shadow: var(--a-shadow);
    box-sizing: border-box;
}
.item-popup { max-width: 1100px; overflow: visible; }
.edit-item-popup { max-width: 1200px; overflow: visible; }
.new-user .item-popup { padding: 40px 48px; max-width: 860px; }
.box-shadow, .edit-box-shadow { display: none; }
.edit-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 28px;
}

/* elem nezet */
.item-left-content {
    background: var(--a-bg);
    border-radius: 16px;
    overflow: hidden;
    padding-top: 0;
}
.item-image {
    height: 320px;
    max-height: 320px;
    background: var(--a-grey);
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-image > img:first-child { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.full-size-icon {
    bottom: 10px;
    right: 10px;
    padding: 7px;
    background: var(--a-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.icons { padding: 16px 20px; gap: 12px; justify-content: center; }
.icons span {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--a-black);
    transition: background .2s;
}
.icons span:hover { background: var(--a-red); }
.icons img { max-height: 20px; }
.item-left-content .item-content-box {
    background: transparent;
    border: 0;
    padding: 0 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.item-left-content .item-content-box a { margin: 0; }
.case-study-download { margin-left: 0; }
.item-content-box { border-bottom: 1px solid var(--a-grey); padding-bottom: 12px; }
.item-content-box:last-child { border: none; }
.item-content-box label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--a-grey-mid);
    margin: 20px 0 6px;
}
.item-content-box p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
    color: var(--a-black);
    word-break: break-word;
}
.item-content-box button, .item-content-box a { margin: 12px 8px 0 0; }
.item-content-box .cover-images-btn { margin: 0 0 16px; }
.item-content-box .cover-images-btn.active { background: var(--a-red); border-color: var(--a-red); color: var(--a-white); }
.item-content-box.type ul li { width: 120px; margin-right: 24px; font-size: 14px; color: var(--a-body); }
.item-content-box.type ul li.selected-filter { color: var(--a-black); }
.item-content-box ul > li { margin: 8px 0; }
.tags-element {
    width: auto;
    padding: 6px 14px;
    margin: 0 8px 10px 0;
    border-radius: 51px;
    background: var(--a-grey);
    color: var(--a-black);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.3;
}
.tags-element p { color: var(--a-black); margin: 0; }
.tags-close {
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    padding: 0;
    line-height: 16px;
    text-align: center;
    font-size: 10px;
    background: var(--a-red);
    color: var(--a-white);
}
.add-tags-element {
    width: auto;
    min-width: 40px;
    padding: 6px 14px;
    margin: 0 8px 10px 0;
    border: 1px dashed var(--a-grey-mid);
    border-radius: 51px;
    background: var(--a-white);
    color: var(--a-body);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.3;
    transition: border-color .2s, color .2s;
}
.add-tags-element:hover { border-color: var(--a-black); color: var(--a-black); }
.edit-item-content .tags-element { float: none; }
.more-less-btn { color: var(--a-red); font-weight: 500; }

/* urlap mezok - Jan input */
.three-box-outer input,
.user-left-content input,
.user-right-content input,
.popup-box input:not([type="submit"]),
.login-box input:not([type="submit"]),
.pg-input,
.edit-item-content select,
.new-user select,
.popup-box select {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 14px;
    background: var(--a-white);
    border: 1px solid var(--a-muted);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4;
    color: var(--a-black);
    transition: border-color .2s;
}
.three-box-outer input:focus,
.user-left-content input:focus,
.user-right-content input:focus,
.popup-box input:focus,
.login-box input:focus,
.pg-input:focus,
.edit-item-content select:focus,
.new-user select:focus { outline: none; border-color: var(--a-black); }
.three-box-outer input:disabled,
.pg-input:disabled { background: var(--a-bg); color: var(--a-grey-mid); }
.edit-item-content select,
.new-user select,
.popup-box select,
select.pg-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-color: var(--a-white);
    background-image: var(--a-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 8px;
    color: var(--a-black);
    cursor: pointer;
}
.new-user select option, .edit-item-content select option { background: var(--a-white); color: var(--a-black); }
.edit-item-content .item-content-box { margin-bottom: 14px; }
.edit-item-content .item-content-box label { margin: 0 0 6px; }
.edit-item-content input[name="low-res-link"], .edit-item-content input[name="hi-res-link"] { cursor: text; }
.three-box-outer { display: flex; gap: 24px; align-items: flex-start; }
.three-box-outer > div { display: block; width: auto; flex: 1 1 0; margin-right: 0; min-width: 0; }
.three-box-outer .edit-left {
    flex: 0 0 300px;
    height: 325px;
    max-height: 325px;
    background: var(--a-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.three-box-outer .edit-left img { margin-top: 0; max-width: 100%; max-height: 100%; }
.three-box-outer .edit-left img.add-image:not(.selected-image),
.three-box-outer .edit-left img.add-case_study:not(.selected-image) { max-height: 60%; filter: invert(.62); }
.img-controls { background: rgba(0, 0, 0, .6); padding: 4px 0; }
.img-controls img { margin: 0 16px !important; padding: 8px 0; max-height: 18px; opacity: 1 !important; }
.two-box-outer { display: flex; gap: 24px; margin-top: 8px; }
.two-box-outer > div { display: block; }
.two-box-outer .edit-left { flex: 0 0 300px; width: auto; margin-right: 0; }
.two-box-outer .edit-right { width: auto; flex: 1 1 auto; }
.two-box-outer li { font-weight: 500; }
.edit-right ul li { width: 120px; margin-right: 24px; font-size: 14px; color: var(--a-body); cursor: pointer; }
.edit-right ul li.selected-filter { color: var(--a-black); }
.edit-contorl-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.edit-contorl-btns button, .edit-contorl-btns a { margin: 0; font-size: 14px; }
.pass-text { font-family: ui-monospace, Menlo, monospace; color: var(--a-red); margin-top: 6px; font-size: 13px; }
.new-user .edit-contorl-btns { margin-top: 40px; }
.new-user .item-content-box { margin-bottom: 18px; }

/* ---------- projektvideo (elem nezet, csempe-jelveny) ---------- */
/* a landing .sp-play parja: piros kor, feher jel, hoverre invertal; a video csak kattintasra indul */
.video-play,
.search-results-img-box .video-badge {
    --a-play-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 28'%3E%3Cpath d='M4 3L23 14L4 25Z' fill='%23000' stroke='%23000' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--a-red);
    cursor: pointer;
    transition: background .2s ease-out, transform .2s ease-out;
}
.video-play::before,
.search-results-img-box .video-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--a-white);
    -webkit-mask: var(--a-play-mark) calc(50% + 3px) 50% / 22px 24px no-repeat;
    mask: var(--a-play-mark) calc(50% + 3px) 50% / 22px 24px no-repeat;
    transition: background .2s ease-out;
}
.video-play:hover { background: var(--a-white); transform: scale(1.06); }
.video-play:hover::before { background: var(--a-red); }
.item-image video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--a-black);
}
/* dashboard / kereses: kis play jelveny a videos projekteken (a style.css span-szabalyait felulirja) */
.search-results-img-box .video-badge {
    display: block;
    position: absolute;
    top: auto;
    left: auto;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: var(--a-red);
    pointer-events: none;
}
.search-results-img-box .video-badge::before { -webkit-mask-size: 12px 13px; mask-size: 12px 13px; }

/* ---------- fajlfeltoltes a Low-Res / Hi-Res mezohoz ---------- */

.up-ctl { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.item-content-box .up-ctl .up-btn {
    min-height: 32px;
    margin: 0;
    padding: 6px 16px;
    border: 1px solid var(--a-black);
    border-radius: 51px;
    background: var(--a-white);
    color: var(--a-black);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease-out, color .2s ease-out;
}
.item-content-box .up-ctl .up-btn:hover { background: var(--a-black); color: var(--a-white); }
.up-msg { font-size: 12px; line-height: 1.4; color: var(--a-grey-mid); word-break: break-all; }
.up-msg--err { color: var(--a-red); }
.up-msg--off { font-style: italic; }
.up-bar { flex: 1 1 100%; height: 6px; border-radius: 6px; background: var(--a-grey); overflow: hidden; }
.up-bar > span { display: block; height: 100%; width: 0; background: var(--a-red); transition: width .15s linear; }
.up-hint { flex: 1 1 100%; font-size: 11px; line-height: 1.4; color: var(--a-grey-mid); }

/* ---------- popup (kategoria, kliens, tag) ---------- */

.popup-box {
    top: 20%;
    width: 360px;
    padding: 32px;
    background: var(--a-white);
    color: var(--a-black);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
    z-index: 21;
}
.popup-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.popup-box input:not([type="submit"]) { color: var(--a-black); }
.add-category-close, .add-client-close, .tags-popup-close {
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--a-grey);
    color: var(--a-black);
    font-size: 12px;
    font-weight: 600;
    line-height: 28px;
    text-align: center;
    transition: background .2s, color .2s;
}
.add-category-close:hover, .add-client-close:hover, .tags-popup-close:hover { background: var(--a-black); color: var(--a-white); }
.add-category-box input[name="submit"], .save-tags-btn { margin: 20px auto 0; font-size: 14px; }
.popup-full-image { z-index: 21; }
.popup-image-close { background: var(--a-black); color: var(--a-white); }

/* ---------- login ---------- */

.login-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: var(--a-bg);
}
.login-box {
    max-width: 440px;
    margin: 0;
    padding: 48px;
    background: var(--a-white);
    border-top: 0;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .08);
    box-sizing: border-box;
    color: var(--a-black);
}
.login-logo { display: block; width: 140px; height: auto; margin: 0 0 32px; }
.login-box > span,
.login-box > form > span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 44px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.login-box label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--a-grey-mid);
    margin-bottom: 8px;
}
.login-box input:not([type="submit"]) { margin-bottom: 20px; color: var(--a-black); }
.login-submit { max-width: none; border: 0; border-radius: 0; margin-top: 8px; }
.login-submit input {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- pages (reference pages) ---------- */

.pg-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.pg-current { font-size: 12px; font-weight: 600; color: var(--a-red); }
.pg-flash {
    display: inline-block;
    margin: -8px 0 20px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--a-white);
    border: 1px solid var(--a-muted);
    font-size: 14px;
    color: var(--a-black);
}
.card { margin-bottom: 20px; max-width: 980px; }
.card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 20px;
}
.card__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.card__head h3 { margin: 0; }
.card--danger { border: 1px solid var(--a-red-hover); background: #FFF5F5; box-shadow: none; }
.card--danger h3 { color: var(--a-red); }
.card--danger p { margin: 0 0 16px; font-size: 14px; color: var(--a-body); }
.pg-row { display: flex; flex-wrap: wrap; gap: 24px; }
.pg-row + .pg-row { margin-top: 20px; }
.pg-field { flex: 1 1 400px; min-width: 260px; }
.pg-field--sm { flex-basis: 260px; min-width: 220px; }
.pg-field label, .pg-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--a-grey-mid);
    margin-bottom: 8px;
}
.pg-help { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--a-grey-mid); }
.pg-help code { font-size: 12px; background: var(--a-bg); padding: 2px 8px; border-radius: 6px; color: var(--a-body); word-break: break-all; }
.pg-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pg-spacer { flex: 1 1 auto; }
.pg-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.pg-check input { width: 16px; height: 16px; accent-color: var(--a-red); margin: 0; }
/* A kivalasztott referenciak racsa: ugyanaz az elrendezes, amit a hammeragency.eu rajzol
   (4 oszlop, 4:3 cella, dense kitoltes), hogy a szerkeszto a valodi aranyokat lassa.
   A sormagassag a racs sajat szelessegebol jon, ezert kell a kulon container-wrapper. */
.ref-gridwrap { container-type: inline-size; }
.ref-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 120px;
    grid-auto-rows: calc((100cqw - 48px) / 4 * 3 / 4);
    grid-auto-flow: dense;
    gap: 16px;
}
.ref-card {
    position: relative;
    grid-column: span 1;
    grid-row: span 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--a-grey);
}
.ref-card--wide { grid-column: span 2; }
.ref-card--tall { grid-row: span 2; }
.ref-card--large { grid-column: span 2; grid-row: span 2; }
.ref-card__img { width: 100%; height: 100%; }
.ref-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ref-card__name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 28px 8px 10px;
    font-size: 11px;
    color: var(--a-white);
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.btn-remove-ref {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--a-red);
    color: var(--a-white);
    font-weight: 700;
    line-height: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
/* Csempemeret: negy gomb a csempen (a kis abra a valodi aranyt mutatja) + sarok-fogantyu. */
.ref-size {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    opacity: 0;
    transition: opacity .15s ease-in;
}
.ref-card:hover .ref-size,
.ref-card:focus-within .ref-size,
.ref-card.is-resizing .ref-size { opacity: 1; }
.ref-size__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}
.ref-size__btn:hover { background: var(--a-grey); }
.ref-size__btn:focus-visible { outline: 2px solid var(--a-red); outline-offset: 1px; }
.ref-size__btn i { display: block; border-radius: 2px; background: var(--a-muted); }
.ref-size__btn.is-active i { background: var(--a-red); }
.ref-size__btn[data-size="normal"] i { width: 7px; height: 7px; }
.ref-size__btn[data-size="wide"] i { width: 15px; height: 7px; }
.ref-size__btn[data-size="tall"] i { width: 7px; height: 15px; }
.ref-size__btn[data-size="large"] i { width: 15px; height: 15px; }
.ref-card__handle {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 24px;
    height: 24px;
    cursor: nwse-resize;
    touch-action: none;
    opacity: 0;
    transition: opacity .15s ease-in;
}
.ref-card__handle::before {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--a-white);
    border-bottom: 2px solid var(--a-white);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
}
.ref-card:hover .ref-card__handle,
.ref-card.is-resizing .ref-card__handle { opacity: 1; }
.ref-card.is-resizing { outline: 2px solid var(--a-red); outline-offset: -2px; }
@media (hover: none) {
    .ref-size, .ref-card__handle { opacity: 1; }
}
@media (max-width: 1200px) {
    .ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - 32px) / 3 * 3 / 4); }
}
@media (max-width: 700px) {
    .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - 16px) / 2 * 3 / 4); }
}
.pg-empty { font-size: 14px; color: var(--a-grey-mid); }
.pg-list { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.pg-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--a-grey); }
.pg-list a { font-weight: 500; color: var(--a-black); text-decoration: none; }
.pg-list a:hover { color: var(--a-red); }
.pg-form { max-width: 420px; }
.pg-form .pg-input { margin-bottom: 16px; }

.pg-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 51px;
    background: var(--a-red);
    color: var(--a-white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.4;
}
.ref-card[draggable="true"] { cursor: grab; }
.ref-card.is-dragging { opacity: .4; }
.ref-order-hint { margin: -8px 0 16px; }
.card--key { border: 1px solid var(--a-red-hover); background: #FFF5F5; }
.card--locked { border: 1px solid var(--a-muted); background: var(--a-white); }
.card--locked h3 { color: var(--a-black); }
.card--locked p { margin: 0; font-size: 14px; color: var(--a-body); }
.pg-lock { flex-basis: 100%; color: var(--a-black); font-weight: 500; }
.pg-input[readonly] { background: var(--a-bg); color: var(--a-grey-mid); cursor: not-allowed; }
.api-key-code {
    display: block;
    margin: 12px 0;
    padding: 14px 16px;
    background: var(--a-white);
    border: 1px solid var(--a-muted);
    border-radius: 12px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 15px;
    word-break: break-all;
    user-select: all;
}
.api-endpoints { margin: 0 0 12px; padding-left: 18px; font-size: 14px; color: var(--a-body); }
.api-endpoints li + li { margin-top: 8px; }
.api-endpoints code, .card__body code { font-size: 13px; background: var(--a-bg); padding: 2px 8px; border-radius: 6px; color: var(--a-black); }
.lp-table--flat { box-shadow: none; border: 1px solid var(--a-grey); }
.lp-table form { display: inline; }

/* ---------- landing pages lista + szerkesztes ---------- */

.lp-wrap { padding: 0; }
.lp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--a-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--a-shadow);
}
.lp-table th {
    text-align: left;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--a-grey-mid);
    border-bottom: 1px solid var(--a-grey);
}
.lp-table td { padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--a-grey); }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-table a { color: var(--a-black); }
.lp-status--on { color: var(--a-green); font-weight: 600; }
.lp-status--off { color: var(--a-grey-mid); }
.lp-actions a { margin-right: 14px; text-decoration: none; font-weight: 500; }
.lp-actions a:hover { color: var(--a-red); }
.lp-actions a.lp-del { color: var(--a-red); }
.lp-empty { padding: 24px; text-align: center; color: var(--a-grey-mid); }
.lp-footer { margin-top: 24px; }
.lp-section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--a-grey-mid);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--a-grey);
}
.lp-thumb { width: 100%; border-radius: 10px; border: 1px solid var(--a-grey); box-shadow: none; }
.lp-thumb-name { font-size: 11px; font-weight: 500; margin: 6px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--a-body); }
.grid-stack-item-content {
    background: var(--a-white);
    border: 1px solid var(--a-grey);
    border-radius: 12px;
    padding: 6px;
    box-sizing: border-box;
}
.grid-stack-item-content p { color: var(--a-body); }
.ui-resizable-se::after, .ui-resizable-sw::after, .ui-resizable-ne::after, .ui-resizable-nw::after { border-color: var(--a-red); }

/* ---------- reszponziv ---------- */

@media screen and (max-width: 1400px) {
    .search-form-box { max-width: 560px; }
}
@media screen and (max-width: 1200px) {
    .search-form-box { max-width: 420px; }
    .right-content { padding: 32px 32px 56px; }
}
@media screen and (max-width: 992px) {
    .sidebar { width: 0; padding: 0; border-right: 0; z-index: 4; }
    .sidebar.show { width: 200px; padding: 28px 28px 44px 32px; border-right: 1px solid var(--a-grey); box-shadow: 0 16px 48px rgba(0, 0, 0, .12); }
    .right-content { margin-left: 0; padding: 28px 20px 48px; }
    .admin-logo { left: 64px; }
    .admin-logo img { width: 100px; }
    .search-form-box { max-width: none; width: auto; margin: 0 300px 0 180px; }
    .profil-box { right: 16px; }
    .search-title { font-size: 36px; }
    .three-box-outer, .two-box-outer { flex-direction: column; }
    .three-box-outer .edit-left, .two-box-outer .edit-left { flex-basis: auto; width: 100%; }
    .item-left-content, .item-right-content, .edit-item-left-content { display: block; width: 100%; max-width: none; margin-left: 0; }
    .item-right-content { margin-top: 24px; padding-right: 0; max-height: none; }
    .user-left-content, .user-right-content { display: block; width: 100%; padding: 0; }
    .new-user .item-popup { padding: 28px 24px; }
}
@media screen and (max-width: 600px) {
    .search-form-box { margin: 0 80px 0 64px; }
    .admin-logo { display: none; }
    .profil-box > ul { display: none; }
    .item-popup, .edit-item-popup, .card { padding: 20px; border-radius: 16px; }
    .search-title { font-size: 32px; }
}
