/* 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,
button.ayat-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;
    font-family: inherit;
    cursor: pointer;
}

.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__section {
    margin: 0.65rem 0 0.15rem;
    padding-top: 0.55rem;
    border-top: 1px solid #e8ecf0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ayat-stats__section:first-of-type {
    margin-top: 0.35rem;
}

.ayat-stats__lock {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    margin-right: 0.25rem;
    font-size: 0.75em;
}

.ayat-stats__section .ayat-stats__lock {
    margin-right: 0;
    font-size: 0.85em;
}

.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--locked {
    opacity: 0.72;
    background: #f9fafb;
}

.ayat-card--locked:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    border-color: #e5e9ef;
}

.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;
    background: linear-gradient(160deg, #fffbeb 0%, #ffffff 55%, #faf8f3 100%);
}

.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 {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    vertical-align: middle;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    white-space: nowrap;
}

.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;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.ayat-post-action {
    display: inline;
    margin: 0;
    padding: 0;
}

.ayat-post-action button {
    font-family: inherit;
    cursor: pointer;
}

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

/* Quill default body text = Roboto (overrides Helvetica in quill.snow.css) */
.ql-container.ql-snow,
.ql-container.ql-snow .ql-editor,
.journal-content.ql-snow,
.journal-content.ql-snow .ql-editor {
    font-family: var(--theme-general-font);
}

.ql-editor .ql-font-helvetica,
.journal-content .ql-font-helvetica,
.journal-content.ql-snow .ql-editor .ql-font-helvetica {
    font-family: Helvetica, Arial, sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label::before,
.ql-snow .ql-picker.ql-font .ql-picker-item::before {
    content: 'Roboto';
    font-family: var(--theme-general-font);
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=helvetica]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=helvetica]::before {
    content: 'Helvetica';
    font-family: Helvetica, Arial, sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=helvetica]::before {
    font-family: Helvetica, Arial, sans-serif;
}

/* Quill size/font/align on published journal & log views (.journal-content) */
.journal-content.ql-snow,
.journal-content.ql-snow .ql-editor {
    font-size: 15px;
    font-weight: 400;
    line-height: 28px;
    color: #1a1d21;
}

.journal-content.ql-snow .ql-editor {
    padding: 0;
    height: auto;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
}

.journal-content.ql-snow .ql-editor > * {
    cursor: inherit;
}

.journal-content.ql-snow .ql-editor > *:first-child {
    margin-top: 0;
}

.journal-content.ql-snow .ql-editor > *:last-child {
    margin-bottom: 0;
}

/* Paragraph spacing on read views: one Enter (adjacent <p>) ≈ blank line like <p><br></p> */
.journal-content.ql-snow .ql-editor p {
    margin: 0;
}

.journal-content.ql-snow .ql-editor p + p {
    margin-top: 1em;
}

/* Spacer-only paragraphs already are the blank line; avoid doubling the gap */
.journal-content.ql-snow .ql-editor p + p:empty,
.journal-content.ql-snow .ql-editor p + p:has(> br:only-child) {
    margin-top: 0;
}

.journal-content.ql-snow .ql-editor p:empty + p,
.journal-content.ql-snow .ql-editor p:has(> br:only-child) + p {
    margin-top: 0;
}

/* Soft breaks (Shift+Enter) inside one paragraph */
.journal-content.ql-snow .ql-editor p br {
    display: block;
    margin-top: 1em;
}

.journal-content .ql-font-serif,
.journal-content.ql-snow .ql-editor .ql-font-serif {
    font-family: Georgia, "Times New Roman", serif;
}

.journal-content .ql-font-monospace,
.journal-content.ql-snow .ql-editor .ql-font-monospace {
    font-family: Monaco, "Courier New", monospace;
}

.journal-content .ql-size-small,
.journal-content.ql-snow .ql-editor .ql-size-small {
    font-size: 0.75em;
}

.journal-content .ql-size-large,
.journal-content.ql-snow .ql-editor .ql-size-large {
    font-size: 1.5em;
}

.journal-content .ql-size-huge,
.journal-content.ql-snow .ql-editor .ql-size-huge {
    font-size: 2.5em;
}

.journal-content .ql-align-center,
.journal-content.ql-snow .ql-editor .ql-align-center {
    text-align: center;
}

.journal-content .ql-align-right,
.journal-content.ql-snow .ql-editor .ql-align-right {
    text-align: right;
}

.journal-content .ql-align-justify,
.journal-content.ql-snow .ql-editor .ql-align-justify {
    text-align: justify;
}

