main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.new-menu-item{
  display: flex;
  align-items: center;
  padding: 0 7px;
}
.new-menu-item a{
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* Единые стили для всех шаблонов проекта Mantra Club */

/* Основные стили контейнера */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Стили карточек */
.card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h1, .card h2, .card h3, .card h4 {
    margin-bottom: 20px;
    color: #333;
}

.card p {
    margin: 15px 0;
    line-height: 1.6;
    color: #555;
}

/* Заголовок и подзаголовок */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #007bff;
}

.header .subtitle {
    color: #666;
    font-size: 1.2rem;
}

/* Сетка функций */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.feature-item h3 {
    margin-bottom: 10px;
    color: #007bff;
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

/* Выделенный блок */
.highlight-box {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0069d9;
    border-color: #0062cc;
}

.btn-success {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}

.btn-info {
    background: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background: #138496;
    border-color: #117a8b;
}

.btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
}

.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Секции инвесторов */
.invest-section {
    margin-bottom: 30px;
}

.invest-section h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.invest-section h3 {
    color: #007bff;
    margin-top: 25px;
    margin-bottom: 15px;
}

.invest-section h4 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
}

.invest-section ul {
    padding-left: 20px;
}

.invest-section li {
    margin-bottom: 8px;
}

.invest-section a {
    color: #007bff;
    text-decoration: none;
}

.invest-section a:hover {
    text-decoration: underline;
}

