/* css/style.css - Estilos comunes */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background: #fff;
    color: #212529;
}

.site-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.header-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.footer {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.btn {
    padding: 10px 20px;
    margin: 0 5px 5px 0;
    background: #50a494;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
}

.btn-success {
    background: #f97316;
}

.btn-warning {
    background: #ffc107;
    color: black;
}

.btn-danger {
    background: #dc3545;
}

.page-nav,
.week-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 20px 0;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
    cursor: pointer;
}

.meal-card,
.activity-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

select,
input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
input[type="time"] {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background: white;
}

input[type="date"],
input[type="time"] {
    padding: 12px 10px;
    margin: 5px 2px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    min-height: 48px;
    width: 160px;
}

input[type="date"]:focus,
input[type="time"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
}

.meal-item {
    padding: 12px;
    background: white;
    margin: 8px 0;
    border-radius: 6px;
    border-left: 4px solid #50a494;
}

.day-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.day-card:hover,
.week-grid .day-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.day-header {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}

.day-score {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.verde {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
}

.amarillo {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
}

.rojo {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #ffffff 100%);
}

.gris {
    border-color: #dee2e6;
    background: #f8f9fa;
}

.activity-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    margin-top: 5px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 24px 0;
    background: #e9ecef;
    padding: 20px;
    border-radius: 8px;
}

.stat-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #50a494;
    line-height: 1;
    margin-bottom: 6px;
}

/* Colores por calidad en comidas */
.cantidad-muy_saludable {
    border-left: 6px solid #28a745 !important;
    box-shadow: inset -8px 0 0 #d4edda !important;
}

.cantidad-regular {
    border-left: 6px solid #ffc107 !important;
    box-shadow: inset -8px 0 0 #fff3cd !important;
}

.cantidad-no_saludable {
    border-left: 6px solid #dc3545 !important;
    box-shadow: inset -8px 0 0 #f8d7da !important;
}

/* Iconos cantidad */
.icono-cantidad {
    font-size: 20px;
    margin-right: 10px;
    display: inline-block;
    width: 28px;
    text-align: center;
    font-weight: bold;
}

.icono-menos {
    color: #17a2b8;
    text-shadow: 0 0 4px rgba(23, 162, 184, 0.5);
}

.icono-justo {
    color: #28a745;
    text-shadow: 0 0 4px rgba(40, 167, 69, 0.5);
}

.icono-mas {
    color: #ffc107;
    text-shadow: 0 0 4px rgba(255, 193, 7, 0.7);
}

.day-details {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 200px; }
}

/* Calendario mensual */
.month-calendar {
    margin-top: 24px;
}