.journal-content blockquote,
.journal-content.ql-snow .ql-editor blockquote {
    border-left: 4px solid #d1d5db;
    margin: 0.75rem 0;
    padding: 0.35rem 0 0.35rem 1rem;
    color: #4b5563;
}

.journal-content pre.ql-syntax,
.journal-content pre,
.journal-content.ql-snow .ql-editor pre {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    font-family: Monaco, "Courier New", monospace;
    font-size: 0.875em;
    line-height: 1.5;
}

.journal-content.ql-snow .ql-editor h1,
.journal-content.ql-snow .ql-editor h2,
.journal-content.ql-snow .ql-editor h3 {
    font-family: var(--theme-highlight-font);
    color: var(--theme-secondary-color);
    margin: 0.85rem 0 0.4rem;
}

.journal-content.ql-snow .ql-editor h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.journal-content.ql-snow .ql-editor h2 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
}

.journal-content.ql-snow .ql-editor h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.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;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.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--level-down {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fdba74;
}

.ayat-toast--xp {
    color: #14532d;
    background: linear-gradient(135deg, #ecfdf5 0%, #bbf7d0 100%);
    border-color: #4ade80;
    font-weight: 600;
}

.ayat-toast--xp-loss {
    color: #7f1d1d;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #f87171;
    font-weight: 600;
}

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

.ayat-settings-hub-wrap {
    max-width: 40rem;
    margin: 0 auto;
}

.ayat-settings-hub {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ayat-settings-hub__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ayat-settings-hub__card:hover {
    border-color: #c5cdd8;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    color: inherit;
}

.ayat-settings-hub__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.05rem;
}

.ayat-settings-hub__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ayat-settings-hub__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1d21;
    line-height: 1.3;
}

.ayat-settings-hub__desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

.ayat-settings-hub__chevron {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 0.75rem;
}

.ayat-settings-hub__card:hover .ayat-settings-hub__chevron {
    color: #6b7280;
}

.ayat-settings-hub-wrap .ayat-page-intro__text {
    text-align: center;
}

.ayat-settings-account-close {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ayat-settings-account-close__title {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9ca3af;
}

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

.ayat-settings-account-close__link {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ayat-settings-account-close__link:hover,
.ayat-settings-account-close__link:focus {
    color: #b91c1c;
}

@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__support-note {
    max-width: 26rem;
    margin: 0.35rem auto 0.95rem;
    padding: 0.7rem 0.9rem;
    text-align: center;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

.ayat-inbox__support-note-text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}

.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__name .ayat-premium-badge {
    vertical-align: 0.1em;
}

.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-content--website-update {
    border-color: #fde68a;
    border-top: 3px solid goldenrod;
    background: linear-gradient(160deg, #fffbeb 0%, #ffffff 50%, #faf8f3 100%);
}

.ayat-premium-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.3rem;
    vertical-align: middle;
    line-height: 1;
}

.ayat-premium-badge__seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.5rem;
    color: #1e40af;
    background: linear-gradient(160deg, #dbeafe 0%, #93c5fd 100%);
    /* Jagged seal / starburst badge — not a smooth circle */
    clip-path: polygon(
        50% 0%, 57% 5%, 65% 1%, 69% 8%, 78% 5%, 79% 14%, 88% 13%, 86% 22%,
        95% 24%, 90% 32%, 98% 37%, 91% 44%, 100% 50%, 91% 56%, 98% 63%, 90% 68%,
        95% 76%, 86% 78%, 88% 87%, 79% 86%, 78% 95%, 69% 92%, 65% 99%, 57% 95%,
        50% 100%, 43% 95%, 35% 99%, 31% 92%, 22% 95%, 21% 86%, 12% 87%, 14% 78%,
        5% 76%, 10% 68%, 2% 63%, 9% 56%, 0% 50%, 9% 44%, 2% 37%, 10% 32%,
        5% 24%, 14% 22%, 12% 13%, 21% 14%, 22% 5%, 31% 8%, 35% 1%, 43% 5%
    );
    filter: drop-shadow(0 0 0.5px rgba(37, 99, 235, 0.35));
}

.ayat-premium-badge__seal .fa {
    margin: 0;
    line-height: 1;
}

.ayat-premium-badge__label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    color: inherit;
    white-space: nowrap;
}

.ayat-premium-badge--labeled .ayat-premium-badge__seal {
    width: auto;
    height: 1.45rem;
    padding: 0 0.7rem;
    gap: 0.3rem;
}

.ayat-planner-subnav__title .ayat-premium-badge {
    vertical-align: 0.1em;
}

.ayat-card__footer .ayat-premium-badge,
.ayat-page-header__meta .ayat-premium-badge {
    margin-left: 0.3rem;
}

.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:not(.btn) {
    color: #2563eb !important;
    text-decoration: none;
    font-weight: 500;
}

.ayat-detail-sidebar a:not(.btn):hover {
    text-decoration: underline;
}

.ayat-detail-sidebar a.btn,
.ayat-detail-sidebar a.btn:hover,
.ayat-detail-sidebar a.btn:focus {
    text-decoration: none !important;
}

.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__header {
    margin-bottom: 1rem;
}

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

.ayat-comments-section__tz {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

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

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

.ayat-comment--depth-1,
.ayat-comment--depth-2 {
    margin-left: 1.25rem;
}

.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;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.4;
}

.ayat-comment__meta a,
.ayat-comment__delete {
    color: #dc2626 !important;
    margin-left: 0;
}

.ayat-comment-delete {
    display: inline;
    margin: 0;
}

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

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

.ayat-comment-edit {
    display: inline;
    margin: 0;
}

.ayat-comment-edit__summary {
    display: inline;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    list-style: none;
}

.ayat-comment-edit__summary::-webkit-details-marker {
    display: none;
}

.ayat-comment-edit-form {
    margin: 0.45rem 0 0;
}

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

.ayat-comment-edit-form__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Editing replaces the comment body with the textarea. */
.ayat-comment-edit[open] {
    display: block;
    flex: 1 1 100%;
    width: 100%;
}

.ayat-comment-edit[open] > .ayat-comment-edit__summary {
    display: none;
}

.ayat-comment:has(.ayat-comment-edit[open]) > .ayat-comment__body,
.ayat-comment:has(.ayat-comment-edit[open]) > .ayat-comment__actions {
    display: none;
}

.ayat-comment__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.ayat-comment-vote {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 999px;
}

.ayat-comment-vote__form {
    display: flex;
    margin: 0;
}

.ayat-comment-vote__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 100%;
    margin: 0;
    padding: 0.35rem 0.55rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}