/* Профиль пользователя */
.profile-info {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.profile-info p {
    margin: 10px 0;
    font-size: 16px;
}

.profile-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.section-item {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.section-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.section-item p {
    color: #666;
    margin: 0;
}

/* Формы входа и регистрации */
.site-login .card,
.site-profile .card,
.site-addcontent .card,
.site-error .card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.site-login h1,
.site-profile h1,
.site-addcontent h1,
.site-error h1 {
    margin-bottom: 20px;
}

/* Ошибки */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.site-error .alert-danger {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.site-error h1 {
    color: #dc3545;
}

/* Разделитель */
hr {
    margin: 30px 0;
    border-color: #dee2e6;
    border-top: 1px solid #dee2e6;
}

/* Ссылки */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sections {
        grid-template-columns: 1fr;
    }
}

/* Стили для административных страниц */
.movies-index,
.shorts-index,
.usersvideos-index,
.cartoons-index,
.software-index,
.music-index,
.radio-index,
.books-index,
.games-index,
.series-index,
.anime-index,
.manga-index {
    margin: 20px 0;
}

.movies-index h1,
.shorts-index h1,
.usersvideos-index h1,
.cartoons-index h1,
.software-index h1,
.music-index h1,
.radio-index h1,
.books-index h1,
.games-index h1,
.series-index h1,
.anime-index h1,
.manga-index h1 {
    margin-bottom: 20px;
}

/* Формы создания/редактирования */
.movies-form,
.shorts-form,
.usersvideos-form,
.cartoons-form,
.software-form,
.music-form,
.radio-form,
.books-form,
.games-form,
.series-form,
.anime-form,
.manga-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.form-control:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Таблицы */
.table {
    width: 100%;
    margin-bottom: 20px;
    background-color: transparent;
}

.table th,
.table td {
    padding: 12px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background: #f8f9fa;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Пагинация */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pagination > li {
    margin: 0 2px;
}

.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 10px 14px;
    color: #007bff;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
    background-color: #e9ecef;
}

.pagination > .active > a,
.pagination > .active > span {
    z-index: 3;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Уведомления */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
    margin-bottom: 20px;
    list-style: none;
    background-color: transparent;
    border-radius: 4px;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 10px;
    padding-left: 10px;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item a {
    color: #007bff;
}

.breadcrumb-item.active {
    color: #6c757d;
}


/* ============================================================
   MantraClub — единый файл стилей для всех Yii2-шаблонов
   Подключается ОДИН раз (см. инструкцию под файлом)
   ============================================================ */

/* ---------- 1. ПАЛИТРА / БАЗА ---------- */
:root {
    --mc-green: #00dc82;
    --mc-green-hover: #7cf5c8;
    --mc-green-dim: rgba(0, 220, 130, .14);
    --mc-bg: #0b1020;
    --mc-surface: rgba(255, 255, 255, .045);
    --mc-surface-2: rgba(255, 255, 255, .03);
    --mc-border: rgba(255, 255, 255, .09);
    --mc-text: #e9edf6;
    --mc-muted: #98a2b8;
    --mc-danger: #ff6b6b;
}

body {
    margin: 0;
    padding-top: 70px; /* отступ под fixed-top navbar */
    color: var(--mc-text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(0, 220, 130, .10), transparent 60%),
        radial-gradient(700px 420px at -10% 30%, rgba(88, 101, 242, .10), transparent 60%),
        var(--mc-bg);
}
::selection { background: rgba(0, 220, 130, .35); }
a { color: var(--mc-green); }
a:hover { color: var(--mc-green-hover); }

.mc-page { min-height: 100vh; padding: 48px 20px 64px; box-sizing: border-box; }
.mc-page *, .mc-page *::before, .mc-page *::after { box-sizing: border-box; }
.mc-container { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

/* ---------- 2. NAVBAR (layout main.php) ---------- */
.mc-navbar {
    background: rgba(11, 16, 32, .92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--mc-border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.mc-navbar .navbar-brand { font-weight: 800; letter-spacing: .3px; color: var(--mc-text) !important; }
.mc-navbar .navbar-brand:hover { color: var(--mc-green) !important; }
.mc-navbar .nav-link { color: var(--mc-muted) !important; font-weight: 500; transition: color .2s ease; }
.mc-navbar .nav-link:hover, .mc-navbar .nav-link:focus { color: var(--mc-text) !important; }
.mc-navbar .nav-link.active { color: var(--mc-green) !important; }

.new-menu-item { margin: 0 6px; }
.new-menu-item a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px !important;
    background: linear-gradient(135deg, var(--mc-green), var(--mc-green-hover));
    color: #041a10 !important;
    border-radius: 8px; font-weight: 600; font-size: 14px;
    text-decoration: none; transition: all .2s ease;
    box-shadow: 0 4px 12px rgba(0, 220, 130, .25);
}
.new-menu-item a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 220, 130, .4); color: #041a10 !important; }
.new-menu-item a:active { transform: translateY(0); }
.new-menu-item a::before { content: '+'; font-size: 18px; font-weight: 700; line-height: 1; }
.new-menu-item--profile a {
    background: rgba(255, 255, 255, .08);
    color: var(--mc-text) !important;
    border: 1px solid var(--mc-border);
    box-shadow: none;
}
.new-menu-item--profile a::before { content: '👤'; font-size: 15px; }
.new-menu-item--profile a:hover { background: rgba(255, 255, 255, .16); border-color: var(--mc-green); box-shadow: none; }
.mc-logout-btn { color: var(--mc-muted) !important; font-size: 14px; text-decoration: none; }
.mc-logout-btn:hover { color: var(--mc-danger) !important; text-decoration: none; }

/* ---------- 3. КРОШКИ / ФУТЕР (layout) ---------- */
.breadcrumb { background: transparent; margin: 18px 0 14px; padding: 0; }
.breadcrumb-item a { color: var(--mc-green); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--mc-muted); content: '|'; }
.breadcrumb-item.active { color: var(--mc-muted); }
.mc-footer {
    border-top: 1px solid var(--mc-border);
    background: rgba(255, 255, 255, .02);
    color: var(--mc-muted); font-size: 13px;
}
.mc-footer a { color: var(--mc-green); text-decoration: none; }
.mc-footer a:hover { text-decoration: underline; }

/* ---------- 4. HERO ---------- */
.mc-hero { text-align: center; padding: 36px 16px 8px; animation: mcFadeUp .7s ease both; }
.mc-lotus {
    font-size: 56px; line-height: 1;
    filter: drop-shadow(0 0 24px rgba(0, 220, 130, .45));
    animation: mcFloat 5s ease-in-out infinite;
}
.mc-badge {
    display: inline-block; padding: 8px 18px; margin-bottom: 20px;
    border-radius: 999px; background: var(--mc-green-dim);
    border: 1px solid rgba(0, 220, 130, .30);
    color: var(--mc-green); font-size: 13px; font-weight: 500; letter-spacing: .3px;
}
.mc-title {
    margin: 18px 0 10px; font-size: clamp(28px, 5vw, 44px);
    font-weight: 800; letter-spacing: -.5px; line-height: 1.1;
}
.mc-title-accent,
.mc-title .mc-title-en-block {
    background: linear-gradient(90deg, #ffffff 0%, var(--mc-green) 60%, #7cf5c8 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mc-title-en {
    display: block; margin-top: 6px; font-size: .42em; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase; color: var(--mc-muted);
}
.mc-subtitle { color: var(--mc-muted); font-size: clamp(14px, 2vw, 18px); max-width: 620px; margin: 0 auto 12px; line-height: 1.6; }
.mc-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.mc-tags span {
    padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--mc-border); background: var(--mc-surface);
    font-size: 13px; backdrop-filter: blur(6px);
}
.mc-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 640px; margin: 24px auto 0; }
.mc-stat { padding: 22px 12px; background: var(--mc-surface); border: 1px solid var(--mc-border); border-radius: 16px; backdrop-filter: blur(8px); }
.mc-stat-value {
    font-size: clamp(24px, 4vw, 32px); font-weight: 800; line-height: 1; margin-bottom: 8px;
    background: linear-gradient(135deg, var(--mc-green), #7cf5c8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mc-stat-label { font-size: 12px; color: var(--mc-muted); letter-spacing: .3px; }

/* ---------- 5. КАРТОЧКИ ---------- */
.mc-card {
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: 20px; padding: 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    animation: mcFadeUp .7s ease both;
}
.mc-card:nth-of-type(1) { animation-delay: .08s; }
.mc-card:nth-of-type(2) { animation-delay: .16s; }
.mc-card:nth-of-type(3) { animation-delay: .24s; }
.mc-card h2 { margin: 0 0 16px; font-size: 22px; display: flex; align-items: center; gap: 12px; }
.mc-card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; font-size: 18px;
    background: var(--mc-green-dim); border: 1px solid rgba(0, 220, 130, .25);
}
.mc-card p { color: var(--mc-muted); line-height: 1.65; margin: 0 0 12px; }
.mc-card p:last-child { margin-bottom: 0; }
.mc-card p strong { color: var(--mc-text); }

/* ---------- 6. СЕТКА ФИЧ ---------- */
.mc-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.mc-feature {
    background: var(--mc-surface-2); border: 1px solid var(--mc-border);
    border-radius: 16px; padding: 22px 18px; text-align: center;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.mc-feature:hover { transform: translateY(-6px); border-color: rgba(0, 220, 130, .45); box-shadow: 0 14px 34px rgba(0, 220, 130, .12); }
.mc-feature-icon {
    width: 56px; height: 56px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 220, 130, .18), rgba(88, 101, 242, .18));
    border: 1px solid var(--mc-border);
}
.mc-feature h3 { font-size: 16px; margin: 0 0 8px; color: var(--mc-text); }
.mc-feature p { font-size: 14px; margin: 0; color: var(--mc-muted); }

/* ---------- 7. СПИСКИ / HIGHLIGHT ---------- */
.mc-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mc-list li { position: relative; padding-left: 26px; color: var(--mc-muted); line-height: 1.6; }
.mc-list li::before {
    content: ''; position: absolute; left: 4px; top: .6em;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--mc-green); box-shadow: 0 0 10px rgba(0, 220, 130, .8);
}
.mc-list li strong { color: var(--mc-text); }
.mc-highlight {
    padding: 18px 22px; border-radius: 16px;
    font-size: 15px; line-height: 1.6; color: var(--mc-text);
    background: linear-gradient(135deg, rgba(0, 220, 130, .12), rgba(88, 101, 242, .10));
    border: 1px solid rgba(0, 220, 130, .30);
}

