@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #D1FAE5;
    --secondary: #F3F4F6;
    --text-main: #111827;
    --text-muted: #6B7280;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --border: #E5E7EB;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.location-time {
    opacity: 0.9;
}

.prayer-times {
    display: flex;
    gap: 15px;
    background: rgba(0,0,0,0.15);
    padding: 4px 16px;
    border-radius: 50px;
}

.time-box {
    display: flex;
    gap: 6px;
    align-items: center;
}

.time-box .label {
    font-weight: 500;
    opacity: 0.7;
    font-size: 11px;
}

.time-box .time {
    font-weight: 700;
}

.current-date {
    font-weight: 600;
    color: #FCD34D;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.logo-text h1 {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 2px;
    display: inline-block;
    transition: color 0.25s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: width 0.25s ease;
}

.nav-links a.active::after {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--secondary);
    padding: 8px 16px;
    border-radius: 50px;
    gap: 10px;
}

.search-box i {
    color: var(--text-muted);
    font-size: 14px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    width: 160px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 560px;
    display: flex;
    align-items: flex-end;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.2) 0%, rgba(17, 24, 39, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    transform: translateY(60px);
}

.hero-text {
    color: white;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-text h2 {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.card {
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-right: 1px solid var(--border);
    transition: background-color 0.3s;
}

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

.card:hover {
    background-color: var(--bg-light);
}

.icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.card p {
    font-size: 13px;
    color: var(--text-muted);
}

.profile-img img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
}

.btn-sm {
    display: inline-block;
    background: var(--secondary);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 8px;
    transition: all 0.2s;
}

.btn-sm:hover {
    background: var(--primary);
    color: white;
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.socials {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--secondary);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s;
}

.socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Keuangan Section */
.infaq-section {
    padding: 100px 0 80px;
    background: var(--secondary);
}

.finance-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.finance-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.finance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.finance-card .icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-balance .icon-wrap { background: #E0E7FF; color: #4F46E5; }
.card-income .icon-wrap { background: #D1FAE5; color: #10B981; }
.card-expense .icon-wrap { background: #FEE2E2; color: #EF4444; }

.finance-details p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.finance-details h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.finance-report {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.finance-table {
    width: 100%;
    border-collapse: collapse;
}

.finance-table th {
    background: #F9FAFB;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.finance-table td {
    padding: 16px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.finance-table tr:hover {
    background: var(--bg-light);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #D1FAE5; color: #065F46; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.text-success { color: #10B981; font-weight: 700; }
.text-danger { color: #EF4444; font-weight: 700; }

/* News / Kegiatan Section */
.news-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.center-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Activity Grid (dynamic from Sheets) */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.activity-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    cursor: default;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.activity-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--secondary);
    cursor: pointer;
}

.activity-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-img-wrap img {
    transform: scale(1.08);
}

.img-fallback-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 64px;
    color: var(--primary-light);
    background: linear-gradient(135deg, #e8f5f0, #d1fae5);
}

.activity-content {
    padding: 24px;
}

.activity-content .meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-content h3 {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.activity-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.thumb-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.thumb-img:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.thumb-more {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Kategori Badge */
.kategori-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Bukti link button */
.btn-bukti {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-bukti:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Admin Button */
.btn-admin {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Card Header Layout */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.card-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trx-count-info {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--secondary);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Limit Dropdown Wrapper */
.limit-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.limit-wrap select {
    padding: 7px 28px 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236B7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s;
}

.limit-wrap select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Loading States */
.loading-cell, .error-cell {
    text-align: center;
    padding: 32px !important;
    color: var(--text-muted);
    font-size: 14px;
}

.error-cell { color: #EF4444; }

.loading-kegiatan, .error-state, .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 15px;
}

.empty-state i, .error-state i {
    font-size: 48px;
    opacity: 0.3;
}

/* Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

.spinner-btn {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

.news-card {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.news-card .img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .img-wrap img {
    transform: scale(1.08);
}

.tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card .content {
    padding: 24px;
}

.news-card .meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card h3 {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.news-card:hover h3 {
    color: var(--primary);
}

.news-card .author {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Feedback Section */
.feedback-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.feedback-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.feedback-info h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.feedback-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 16px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.method {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-dark);
}

.method i {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
}

.feedback-form-wrap form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
}

.alert.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #34D399;
}

.alert.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #F87171;
}

/* Footer */
.footer {
    background: var(--text-main);
    color: white;
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

.footer-inner {
    opacity: 0.85;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 12px;
    opacity: 1;
}

.footer-logo i {
    color: var(--primary);
    font-size: 24px;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-box {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    z-index: 1;
    transform: translateY(20px) scale(0.97);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-pin-box {
    width: 380px;
    text-align: center;
}

.modal-trx-box {
    width: 520px;
}

.modal-x {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-x:hover {
    background: #fee2e2;
    color: #dc2626;
}

.modal-pin-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.modal-pin-box h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.modal-pin-box p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}

.modal-trx-box h3 {
    font-size: 20px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pin-input {
    width: 100%;
    padding: 16px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    font-family: inherit;
    transition: border-color 0.3s;
    margin-bottom: 8px;
}

.pin-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.pin-error {
    color: #EF4444;
    font-size: 13px;
    font-weight: 600;
    min-height: 20px;
    margin-bottom: 4px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236B7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
}

/* ============================================
   LIGHTBOX SLIDER
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

/* Tombol Tutup */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.7);
    border-color: transparent;
    transform: scale(1.1);
}

/* Counter */
.lightbox-counter {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Wrapper gambar */
.lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 80vh;
}

.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Tombol Prev / Next */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

/* Dot Indicators */
.lightbox-dots {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 2;
}

.lb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.lb-dot.active {
    background: white;
    width: 22px;
    border-radius: 4px;
}

.lb-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    transform: translateY(20px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
    .card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .card:last-child {
        border-bottom: none;
    }
    .finance-cards {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-trx-box {
        width: 90vw;
    }
    .hero-content {
        transform: translateY(20px);
    }
    .infaq-section {
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
    }
    .prayer-times {
        flex-wrap: wrap;
        justify-content: center;
        background: transparent;
        padding: 0;
    }
    .time-box {
        background: rgba(0,0,0,0.1);
        padding: 4px 10px;
        border-radius: 4px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.3s ease-in-out;
        gap: 20px;
    }
    
    .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
    }
    
    .hero-text h2 {
        font-size: 32px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .modal-pin-box {
        width: 92vw;
        padding: 32px 24px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .feedback-container {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
    
    .finance-table th, .finance-table td {
        padding: 12px 16px;
        font-size: 13px;
    }
}
