/* Bellia mini-CRM — arculati stílus */
:root {
    --navy: #061D3E;
    --puder: #FBF6F2;
    --rozearany: #D69A82;
    --rozsa: #E8D8D0;
    --szilva: #7A4A58;
    --arnyek: 0 4px 18px rgba(6, 29, 62, 0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    color: var(--navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        url('/minta.svg'),
        radial-gradient(55vmax 55vmax at 112% -12%, #f3e0d5 0%, transparent 60%),
        radial-gradient(45vmax 45vmax at -12% 112%, #f0e2d8 0%, transparent 60%),
        var(--puder);
    background-attachment: fixed;
}

/* fejléc */
.felso-sav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--rozsa);
    box-shadow: var(--arnyek);
    position: sticky;
    top: 0;
    z-index: 10;
}
.sav-belso {
    max-width: 1100px; margin: 0 auto; padding: 8px 16px;
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 38px; width: auto; display: block; }
.brand span {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: var(--rozearany);
    font-size: 17px;
    padding-top: 6px;
}
.felso-sav nav { display: flex; gap: 4px; }
.felso-sav nav a {
    color: var(--navy); text-decoration: none; font-weight: 500; font-size: 14px;
    padding: 7px 12px; border-radius: 8px; transition: background .15s, color .15s;
}
.felso-sav nav a:hover { background: var(--puder); color: var(--szilva); }
.user { margin-left: auto; font-size: 13px; color: #6d7688; }
.user a { color: var(--szilva); }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 22px 16px 40px; }
h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 28px;
    margin: 6px 0 18px;
}
h2 { font-size: 15px; margin-bottom: 10px; color: var(--szilva); }

.kartya {
    background: #fff; border: 1px solid var(--rozsa); border-radius: 14px;
    padding: 18px; margin-bottom: 16px;
    box-shadow: var(--arnyek);
}
.kartya.ures { text-align: center; color: #666; }
.keskeny { max-width: 380px; margin: 30px auto; }

.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.flash.ok { background: #e7f0e7; color: #2c5e34; }
.flash.hiba { background: #f7e3e0; color: #8c3a2e; }

/* műszerfal */
.dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.szamlap {
    border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center;
    border: 1px solid transparent; background: #fff; box-shadow: var(--arnyek);
    transition: transform .15s;
}
.szamlap:hover { transform: translateY(-2px); }
.szamlap .szam { font-family: 'Playfair Display', Georgia, serif; font-size: 34px; font-weight: 600; line-height: 1; }
.szamlap .cimke { font-size: 12.5px; line-height: 1.35; flex: 1; }
.szamlap.zold { border-color: #bcd9bc; color: #1e5c26; background: linear-gradient(135deg, #eef7ee, #ffffff); }
.szamlap.sarga { border-color: #ecd98a; color: #6d5a10; background: linear-gradient(135deg, #fdf6dd, #ffffff); }
.szamlap.piros { border-color: #e5bdb6; color: #8c3a2e; background: linear-gradient(135deg, #faeae7, #ffffff); }
.szamlap.semleges { border-color: var(--rozsa); color: var(--navy); }
.halad {
    height: 5px; background: rgba(6, 29, 62, 0.08); border-radius: 4px; margin-top: 6px; overflow: hidden;
}
.halad i {
    display: block; height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--rozearany), var(--szilva));
    transition: width .4s ease;
}
.alcim { color: #7c8496; font-size: 13.5px; margin: -10px 0 16px; }
.alcim .pont { color: var(--rozearany); margin: 0 7px; }

/* szűrősáv */
.szurosav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.szurosav select, .szurosav input {
    padding: 9px 11px; border: 1px solid var(--rozsa); border-radius: 9px;
    background: #fff; font: inherit; font-size: 14px;
}
.szurosav input { flex: 1; min-width: 140px; }
.szurosav select:focus, .szurosav input:focus { outline: none; border-color: var(--rozearany); }

/* táblázat */
.tabla-gorgeto { overflow-x: auto; background: #fff; border: 1px solid var(--rozsa); border-radius: 14px; box-shadow: var(--arnyek); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 11px 13px; background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
th:first-child { border-top-left-radius: 13px; }
th:last-child { border-top-right-radius: 13px; }
td { padding: 10px 13px; border-top: 1px solid #f0e6de; vertical-align: top; }
tr:hover td { background: #fdf8f4; }
.nev-link { color: var(--navy); font-weight: 600; text-decoration: none; }
.nev-link:hover { color: var(--szilva); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lejart { color: #8c3a2e; font-weight: 700; }

/* űrlapok */
.urlap label { display: block; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; }
.urlap input, .urlap select, .urlap textarea {
    display: block; width: 100%; margin-top: 4px; padding: 10px 11px;
    border: 1px solid var(--rozsa); border-radius: 9px; font: inherit; font-size: 14px;
    background: #fff; font-weight: 400;
    transition: border-color .15s, box-shadow .15s;
}
.urlap input:focus, .urlap select:focus, .urlap textarea:focus {
    outline: none; border-color: var(--rozearany); box-shadow: 0 0 0 3px rgba(214, 154, 130, 0.15);
}
.urlap button, .szurosav button {
    padding: 11px 24px; background: var(--navy); color: #fff; border: none;
    border-radius: 9px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
}
.urlap button:hover, .szurosav button:hover { background: #0d2d5c; box-shadow: 0 4px 14px rgba(6, 29, 62, 0.2); }
.urlap button:active, .szurosav button:active { transform: scale(.98); }
/* űrlap-szakaszok: levegős, legfeljebb kétoszlopos elrendezés */
.urlap-szakasz {
    border: none;
    border-top: 1px solid var(--rozsa);
    padding: 16px 0 6px;
    margin-bottom: 8px;
}
.urlap-szakasz legend {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--szilva);
    padding-right: 12px;
}
.mezo-racs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 14px 26px; }
.figyelmezteto {
    background: var(--puder);
    border-left: 3px solid var(--rozearany);
    border-radius: 0 10px 10px 0;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #5a6478;
    margin-bottom: 14px;
}
.mezo { display: block; margin-bottom: 4px; }
.mezo-cim { display: block; font-size: 13.5px; font-weight: 600; }
.mezo-sugo { display: block; color: #8a8f9c; font-weight: 400; font-size: 12px; margin-top: 1px; }
.urlap-szakasz .mezo input, .urlap-szakasz .mezo select, .urlap-szakasz .mezo textarea { margin-top: 6px; }
.urlap.soros { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.urlap.soros label { flex: 1; min-width: 180px; margin-bottom: 0; }
.urlap.soros button { margin-bottom: 1px; }

.halvany { color: #8a8f9c; font-weight: 400; font-size: 12.5px; }
.gomb-link {
    display: inline-block; padding: 10px 20px; border: 1px solid var(--navy); border-radius: 9px;
    color: var(--navy); text-decoration: none; font-weight: 600; font-size: 14px;
    transition: border-color .15s, color .15s, background .15s;
}
.gomb-link.kiemelt { background: var(--navy); color: #fff; }
.gomb-link:hover { border-color: var(--szilva); color: var(--szilva); }
.gomb-link.kiemelt:hover { background: #0d2d5c; color: #fff; }

/* kétoszlopos részletnézet */
.ketoszlop { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
@media (max-width: 800px) { .ketoszlop { grid-template-columns: 1fr; } }

.naplo { list-style: none; }
.naplo li { padding: 8px 0; border-bottom: 1px solid #f0e6de; font-size: 14px; }
.naplo li:last-child { border-bottom: none; }

footer { text-align: center; padding: 16px; font-size: 12px; color: #9aa0ab; }

/* beállítások */
.celok-tabla { margin: 10px 0 14px; box-shadow: none; }
.celok-tabla th { background: var(--puder); color: var(--navy); font-size: 13px; padding: 8px 10px; }
.celok-tabla td { padding: 7px 10px; font-size: 14px; }
.celok-tabla input { width: 90px; margin-top: 0; }
.kat-sor { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.kat-sor .urlap.soros { flex: 1; gap: 8px; }
.kat-sor .urlap.soros label { margin: 0; min-width: 0; }
.kat-sor .urlap.soros button { padding: 9px 14px; font-size: 13px; }
.kat-torlo { display: inline; }
.torles-gomb {
    padding: 8px 12px; background: #fff; color: #8c3a2e; border: 1px solid #e5bdb6;
    border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 700;
}
.torles-gomb:hover:not(:disabled) { background: #f7e3e0; }
.torles-gomb:disabled { opacity: .35; cursor: not-allowed; }
.elvalaszto { border: none; border-top: 1px solid var(--rozsa); margin: 14px 0; }

/* ===== beléptető oldal ===== */
.belepes-oldal { justify-content: center; }
/* halvány logó-vízjelek a sarkokban */
.belepes-oldal::before, .belepes-oldal::after {
    content: "";
    position: fixed;
    width: min(520px, 60vw);
    height: min(520px, 60vw);
    background: url('/logo.png') no-repeat center / contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}
.belepes-oldal::before { top: -8%; left: -10%; transform: rotate(-10deg); }
.belepes-oldal::after { bottom: -10%; right: -12%; transform: rotate(8deg); }
.belepes-fo {
    flex: none;
    position: relative;
    z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 40px 20px; margin: auto;
    width: 100%; max-width: 460px;
}
.belepes-logo { width: min(280px, 68vw); height: auto; margin-bottom: 8px; }
.belepes-crm {
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.42em; text-transform: uppercase;
    color: var(--rozearany);
    margin: 0 0 10px 0.42em; /* a betűköz jobbra tolná, kompenzáljuk */
}
.belepes-crm::before, .belepes-crm::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 34px; height: 1px;
    background: var(--rozearany);
    margin: 0 14px;
    opacity: 0.7;
}
.belepes-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic; font-size: 17px; color: var(--szilva);
    margin-bottom: 26px;
}
.belepes-tagline .pont, .belepes-lablec .pont { color: var(--rozearany); margin: 0 9px; font-style: normal; }
.belepes-kartya { width: 100%; text-align: left; padding: 26px 26px 22px; }
.belepes-kartya h1 { font-size: 24px; margin: 0 0 8px; }
.belepes-koszonto { font-size: 14px; color: #5a6478; line-height: 1.55; margin-bottom: 18px; }
.belepes-kartya button { width: 100%; margin-top: 4px; }
.belepes-lablec { margin-top: 18px; font-size: 12.5px; color: #9aa0ab; }
