/* SmartCDN – design a Hammer "Sales Reference One-Pager" Figma tokenekből (Jan). */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/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('/fonts/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('/fonts/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('/fonts/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: 700; font-display: swap; src: url('/fonts/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: 700; font-display: swap; src: url('/fonts/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('/fonts/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('/fonts/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 {
    --c-red: #D71912;
    --c-red-hover: #F7A4A1;
    --c-black: #000000;
    --c-white: #FFFFFF;
    --c-grey: #EBEBEB;
    --c-body: #636363;
    --c-grey-mid: #868686;
    --c-muted: #B9B9B9;
    --c-bg: #F8F8F8;
    --c-overlay: rgba(0, 0, 0, .8);
    --c-success: #1E9E5A;
    --c-warn: #C9861A;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    --page-pad: 48px;
    --header-h: 104px;
    --gap: 24px;
    --radius: 24px;
    --radius-sm: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background: var(--c-bg);
    color: var(--c-black);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Fejléc */
.app-header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--page-pad);
    background: var(--c-white);
    border-bottom: 1px solid var(--c-grey);
    position: sticky;
    top: 0;
    z-index: 20;
}
.app-header .brand { display: flex; align-items: center; gap: 14px; }
.app-header .brand img { height: 20px; width: auto; display: block; }
.app-header .brand .sep { width: 1px; height: 26px; background: var(--c-grey); }
.app-header .brand .product {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: .5px;
    line-height: 1;
    color: var(--c-black);
}
.app-nav { display: flex; align-items: center; gap: 28px; }
.app-nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--c-body);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}
.app-nav a.active, .app-nav a:hover { color: var(--c-black); border-bottom-color: var(--c-red); }
.app-user { display: flex; align-items: center; gap: 12px; }
.app-user .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--c-red); color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: 15px;
}
.app-user .meta { line-height: 1.2; }
.app-user .meta .name { font-weight: 700; font-size: 14px; }
.app-user .meta .role { font-size: 12px; color: var(--c-grey-mid); }

/* Tartalom */
.container { max-width: 920px; margin: 0 auto; padding: 40px var(--page-pad) 80px; }
.page-title {
    font-family: var(--font-display);
    font-size: 56px;
    line-height: .95;
    letter-spacing: .5px;
    margin: 0 0 6px;
}
.page-sub { color: var(--c-body); font-size: 18px; margin: 0 0 32px; max-width: 60ch; }

/* Kártya */
.card {
    background: var(--c-white);
    border: 1px solid var(--c-grey);
    border-radius: var(--radius);
    padding: 32px;
}
.card + .card { margin-top: var(--gap); }

/* Űrlap */
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.hint { color: var(--c-grey-mid); font-size: 13px; margin-top: 6px; }
.control, select.control, textarea.control {
    width: 100%;
    background: var(--c-white);
    border: 1px solid var(--c-muted);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--c-black);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.control::placeholder { color: var(--c-grey-mid); }
.control:focus { border-color: var(--c-red); box-shadow: 0 0 0 3px rgba(215, 25, 18, .12); }
select.control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23868686' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}
.field-error { color: var(--c-red); font-size: 13px; margin-top: 6px; }
.control.has-error { border-color: var(--c-red); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.divider-or {
    display: flex; align-items: center; gap: 12px;
    color: var(--c-grey-mid); font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
    margin: 6px 0;
}
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--c-grey); }

/* Dropzone */
.dropzone {
    display: block;
    border: 2px dashed var(--c-muted);
    border-radius: var(--radius-sm);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    background: var(--c-bg);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--c-red); background: #fff; }
.dropzone .dz-icon { color: var(--c-red); margin-bottom: 12px; }
.dropzone .dz-title { font-weight: 700; font-size: 16px; }
.dropzone .dz-hint { color: var(--c-grey-mid); font-size: 13px; margin-top: 4px; }
.dropzone.has-file { border-style: solid; border-color: var(--c-success); background: #fff; }
.file-chip {
    display: none;
    align-items: center; gap: 12px;
    margin-top: 16px; padding: 12px 16px;
    background: var(--c-grey); border-radius: var(--radius-sm);
    text-align: left;
}
.file-chip.show { display: flex; }
.file-chip .fc-name { font-weight: 500; font-size: 14px; word-break: break-all; }
.file-chip .fc-size { color: var(--c-grey-mid); font-size: 12px; }

/* Gombok */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-body); font-weight: 500; font-size: 16px;
    border: none; border-radius: 999px; padding: 14px 26px;
    cursor: pointer; text-decoration: none; transition: background .15s ease, color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-red); color: #fff; }
