/**
 * Astro Theme - Стили для астрологического портала
 * (Сидерический Зодиак Фагана-Брэдли, Симболон, Транзиты, Карточка с QR)
 */

:root {
    --astro-bg-dark: #0c0e1a;
    --astro-bg-card: #14182b;
    --astro-bg-card-hover: #191f38;
    --astro-gold: #dfb15b;
    --astro-gold-light: #f7d78e;
    --astro-gold-dark: #b88d36;
    --astro-silver: #a5b0cb;
    --astro-text: #e8ecf8;
    --astro-text-muted: #8b95b5;
    --astro-border: rgba(223, 177, 91, 0.22);
    --astro-border-glow: rgba(223, 177, 91, 0.45);
    --astro-terra: #48dbfb;
    --astro-retro: #ff6b6b;
}

body {
    background-color: var(--astro-bg-dark) !important;
    color: var(--astro-text) !important;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(68, 85, 140, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(223, 177, 91, 0.08) 0%, transparent 40%) !important;
    background-attachment: fixed !important;
}

/* Ссылки и акценты */
a {
    color: var(--astro-gold);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: var(--astro-gold-light);
    text-decoration: none;
    text-shadow: 0 0 8px rgba(223, 177, 91, 0.5);
}

/* Карточки виджетов и блоков */
.astro-widget-card,
.card.astro-card {
    background: var(--astro-bg-card);
    border: 1px solid var(--astro-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
    color: var(--astro-text);
}

.astro-widget-card:hover {
    border-color: var(--astro-border-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(223, 177, 91, 0.15);
}

.astro-card-header {
    background: rgba(18, 22, 42, 0.85);
    border-bottom: 1px solid var(--astro-border);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.astro-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--astro-gold);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.astro-card-body {
    padding: 1.25rem;
}

/* Значки планет и глифы */
.astro-glyph {
    font-size: 1.2em;
    line-height: 1;
    display: inline-block;
}

.astro-glyph-planet {
    color: var(--astro-gold-light);
}

.astro-glyph-terra {
    color: var(--astro-terra);
    font-weight: bold;
}

.astro-glyph-sign {
    color: var(--astro-silver);
}

/* Таблица транзитов */
.astro-transit-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.astro-transit-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--astro-text-muted);
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--astro-border);
    letter-spacing: 0.05em;
}

.astro-transit-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    font-size: 0.95rem;
}

.astro-transit-table tr:hover td {
    background: rgba(223, 177, 91, 0.05);
}

.astro-retro-tag {
    color: var(--astro-retro);
    font-weight: bold;
    font-size: 0.8rem;
    background: rgba(255, 107, 107, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.astro-terra-row {
    background: rgba(72, 219, 251, 0.08) !important;
}

.astro-terra-row td {
    border-top: 1px dashed rgba(72, 219, 251, 0.3);
    border-bottom: 1px dashed rgba(72, 219, 251, 0.3);
}

/* Лунный блок */
.astro-moon-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.astro-moon-disk-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.astro-moon-disk {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #1e243d;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(247, 215, 142, 0.25), inset 0 0 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(247, 215, 142, 0.4);
}

.astro-moon-info {
    flex: 1;
    min-width: 180px;
}

.astro-moon-day-num {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--astro-gold);
    line-height: 1.2;
}

.astro-moon-phase-name {
    color: var(--astro-silver);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.astro-moon-text {
    background: rgba(12, 14, 26, 0.6);
    border-left: 3px solid var(--astro-gold);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.75rem;
}

/* Карта Симболон */
.astro-symbolon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.astro-symbolon-image-frame {
    position: relative;
    border: 2px solid var(--astro-gold);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 18px rgba(223, 177, 91, 0.3);
    max-width: 220px;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
    background: #090b14;
}

.astro-symbolon-image-frame:hover {
    transform: scale(1.03);
}

.astro-symbolon-image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.astro-symbolon-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--astro-gold);
    margin-bottom: 0.35rem;
}

.astro-symbolon-archetype {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(223, 177, 91, 0.15);
    border: 1px solid var(--astro-gold);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--astro-gold-light);
    margin-bottom: 0.75rem;
}

