.ramadhan-page {
    padding: 26px 0;
    max-width: 1040px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 14px;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.ramadhan-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
    margin-bottom: 14px;
}

.ramadhan-hero-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 6.6;
    object-fit: cover;
}

.ramadhan-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0) 30%, rgba(3, 7, 18, 0.7) 100%);
    pointer-events: none;
}

.ramadhan-hero-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ramadhan-hero-link {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 10px;
    min-height: 36px;
    max-width: 205px;
    backdrop-filter: blur(5px);
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.ramadhan-hero-link i {
    font-size: 0.88rem;
    opacity: 0.96;
}

.ramadhan-hero-link:hover {
    transform: translateY(-1px);
    background: rgba(30, 64, 175, 0.68);
    border-color: rgba(255, 255, 255, 0.48);
}

.ramadhan-hero-link.active {
    background: rgba(180, 83, 9, 0.76);
    border-color: rgba(253, 224, 71, 0.6);
}

.ramadhan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.ramadhan-card h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    color: var(--text-dark);
}

.ramadhan-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.9rem;
}

.ramadhan-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 0.9rem;
}

.ramadhan-table-wrap {
    margin-top: 12px;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.ramadhan-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

.ramadhan-table th,
.ramadhan-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.86rem;
}

.ramadhan-table th {
    background: rgba(59, 130, 246, 0.12);
    color: var(--text-dark);
    font-weight: 800;
}

.ramadhan-table tr:last-child td {
    border-bottom: 0;
}

.ramadhan-doa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ramadhan-doa-card {
    background: linear-gradient(155deg, rgba(16, 185, 129, 0.14), rgba(30, 64, 175, 0.12));
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 14px;
}

.ramadhan-doa-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--text-dark);
}

.ramadhan-doa-arabic {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.9;
    text-align: right;
    color: var(--text-dark);
}

.ramadhan-doa-latin {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.45;
}

.ramadhan-doa-arti {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.86rem;
    font-weight: 600;
}

.ramadhan-takjil-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ramadhan-takjil-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    padding: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ramadhan-takjil-card::before {
    content: "";
    position: absolute;
    top: -62px;
    right: -36px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0));
    pointer-events: none;
}

.ramadhan-takjil-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.35);
}

.ramadhan-takjil-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ramadhan-takjil-badge {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.ramadhan-takjil-card h3 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-dark);
}

.ramadhan-takjil-meta {
    display: grid;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.ramadhan-takjil-meta span {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.ramadhan-menu-wrap {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.ramadhan-menu-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

.ramadhan-menu-tab {
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-dark);
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.ramadhan-menu-tab i {
    font-size: 0.84rem;
}

.ramadhan-menu-tab:hover {
    transform: translateY(-1px);
}

.ramadhan-menu-tab.active {
    border-color: rgba(14, 116, 144, 0.5);
    background: linear-gradient(145deg, rgba(14, 116, 144, 0.18), rgba(16, 185, 129, 0.18));
}

.ramadhan-menu-panel {
    display: grid;
    gap: 7px;
}

.ramadhan-menu-item {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 10px;
    padding: 9px 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.38);
}

.ramadhan-menu-item-info h4 {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-dark);
}

.ramadhan-menu-item-info p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.ramadhan-menu-item-action {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.ramadhan-menu-item-action strong {
    font-size: 0.8rem;
    color: var(--text-dark);
}

.ramadhan-order-btn {
    border: 1px solid rgba(29, 78, 216, 0.42);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.2), rgba(2, 132, 199, 0.2));
    color: var(--text-dark);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 10px;
    cursor: pointer;
}

.ramadhan-order-btn:hover {
    border-color: rgba(29, 78, 216, 0.64);
}

.ramadhan-menu-empty {
    margin: 0;
    padding: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 10px;
}

.ramadhan-takjil-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ramadhan-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: var(--text-dark);
    background: rgba(59, 130, 246, 0.1);
}

.ramadhan-map-link {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(30, 64, 175, 0.34);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.16), rgba(2, 132, 199, 0.16));
    color: var(--text-dark);
    text-decoration: none;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 700;
}

.ramadhan-map-link:hover {
    border-color: rgba(30, 64, 175, 0.62);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.28), rgba(2, 132, 199, 0.24));
}

.ramadhan-order-note p strong {
    color: var(--text-dark);
}

.takjil-order-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(2, 6, 23, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.takjil-order-modal.show {
    display: flex;
}

.takjil-order-dialog {
    width: 100%;
    max-width: 620px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: var(--bg-card);
    padding: 14px;
    position: relative;
    box-shadow: 0 22px 38px rgba(15, 23, 42, 0.35);
}

.takjil-order-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.takjil-order-dialog h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--text-dark);
}