.btn-primary:hover { background: #b5140e; }
.btn-ghost { background: transparent; color: var(--c-body); border: 1px solid var(--c-muted); }
.btn-ghost:hover { color: var(--c-black); border-color: var(--c-black); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 18px; }

/* Értesítések */
.alert {
    display: flex; gap: 14px; align-items: flex-start;
    border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 24px;
    border: 1px solid;
}
.alert .a-icon { flex-shrink: 0; margin-top: 1px; }
.alert .a-body { flex: 1; }
.alert .a-title { font-weight: 700; margin-bottom: 2px; }
.alert-success { background: #EAF7EF; border-color: #BfE6CE; color: #14663a; }
.alert-warn { background: #FBF3E3; border-color: #F0DDB4; color: #8a5b10; }
.alert-error { background: #FCE9E8; border-color: #F5C2C0; color: #9a120c; }

/* URL doboz + copy */
.url-box {
    display: flex; align-items: center; gap: 10px;
    background: var(--c-white); border: 1px solid var(--c-muted);
    border-radius: var(--radius-sm); padding: 10px 10px 10px 16px; margin-top: 12px;
}
.url-box code { flex: 1; font-size: 14px; color: var(--c-black); word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
    background: var(--c-black); color: #fff; border: none; border-radius: 999px;
    padding: 10px 16px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.copy-btn:hover { background: #333; }
.copy-btn.copied { background: var(--c-success); }

.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.icon-lg { width: 28px; height: 28px; }

/* Belépő oldal */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
    width: 100%; max-width: 440px; background: #fff;
    border: 1px solid var(--c-grey); border-radius: var(--radius);
    padding: 48px 40px; text-align: center;
}
.login-card .logo { height: 24px; margin-bottom: 28px; }
.login-card h1 { font-family: var(--font-display); font-size: 44px; line-height: 1; margin: 0 0 8px; }
.login-card p { color: var(--c-body); margin: 0 0 32px; }
.ms-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 16px; border-radius: 999px;
    background: var(--c-black); color: #fff; text-decoration: none;
    font-weight: 500; font-size: 16px;
}
.ms-btn:hover { background: #333; }

/* Flash toast */
.flash-toast {
    position: fixed; top: 118px; left: 50%; transform: translateX(-50%);
    z-index: 50; display: flex; align-items: center; gap: 10px;
    background: #14663a; color: #fff; padding: 12px 20px; border-radius: 999px;
    font-weight: 500; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
    transition: opacity .4s ease; animation: reveal-up .4s cubic-bezier(.2,.7,.2,1) both;
}
.flash-toast .icon { width: 18px; height: 18px; }

/* ---- Finom animációk ---- */
html { scroll-behavior: smooth; }

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pop-in {
    0%   { opacity: 0; transform: scale(.96); }
    60%  { transform: scale(1.01); }
    100% { opacity: 1; transform: scale(1); }
}

/* Belépő animáció, opcionális --d késleltetéssel (stagger). */
.reveal { animation: reveal-up .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }

body { animation: fade-in .35s ease both; }

/* Alertek finoman beúsznak. */
.alert { animation: reveal-up .4s cubic-bezier(.2, .7, .2, 1) both; }
.login-card { animation: pop-in .45s cubic-bezier(.2, .7, .2, 1) both; }

/* Interaktív kártyák enyhe emelése hoverre. */
.stat, .asset-tile { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.stat:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .06); }
.asset-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .08); border-color: var(--c-muted); }

/* Gombok apró emelése. */
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary { transition: background .15s ease, transform .1s ease, box-shadow .15s ease; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(215, 25, 18, .25); }

/* Copy-visszajelzés apró pulzálás. */
@keyframes copied-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.copy-btn.copied, .mini-btn.copied, .row-copy.copied { animation: copied-pop .3s ease; }

/* Avatar és nav finom átmenetek. */
.app-user .avatar { transition: transform .2s ease; }
.app-user .avatar:hover { transform: scale(1.06); }

@media (max-width: 720px) {
    :root { --page-pad: 20px; }
    .row { grid-template-columns: 1fr; }
    .app-nav { display: none; }
    .page-title { font-size: 40px; }
    .card { padding: 22px; }
}

/* Mozgáscsökkentés tisztelete. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, body, .alert, .login-card { opacity: 1 !important; transform: none !important; }
}
