:root {
    --green: #176b4d;
    --green-dark: #0f4d38;
    --green-light: #e7f0e9;
    --beige: #f4ecdd;
    --beige-dark: #e9ddc8;
    --white: #fffdf9;
    --text: #24352e;
    --muted: #78827c;
    --border: rgba(23, 107, 77, .10);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Cairo", sans-serif;
    background: var(--beige);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: 0;
    cursor: pointer;
}

.app-shell {
    width: 100%;
    max-width: 540px;
    min-height: 100vh;
    margin: auto;
    background:
        linear-gradient(rgba(244,236,221,.94), rgba(244,236,221,.94)),
        url("https://www.transparenttextures.com/patterns/arabesque.png");
    position: relative;
    padding-bottom: 95px;
}

.topbar {
    height: 76px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--green);
    color: white;
    font-size: 22px;
}

.brand strong {
    display: block;
    color: var(--green-dark);
    font-size: 20px;
    line-height: 1;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 3px;
    direction: ltr;
    margin-top: 4px;
}

.location-button {
    background: rgba(255,255,255,.65);
    border: 1px solid var(--border);
    color: var(--green);
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.main-content {
    padding: 0 18px;
}

.hero {
    min-height: 230px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.2), transparent 30%),
        linear-gradient(135deg, var(--green-dark), var(--green));
    color: white;
    padding: 34px 28px;
    margin-bottom: 16px;
}

.hero:after {
    content: "۞";
    position: absolute;
    left: -25px;
    bottom: -70px;
    font-family: serif;
    font-size: 230px;
    color: rgba(255,255,255,.045);
}

.eyebrow {
    font-size: 11px;
    opacity: .75;
}

.hero h1 {
    font-size: 27px;
    line-height: 1.7;
    margin-top: 18px;
    font-weight: 700;
}

.hero p {
    opacity: .75;
    font-size: 13px;
}

.location-card {
    background: rgba(255,253,249,.85);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.location-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--green-light);
    color: var(--green);
    display: grid;
    place-items: center;
}

.location-card div:nth-child(2) {
    flex: 1;
}

.location-card span {
    display: block;
    font-size: 9px;
    color: var(--muted);
}

.location-card strong {
    font-size: 13px;
}

.location-card button {
    background: transparent;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
}

.section-heading a,
.section-heading .date {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
}

.next-prayer {
    margin-bottom: 25px;
}

.next-prayer-card {
    background: var(--green);
    color: white;
    min-height: 145px;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.next-prayer-card:before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    left: -70px;
}

.small-label {
    font-size: 10px;
    opacity: .65;
}

.next-prayer-card h2 {
    font-size: 25px;
    margin: 5px 0;
}

.next-time {
    font-size: 19px;
    font-weight: 600;
    direction: ltr;
    text-align: right;
}

.prayer-symbol {
    font-size: 70px;
    opacity: .15;
    font-family: serif;
}

.prayer-times {
    margin-bottom: 22px;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.prayer-card {
    background: rgba(255,253,249,.78);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 15px 8px;
    text-align: center;
}

.prayer-card.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.prayer-icon {
    display: block;
    font-size: 17px;
    margin-bottom: 5px;
    opacity: .7;
}

.prayer-name {
    display: block;
    font-size: 10px;
    margin-bottom: 5px;
}

.prayer-card strong {
    display: block;
    font-size: 14px;
    direction: ltr;
}

.daily-message {
    background: var(--beige-dark);
    border-radius: 20px;
    padding: 17px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--green-dark);
}

.daily-message > span {
    font-size: 18px;
}

.daily-message small {
    color: var(--muted);
    font-size: 9px;
}

.daily-message p {
    font-family: "Amiri", serif;
    font-size: 17px;
    margin-top: 2px;
}

.bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 510px;
    background: rgba(255,253,249,.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 8px 5px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: 0 10px 30px rgba(40,55,45,.08);
    z-index: 100;
}

.nav-item {
    text-align: center;
    color: var(--muted);
    padding: 5px;
}

.nav-item span {
    display: block;
    font-size: 17px;
}

.nav-item small {
    font-size: 8px;
}

.nav-item.active {
    color: var(--green);
}

@media (min-width: 700px) {
    .app-shell {
        box-shadow: 0 0 50px rgba(50,50,40,.08);
    }
}
