/* AYAT shared UI — sections, actions, cards (profile + sitewide) */

.ayat-section,
.achievement-section {
    margin-top: 1.75rem;
}

.ayat-section__header,
.achievement-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8ecf0;
}

.ayat-section__title,
.achievement-section__title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.3;
}

.ayat-section__title a,
.achievement-section__title a {
    color: #1a1d21;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ayat-section__title a:hover,
.achievement-section__title a:hover {
    color: var(--primary, #2563eb);
}

.ayat-section__count,
.achievement-section__count {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-left: 0.35rem;
}

.ayat-section__count a,
.achievement-section__count a {
    color: #6b7280;
    text-decoration: none;
}

.ayat-section__count a:hover,
.achievement-section__count a:hover {
    color: var(--primary, #2563eb);
    text-decoration: underline;
}

.ayat-section__empty,
.achievement-section__empty {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
    padding: 0.25rem 0 0.125rem;
}

.ayat-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ayat-action,
.achievement-section__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--primary, #2563eb);
    background: #f0f7ff;
    border: 1px solid #cfe3fc;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.ayat-action:hover,
.achievement-section__action:hover {
    background: #e0efff;
    border-color: #93c5fd;
    color: #1d4ed8;
    text-decoration: none;
    transform: translateY(-1px);
}

.ayat-action--danger {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.ayat-action--danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.ayat-action--muted {
    color: #4b5563;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.ayat-action--muted:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.ayat-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8ecf0;
}

.ayat-page-header__main {
    min-width: 0;
}

.ayat-page-header__title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.2rem;
    line-height: 1.3;
    color: #1a1d21;
}

.ayat-page-header__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.ayat-stats {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ayat-stats__title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8ecf0;
    color: #1a1d21;
}

.ayat-stats__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.42rem 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    border-bottom: 1px solid #f1f3f5;
}

.ayat-stats__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ayat-stats__label {
    color: #6b7280;
    flex: 1 1 auto;
}

.ayat-stats__value {
    color: #1f2937;
    font-weight: 600;
    text-align: right;
    flex: 0 1 55%;
}

.ayat-card {
    height: 100%;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ayat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border-color: #cfe3fc;
}

.ayat-card__media img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.ayat-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.ayat-card__title a,
.ayat-card__title a:hover {
    color: #1f2937 !important;
    text-decoration: none;
}

.ayat-card__excerpt {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.ayat-card__excerpt a,
.ayat-card__excerpt a:hover {
    color: #6b7280 !important;
    text-decoration: none;
}

.ayat-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
    font-size: 0.75rem;
    color: #9ca3af;
    padding-top: 0.65rem;
    border-top: 1px solid #eef0f2;
}

.ayat-card__footer {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.ayat-card__footer img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.ayat-card__footer a {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
}

.ayat-card__footer a:hover {
    color: var(--primary, #2563eb);
}

.ayat-card--website-update {
    border-top: 3px solid goldenrod;
}

.ayat-card__badge-line {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: -0.15rem 0 0.65rem;
}

.ayat-card__badge-line a {
    text-decoration: none;
}

.ayat-card__badge-line .website-update-badge {
    font-weight: 600;
    color: goldenrod;
}

.ayat-card__mature {
    color: #dc2626;
    font-weight: 500;
}

.ayat-card__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    vertical-align: middle;
}

.ayat-card__status--public {
    background: #dcfce7;
    color: #166534;
}

.ayat-card__status--private {
    background: #f3f4f6;
    color: #4b5563;
}

.ayat-card__status:hover {
    opacity: 0.9;
}

.ayat-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    justify-content: flex-start;
    margin-top: 0.65rem;
    font-size: 0.75rem;
}

.ayat-card__actions a {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
}

.ayat-card__actions a:hover {
    color: var(--primary, #2563eb);
}

.ayat-card__actions span {
    color: #9ca3af;
}

.ayat-card__excerpt--muted {
    color: #9ca3af;
    font-style: italic;
}

.ayat-log-card__thumbs {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.ayat-log-card__thumbs img {
    flex: 1 1 0;
    min-width: 0;
    max-height: 4.5rem;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.ayat-card__actions .ml-auto {
    margin-left: auto;
}

.ayat-subsection-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    margin: 0 0 0.65rem;
    letter-spacing: -0.01em;
}

.ayat-list-item {
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #374151;
    background: #fafbfc;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
}

.ayat-list-item:last-child {
    margin-bottom: 0;
}

/* Forms & panels */

.ayat-form-panel {
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ayat-form-panel__header {
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid #e8ecf0;
}

.ayat-form-panel__title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    color: #1a1d21;
}

.ayat-form-panel__subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.25rem 0 0;
}

.ayat-form-panel__body {
    padding: 1.25rem;
}

.ayat-form-panel__header--danger {
    background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
    border-bottom-color: #fecaca;
}

.ayat-form-panel__header--danger .ayat-form-panel__title {
    color: #991b1b;
}

.ayat-field {
    margin-bottom: 1.1rem;
}

.ayat-field:last-child {
    margin-bottom: 0;
}

.ayat-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.ayat-label__hint {
    font-weight: 400;
    color: #9ca3af;
}

.ayat-input,
.ayat-textarea {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ayat-select {
    display: block;
    width: 100%;
    min-height: 2.625rem;
    padding: 0.55rem 2.25rem 0.55rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #1f2937;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ayat-select::-ms-expand {
    display: none;
}

.ayat-input:focus,
.ayat-select:focus,
.ayat-textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ayat-input::placeholder {
    color: #9ca3af;
}

.ayat-help {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #9ca3af;
    margin: 0.3rem 0 0;
}

.ayat-date-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.ayat-form-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eef0f2;
}

.ayat-form-actions--compact {
    justify-content: flex-start;
    margin-top: 0.75rem;
    padding-top: 0;
    border-top: none;
}

.ayat-form-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

.ayat-journal-form {
    margin-bottom: 2.5rem;
}

.ayat-form-panel {
    padding: 1.35rem 1.4rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ayat-form-panel .form-row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.ayat-form-section {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #eef0f2;
}

.ayat-form-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.ayat-form-section__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
    color: #1f2937;
}

.ayat-form-section__title .fa {
    color: #2563eb;
}

.ayat-form-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.ayat-field__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.ayat-field__control {
    border-radius: 10px !important;
    border-color: #e5e9ef !important;
}

.ayat-autosave-status {
    font-size: 0.75rem;
    color: #9ca3af;
}

.ayat-editor-wrap {
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ayat-editor-wrap .ql-toolbar {
    border: none !important;
    border-bottom: 1px solid #eef0f2 !important;
    background: #fafbfc;
}

.ayat-editor-wrap .ql-container {
    border: none !important;
    font-size: 0.9375rem;
}

.ayat-editor-wrap #editor-container,
.ayat-editor-wrap .ql-editor {
    min-height: 420px;
}

.ayat-prompt-field {
    margin-bottom: 0.85rem;
}

.ayat-prompt-field:last-child {
    margin-bottom: 0;
}

.ayat-prompt-field__question {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.35rem;
}

.ayat-prompt-field textarea {
    border-radius: 10px;
    border-color: #e5e9ef;
    font-size: 0.875rem;
}

.ayat-photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.ayat-photo-thumb {
    padding: 0.65rem;
    background: #fafbfc;
    border: 1px solid #eef0f2;
    border-radius: 10px;
}

.ayat-photo-thumb img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.45rem;
}

.ayat-photo-thumb__badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

.ayat-photo-thumb__delete {
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626 !important;
    text-decoration: none;
}

.ayat-photo-thumb__delete:hover {
    text-decoration: underline;
}

.ayat-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.ayat-toast-container {
    position: fixed;
    top: 5.5rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.ayat-toast {
    display: flex;
    align-items: center;
    min-width: 220px;
    max-width: 320px;
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ayat-toast--error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.ayat-toast--achievement {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.ayat-toast--level-up {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ayat-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.ayat-toast__content {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

@media (max-width: 991px) {
    .ayat-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ayat-photo-upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ayat-form-panel {
        padding: 1rem 1.05rem;
    }
}

/* Planner sub-nav (dashboard / prompts / settings) */

.ayat-planner-subnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #eef0f2;
}

.ayat-planner-subnav__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.ayat-planner-subnav__title a {
    color: #1f2937 !important;
    text-decoration: none;
}

.ayat-planner-subnav__title a:hover {
    color: #2563eb !important;
    text-decoration: none;
}

.ayat-planner-subnav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ayat-planner-subnav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb !important;
    background: #f0f7ff;
    border: 1px solid #cfe3fc;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ayat-planner-subnav__link:hover {
    background: #e0efff;
    border-color: #93c5fd;
    text-decoration: none;
}

.ayat-planner-subnav__link--active {
    color: #fff !important;
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
}

.ayat-planner-subnav__link--active:hover {
    color: #2563eb !important;
    background: #e0efff;
    border-color: #93c5fd;
}

/* Planner prompts */

.ayat-prompt-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ayat-prompt-card {
    padding: 1rem 1.1rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ayat-prompt-card--inactive {
    opacity: 0.92;
}

.ayat-prompt-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ayat-prompt-card__main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.ayat-prompt-card__rank {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
}

.ayat-prompt-card--inactive .ayat-prompt-card__rank {
    color: #6b7280;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.ayat-prompt-card__question {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: #1f2937;
    margin: 0;
}

.ayat-prompt-card__actions {
    flex-shrink: 0;
}

.ayat-prompt-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb !important;
    text-decoration: none;
}

.ayat-prompt-card__toggle:hover {
    text-decoration: underline;
}

.ayat-prompt-answers {
    margin-top: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: #fafbfc;
    border: 1px solid #eef0f2;
    border-radius: 8px;
}

.ayat-prompt-answers__item {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #eef0f2;
}

.ayat-prompt-answers__item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.ayat-prompt-answers__entry a {
    font-weight: 600;
    color: #1f2937 !important;
    text-decoration: none;
}

.ayat-prompt-answers__entry a:hover {
    color: #2563eb !important;
}

.ayat-prompt-answers__meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

.ayat-prompt-answers__text {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #374151;
    white-space: pre-wrap;
}

.ayat-bulk-edit {
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    background: #fafbfc;
    border: 1px solid #eef0f2;
    border-radius: 10px;
}

.ayat-bulk-edit textarea {
    border-radius: 10px;
    border-color: #e5e9ef;
    font-size: 0.8125rem;
    min-height: 8rem;
}

.ayat-bulk-edit__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.ayat-settings-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb !important;
    text-decoration: none;
}

.ayat-settings-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .ayat-prompt-card__head {
        flex-direction: column;
    }

    .ayat-prompt-card__actions {
        align-self: flex-end;
    }
}

.ayat-search-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.ayat-search-inline .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    border-radius: 8px !important;
}

.ayat-search-inline .btn {
    flex: 0 0 auto;
    width: auto !important;
    min-height: 0;
    padding: 0.3rem 0.85rem !important;
    font-size: 0.75rem;
}

.col-12 > .form-boder:has(.ayat-search-inline) {
    margin-bottom: 1.5rem;
}

.ayat-action--solid {
    color: #fff;
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    cursor: pointer;
}

.ayat-action--solid:hover {
    color: #fff;
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
}

button.ayat-action {
    font-family: inherit;
    line-height: inherit;
}

.ayat-alert {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.ayat-alert--danger {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.ayat-alert--warning {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.ayat-empty-panel {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ayat-empty-panel__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #1a1d21;
}

.ayat-empty-panel__text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1.25rem;
}

.ayat-list-link {
    display: block;
    padding: 1rem 1.1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ayat-list-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    border-color: #cfe3fc;
    text-decoration: none;
    color: inherit;
}

.ayat-list-link__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ayat-list-link__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #1f2937;
}

.ayat-list-link__meta {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
}

.ayat-list-link__date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.ayat-pill-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

/* Inbox / private messages */

.ayat-inbox {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    min-height: 32rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.ayat-inbox__sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eef0f2;
    background: #fafbfc;
}

.ayat-inbox__sidebar-head {
    padding: 0.85rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    border-bottom: 1px solid #eef0f2;
}

.ayat-inbox__contact {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151 !important;
    text-decoration: none;
    border-bottom: 1px solid #eef0f2;
    transition: background 0.15s ease, color 0.15s ease;
}

.ayat-inbox__contact:hover {
    background: #f0f7ff;
    color: #1d4ed8 !important;
    text-decoration: none;
}

.ayat-inbox__contact--active {
    background: #fff;
    color: #2563eb !important;
    box-shadow: inset 3px 0 0 #2563eb;
}

.ayat-inbox__contact-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ayat-inbox__sidebar-empty {
    padding: 1.25rem 1rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    line-height: 1.45;
}

.ayat-inbox__panel {
    display: flex;
    flex-direction: column;
    min-height: 32rem;
    min-width: 0;
}

.ayat-inbox__panel-header {
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid #eef0f2;
    background: #fff;
}

.ayat-inbox__panel-header a {
    color: #1f2937 !important;
    text-decoration: none;
}

.ayat-inbox__panel-header a:hover {
    color: #2563eb !important;
}

.ayat-inbox__messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.1rem;
    max-height: 28rem;
}

.ayat-inbox__message {
    max-width: 85%;
    margin-bottom: 0.85rem;
}

.ayat-inbox__message--received {
    margin-right: auto;
}

.ayat-inbox__message--sent {
    margin-left: auto;
    text-align: right;
}

.ayat-inbox__message-meta {
    font-size: 0.6875rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.ayat-inbox__message-body {
    display: inline-block;
    padding: 0.55rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    border-radius: 10px;
    text-align: left;
    word-break: break-word;
}

.ayat-inbox__message--received .ayat-inbox__message-body {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.ayat-inbox__message--sent .ayat-inbox__message-body {
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: 1px solid #2563eb;
}

.ayat-inbox__compose {
    padding: 0.85rem 1.1rem 1rem;
    border-top: 1px solid #eef0f2;
    background: #fff;
}

.ayat-inbox__compose-actions {
    justify-content: flex-end;
    margin-top: 0.65rem;
}

.ayat-inbox__textarea {
    min-height: 4.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    border-radius: 8px !important;
    border-color: #e5e7eb;
    resize: vertical;
}

.ayat-inbox__textarea--tall {
    min-height: 16rem;
}

.ayat-inbox-compose-card {
    padding: 1.25rem 1.35rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ayat-inbox__panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.ayat-inbox__panel-empty--inline {
    padding: 2rem 0;
}

.ayat-inbox__panel-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.35rem;
}

.ayat-inbox__panel-empty-text {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
    max-width: 22rem;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .ayat-inbox {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ayat-inbox__sidebar {
        border-right: none;
        border-bottom: 1px solid #eef0f2;
        max-height: 11rem;
        overflow-y: auto;
    }

    .ayat-inbox__panel {
        min-height: 24rem;
    }

    .ayat-inbox__messages {
        max-height: 18rem;
    }

    .ayat-inbox__message {
        max-width: 92%;
    }
}

/* Favorites, leaderboards, log cards */

.ayat-favorite-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    height: 100%;
}

.ayat-favorite-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border-color: #cfe3fc;
    text-decoration: none;
    color: inherit;
}

.ayat-favorite-card__star {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 999px;
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.ayat-favorite-card--journal .ayat-favorite-card__star {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.ayat-favorite-card--photo .ayat-favorite-card__star {
    background: #faf5ff;
    color: #9333ea;
    border-color: #e9d5ff;
}

.ayat-favorite-card--log .ayat-favorite-card__star {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.ayat-favorite-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ayat-favorite-card__type {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}

.ayat-favorite-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ayat-favorite-card__meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

.ayat-favorite-card__arrow {
    flex-shrink: 0;
    font-size: 1rem;
    color: #cbd5e1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.ayat-favorite-card:hover .ayat-favorite-card__arrow {
    color: #2563eb;
    transform: translateX(2px);
}

.ayat-favorite-empty__icon {
    font-size: 2rem;
    line-height: 1;
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.ayat-profile-todo-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    height: 100%;
}

.ayat-profile-todo-card--active {
    border-left: 3px solid #3b82f6;
}

.ayat-profile-todo-card--completed {
    border-left: 3px solid #22c55e;
}

.ayat-profile-todo-card__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.95rem;
    line-height: 1;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.ayat-profile-todo-card--completed .ayat-profile-todo-card__icon {
    background: #ecfdf5;
    color: #16a34a;
    border-color: #bbf7d0;
}

.ayat-profile-todo-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.ayat-profile-todo-card__title {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
}

.ayat-profile-todo-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
}

.ayat-profile-todo-card__meta {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.4;
}

.ayat-profile-todo-card__excerpt {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.45;
}

.ayat-profile-todo-empty__icon {
    font-size: 2rem;
    line-height: 1;
    color: #3b82f6;
    margin-bottom: 0.75rem;
}

.ayat-leaderboard {
    padding: 1.1rem 1.25rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ayat-leaderboard__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #eef0f2;
}

.ayat-leaderboard__icon {
    color: #f59e0b;
    font-size: 1rem;
}

.ayat-leaderboard__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.ayat-leaderboard__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem 1.25rem;
}

.ayat-leaderboard__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.ayat-leaderboard__rank {
    flex-shrink: 0;
    width: 1.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
}

.ayat-leaderboard__name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: #374151 !important;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ayat-leaderboard__name:hover {
    color: #2563eb !important;
}

.ayat-leaderboard__count {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ayat-leaderboard__empty {
    font-size: 0.8125rem;
    color: #9ca3af;
    text-align: center;
    margin: 0;
    padding: 0.5rem 0;
}

.ayat-pagination-wrap {
    padding: 1.25rem 0 1.75rem;
}

/* Public planner */

.ayat-planner-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #eef0f2;
}

.ayat-planner-nav__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.ayat-planner-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ayat-planner-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb !important;
    background: #f0f7ff;
    border: 1px solid #cfe3fc;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ayat-planner-nav__link:hover {
    background: #e0efff;
    border-color: #93c5fd;
    text-decoration: none;
}

.ayat-planner-nav__link--active {
    color: #fff !important;
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
}

.ayat-planner-nav__link--active:hover {
    color: #2563eb !important;
    background: #e0efff;
    border-color: #93c5fd;
}

.ayat-planner-user-card {
    height: 100%;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.ayat-planner-user-card__head {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #eef0f2;
    background: #fff;
}

.ayat-planner-user-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    color: #1f2937;
}

.ayat-planner-user-card__name a {
    color: #1f2937 !important;
    text-decoration: none;
}

.ayat-planner-user-card__name a:hover {
    color: #2563eb !important;
}

.ayat-planner-user-card__count {
    font-size: 0.75rem;
    color: #9ca3af;
}

.ayat-planner-user-card__body {
    padding: 0.85rem 1.1rem 1rem;
}

.ayat-planner-item {
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid #eef0f2;
}

.ayat-planner-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.ayat-planner-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.ayat-planner-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: #1f2937;
}

.ayat-planner-item__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
}

.ayat-planner-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
}