.month-calendar-head,
.month-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.month-calendar-head {
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.month-day {
    min-height: 96px;
    padding: 10px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.month-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.month-day.empty {
    background: transparent;
    border: none;
    box-shadow: none;
}

.month-day-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.month-day-number {
    font-weight: 700;
    font-size: 18px;
}

.month-day-score {
    font-weight: 700;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
}

.month-day-meals {
    font-size: 13px;
    color: #444;
}

.month-day.verde {
    background: #dff4df;
}

.month-day.amarillo {
    background: #fff3cd;
}

.month-day.rojo {
    background: #ffe5e5;
}

.month-day.gris {
    background: #f1f3f5;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .brand {
        flex: 1;
    }

    .header-menu {
        order: 2;
    }

    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .header-nav .btn {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
        font-size: 13px;
        margin: 0;
    }

    .brand-logo {
        max-height: 32px;
        width: auto;
    }
	
    .month-calendar-head,
    .month-calendar-grid {
        gap: 6px;
    }



    .month-day-number {
        font-size: 16px;
    }

    .month-day-meals {
        font-size: 12px;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    input[type="date"],
    input[type="time"] {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 12px;
    }

    .month-calendar-head {
        font-size: 12px;
    }

    .month-day {
        min-height: 68px;
    }

    .month-day-score {
        font-size: 12px;
        padding: 3px 6px;
    }
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.auth-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.auth-subtitle {
    margin-top: 0;
    margin-bottom: 20px;
    color: #6c757d;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-field input {
    margin: 0;
    width: 100%;
}

.auth-form .btn {
    width: 100%;
    margin: 6px 0 0;
}

.auth-links {
    margin-top: 18px;
    text-align: center;
    color: #6c757d;
}

.auth-links a,
.alert-success a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover,
.alert-success a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    color: #842029;
}

.alert-success {
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    color: #0f5132;
}

@media (max-width: 600px) {
    .auth-card {
        padding: 18px;
    }

    .auth-wrapper {
        padding: 20px 0;
    }
}

.form-field input {
    margin: 0;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d6dbe3;
    border-radius: 10px;
    font-size: 16px;
    background: #f8fafc;
    color: #212529;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-field input::placeholder {
    color: #9aa4b2;
}

.form-field input:hover {
    background: #ffffff;
    border-color: #c5ced8;
}

.form-field input:focus {
    outline: none;
    background: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-weight: 600;
    font-size: 14px;
    color: #343a40;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    height: auto;
    max-height: 70px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .brand {
        justify-content: center;
        width: 100%;
    }

    .brand-logo {
        max-height: 42px;
        max-width: 190px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        max-height: 36px;
        max-width: 170px;
    }
}

.info-hero {
    margin: 10px 0 30px;
}

.info-section {
    margin: 30px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.info-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
}

.info-card h2,
.info-card h3,
.info-card h4 {
    margin-top: 0;
}

.info-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .info-card {
        padding: 18px;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d6dbe3;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: #f8fafc;
    color: #212529;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}


.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.page-intro {
    margin-bottom: 20px;
    color: #666;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 240px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.friend-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

.friend-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #e8f7e8;
    color: #23623a;
}

.alert-error {
    background: #fdeaea;
    color: #8a1f1f;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3cd;
    color: #856404;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .friend-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .friend-actions {
        width: 100%;
    }
}

.page-intro {
    margin-bottom: 20px;
    color: #666;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 240px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.friend-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

.friend-meta {
    line-height: 1.4;
}

.friend-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #e8f7e8;
    color: #23623a;
}

.alert-error {
    background: #fdeaea;
    color: #8a1f1f;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3cd;
    color: #856404;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .friend-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .friend-actions {
        width: 100%;
    }
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-block,
.setting-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

.radio-option input,
.checkbox-option input {
    transform: scale(1.1);
}

.form-actions {
    margin-top: 10px;
}

.social-toolbar-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feed-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.feed-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.feed-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
}

.feed-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-meta {
    color: #6c757d;
    font-size: 13px;
}

.feed-type-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #345;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.feed-title {
    margin: 0 0 10px;
    font-size: 20px;
}

.feed-body {
    margin-bottom: 16px;
    color: #444;
    line-height: 1.6;
}

.feed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.feed-stat {
    padding: 12px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.feed-stat-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.feed-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state-card {
    text-align: center;
}

.empty-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .feed-card-header {
        flex-direction: column;
    }
}

.share-week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.share-week-range {
    font-size: 16px;
    color: #343a40;
}

.share-preview-stats {
    margin-top: 10px;
}

.share-week-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 600;
    color: #343a40;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.form-field textarea {
    resize: vertical;
    min-height: 110px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #7aa7ff;
    box-shadow: 0 0 0 3px rgba(122, 167, 255, 0.18);
}

@media (max-width: 700px) {
    .share-week-nav {
        justify-content: flex-start;
    }
}

.reaction-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.reaction-form {
    margin: 0;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    background: #f8f9fa;
    color: #495057;
    font: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reaction-btn:hover {
    background: #eef2f6;
    border-color: #cfd6dd;
}

.reaction-btn.is-active {
    background: #e7f1ff;
    border-color: #9ec5fe;
    color: #0b5ed7;
}

.reaction-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    font-size: 12px;
    font-weight: 600;
}

.comments-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f1f3f5;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 13px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 12px;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    color: #6c757d;
}

