:root {
    --card-width: 900px;
    --card-height: auto;
    /* Modern Islamic palette */
    --accent-green: #0f766e;   /* emerald/teal */
    --accent-green-2: #115e59;
    --accent-gold: #d4af37;
    --muted: rgba(15, 23, 42, .55);
    --surface: rgba(255,255,255,.92);
    --surface-strong: #ffffff;
    --border: rgba(15, 23, 42, .10);
    --shadow: 0 12px 40px rgba(2, 6, 23, .14);
    /* User request: remove all border-radius in full-page UI */
    --radius: 0px;
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%230f766e' stroke-opacity='.12' stroke-width='2'%3E%3Cpath d='M70 10c18 0 32 14 32 32S88 74 70 74 38 60 38 42 52 10 70 10Z'/%3E%3Cpath d='M70 66c18 0 32 14 32 32s-14 32-32 32-32-14-32-32 14-32 32-32Z'/%3E%3Cpath d='M10 70c0-18 14-32 32-32s32 14 32 32-14 32-32 32S10 88 10 70Z'/%3E%3Cpath d='M66 70c0-18 14-32 32-32s32 14 32 32-14 32-32 32-32-14-32-32Z'/%3E%3C/g%3E%3C/svg%3E");
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Vazirmatn','Inter','Open Sans',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
    background: #0b1220;
    direction: ltr;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
     background:
      linear-gradient(180deg, rgba(11,18,32,.72), rgba(11,18,32,.86)),
      var(--pattern),
      url(background.jpg) center / cover no-repeat fixed;
    min-height: 100vh;
    margin: 0;
}

.card-wrapper {
    width: var(--card-width);
    max-width: calc(100% - 40px);
    box-shadow: var(--shadow);
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.35);
    position: relative;
    overflow: hidden;
}

/* subtle decorative band */
.card-wrapper::before{
    content:"";
    position:absolute;
    left:-40px; right:-40px; top:-60px;
    height:140px;
    background:
      radial-gradient(closest-side, rgba(212,175,55,.25), transparent 70%),
      linear-gradient(90deg, rgba(15,118,110,.18), rgba(212,175,55,.12), rgba(15,118,110,.18));
    transform: rotate(-2deg);
    pointer-events:none;
}

@media (min-width: 1024px) {
    .card-wrapper {
        width: 100vw;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    .card {
        max-width: 1500px;
        margin: 0 auto;
        background: var(--surface-strong);
        border-radius: calc(var(--radius) + 2px);
        box-shadow: var(--shadow);
        padding: 35px;
        border: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    body { padding: 0px; }
    .card-wrapper { max-width: 100%; width: 100%; border-radius: 12px; }
    .card { padding: 18px 16px; }
}

.card {
    width: 100%;
    background: var(--surface-strong);
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* -------------------------
   Hamburger + Drawer Menu
   ------------------------- */
.header-actions{ display:flex; align-items:center; gap:10px; }

.hamburger-btn{
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    background: rgba(15,118,110,.06);
    cursor: pointer;
    padding: 0;
    transition: opacity 200ms ease, background 200ms ease;
}
.hamburger-btn:hover{ opacity: .95; background: rgba(15,118,110,.10); }
.hamburger-btn span{
    display:block;
    width: 18px;
    height: 2px;
    background: rgba(2,6,23,.78);
}

.tpt-drawer-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9998;
}

.tpt-drawer{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 86vw);
    background: var(--surface-strong);
    border-left: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(2,6,23,.35);
    transform: translateX(110%);
    transition: transform 220ms ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}
.tpt-drawer.is-open{ transform: translateX(0); }

.tpt-drawer-header{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 16px 16px;
    border-bottom: 1px solid var(--border);
}
.tpt-drawer-title{ font-weight: 800; color: rgba(2,6,23,.88); }
.tpt-drawer-close{
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: rgba(15,118,110,.06);
    cursor:pointer;
    font-size: 22px;
    line-height: 1;
}

.tpt-drawer-nav{ display:flex; flex-direction:column; padding: 10px 10px 6px; gap: 4px; }
.tpt-drawer-nav a{
    padding: 12px 12px;
    text-decoration:none;
    color: rgba(2,6,23,.82);
    border: 1px solid transparent;
    background: rgba(2,6,23,.02);
}
.tpt-drawer-nav a:hover{ background: rgba(15,118,110,.08); border-color: rgba(15,118,110,.18); }

.tpt-drawer-divider{ height: 1px; background: var(--border); margin: 10px 16px; }


.tpt-switch{ display:flex; align-items:center; gap:10px; padding: 6px 16px 18px; user-select:none; display: none;}
.tpt-switch input{ display:none; }
.tpt-slider{
    width: 44px;
    height: 24px;
    border: 1px solid var(--border);
    background: rgba(2,6,23,.06);
    position: relative;
}
.tpt-slider::after{
    content:"";
    position:absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--accent-green);
    transition: transform 180ms ease;
}
.tpt-switch input:checked + .tpt-slider::after{ transform: translateX(20px); }
.tpt-switch-label{ font-weight: 700; color: rgba(2,6,23,.82); }

/* ------------------------------------------------------------
   No rounded corners (global override within full-page UI)
   ------------------------------------------------------------ */


/* -------------------------
   Dark mode (toggle)
   ------------------------- */
body.tpt-dark{
    background:
      linear-gradient(180deg, rgba(2,6,23,.80), rgba(2,6,23,.92)),
      var(--pattern),
      url(background.jpg) center / cover no-repeat fixed;
}
body.tpt-dark .card,
body.tpt-dark .card-wrapper{ background: rgba(2,6,23,.72); }
body.tpt-dark .card{ border-color: rgba(255,255,255,.10); }
body.tpt-dark .current-time{ color: rgba(255,255,255,.92); }
body.tpt-dark .countdown{ color: rgba(255,255,255,.70); }
body.tpt-dark .heading .city-name,
body.tpt-dark .city-name-with-namaz{ color: rgba(255,255,255,.90); }
body.tpt-dark .tpt-drawer{ background: rgba(2,6,23,.94); }
body.tpt-dark .tpt-drawer-title,
body.tpt-dark .tpt-drawer-nav a,
body.tpt-dark .tpt-switch-label{ color: rgba(255,255,255,.92); }
body.tpt-dark .tpt-drawer-nav a{ background: rgba(255,255,255,.04); }
body.tpt-dark .hamburger-btn span{ background: rgba(255,255,255,.85); }

