/* ================================================
   Koperasi Desa Merah Putih Kepoh
   Main Stylesheet - Professional Design
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --merah: #C0392B;
    --merah-gelap: #922B21;
    --merah-muda: #F5B7B1;
    --emas: #D4AC0D;
    --emas-muda: #F9E79F;
    --hijau: #1E8449;
    --hijau-muda: #A9DFBF;
    --biru: #1A5276;
    --biru-muda: #D6EAF8;
    --putih: #FFFFFF;
    --krem: #FDF5E6;
    --abu-gelap: #2C3E50;
    --abu: #5D6D7E;
    --abu-muda: #ECF0F1;
    --border: #E8E8E8;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--abu-gelap);
    background: var(--putih);
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

a { color: var(--merah); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--merah-gelap); }

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.navbar-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--merah), var(--merah-gelap));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    font-weight: 900;
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
}

.navbar-logo::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    background: rgba(255,255,255,0.1);
}

.navbar-title h6 {
    font-size: 11px;
    font-weight: 500;
    color: var(--abu);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}

.navbar-title strong {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--abu-gelap);
    line-height: 1.2;
    display: block;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.navbar-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    color: var(--abu-gelap);
    transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    background: var(--merah);
    color: white;
}

.btn-nav-login {
    padding: 8px 20px !important;
    background: var(--abu-gelap) !important;
    color: white !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}

.btn-nav-login:hover {
    background: var(--biru) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
}

.hamburger span {
    width: 24px; height: 2px;
    background: var(--abu-gelap);
    border-radius: 2px;
    transition: var(--transition);
}

/* ====== HERO ====== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--abu-gelap) 0%, #1a252f 50%, var(--merah-gelap) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(192,57,43,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212,172,13,0.2) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,172,13,0.2);
    border: 1px solid rgba(212,172,13,0.4);
    color: var(--emas-muda);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--emas);
}

.hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.hero-stat .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--emas);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat .label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-group {
    position: relative;
    width: 380px;
    height: 420px;
}

.hero-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
}

.hero-card-main {
    width: 300px;
    top: 40px;
    left: 40px;
    background: linear-gradient(135deg, rgba(192,57,43,0.8), rgba(146,43,33,0.9));
}

.hero-card-small {
    width: 200px;
    bottom: 20px;
    right: 0;
    background: linear-gradient(135deg, rgba(212,172,13,0.8), rgba(180,140,10,0.9));
}

.hero-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-body);
    text-decoration: none;
}

.btn-primary {
    background: var(--merah);
    color: white;
    border-color: var(--merah);
}

.btn-primary:hover {
    background: var(--merah-gelap);
    border-color: var(--merah-gelap);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192,57,43,0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
    color: white;
}

.btn-gold {
    background: var(--emas);
    color: var(--abu-gelap);
    border-color: var(--emas);
}

.btn-gold:hover {
    background: #b8960b;
    color: white;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ====== SECTION ====== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--krem);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--merah);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '—';
    margin: 0 8px;
}

.section-title {
    color: var(--abu-gelap);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--abu);
    max-width: 560px;
    margin: 0 auto;
    font-size: 16px;
}

/* ====== LAYANAN CARDS ====== */
.layanan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.layanan-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.layanan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--merah), var(--emas));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.layanan-card:hover::before {
    transform: scaleX(1);
}

.layanan-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.layanan-card h4 {
    margin-bottom: 12px;
    color: var(--abu-gelap);
}

.layanan-card p {
    color: var(--abu);
    font-size: 14px;
    line-height: 1.7;
}

/* ====== BERITA CARDS ====== */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.berita-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.berita-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.berita-img {
    height: 180px;
    background: linear-gradient(135deg, var(--merah), var(--biru));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.berita-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

.berita-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-berita { background: var(--merah); color: white; }
.badge-pengumuman { background: var(--biru); color: white; }
.badge-program { background: var(--hijau); color: white; }

.berita-body {
    padding: 24px;
}

.berita-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--abu);
    margin-bottom: 10px;
}

.berita-body h4 {
    margin-bottom: 10px;
    color: var(--abu-gelap);
    font-size: 16px;
}

.berita-body h4 a:hover { color: var(--merah); }