.astro-symbolon-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--astro-text);
    text-align: left;
    background: rgba(12, 14, 26, 0.5);
    padding: 0.85rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* Форма калькулятора */
.astro-form-group {
    margin-bottom: 1rem;
}

.astro-form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--astro-gold-light);
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    display: block;
}

.astro-input {
    background: #0d101e !important;
    border: 1px solid var(--astro-border) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.85rem !important;
    min-height: 42px;
    height: 42px;
    line-height: 1.4 !important;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select.astro-input {
    height: 42px !important;
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    padding-right: 2.2rem !important;
    background-color: #0d101e !important;
    color: #ffffff !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23dfb15b' d='M1.41 0L6 4.58L10.59 0L12 1.41L6 7.41L0 1.41z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    background-size: 10px 6px !important;
    cursor: pointer;
}

select.astro-input option {
    background: #14182b !important;
    color: #ffffff !important;
    padding: 6px 10px !important;
}

.form-control-sm.astro-input {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
}

select.form-control-sm.astro-input {
    height: 38px !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    padding-right: 1.8rem !important;
    background-position: right 0.65rem center !important;
}

.astro-input:focus {
    border-color: var(--astro-gold) !important;
    box-shadow: 0 0 10px rgba(223, 177, 91, 0.4) !important;
    outline: none !important;
}

.astro-input.astro-input-muted {
    opacity: 0.7;
    background: #080a14 !important;
    border-color: rgba(223, 177, 91, 0.2) !important;
}

.astro-checkbox-wrapper {
    user-select: none;
    transition: color 0.2s ease;
}

.astro-checkbox-wrapper:hover {
    color: var(--astro-gold-light) !important;
}

.astro-checkbox-wrapper input[type="checkbox"] {
    accent-color: var(--astro-gold);
    cursor: pointer;
    width: 15px;
    height: 15px;
}

/* Кастомный выпадающий список поясов с поиском и переносом строк */
.astro-tz-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.astro-tz-trigger {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    overflow: hidden;
}

.astro-tz-trigger:hover,
.astro-tz-dropdown-wrapper.is-open .astro-tz-trigger {
    border-color: var(--astro-gold) !important;
    box-shadow: 0 0 10px rgba(223, 177, 91, 0.3) !important;
}

.astro-tz-selected-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-size: 0.88rem;
    padding-right: 6px;
}

.form-control-sm .astro-tz-selected-label {
    font-size: 0.82rem;
}

.astro-tz-arrow {
    font-size: 0.65rem;
    color: var(--astro-gold);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.astro-tz-dropdown-wrapper.is-open .astro-tz-arrow {
    transform: rotate(180deg);
}

.astro-tz-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 320px;
    max-width: 440px;
    width: 100%;
    background: #0f1325;
    border: 1px solid var(--astro-border);
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 15px rgba(223, 177, 91, 0.15);
    z-index: 1050;
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(12px);
    animation: astroFadeSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.astro-tz-dropdown-wrapper.is-open .astro-tz-menu {
    display: flex;
}

@keyframes astroFadeSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.astro-tz-search-box {
    background: rgba(12, 14, 26, 0.95);
    border-bottom: 1px solid var(--astro-border);
    padding: 8px 10px;
}

.astro-tz-search-input {
    background: #080a14 !important;
    border: 1px solid var(--astro-border) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    padding: 0.45rem 0.7rem !important;
    width: 100%;
}

.astro-tz-search-input:focus {
    border-color: var(--astro-gold) !important;
    box-shadow: 0 0 8px rgba(223, 177, 91, 0.4) !important;
    outline: none !important;
}

.astro-tz-options-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 4px 0;
}

.astro-tz-options-list::-webkit-scrollbar {
    width: 6px;
}

.astro-tz-options-list::-webkit-scrollbar-track {
    background: #0d101e;
}

.astro-tz-options-list::-webkit-scrollbar-thumb {
    background: var(--astro-border);
    border-radius: 3px;
}

.astro-tz-options-list::-webkit-scrollbar-thumb:hover {
    background: var(--astro-gold);
}

