body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #0c1e2c;
    color: #fff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}
a {
  color: #9cd3ff;
  text-decoration: none;
}
a:hover{
 text-decoration: underline;
}
.main-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}
.bookmark-store{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap; /* kichik ekranda pastga tushadi */
  margin:15px;
}

.gplay-link img{ display:block;margin: 10px; }
.footer {
  margin: 15px;
  font-size:14px; 
  text-align:center; 
  opacity:.8;
}
.disclamer {
  font-size:12px; 
  text-align:center; 
  opacity:.8;
}
.circle-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px;
    margin-bottom: 20px;
    margin-top: 20px;
    gap: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    border-radius: 20px;
}

.circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #fff;
    color: #112d46;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px solid #3498db;
    transition: .3s;
}

.circle.active {
    border-color: #2ecc71;
    background: #1f3e5a;
    color: #fff;
    box-shadow: 0 0 30px #2ecc71;
}

.circle h2 {
    margin: 0;
    font-size: 22px;
    max-width: 130px;
}

.circle .time {
    font-size: 34px;
    font-weight: bold;
}

#reverseCountdown {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.countdown {
    font-size: 20px;
}

.region-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 15px;
}

.region-row form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

label {
    white-space: nowrap;
}

select {
    padding: 8px;
    font-size: 16px;
    max-width: 520px;
}

.lang-links a {
    color: #fff;
    text-decoration: underline;
    margin: 0 10px;
}

#allRegions {
    overflow: hidden;
    transition: max-height .4s ease, opacity .3s ease;
}

#allRegions.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

#allRegions.expanded {
    max-height: 99999px;
    opacity: 1;
    pointer-events: auto;
}

.toggle-btn {
    margin: 14px 0 0;
    padding: 10px 14px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #3aa1ff;
    background: #16344d;
    color: #fff;
    display: none;
}

/* === MOBIL: kamida 2 ta dumaloq bir qatorda tursin === */
@media (max-width:600px) {
    .circle-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
        /* 40px o‘rniga */
        justify-items: center;
        align-items: center;
    }

    .circle {
        width: min(44vw, 155px);
        height: min(44vw, 155px);
    }

    .circle h2 {
        font-size: 18px;
    }

    .circle .time {
        font-size: 26px;
    }

    #reverseCountdown {
        font-size: 16px;
    }

    .circle.current {
        border-color: #f1c40f;
        background: #2e4053;
        box-shadow: 0 0 15px #f1c40f;
    }
}

/* Juda tor ekranlarda ham 2 tadan qolishi uchun */
@media (max-width:380px) {
    .circle {
        width: min(46vw, 140px);
        height: min(46vw, 140px);
    }

    .circle h2 {
        font-size: 16px;
    }

    .circle .time {
        font-size: 22px;
    }

    #reverseCountdown {
        font-size: 14px;
    }
}

.lang-switch a {
    display: inline-block;
    margin: 4px 6px;
    color: #fff;
    text-decoration: underline
}

/* PERIOD NAV */
.period-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.period-nav a {
    padding: 6px 10px;
    border: 1px solid #2d7cc5;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    background: #14324a;
}

.period-nav a.active {
    background: #2d7cc5;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(45, 124, 197, .6);
    color: #000;
}

/* OY CHIPLARI */
.year-chips {
    margin: 20px;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap
}

.year-chips a {
    padding: 4px 8px;
    border: 1px dashed #2d7cc5;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    background: #0f2a40;
}

.year-chips a.selected {
    border-style: solid;
    background: #23547a;
}

.period-title {
    margin: 16px 0 8px;
    font-size: 18px;
    opacity: .9;
}

/* Jadval (ro‘yxat) */
.table-wrap {
    overflow-x: auto;
    max-width: 100%;
    margin-bottom: 20px;
    margin-top: 20px;
}

table.prayer-table {
    border-collapse: collapse;
    width: 100%;
    background: #0f2434;
    table-layout: fixed;
    min-width: 0;
}

table.prayer-table th,
table.prayer-table td {
    border: 1px solid #1e4e73;
    padding: 8px 10px;
    text-align: center;
}

table.prayer-table th:first-child,
table.prayer-table td:first-child {
    width: 22%;
}

table.prayer-table th:not(:first-child),
table.prayer-table td:not(:first-child) {
    width: auto;
}

@media (max-width: 600px) {
    table.prayer-table th {
        font-size: 10px;
        padding: 6px 0px;
    }

    table.prayer-table td {
        font-size: 13px;
        padding: 6px 0px;
    }
}


table.prayer-table th {
    position: sticky;
    top: 0;
    background: #153a55;
    z-index: 1;
}

table.prayer-table tbody tr:nth-child(even) {
    background: #1d3445;
}

table.prayer-table tbody tr:nth-child(odd) {
    background: #0c1e2c;
}

.muted {
    opacity: .9
}

a:focus,
button:focus,
select:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.bookmark-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px;
    font-family: Arial, sans-serif;
}

#bookmarkBtn {
    background: #ffb703;
    color: #000;
    border: none;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#bookmarkBtn:hover {
    background: #fb8500;
    transform: translateY(-2px);
}

.count-badge {
    background: #023047;
    color: #fff;
    padding: 8px 8px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    min-width: 45px;
    text-align: center;
}


/* Modal oynasi (ustiga chiqarish uchun z-index qo‘shildi) */
#bookmarkModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;

    z-index: 99999;
}

.modal-box {
    position: relative;
    /* stacking aniq bo‘lsin */
    z-index: 100000;
    /* modal fonidan ham tepada */
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 320px;
    text-align: center;
    font-family: Arial;
    color: #000;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.modal-close {
    background: #023047;
    color: #fff;
    padding: 8px 15px;
    border: none;
    margin-top: 12px;
    border-radius: 6px;
    cursor: pointer;
}

