/* =========================================================
   COMPONENTS.CSS — wspólne panele, hero i komunikaty
========================================================= */

.tm-shell {
    width: min(1100px, calc(100% - 32px));
    margin-inline: auto;
}

.tm-hero {
    padding: 30px 24px;
    border: 1px solid #333;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(57, 255, 20, 0.075),
            transparent 55%
        ),
        #191919;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.tm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    color: #39ff14;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tm-kicker > i {
    margin: 0 !important;
    color: currentColor !important;
}

.tm-panel {
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: 12px;
    background: #191919;
}

.tm-panel-header {
    padding: 16px 18px;
    border-bottom: 1px solid #303030;
    background: #1d1d1d;
}

.tm-panel-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

.tm-panel-title > i {
    margin: 0 !important;
    color: currentColor !important;
}

.tm-panel-body {
    padding: 18px;
}

.tm-empty-state {
    padding: 28px 18px;
    border: 1px dashed #383838;
    border-radius: 10px;
    background: #151515;
    color: #aaa;
    text-align: center;
}

.tm-toast {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    max-width: min(430px, calc(100vw - 40px));
    padding: 14px 17px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #333;
    border-left: 4px solid #39ff14;
    border-radius: 8px;
    background: #151515;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    font-size: 14px;
    line-height: 1.5;
}

.tm-toast.is-error {
    border-left-color: #ff4d4d;
}

@media (max-width: 720px) {
    .tm-shell {
        width: min(100% - 18px, 1100px);
    }

    .tm-hero {
        padding: 23px 16px;
    }

    .tm-panel-header,
    .tm-panel-body {
        padding: 14px;
    }
}


/* =========================================================
   V24 — starsze komunikaty systemowe
========================================================= */
.error,
.success,
.flash-msg {
    width: min(600px, calc(100% - 24px));
    margin: 10px auto 15px;
    padding: 12px 14px;
    position: relative;
    z-index: 1000;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.error {
    border: 1px solid rgba(255, 90, 90, 0.52);
    background: rgba(125, 28, 37, 0.72);
    color: #ffd7da;
}

.success {
    border: 1px solid rgba(57, 255, 20, 0.38);
    background: rgba(21, 87, 36, 0.72);
    color: #dcffd5;
}

.flash-msg {
    border: 1px solid #363636;
    background: #191919;
    color: #fff;
}

/* V2 — wspólny zapis logo tekstowego */
.tm-brand-text,
.public-brand,
.seo-home-logo {
    color: #fff;
}

.tm-brand-text > span,
.public-brand span,
.seo-home-logo span {
    color: #39ff14;
}