.berita-body p {
    color: var(--abu);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====== PENGURUS ====== */
.pengurus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pengurus-card {
    text-align: center;
    padding: 36px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.pengurus-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--merah), var(--biru));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    border: 4px solid var(--krem);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.pengurus-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.pengurus-jabatan {
    color: var(--merah);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pengurus-periode {
    font-size: 12px;
    color: var(--abu);
    margin-top: 4px;
}

/* ====== STATS COUNTER ====== */
.stats-section {
    background: linear-gradient(135deg, var(--abu-gelap), #1a252f);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item .number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--emas);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ====== FOOTER ====== */
.footer {
    background: var(--abu-gelap);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 18px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-contact-item .icon { flex-shrink: 0; }

.footer-section h5 {
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--merah);
    display: inline-block;
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 8px; }
.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: var(--transition);
}

.footer-section ul li a:hover { color: var(--emas); padding-left: 4px; }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom strong { color: var(--emas); }

/* ====== ADMIN STYLES ====== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--abu-gelap);
    color: white;
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    background: var(--merah);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-brand-text { flex: 1; min-width: 0; }
.sidebar-brand-text strong { display: block; font-size: 13px; line-height: 1.3; }
.sidebar-brand-text span { font-size: 11px; color: rgba(255,255,255,0.5); }

.sidebar-nav { padding: 12px 0; }

.sidebar-group-label {
    padding: 16px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: white;
    background: rgba(255,255,255,0.06);
}

.sidebar-link.active {
    color: white;
    background: rgba(192,57,43,0.2);
    border-left-color: var(--merah);
}

.sidebar-link .icon { font-size: 16px; }

.admin-main {
    margin-left: 260px;
    flex: 1;
    background: #f4f6f9;
    min-height: 100vh;
}

.admin-topbar {
    background: white;
    height: 64px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.topbar-title { font-weight: 600; font-size: 16px; color: var(--abu-gelap); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.topbar-user:hover { background: var(--abu-muda); }

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--merah);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.admin-content { padding: 28px; }

/* ====== ADMIN STATS ====== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card-info { flex: 1; min-width: 0; }

.stat-card-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 12px;
    color: var(--abu);
    font-weight: 500;
}

.stat-card-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.change-up { color: var(--hijau); }
.change-down { color: var(--merah); }

/* ====== TABLES ====== */
.card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

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

.card-title { font-size: 15px; font-weight: 700; color: var(--abu-gelap); }
.card-body { padding: 24px; }

.table-wrapper { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead tr {
    background: #f8f9fa;
}

th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--abu);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfc; }

/* ====== BADGES ====== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: var(--abu-muda); color: var(--abu); }
.badge-primary { background: #cce5ff; color: #004085; }

/* ====== FORMS ====== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--abu-gelap);
    margin-bottom: 8px;
}

.form-label span.required { color: var(--merah); }

.form-control, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--abu-gelap);
    transition: var(--transition);
    background: white;
    appearance: none;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--merah);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ====== PAGINATION ====== */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding: 20px 0;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: white;
    color: var(--abu-gelap);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: var(--merah);
    color: white;
    border-color: var(--merah);
}

/* ====== LOGIN ====== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--abu-gelap) 0%, #1a252f 60%, var(--merah-gelap) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0L80 12v2L54 40h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

.login-box {
    background: white;
    border-radius: var(--radius-lg);
    width: 420px;
    padding: 48px 40px;
    position: relative;
    z-index: 1;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--merah), var(--merah-gelap));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(192,57,43,0.4);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .layanan-grid { grid-template-columns: repeat(2, 1fr); }
    .berita-grid { grid-template-columns: repeat(2, 1fr); }
    .pengurus-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-stats { max-width: 480px; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
}

@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .hamburger { display: flex; }
    .layanan-grid { grid-template-columns: 1fr; }
    .berita-grid { grid-template-columns: 1fr; }
    .pengurus-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-up { animation: fadeInUp 0.6s ease forwards; }
.fade-in { animation: fadeIn 0.4s ease forwards; }

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ====== UTILITIES ====== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-merah { color: var(--merah); }
.text-emas { color: var(--emas); }
.text-abu { color: var(--abu); }
.text-muted { color: var(--abu); font-size: 13px; }
.fw-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-8 { margin-top: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-100 { width: 100%; }
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid;
}
.alert-success { background: #d4edda; color: #155724; border-color: var(--hijau); }
.alert-danger { background: #f8d7da; color: #721c24; border-color: var(--merah); }
.alert-warning { background: #fff3cd; color: #856404; border-color: var(--emas); }
.alert-info { background: #d1ecf1; color: #0c5460; border-color: var(--biru); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--abu);
    margin-bottom: 24px;
}

.breadcrumb a { color: var(--merah); }
.breadcrumb .sep { color: var(--border); }

/* ====== MOBILE NAV ====== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 999;
    padding: 16px;
}

.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--abu-gelap);
    font-weight: 500;
    border-radius: var(--radius-sm);
}
.mobile-nav a:hover { background: var(--abu-muda); }