/* ---------- 8. ЦЕЛИ (инвесторы) ---------- */
.mc-goals { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mc-goals li {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 18px 20px; background: var(--mc-surface-2);
    border: 1px solid var(--mc-border); border-radius: 14px;
    transition: border-color .25s ease, transform .25s ease;
}
.mc-goals li:hover { border-color: rgba(0, 220, 130, .40); transform: translateX(4px); }
.mc-goal-num {
    font-size: 28px; font-weight: 800; line-height: 1; min-width: 44px; padding-top: 4px;
    background: linear-gradient(135deg, var(--mc-green), #7cf5c8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mc-goals li strong { display: block; color: var(--mc-text); font-size: 15px; margin-bottom: 4px; }
.mc-goals li p { margin: 0; font-size: 14px; color: var(--mc-muted); line-height: 1.5; }

/* ---------- 9. CTA + КНОПКИ ---------- */
.mc-cta { animation: mcFadeUp .7s ease both; animation-delay: .32s; }
.mc-cta-inner {
    position: relative; overflow: hidden; padding: 40px 32px; border-radius: 24px; text-align: center;
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(0, 220, 130, .18), transparent 70%),
        var(--mc-surface-2);
    border: 1px solid rgba(0, 220, 130, .30);
    box-shadow: 0 16px 50px rgba(0, 220, 130, .08);
}
.mc-cta-icon { font-size: 44px; margin-bottom: 12px; filter: drop-shadow(0 0 18px rgba(0, 220, 130, .5)); animation: mcFloat 5s ease-in-out infinite; }
.mc-cta h2 { margin: 0 0 10px; font-size: clamp(22px, 3.5vw, 28px); color: var(--mc-text); }
.mc-cta p { color: var(--mc-muted); max-width: 520px; margin: 0 auto 24px; line-height: 1.6; }
.mc-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 26px; border-radius: 12px; border: 1px solid transparent;
    font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.mc-btn-primary { background: linear-gradient(135deg, var(--mc-green), #7cf5c8); color: #041a10; }
.mc-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 220, 130, .35); color: #041a10; }
.mc-btn-ghost { background: transparent; border-color: var(--mc-border); color: var(--mc-text); }
.mc-btn-ghost:hover { border-color: var(--mc-green); color: var(--mc-green); }
.mc-btn-block { width: 100%; }

/* ---------- 10. ЮР. ДОКУМЕНТЫ (аккордеон) ---------- */
.mc-legal-intro { color: var(--mc-muted); margin-bottom: 20px !important; }
.mc-legal-item {
    border: 1px solid var(--mc-border); border-radius: 14px; margin-top: 14px;
    overflow: hidden; background: var(--mc-surface-2);
    transition: border-color .25s ease, background .25s ease;
}
.mc-legal-item[open] { border-color: rgba(0, 220, 130, .40); background: rgba(0, 220, 130, .04); }
.mc-legal-item summary {
    display: flex; align-items: center; gap: 16px; padding: 18px 22px;
    cursor: pointer; list-style: none; user-select: none; transition: background .2s ease;
}
.mc-legal-item summary::-webkit-details-marker { display: none; }
.mc-legal-item summary:hover { background: rgba(255, 255, 255, .03); }
.mc-legal-num { font-size: 20px; font-weight: 800; color: var(--mc-green); min-width: 32px; }
.mc-legal-title { flex: 1; font-size: 16px; font-weight: 600; color: var(--mc-text); }
.mc-legal-arrow { font-size: 22px; font-weight: 300; color: var(--mc-muted); transition: transform .3s ease, color .3s ease; }
.mc-legal-item[open] .mc-legal-arrow { transform: rotate(45deg); color: var(--mc-green); }
.mc-legal-body { padding: 6px 22px 24px; border-top: 1px solid var(--mc-border); animation: mcFadeIn .3s ease; }
.mc-legal-body h4 { color: var(--mc-text); font-size: 15px; margin: 20px 0 10px; padding-left: 10px; border-left: 3px solid var(--mc-green); }
.mc-legal-body p { color: var(--mc-muted); font-size: 14px; line-height: 1.65; margin: 8px 0; }
.mc-legal-body ul { color: var(--mc-muted); font-size: 14px; padding-left: 20px; margin: 8px 0; }
.mc-legal-body li { margin-bottom: 6px; line-height: 1.55; }
.mc-legal-body a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 11. КАРТОЧКИ-ССЫЛКИ (addcontent) ---------- */
.mc-link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mc-link-card {
    display: flex; flex-direction: column; gap: 8px; padding: 22px;
    background: var(--mc-surface); border: 1px solid var(--mc-border); border-radius: 16px;
    color: var(--mc-text); text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.mc-link-card:hover {
    transform: translateY(-4px); border-color: rgba(0, 220, 130, .45);
    color: var(--mc-text); box-shadow: 0 14px 34px rgba(0, 220, 130, .12);
}
.mc-link-card-icon { font-size: 28px; }
.mc-link-card-title { font-weight: 600; font-size: 16px; }
.mc-link-card-desc { font-size: 13px; color: var(--mc-muted); }

/* ---------- 12. ФОРМЫ / LOGIN ---------- */
.mc-auth { max-width: 460px; margin: 20px auto; width: 100%; }
.mc-form-group { margin-bottom: 16px; }
.mc-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--mc-muted); }
.mc-input {
    width: 100%; padding: 12px 14px; font-size: 14px;
    background: var(--mc-surface-2); color: var(--mc-text);
    border: 1px solid var(--mc-border); border-radius: 10px; outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.mc-input:focus { border-color: var(--mc-green); box-shadow: 0 0 0 3px rgba(0, 220, 130, .12); }
.mc-error-text { color: var(--mc-danger); font-size: 12px; margin-top: 4px; }
.mc-checkbox { display: flex; align-items: center; gap: 8px; }
.mc-checkbox-label { color: var(--mc-muted); font-size: 14px; margin: 0; }
.mc-hint { color: var(--mc-muted); font-size: 13px; margin-top: 14px; }
.mc-hint strong { color: var(--mc-text); }

/* ---------- 13. СТРАНИЦА ОШИБКИ ---------- */
.mc-error { text-align: center; padding: 40px 16px; animation: mcFadeUp .7s ease both; }
.mc-error-icon { font-size: 56px; filter: drop-shadow(0 0 24px rgba(0, 220, 130, .45)); }
.mc-error-code {
    font-size: clamp(40px, 8vw, 64px); font-weight: 800; line-height: 1.1; margin: 12px 0 6px;
    background: linear-gradient(90deg, #ffffff 0%, var(--mc-green) 60%, #7cf5c8 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mc-error-box {
    max-width: 640px; margin: 20px auto; padding: 16px 20px; text-align: left;
    background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .35);
    border-radius: 12px; color: var(--mc-text); font-size: 14px; line-height: 1.6;
}

/* ---------- 14. АНИМАЦИИ ---------- */
@keyframes mcFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mcFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mcFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 15. АДАПТИВ ---------- */
@media (max-width: 767px) {
    body { padding-top: 56px; }
    .new-menu-item { margin: 6px 0; }
    .new-menu-item a { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
    .mc-page { padding: 28px 14px 40px; }
    .mc-card, .mc-cta-inner { padding: 22px 18px; }
    .mc-hero { padding-top: 20px; }
    .mc-lotus { font-size: 44px; }
    .mc-hero-stats { grid-template-columns: 1fr; gap: 10px; }
    .mc-stat { padding: 16px; display: flex; justify-content: space-between; align-items: center; }
    .mc-stat-value { margin-bottom: 0; font-size: 22px; }
    .mc-goals li { padding: 14px; gap: 12px; }
    .mc-goal-num { font-size: 22px; min-width: 32px; }
    .mc-legal-item summary { padding: 14px 16px; gap: 12px; }
    .mc-legal-title { font-size: 14px; }
    .mc-legal-body { padding: 10px 16px 20px; }
}

/* ============================================================
   16. ADMIN / CRUD: таблицы, формы, DetailView, пагинация
   ============================================================ */

/* Шапка админ-блока */
.mc-admin-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.mc-admin-head h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 22px; }
.mc-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Таблицы (GridView / DetailView) */
.mc-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--mc-surface-2); color: var(--mc-text);
    border: 1px solid var(--mc-border); border-radius: 12px; overflow: hidden;
}
.mc-table thead th {
    background: rgba(255, 255, 255, .05); color: var(--mc-muted);
    font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
    padding: 12px 14px; border-bottom: 1px solid var(--mc-border); text-align: left;
}
.mc-table tbody td, .mc-table tbody th {
    padding: 12px 14px; border-bottom: 1px solid var(--mc-border);
    font-size: 14px; vertical-align: middle;
}
.mc-table tbody tr:last-child td, .mc-table tbody tr:last-child th { border-bottom: none; }
.mc-table tbody tr:hover td, .mc-table tbody tr:hover th { background: rgba(0, 220, 130, .05); }
.mc-table img { border-radius: 8px; object-fit: cover; display: block; }
.mc-muted-text { color: var(--mc-muted); }

/* DetailView: левая колонка-подпись */
.mc-detail th {
    width: 220px; background: rgba(255, 255, 255, .05);
    color: var(--mc-muted); font-weight: 600;
}

/* Summary + пагинация GridView */
.mc-grid-summary { color: var(--mc-muted); font-size: 13px; margin: 12px 0; }
.mc-grid-empty { color: var(--mc-muted); padding: 24px; text-align: center; }
.mc-pager {
    display: flex; gap: 6px; list-style: none; padding: 0;
    margin: 16px 0 0; justify-content: center; flex-wrap: wrap;
}
.mc-pager-item a, .mc-pager-item span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    border-radius: 8px; border: 1px solid var(--mc-border);
    background: var(--mc-surface-2); color: var(--mc-text);
    font-size: 13px; text-decoration: none; transition: all .2s ease;
}
.mc-pager-item a:hover { border-color: var(--mc-green); color: var(--mc-green); }
.mc-pager-active span, .mc-pager-active a {
    background: linear-gradient(135deg, var(--mc-green), var(--mc-green-hover));
    color: #041a10; border-color: transparent; font-weight: 700;
}
.mc-pager-disabled span { opacity: .4; }

