/* ======== Microsoft-style HERLEKYN Design - Kompletný CSS ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    font-family: 'Segoe UI', 'Montserrat', sans-serif;
    color: #111;
    background-color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 10px;
}
p, li {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* ===== HEADER – desktop layout ===== */
.header {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 5%;
    background: #ffffff;
    border-bottom: 1px solid #e7ecf4;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Logo */
.header .logo-container img {
    max-height: 72px;
    margin-top: 3px;
    width: auto;
}

/* HAMBURGER – default skrytý (iba pre mobil ho zapneme) */
/* Hamburger ikonka – default skrytá (ukážeme ju len na mobile) */
/* Hamburger – iba pre mobil (desktop skrytý) */
.hamburger-menu {
    display: none;
    margin-left: auto;
    cursor: pointer;
}
.header .hamburger-menu img {
    height: 24px;
}

/* ===== DESKTOP MENU – textové linky à la JetBrains ===== */
.menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Textové položky v menu (PROFIL, PRICING, ERPOLIS, KONTAKT) */
.menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #1b2440;              /* tmavomodrá – text */
    padding-bottom: 4px;
}

/* Tenka modrá čiarka pod textom pri hover/active */
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: #0A1172;        /* HERLEKYN modrá */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease-out;
}

.menu a:hover {
    color: #0A1172;
}
.menu a:hover::after,
.menu a.active::after {
    transform: scaleX(1);
}

/* ===== Jazykový prepínač – v štýle menu ===== */
.language-switcher {
    margin-left: 12px;
}

.language-switcher select {
    border: none;
    border-bottom: 1px solid #c4cad8;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 2px 18px 4px 0;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 4px center;
    /* jednoduchá sivá šípka ▼ */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5'%3E%3Cpath d='M0 0l4.5 5L9 0z' fill='%23909090'/%3E%3C/svg%3E");
    color: #1b2440;
}

.language-switcher select:hover,
.language-switcher select:focus {
    border-bottom-color: #0A1172;
}

/* ===== VIDEO BANNER ===== */
.video-container {
    position: relative;
    margin-top: 0;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: #f9f9f9;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}
.overlay-inner {
    text-align: center;
}
.overlay-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}
.powered-by {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.9;
}
.erpolis-logo {
    height: 48px;
    object-fit: contain;
    filter: brightness(200%); /* ak je málo kontrastné logo */
}

/* ===== SWIPER KONTAJNER ===== */
.swiper-outer-wrapper {
    position: relative;
    overflow: visible;
    background: #f0f4f8;
    padding: 40px 0;
}
.swiper-container-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    box-sizing: border-box;
    background: #f0f4f8;
}
.swiper-container {
    width: 100%;
    overflow: hidden;
}
.swiper-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
}
.swiper-slide {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 103, 184, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 360px; /* pevná šírka */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}
.swiper-slide:hover {
    transform: scale(1.02);
}
.swiper-slide h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.swiper-slide p {
    font-size: 14px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.swiper-slide .button-primary { margin-top: auto; }

/* ===== ŠÍPKY ===== */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.swiper-button-prev {
    left: calc(50% - 600px - 44px); /* mimo kontajner (1200px/2 + šírka) */
}
.swiper-button-next {
    right: calc(50% - 600px - 44px);
}
.swiper-button-prev::after,
.swiper-button-next::after {
    color: #0067b8;
    font-size: 20px;
    font-weight: bold;
}

/* ===== GRID CARDS ===== */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 60px 5%;
    background-color: #ffffff;
}
.card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
    text-align: left;
}
.card:hover {
    transform: translateY(-5px);
}
.card h4 {
    font-size: 20px;
    color: #0067b8;
    margin-bottom: 15px;
}
.card p {
    color: #444;
}

/* ===== CTA BUTTON ===== */
.button-primary {
    background-color: #0067b8;
    color: #fff;
    border: none;
    padding: 12px 24px;
    margin-top: 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    cursor: pointer;
}
.button-primary:hover {
    background-color: #004e93;
}

/* ===== BANNER ===== */
.banner {
    width: 100%;
    background: linear-gradient(135deg, #003366, #004c99);
    padding: 40px 0;
    color: white;
    border-radius: 8px;
}
.banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}
.banner-logo {
    height: 50px;
    flex-shrink: 0;
}
.banner-text {
    flex: 1 1 auto;
}
.banner-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #FFFFFF;
}
.banner-text p {
    font-size: 16px;
    margin: 0;
    max-width: 600px;
    color: #FFFFFF;
}
.banner button {
    background-color: #0077aa;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: auto;
}
.banner button:hover {
    background-color: #005f8a;
}
.banner-margin-top {
    margin-top: 50px;
}