.takjil-order-form {
    display: grid;
    gap: 10px;
}

.takjil-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.takjil-order-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
}

.takjil-order-form input,
.takjil-order-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 0.84rem;
    background: var(--bg-card);
    color: var(--text-dark);
}

.takjil-order-form input[readonly] {
    background: rgba(148, 163, 184, 0.14);
}

.takjil-order-form textarea {
    resize: vertical;
}

.takjil-order-total {
    margin-top: 2px;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.takjil-order-total strong {
    color: var(--text-dark);
}

.takjil-order-submit {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(145deg, #1d4ed8, #0284c7);
    color: #fff;
    font-weight: 800;
    font-size: 0.84rem;
    padding: 10px 12px;
    cursor: pointer;
}

.takjil-order-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.takjil-order-toast {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 5100;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: #047857;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.3);
    display: none;
}

.takjil-order-toast.show {
    display: inline-flex;
}

.takjil-order-toast.is-error {
    background: #b91c1c;
}

[data-theme="dark"] .ramadhan-card,
[data-theme="dark"] .ramadhan-takjil-card,
[data-theme="dark"] .ramadhan-table-wrap {
    background: #111;
    border-color: #222;
}

[data-theme="dark"] .ramadhan-card h2,
[data-theme="dark"] .ramadhan-doa-card h3,
[data-theme="dark"] .ramadhan-takjil-card h3,
[data-theme="dark"] .ramadhan-table th,
[data-theme="dark"] .ramadhan-doa-arabic,
[data-theme="dark"] .ramadhan-doa-arti,
[data-theme="dark"] .ramadhan-tag,
[data-theme="dark"] .ramadhan-menu-tab,
[data-theme="dark"] .ramadhan-menu-item-info h4,
[data-theme="dark"] .ramadhan-menu-item-action strong,
[data-theme="dark"] .ramadhan-order-btn,
[data-theme="dark"] .takjil-order-dialog h3,
[data-theme="dark"] .takjil-order-form input,
[data-theme="dark"] .takjil-order-form textarea,
[data-theme="dark"] .takjil-order-total strong,
[data-theme="dark"] .ramadhan-order-note p strong {
    color: #fff;
}

[data-theme="dark"] .ramadhan-table th {
    background: rgba(30, 64, 175, 0.26);
}

[data-theme="dark"] .ramadhan-table td {
    color: #d1d5db;
}

[data-theme="dark"] .ramadhan-doa-card {
    background: linear-gradient(155deg, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.2));
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .ramadhan-tag {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(30, 64, 175, 0.32);
}

[data-theme="dark"] .ramadhan-menu-tab {
    border-color: rgba(148, 163, 184, 0.26);
    background: rgba(30, 41, 59, 0.7);
}

[data-theme="dark"] .ramadhan-menu-tab.active {
    border-color: rgba(14, 165, 233, 0.52);
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.24), rgba(16, 185, 129, 0.24));
}

[data-theme="dark"] .ramadhan-menu-item {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.58);
}

[data-theme="dark"] .ramadhan-order-btn {
    border-color: rgba(56, 189, 248, 0.46);
    background: linear-gradient(145deg, rgba(30, 64, 175, 0.34), rgba(2, 132, 199, 0.34));
}

[data-theme="dark"] .takjil-order-dialog {
    background: #111;
    border-color: #222;
}

[data-theme="dark"] .takjil-order-form input,
[data-theme="dark"] .takjil-order-form textarea {
    background: #111;
    border-color: #2a2a2a;
}

[data-theme="dark"] .takjil-order-form label,
[data-theme="dark"] .takjil-order-total {
    color: #9ca3af;
}

[data-theme="dark"] .ramadhan-takjil-badge {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.3), rgba(16, 185, 129, 0.28));
    border-color: rgba(148, 163, 184, 0.26);
}

[data-theme="dark"] .ramadhan-map-link {
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, 0.3);
    background: linear-gradient(145deg, rgba(30, 64, 175, 0.34), rgba(3, 105, 161, 0.34));
}

@media (max-width: 900px) {
    .ramadhan-page {
        padding: 20px 12px;
    }

    .ramadhan-hero-media {
        aspect-ratio: 16 / 9.6;
    }

    .ramadhan-hero-nav {
        left: 8px;
        right: 8px;
        bottom: 8px;
        gap: 6px;
    }

    .ramadhan-hero-link {
        font-size: 0.7rem;
        padding: 5px 8px;
        min-height: 32px;
        gap: 6px;
    }

    .ramadhan-doa-grid,
    .ramadhan-takjil-grid {
        grid-template-columns: 1fr;
    }

    .takjil-order-grid {
        grid-template-columns: 1fr;
    }

    .takjil-order-dialog {
        padding: 12px;
    }
}
