* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    cursor: pointer;
}

.tab-active {
    border-bottom: 3px solid #667eea;
    color: #667eea;
    font-weight: 600;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.toast-success {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

.toast-error {
    background: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-secondary:hover {
    background: #4b5563;
}

input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.inline-flex {
    display: inline-flex;
    align-items: center;
}

.space-x-4>*+* {
    margin-left: 1rem;
}

.flex-1 {
    flex: 1;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-800 {
    color: #1f2937;
}

.text-indigo-600 {
    color: #4f46e5;
}

.text-purple-600 {
    color: #7c3aed;
}

.text-pink-600 {
    color: #db2777;
}

.bg-indigo-50 {
    background-color: #eef2ff;
}

.bg-purple-50 {
    background-color: #f5f3ff;
}

.bg-pink-50 {
    background-color: #fdf2f8;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.w-full {
    width: 100%;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.object-contain {
    object-fit: contain;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.space-x-4>*+* {
    margin-left: 1rem;
}

.space-x-8>*+* {
    margin-left: 2rem;
}

.border-b {
    border-bottom: 1px solid #e5e7eb;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FFCC2A 0%, #A9CF46 100%);
    min-height: 100vh;
}

.landing-container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 5px;
}

.two-columns {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    width: 100%;
}

.illustration-side {
    flex: 1;
    background: linear-gradient(135deg, #FFCC2A 0%, #A9CF46 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.illustration-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1%, transparent 1%);
    background-size: 50px 50px;
    pointer-events: none;
}

.illustration-header {
    position: relative;
    z-index: 2;
}

.illustration-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-icon i {
    color: white;
    font-size: 24px;
}

.library-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.library-subname {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 4px;
}

.library-address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 8px;
}

.illustration-middle {
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.illustration-image {
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-image img {
    max-width: 450px;
    max-height: 450px;
    padding: 10px;
    display: block;
    margin: 0 auto;
}

.illustration-image i {
    font-size: 100px;
    color: white;
    opacity: 0.9;
    display: block;
    margin: 0 auto;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.illustration-middle h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.illustration-middle p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
}

.illustration-quote {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.illustration-quote .quote-text {
    color: white;
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 12px;
}

.illustration-quote .quote-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* ============================================ */
/* MODAL POPUP STYLES - Foto & Nama di Tengah */
/* ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 32px;
    max-width: 500px;
    width: 90%;
    animation: modalFadeIn 0.3s ease;
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #FFCC2A 0%, #A9CF46 100%);
    padding: 20px 24px;
    border-radius: 32px 32px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-header .close-modal {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-header .close-modal:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

/* Container untuk foto dan nama - dipusatkan */
.member-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;      /* Memusatkan foto dan nama */
}

/* FOTO - dipusatkan */
.modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    display: block;
}

/* NAMA - dipusatkan */
.modal-member-name {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    text-align: center;       /* Teks nama di tengah */
}

/* Form group - tetap rata kiri */
.modal-form-group {
    margin: 20px 0;
    text-align: left;
    width: 100%;              /* Lebar penuh */
}

.modal-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.modal-form-group label i {
    margin-right: 8px;
    color: #667eea;
}

.modal-form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.3s ease;
}

.modal-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Terms - tetap rata kiri */
.modal-terms {
    margin: 20px 0;
    text-align: left;
    width: 100%;              /* Lebar penuh */
}

.modal-terms label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
}

.modal-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.modal-terms a {
    color: #667eea;
    text-decoration: none;
}

/* Tombol - lebar penuh */
.modal-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.5);
}

.form-side {
    flex: 1;
    padding: 48px;
    background: white;
    overflow-y: auto;
    max-height: 90vh;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.datetime-box {
    text-align: right;
}

.current-date {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.current-time {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mini-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.mini-stat {
    flex: 1;
    background: #f9fafb;
    border-radius: 20px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.mini-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.mini-stat .stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.mini-stat .stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
}

.mini-stat .stat-label {
    font-size: 12px;
    color: #6b7280;
}

.form-tabs {
    display: flex;
    gap: 12px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 60px;
    margin-bottom: 32px;
}

.form-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.form-tab i {
    margin-right: 8px;
}

.form-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 16px;
    accent-color: #667eea;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.full-width {
    grid-column: span 2;
}

.terms-group {
    margin: 24px 0;
}

.terms-group label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
}

.terms-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.terms-group a {
    color: #667eea;
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.flex-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.toast-success,
.toast-error {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 16px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .two-columns {
        flex-direction: column;
        border-radius: 32px;
    }

    .illustration-side {
        padding: 32px;
        text-align: center;
    }

    .illustration-header .logo {
        justify-content: center;
    }

    .illustration-middle p {
        max-width: 100%;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .form-header {
        flex-direction: column;
        text-align: center;
    }

    .datetime-box {
        text-align: center;
    }

    .mini-stats {
        flex-direction: column;
    }
}