/* =====================================
   Home Screen — page-owned styles
   ===================================== */

#app > .screen:has(> .tahouri-app-header) .home-buttons {
    width: min(760px, 100%);
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#app > .screen:has(> .tahouri-app-header) .home-buttons button {
    min-height: 70px;
    padding: 14px 16px;
    border: 1px solid #e0e7ef;
    border-radius: 17px;
    background: #ffffff;
    color: #25324a;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(31, 41, 55, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

#app > .screen:has(> .tahouri-app-header) .home-buttons button:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    background: #fbfdff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .09);
}

#app > .screen:has(> .tahouri-app-header) .home-buttons button:active { transform: translateY(0); }
#app > .screen:has(> .tahouri-app-header) .home-buttons button:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.tahouri-home-button:focus-visible,
.daily-message-home button:focus-visible,
.tahouri-home-banner button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 2px;
}

#app > .screen:has(> .tahouri-app-header) .daily-message-home {
    width: min(760px, 100%);
    margin: 20px auto;
    padding: 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    direction: rtl;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 7px 24px rgba(31, 41, 55, .07);
}

.daily-message-home-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #f3f7fb; font-size: 28px; }
.daily-message-home-content { min-width: 0; }
.daily-message-home-content h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; color: #25324a; }
.daily-message-home-content p { margin: 0; line-height: 1.9; color: #596579; }

.daily-message-home button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: #eef3f8;
    color: #344054;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.daily-message-home button:hover { background: #e3eaf2; transform: translateY(-1px); }
.daily-message-home button:disabled { opacity: .75; cursor: default; transform: none; }

.tahouri-home-banner {
    width: min(760px, 100%);
    margin: 16px auto;
    padding: 16px;
    border: 1px solid #dbe4ee;
    border-radius: 17px;
    background: #ffffff;
    direction: rtl;
    box-shadow: 0 5px 20px rgba(31, 41, 55, .05);
}

.tahouri-home-banner-row { display: flex; align-items: center; gap: 13px; }
.tahouri-home-banner-icon { flex: 0 0 auto; font-size: 30px; }
.tahouri-home-banner-content { flex: 1; min-width: 0; }
.tahouri-home-banner-content h3 { margin: 0 0 5px; font-size: 17px; }
.tahouri-home-banner-content p { margin: 0; line-height: 1.8; color: #667085; }
.tahouri-home-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tahouri-home-banner-actions button { border: 0; border-radius: 11px; padding: 9px 14px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

@media (max-width: 700px) {
    #app > .screen:has(> .tahouri-app-header) .home-buttons { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
    #app > .screen:has(> .tahouri-app-header) .home-buttons button { min-height: 62px; font-size: 16px; }
    #app > .screen:has(> .tahouri-app-header) .daily-message-home { grid-template-columns: auto minmax(0, 1fr); gap: 11px; padding: 15px; }
    .daily-message-home button { grid-column: 1 / -1; }
    .tahouri-home-banner-row { align-items: flex-start; }
}

@media (max-width: 430px) {
    #app > .screen:has(> .tahouri-app-header) .daily-message-home-icon { width: 46px; height: 46px; font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    #app > .screen:has(> .tahouri-app-header) .home-buttons button,
    .daily-message-home button { transition: none; }
}


/* =====================================
   Tahouri Update Notice
   ===================================== */
.tahouri-update-notice {
    width: min(760px, 100%);
    margin: 16px auto;
    padding: 14px 16px;
    border: 1px solid #dbe4ee;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(31,41,55,.05);
    direction: rtl;
    overflow: hidden;
}
.tahouri-update-moving {
    white-space: nowrap;
    overflow: hidden;
    font-weight: 800;
    color: #25324a;
}
.tahouri-update-moving span {
    display: inline-block;
    padding-inline-start: 100%;
    animation: tahouriUpdateMarquee 11s linear infinite;
}
.tahouri-update-text {
    margin: 9px 0 12px;
    line-height: 1.8;
    color: #596579;
}
.tahouri-update-actions { display:flex; gap:8px; flex-wrap:wrap; }
.tahouri-update-actions button {
    border:0; border-radius:11px; padding:9px 15px;
    font-family:inherit; font-size:14px; font-weight:700; cursor:pointer;
}
.tahouri-update-actions button:first-child { background:#2563eb; color:#fff; }
.tahouri-update-actions button:last-child { background:#eef3f8; color:#344054; }
.tahouri-update-actions button:disabled { opacity:.65; cursor:default; }
@keyframes tahouriUpdateMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(110%); }
}
@media (prefers-reduced-motion: reduce) {
    .tahouri-update-moving span { animation:none; padding-inline-start:0; }
}
