/*
Theme Name: Neverdie Dark
Theme URI: https://neverdie.space
Description: Темна тема для Neverdie.space на базі Twenty Twenty-Five
Author: Neverdie Team
Template: twentytwentyfive
Version: 1.0
*/

/* ===== ТЕМНА КОЛІРНА СХЕМА ===== */
body.wp-theme-twentytwentyfive {
    --wp--preset--color--base: #0d0d0d;
    --wp--preset--color--contrast: #e8e8e8;
    --wp--preset--color--accent-1: #00e5ff;
    --wp--preset--color--accent-2: #bb86fc;
    --wp--preset--color--accent-3: #7c4dff;
    --wp--preset--color--accent-4: #9e9e9e;
    --wp--preset--color--accent-5: #1a1a2e;
    --wp--preset--color--accent-6: rgba(255, 255, 255, 0.08);

    background-color: #0d0d0d;
    color: #e8e8e8;
    font-family: 'Manrope', sans-serif;
}

/* ===== ГЛОБАЛЬНІ СТИЛІ ===== */
*::selection {
    background: rgba(0, 229, 255, 0.3);
    color: #fff;
}

a {
    color: #00e5ff;
    text-decoration: none !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #bb86fc;
    opacity: 0.9;
}

/* ===== ХЕДЕР ===== */
header.wp-block-template-part {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Логотип */
.wp-block-site-title a {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.wp-block-site-title a:hover {
    color: #00e5ff !important;
}

/* Навігація */
.wp-block-navigation-item__content {
    color: #b0b0b0 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.wp-block-navigation-item__content:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
}

/* Кнопка мобільного меню */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
    color: #e8e8e8;
}

.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
    fill: #e8e8e8;
}

/* Мобільне меню */
.wp-block-navigation__responsive-container.is-menu-open {
    background: rgba(13, 13, 13, 0.98) !important;
    backdrop-filter: blur(20px);
}

/* ===== ОСНОВНИЙ КОНТЕНТ ===== */
main.wp-block-group {
    min-height: 70vh;
}

/* Заголовок "Blog" */
h1.wp-block-heading {
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
}