.ayat-planner-badge--muted {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}

.ayat-planner-badge--primary {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.ayat-planner-badge--info {
    background: #ecfeff;
    color: #0e7490;
    border-color: #a5f3fc;
}

.ayat-planner-badge--warning {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.ayat-planner-badge--danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.ayat-planner-badge--success {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbf7d0;
}

.ayat-planner-item__stats {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.45;
}

.ayat-planner-item__toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ayat-planner-item__toggle:hover {
    color: #2563eb;
    background: #f0f7ff;
    border-color: #cfe3fc;
}

.ayat-planner-item__toggle .fa-chevron-down {
    transition: transform 0.2s ease;
}

.ayat-planner-item__toggle .fa-rotate-180 {
    transform: rotate(180deg);
}

.ayat-planner-item__details {
    margin-top: 0.65rem;
    padding: 0.75rem 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #374151;
    background: #fafbfc;
    border: 1px solid #eef0f2;
    border-radius: 8px;
}

.ayat-planner-item__details p {
    margin-bottom: 0.45rem;
}

.ayat-planner-item__details p:last-child {
    margin-bottom: 0;
}

.ayat-planner-progress {
    height: 0.45rem;
    margin-top: 0.35rem;
    background: #eef0f2;
    border-radius: 999px;
    overflow: hidden;
}

.ayat-planner-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 999px;
}

.ayat-planner-progress__bar--success {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.ayat-planner-progress__bar--danger {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Log detail pages */

.ayat-detail-layout {
    margin-bottom: 2rem;
}

.ayat-detail-layout__main > * + * {
    margin-top: 1rem;
}

.ayat-detail-content {
    padding: 1.25rem 1.35rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ayat-detail-sidebar {
    padding: 1rem 1.1rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #374151;
}

.ayat-detail-sidebar a {
    color: #2563eb !important;
    text-decoration: none;
    font-weight: 500;
}

.ayat-detail-sidebar a:hover {
    text-decoration: underline;
}

.ayat-detail-sidebar__row {
    padding: 0.35rem 0;
    border-bottom: 1px solid #eef0f2;
}

.ayat-detail-sidebar__row:last-child {
    border-bottom: none;
}

.ayat-log-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-top: 1rem;
}

.ayat-log-images img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.ayat-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.ayat-log-images-upload {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* Journal entry detail */

.ayat-detail-panel {
    padding: 1.15rem 1.25rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ayat-detail-panel__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
    color: #1f2937;
}

.ayat-detail-panel__title .fa {
    color: #2563eb;
}

.ayat-detail-panel__note {
    font-size: 0.75rem;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 0.35rem;
}

.ayat-detail-panel__note a {
    color: #2563eb !important;
}

.ayat-prompt-item {
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid #eef0f2;
}

.ayat-prompt-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.ayat-prompt-item__question {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
    margin: 0 0 0.4rem;
}

.ayat-prompt-item__answer {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #374151;
    margin: 0;
}

.ayat-journal-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.ayat-journal-photos img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.ayat-activity-group {
    margin-bottom: 1rem;
}

.ayat-activity-group:last-child {
    margin-bottom: 0;
}

.ayat-activity-group__title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #374151;
}

.ayat-activity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

a.ayat-planner-badge {
    text-decoration: none;
}

a.ayat-planner-badge:hover {
    filter: brightness(0.97);
    text-decoration: none;
}

.ayat-comments-section {
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef0f2;
}

.ayat-comments-section__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1f2937;
}

.ayat-comment {
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-radius: 10px;
}

.ayat-comment__author {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
}

.ayat-comment__author a {
    color: #1f2937 !important;
    text-decoration: none;
}

.ayat-comment__author a:hover {
    color: #2563eb !important;
}

.ayat-comment__meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.45rem;
}

.ayat-comment__meta a {
    color: #dc2626 !important;
    margin-left: 0.35rem;
}

.ayat-comment__body {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #374151;
    margin-bottom: 0.5rem;
}

.ayat-comment__reply {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb !important;
    background: #f0f7ff;
    border: 1px solid #cfe3fc;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
}

.ayat-comment__reply:hover {
    background: #e0efff;
    text-decoration: none;
}

.ayat-comment-form__label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: #374151;
}