.current { display: flex; gap: 12px; align-items: center; }
.current .icon { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) saturate(100%) invert(29%) sepia(28%) saturate(970%) hue-rotate(135deg) brightness(93%) contrast(92%); }
.current .title { font-weight: 600; font-size: 19px; color: var(--accent-green); font-family: inter;}

.link-icon { width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; color: var(--accent-green); cursor: pointer; transition: all 200ms ease; text-decoration: none; opacity: 0.7; border-radius: 4px; padding: 4px; }
.link-icon:hover { opacity: 1; background: rgba(15,118,110,0.10); }

.heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.left, .right { flex: 1; }
.right {
    text-align: right;
    padding: 12px 14px;
    border-radius: 14px;
    background:
      radial-gradient(600px 180px at 100% 0%, rgba(15,118,110,.10), transparent 60%),
      linear-gradient(180deg, rgba(2, 6, 23, .02), rgba(2, 6, 23, .00));
}
.current-time { font-size: 21px; font-weight: 600; color: rgba(2,6,23,.88); letter-spacing: .2px; }
.countdown { font-size: 16px; color: var(--muted); }

.heading .city-name { font-size: 20px; font-weight: 700; color: #222; margin-bottom: 12px; }
.dates-container { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; flex-direction: column; }
.dates-container{max-width:100%;overflow-x:hidden;}
.heading .date, .heading .hijri-date { font-size: 19px;  }

@media (max-width: 768px) {
    .heading { flex-direction: column; align-items: center; }
    .right { text-align: center; margin-top: 4px; border: 1px solid var(--border);}
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.search-row label { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px; }
/* Location (Province/City) selects */
.location-select-wrap { position: relative; display: flex; align-items: center; flex: 1; max-width: 220px; }
@media (max-width: 768px) { .location-select-wrap { max-width: 100%; } }
.location-select { padding: 10px; border-radius: 6px; border: 1px solid #ddd; width: 100%; font-size: 16px; background: white; transition: all 200ms ease; color: #333; cursor: pointer; }
.location-select:focus { outline: none; border-color: var(--accent-green); box-shadow: 0 0 0 3px rgba(113, 219, 135, 0.15); }

.city-input-hidden { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

/* Backward compatible styles for old search input (kept hidden now) */
.city-input-wrap { position: relative; display: flex; align-items: center; flex: 1; max-width: 380px; }
@media (max-width: 768px) { .city-input-wrap { max-width: 100%; } }

input.city-input { padding: 10px; border-radius: 6px; border: 1px solid #ddd; width: 100%; font-size: 13px; background: white; transition: all 200ms ease; color: #333; }
input.city-input:focus { outline: none; border-color: var(--accent-green); box-shadow: 0 0 0 3px rgba(113, 219, 135, 0.15); }

.loader { position: absolute; right: 10px; width: 18px; height: 18px; display: none; }
.suggestions { position: absolute; left: 0; top: 40px; width: 100%; max-height: 200px; overflow-y: auto; background: white; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,0.12); z-index: 1000; display: none; }
.suggestions .item { padding: 10px 14px; cursor: pointer; font-size: 13px; transition: all 120ms ease; }
.suggestions .item:hover { background: #f0fdf4; color: var(--accent-green); padding-left: 18px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
}

.date-input-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-select { padding: 9px 10px; border: 1px solid #ccc; border-radius: 6px; background: white; font-size: 15px; min-width: 80px; cursor: pointer; transition: border-color 200ms ease; }
.date-select:focus { outline: none; border-color: var(--accent-green); box-shadow: 0 0 0 3px rgba(113, 219, 135, 0.15); }

.prayers { margin-bottom: 24px; position: relative; }

/* ------------------------------------------------------------
   Day navigation bar (prev / next / "Bugüne Dön")
   - Requested: buttons should sit ABOVE the prayer grid
   - Mobile: keep them on the right, above the times box
   ------------------------------------------------------------ */
.day-nav-bar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin: 2px 0 12px;
}
.day-nav-bar .day-nav-btn{
  position: static;
  transform: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(2,6,23,.10);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(15,118,110,.95);
}
.day-nav-bar .day-nav-btn:hover{ background: rgba(15,118,110,.08); }

/* "Bugüne Dön" button */
.reset-date-btn{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(2,6,23,.10);
  cursor:pointer;
  font-weight: 800;
  letter-spacing: .1px;
}
.reset-date-btn .reset-text{ font-size: 13px; }
.reset-date-btn .reset-icon img{ width: 18px; height: 18px; opacity: .95; }
.reset-date-btn.is-hidden{ display:none !important; }
.reset-date-btn.is-active{
  color: #dc2626;
  border-color: rgba(220,38,38,.35);
  background: rgba(220,38,38,.06);
}
.reset-date-btn.is-active .reset-icon img{
  /* Approximate red for an external SVG via filter */
  filter: brightness(0) saturate(100%) invert(21%) sepia(84%) saturate(3917%) hue-rotate(349deg) brightness(93%) contrast(92%);
  animation: tpt-wiggle 1.15s ease-in-out infinite;
}
@keyframes tpt-wiggle{
  0%, 100%{ transform: rotate(0deg) translateY(0); }
  20%{ transform: rotate(-12deg) translateY(-1px); }
  40%{ transform: rotate(10deg) translateY(0); }
  60%{ transform: rotate(-8deg) translateY(-1px); }
  80%{ transform: rotate(6deg) translateY(0); }
}

@media (max-width: 768px){
  .day-nav-bar{ margin-bottom: 10px; gap: 8px; }
  .day-nav-bar .day-nav-btn{ width: 38px; height: 38px; }
  .reset-date-btn{ padding: 7px 9px; }
  .reset-date-btn .reset-text{ font-size: 12px; }
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(6, 1fr); gap: 18px; } }
@media (max-width: 700px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.prayer-item {
    background: rgba(255,255,255,.88);
    border-radius: 16px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 98px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(2,6,23,.06);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.prayer-item:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(2,6,23,.10);
}
.prayer-item.active {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-2));
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15,118,110,.28);
    border-color: rgba(212,175,55,.55);
}
.prayer-time { font-size: 22px; font-weight: 800; margin-bottom: 6px; color: var(--accent-green); letter-spacing: .3px; }
.prayer-item.active .prayer-time { color: white; }
.prayer-name { font-size: 14px; color: rgba(2,6,23,.62); font-weight: 650; letter-spacing: .2px; }
.prayer-item.active .prayer-name { color: rgba(255, 255, 255, 0.95); }
.prayer-item img.small-icon { width: 30px; height: 30px; margin-bottom: 8px; filter: brightness(0) saturate(100%) invert(40%) sepia(65%) saturate(20%) hue-rotate(180deg); }
.prayer-item.active img.small-icon { filter: brightness(0) saturate(100%) invert(100%); }

.occasions-section { display: none; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.occasions-section.visible { display: flex; }
.occasion-row { display: none; align-items: center; gap: 12px; padding: 12px; background: rgba(15,118,110,.06); border-radius: 14px; border: 1px dashed rgba(15,118,110,.35); }
.occasion-row.visible { display: flex; }
.occasion-icon { width: 26px; height: 26px; flex-shrink: 0; filter: brightness(0) saturate(100%) invert(29%) sepia(28%) saturate(970%) hue-rotate(135deg) brightness(93%) contrast(92%); }
.occasion-text { font-size: 13px; color: rgba(2,6,23,.78); font-weight: 600; }
.occasion-text{max-width:100%;word-break:break-word;}
.occasion-line{line-height:1.55;}
.occasion-line + .occasion-line{margin-top:4px;}

/* Talk of day / Verse of day banner */
.talkofday-banner{display:none;margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(188, 198, 172, 0.4);
  background: radial-gradient(600px 200px at 0% 0%, rgba(221, 234, 224, 0.18), transparent 60%), linear-gradient(180deg, rgba(15,118,110,.14), rgba(72, 134, 129, 0.04));
  box-shadow: 0 10px 24px rgba(13, 53, 7, 0.07);}
.talkofday-banner.visible{display:block;}
.talkofday-banner-header{display:flex;align-items:center;gap:10px;margin-bottom:8px;}
.talkofday-icon{width:22px;height:22px;flex-shrink:0;filter:brightness(0) saturate(100%) invert(29%) sepia(28%) saturate(970%) hue-rotate(135deg) brightness(93%) contrast(92%);}
.talkofday-label{font-weight:800;font-size:14px;letter-spacing:.2px;color: rgba(2,6,23,.82);}
.talkofday-tabs{
  display:inline-flex;
  align-items:center;
  gap: 0;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.14);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(2,6,23,.06);
}
.talkofday-tab{
  appearance:none;
  border: 0;
  background: transparent;
  color: rgba(2,6,23,.78);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 13px;
  letter-spacing: .15px;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.talkofday-tab:hover{ background: rgba(2,6,23,.05); }
.talkofday-tab:active{ transform: translateY(1px); }
.talkofday-tab:focus-visible{
  outline: 3px solid rgba(15,118,110,.28);
  outline-offset: 2px;
}
.talkofday-tab.is-active{
  background: rgba(15,118,110,.16);
  color: rgba(2,6,23,.88);
  box-shadow: 0 10px 18px rgba(15,118,110,.12);
}
.talkofday-tab.is-disabled{ opacity:.55; cursor:not-allowed; }
.talkofday-text{font-size:18px;line-height:1.9;color: rgba(2,6,23,.88);font-weight:650;word-break:break-word;}
.talkofday-panel[hidden]{display:none !important;}
@media (max-width: 768px){.talkofday-text{font-size: 15px;
    font-family: inter;
    font-weight: normal;}}

/* Top boxes (Verse of day + Upcoming occasions)
   - Desktop: 2 columns side-by-side
   - Mobile: stacked and perfectly centered */
.tpt-top-boxes{
  display:flex;
  flex-direction: column;
  gap: 12px;
  max-width:100%;
}
@media (min-width: 992px){
  .tpt-top-boxes{ flex-direction: row; align-items: stretch; }
  .tpt-top-boxes > *{ flex: 1 1 0; }
  .talkofday-banner{ margin-top: 0; }
  .upcoming-countdown-box{ margin-top: 0; }
}
@media (max-width: 768px){
  .tpt-top-boxes{ align-items: center; }
  .tpt-top-boxes > *{ margin-left: auto; margin-right: auto; max-width: 560px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { border: 2px solid #eee; border-top-color: var(--accent-green); border-radius: 50%; width: 18px; height: 18px; animation: spin 0.8s linear infinite; }

.bottom-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 992px) {
    .bottom-sections {
        flex-direction: row;
    }
    .month-events-section {
        flex: 0 0 28%;
        max-width: 28%;
    }
    .monthly-timings-section {
        flex: 0 0 68%;
        max-width: 68%;
    }
}

.month-events-section {
    background: rgba(255,255,255,.84);
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 26px rgba(2,6,23,.06);
}

.month-events-title {
    font-size: 17px;
    font-weight: 600;
    color: #474747;
    text-align: center;
    margin-bottom: 12px;
	padding: 10px;
}

.month-events-list {display: flex;flex-direction: column;gap: 0px;}
.event-row {display: flex;align-items: center;gap: 0px;padding: 7px;border-radius: 0px;border-bottom: 1px solid #eee;}
.event-day {font-weight: normal;min-width: 30px;color: #7a7a7a;     padding-right: 15px; font-size: 15px; margin-right: 5px;}
.event-text { color: #555; font-size: 15px; }
.no-events { text-align: center; color: var(--muted); font-style: italic; padding: 20px; }

.monthly-timings-section {
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 0px;
    border: 2px solid #ddd;
}

.monthly-timings-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: center;
    color: #333;
    margin-top: 10px;
	padding: 10px;
}

.monthly-timings-table-wrap {
    overflow-x: auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    /* Default: no vertical scroll limit on desktop; mobile rules below will handle it */
}

.monthly-timings-table-wrap:active { cursor: grabbing; }

@media (min-width: 992px) {
    .monthly-timings-table-wrap {
        overflow-x: visible;
    }
    .monthly-timings-table {
        width: 100% !important;
        min-width: unset !important;
    }
}

@media (max-width: 991px) {
    .monthly-timings-table {
        min-width: 780px;
    }
}

/* Mobile: allow vertical scrolling inside the monthly timings box (without needing "Daha fazla") */
@media (max-width: 768px){
  /* Collapsed state: limited height, both horizontal + vertical scrolling enabled */
  #tableWrapper.monthly-collapsed{
    max-height: 360px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Expanded: full height; keep horizontal scrolling available */
  #tableWrapper.monthly-expanded{
    max-height: none;
    overflow-y: visible;
  }
  /* If no state class is set, still allow vertical scrolling (safe default) */
  #tableWrapper{ overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* Optional nicer vertical scrollbar on mobile browsers that show it */
  #tableWrapper::-webkit-scrollbar{ height: 10px; width: 10px; }
}

.monthly-timings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84em;
    direction: ltr;
    user-select: none;
    -webkit-user-select: none;
    table-layout: fixed; 
}

.monthly-timings-table thead th {
    background-color: #f1f1f1;
    color: #444;
    padding: 9px 6px;
    border: 1px solid #ddd;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.monthly-timings-table tbody td {
    padding: 7px 5px;
    border: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
    line-height: 1.4;
    font-size: 15px;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.monthly-timings-table tbody tr:nth-child(even) { background-color: #fdfdfd; }
.monthly-timings-table tbody tr:hover { background-color: #f5f8ff; }

.monthly-timings-table-wrap::-webkit-scrollbar {
    height: 10px;
}
.monthly-timings-table-wrap::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.monthly-timings-table-wrap::-webkit-scrollbar-thumb {
    background: #c0e8cc;
    border-radius: 10px;
}
.monthly-timings-table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

#monthlyTimingsLoader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}



.dayweektext{
      background-color: #f0fdf4;
    color: #333;
    border-radius: 7px;
    padding: 2px 5px;
    border: 1px solid #16a34a;
    font-size: 10px;
}





#noticeRow{
        background-color: #fff9e7;
    border: 1px dashed #ffc582;
}




.monthly-timings-table .gregorian-col { line-height: 1.4; }
.monthly-timings-table .hijri-col {text-align: left;direction: ltr;}
.monthly-timings-table .hijri-day {
    display: inline-block;
    text-align: left;
    direction: ltr;
}






.date-input-wrap {
    position: relative;
    display: flex;
    gap: 6px;
    align-items: center;
}



.textmhejri {
color: #d35400;
  font-size: 13px;
  font-weight: 600;
  direction: ltr;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-style: italic;
}





#displayHijriFull {
  margin-bottom: 10px;
}





.tpt-gregorian-with-week{
 display: flex;
    flex-direction: row-reverse;
    justify-content: left;
    gap: 5px;
}
   


#displayWeekday {
    background-color: #f0fdf4;
    color: #333;
    border-radius: 7px;
    padding: 2px 5px;
    border: 1px solid #16a34a;
    font-size: 13px;
}

.city-name-with-namaz{
    font-weight: bold;
  font-family: inter;
  text-align: center;
  margin-top: 27px;
}



#monthlyTimingsTable .today-row {
    background-color: #e6f2ff !important;  
}
/* Footer */
.tpt-footer{margin-top:16px;padding-top:12px;border-top:1px solid #eaeaea;text-align:center;color:#666;font-size:12px;}


/* Upcoming countdown occasions */
.upcoming-countdown-box{
  width:100%;
  max-width:100%;
  padding:14px 16px;
  box-sizing:border-box;
  border-radius:14px;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.90));
  box-shadow: 0 12px 30px rgba(2,6,23,.12);
  border: 1px solid rgba(2,6,23,.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.upcoming-countdown-box::before{
  content:"";
  position:absolute;
  inset:0;
  /* Use the theme green */
  border-top:3px solid rgba(15,118,110,.55);
  pointer-events:none;
}
.upcoming-countdown-title{
  font-weight:900;
  font-size:14px;
  letter-spacing:.2px;
  margin-bottom:10px;
  color: rgba(2,6,23,.82);
  display:flex;
  align-items:center;
  gap:8px;
}
.upcoming-countdown-title::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgba(15,118,110,.70);
  box-shadow: 0 0 0 6px rgba(15,118,110,.12);
}
.upcoming-countdown-item{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:6px 0;
  border-top: 1px dashed rgba(2,6,23,.10);
}
.upcoming-countdown-item:first-child{border-top:none;padding-top:0;}
.upcoming-occasion{font-size: 15px;color: rgba(2,6,23,.88);}
.upcoming-date{white-space:nowrap;}
.upcoming-date-g{font-size:13px;opacity:.9;}
.upcoming-date-h{font-size:12px;opacity:.75;margin-left:6px;}
@media (max-width:768px){
  .upcoming-countdown-box{padding:12px 14px;}
  /* Mobile fix: allow long city/event/date strings to wrap instead of overflowing to the right */
  .upcoming-date{white-space:normal;}
  .upcoming-countdown-item{align-items:flex-start;}
  .upcoming-date-g{font-size:13px;}
  .upcoming-date-h{font-size:13px;}
}

/* Monthly timings: mobile "Daha fazla" button */
.monthly-more-btn{
  margin-top:10px;
  width:100%;
  border:none;
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
  letter-spacing:.2px;
  cursor:pointer;
  background: rgba(15,118,110,.10);
  color: rgba(2,6,23,.86);
  border: 1px dashed rgba(15,118,110,.35);
}
.monthly-more-btn:hover{filter:brightness(.98);}

/* Popular cities shortcut box */
.todayhistory-box{
  margin-top:16px;
  padding:14px 14px;
  border-radius:16px;
  border: 1px solid rgba(180,140,60,.35);
  background:
    radial-gradient(1200px 200px at 20% 0%, rgba(21,128,61,.10), transparent 55%),
    radial-gradient(900px 180px at 80% 100%, rgba(180,140,60,.10), transparent 55%),
    rgba(255,255,255,.90);
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
  position:relative;
  overflow:hidden;
}
.todayhistory-box:before{
  content:"";
  position:absolute;
  inset:-60px;
  background-image:
    repeating-linear-gradient(45deg, rgba(180,140,60,.06) 0 10px, rgba(21,128,61,.05) 10px 20px);
  opacity:.18;
  transform:rotate(2deg);
  pointer-events:none;
}
.todayhistory-header{display:flex;align-items:center;gap:10px;position:relative;}
.todayhistory-badge{
  width:34px;height:34px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  background: rgba(21,128,61,.10);
  border: 1px solid rgba(21,128,61,.20);
  color: rgba(21,128,61,.85);
  display: none;
}
.todayhistory-title{font-size:15px;font-weight:900;color:rgba(2,6,23,.84);}
.todayhistory-list{margin-top:10px;display:flex;flex-direction:column;gap:8px;position:relative;}
.todayhistory-line{
  display:block;
  position:relative;
 padding: 10px 9px 10px 9px;
  border-radius:14px;

}
.todayhistory-line:before{
  content:"✦";
  font-size:10px;
  opacity:.65;
  position:absolute;
  left: -3px;
  top: 11px;
}
.todayhistory-text{display:block;font-size: 15px;color:rgba(2,6,23,.84);}
.todayhistory-more{
  display:block;
  margin-top:6px;
  text-align:right;
  font-size:12px;
  font-weight:400;
  text-decoration:none;
  padding:0;
  border:none;
  background:none;
  color: rgba(21,128,61,.88);
}
.todayhistory-more:hover{filter:brightness(.98);}

.popular-cities-box{
  margin-top:16px;
  padding:14px 14px;
  border-radius:16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
}
.popular-cities-title{
  font-size:15px;
  font-weight:850;
  color: rgba(2,6,23,.84);
  margin-bottom:10px;
}
.popular-cities-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.city-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border: 1px dashed rgba(15,118,110,.35);
  background: rgba(15,118,110,.06);
  cursor:pointer;
  font-weight:750;
  color: rgba(2,6,23,.86);
}
.city-chip-icon{display:inline-flex;}
.city-chip:hover{filter:brightness(.98);}
@media (max-width:768px){
  .popular-cities-box{padding:12px 12px;}
  .city-chip{flex:1 1 auto;justify-content:center;}
}

.today-row {
  background: radial-gradient(600px 200px at 0% 0%, rgba(221, 234, 224, 0.18), transparent 60%), linear-gradient(180deg, rgba(15,118,110,.14), rgba(72, 134, 129, 0.04));
}
/* Extra (non-block) timings shown under the main grid (Sunset + Midnight) */
.extra-times{
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(2,6,23,.78);
}
.extra-time-item{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.12);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(2,6,23,.06);
}
.extra-time-item strong{font-weight: 600;}
.extra-time-val{font-variant-numeric: tabular-nums; font-weight: 600; margin-left: 6px;}

/* Hide secondary Hijri column when Hijri source is API */
.hijri-mode-api .monthly-timings-table th.hijri2-col,
.hijri-mode-api .monthly-timings-table td.hijri2-col {
    display: none;
}

/* -------------------------------------------------------------------------
   Full-page theme aligned with [fprtr_turkish_prayer_times]
   Keep the full-page features, but use the shortcode's paper/emerald/gold
   palette and its prayer-card proportions.
   ------------------------------------------------------------------------- */
:root {
  --accent-green: #0e5a47;
  --accent-green-2: #083e33;
  --accent-gold: #cf9f40;
  --muted: #6f7d75;
  --surface: #fffdf8;
  --surface-strong: #fffdf8;
  --border: #e8e2d5;
  --shadow: 0 12px 35px rgba(8, 62, 51, .07);
  --radius: 25px;
}

html,
body {
  color: #17352e;
  background: #f7f4ec;
  font-family: Arial, "Noto Sans", sans-serif;
}

body {
  padding: 22px 0;
  background: #f7f4ec;
}

.card-wrapper {
  width: min(1500px, calc(100% - 40px));
  max-width: 1500px;
  overflow: visible;
  background: #fffdf8;
  border: 1px solid #e8e2d5;
  border-radius: 25px;
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card-wrapper::before { display: none; }

.card {
  padding: 28px;
  background: transparent;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.card-header {
  border-bottom-color: #e8e2d5;
}

.current .title,
.current-time,
.prayer-time,
.monthly-timings-title,
.month-events-title,
.popular-cities-title,
.todayhistory-title {
  color: #0e5a47;
}

.heading .right {
  min-width: 172px;
  padding: 12px 14px;
  background: #f3efe5;
  border-radius: 14px;
}

.city-name-with-namaz {
  color: #17352e;
}

#displayWeekday,
.dayweektext {
  color: #77591f;
  background: #f4e6c5;
  border-color: #ead9b7;
  border-radius: 9px;
}

.grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.prayer-item {
  min-width: 0;
  min-height: 112px;
  padding: 13px 8px;
  color: #6f7d75;
  background: #fcfaf5;
  border: 1px solid #eee8dc;
  border-radius: 17px;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.prayer-item:hover {
  border-color: #ded5c5;
  box-shadow: 0 10px 22px rgba(62, 74, 66, .08);
  transform: translateY(-3px);
}

.prayer-item.active {
  color: #d9ece4;
  background: #0e5a47;
  border-color: #0e5a47;
  border-radius: 17px;
  box-shadow: 0 10px 24px rgba(14, 90, 71, .18);
  transform: translateY(-3px);
}

.prayer-time {
  margin-bottom: 4px;
  color: #17352e;
  font-size: 15px;
  font-weight: 800;
}

.prayer-name {
  overflow: hidden;
  width: 100%;
  color: inherit;
  font-size: 9.5px;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prayer-item img.small-icon {
  width: 27px;
  height: 27px;
  margin-bottom: 7px;
  opacity: .68;
  filter: sepia(20%) saturate(70%) hue-rotate(95deg);
}

.prayer-item.active img.small-icon {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.location-select,
.date-select,
input.city-input {
  min-height: 42px;
  color: #17352e;
  background: #fbf8f1;
  border: 1px solid #e8e2d5;
  border-radius: 12px;
}

.location-select:focus,
.date-select:focus,
input.city-input:focus {
  border-color: #0e5a47;
  box-shadow: 0 0 0 3px rgba(14, 90, 71, .11);
}

.day-nav-bar .day-nav-btn,
.reset-date-btn {
  color: #0e5a47;
  background: #fbf8f1;
  border-color: #e8e2d5;
  border-radius: 12px;
  box-shadow: none;
}

.occasion-row {
  color: #17352e;
  background: #fdfbf7;
  border: 1px solid #ede7dc;
  border-radius: 17px;
}

#noticeRow {
  background: #fffaf0;
  border: 1px solid #ead9b7;
}

.month-events-section,
.monthly-timings-section,
.popular-cities-box,
.todayhistory-box,
.upcoming-countdown-box {
  background: #fffdf8;
  border-color: #e8e2d5;
  border-radius: 17px;
  box-shadow: 0 10px 26px rgba(8, 62, 51, .06);
}

.monthly-timings-table thead th {
  color: #17352e;
  background: #f3efe5;
  border-color: #e8e2d5;
}

.monthly-timings-table tbody td {
  color: #17352e;
  border-color: #eee8dc;
}

.city-chip,
.extra-time-item {
  color: #17352e;
  background: #e9f1ed;
  border-color: #cbded5;
}

@media (min-width: 1024px) {
  .card-wrapper {
    width: min(1500px, calc(100% - 40px));
    max-width: 1500px;
    background: #fffdf8;
    border-radius: 25px;
    box-shadow: var(--shadow);
  }

  .card {
    max-width: none;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 699px) {
  body { padding: 0; }
  .card-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  .card { padding: 16px 13px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .prayer-item { min-height: 101px; padding-inline: 5px; border-radius: 15px; }
  .prayer-item img.small-icon { width: 24px; height: 24px; }
  .prayer-name { font-size: 12px; }
}

/* ------------------------------------------------------------
   PWA navigation shared with the Nur Rehberi theme
   ------------------------------------------------------------ */
body {
  display: block;
  width: 100%;
  min-height: 100vh;
  padding: 0 0 calc(100px + env(safe-area-inset-bottom, 0px));
  background: #f7f4ec;
}

.tpt-pwa-top {
  position: relative;
  z-index: 45;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  width: min(100%, 1040px);
  height: 98px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

.tpt-pwa-icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #17352e;
  background: #fffdf8;
  border: 1px solid #e8e2d5;
  border-radius: 15px;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
}

.tpt-pwa-icon-btn:hover {
  color: #0e5a47;
  background: #f8f5ed;
}

.tpt-pwa-icon-btn:focus-visible,
.tpt-pwa-brand:focus-visible,
.tpt-pwa-bottom a:focus-visible,
.tpt-pwa-menu a:focus-visible {
  outline: 3px solid rgba(14, 90, 71, .24);
  outline-offset: 2px;
}

.tpt-pwa-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #17352e;
  text-decoration: none;
}

.tpt-pwa-mark {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #f5d991;
  background: #0e5a47;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 7px 18px rgba(14, 90, 71, .16);
  font-size: 23px;
}

.tpt-pwa-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.tpt-pwa-brand strong {
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpt-pwa-bottom {
  position: fixed;
  z-index: 940;
  left: 50%;
  bottom: max(13px, env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 28px), 570px);
  height: 70px;
  padding: 7px 10px;
  transform: translateX(-50%);
  box-sizing: border-box;
  background: rgba(255, 253, 248, .96);
  border: 1px solid #d9d0c2;
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(36, 56, 48, .17);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tpt-pwa-bottom a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: #7b877f;
  border-radius: 16px;
  font-size: 9px;
  text-decoration: none;
}

.tpt-pwa-bottom a > span:first-child {
  font-size: 17px;
  line-height: 1;
}

.tpt-pwa-bottom a.is-current {
  color: #0e5a47;
  background: #e9f1ed;
  font-weight: 800;
}

.tpt-pwa-drawer-shade {
  position: fixed;
  z-index: 950;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(8, 29, 24, .45);
  transition: opacity .25s ease;
}

.tpt-pwa-drawer-shade.open {
  opacity: 1;
  pointer-events: auto;
}

.tpt-pwa-drawer {
  position: fixed;
  z-index: 960;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100vh;
  height: 100dvh;
  padding: 22px;
  transform: translateX(102%);
  box-sizing: border-box;
  overflow-y: auto;
  color: #17352e;
  background: #fffdf8;
  border: 0;
  box-shadow: -20px 0 50px rgba(8, 44, 35, .16);
  transition: transform .28s ease;
}

.tpt-pwa-drawer.open { transform: translateX(0); }
body.tpt-pwa-menu-open { overflow: hidden; }

.tpt-pwa-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tpt-pwa-drawer-head strong {
  font-family: Georgia, serif;
  font-size: 16px;
}

.tpt-pwa-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  margin-top: 24px;
  padding: 0 14px;
  color: #6f7d75;
  border: 1px solid #ddd5c6;
  border-radius: 15px;
  box-sizing: border-box;
}

.tpt-pwa-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #17352e;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.tpt-pwa-menu { margin-top: 18px; }

.tpt-pwa-menu-list,
.tpt-pwa-menu ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpt-pwa-menu li { margin: 0; }

.tpt-pwa-menu a {
  display: block;
  margin-bottom: 7px;
  padding: 14px;
  color: #17352e;
  background: #f5f1e8;
  border-radius: 13px;
  font-size: 12px;
  text-decoration: none;
}

.tpt-pwa-menu a:hover { background: #e9f1ed; }

.tpt-pwa-screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.card-wrapper { margin: 0 auto; }

@media (max-width: 699px) {
  body { padding: 0 0 calc(100px + env(safe-area-inset-bottom, 0px)); }
  .tpt-pwa-top {
    height: 84px;
    padding: 0 18px;
  }
  .tpt-pwa-brand { gap: 8px; }
  .tpt-pwa-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 21px;
  }
  .tpt-pwa-brand strong { font-size: 15px; }
}

@media (max-width: 380px) {
  .tpt-pwa-top { padding: 0 13px; gap: 8px; }
  .tpt-pwa-brand-copy strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .tpt-pwa-drawer,
  .tpt-pwa-drawer-shade { transition: none; }
}

/* -------------------------------------------------------------------------
   1.9.4 — exact İslami PWA chrome and matching full-page visual language.
   The ipwa-* rules below are copied from islami-pwa-for-superpwa 1.4.1.
   ------------------------------------------------------------------------- */
:root {
	--ipwa-green-950: #063e32;
	--ipwa-green-800: #0d604b;
	--ipwa-green-700: #13765d;
	--ipwa-green-100: #dff2ea;
	--ipwa-green-50: #eff8f4;
	--ipwa-gold: #c99a3d;
	--ipwa-ink: #17231f;
	--ipwa-muted: #6a7872;
	--ipwa-line: #e4ebe7;
	--ipwa-paper: #fffefa;
	--ipwa-bg: #f4f6f3;
	--ipwa-shadow: 0 8px 28px rgba(15, 61, 48, .09);
	--ipwa-radius: 20px;
	--accent-green: var(--ipwa-green-700);
	--accent-green-2: var(--ipwa-green-950);
	--accent-gold: var(--ipwa-gold);
	--muted: var(--ipwa-muted);
	--surface: var(--ipwa-paper);
	--surface-strong: var(--ipwa-paper);
	--border: var(--ipwa-line);
	--shadow: var(--ipwa-shadow);
	--radius: var(--ipwa-radius);
}

html {
	background: var(--ipwa-bg);
	scroll-behavior: smooth;
}

body.islami-pwa {
	margin: 0 !important;
	padding: 0 !important;
	background: var(--ipwa-bg) !important;
	color: var(--ipwa-ink) !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif !important;
	font-size: 16px !important;
	line-height: 1.7 !important;
	-webkit-font-smoothing: antialiased;
}

body.islami-pwa *, body.islami-pwa *::before, body.islami-pwa *::after { box-sizing: border-box; }
body.islami-pwa img { max-width: 100%; height: auto; }
body.islami-pwa a { color: inherit; text-decoration: none; }
body.islami-pwa button, body.islami-pwa input { font: inherit; }
body.islami-pwa button { color: inherit; }

.islami-pwa .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.ipwa-shell { min-height: 100vh; min-height: 100dvh; padding-bottom: 0; }
.ipwa-topbar {
	position: sticky; top: 0; z-index: 50;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	width: 100%; min-height: calc(64px + env(safe-area-inset-top));
	padding: env(safe-area-inset-top) 14px 0;
	color: #fff;
	background: linear-gradient(135deg, var(--ipwa-green-950), var(--ipwa-green-700));
	box-shadow: 0 4px 20px rgba(6, 62, 50, .18);
}

.ipwa-topbar::after {
	content: ""; position: absolute; inset: auto 0 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
}

.ipwa-brand { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; gap: 8px; font-weight: 750; letter-spacing: -.02em; }
.ipwa-brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; color: #f2cf80; }
.ipwa-icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 14px; background: rgba(255,255,255,.1); cursor: pointer; }
.ipwa-icon-button:hover, .ipwa-icon-button:focus-visible { background: rgba(255,255,255,.2); outline: 2px solid rgba(255,255,255,.65); outline-offset: 2px; }
.ipwa-icon { width: 23px; height: 23px; flex: 0 0 auto; }

/*
 * PWA-only chrome is hidden in ordinary browser/theme views at every
 * breakpoint. The green title bar stays visible in both modes.
 */
.ipwa-pwa-only { display: none !important; }
.ipwa-browser-only { display: none !important; }
html.fprtr-browser-mode .ipwa-browser-menu-button {
	display: grid !important;
	grid-column: 3;
	justify-self: end;
}
html.fprtr-browser-mode .fprtr-browser-drawer { display: block !important; }
html.fprtr-browser-mode .fprtr-browser-drawer-backdrop:not([hidden]) { display: block !important; }
html.fprtr-pwa-mode .ipwa-shell { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
html.fprtr-pwa-mode .ipwa-menu-button {
	display: grid !important;
	grid-column: 1;
	justify-self: start;
}
html.fprtr-pwa-mode .ipwa-search-button {
	display: grid !important;
	grid-column: 3;
	justify-self: end;
}
html.fprtr-pwa-mode .ipwa-drawer { display: block !important; }
html.fprtr-pwa-mode .ipwa-drawer-backdrop:not([hidden]) { display: block !important; }
html.fprtr-pwa-mode .ipwa-bottom-nav { display: grid !important; }

/* Normal browser drawer: shown on both desktop and mobile, opening rightward. */
.fprtr-browser-drawer-backdrop {
	position: fixed;
	z-index: 79;
	inset: 0;
	background: rgba(3,31,24,.48);
	backdrop-filter: blur(2px);
}
.fprtr-browser-drawer {
	position: fixed;
	z-index: 80;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(88vw, 360px);
	padding: calc(18px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
	overflow-y: auto;
	color: var(--ipwa-ink);
	background: var(--ipwa-paper);
	box-shadow: -12px 0 40px rgba(3,31,24,.2);
	transform: translateX(105%);
	transition: transform .25s ease;
}
.fprtr-browser-drawer.is-open { transform: translateX(0); }
.fprtr-browser-drawer .ipwa-drawer-head .ipwa-icon-button {
	color: var(--ipwa-green-800);
	background: var(--ipwa-green-50);
}
.fprtr-browser-drawer-nav {
	display: grid;
	gap: 7px;
	margin-top: 18px;
}
.fprtr-browser-drawer-nav a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 9px 13px;
	color: #394740;
	background: var(--ipwa-green-50);
	border: 1px solid var(--ipwa-line);
	border-radius: 13px;
	font-size: .92rem;
	font-weight: 650;
}
.fprtr-browser-drawer-nav a:hover,
.fprtr-browser-drawer-nav a:focus-visible {
	color: #fff;
	background: var(--ipwa-green-700);
	border-color: var(--ipwa-green-700);
	outline: none;
}
body.fprtr-browser-drawer-open { overflow: hidden !important; }

.ipwa-bottom-nav {
	position: fixed; z-index: 45; inset: auto 0 0;
	display: grid; grid-template-columns: repeat(4, 1fr); min-height: calc(67px + env(safe-area-inset-bottom));
	padding: 6px 10px env(safe-area-inset-bottom); border-top: 1px solid rgba(13,96,75,.13); background: rgba(255,255,255,.94); box-shadow: 0 -7px 25px rgba(6,62,50,.08); backdrop-filter: blur(14px);
}
.ipwa-bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #77847e; font-size: .7rem; font-weight: 650; }
.ipwa-bottom-nav .ipwa-icon { width: 22px; height: 22px; }
.ipwa-bottom-nav a.is-current { color: var(--ipwa-green-700); }
.ipwa-bottom-nav a.is-current::before { content: ""; position: absolute; top: -6px; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--ipwa-gold); }

.ipwa-search { display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--ipwa-line); border-radius: 14px; background: #fff; }
.ipwa-search .ipwa-icon { width: 19px; color: var(--ipwa-muted); }
.ipwa-search input[type="search"] { width: 100%; height: 46px; padding: 0; border: 0; outline: 0; color: var(--ipwa-ink); background: transparent; }

.ipwa-drawer-backdrop { position: fixed; z-index: 79; inset: 0; background: rgba(3,31,24,.48); backdrop-filter: blur(2px); }
.ipwa-drawer { position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); padding: calc(18px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; background: #fffefa; box-shadow: 12px 0 40px rgba(3,31,24,.2); transform: translateX(-105%); transition: transform .25s ease; }
.ipwa-drawer.is-open { transform: translateX(0); }
.ipwa-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; color: var(--ipwa-green-950); font-size: 1.1rem; }
.ipwa-drawer-head .ipwa-icon-button { color: var(--ipwa-green-800); background: var(--ipwa-green-50); }
.ipwa-drawer-nav { display: grid; gap: 4px; margin-top: 14px; }
.ipwa-drawer-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 9px 11px; border-radius: 13px; color: #394740; font-size: .9rem; font-weight: 650; }
.ipwa-drawer-nav a:hover, .ipwa-drawer-nav a:focus-visible { color: var(--ipwa-green-800); background: var(--ipwa-green-50); outline: none; }
.ipwa-drawer-nav .ipwa-icon { width: 21px; color: var(--ipwa-green-700); }
body.ipwa-drawer-open { overflow: hidden !important; }

/* Full-page prayer calendar mapped to the same PWA design tokens. */
.card-wrapper {
	width: min(calc(100% - 28px), 1500px);
	max-width: 1500px;
	margin: 20px auto;
	overflow: visible;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.card-wrapper::before { display: none; }
.card {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(18px, 3vw, 30px);
	color: var(--ipwa-ink);
	background: linear-gradient(145deg, #fffefa 30%, #f3faf6);
	border: 1px solid var(--ipwa-line);
	border-radius: var(--ipwa-radius);
	box-shadow: var(--ipwa-shadow);
}
.card, .card * { font-family: inherit; }

.heading { gap: 18px; margin-bottom: 20px; }
.heading .right {
	min-width: 172px;
	padding: 12px 14px;
	color: var(--ipwa-ink);
	background: var(--ipwa-green-50);
	border: 1px solid var(--ipwa-line);
	border-radius: 14px;
}
.current-time,
.prayer-time,
.monthly-timings-title,
.month-events-title,
.popular-cities-title,
.todayhistory-title { color: var(--ipwa-green-800); }
.countdown,
.upcoming-date,
.no-events { color: var(--ipwa-muted); }
.city-name-with-namaz { color: var(--ipwa-ink); }

#displayWeekday,
.dayweektext {
	color: #75591c;
	background: #fff9e9;
	border: 1px solid #ead8ad;
	border-radius: 11px;
}

.talkofday-banner,
.upcoming-countdown-box,
.month-events-section,
.monthly-timings-section,
.popular-cities-box,
.todayhistory-box {
	color: var(--ipwa-ink);
	background: var(--ipwa-paper);
	border: 1px solid var(--ipwa-line);
	border-radius: var(--ipwa-radius);
	box-shadow: var(--ipwa-shadow);
}
.talkofday-tab {
	color: var(--ipwa-green-800);
	background: var(--ipwa-green-50);
	border-color: var(--ipwa-line);
	border-radius: 12px;
}
.talkofday-tab:hover,
.talkofday-tab:focus-visible { background: var(--ipwa-green-100); }
.talkofday-tab.is-active {
	color: #fff;
	background: var(--ipwa-green-700);
	border-color: var(--ipwa-green-700);
}

.grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.prayer-item {
	min-width: 0;
	min-height: 112px;
	padding: 13px 8px;
	color: var(--ipwa-muted);
	background: var(--ipwa-paper);
	border: 1px solid var(--ipwa-line);
	border-radius: 18px;
	box-shadow: 0 5px 18px rgba(15,61,48,.055);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prayer-item:hover {
	transform: translateY(-2px);
	border-color: #b9d8cb;
	box-shadow: 0 9px 24px rgba(15,61,48,.12);
}
.prayer-item.active {
	color: #dff2ea;
	background: var(--ipwa-green-700);
	border-color: var(--ipwa-green-700);
	border-radius: 18px;
	box-shadow: 0 9px 24px rgba(15,61,48,.16);
	transform: translateY(-2px);
}
.prayer-time { margin-bottom: 4px; color: var(--ipwa-ink); font-size: 17px; font-weight: 600; }
.prayer-item.active .prayer-time { color: #fff; }
.prayer-name { color: inherit; }
.prayer-item img.small-icon { opacity: .72; filter: sepia(18%) saturate(80%) hue-rotate(95deg); }
.prayer-item.active img.small-icon { opacity: 1; filter: brightness(0) invert(1); }

.location-select,
.date-select,
input.city-input {
	min-height: 42px;
	color: var(--ipwa-ink);
	background: #fff;
	border: 1px solid var(--ipwa-line);
	border-radius: 14px;
}
.location-select:focus,
.date-select:focus,
input.city-input:focus {
	border-color: var(--ipwa-green-700);
	box-shadow: 0 0 0 3px rgba(19,118,93,.12);
}
.search-row label { color: var(--ipwa-muted); }

.day-nav-bar .day-nav-btn,
.reset-date-btn,
.monthly-more-btn {
	color: var(--ipwa-green-800);
	background: #fff;
	border: 1px solid var(--ipwa-line);
	border-radius: 14px;
	box-shadow: none;
}
.day-nav-bar .day-nav-btn:hover,
.monthly-more-btn:hover { color: #fff; background: var(--ipwa-green-700); border-color: var(--ipwa-green-700); }

.occasion-row {
	color: var(--ipwa-ink);
	background: var(--ipwa-paper);
	border: 1px solid var(--ipwa-line);
	border-radius: 16px;
}
#noticeRow { background: #fff9e9; border: 1px solid #ead8ad; }

.monthly-timings-table thead th {
	color: var(--ipwa-green-950);
	background: var(--ipwa-green-50);
	border-color: var(--ipwa-line);
}
.monthly-timings-table tbody td { color: var(--ipwa-ink); border-color: var(--ipwa-line); }
.monthly-timings-table tbody tr:nth-child(even) { background: rgba(239,248,244,.62); }
.monthly-timings-table tbody tr:hover { background: var(--ipwa-green-100); }
#monthlyTimingsTable .today-row,
.today-row { background: #fff5d9 !important; }

.city-chip,
.extra-time-item {
	color: var(--ipwa-green-800);
	background: var(--ipwa-green-50);
	border: 1px solid #dbe8e2;
	border-radius: 999px;
	box-shadow: none;
}
.city-chip:hover { color: #fff; background: var(--ipwa-green-700); border-color: var(--ipwa-green-700); }
.event-day,
.upcoming-countdown-title,
.upcoming-date-h,
.todayhistory-badge { color: var(--ipwa-gold); }
.tpt-footer { color: var(--ipwa-muted); border-color: var(--ipwa-line); }

@media (max-width: 640px) {
	.card-wrapper { width: min(calc(100% - 22px), 1500px); margin: 14px auto; }
	.card { padding: 14px; }
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.prayer-item { min-height: 101px; padding-inline: 5px; border-radius: 16px; }
	.prayer-item.active { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