/* ===== ПОСТИ ===== */
.wp-block-post {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.wp-block-post:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Заголовок поста */
h2.wp-block-post-title {
    margin-bottom: 0.5em;
}

h2.wp-block-post-title a {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

h2.wp-block-post-title a:hover {
    color: #00e5ff !important;
}

/* Контент поста */
.wp-block-post-content {
    color: #b0b0b0;
    line-height: 1.75;
}

.wp-block-post-content p {
    color: #b0b0b0;
}

/* Дата поста */
.wp-block-post-date {
    color: #666 !important;
    font-size: 0.85rem;
}

.wp-block-post-date time,
.wp-block-post-date a {
    color: #666 !important;
}

/* ===== КНОПКИ ===== */
.wp-block-button__link,
.more-link {
    background: linear-gradient(135deg, #00e5ff, #7c4dff);
    color: #0d0d0d !important;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.wp-block-button__link:hover,
.more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.25);
    opacity: 0.95;
}

/* ===== ФУТЕР ===== */
footer.wp-block-template-part {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Назва сайту у футері */
footer .wp-block-site-title a {
    font-size: 1.3rem;
}

/* Навігація футера */
footer .wp-block-navigation-item__content {
    padding: 4px 0;
    border-radius: 0;
}

footer .wp-block-navigation-item__content:hover {
    background: transparent;
    color: #00e5ff !important;
}

/* Текст у футері */
footer .has-small-font-size {
    color: #444 !important;
}

/* ===== СКРОЛБАР ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== ФОРМИ ===== */
input,
textarea,
select {
    background: #1a1a2e !important;
    color: #e8e8e8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #00e5ff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

/* ===== ЗОБРАЖЕННЯ ===== */
.wp-block-image img {
    border-radius: 12px;
}

/* ===== БЛОК ЦИТАТ ===== */
blockquote,
.wp-block-quote {
    border-left: 3px solid #00e5ff;
    padding-left: 1.5em;
    color: #999;
    font-style: italic;
}

/* ===== КОД ===== */
code,
pre {
    background: #1a1a2e !important;
    color: #00e5ff;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
}

pre {
    padding: 1.5em !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== АДАПТИВНІСТЬ ===== */
@media (max-width: 768px) {
    header.wp-block-template-part {
        position: sticky;
        top: 0;
    }

    h1.wp-block-heading {
        font-size: 2rem;
    }

    .wp-block-navigation-item__content {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
}

/* ===== АНІМАЦІЇ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-block-post {
    animation: fadeInUp 0.5s ease forwards;
}

.wp-block-post:nth-child(2) { animation-delay: 0.1s; }
.wp-block-post:nth-child(3) { animation-delay: 0.2s; }
.wp-block-post:nth-child(4) { animation-delay: 0.3s; }
.wp-block-post:nth-child(5) { animation-delay: 0.4s; }

/* ========================================
   DASHBOARD КВИТКІВ
   ======================================== */

/* --- Контейнер --- */
.tk {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

/* Приховати автоматичний заголовок сторінки на сторінці квитків */
.page-id-6 .wp-block-post-title,
body.page-id-6 h1.wp-block-post-title,
.page-id-27 .wp-block-post-title,
body.page-id-27 h1.wp-block-post-title {
    display: none !important;
}

/* Сторінки квитків і їжі — full-width */
body.page-id-27 .wp-site-blocks > main,
body.page-id-27 .wp-site-blocks > .wp-block-group,
body.page-id-27 .entry-content,
body.page-id-27 .wp-block-post-content,
body.page-id-27 .wp-block-group,
body.page-id-27 .is-layout-constrained > *,
body.page-id-27 .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.page-id-27 .is-layout-flow > *,
body.page-id-27 .wp-block-shortcode {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.page-id-27 .wp-site-blocks {
    padding-left: 28px !important;
    padding-right: 28px !important;
}

body.page-id-27 .is-layout-constrained,
body.page-id-27 .is-layout-flow {
    max-width: 100% !important;
}

/* Сторінка квитків — full-width */
body.page-id-6 .wp-site-blocks > main,
body.page-id-6 .wp-site-blocks > .wp-block-group,
body.page-id-6 .entry-content,
body.page-id-6 .wp-block-post-content,
body.page-id-6 .wp-block-group,
body.page-id-6 .is-layout-constrained > *,
body.page-id-6 .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.page-id-6 .is-layout-flow > *,
body.page-id-6 .wp-block-shortcode {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.page-id-6 .wp-site-blocks {
    padding-left: 28px !important;
    padding-right: 28px !important;
}

body.page-id-6 .is-layout-constrained,
body.page-id-6 .is-layout-flow {
    max-width: 100% !important;
}

/* Заголовок квитків — на повну ширину */
body.page-id-6 .wp-block-heading {
    max-width: 100% !important;
    width: 100% !important;
}

/* --- Verdict: головний статус --- */
.tk-verdict {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 12px;
    border: 1px solid;
}

.tk-verdict--found {
    background: rgba(0, 230, 118, 0.06);
    border-color: rgba(0, 230, 118, 0.25);
}

.tk-verdict--none {
    background: rgba(255, 82, 82, 0.05);
    border-color: rgba(255, 82, 82, 0.2);
}

.tk-verdict__icon {
    font-size: 1.5rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 700;
}

.tk-verdict--found .tk-verdict__icon {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
}

.tk-verdict--none .tk-verdict__icon {
    background: rgba(255, 82, 82, 0.12);
    color: #ff5252;
}

.tk-verdict__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tk-verdict__text strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.tk-verdict--found .tk-verdict__text strong {
    color: #00e676;
}

.tk-verdict--none .tk-verdict__text strong {
    color: #ff5252;
}

.tk-verdict__sub {
    font-size: 0.8rem;
    color: #777;
}

/* --- Header: час + статус --- */
.tk-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 18px;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.tk-header__time,
.tk-header__next {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tk-header__label {
    font-size: 0.68rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tk-header__value {
    font-size: 0.88rem;
    color: #ccc;
    font-weight: 500;
}

.tk-header__status {
    margin-left: auto;
}

.tk-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: tk-pulse 2s ease-in-out infinite;
}

.tk-dot--ok { background: #ff5252; box-shadow: 0 0 8px rgba(255, 82, 82, 0.4); }
.tk-dot--warn { background: #00e676; box-shadow: 0 0 8px rgba(0, 230, 118, 0.4); }
.tk-dot--err { background: #ffb74d; box-shadow: 0 0 8px rgba(255, 183, 77, 0.4); }

@keyframes tk-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Картки артистів --- */
.tk-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.tk-card {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(26, 26, 46, 0.4);
    transition: all 0.2s ease;
}

.tk-card:hover {
    background: rgba(26, 26, 46, 0.65);
    transform: translateY(-1px);
}

.tk-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tk-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.tk-card__icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tk-card--active .tk-card__icon {
    background: rgba(0, 230, 118, 0.2);
    color: #00e676;
}

.tk-card--quiet .tk-card__icon {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
}

.tk-card--unavail .tk-card__icon {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

.tk-card--unknown .tk-card__icon {
    background: rgba(85, 85, 85, 0.2);
    color: #555;
}

.tk-card__tour {
    font-size: 0.72rem;
    color: #888;
    margin-bottom: 6px;
    font-style: italic;
}

.tk-card__date {
    padding: 5px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 0.78rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

.tk-card__date--upcoming {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.tk-card__date--active {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    animation: tk-pulse 2s ease-in-out infinite;
}

.tk-card__date--past {
    background: rgba(158, 158, 158, 0.08);
    border: 1px solid rgba(158, 158, 158, 0.1);
}

.tk-card__date-label {
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tk-card__date--upcoming .tk-card__date-label { color: #00e5ff; }
.tk-card__date--active .tk-card__date-label { color: #00e676; }
.tk-card__date--past .tk-card__date-label { color: #9e9e9e; }

.tk-card__date-value {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.82rem;
}

.tk-card__date--past .tk-card__date-value { color: #888; }

.tk-card__date-type {
    font-size: 0.65rem;
    color: #bb86fc;
    background: rgba(187, 134, 252, 0.1);
    padding: 1px 6px;
    border-radius: 3px;
}

.tk-card__onsale {
    padding: 4px 8px;
    font-size: 0.75rem;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

.tk-card__onsale .tk-card__date-label {
    color: #777;
}

.tk-card__onsale .tk-card__date-value {
    color: #bbb;
    font-size: 0.78rem;
}

.tk-card__note {
    font-size: 0.72rem;
    color: #666;
    margin-bottom: 6px;
    font-style: italic;
}

.tk-card__status {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 4px;
}

.tk-card__found-info {
    font-size: 0.72rem;
    color: #aaa;
    margin-bottom: 2px;
    line-height: 1.4;
}

.tk-card__found-label {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

.tk-card__snippet {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
    margin: 4px 0;
    padding: 4px 8px;
    background: rgba(0, 230, 118, 0.04);
    border-left: 2px solid rgba(0, 230, 118, 0.3);
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
}

.tk-card__sources {
    font-size: 0.65rem;
    color: #555;
    margin-top: 2px;
}

.tk-card--active { border-left: 3px solid #00e676; }
.tk-card--active .tk-card__status { color: #00e676; }

.tk-card--quiet { border-left: 3px solid #ff5252; }
.tk-card--quiet .tk-card__status { color: #ff5252; }

.tk-card--unavail { border-left: 3px solid #9e9e9e; }
.tk-card--unavail .tk-card__status { color: #9e9e9e; }

.tk-card--unknown { border-left: 3px solid #555; }
.tk-card--unknown .tk-card__status { color: #555; }

/* --- Секції --- */
.tk-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tk-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tk-section__title {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #777 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 !important;
}

.tk-expand-btn {
    background: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #888 !important;
    font-size: 0.72rem;
    padding: 4px 10px !important;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

.tk-expand-btn:hover {
    border-color: rgba(0, 229, 255, 0.3) !important;
    color: #00e5ff !important;
}

/* --- Останній звіт (завжди відкритий) --- */
.tk-latest {
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
}

.tk-latest__content {
    color: #c0c0c0;
    line-height: 1.7;
    font-size: 0.92rem;
}

.tk-latest__content p:last-child {
    margin-bottom: 0;
}

/* --- Порожній стан --- */
.tk-empty {
    text-align: center;
    padding: 60px 20px;
}

.tk-empty__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.tk-empty p {
    color: #666 !important;
    font-size: 1.1rem;
}

.tk-empty__sub {
    font-size: 0.85rem !important;
    color: #555 !important;
    margin: 4px 0;
}

/* --- Accordion (історія) --- */
.tk-history {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticket-report {
    background: rgba(26, 26, 46, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.ticket-report:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.ticket-report--open {
    border-color: rgba(0, 229, 255, 0.12);
}

.ticket-report__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    cursor: pointer;
    user-select: none;
    gap: 10px;
    transition: background 0.15s ease;
}

.ticket-report__toggle:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ticket-report__toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.ticket-report__toggle-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ticket-report__arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid #555;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ticket-report--open .ticket-report__arrow {
    transform: rotate(90deg);
    border-left-color: #00e5ff;
}

.ticket-report__meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ticket-report__title {
    color: #bbb !important;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-report--open .ticket-report__title {
    color: #e0e0e0 !important;
}

.ticket-report__summary {
    color: #555;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-report__date {
    color: #555;
    font-size: 0.7rem;
    white-space: nowrap;
}

.ticket-report__status {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ticket-report__status--success { background: rgba(255, 82, 82, 0.1); color: #ff5252; }
.ticket-report__status--warning { background: rgba(0, 230, 118, 0.1); color: #00e676; }
.ticket-report__status--error { background: rgba(255, 183, 77, 0.1); color: #ffb74d; }

.ticket-report__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 14px;
}

.ticket-report--open .ticket-report__body {
    max-height: 3000px;
    padding: 0 14px 14px;
}

.ticket-report__content {
    color: #b0b0b0;
    line-height: 1.65;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.ticket-report__content p:last-child {
    margin-bottom: 0;
}

/* --- Блоки артистів (у контенті звіту) --- */
.tr-artist {
    margin-bottom: 14px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 12px;
    border-left: 4px solid #333;
    width: 100%;
    transition: background 0.2s;
}

.tr-artist:hover {
    background: rgba(255, 255, 255, 0.04);
}

.tr-artist[data-status="active"] { border-left-color: #00e676; }
.tr-artist[data-status="quiet"] { border-left-color: #ff5252; }
.tr-artist[data-status="unavail"] { border-left-color: #9e9e9e; }

.tr-artist h3 {
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Інфо-сітка --- */
.tr-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.tr-info-item {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #444;
}

.tr-info-item--dates { border-left-color: #ffb74d; }
.tr-info-item--presale { border-left-color: #bb86fc; }
.tr-info-item--country { border-left-color: #42a5f5; }
.tr-info-item--venue { border-left-color: #00e5ff; }
.tr-info-item--price { border-left-color: #00e676; }

.tr-info-label {
    display: block;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.tr-info-value {
    font-size: 0.88rem;
    color: #ddd;
    line-height: 1.5;
    font-weight: 500;
}

.tr-info-item--dates .tr-info-value { color: #ffb74d; }
.tr-info-item--presale .tr-info-value { color: #bb86fc; }
.tr-info-item--country .tr-info-value { color: #42a5f5; }
.tr-info-item--price .tr-info-value { color: #00e676; }

.tr-info-item--links { border-left-color: #00e5ff; }
.tr-info-item--links .tr-info-value a {
    color: #00e5ff !important;
    font-weight: 500;
}
.tr-info-item--links .tr-info-value a:hover {
    color: #bb86fc !important;
}

/* --- Details toggle --- */
.tr-details {
    margin-top: 6px;
}

.tr-details__toggle {
    font-size: 0.75rem;
    color: #666;
    cursor: pointer;
    padding: 6px 0;
    list-style: none;
    transition: color 0.2s ease;
}

.tr-details__toggle::-webkit-details-marker { display: none; }

.tr-details__toggle::before {
    content: '+ ';
    color: #555;
}

.tr-details[open] .tr-details__toggle::before {
    content: '- ';
    color: #00e5ff;
}

.tr-details__toggle:hover { color: #00e5ff; }

.tr-details[open] .tr-details__toggle {
    color: #999;
    margin-bottom: 6px;
}

/* --- Detail rows in table --- */
.tr-detail-row {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 2px;
    line-height: 1.4;
}

.tr-detail-label {
    color: #777;
    font-weight: 600;
}

.tr-time-cell {
    font-size: 0.7rem;
    color: #555;
    white-space: nowrap;
}

.tr-err {
    color: #ff5252;
    font-size: 0.7rem;
}

/* --- Таблиця джерел --- */
.ticket-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ticket-report-table th {
    text-align: left;
    color: #888;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.ticket-report-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
    color: #bbb;
}

.ticket-report-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.ticket-report-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ticket-report-table tr:last-child td { border-bottom: none; }
.ticket-report-table a { font-weight: 500; }

/* --- Статуси --- */
.tr-status {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tr-status--found { background: rgba(0, 230, 118, 0.15); color: #00e676; }
.tr-status--clean { background: rgba(255, 82, 82, 0.12); color: #ff5252; }
.tr-status--unavail { background: rgba(158, 158, 158, 0.15); color: #9e9e9e; }

/* --- Деталі --- */
.tr-source-dates {
    font-size: 0.75rem;
    color: #bb86fc;
    margin-bottom: 3px;
}

.tr-snippets {
    list-style: none;
    padding: 0;
    margin: 3px 0 0;
}

.tr-snippets li {
    font-size: 0.75rem;
    color: #777;
    padding: 2px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
    line-height: 1.5;
}

.tr-snippets li:last-child { border-bottom: none; }

.tr-snippet-link {
    display: inline-block;
    font-size: 0.68rem;
    color: #00e5ff !important;
    opacity: 0.7;
    margin-left: 4px;
    white-space: nowrap;
}

.tr-snippet-link:hover {
    opacity: 1;
    color: #bb86fc !important;
}

.tr-no-data {
    color: #555;
    font-size: 0.75rem;
    font-style: italic;
}

.ticket-report__footer {
    color: #555 !important;
    font-size: 0.72rem;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- Адаптивність --- */
@media (max-width: 768px) {
    .tk-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 14px;
    }

    .tk-cards {
        grid-template-columns: 1fr;
    }

    .ticket-report__toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 12px;
    }

    .ticket-report__toggle-right {
        align-self: flex-end;
    }

    .tk-latest {
        padding: 14px;
    }

    .ticket-report-table {
        font-size: 0.75rem;
    }

    .ticket-report-table th,
    .ticket-report-table td {
        padding: 5px 4px;
    }

    .tr-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   РОЗКЛАД ЇЖІ НА ТИЖДЕНЬ
   ======================================== */

.mp {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mp-title {
    color: #fff !important;
    font-size: clamp(1.6rem, 4vw, 2.2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    margin: 0 !important;
}

/* --- Форма --- */
.mp-form {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 20px;
}

.mp-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.mp-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mp-form__field--full {
    grid-column: 1 / -1;
}

.mp-form__label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.mp-form textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    font-size: 0.9rem;
}

.mp-form__submit {
    background: linear-gradient(135deg, #00e5ff, #7c4dff) !important;
    color: #0d0d0d !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 32px !important;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mp-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.25);
}

.mp-form__submit:disabled {
    opacity: 0.5;
    transform: none;
    cursor: wait;
}

/* --- Завантаження --- */
.mp-loading {
    text-align: center;
    padding: 40px 20px;
}

.mp-loading__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 229, 255, 0.2);
    border-top-color: #00e5ff;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: mp-spin 0.8s linear infinite;
}

@keyframes mp-spin {
    to { transform: rotate(360deg); }
}

.mp-loading p {
    color: #999 !important;
    font-size: 0.95rem;
    margin: 4px 0;
}

.mp-loading__sub {
    font-size: 0.78rem !important;
    color: #666 !important;
}

/* --- Помилка --- */
.mp-error {
    background: rgba(255, 82, 82, 0.08);
    border: 1px solid rgba(255, 82, 82, 0.2);
    border-radius: 8px;
    padding: 14px 18px;
    color: #ff5252;
    font-size: 0.9rem;
}

/* --- Результати --- */
.mp-results,
.mp-saved__content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

/* Перший ряд: 3 дні, кожен займає 4 колонки */
.mp-results > .mp-day:nth-child(1),
.mp-saved__content > .mp-day:nth-child(1) { grid-column: 1 / 5; }

.mp-results > .mp-day:nth-child(2),
.mp-saved__content > .mp-day:nth-child(2) { grid-column: 5 / 9; }

.mp-results > .mp-day:nth-child(3),
.mp-saved__content > .mp-day:nth-child(3) { grid-column: 9 / 13; }

/* Другий ряд: 4 дні, кожен займає 3 колонки */
.mp-results > .mp-day:nth-child(4),
.mp-saved__content > .mp-day:nth-child(4) { grid-column: 1 / 4; }

.mp-results > .mp-day:nth-child(5),
.mp-saved__content > .mp-day:nth-child(5) { grid-column: 4 / 7; }

.mp-results > .mp-day:nth-child(6),
.mp-saved__content > .mp-day:nth-child(6) { grid-column: 7 / 10; }

.mp-results > .mp-day:nth-child(7),
.mp-saved__content > .mp-day:nth-child(7) { grid-column: 10 / 13; }

.mp-day {
    background: rgba(26, 26, 46, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #00e5ff;
    border-radius: 10px;
    padding: 14px 16px;
    animation: fadeInUp 0.4s ease forwards;
}

.mp-day__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mp-day__name {
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 !important;
}

.mp-day__stats {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mp-day__cal {
    font-size: 0.78rem;
    font-weight: 600;
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.08);
    padding: 3px 10px;
    border-radius: 5px;
}

.mp-day__carbs {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffb74d;
    background: rgba(255, 183, 77, 0.08);
    padding: 3px 10px;
    border-radius: 5px;
}

/* Прийом їжі */
.mp-meal {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mp-meal:last-of-type {
    border-bottom: none;
}

.mp-meal__type {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #bb86fc;
    min-width: 70px;
    flex-shrink: 0;
    padding-top: 2px;
}

.mp-meal__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mp-meal__name {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.88rem;
}

.mp-meal__ing {
    color: #777;
    font-size: 0.78rem;
    line-height: 1.4;
}

.mp-meal__nums {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.mp-meal__cal {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    white-space: nowrap;
}

.mp-meal__carb {
    font-size: 0.68rem;
    color: #ffb74d;
    font-weight: 500;
    white-space: nowrap;
}

/* Прогрес-бар калорій */
.mp-day__bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.mp-day__bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Фолбек */
.mp-raw {
    background: #1a1a2e !important;
    color: #00e5ff;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Вкладки */
.mp-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-tabs__tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #777;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mp-tabs__tab:hover {
    color: #bbb;
}

.mp-tabs__tab--active {
    color: #00e5ff;
    border-bottom-color: #00e5ff;
}

.mp-tabs__badge {
    display: inline-block;
    background: #00e676;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: top;
}

/* Кнопка заміни страви */
.mp-meal__swap {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 4px 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    color: #666;
    align-self: center;
}

.mp-meal__swap:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: #00e5ff;
    color: #00e5ff;
}

.mp-meal__swap:disabled {
    opacity: 0.5;
    cursor: wait;
}

.mp-swap-spin {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-top-color: #00e5ff;
    border-radius: 50%;
    animation: mp-spin 0.6s linear infinite;
}

@keyframes mp-spin {
    to { transform: rotate(360deg); }
}

/* Кнопки дій */
.mp-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.mp-actions__btn {
    padding: 10px 24px;
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: 8px;
    background: rgba(0, 230, 118, 0.08);
    color: #00e676;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mp-actions__btn:hover {
    background: rgba(0, 230, 118, 0.15);
    border-color: rgba(0, 230, 118, 0.4);
}

.mp-actions__btn--saved {
    border-color: #00e676;
    background: rgba(0, 230, 118, 0.2);
}

/* Збережений план */
.mp-saved__empty {
    text-align: center;
    color: #555;
    padding: 40px 20px;
    font-size: 0.9rem;
}

.mp-saved__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mp-saved__date {
    color: #666;
    font-size: 0.8rem;
}

.mp-saved__del {
    padding: 6px 14px;
    border: 1px solid rgba(255, 82, 82, 0.25);
    border-radius: 6px;
    background: rgba(255, 82, 82, 0.08);
    color: #ff5252;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mp-saved__del:hover {
    background: rgba(255, 82, 82, 0.15);
}

/* --- Адаптивність --- */
@media (max-width: 1024px) {
    .mp-results,
    .mp-saved__content {
        grid-template-columns: repeat(6, 1fr);
    }
    .mp-results > .mp-day:nth-child(1),
    .mp-saved__content > .mp-day:nth-child(1) { grid-column: 1 / 3; }
    .mp-results > .mp-day:nth-child(2),
    .mp-saved__content > .mp-day:nth-child(2) { grid-column: 3 / 5; }
    .mp-results > .mp-day:nth-child(3),
    .mp-saved__content > .mp-day:nth-child(3) { grid-column: 5 / 7; }
    .mp-results > .mp-day:nth-child(4),
    .mp-saved__content > .mp-day:nth-child(4) { grid-column: 1 / 4; }
    .mp-results > .mp-day:nth-child(5),
    .mp-saved__content > .mp-day:nth-child(5) { grid-column: 4 / 7; }
    .mp-results > .mp-day:nth-child(6),
    .mp-saved__content > .mp-day:nth-child(6) { grid-column: 1 / 4; }
    .mp-results > .mp-day:nth-child(7),
    .mp-saved__content > .mp-day:nth-child(7) { grid-column: 4 / 7; }
}

@media (max-width: 768px) {
    .mp-results,
    .mp-saved__content {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .mp-results > .mp-day:nth-child(n),
    .mp-saved__content > .mp-day:nth-child(n) { grid-column: auto; }

    .mp-form__grid {
        grid-template-columns: 1fr;
    }

    .mp-form {
        padding: 14px;
    }

    .mp-meal {
        flex-wrap: wrap;
        gap: 6px;
    }

    .mp-meal__type {
        min-width: auto;
    }

    .mp-day {
        padding: 12px 14px;
    }

    .mp-tabs__tab {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .mp-actions {
        flex-direction: column;
    }
}

/* ===== EVIDENCE — Підтвердження джерел ===== */
.tr-evidence {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 8px;
}

.tr-evidence__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #00e5ff;
    margin-bottom: 8px;
}

.tr-evidence__grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tr-evidence__item {
    font-size: 0.8rem;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tr-evidence__item em {
    color: #ccc;
    font-style: normal;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tr-evidence__icon {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.tr-evidence__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tr-evidence__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    text-decoration: none !important;
}

.tr-evidence__link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.tr-evidence__link--cache {
    border-color: rgba(66, 133, 244, 0.3);
    color: #8ab4f8 !important;
}

.tr-evidence__link--cache:hover {
    background: rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.5);
}

.tr-evidence__link--archive {
    border-color: rgba(187, 134, 252, 0.3);
    color: #bb86fc !important;
}

.tr-evidence__link--archive:hover {
    background: rgba(187, 134, 252, 0.15);
    border-color: rgba(187, 134, 252, 0.5);
}

.tr-evidence__link--screenshot {
    border-color: rgba(255, 171, 64, 0.3);
    color: #ffab40 !important;
}

.tr-evidence__link--screenshot:hover {
    background: rgba(255, 171, 64, 0.15);
    border-color: rgba(255, 171, 64, 0.5);
}

.tr-evidence__photo {
    margin-top: 8px;
}

.tr-evidence__img {
    max-width: 100%;
    max-height: 260px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tr-evidence__img:hover {
    opacity: 0.85;
}

.tr-evidence__snippet {
    margin-top: 8px;
}

.tr-evidence__snippet-label {
    display: block;
    font-size: 0.68rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.tr-evidence__quote {
    margin: 0 !important;
    padding: 8px 12px !important;
    background: rgba(255, 183, 77, 0.06) !important;
    border-left: 3px solid #ffb74d !important;
    border-radius: 0 6px 6px 0 !important;
    font-size: 0.78rem !important;
    color: #ccc !important;
    line-height: 1.5 !important;
    font-style: italic !important;
}

/* Статті з RSS (Google News) */
.tr-evidence__articles {
    margin-top: 8px;
}

.tr-articles {
    list-style: none !important;
    padding: 0 !important;
    margin: 4px 0 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tr-article {
    padding: 6px 10px !important;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 6px;
    border-left: 2px solid #00e676;
}

.tr-article__link {
    display: block;
    font-size: 0.8rem !important;
    color: #e0e0e0 !important;
    font-weight: 500;
    line-height: 1.4;
}

.tr-article__link:hover {
    color: #00e5ff !important;
}

.tr-article__meta {
    display: block;
    font-size: 0.68rem;
    color: #666;
    margin-top: 2px;
}

/* Не знайдено */
.tr-not-found {
    color: #ff5252;
    font-weight: 600;
    font-size: 0.95rem;
}

.tr-info-item--not-found {
    grid-column: 1 / -1;
    border-left-color: #ff5252;
    background: rgba(255, 82, 82, 0.04);
}

@media (max-width: 600px) {
    .tr-evidence__links {
        flex-direction: column;
    }

    .tr-evidence__link {
        justify-content: center;
    }
}
