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;
}

.current-tariff-container {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.current-tariff-container h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #856404;
}

/* Стили для страницы просмотров историй */
.seen-story-index-profile .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0.125, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.seen-story-index-profile .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.seen-story-index-profile .table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

.seen-story-index-profile .badge {
    font-size: 0.75em;
}

.seen-story-index-profile .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.seen-story-search .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0.125, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.seen-story-search .card-header {
    background-color: #e9ecef;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Мобильная адаптация для страницы просмотров историй */
@media (max-width: 991.98px) {
    .seen-story-index-profile .card {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .seen-story-index-profile .card-header {
        border-radius: 0;
    }

    .seen-story-index-profile .card-body {
        padding: 0;
    }

    .seen-story-search .card {
        margin: 0 -15px 1rem -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .seen-story-search .card-header {
        border-radius: 0;
    }

    .seen-story-search .collapse {
        border-top: 1px solid rgba(0, 0, 0, 0.125);
    }
}

@media (max-width: 575.98px) {
    .seen-story-index-profile h1 {
        font-size: 1.5rem;
    }

    .seen-story-index-profile .btn-group {
        width: 100%;
    }

    .seen-story-index-profile .btn-group .btn {
        flex: 1;
    }

    .seen-story-search .form-control {
        font-size: 16px;
        /* Предотвращает зум на iOS */
    }

    .seen-story-search input[type="datetime-local"] {
        font-size: 16px;
    }

    .seen-story-index-profile .card .card-body .card {
        margin: 0.5rem 0;
        border-radius: 0.375rem;
    }

    .seen-story-index-profile .badge {
        font-size: 0.7em;
        padding: 0.25em 0.5em;
    }

    .seen-story-index-profile .btn-sm {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Улучшения для карточек на мобильных */
.seen-story-index-profile .card .card-body .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.seen-story-index-profile .card .card-body .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Анимация для сворачиваемой формы поиска */
.seen-story-search .collapse {
    transition: all 0.3s ease-in-out;
}

/* Fallback стили для случаев, когда Bootstrap не работает */
.seen-story-search .collapse.show {
    display: block !important;
}

.seen-story-search .collapse:not(.show) {
    display: none !important;
}

@media (max-width: 991.98px) {
    .seen-story-search .collapse:not(.show) {
        display: none !important;
    }

    .seen-story-search .collapse.show {
        display: block !important;
    }
}

/* Улучшения для пагинации на мобильных */
@media (max-width: 575.98px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-item {
        margin: 0.125rem;
    }

    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Стили для страницы просмотра истории */
.seen-story-view .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.seen-story-view .card-header {
    background-color: #007bff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.seen-story-view .detail-view th {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 30%;
}

.seen-story-view .detail-view td {
    background-color: #ffffff;
}

/* Мобильная адаптация для страницы просмотра */
@media (max-width: 767.98px) {
    .seen-story-view .card {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .seen-story-view .card-header {
        border-radius: 0;
    }

    .seen-story-view .bg-light {
        background-color: #f8f9fa !important;
        border: 1px solid #e9ecef;
        transition: background-color 0.2s ease-in-out;
    }

    .seen-story-view .bg-light:hover {
        background-color: #e9ecef !important;
    }

    .seen-story-view .badge {
        font-size: 0.75em;
        padding: 0.35em 0.65em;
    }

    .seen-story-view h1 {
        font-size: 1.5rem;
    }

    .seen-story-view .btn-group {
        width: 100%;
    }

    .seen-story-view .btn-group .btn {
        flex: 1;
    }
}

@media (max-width: 575.98px) {
    .seen-story-view .card-body .row>.col-12 {
        margin-bottom: 0.75rem;
    }

    .seen-story-view .card-body .row>.col-12:last-child {
        margin-bottom: 0;
    }

    .seen-story-view .p-3 {
        padding: 1rem !important;
    }
}

/* Стили для страницы профиля */
.profile-view .list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: background-color 0.2s ease-in-out;
}

.profile-view .list-group-item:hover {
    background-color: #f8f9fa;
}

.profile-view .badge {
    font-size: 0.875em;
    padding: 0.5em 0.75em;
}

.profile-view .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff;
}

.profile-view .bi {
    font-size: 1.1em;
}

/* Стили для блока информации о профиле */
.profile-view .list-group-item:first-child {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.profile-view .list-group-item:first-child h6 {
    color: #495057;
    font-weight: 600;
}

/* Мобильная адаптация для страницы профиля */
@media (max-width: 767.98px) {
    .profile-view .list-group-item:first-child {
        /*
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        */
    }

    .profile-view .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .profile-view .d-flex .badge {
        margin-top: 0.5rem;
        align-self: flex-start;
    }

    .profile-view .d-flex strong {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .profile-view h3 {
        font-size: 1.5rem;
    }

    .profile-view .badge {
        font-size: 0.8em;
        padding: 0.4em 0.6em;
    }

    .profile-view .list-group-item {
        padding: 0.75rem;
    }
}

/* Стили для страниц лайков */
.like-index-profile .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: box-shadow 0.2s ease-in-out;
}

.like-index-profile .card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.like-search .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.like-search .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.like-search .collapse.show {
    display: block !important;
}

.like-search .collapse:not(.show) {
    display: none !important;
}

/* Стили для страницы просмотра лайка */
.like-view .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: box-shadow 0.2s ease-in-out;
}

.like-view .card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.like-view .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.like-view .detail-view {
    margin: 0;
}

.like-view .detail-view th {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Мобильная адаптация для страниц лайков */
@media (max-width: 991.98px) {
    .like-index-profile .card {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .like-index-profile .card-body {
        padding: 0;
    }

    .like-search .card {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .like-search .card-body {
        padding: 1rem;
    }

    .like-view .card {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .like-view .card-body {
        padding: 0;
    }
}

@media (max-width: 575.98px) {
    .like-index-profile h1 {
        font-size: 1.5rem;
    }

    .like-search .card-body {
        padding: 0.75rem;
    }

    .like-view .p-3 {
        padding: 1rem !important;
    }
}

.current-tariff-container p {
    font-size: 1.2em;
    margin: 5px 0;
    color: #856404;
}

.tariff-content {

    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    padding: 10px;
    justify-content: center;
}

.df {
    display: flex;
}

.div-tariff {
    font-weight: bold;
}

.tariff-block .btn-success {
    width: 100%;
}

.tariff-block div {
    margin-right: 0px;
    display: block;
    text-align: center;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.countdown {
    background-color: #fff;
    padding: 17px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    font-size: 20px;
}

.discount-notice {
    background-color: #e7f3fe;
    color: #31708f;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#timer .timer {
    font-size: 1.5em;
    margin: 10px 0;
}

#message {
    font-size: 1.2em;
}

html.h-100 {
    height: max-content !important;
}

.profile-view {
    overflow: hidden;
}

body .btn {
    border-radius: 0.4rem;
}

@media (max-width: 992px) {
    .countdown {
        font-size: 16px;
    }

    #timer .timer {
        font-size: 1.2em;
        font-weight: bold;
    }

    .text-mobile span {
        display: block;
    }

    .text-mobile {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .rows-card {
        flex-direction: column-reverse;
    }

    .active-block-t3 strong span {
        display: block;
    }

    .video_block_iframe {
        width: 100%;
    }

    .table.table-hover tr {}

    .table.table-hover td {}
}

@media (max-width: 480px) {
    .video_block_iframe {
        width: 100%;
        height: 200px;
    }

    .like-index {
        overflow-x: scroll;
        max-width: 340px;
    }
}

.title-block-filter {
    background: #9bffc4;
    padding: 12px;
}

.title-block-filter .form-check-label {
    font-size: 18px;
    font-weight: bold;
}



.field-profile-status .form-check-label {
    font-size: 20px;
    font-weight: bold;
    color: green;
    margin-top: -5px;
}

table {
    border-radius: 10px;
    overflow: hidden;
}

.table-plans th,
.table-plans td {
    text-align: center;
}

.table-plans thead {
    background: linear-gradient(to right, #667eea, #764ba2);
    color: white;
}

.table-plans tbody tr:nth-child(odd) {
    background-color: #f3f4f6;
}

.table-plans tbody tr:hover {
    background-color: #e2e8f0;
    transition: background-color 0.3s;
}

table.table-plans {
    width: 100%;
}

.form-check-input {
    border: 3px solid;
    padding: 6px;
}

.btn.active {
    background: green;
    color: #fff;
}

.btn-blue {
    background-color: #2563eb;
    /* насыщенный синий */
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.16);
    transition: background 0.2s;
    display: block;
    margin: 0 auto;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}


.btn-blue:hover {
    background-color: #1d4ed8;
    /* темнее при наведении */
    text-decoration: none;
}


/* Сбрасываем квадратную форму */
.btn-birthday {
    width: 100%;
    /* УБРАНО: aspect-ratio: 1 / 1; */
    min-height: 52px;          /* невысокая прямоугольная */
    padding: 10px 16px;        /* комфортные отступы */
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    display: flex;             /* горизонтально: иконка + текст */
    align-items: center;
    justify-content: center;
    gap: 8px;                  /* расстояние между иконкой и текстом */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform .15s, box-shadow .15s;
}

/* Иконка без нижнего отступа и поменьше */
.btn-birthday i {
    font-size: 20px;
    margin-bottom: 0;
    line-height: 1;
}

/* Текст одной строкой, при необходимости переносится */
.btn-birthday span {
    font-size: 14px;
    line-height: 1.2;
    display: inline-block;
}

/* Лёгкая анимация наведения */
.btn-birthday:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* Опционально: на очень узких экранах чуть выше для удобства тапа */
@media (max-width: 360px) {
    .btn-birthday { min-height: 56px; }
}


#previewImg {
    max-width: 150px;
}