.astro-tz-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(223, 177, 91, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.astro-tz-option:last-child {
    border-bottom: none;
}

.astro-tz-option:hover {
    background: rgba(223, 177, 91, 0.14);
}

.astro-tz-option.is-selected {
    background: rgba(223, 177, 91, 0.22);
    border-left: 3px solid var(--astro-gold);
}

.astro-tz-badge {
    display: inline-block;
    background: rgba(223, 177, 91, 0.18);
    color: var(--astro-gold-light);
    border: 1px solid rgba(223, 177, 91, 0.35);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.astro-tz-option-cities {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

/* Золотая кнопка */
.btn-astro-gold {
    background: linear-gradient(135deg, #dfb15b 0%, #b88d36 100%);
    color: #0c0e1a !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(223, 177, 91, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

.btn-astro-gold:hover {
    background: linear-gradient(135deg, #f7d78e 0%, #dfb15b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 177, 91, 0.5);
}

.btn-astro-outline {
    background: transparent;
    color: var(--astro-gold) !important;
    border: 1px solid var(--astro-gold);
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-astro-outline:hover {
    background: rgba(223, 177, 91, 0.15);
    color: var(--astro-gold-light) !important;
    box-shadow: 0 0 12px rgba(223, 177, 91, 0.3);
}

/* Арт-карточка результата с QR-кодом */
.astro-art-card {
    background: linear-gradient(145deg, #111425 0%, #070913 100%);
    border: 2px solid var(--astro-gold);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(223, 177, 91, 0.25);
    color: #ffffff;
    max-width: 600px;
    margin: 1.5rem auto;
}

.astro-art-card-header {
    text-align: center;
    border-bottom: 1px solid rgba(223, 177, 91, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.astro-art-card-title {
    font-size: 1.4rem;
    color: var(--astro-gold);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.astro-art-card-subtitle {
    font-size: 0.85rem;
    color: var(--astro-silver);
}

.astro-art-card-body {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.astro-art-qr-box {
    text-align: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: inline-block;
}

.astro-art-qr-box svg,
.astro-art-qr-box img {
    display: block;
    width: 140px;
    height: 140px;
}

.astro-art-qr-hint {
    font-size: 0.75rem;
    color: var(--astro-silver);
    margin-top: 0.5rem;
    text-align: center;
}

/* Welcome Page (Splash) */
.astro-welcome-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    background: radial-gradient(circle at center, #171c35 0%, #080a13 70%, #030408 100%);
    overflow: hidden;
}

.astro-welcome-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40px 70px, #dfb15b, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 150px 120px, #dfb15b, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 200px 90px, #ffffff, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 250px 250px;
    opacity: 0.6;
    pointer-events: none;
}

.astro-welcome-card {
    background: rgba(20, 25, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--astro-border-glow);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 720px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(223, 177, 91, 0.2);
    position: relative;
    z-index: 2;
}

.astro-welcome-title {
    font-size: 2.2rem;
    color: var(--astro-gold);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.astro-welcome-slogan {
    font-size: 1.15rem;
    color: var(--astro-silver);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.astro-welcome-concept {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--astro-text);
    margin-bottom: 2rem;
    text-align: left;
    background: rgba(12, 14, 26, 0.5);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 3px solid var(--astro-gold);
}

.astro-welcome-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.astro-welcome-footer {
    font-size: 0.85rem;
    color: var(--astro-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
}

/* ==========================================================================
   Welcome Hero Widget (Full Width Frontpage)
   ========================================================================== */
.welcome-hero-widget {
    position: relative;
    padding: 75px 0 85px;
    background: radial-gradient(ellipse at 50% 25%, rgba(18, 24, 52, 0.85) 0%, rgba(7, 9, 19, 0.96) 75%),
        url('/templates/astro/images/hero_bg.jpg') center/cover no-repeat;
    border-bottom: 1px solid rgba(223, 168, 73, 0.25);
    overflow: hidden;
}

.welcome-hero-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 9, 19, 0.4) 0%, rgba(7, 9, 19, 0.95) 100%);
    z-index: 1;
}

.welcome-hero-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(223, 168, 73, 0.15) 0%, rgba(78, 205, 196, 0.06) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.welcome-content-box {
    max-width: 960px;
    position: relative;
    z-index: 2;
}

.welcome-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(223, 168, 73, 0.12);
    border: 1px solid rgba(223, 168, 73, 0.35);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f7d78e;
    margin-bottom: 20px;
}

.welcome-hero-title {
    font-family: 'Cinzel', serif, -apple-system;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f8 60%, #f7d78e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-hero-slogan {
    font-family: 'Playfair Display', serif, Georgia;
    font-style: italic;
    font-size: 1.35rem;
    color: #f7d78e;
    margin: 0 0 20px;
}

.welcome-hero-concept {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #b8c4db;
    max-width: 820px;
    margin: 0 auto 32px;
}

.btn-gold-solid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    background: linear-gradient(135deg, #dfa849 0%, #f7d78e 100%);
    color: #0b0d17 !important;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 30px;
    border: none;
    box-shadow: 0 0 25px rgba(223, 168, 73, 0.35);
    transition: all 0.3s ease;
}

.btn-gold-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(223, 168, 73, 0.6);
    color: #000 !important;
}

.btn-ghost-celestial {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f8 !important;
    font-size: 0.96rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.btn-ghost-celestial:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border-color: rgba(223, 168, 73, 0.5);
    transform: translateY(-2px);
}

/* Celestial Metrics Grid */
.celestial-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: rgba(13, 18, 36, 0.88);
    border: 1px solid rgba(223, 168, 73, 0.25);
    border-radius: 16px;
    padding: 20px 24px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    margin-top: 35px;
    text-align: left;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.metric-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(223, 168, 73, 0.12);
    border: 1px solid rgba(223, 168, 73, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #f7d78e;
    flex-shrink: 0;
}

.metric-icon-wrap.terra-icon {
    background: rgba(46, 196, 182, 0.12);
    border-color: rgba(46, 196, 182, 0.35);
    color: #2ec4b6;
}

.metric-info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b95b5;
    margin-bottom: 2px;
}

.metric-info-val {
    font-size: 0.94rem;
    font-weight: 700;
    color: #fff;
}

.metric-info-val.terra-val {
    color: #2ec4b6;
}

/* ==========================================================================
   Specialist Card Widget (Frontpage)
   ========================================================================== */
.specialist-widget-section {
    padding: 30px 0 45px;
}

.specialist-box-card {
    background: linear-gradient(145deg, rgba(22, 28, 54, 0.92) 0%, rgba(12, 16, 32, 0.97) 100%);
    border: 1px solid rgba(223, 168, 73, 0.32);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(223, 168, 73, 0.08);
    position: relative;
    overflow: hidden;
}

.specialist-box-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(223, 168, 73, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.specialist-top-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 35px;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.specialist-img-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.specialist-photo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--astro-gold);
    box-shadow: 0 0 25px rgba(223, 168, 73, 0.4);
}

.specialist-live-status {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d1224;
    border: 1px solid var(--astro-gold);
    color: #f7d78e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background: #2ec4b6;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ec4b6;
    display: inline-block;
}

.specialist-mini-badge {
    font-size: 0.76rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--astro-gold);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.specialist-fullname {
    font-family: 'Cinzel', serif;
    font-size: 2.1rem;
    color: #fff;
    margin: 0 0 6px;
}

.specialist-role-subtitle {
    color: var(--astro-silver);
    font-size: 0.95rem;
    margin-bottom: 14px;
    line-height: 1.4;
}

.specialist-quote-text {
    font-style: italic;
    font-size: 0.98rem;
    color: #b5c2db;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--astro-gold);
    padding: 12px 18px;
    border-radius: 0 10px 10px 0;
    margin: 0 0 18px;
}

.specialist-stats-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-badge-pill {
    font-size: 0.82rem;
    color: #9cb0d1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 8px;
}

.stat-badge-pill strong {
    color: #f7d78e;
}

/* Specialist Packages Row */
.packages-heading-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #fff;
    margin: 0 0 20px;
    text-align: center;
}

.packages-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.pkg-card {
    background: rgba(14, 20, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.pkg-card:hover {
    transform: translateY(-4px);
    border-color: var(--astro-gold);
    box-shadow: 0 10px 25px rgba(223, 177, 91, 0.15);
}

.pkg-card.pkg-featured {
    border-color: var(--astro-gold);
    background: linear-gradient(180deg, rgba(223, 177, 91, 0.08) 0%, rgba(14, 20, 42, 0.8) 100%);
}

.pkg-ribbon {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--astro-gold);
    color: #0b0d17;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
}

.pkg-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.pkg-card-desc {
    font-size: 0.82rem;
    color: var(--astro-text-muted);
    line-height: 1.45;
    margin-bottom: 16px;
}

.pkg-card-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 12px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.pkg-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f7d78e;
}

.btn-pkg-order {
    font-size: 0.78rem;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none !important;
    transition: 0.2s;
}

.btn-pkg-order:hover {
    background: var(--astro-gold);
    color: #0b0d17 !important;
    border-color: var(--astro-gold);
}

/* Specialist Channel Bar */
.specialist-channel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7, 10, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.channel-bar-label {
    font-size: 0.92rem;
    color: #e0e8f8;
    font-weight: 600;
}

.channel-buttons-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-channel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none !important;
    color: #fff !important;
    transition: all 0.2s ease;
}

.btn-ch-tg {
    background: #229ED9;
}

.btn-ch-wa {
    background: #25D366;
    color: #072a15 !important;
    font-weight: 700;
}

.btn-ch-vk {
    background: #0077FF;
}

.btn-ch-action {
    background: linear-gradient(135deg, var(--astro-gold), #f7d78e);
    color: #0b0d17 !important;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(223, 168, 73, 0.35);
}

.btn-channel:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Responsive queries */
@media (max-width: 992px) {
    .welcome-hero-title {
        font-size: 2.3rem;
    }

    .celestial-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specialist-top-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .specialist-quote-text {
        border-left: none;
        border-top: 2px solid var(--astro-gold);
    }

    .packages-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .specialist-channel-bar {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .welcome-hero-title {
        font-size: 1.8rem;
    }

    .celestial-metrics-grid {
        grid-template-columns: 1fr;
    }

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

    .specialist-box-card {
        padding: 22px 14px;
    }
}

/* ========================================================
   Header, Navigation & Content Polish
   ======================================================== */
header {
    background: rgba(12, 14, 26, 0.96) !important;
    border-bottom: 1px solid rgba(223, 177, 91, 0.25) !important;
    backdrop-filter: blur(10px);
}

.menu-header .nav-link,
.menu-main .nav-link {
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 0.6rem 0.95rem !important;
    transition: all 0.25s ease;
}

.menu-header .nav-link:hover,
.menu-main .nav-link:hover,
.menu-main .nav-item.active .nav-link {
    color: var(--astro-gold) !important;
    text-shadow: 0 0 10px rgba(223, 177, 91, 0.45);
}

.navbar-brand a,
.navbar-brand {
    color: #f8fafc !important;
    font-weight: 600;
}

/* Articles list and tile styling */
.content_list:not(.tiled):not(.row) {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.content_list_item {
    background: var(--astro-bg-card);
    border: 1px solid var(--astro-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.25s ease;
}

.content_list_item:hover {
    border-color: var(--astro-border-glow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.content_list_item h3 {
    margin-bottom: 0.5rem !important;
}

.content_list_item h3 a {
    color: #f1f5f9;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.content_list_item h3 a:hover {
    color: var(--astro-gold);
    text-decoration: none;
}

.content_list_item .f_teaser,
.content_list_item .value {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.content_list_item .info_bar {
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 0.75rem !important;
}

.content_list_item .info_bar a {
    color: #94a3b8;
}

.content_list_item .info_bar a:hover {
    color: var(--astro-gold);
}

/* ============================================================
   COSMIC TILES & CARDS GRID (ПЛИТОЧНЫЙ ВЫВОД СТАТЕЙ)
   ============================================================ */
.content_list.tiled,
.content_list.row,
.icms-widget__content_list.content_list.tiled {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    gap: 0 !important;
}

.content_list.tiled > div[class*="col-"],
.content_list.tiled .tile {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 24px !important;
    display: flex !important;
}

.content_list.tiled .icms-content-fields,
.content_list.tiled .tile .icms-content-fields {
    background: linear-gradient(180deg, rgba(20, 24, 43, 0.92) 0%, rgba(13, 16, 30, 0.98) 100%) !important;
    border: 1px solid rgba(223, 177, 91, 0.22) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    position: relative !important;
}

.content_list.tiled .icms-content-fields:hover,
.content_list.tiled .tile .icms-content-fields:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(223, 177, 91, 0.6) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(223, 177, 91, 0.22) !important;
}

/* Category / Article pill on image */
.content_list.tiled .icms-content-fields::before {
    content: '✦ СТАТЬЯ';
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    background: rgba(12, 14, 26, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(223, 177, 91, 0.45);
    color: var(--astro-gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Card Cover Image */
.content_list.tiled .f_photo {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    height: 200px !important;
    min-height: 200px !important;
    background: #080a14 !important;
}

.content_list.tiled .f_photo a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.content_list.tiled .f_photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1) !important;
    display: block !important;
}

.content_list.tiled .icms-content-fields:hover .f_photo img {
    transform: scale(1.07) !important;
}

.content_list.tiled .f_photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: linear-gradient(to top, rgba(20, 24, 43, 1) 0%, rgba(20, 24, 43, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Card Title */
.content_list.tiled .f_title {
    padding: 1.15rem 1.25rem 0.5rem !important;
    margin: 0 !important;
}

.content_list.tiled .f_title h3,
.content_list.tiled .f_title h4 {
    font-family: 'Cinzel', serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.42 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.content_list.tiled .f_title a {
    color: #f8fafc !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
}

.content_list.tiled .icms-content-fields:hover .f_title a {
    color: var(--astro-gold) !important;
}

/* Card Teaser */
.content_list.tiled .f_teaser {
    padding: 0 1.25rem 0.85rem !important;
    margin: 0 !important;
}

.content_list.tiled .f_teaser .value {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

.content_list.tiled .f_teaser .read-more,
.content_list.tiled .f_teaser span.d-block {
    display: none !important;
}

/* Card Info Bar */
.content_list.tiled .info_bar {
    margin-top: auto !important;
    padding: 0.8rem 1.25rem !important;
    background: rgba(10, 13, 24, 0.65) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
}

.content_list.tiled .info_bar .bar_item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    color: #94a3b8 !important;
}

.content_list.tiled .info_bar .bar_item svg {
    width: 14px !important;
    height: 14px !important;
    fill: var(--astro-gold) !important;
}

.content_list.tiled .info_bar .bar_item a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.content_list.tiled .info_bar .bar_item a:hover {
    color: var(--astro-gold) !important;
}

.content_list.tiled .info_bar .bi_rating {
    display: none !important;
}

/* Article Single Item Hero Image */
.articles_item .f_photo,
.content_item .f_photo {
    margin-bottom: 2rem !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(223, 177, 91, 0.25) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55) !important;
}

.articles_item .f_photo img,
.content_item .f_photo img {
    width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: cover !important;
    display: block !important;
}



/* InstantCMS Widget Headers on Dark Theme */
.card-header.h5,
.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--astro-border) !important;
    color: var(--astro-gold) !important;
}

.card-header a {
    color: var(--astro-gold) !important;
}

.btn-outline-info {
    color: var(--astro-gold) !important;
    border-color: rgba(223, 177, 91, 0.4) !important;
    background: rgba(223, 177, 91, 0.08) !important;
}

.btn-outline-info:hover {
    color: #0c0e1a !important;
    background: var(--astro-gold) !important;
    border-color: var(--astro-gold) !important;
}

/* Footer styling */
footer,
.footer {
    background: #080a14 !important;
    border-top: 1px solid rgba(223, 177, 91, 0.15);
    color: #94a3b8;
}

.menu-footer .nav-link {
    color: #94a3b8 !important;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem !important;
}

.menu-footer .nav-link:hover {
    color: var(--astro-gold) !important;
}




.icms-header__middle {
    background: linear-gradient(180deg, rgba(7, 9, 19, 0.4) 0%, rgba(7, 9, 19, 0.95) 100%);
}