.ayat-comment-form textarea {
    margin-bottom: 0.65rem;
    border-radius: 10px;
    border-color: #e5e9ef;
}

.ayat-detail-content__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    line-height: 1.25;
    color: #1a1d21;
}

.ayat-detail-content__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

@media (max-width: 991px) {
    .ayat-detail-layout__aside {
        margin-top: 1.25rem;
    }

    .ayat-comments-section {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    .ayat-log-images,
    .ayat-log-images-upload,
    .ayat-journal-photos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ayat-leaderboard__list {
        grid-template-columns: 1fr;
    }
}

.ayat-page-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.ayat-page-intro__text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.ayat-delete-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.ayat-delete-list li {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    background: #fafbfc;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
}

@media (max-width: 575px) {
    .ayat-date-grid {
        grid-template-columns: 1fr;
    }
}

/* Sitewide chrome — navbar, page hero, breadcrumb */

.ayat-header.default-header {
    border-bottom: 1px solid #e8ecf0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ayat-header .navbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.ayat-header .ayat-brand.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: #1a1d21 !important;
}

.ayat-header .ayat-brand img {
    width: 38px !important;
    margin-right: 0 !important;
}

.ayat-header .navbar-toggler {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
}

.ayat-header .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8125rem !important;
    font-weight: 500;
    color: #4b5563 !important;
    padding: 0.45rem 0.7rem !important;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.ayat-header .navbar-nav .nav-link:hover {
    color: #2563eb !important;
    background: #f0f7ff;
}

.ayat-header.nav-line-active .navbar-nav .nav-link::before,
.ayat-header.nav-line-active .navbar-nav .active > .nav-link::before {
    display: none !important;
}

.ayat-header .navbar-expand-lg .navbar-nav > li.nav-item {
    line-height: normal;
    display: flex;
    align-items: center;
}

.ayat-nav-user.header-level-info {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    margin-right: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8ecf0;
    color: #374151 !important;
    text-decoration: none;
    font-size: 0.75rem;
    line-height: 1.35;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ayat-nav-user.header-level-info:hover {
    border-color: #cfe3fc;
    background: #f0f7ff;
    color: #1d4ed8 !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.ayat-nav-user img,
.ayat-nav-user .flaticon-user-silhouette {
    float: none !important;
    width: 32px;
    height: 32px;
    max-width: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 !important;
}

.ayat-nav-user__meta {
    float: none !important;
    margin-left: 0 !important;
}

.ayat-nav-count {
    color: #ef4444 !important;
    font-weight: 600;
}

.ayat-nav-icon {
    color: #374151 !important;
}

.ayat-header .ayat-nav-actions {
    gap: 0.5rem;
}

.ayat-header .ayat-nav-actions > .nav-item {
    margin: 0 !important;
    line-height: normal !important;
}

/* Signed-out navbar — brand and auth buttons stay on one row */
.ayat-header .ayat-navbar-guest {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.ayat-header .ayat-navbar-guest .navbar-collapse {
    flex-basis: auto;
    flex-grow: 0;
    width: auto;
}

.ayat-header .ayat-navbar-guest .ayat-nav-actions {
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .ayat-header .ayat-navbar-guest .ayat-brand {
        font-size: 0.95rem !important;
    }

    .ayat-header .ayat-navbar-guest .ayat-brand img {
        width: 32px !important;
    }
}

/* Page hero / neartop */

.page-banner-image.full-row {
    padding: 2.75rem 0 2.5rem;
}

.page-banner-image.overlay-secondary::before {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.62) 0%, rgba(37, 99, 235, 0.38) 100%) !important;
}

.page-banner-image h1,
.page-banner-simple h1 {
    font-size: 1.85rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.03em;
    line-height: 1.25 !important;
    margin-bottom: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.page-banner-image h3,
.page-banner-simple h3 {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.92;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.page-banner-image .text-center.down-line-white::before,
.page-banner-simple .text-center.down-line-white::before {
    width: 48px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85) !important;
}

.page-banner-image .down-line-white,
.page-banner-simple .down-line-white {
    padding-bottom: 1.1rem;
}

/* Breadcrumb bar */

.breadcrumb-bar.full-row {
    padding: 0.85rem 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #e8ecf0;
}

.breadcrumb-bar.bg-gray {
    background: #fff !important;
}

.breadcrumb-bar h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    color: #1a1d21;
}

.breadcrumb-bar .breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-bar .breadcrumb-item {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.breadcrumb-bar .breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-bar .breadcrumb-item a:hover {
    color: #2563eb;
}

.breadcrumb-bar .breadcrumb-item.active {
    color: #374151;
    font-weight: 500;
}

.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    color: #d1d5db;
}

@media (max-width: 767px) {
    .page-banner-image h1,
    .page-banner-simple h1 {
        font-size: 1.45rem !important;
    }

    .breadcrumb-bar h3 {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
    }

    .breadcrumb-bar nav {
        float: none !important;
    }

    .ayat-nav-user.header-level-info {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Sitewide — buttons, forms, cards, modals, legacy patterns */

body {
    background: #f8fafc;
    color: #1f2937;
}

.btn {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    line-height: 1.25 !important;
    padding: 0.35rem 0.85rem !important;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem !important;
}

.btn-lg {
    font-size: 0.875rem;
    padding: 0.45rem 1.05rem !important;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    color: #fff !important;
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: #2563eb !important;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff !important;
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    color: #4b5563 !important;
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: #374151 !important;
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.btn-outline-primary {
    color: #1e40af !important;
    background: #fff !important;
    border-color: #3b82f6 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff !important;
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
}

.btn-outline-secondary {
    color: #374151 !important;
    background: #fff !important;
    border-color: #d1d5db !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #1f2937 !important;
    background: #f9fafb !important;
    border-color: #9ca3af !important;
}

.btn-danger {
    color: #fff !important;
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #dc2626 !important;
}

.btn-danger:hover,
.btn-danger:focus {
    color: #fff !important;
    background: linear-gradient(145deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #b91c1c !important;
}

.btn-success {
    color: #fff !important;
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%) !important;
    border-color: #16a34a !important;
}

.btn-success:hover,
.btn-success:focus,
a.btn-success:hover,
a.btn-success:focus {
    color: #fff !important;
    background: linear-gradient(145deg, #16a34a 0%, #15803d 100%) !important;
    border-color: #15803d !important;
}

.btn-warning {
    color: #fff !important;
    background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #d97706 !important;
}

.btn-warning:hover,
.btn-warning:focus,
a.btn-warning:hover,
a.btn-warning:focus {
    color: #fff !important;
    background: linear-gradient(145deg, #d97706 0%, #b45309 100%) !important;
    border-color: #b45309 !important;
}

.btn-outline-info {
    color: #0e7490 !important;
    background: #fff !important;
    border-color: #67e8f9 !important;
}

.btn-outline-info:hover,
.btn-outline-info:focus {
    color: #fff !important;
    background: #0891b2 !important;
    border-color: #0e7490 !important;
}

.btn-outline-success {
    color: #166534 !important;
    background: #fff !important;
    border-color: #4ade80 !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
a.btn-outline-success:hover,
a.btn-outline-success:focus {
    color: #fff !important;
    background: #16a34a !important;
    border-color: #15803d !important;
}

.btn-outline-danger {
    color: #b91c1c !important;
    background: #fff !important;
    border-color: #fca5a5 !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #fff !important;
    background: #dc2626 !important;
    border-color: #b91c1c !important;
}

/* Anchor tags styled as buttons must not inherit theme link color */
a.btn,
a.btn:hover,
a.btn:focus {
    text-decoration: none !important;
}

a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus {
    color: #fff !important;
}

a.btn-success,
a.btn-success:hover,
a.btn-success:focus {
    color: #fff !important;
}

a.btn-danger,
a.btn-danger:hover,
a.btn-danger:focus {
    color: #fff !important;
}

a.btn-warning,
a.btn-warning:hover,
a.btn-warning:focus {
    color: #fff !important;
}

.btn-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.btn-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.form-control,
.auth-modal-body .form-boder .form-control {
    height: auto;
    min-height: 2.625rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #1f2937;
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    margin-bottom: 0;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.form-control {
    min-height: 6rem;
}

select.form-control {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
}

.form-control:focus {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.form-group label,
.form-check-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.form-check-input {
    margin-top: 0.2rem;
}

.card {
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e8ecf0;
    font-weight: 600;
    color: #1a1d21;
}

.card-body {
    padding: 1.25rem;
}

.simple-thumb,
.hover-bg-primary.hover-text-white.transation.bg-white.shadow-sm {
    padding: 1rem 1.1rem !important;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e5e9ef !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    color: inherit !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.simple-thumb:hover,
.hover-bg-primary.hover-text-white.transation.bg-white.shadow-sm:hover,
.simple-thumb.hover-bg-primary:hover,
.simple-thumb.hover-bg-primary.hover-text-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(147, 197, 253, 0.18) !important;
    border-color: #dbeafe !important;
    background: linear-gradient(160deg, #fafcff 0%, #eef4fb 100%) !important;
    background-color: #f4f8fc !important;
    color: #64748b !important;
}

/* Cancel legacy theme hover that turns all card text white */
.simple-thumb.hover-text-white:hover * {
    color: unset !important;
}

.simple-thumb.hover-text-white:hover {
    color: #64748b !important;
}

.simple-thumb.hover-text-white:hover a {
    color: #6d7175 !important;
}

.simple-thumb.hover-text-white:hover h4 a,
.simple-thumb.hover-text-white:hover .text-secondary {
    color: #64748b !important;
}

.simple-thumb.hover-text-white:hover .text-primary,
.simple-thumb.hover-text-white:hover i.text-primary {
    color: var(--theme-primary-color) !important;
}

.simple-thumb.hover-text-white:hover .website-update-badge {
    color: goldenrod !important;
}

.simple-thumb.hover-text-white:hover a:hover {
    color: #475569 !important;
}

.simple-thumb img,
.hover-bg-primary img {
    border-radius: 8px;
}

.list-group-item {
    border: 1px solid #e8ecf0;
    border-radius: 8px !important;
    margin-bottom: 0.4rem;
    background: #fafbfc;
    padding: 0.85rem 1rem;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background: #f0f7ff;
    border-color: #cfe3fc;
    color: inherit;
}

.list-group-flush .list-group-item {
    border-radius: 0 !important;
    margin-bottom: 0;
}

.alert {
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.45;
    border-width: 1px;
}

.alert-danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.alert-warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.alert-info {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.modal-content {
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.modal-header {
    padding: 1.1rem 1.25rem 0.5rem;
}

.modal-header .modal-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1d21;
}

.modal-body {
    padding: 0.5rem 1.25rem 1.25rem;
}

.modal-header .close {
    opacity: 0.45;
    transition: opacity 0.15s ease;
}

.modal-header .close:hover {
    opacity: 0.85;
}

.auth-modal-option.btn {
    padding: 0.55rem 1rem;
}

.auth-modal-back .btn-link {
    font-size: 0.8125rem;
}

.badge {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.25rem 0.55rem;
}

.badge-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.table-classic ul {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.42rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f1f3f5;
    margin: 0;
}

.table-classic ul:last-child {
    border-bottom: none;
}

.table-classic li:first-child {
    color: #6b7280;
}

.table-classic li:last-child {
    color: #1f2937;
    font-weight: 600;
    text-align: right;
}

.down-line::before,
.down-line-white::before,
.down-line-secondary::before {
    height: 2px;
    border-radius: 999px;
    width: 36px;
}

.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 0.15rem;
    color: #4b5563;
    border-color: #e5e7eb;
    font-size: 0.8125rem;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
}

.full-row:not(.page-banner-image):not(.page-banner-simple):not(.breadcrumb-bar):not(.ayat-pagination-wrap):not(.p-0) {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.container.py-2,
.container.py-4 {
    padding-top: 1.5rem !important;
}

.ayat-footer.copyright {
    background: #111827 !important;
    border-top: 1px solid #1f2937;
    color: #9ca3af;
}

.ayat-footer__copy {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.ayat-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ayat-footer__links a {
    font-size: 0.8125rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ayat-footer__links a:hover {
    color: #fff;
}

.ayat-scroll-top#scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px !important;
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ayat-scroll-top#scroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    color: #fff !important;
}

@media (max-width: 767px) {
    .ayat-footer__links {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }

    .btn:hover {
        transform: none;
    }
}

/* Planner calendar */
.ayat-calendar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.ayat-calendar__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.ayat-calendar__nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ayat-calendar__nav-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.ayat-calendar__period {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.ayat-calendar__period select,
.ayat-calendar__select {
    min-width: 7rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
}

.ayat-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ayat-calendar__weekday {
    padding: 0.55rem 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: #6b7280;
    border-right: 1px solid #e5e7eb;
}

.ayat-calendar__weekday:last-child {
    border-right: none;
}

.ayat-calendar__grid {
    display: flex;
    flex-direction: column;
}

.ayat-calendar__week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid #e5e7eb;
}

.ayat-calendar__week:last-child {
    border-bottom: none;
}

.ayat-calendar__day {
    position: relative;
    min-height: 7.5rem;
    padding: 0.5rem;
    border: none;
    border-right: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, box-shadow 0.12s ease;
    appearance: none;
    -webkit-appearance: none;
}

.ayat-calendar__week .ayat-calendar__day:last-child {
    border-right: none;
}

.ayat-calendar__day:hover {
    background: #f8fafc;
}

.ayat-calendar__day--today {
    background: #eff6ff;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.ayat-calendar__day--selected {
    background: #dbeafe;
    box-shadow: inset 0 0 0 2px #2563eb;
}

.ayat-calendar__day--today.ayat-calendar__day--selected {
    background: #dbeafe;
    box-shadow: inset 0 0 0 2px #1d4ed8;
}

.ayat-calendar__day--other-month {
    background: #fafafa;
}

.ayat-calendar__day--other-month .ayat-calendar__day-number {
    color: #9ca3af;
}

.ayat-calendar__day-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.ayat-calendar__counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-content: flex-start;
}

.ayat-calendar__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    color: #fff;
}

.ayat-calendar__count--todos {
    background: #3b82f6;
}

.ayat-calendar__count--projects {
    background: #8b5cf6;
}

.ayat-calendar__count--habits {
    background: #f59e0b;
}

.ayat-calendar__count--goals {
    background: #22c55e;
}

.ayat-calendar__count--journals {
    background: #eab308;
    color: #422006;
}

.ayat-calendar__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.25rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.ayat-calendar__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    flex: 1 1 auto;
    justify-content: center;
}

.ayat-calendar__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    color: #6b7280;
}

.ayat-calendar__legend-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.ayat-calendar__legend-dot--todos {
    background: #3b82f6;
}

.ayat-calendar__legend-dot--projects {
    background: #8b5cf6;
}

.ayat-calendar__legend-dot--habits {
    background: #f59e0b;
}

.ayat-calendar__legend-dot--goals {
    background: #22c55e;
}

.ayat-calendar__legend-dot--journals {
    background: #eab308;
}

.ayat-calendar__hint {
    margin: 0;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: right;
}

.ayat-calendar-details {
    margin-top: 1.5rem;
}

.ayat-calendar-details[hidden] {
    display: none !important;
}

.ayat-calendar-details__panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.ayat-calendar-details__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(145deg, #1e40af 0%, #2563eb 100%);
    color: #fff;
}

.ayat-calendar-details__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}

.ayat-calendar-details__title i {
    opacity: 0.9;
    margin-right: 0.35rem;
    color: #fff;
}

.ayat-calendar-details__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ayat-calendar-details__close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.ayat-calendar-details__body {
    padding: 1.25rem;
}

.ayat-calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.ayat-calendar-loading .spinner-border {
    width: 1.75rem;
    height: 1.75rem;
}

@media (max-width: 991px) {
    .ayat-calendar__day {
        min-height: 5.5rem;
    }

    .ayat-calendar__nav-btn span {
        display: none;
    }

    .ayat-calendar__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ayat-calendar__legend {
        justify-content: flex-start;
    }

    .ayat-calendar__hint {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .ayat-calendar__toolbar {
        padding: 0.75rem;
    }

    .ayat-calendar__day {
        min-height: 4.25rem;
        padding: 0.35rem;
    }

    .ayat-calendar__day-number {
        font-size: 0.75rem;
    }

    .ayat-calendar__counts {
        gap: 0.15rem;
    }

    .ayat-calendar__count {
        min-width: 1rem;
        height: 1rem;
        font-size: 0.5625rem;
    }

    .ayat-calendar__period select,
    .ayat-calendar__select {
        min-width: 5.5rem;
        font-size: 0.75rem;
    }
}

/* Planner internal (dashboard, lists, forms) */
.ayat-planner-entity-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.ayat-planner-entity-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ayat-planner-entity-nav__link:hover {
    color: #1f2937;
    background: #f9fafb;
    border-color: #d1d5db;
    text-decoration: none;
}

.ayat-planner-entity-nav__link--active {
    color: #fff;
    border-color: transparent;
}

.ayat-planner-entity-nav__link--todos.ayat-planner-entity-nav__link--active {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
}

.ayat-planner-entity-nav__link--projects.ayat-planner-entity-nav__link--active {
    background: linear-gradient(145deg, #8b5cf6, #7c3aed);
}

.ayat-planner-entity-nav__link--habits.ayat-planner-entity-nav__link--active {
    background: linear-gradient(145deg, #f59e0b, #d97706);
}

.ayat-planner-entity-nav__link--goals.ayat-planner-entity-nav__link--active {
    background: linear-gradient(145deg, #22c55e, #16a34a);
}

.ayat-planner-entity-nav__link--active:hover {
    color: #1f2937;
    background: #f9fafb;
    border-color: #d1d5db;
}

.ayat-planner-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.ayat-planner-stat {
    display: block;
    padding: 1rem 0.85rem;
    border-radius: 12px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ayat-planner-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
    color: #fff;
    text-decoration: none;
}

.ayat-planner-stat__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.ayat-planner-stat__label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.95;
}

.ayat-planner-stat--todos {
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
}

.ayat-planner-stat--projects {
    background: linear-gradient(145deg, #8b5cf6, #6d28d9);
}

.ayat-planner-stat--habits {
    background: linear-gradient(145deg, #f59e0b, #c2410c);
}

.ayat-planner-stat--goals {
    background: linear-gradient(145deg, #22c55e, #15803d);
}

.ayat-planner-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    height: 100%;
}

.ayat-planner-panel--todos {
    border-top: 3px solid #3b82f6;
}

.ayat-planner-panel--projects {
    border-top: 3px solid #8b5cf6;
}

.ayat-planner-panel--habits {
    border-top: 3px solid #f59e0b;
}

.ayat-planner-panel--goals {
    border-top: 3px solid #22c55e;
}

.ayat-planner-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ayat-planner-panel__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}

.ayat-planner-panel__title a {
    color: inherit;
    text-decoration: none;
}

.ayat-planner-panel__title a:hover {
    color: #2563eb;
}

.ayat-planner-panel__body {
    padding: 0.85rem 1.1rem 1rem;
}

.ayat-planner-panel__empty {
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

.ayat-planner-panel__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.ayat-planner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 8px;
    border: 1px solid transparent;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.ayat-planner-btn:hover {
    filter: brightness(0.92);
    color: #fff;
    text-decoration: none;
}

.ayat-planner-btn--todos { background: #3b82f6; }
.ayat-planner-btn--projects { background: #8b5cf6; }
.ayat-planner-btn--habits { background: #f59e0b; }
.ayat-planner-btn--goals { background: #22c55e; }

.ayat-planner-filters {
    margin-bottom: 1.25rem;
}

.ayat-planner-filters__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.ayat-planner-timer {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}

.ayat-planner-timer__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
}

.ayat-planner-timer__title {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #92400e;
}

.ayat-planner-timer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: #78350f;
}

.ayat-planner-timer__row + .ayat-planner-timer__row {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid #fde68a;
}

.ayat-planner-category {
    margin: 0.85rem 0 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e5e7eb;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9ca3af;
}

.ayat-planner-category:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.ayat-planner-list-item {
    padding: 0.65rem 0;
    border-bottom: 1px solid #eef0f2;
    cursor: pointer;
}

.ayat-planner-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ayat-planner-list-item__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.ayat-planner-list-item__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ayat-planner-mini-progress {
    width: 5.5rem;
    height: 0.4rem;
    background: #eef0f2;
    border-radius: 999px;
    overflow: hidden;
}

.ayat-planner-mini-progress__bar {
    height: 100%;
    background: #3b82f6;
    border-radius: 999px;
}

.ayat-planner-mini-progress__bar--projects { background: #8b5cf6; }
.ayat-planner-mini-progress__bar--goals { background: #22c55e; }
.ayat-planner-mini-progress__bar--danger { background: #ef4444; }

.ayat-planner-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.ayat-planner-detail-meta__item label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}

.ayat-planner-detail-meta__item p {
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
}

.ayat-planner-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ayat-planner-detail-actions .btn {
    width: 100%;
}

.ayat-planner-detail-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    text-align: center;
}

.ayat-planner-detail-stats__value {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2563eb;
}

.ayat-planner-detail-stats__label {
    font-size: 0.6875rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ayat-planner-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.ayat-planner-grid-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.ayat-planner-grid-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ayat-planner-grid-card__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.ayat-planner-grid-card__title a {
    color: #111827;
    text-decoration: none;
}

.ayat-planner-grid-card__title a:hover {
    color: #2563eb;
}

@media (max-width: 991px) {
    .ayat-planner-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ayat-planner-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 575px) {
    .ayat-planner-stats {
        grid-template-columns: 1fr 1fr;
    }

    .ayat-planner-filters__grid {
        grid-template-columns: 1fr;
    }

    .ayat-planner-detail-meta {
        grid-template-columns: 1fr;
    }
}

/* Planner action rows — solid, high-contrast buttons on light panels */
.ayat-planner-panel__actions .btn-outline-info,
.ayat-planner-panel__actions button.btn-outline-info {
    color: #374151 !important;
    background: #fff !important;
    border-color: #d1d5db !important;
}

.ayat-planner-panel__actions .btn-outline-info:hover,
.ayat-planner-panel__actions .btn-outline-info:focus {
    color: #111827 !important;
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

.ayat-planner-panel--projects .ayat-planner-panel__actions a.btn-outline-primary,
.ayat-planner-panel--projects .ayat-planner-panel__actions .btn-outline-primary {
    color: #fff !important;
    background: #7c3aed !important;
    border-color: #6d28d9 !important;
}

.ayat-planner-panel--projects .ayat-planner-panel__actions a.btn-outline-primary:hover,
.ayat-planner-panel--projects .ayat-planner-panel__actions .btn-outline-primary:hover {
    color: #fff !important;
    background: #6d28d9 !important;
    border-color: #5b21b6 !important;
}

.ayat-planner-panel--goals .ayat-planner-panel__actions a.btn-outline-primary,
.ayat-planner-panel--goals .ayat-planner-panel__actions .btn-outline-primary,
.ayat-planner-panel--goals .ayat-planner-panel__actions a.btn-success,
.ayat-planner-panel--goals .ayat-planner-panel__actions .btn-success {
    color: #fff !important;
    background: #16a34a !important;
    border-color: #15803d !important;
}

.ayat-planner-panel--goals .ayat-planner-panel__actions a.btn-outline-primary:hover,
.ayat-planner-panel--goals .ayat-planner-panel__actions .btn-outline-primary:hover,
.ayat-planner-panel--goals .ayat-planner-panel__actions a.btn-success:hover,
.ayat-planner-panel--goals .ayat-planner-panel__actions .btn-success:hover {
    color: #fff !important;
    background: #15803d !important;
    border-color: #166534 !important;
}

.ayat-planner-panel--habits .ayat-planner-panel__actions a.btn-primary,
.ayat-planner-panel--habits .ayat-planner-panel__actions .btn-primary {
    color: #fff !important;
    background: #d97706 !important;
    border-color: #b45309 !important;
}

.ayat-planner-panel--habits .ayat-planner-panel__actions a.btn-primary:hover,
.ayat-planner-panel--habits .ayat-planner-panel__actions .btn-primary:hover {
    color: #fff !important;
    background: #b45309 !important;
    border-color: #92400e !important;
}

.ayat-planner-panel--todos .ayat-planner-panel__actions a.btn-primary,
.ayat-planner-panel--todos .ayat-planner-panel__actions .btn-primary {
    color: #fff !important;
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
}

/* --- Homepage --- */

.ayat-home-slider-wrap {
    background: #f8fafc;
}

.ayat-home-mobile-hero {
    display: none;
    padding: 1.5rem 0 1.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #e8ecf0;
    text-align: center;
}

.ayat-home-mobile-hero__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.ayat-home-mobile-hero__title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.ayat-home-mobile-hero__text {
    margin: 0 auto 1.25rem;
    max-width: 28rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #4b5563;
}

.ayat-home-mobile-hero .ayat-action {
    margin: 0 0.35rem 0.5rem;
}

.ayat-home-mobile-hero__credit {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

.ayat-home-mobile-hero__credit a {
    color: #6b7280;
    text-decoration: underline;
}

.ayat-home-band--intro {
    border-bottom: 1px solid #eef0f2;
}

.ayat-home-band--muted {
    background: #f8fafc;
}

.ayat-home-band--cta {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.ayat-home-intro {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
}

.ayat-home-intro__lead {
    margin: 0.75rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #4b5563;
}

.ayat-home-section__head {
    max-width: 40rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.ayat-home-section__title {
    margin: 0;
    font-size: 1.625rem;
    font-weight: 700;
    color: #111827;
}

.ayat-home-section__subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #6b7280;
}

.ayat-home-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ayat-home-feature {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ayat-home-feature:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
}

.ayat-home-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    font-size: 1.1rem;
}

.ayat-home-feature__icon--journal { background: #eff6ff; color: #2563eb; }
.ayat-home-feature__icon--planner { background: #f5f3ff; color: #7c3aed; }
.ayat-home-feature__icon--logs { background: #fff7ed; color: #d97706; }
.ayat-home-feature__icon--photos { background: #ecfdf5; color: #059669; }
.ayat-home-feature__icon--xp { background: #fef9c3; color: #ca8a04; }
.ayat-home-feature__icon--community { background: #fce7f3; color: #db2777; }

.ayat-home-feature__title {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.ayat-home-feature__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #6b7280;
}

.ayat-home-achievements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ayat-home-achievement {
    padding: 1.35rem;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
}

.ayat-home-achievement__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    font-size: 1.1rem;
}

.ayat-home-achievement__icon--ayat {
    background: #eff6ff;
    color: #2563eb;
}

.ayat-home-achievement__icon--personal {
    background: #fffbeb;
    color: #b45309;
}

.ayat-home-achievement__title {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
}

.ayat-home-achievement__text {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #6b7280;
}

.ayat-home-achievement__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6b7280;
}

.ayat-home-achievement__list li + li {
    margin-top: 0.35rem;
}

.ayat-home-achievements__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.ayat-home-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    counter-reset: none;
}

.ayat-home-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
}

.ayat-home-step__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}

.ayat-home-step__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.ayat-home-step__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #6b7280;
}

.ayat-home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ayat-home-stat {
    padding: 1.5rem 1rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
}

.ayat-home-stat__value {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
}

.ayat-home-stat__value:hover {
    text-decoration: none;
    opacity: 0.85;
}

.ayat-home-stat__label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
}

.ayat-home-stat__label a {
    color: #374151;
    text-decoration: none;
}

.ayat-home-stat__label a:hover {
    color: #111827;
    text-decoration: underline;
}

.ayat-home-explore {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ayat-home-explore__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ayat-home-explore__link:hover {
    color: #111827;
    background: #f9fafb;
    border-color: #d1d5db;
    text-decoration: none;
}

.ayat-home-perks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ayat-home-perks li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.35rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.ayat-home-perks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 700;
}

.ayat-home-cta-panel {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.ayat-home-cta-panel__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.ayat-home-cta-panel__text {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #6b7280;
}

.ayat-home-cta-panel__btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
}

.ayat-home-cta-panel__note {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #9ca3af;
}

@media (max-width: 991px) {
    .ayat-home-mobile-hero {
        display: block;
    }

    .ayat-home-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ayat-home-achievements {
        grid-template-columns: 1fr;
    }

    .ayat-home-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .ayat-home-features,
    .ayat-home-achievements,
    .ayat-home-stats,
    .ayat-home-explore {
        grid-template-columns: 1fr;
    }

    .ayat-home-section__title {
        font-size: 1.375rem;
    }
}

/* --- Profile nav, photo detail, legal, misc --- */

.ayat-profile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ayat-profile-nav a {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 999px;
    text-decoration: none;
}

.ayat-profile-nav a:hover {
    color: #111827;
    background: #f9fafb;
    border-color: #d1d5db;
    text-decoration: none;
}

.ayat-photo-detail {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 1rem;
}

.ayat-photo-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ayat-photo-detail--preview {
    max-width: 28rem;
    margin: 0 auto;
}

.ayat-profile-edit-photo {
    width: 100%;
    max-width: 16rem;
    border-radius: 12px;
    display: block;
}

.ayat-profile-edit-oauth {
    display: block;
    text-align: center;
}

.ayat-form-panel--danger {
    border-color: #fecaca;
}

.ayat-check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.ayat-check-label input {
    margin-top: 0.2rem;
}

.ayat-check-group {
    margin: 1rem 0;
}

.ayat-field-error {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #dc2626;
}

.ayat-legal-page__body {
    max-width: 48rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #374151;
}

.ayat-legal-page__body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.ayat-legal-page__body ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.ayat-error-panel {
    max-width: 28rem;
    margin: 2rem auto;
    text-align: center;
}

.ayat-error-panel__code {
    margin: 0 0 0.5rem;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #d1d5db;
}

.ayat-news-about {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
}

.ayat-news-about__logo {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    margin: 0;
}

.ayat-news-about__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
}

.ayat-news-grid .ayat-news-card {
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.ayat-news-grid .ayat-news-card .ayat-card__media {
    margin: 0;
}

.ayat-news-grid .ayat-news-card .ayat-card__media img {
    margin: 0;
    max-height: 9.5rem;
    object-fit: cover;
    border-radius: 0;
}

.ayat-news-grid .ayat-news-card .ayat-news-card__meta,
.ayat-news-grid .ayat-news-card .ayat-card__title,
.ayat-news-grid .ayat-news-card .ayat-card__excerpt,
.ayat-news-grid .ayat-news-card .ayat-card__actions {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.ayat-news-grid .ayat-news-card .ayat-news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    font-size: 0.6875rem;
    color: #9ca3af;
}

.ayat-news-grid .ayat-news-card .ayat-card__title {
    padding-top: 0.35rem;
    font-size: 0.875rem;
}

.ayat-news-grid .ayat-news-card .ayat-card__excerpt {
    margin-bottom: 0;
    padding-bottom: 0.65rem;
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ayat-news-grid .ayat-news-card .ayat-card__actions {
    padding-top: 0.55rem;
    padding-bottom: 0.75rem;
    border-top: 1px solid #eef0f2;
    font-size: 0.75rem;
}

.ayat-news-card__stats {
    color: #9ca3af;
    font-size: 0.6875rem;
}

@media (max-width: 991px) {
    .ayat-news-about {
        flex-direction: column;
        text-align: center;
    }
}

.modal-content.ayat-auth-modal {
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(17, 24, 39, 0.12);
}

.ayat-auth-modal .modal-header {
    padding: 1.25rem 1.25rem 0;
}

.ayat-auth-modal .modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.ayat-auth-modal .modal-body {
    padding: 0.75rem 1.25rem 1.25rem;
}

.ayat-auth-modal .auth-modal-option.btn-primary,
.ayat-auth-modal .btn-primary {
    border-radius: 10px;
    font-weight: 600;
}

.ayat-auth-modal .auth-modal-option.btn-outline-secondary {
    border-radius: 10px;
    border-color: #d1d5db;
    color: #374151;
}
