* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* ===== LIGHT MODE AS DEFAULT ===== */
.wrap {
    font-family: 'Tajawal', sans-serif;
    background: #f4f8f5;
    min-height: 100vh;
    padding-bottom: 80px;
    color: #0b1e14;
    transition: background 0.2s, color 0.2s;
}

.wrap[data-mode="dark"] {
    background: #0d1f16;
    color: #fff;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    line-height: 0;
}

.hero img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: brightness(.9);
    transition: filter 0.2s;
}

.wrap[data-mode="dark"] .hero img {
    filter: brightness(.65);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 20px 22px;
    transition: background 0.2s;
}

.hero-overlay h1 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.hero-overlay p {
    font-size: .82rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
}

.year-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #2d6a4f;
    color: #e3fcef;
    font-size: .7rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    margin-bottom: 9px;
    width: fit-content;
}

/* STRIP */
.strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #d0e2d8;
    transition: background 0.2s, border-color 0.2s;
}

.wrap[data-mode="dark"] .strip {
    background: #162a1e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid #d0e2d8;
    transition: border-color 0.2s;
}

.wrap[data-mode="dark"] .stat {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:last-child {
    border-right: none;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f6e4a;
    transition: color 0.2s;
}

.wrap[data-mode="dark"] .stat-num {
    color: #52e09a;
}

.stat-lbl {
    font-size: .72rem;
    color: #3b5e4b;
    font-weight: 600;
    transition: color 0.2s;
}

.wrap[data-mode="dark"] .stat-lbl {
    color: rgba(255, 255, 255, 0.55);
}

/* BODY */
.body {
    padding: 22px 16px 0;
}

.sec-head {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #3d6b54;
    margin-bottom: 14px;
    transition: color 0.2s;
}

.wrap[data-mode="dark"] .sec-head {
    color: rgba(255, 255, 255, 0.4);
}

/* MENU */
.menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    background: #ffffff;
    border-bottom: 1px solid #d0e2d8;
    cursor: pointer;
    text-decoration: none;
    color: #0b1e14;
    transition: background 0.15s, border-color 0.2s;
}

.wrap[data-mode="dark"] .item {
    background: #162a1e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff;
}

.menu .item:first-child { border-radius: 14px 14px 0 0; }
.menu .item:last-child  { border-radius: 0 0 14px 14px; border-bottom: none; }
.item:active { background: #e2f0e8; }
.wrap[data-mode="dark"] .item:active { background: #1f3829; }

.item-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.ico {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.ico1 {
    background: #d0f0dd;
    color: #1f6e4a;
}

.wrap[data-mode="dark"] .ico1 {
    background: rgba(82, 224, 154, 0.15);
    color: #52e09a;
}

.item-title {
    font-size: .95rem;
    font-weight: 700;
    color: #0b1e14;
    transition: color 0.2s;
}

.wrap[data-mode="dark"] .item-title {
    color: #fff;
}

.item-sub {
    font-size: .72rem;
    color: #3e6b54;
    margin-top: 1px;
    transition: color 0.2s;
}

.wrap[data-mode="dark"] .item-sub {
    color: rgba(255, 255, 255, 0.45);
}

.arr {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2efe8;
    color: #2b5e42;
    font-size: .8rem;
    transition: background 0.2s, color 0.2s;
}

.wrap[data-mode="dark"] .arr {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

/* TOPBAR */
.topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.controls { display: flex; gap: 8px; }

.cbtn {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .95rem;
    transition: transform 0.15s, background 0.2s;
}

.cbtn:active { transform: scale(0.9); }

.brand-tag {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 0 12px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Tajawal', sans-serif;
}

/* ===== TOAST (UPDATED: CENTERED VERTICALLY) ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: #b53a1e;
    color: #fff;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: center;
    max-width: 88vw;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    line-height: 1.5;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.toast i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

/* FOOTER */
.footer {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 9px 20px;
    border-radius: 28px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    z-index: 999;
    font-family: 'Tajawal', sans-serif;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.footer strong { color: #FFD700; }

.footer:hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
    transform: translateX(-50%) scale(1.04);
}

.wrap[data-mode="dark"] .cbtn,
.wrap[data-mode="dark"] .brand-tag {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
}