.ayat-comment-vote__form:first-child .ayat-comment-vote__btn {
    padding-left: 0.7rem;
}

.ayat-comment-vote__form:last-child .ayat-comment-vote__btn {
    padding-right: 0.7rem;
}

.ayat-comment-vote__btn:hover {
    color: #2563eb;
    background: #eef5ff;
}

.ayat-comment-vote__btn.is-up.is-active {
    color: #15803d;
    background: #dcfce7;
}

.ayat-comment-vote__btn.is-down.is-active {
    color: #b91c1c;
    background: #fee2e2;
}

.ayat-comment-vote__score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.35rem 0.35rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
    background: #fff;
    border-left: 1px solid #e8ecf1;
    border-right: 1px solid #e8ecf1;
}

.ayat-comment-vote--readonly {
    padding: 0.35rem 0.7rem;
}

.ayat-comment-vote--readonly .ayat-comment-vote__score {
    padding: 0;
    border: 0;
    background: transparent;
}

.ayat-comment-reply {
    display: inline;
}

.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;
    list-style: none;
}

.ayat-comment__reply::-webkit-details-marker {
    display: none;
}

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

.ayat-comment-reply[open] {
    display: block;
    flex: 1 1 100%;
    width: 100%;
    margin-top: 0.15rem;
}

.ayat-comment-reply[open] > .ayat-comment__reply {
    display: none;
}

.ayat-comment__actions:has(.ayat-comment-reply[open]) > :not(.ayat-comment-reply) {
    display: none;
}

.ayat-comment-reply-form {
    margin: 0.35rem 0 0;
}

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

.ayat-comment-reply-form__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ayat-comment__replies {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

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

    .ayat-comment--depth-1,
    .ayat-comment--depth-2 {
        margin-left: 0.75rem;
    }
}

@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-xp {
    display: inline-block;
}

.ayat-nav-xp-track {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 0.3rem;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.ayat-nav-xp-bar {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
    transition: width 0.35s ease;
}

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

.ayat-notifications__header {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.ayat-notifications__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 650;
    color: #1f2937;
}

.ayat-notifications__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 650;
}

.ayat-notifications__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ayat-notification {
    margin: 0;
    padding: 0.9rem 1rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9ef;
    border-left: 3px solid #60a5fa;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ayat-notification__top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ayat-notification__message {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.35;
    color: #111827;
}