/* MASKOT NA BANNERI */
.banner-mascot {
    height: 170px;
    flex-shrink: 0;
    margin-left: 20px;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.8));
}

/* mobil – nech je pekne pod textom */
@media (max-width: 768px) {
    .banner-mascot {
        height: 150px;
        margin-left: 0;
        margin-top: 16px;
        align-self: center;
    }
}

/* ===== SECTION WRAPPERS ===== */
.white-section {
    background-color: #ffffff;
    padding: 60px 5%;
}
.content-wrapper {
    max-width: 1400px;
    margin: auto;
}
.content-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 40px;
    margin: 60px 0;
}

.content-section:nth-child(even) {
    direction: rtl;
}
.content-section:nth-child(even) .text {
    direction: ltr;
}
.content-section:nth-child(even) img {
    direction: ltr;
    border-radius: 8px;
}

.content-section .text {
    padding: 0 20px;
}
.separator-container {
    margin: 40px 0;
}
.separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #004c99, transparent);
}

.gray-fullwidth {
    width: 100%;
    background-color: #f0f0f0;
    padding: 60px 5%;
}
.gray-fullwidth .button button {
    background-color: #0077aa;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.gray-fullwidth .button button:hover {
    background-color: #005f8a;
}

.gray-fullwidth .gray-section {
    max-width: 1400px;
    margin: auto;
}
.gray-section {
    background-color: #f0f0f0;
    padding: 40px;
    border-radius: 10px;
}
.section-column {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.column {
    flex: 1 1 45%;
    font-size: 16px;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer-strip {
    width: 100%;
    padding: 15px 5%;
    background-color: #f2f2f2;
    font-size: 14px;
    color: #777;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px solid #ddd;
}
.footer-strip a {
    color: #0067b8;
    text-decoration: none;
}
.footer-strip a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }

    .hamburger-menu {
        display: block;       /* na mobile zobrazíme hamburger */
    }

    /* menu je schované, zobrazí sa po kliknutí (class .open) */
    .menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        padding: 12px 16px 16px;
        background: #ffffff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
        flex-direction: column;
        gap: 12px;
        display: none;
    }

    .menu.open {
        display: flex;
    }

    .menu a {
        width: 100%;
        padding-bottom: 6px;
    }

    .language-switcher {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .language-switcher select {
        width: 100%;
        background-position: right 10px center;
    }

    .video-overlay {
        font-size: 1.5rem;
        padding: 10px;
    }
    .content-section {
        grid-template-columns: 1fr;
    }
    .content-section,
    .content-section:nth-child(even) {
        direction: ltr;
    }
    .grid-section {
        padding: 40px 20px;
    }
    .card {
        padding: 20px;
    }
    .banner-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .banner-text h2 {
        font-size: 20px;
    }
    .banner button {
        align-self: stretch;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
    .section-column {
        flex-direction: column;
    }
    .column {
        width: 100%;
    }
    .content-section .text, .content-section img {
        order: unset !important;
    }
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}
@media (max-width: 1024px) {
    .swiper-button-prev {
        left: -40px;
    }
    .swiper-button-next {
        right: -30px;
    }
}

/* Sticky footer layout */
html, body { height: 100%; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* hlavný obsah sa roztiahne, footer odtlačí na spodok */
.site-main { flex: 1 0 auto; }

/* ak v šablóne používaš <footer> alebo .footer */
.site-footer, footer, .footer { margin-top: auto; }

/* voliteľné – zruš spodné medzery posledných blokov, ktoré robia „bielu medzeru“ */
.white-section:last-child,
.content-wrapper:last-child,
.banner-margin-top:last-child { margin-bottom: 0; padding-bottom: 0; }

/* Pricing hero */
.pricing-hero { text-align:center; padding:40px 16px 20px; }
.pricing-hero h1 { font-size:32px; margin:0 0 8px; }
.pricing-hero p { color:#5e6a75; margin:0; }

/* Switch */
.billing-switch { display:inline-flex; gap:8px; margin:18px 0 0; background:#f2f5f7; padding:6px; border-radius:8px; }
.switch-btn { padding:8px 14px; border-radius:6px; text-decoration:none; color:#2b3947; font-weight:600; }
.switch-btn.active { background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.05); }
.save-badge { margin-left:6px; font-size:12px; color:#0a7; }

/* Grid planov */
.pricing-grid { max-width:1100px; margin:24px auto 48px; padding:0 16px; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:950px){ .pricing-grid{ grid-template-columns:1fr; } }

.plan-card { background:#fff; border:1px solid #e6eaee; border-radius:14px; padding:20px; display:flex; flex-direction:column; gap:14px; box-shadow:0 2px 10px rgba(0,0,0,.03); }
.plan-card .plan-header h3{ margin:0 0 4px; font-size:20px; }
.plan-card .trial-badge { display:inline-block; margin:6px 0 2px; padding:6px 10px; border-radius:10px; background:#e0f2fe; color:#0f172a; font-size:12px; font-weight:600; }
.plan-card .price{ font-size:14px; color:#5e6a75; }
.plan-card .amount{ font-size:26px; font-weight:700; color:#1c2a35; margin-right:6px; }
.plan-card .trial{ font-size:12px; color:#5e6a75; margin-top:6px; }

.plan-card .features { list-style:none; padding:0; margin:4px 0 8px; }
.plan-card .features li { padding-left:22px; position:relative; margin:6px 0; }
.plan-card .features li:before { content:'✓'; position:absolute; left:0; top:0; color:#2a7; font-weight:700; }

.btn-primary { background:#1d61d1; color:#fff; border:none; border-radius:8px; padding:10px 14px; cursor:pointer; font-weight:700; }
.btn-primary:hover { filter:brightness(.95); }
.btn-primary.big { width:100%; padding:12px 16px; }

/* Checkout */
.checkout-section {
    padding: 40px 0 60px;
}

.checkout-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.checkout-card {
    background: #ffffff;
    border: 1px solid #e6eaee;
    border-radius: 20px;
    padding: 26px 26px 28px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    .checkout-card {
        grid-template-columns: 1fr;
        padding: 22px 18px 24px;
    }
}

/* ľavý stĺpec – zhrnutie plánu */
.plan-summary {
    border-right: 1px solid #e5e7eb;
    padding-right: 18px;
}
@media (max-width: 900px) {
    .plan-summary {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 10px;
    }
}

.plan-summary-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 6px;
}

.plan-summary-name-row {
    margin-bottom: 10px;
}

.plan-summary .price {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
}
.plan-summary .price .amount {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}
.plan-summary .price .period {
    font-size: 14px;
}

.plan-summary .trial {
    color: #5e6a75;
    font-size: 13px;
    margin-top: 8px;
}

.plan-summary-points {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    font-size: 13px;
    color: #4b5563;
}
.plan-summary-points li {
    position: relative;
    padding-left: 18px;
    margin: 4px 0;
}
.plan-summary-points li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: #1d61d1;
}

/* pravý stĺpec – formulár */
.checkout-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}
.checkout-form-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

/* polia formulára */
.checkout-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.fields-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-top: 10px;
}
@media (max-width: 640px) {
    .fields-2col {
        grid-template-columns: 1fr;
    }
}

.checkout-form label {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="password"],
.checkout-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd6df;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-form input[type="text"]:focus,
.checkout-form input[type="email"]:focus,
.checkout-form input[type="password"]:focus,
.checkout-form select:focus {
    outline: none;
    border-color: #1d61d1;
    box-shadow: 0 0 0 1px rgba(29, 97, 209, 0.15);
}

/* checkbox skupina */
.checkbox-group {
    margin-top: 12px;
}

.checkbox {
    display: flex;
    gap: 10px;
    margin: 6px 0;
    align-items: flex-start;
    font-size: 13px;
    color: #374151;
}
.checkbox input[type="checkbox"] {
    margin-top: 3px;
}
.checkbox a {
    text-decoration: underline;
    color: #1d61d1;
}
.checkbox a:hover {
    text-decoration: none;
}

/* alert pri chybách */
.alert {
    background: #fff4f4;
    border: 1px solid #f6c1c1;
    border-radius: 8px;
    padding: 10px 12px;
    color: #8a1f1f;
    font-size: 13px;
    margin-top: 8px;
}
.alert ul {
    margin-left: 16px;
}

/* tlačidlo + späť */
.btn-primary.big {
    width: 100%;
    padding: 12px 16px;
    margin-top: 16px;
}

.back {
    margin-top: 10px;
    font-size: 13px;
}
.back a {
    color: #4f46e5;
}
.back a:hover {
    text-decoration: underline;
}

/* FAQ */
.pricing-faq { max-width:900px; margin:0 auto 40px; padding:0 16px; }
.pricing-faq h2{ text-align:center; margin:24px 0 8px; }
.faq-item{ background:#fff; border:1px solid #e6eaee; border-radius:12px; padding:14px 16px; margin-top:10px; }

/* badge na Pro */
.best-badge{
    display:inline-block;
    background:#ffefcc;
    color:#7a4b00;
    border:1px solid #ffd889;
    border-radius:999px;
    padding:4px 10px;
    font-size:12px;
    font-weight:700;
    margin-bottom:8px;
}

/* zvýraznenie Pro karty */
.plan-card.is-popular{
    border-color:#cfe2ff;
    box-shadow:0 6px 18px rgba(29,97,209,.15);
    position:relative;
    transform:translateY(-2px);
}

/* sekundárny riadok ceny pre ročné */
.subprice{
    margin-top:6px;
    font-size:13px;
    color:#44525e;
}
.subprice .save-inline{
    margin-left:6px;
    color:#0a7;
    font-weight:700;
}

/* drobný facelift */
.plan-card .plan-header h3{ display:flex; align-items:center; gap:8px; }

/* nech sú všetky hlavičky rovnako vysoké, ak má Pro badge */
.plan-card .plan-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* na kartách bez badge vložíme prázdny „spacer“ s rovnakou výškou */
.plan-card:not(.is-popular) .plan-header::before {
    content: "";
    display: block;
    height: 26px; /* ≈ výška .best-badge (ak máš inú, uprav tu) */
}

/* ak chceš, môžeš ešte nechať badge „sedieť“ bez medzier naviac */
.plan-card.is-popular .best-badge {
    margin-bottom: 8px; /* už máš – ponechaj / doladíš podľa oka */
}

/* ===== POROVNANIE PLÁNOV ===== */
.plan-comparison {
    margin: 32px auto 40px;
    padding: 0 16px;
}

.plan-comparison-inner {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    padding: 24px 24px 28px;
}

.plan-comparison-title {
    text-align: center;
    font-size: 26px;
    margin: 0 0 10px;
}

.plan-comparison-lead {
    text-align: center;
    margin: 0 0 16px;
    color: #5e6a75;
    font-size: 15px;
}

/* wrapper kvôli mobilom */
.plan-comparison-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}

/* samotná tabuľka */
.plan-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.plan-comparison-table thead {
    background: #f3f4f6;
}

.plan-comparison-table th,
.plan-comparison-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.plan-comparison-table th {
    font-weight: 600;
    color: #111827;
}

/* stĺpce */
.pc-feature-col {
    text-align: left;
    width: 55%;
}
.pc-plan-col {
    text-align: center;
    width: 22.5%;
}

/* zebra efekt na riadkoch */
.plan-comparison-table tbody tr:nth-child(odd) {
    background-color: #fafbff;
}

/* text v ľavom stĺpci */
.pc-feature {
    color: #111827;
}
.pc-feature-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
.pc-feature-strong {
    font-weight: 600;
}

/* bunky s hodnotami */
.pc-cell {
    text-align: center;
    white-space: nowrap;
}

.pc-ok {
    color: #16a34a;
    font-weight: 700;
    font-size: 16px;
}
.pc-no {
    color: #9ca3af;
    font-size: 16px;
}
.pc-highlight {
    color: #1d4ed8;
    font-weight: 500;
}
.pc-strong {
    font-weight: 600;
}

/* „pill“ nadpisy Basic / Pro */
.plan-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.plan-pill-basic {
    background: #e5f0ff;
    color: #1d4ed8;
}
.plan-pill-pro {
    background: #fee2e2;
    color: #b91c1c;
}

/* responsívne drobnosti */
@media (max-width: 640px) {
    .plan-comparison-inner {
        padding: 20px 16px 22px;
        border-radius: 16px;
    }
    .plan-comparison-title {
        font-size: 22px;
    }
}
/* --- Customer portal layout --- */
.portal-shell {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.portal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.portal-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: #546E7A;
    margin: 0 0 4px;
}

.portal-subtitle {
    color: #607D8B;
    margin: 4px 0 0;
}

.portal-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #455A64;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.portal-card {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.portal-card .table {
    margin-top: 12px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.table.responsive {
    overflow-x: auto;
}

.table table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #ECEFF1;
}

.table th {
    font-size: 13px;
    text-transform: uppercase;
    color: #607D8B;
    letter-spacing: .4px;
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ECEFF1;
    color: #455A64;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-paid { background: #E8F5E9; color: #1B5E20; }
.pill-pending { background: #FFF3E0; color: #E65100; }
.pill-failed { background: #FFEBEE; color: #C62828; }
.pill-canceled { background: #ECEFF1; color: #455A64; }

.portal-alert {
    border: 1px solid #F9A825;
    background: #FFF8E1;
    color: #795548;
    padding: 12px 16px;
    border-radius: 8px;
}

.portal-alert ul {
    margin: 0;
    padding-left: 18px;
}

.portal-auth form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-auth .form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.portal-auth label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #37474F;
    font-weight: 600;
}

.portal-auth input[type="email"],
.portal-auth input[type="password"] {
    padding: 10px 12px;
    border: 1px solid #CFD8DC;
    border-radius: 8px;
    font-size: 14px;
}

.portal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mono { font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.muted { color: #78909C; margin: 0; }

@media (max-width: 768px) {
    .portal-header { flex-direction: column; align-items: flex-start; }
    .portal-grid { grid-template-columns: 1fr; }
}