/* Кнопки-варианты для админки */
.mc-btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.mc-btn-secondary { background: rgba(255, 255, 255, .08); color: var(--mc-text); border-color: var(--mc-border); }
.mc-btn-secondary:hover { background: rgba(255, 255, 255, .16); color: var(--mc-text); }
.mc-btn-info { background: rgba(23, 162, 184, .15); color: #6fd6ea; border-color: rgba(23, 162, 184, .4); }
.mc-btn-info:hover { background: rgba(23, 162, 184, .28); color: #6fd6ea; }
.mc-btn-warning { background: rgba(255, 193, 7, .15); color: #ffd45c; border-color: rgba(255, 193, 7, .4); }
.mc-btn-warning:hover { background: rgba(255, 193, 7, .28); color: #ffd45c; }
.mc-btn-danger { background: rgba(255, 107, 107, .15); color: var(--mc-danger); border-color: rgba(255, 107, 107, .4); }
.mc-btn-danger:hover { background: rgba(255, 107, 107, .28); color: var(--mc-danger); }

/* Формы админки */
textarea.mc-input { min-height: 120px; resize: vertical; }
.mc-form-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* Алерты Yii (Alert widget) в тёмной теме */
.alert {
    border-radius: 12px; border: 1px solid var(--mc-border);
    background: rgba(255, 255, 255, .05); color: var(--mc-text);
}
.alert-success { border-color: rgba(0, 220, 130, .4); background: rgba(0, 220, 130, .1); }
.alert-danger  { border-color: rgba(255, 107, 107, .4); background: rgba(255, 107, 107, .1); }
.alert-warning { border-color: rgba(255, 193, 7, .4); background: rgba(255, 193, 7, .1); }
.alert-info    { border-color: rgba(23, 162, 184, .4); background: rgba(23, 162, 184, .1); }