.ayat-notification__dismiss-form {
    flex: 0 0 auto;
    margin: 0;
}

.ayat-notification__dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ayat-notification__dismiss:hover,
.ayat-notification__dismiss:focus {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #111827;
    outline: none;
}

.ayat-notification__body {
    margin: 0.55rem 0 0;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ayat-notification__body p {
    margin: 0 0 0.4rem;
}

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

.ayat-notification__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.ayat-notification__link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.ayat-notification__link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.ayat-notification__sep {
    color: #9ca3af;
}

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

.ayat-header .ayat-navbar-guest .ayat-nav-actions .nav-link {
    white-space: nowrap;
}

@media (max-width: 575px) {
    .ayat-header .ayat-navbar-guest .ayat-nav-actions .nav-link {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
        font-size: 0.75rem !important;
    }
}

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

.ayat-settings-banner.page-banner-image.full-row {
    min-height: 10rem;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

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

@media (max-width: 767px) {
    .page-banner-image h1,
    .page-banner-simple h1 {
        font-size: 1.45rem !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-info {
    color: #fff !important;
    background: linear-gradient(145deg, #22d3ee 0%, #0891b2 100%) !important;
    border-color: #0891b2 !important;
}

.btn-info:hover,
.btn-info:focus,
a.btn-info:hover,
a.btn-info:focus {
    color: #fff !important;
    background: linear-gradient(145deg, #0891b2 0%, #0e7490 100%) !important;
    border-color: #0e7490 !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;
}

a.btn-info,
a.btn-info:hover,
a.btn-info: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: #92400e !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(.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[hidden] {
    display: none !important;
}

.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__elapsed {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

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

.ayat-site-banner {
    position: relative;
    z-index: 1000;
    background: linear-gradient(90deg, #5b21b6 0%, #7c3aed 100%);
    color: #fff;
    padding: 0.65rem 0;
}

/* The site header is position:absolute (nav-on-top, top:0) so it floats over the
   page hero, and custom.js reserves its height as margin-top on the next element.
   When the event banner is present, push the resting header down by the banner
   height (measured into --event-banner-height by custom.js) so it sits below the
   banner instead of on top of it. While scrolled the header gets .fixed-top and
   should snap back to the very top, so this offset is skipped in that state. */
.ayat-site-banner ~ .ayat-header.default-header.nav-on-top:not(.fixed-top) {
    top: var(--event-banner-height, 0px);
}

.ayat-site-banner__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ayat-site-banner__item + .ayat-site-banner__item {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ayat-site-banner__icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1rem;
    opacity: 0.9;
}

.ayat-site-banner__text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.ayat-site-banner__detail {
    opacity: 0.92;
}

.ayat-site-banner__meta {
    font-size: 0.75rem;
    opacity: 0.8;
}

.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;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ayat-habit-quick-progress[hidden] {
    display: none !important;
}

.ayat-habit-quick-progress:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.ayat-habit-quick-progress__input {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: calc(6ch + 0.5rem);
    min-width: 0;
    max-width: calc(6ch + 0.5rem);
    height: 28px;
    margin: 0;
    padding: 0 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    background: #fff;
    font-size: 0.75rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    -webkit-appearance: none;
    appearance: none;
}

.ayat-habit-quick-progress__input:focus {
    outline: none;
    border-color: #3b82f6;
}

.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-habit-stats__lock-note {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.88rem;
    line-height: 1.45;
}

.ayat-habit-stats--locked .ayat-planner-detail-stats__value,
.ayat-habit-stats--locked .ayat-habit-stats__peak-value,
.ayat-habit-stats--locked .ayat-habit-stats__peaks .text-muted,
.ayat-habit-stats__premium--locked .ayat-planner-detail-stats__value,
.ayat-habit-stats__premium--locked .ayat-habit-stats__peak-value,
.ayat-habit-stats__premium--locked .ayat-habit-stats__peaks .text-muted {
    filter: blur(7px);
    user-select: none;
    pointer-events: none;
}

.ayat-habit-stats__peaks {
    display: grid;
    gap: 1rem;
}

.ayat-habit-stats__peak-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ayat-habit-stats__peak-list li {
    margin-bottom: 0.35rem;
}

.ayat-habit-stats__peak-value {
    font-weight: 700;
    color: #1f2937;
}

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

/* —— AYAT Premium pricing —— */
.ayat-pricing {
    max-width: 960px;
    margin: 0 auto;
}

.ayat-pricing__hero {
    text-align: center;
    margin-bottom: 2rem;
}

.ayat-pricing__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.ayat-pricing__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111827;
    line-height: 1.2;
}

.ayat-pricing__lead {
    margin: 0 auto;
    max-width: 34rem;
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.55;
}

.ayat-pricing__status {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    text-align: center;
}

.ayat-pricing__status--muted {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.ayat-pricing__status-badge {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ayat-pricing__status-text {
    margin: 0 0 1rem;
    color: #374151;
}

.ayat-pricing__tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .ayat-pricing__tiers {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.ayat-pricing__tier {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.ayat-pricing__tier--premium {
    border-color: #93c5fd;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 42%);
}

.ayat-pricing__popular {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ayat-pricing__tier-name {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
}

.ayat-pricing__tier-tagline {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.45;
    min-height: 2.75rem;
}

.ayat-pricing__billing-toggle {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    margin-bottom: 0.85rem;
    background: #f3f4f6;
    border-radius: 10px;
}

.ayat-pricing__toggle-btn {
    border: 0;
    background: transparent;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
}

.ayat-pricing__toggle-btn.is-active {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

.ayat-pricing__save {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.05rem 0.35rem;
    border-radius: 6px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.7rem;
    font-weight: 700;
}

.ayat-pricing__price {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.ayat-pricing__anchor {
    color: #9ca3af;
    font-size: 1rem;
}

.ayat-pricing__amount {
    font-size: 2.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111827;
    line-height: 1;
}

.ayat-pricing__period {
    color: #6b7280;
    font-size: 0.95rem;
}

.ayat-pricing__member-rate {
    margin: 0.35rem 0 0;
    color: #6b7280;
    font-size: 0.8rem;
}

.ayat-pricing__promo {
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.7rem;
    background: #f3f4f6;
    border-radius: 6px;
    color: #374151;
    font-size: 0.85rem;
    line-height: 1.4;
}

.ayat-pricing__promo--cta {
    margin: 0.75rem 0 0;
}

.ayat-pricing__promo--spotlight {
    margin: 0.85rem auto 0;
    max-width: 36rem;
    text-align: center;
}

.ayat-pricing__promo-code {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #d1d5db;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.02em;
}

.ayat-pricing__features {
    list-style: none;
    margin: 1.25rem 0 1.35rem;
    padding: 0;
    flex: 1;
}

.ayat-pricing__features li {
    display: block;
    padding: 0.65rem 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.4;
    border-bottom: 1px solid #f3f4f6;
}

.ayat-pricing__features li:last-child {
    border-bottom: 0;
}

.ayat-pricing__feature-main {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 600;
    color: #1f2937;
}

.ayat-pricing__feature-why {
    display: block;
    margin: 0.25rem 0 0 1.35rem;
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.45;
}

.ayat-pricing__badge-sample {
    margin-left: 0.15rem;
    margin-right: 0.15rem;
    vertical-align: 0.05em;
}

.ayat-pricing__features .fa-check {
    color: #2563eb;
    margin-top: 0.2rem;
}

.ayat-pricing__features-muted {
    color: #9ca3af !important;
}

.ayat-pricing__features-muted .fa-minus {
    color: #d1d5db;
    margin-top: 0.2rem;
}

.ayat-pricing__tier-cta {
    margin-top: auto;
}

.ayat-pricing__tier-cta .btn-block,
.ayat-pricing__tier-cta .btn {
    width: 100%;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.7rem 1rem;
}

.ayat-pricing__cta-note {
    margin: 0.65rem 0 0;
    text-align: center;
    color: #9ca3af;
    font-size: 0.78rem;
    line-height: 1.4;
}

.ayat-pricing__spotlight {
    margin: 0 0 2.75rem;
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
}

.ayat-pricing__spotlight-eyebrow {
    margin: 0 0 0.4rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.ayat-pricing__spotlight-title {
    margin: 0 0 0.5rem;
    text-align: center;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.ayat-pricing__spotlight-lead {
    margin: 0 auto 1.35rem;
    max-width: 38rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.98rem;
    line-height: 1.55;
}

.ayat-pricing__spotlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

@media (min-width: 768px) {
    .ayat-pricing__spotlight-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

.ayat-pricing__spotlight-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.2rem 1.25rem;
}

.ayat-pricing__spotlight-card-title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d4ed8;
}

.ayat-pricing__spotlight-card-text {
    margin: 0;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.55;
}

.ayat-pricing__spotlight-footnote {
    margin: 0 auto 1.25rem;
    max-width: 36rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ayat-pricing__inline-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.ayat-pricing__inline-cta .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.55rem 1rem;
}

.ayat-pricing__closing {
    margin: 2.5rem 0 0;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-radius: 16px;
    border: 1px solid #93c5fd;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 55%);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.ayat-pricing__closing-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #111827;
}

.ayat-pricing__closing-lead {
    margin: 0 auto 1.25rem;
    max-width: 32rem;
    color: #6b7280;
    font-size: 0.98rem;
    line-height: 1.55;
}

.ayat-pricing__closing-prices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-bottom: 1.25rem;
}

.ayat-pricing__closing-price {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    color: #111827;
    font-size: 1.05rem;
}

.ayat-pricing__closing-price strong {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.ayat-pricing__closing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.ayat-pricing__closing-actions .btn {
    border-radius: 10px;
    font-weight: 600;
    min-width: 12.5rem;
    padding: 0.7rem 1.15rem;
}

.ayat-pricing__why {
    margin: 0 0 2.75rem;
}

.ayat-pricing__why-title {
    margin: 0 0 0.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.ayat-pricing__why-lead {
    margin: 0 auto 1.5rem;
    max-width: 36rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.98rem;
    line-height: 1.55;
}

.ayat-pricing__why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 700px) {
    .ayat-pricing__why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .ayat-pricing__why-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.ayat-pricing__why-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.15rem 1.2rem;
}

.ayat-pricing__why-card-title {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1d4ed8;
}

.ayat-pricing__why-card-text {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ayat-pricing__compare {
    margin-top: 0.5rem;
}

.ayat-pricing__compare-title {
    margin: 0 0 0.35rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}

.ayat-pricing__compare-lead {
    margin: 0 auto 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

.ayat-pricing__footer-note {
    margin: 1.75rem auto 0;
    max-width: 32rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ayat-pricing__table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.ayat-pricing__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ayat-pricing__table th,
.ayat-pricing__table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    vertical-align: middle;
}

.ayat-pricing__table thead th {
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ayat-pricing__table tbody th {
    font-weight: 600;
    color: #1f2937;
}

.ayat-pricing__table tbody tr:last-child th,
.ayat-pricing__table tbody tr:last-child td {
    border-bottom: 0;
}

.ayat-pricing__table td {
    color: #4b5563;
}

.ayat-pricing__yes {
    color: #1d4ed8;
    font-weight: 600;
}

@media (min-width: 768px) {
    .ayat-pricing__table th:nth-child(2),
    .ayat-pricing__table td:nth-child(2),
    .ayat-pricing__table th:nth-child(3),
    .ayat-pricing__table td:nth-child(3) {
        text-align: center;
        width: 22%;
    }
}

/* —— Free-tier locked items + slot manager —— */
.ayat-planner-item--locked {
    opacity: 0.62;
    background: #f9fafb;
}

.ayat-planner-item--locked .ayat-planner-list-item__actions .action-btn--complete,
.ayat-planner-item--locked .ayat-planner-list-item__actions .action-btn--deactivate,
.ayat-planner-item--locked .ayat-planner-list-item__actions .action-btn--success,
.ayat-planner-item--locked .ayat-planner-list-item__actions .action-btn--primary,
.ayat-planner-item--locked .ayat-planner-list-item__actions .action-btn--danger,
.ayat-planner-item--locked .ayat-planner-list-item__actions form.ayat-post-action .btn,
.ayat-planner-item--locked [data-habit-timer],
.ayat-planner-item--locked .ayat-habit-quick-progress,
.ayat-planner-item--locked form.ayat-post-action {
    pointer-events: none;
    opacity: 0.45;
}

.ayat-free-slot-banner {
    margin: 0.75rem 0 1rem;
    font-size: 0.92rem;
}

.ayat-free-slots {
    max-width: 720px;
    margin: 0 auto;
}

.ayat-free-slots__hero {
    text-align: center;
    margin-bottom: 2rem;
}

.ayat-free-slots__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.ayat-free-slots__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 700;
    color: #111827;
}

.ayat-free-slots__lead {
    margin: 0 auto 1rem;
    max-width: 34rem;
    color: #6b7280;
    line-height: 1.55;
}

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

.ayat-free-slots__section {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.ayat-free-slots__section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ayat-free-slots__section-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.ayat-free-slots__section-meta {
    margin: 0;
    color: #6b7280;
    font-size: 0.85rem;
}

.ayat-free-slots__hint {
    margin: 0 0 0.85rem;
    color: #4b5563;
    font-size: 0.9rem;
}

.ayat-free-slots__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.ayat-free-slots__item {
    border-bottom: 1px solid #f3f4f6;
    padding: 0.55rem 0;
}

.ayat-free-slots__item:last-child {
    border-bottom: 0;
}

.ayat-free-slots__item--locked {
    opacity: 0.75;
}

.ayat-free-slots__label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}

.ayat-free-slots__item-title {
    font-weight: 600;
    color: #1f2937;
}

.ayat-free-slots__hub {
    display: grid;
    gap: 0.85rem;
}

.ayat-free-slots__hub-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ayat-free-slots__hub-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
    text-decoration: none;
    color: inherit;
}

.ayat-free-slots__hub-icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
}

.ayat-free-slots__hub-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ayat-free-slots__hub-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.ayat-free-slots__hub-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.ayat-free-slots__hub-desc {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
}

.ayat-free-slots__hub-chevron {
    flex: 0 0 auto;
    color: #9ca3af;
}

.ayat-free-slots__hub-card:hover .ayat-free-slots__hub-chevron {
    color: #1d4ed8;
}

/* —— Premium member home (subscribed) —— */
.ayat-pricing--member {
    max-width: 920px;
}

.ayat-premium-home {
    --ayat-prem-ink: #0f172a;
    --ayat-prem-muted: #64748b;
    --ayat-prem-blue: #1d4ed8;
    --ayat-prem-sky: #38bdf8;
}

.ayat-premium-home__hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 2.25rem 1.5rem 2rem;
    margin-bottom: 1.75rem;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(ellipse 80% 70% at 20% 0%, rgba(56, 189, 248, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 60% at 90% 20%, rgba(37, 99, 235, 0.45), transparent 50%),
        linear-gradient(145deg, #0f172a 0%, #1e3a8a 48%, #1d4ed8 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    animation: ayat-premium-hero-in 0.7s ease-out both;
}

.ayat-premium-home__hero-glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
    animation: ayat-premium-glow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.ayat-premium-home__hero-inner {
    position: relative;
    z-index: 1;
}

.ayat-premium-home__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ayat-premium-home__star {
    display: inline-flex;
    animation: ayat-premium-twinkle 2.4s ease-in-out infinite;
}

.ayat-premium-home__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
}

.ayat-premium-home__lead {
    margin: 0 auto 1.25rem;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.55;
}

.ayat-premium-home__badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.ayat-premium-home__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.ayat-premium-home__badge--soft {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.ayat-premium-home__notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.ayat-premium-home__notice p {
    margin: 0;
    flex: 1 1 14rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

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

@media (min-width: 640px) {
    .ayat-premium-home__stats {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.ayat-premium-home__stat {
    text-align: center;
    padding: 0.95rem 0.5rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ayat-premium-home__stat-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ayat-prem-blue);
    line-height: 1.1;
}

.ayat-premium-home__stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ayat-prem-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ayat-premium-home__section-eyebrow {
    margin: 0 0 0.4rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ayat-prem-blue);
}

.ayat-premium-home__section-title {
    margin: 0 0 0.5rem;
    text-align: center;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--ayat-prem-ink);
    line-height: 1.25;
}

.ayat-premium-home__section-lead {
    margin: 0 auto 1.25rem;
    max-width: 34rem;
    text-align: center;
    color: var(--ayat-prem-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.ayat-premium-home__benefits {
    margin-bottom: 2.5rem;
}

.ayat-premium-home__benefit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.35rem;
}

@media (min-width: 700px) {
    .ayat-premium-home__benefit-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ayat-premium-home__benefit {
    padding: 1.2rem 1.25rem;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
    animation: ayat-premium-rise 0.55s ease-out both;
    animation-delay: var(--ayat-benefit-delay, 0s);
}

.ayat-premium-home__benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    margin-bottom: 0.65rem;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--ayat-prem-blue);
    font-size: 1.05rem;
}

.ayat-premium-home__benefit-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ayat-prem-ink);
}

.ayat-premium-home__benefit-text {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.5;
}

.ayat-premium-home__actions {
    margin-bottom: 2.5rem;
}

.ayat-premium-home__action-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 700px) {
    .ayat-premium-home__action-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ayat-premium-home__action {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ayat-premium-home__action:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.ayat-premium-home__action-icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--ayat-prem-blue);
}

.ayat-premium-home__action-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ayat-premium-home__action-title {
    font-weight: 700;
    color: var(--ayat-prem-ink);
}

.ayat-premium-home__action-desc {
    font-size: 0.85rem;
    color: var(--ayat-prem-muted);
    line-height: 1.35;
}

.ayat-premium-home__action-chevron {
    color: #94a3b8;
}

.ayat-premium-home__action:hover .ayat-premium-home__action-chevron {
    color: var(--ayat-prem-blue);
}

.ayat-premium-home__keep {
    margin-bottom: 2rem;
    padding: 1.75rem 1.5rem;
    border-radius: 18px;
    border: 1px solid #bfdbfe;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
        linear-gradient(180deg, #eff6ff 0%, #ffffff 65%);
}

.ayat-premium-home__keep-list {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.ayat-premium-home__keep-list li {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.5;
}

.ayat-premium-home__keep-list strong {
    color: var(--ayat-prem-ink);
}

.ayat-premium-home__footer {
    text-align: center;
    padding-top: 0.5rem;
}

.ayat-premium-home__footer-text {
    margin: 0 0 0.85rem;
    color: var(--ayat-prem-muted);
    font-size: 0.9rem;
}

@keyframes ayat-premium-hero-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ayat-premium-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ayat-premium-glow {
    from {
        transform: translateX(-4%) scale(1);
        opacity: 0.7;
    }
    to {
        transform: translateX(4%) scale(1.05);
        opacity: 1;
    }
}

@keyframes ayat-premium-twinkle {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.15) rotate(8deg);
        opacity: 0.85;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ayat-premium-home__hero,
    .ayat-premium-home__benefit,
    .ayat-premium-home__hero-glow,
    .ayat-premium-home__star {
        animation: none !important;
    }

    .ayat-premium-home__action {
        transition: none;
    }
}

/* Canceling soon (cancel_at_period_end) */
.ayat-premium-home--canceling .ayat-premium-home__hero {
    background:
        radial-gradient(ellipse 80% 70% at 15% 0%, rgba(251, 191, 36, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 60% at 95% 30%, rgba(245, 158, 11, 0.22), transparent 50%),
        linear-gradient(145deg, #1c1917 0%, #78350f 45%, #b45309 100%);
    box-shadow: 0 18px 40px rgba(120, 53, 15, 0.22);
}

.ayat-premium-home__badge--warn {
    background: #f59e0b;
    color: #1c1917;
}

.ayat-premium-home__hero-cta {
    margin-top: 1.35rem;
}

.ayat-premium-home__hero-cta .btn-light {
    font-weight: 700;
    border-radius: 10px;
    padding: 0.7rem 1.25rem;
    color: #78350f;
}

.ayat-premium-home__loss {
    margin-bottom: 2.25rem;
    padding: 1.75rem 1.35rem;
    border-radius: 18px;
    border: 1px solid #fcd34d;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 70%);
}

.ayat-premium-home__loss-list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.ayat-premium-home__loss-item {
    padding: 0.95rem 1.05rem;
    border-radius: 12px;
    border: 1px solid #e7e5e4;
    background: #fff;
}

.ayat-premium-home__loss-item--risk {
    border-color: #fcd34d;
    background: #fffbeb;
}

.ayat-premium-home__loss-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-bottom: 0.35rem;
}

.ayat-premium-home__loss-label {
    font-weight: 700;
    color: #1c1917;
    font-size: 1rem;
}

.ayat-premium-home__loss-meta {
    font-size: 0.85rem;
    color: #78716c;
}

.ayat-premium-home__loss-excess {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    font-size: 0.75rem;
}

.ayat-premium-home__loss-text {
    margin: 0;
    color: #57534e;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ayat-premium-home__loss-cta {
    margin-top: 1.35rem;
    text-align: center;
}

.ayat-premium-home__cta-note {
    margin: 0.65rem 0 0;
    color: #78716c;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* —— 18+ mature age gate —— */
.ayat-mature-gate {
    max-width: 32rem;
    margin: 1rem auto 0;
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.ayat-mature-gate__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b45309;
}

.ayat-mature-gate__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.ayat-mature-gate__lead {
    margin: 0 0 1.25rem;
    color: #6b7280;
    font-size: 0.98rem;
    line-height: 1.55;
}

.ayat-mature-gate__dob {
    margin-bottom: 1rem;
}

.ayat-mature-gate__dob-row {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.9fr;
    gap: 0.5rem;
}

.ayat-mature-gate__check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0 0 1.25rem;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.45;
    cursor: pointer;
}

.ayat-mature-gate__check input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.ayat-mature-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ayat-mature-gate__actions .btn {
    border-radius: 10px;
    font-weight: 600;
}