.comment-body {
    color: #343a40;
    line-height: 1.5;
    white-space: pre-wrap;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    resize: vertical;
    min-height: 72px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #7aa7ff;
    box-shadow: 0 0 0 3px rgba(122, 167, 255, 0.18);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
}

.comments-empty,
.comments-disabled {
    color: #6c757d;
    font-size: 14px;
}

.comment-delete-form {
    margin-top: 8px;
}

.comment-delete-btn {
    background: none;
    border: none;
    padding: 0;
    color: #dc3545;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.comment-delete-btn:hover {
    color: #b02a37;
}

.post-owner-actions {
    margin-top: 12px;
    margin-bottom: 10px;
}

.post-delete-btn {
    background: none;
    border: none;
    padding: 0;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.post-delete-btn:hover {
    color: #b02a37;
}

.post-owner-actions,
.comment-owner-actions,
.inline-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.post-owner-actions {
    margin-top: 12px;
    margin-bottom: 10px;
}

.post-edit-btn,
.comment-edit-btn {
    color: #0d6efd;
    text-decoration: underline;
    font-size: 14px;
}

.post-delete-btn,
.comment-delete-btn {
    background: none;
    border: none;
    padding: 0;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.post-delete-btn:hover,
.comment-delete-btn:hover {
    color: #b02a37;
}

.edit-post-form,
.comment-edit-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
}

.btn-light {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
}

.btn-light:hover {
    background: #e9ecef;
}

.edited-badge {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.comments-toggle {
    width: 100%;
    text-align: left;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font: inherit;
    color: #343a40;
    margin-bottom: 12px;
}

.comments-toggle:hover {
    background: #f1f3f5;
}

.comments-region[hidden] {
    display: none !important;
}

.edit-modal {
    width: min(680px, calc(100% - 24px));
    border: none;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.edit-modal::backdrop {
    background: rgba(0,0,0,0.45);
}

.modal-close-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.modal-close-btn {
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
}

.modal-close-btn:hover {
    color: #212529;
}

.post-owner-actions,
.comment-owner-actions,
.inline-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.post-owner-actions {
    margin-top: 12px;
    margin-bottom: 10px;
}

.post-edit-btn,
.comment-edit-btn {
    background: none;
    border: none;
    padding: 0;
    color: #0d6efd;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
}

.post-delete-btn,
.comment-delete-btn {
    background: none;
    border: none;
    padding: 0;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.post-delete-btn:hover,
.comment-delete-btn:hover {
    color: #b02a37;
}

.edit-post-form,
.comment-edit-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-light {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.btn-light:hover {
    background: #e9ecef;
}


.edited-badge {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.comments-toggle {
    width: 100%;
    text-align: left;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font: inherit;
    color: #343a40;
    margin-bottom: 12px;
}

.comments-toggle:hover {
    background: #f1f3f5;
}

.comments-region[hidden] {
    display: none !important;
}

.edit-modal {
    width: min(680px, calc(100% - 24px));
    border: none;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.edit-modal::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.modal-close-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.modal-close-btn {
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
}

.modal-close-btn:hover {
    color: #212529;
}

.post-owner-actions,
.comment-owner-actions,
.inline-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.post-owner-actions {
    margin-top: 12px;
    margin-bottom: 10px;
}

.post-edit-btn,
.comment-edit-btn {
    background: none;
    border: none;
    padding: 0;
    color: #0d6efd;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
}

.post-delete-btn,
.comment-delete-btn {
    background: none;
    border: none;
    padding: 0;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.post-delete-btn:hover,
.comment-delete-btn:hover {
    color: #b02a37;
}

.edit-post-form,
.comment-edit-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-light {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.btn-light:hover {
    background: #e9ecef;
}

.pagination-nav {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
}

.pagination-link:hover {
    background: #f8f9fa;
}

.pagination-link.is-current {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    font-weight: 600;
}


.header-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.menu-toggle {
    min-width: 48px;
    padding: 10px 12px;
}

.menu-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
}

.menu-toggle-icon span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.header-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 8px;
    background: #fff;
    border: 1px solid #d9dee5;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.header-menu-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #2f3a48;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-menu-link:hover {
    background: #f3f5f7;
}

.header-menu-link.is-danger {
    color: #c0392b;
}

.header-menu-link.is-danger:hover {
    background: #fff1ef;
}

.landing-page.premium-landing {
    background:
        radial-gradient(circle at top left, rgba(93, 95, 239, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.07), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #f5f7fb 42%, #ffffff 100%);
    color: #0f172a;
}

.landing-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.landing-hero {
    padding: 84px 20px 56px;
}

.landing-hero__inner {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: center;
}

.landing-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
}

.landing-badge svg,
.section-kicker svg,
.landing-microcopy svg,
.feature-icon svg,
.mini-card__icon svg,
.preview-card__icon svg,
.preview-social__header svg,
.stat-chip svg,
.benefit-list svg,
.landing-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.9;
}

.landing-hero__content h1 {
    margin: 0 0 18px;
    font-size: 60px;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: #0f172a;
    max-width: 11ch;
}

.landing-lead,
.section-lead {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
    max-width: 680px;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    align-items: center;
}

.landing-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}

.landing-link:hover {
    color: #0f172a;
}

.landing-microcopy {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: 26px;
    color: #5b6677;
    font-size: 14px;
}

.landing-microcopy span,
.stat-chip,
.benefit-list li,
.preview-social__header span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.landing-hero__visual {
    display: flex;
    justify-content: center;
}

.premium-preview {
    width: 100%;
    max-width: 540px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow:
        0 12px 40px rgba(15, 23, 42, 0.06),
        0 28px 80px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.app-preview__topbar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.app-preview__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.app-preview__eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-preview__header h3 {
    margin: 0;
    font-size: 26px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.score-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
    white-space: nowrap;
}

.preview-hero-chart {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #dbeafe;
}

.preview-chart__line {
    height: 2px;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #6366f1 0%, #14b8a6 100%);
    border-radius: 999px;
}

.preview-chart__bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 10px;
    height: 82px;
}

.preview-chart__bars span {
    display: block;
    border-radius: 999px 999px 12px 12px;
    background: linear-gradient(180deg, #818cf8 0%, #22c55e 100%);
    opacity: 0.88;
}

.preview-chart__bars span:nth-child(1) { height: 34px; }
.preview-chart__bars span:nth-child(2) { height: 52px; }
.preview-chart__bars span:nth-child(3) { height: 44px; }
.preview-chart__bars span:nth-child(4) { height: 70px; }
.preview-chart__bars span:nth-child(5) { height: 58px; }
.preview-chart__bars span:nth-child(6) { height: 76px; }
.preview-chart__bars span:nth-child(7) { height: 62px; }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.preview-card {
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.preview-card--highlight {
    background: linear-gradient(135deg, #f6f8ff 0%, #fbfdff 100%);
    border-color: #c7d2fe;
}

.preview-card__icon,
.feature-icon,
.mini-card__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.preview-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}

.preview-card strong {
    display: block;
    font-size: 30px;
    line-height: 1.05;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.preview-card small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    line-height: 1.5;
}

.preview-social {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.preview-social__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1e293b;
}

.social-tag {
    padding: 5px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.preview-social p {
    margin: 0;
    color: #5f6b7a;
    line-height: 1.6;
}

.landing-section {
    padding: 36px 20px 68px;
}

.landing-section--intro {
    padding-top: 8px;
}

.landing-section__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.landing-section h2,
.split-card h2,
.cta-panel h2 {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.stat-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.stat-chip {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(226,232,240,0.95);
    color: #475569;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.premium-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 26px;
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(226,232,240,0.95);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.feature-card p,
.split-card p,
.mini-card p,
.cta-panel p {
    margin: 0;
    color: #5f6b7a;
    line-height: 1.75;
}

.landing-section--soft {
    background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(248,250,252,0.9) 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.premium-split {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 22px;
    align-items: stretch;
}

.split-card,
.mini-card,
.cta-panel {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.split-card {
    padding: 34px;
}

.benefit-list {
    list-style: none;
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 22px 0 24px;
}

.benefit-list li {
    color: #334155;
    font-weight: 500;
}

.benefit-list svg {
    color: #16a34a;
}

.mini-stack {
    display: grid;
    gap: 16px;
}

.mini-card {
    padding: 24px;
}

.mini-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    color: #0f172a;
}

.premium-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
}

.cta-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .landing-hero__inner,
    .premium-split {
        grid-template-columns: 1fr;
    }

    .premium-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .premium-cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-panel__actions {
        justify-content: flex-start;
    }

    .landing-hero__content h1 {
        max-width: 14ch;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 52px 16px 28px;
    }

    .landing-section {
        padding: 22px 16px 44px;
    }

    .premium-feature-grid,
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero__content h1 {
        font-size: 40px;
        max-width: 100%;
    }

    .section-heading h2,
    .landing-section h2,
    .split-card h2,
    .cta-panel h2 {
        font-size: 31px;
    }

    .landing-lead,
    .section-lead {
        font-size: 16px;
    }

    .premium-preview {
        max-width: 100%;
    }

    .score-pill {
        font-size: 14px;
    }

    .stat-strip {
        justify-content: flex-start;
    }
}

.footer {
    text-align: center;
}

.footer-legal-links {
    margin-top: 8px;
    font-size: 0.95rem;
}

.footer-legal-links a {
    color: inherit;
    text-decoration: none;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus {
    text-decoration: underline;
}

.cookie-modal[hidden],
.cookie-preferences[hidden] {
    display: none;
}
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.cookie-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.cookie-dialog {
    position: relative;
    width: min(calc(100% - 2rem), 560px);
    margin: 8vh auto 0;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #dde5ee;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    padding: 1.5rem;
}
.cookie-dialog h2 {
    margin: 0 0 .75rem;
    font-size: 1.4rem;
    line-height: 1.2;
}
.cookie-dialog p {
    margin: 0 0 1rem;
    line-height: 1.6;
}
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}
.cookie-actions--stack {
    margin-top: 1rem;
}
.cookie-btn {
    appearance: none;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    padding: .85rem 1.1rem;
    font: inherit;
    cursor: pointer;
    min-width: 140px;
}
.cookie-btn--primary {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}
.cookie-btn--secondary {
    background: #fff;
    color: #1f2937;
}
.cookie-links {
    margin-top: 1rem;
    font-size: .95rem;
}
.cookie-links a {
    color: #0f5f8c;
}
.cookie-preferences {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.cookie-option input {
    margin-top: .25rem;
}
@media (max-width: 640px) {
    .cookie-dialog {
        margin-top: 4vh;
        padding: 1.2rem;
        border-radius: 14px;
    }
    .cookie-actions {
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
    }
}

.auth-card-register .field-help {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-card-register .consent-group {
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #f9fafb;
}

.auth-card-register .consent-group legend {
    padding: 0 0.35rem;
    font-weight: 700;
    color: #111827;
}

.auth-card-register .consent-option {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    line-height: 1.5;
}

.auth-card-register .consent-option:last-of-type {
    margin-bottom: 0.75rem;
}

.auth-card-register .consent-option:hover {
    border-color: #c7d2fe;
    background: #f8faff;
}

.auth-card-register .consent-option input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.18rem;
    flex: 0 0 auto;
    accent-color: #4f46e5;
}

.auth-card-register .consent-option-required {
    border-color: #c7d2fe;
    background: #eef2ff;
}

.auth-card-register .form-legal-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #4b5563;
}

.auth-card-register input.error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.auth-card-register .consent-option.error-box {
    border-color: #dc2626 !important;
    background: #fef2f2;
}

.profile-wrapper {
    width: min(1100px, calc(100% - 2rem));
    margin: 2rem auto 3rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
}

.profile-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.profile-card-head {
    margin-bottom: 1.25rem;
}

.profile-card-head h1,
.profile-card-head h2 {
    margin: 0 0 0.35rem;
    color: #111827;
}

.profile-card-head p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
}

.profile-avatar-preview img,
.profile-avatar-placeholder {
    width: 72px;
    height: 72px; 
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-preview img {
    border: 3px solid #e5e7eb;
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.4rem;
}

.profile-summary-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-summary-text strong {
    color: #111827;
    font-size: 1.05rem;
}

.profile-summary-text span,
.profile-summary-text small {
    color: #6b7280;
}

.profile-form .field-help {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.profile-form textarea {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 860px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.checkbox-inline input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    accent-color: #4f46e5;
    cursor: pointer;
}

.checkbox-inline label {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #374151;
    cursor: pointer;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
    width: 100%;
}

.menu-toggle {
    padding: 8px 12px;
    font-size: 22px;
    line-height: 1;
    background: transparent;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: unset;
}

.menu-toggle:hover {
    background: #f5f5f5;
}

.menu-toggle-icon {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .month-calendar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .month-calendar-head,
    .month-calendar-grid {
        min-width: 560px;
    } 

    .month-day {
        min-height: 64px;
        padding: 6px;
        border-radius: 10px;
    }

    .month-day-number {
        font-size: 14px;
    }

    .month-day-score {
        font-size: 12px;
        padding: 2px 5px;
    }

    .month-day-meals {
        font-size: 11px;
    }
}

.month-day.today {
    border: 3px solid #50a494;
}

.mensaje-dia {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0fdf8;
    border: 1px solid #50a494;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.mensaje-dia-icono {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.mensaje-dia p {
    margin: 0;
    color: #1a5c52;
    font-size: 15px;
    line-height: 1.5;
}

.score-dia {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.score-dia-numero {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 20px;
    border-radius: 16px;
}

.score-dia-numero.verde {
    background: #dff4df;
    color: #166534;
}

.score-dia-numero.amarillo {
    background: #fff3cd;
    color: #92400e;
}

.score-dia-numero.rojo {
    background: #ffe5e5;
    color: #991b1b;
}

.score-dia-label {
    font-size: 24px;
    color: #888;
    font-weight: 500;
}

.score-ayuda {
    font-size: 20px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
    margin-left: 4px;
}

.score-ayuda:hover {
    opacity: 1;
}

.legal-page--calendar {
    padding-bottom: 3rem;
}
.legal-container {
    width: min(100% - 2rem, 960px);
    margin: 0 auto;
}
.legal-hero {
    padding: 2.5rem 0 1rem;
}
.legal-kicker {
    display: inline-block;
    margin-bottom: .75rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #eef6ff;
    color: #0f5f8c;
    font-size: .92rem;
    font-weight: 700;
}
.legal-hero h1 {
    margin: 0 0 .75rem;
    line-height: 1.1;
    font-size: clamp(2rem, 4vw, 3rem);
}
.legal-intro {
    max-width: 68ch;
    color: #5b6676;
    font-size: 1.05rem;
}
.legal-section {
    padding: 0 0 2rem;
}
.legal-card {
    background: #fff;
    border: 1px solid #dde5ee;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 2rem;
}
.legal-card h2 {
    margin: 1.9rem 0 .8rem;
    font-size: 1.25rem;
    line-height: 1.2;
}
.legal-card p {
    margin: 0 0 1rem;
    line-height: 1.72;
}
.legal-callout {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #b8e6dd;
    background: #e8f7f4;
    color: #11443f;
}
@media (max-width: 640px) {
    .legal-card {
        padding: 1.35rem;
        border-radius: 14px;
    }
}
@media (max-width: 768px) {
    .legal-hero {
        padding: 1.5rem 0 0.5rem;
    }

    .legal-hero h1 {
        font-size: 1.8rem;
    }

    .legal-intro {
        font-size: 0.95rem;
    }

	.legal-card {
		padding: 0.75rem;
        border-radius: 12px;
    }

    .legal-card h2 {
        font-size: 1.1rem;
        margin-top: 1.4rem;
    }

    .legal-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .legal-callout {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

	.legal-container {
		width: 100%;
		padding: 0 0.5rem;
	}
}