:root {
    --primary: #6f4a9b;
    --dark: #5b3a32;
    --light: #f2ecff;
    --surface: #f8f2ff;
    --border: #d7c6ee;
}

html {
    scroll-behavior: smooth;
}

:where(section, footer)[id] {
    scroll-margin-top: 90px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background: var(--light);
}

.coming-soon {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0;
}

.coming-soon h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.coming-soon p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-header nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
}

.hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, rgba(111,74,155,0.55), rgba(88,56,130,0.4));
}

.hero .container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: min(100%, 420px);
    max-width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 6px solid rgba(255, 255, 255, 0.65);
}

.hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 1rem;
}

.hero .btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.story, .donation, .gallery {
    padding: 3rem 0;
}

.story-content p {
    line-height: 1.6;
}

.donation .container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.donation-form {
    background: var(--surface);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.donation-form label {
    display: block;
    font-weight: 600;
    margin-top: 1rem;
}

.donation-form input[type="text"],
.donation-form input[type="tel"],
.donation-form input[type="email"],
.donation-form input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-top: 0.4rem;
    background: #fff;
}

.preset-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preset {
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
}

.preset.active {
    background: var(--primary);
    color: #fff;
}

.custom-value {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.method-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.method-tabs button {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--primary);
    background: var(--surface);
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
}

.method-tabs button.active {
    background: var(--primary);
    color: #fff;
}

.payment-component {
    display: none;
}

.payment-component.active {
    display: block;
}

.card-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-row {
    display: flex;
    gap: 0.75rem;
}

.card-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-fields input {
    width: 100%;
}

.secure-note {
    font-size: 0.9rem;
    color: #4d3f75;
}

.secure-note::before {
    content: '\1F512';
    margin-right: 0.35rem;
}

@media (max-width: 600px) {
    .card-row {
        flex-direction: column;
    }
}

.hidden {
    display: none !important;
}

.btn-primary {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 0.85rem;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1.5rem;
}

.donation-counter {
    align-self: start;
}

.counter-item {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.counter-item span {
    font-size: 1.8rem;
    font-weight: 700;
}

.video-wrapper {
    margin-top: 1.5rem;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery figure {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.gallery img {
    width: 100%;
    border-radius: 0.75rem;
}

.site-footer {
    background: var(--surface);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

.site-footer p {
    margin: 0.4rem 0;
    text-align: center;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.is-visible {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 16, 49, 0.65);
}

.modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    width: min(720px, 90%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--dark);
}

.modal__content {
    margin-top: 1rem;
    line-height: 1.6;
}

.modal__content p {
    margin-bottom: 1rem;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .site-header nav {
        display: none;
    }
}
.admin-header {
    background: var(--dark);
    color: #fff;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.admin-header nav a {
    color: #fff;
    margin-left: 1rem;
    text-decoration: none;
}

.admin-header nav a.active {
    text-decoration: underline;
}

.admin-main form, .admin-main table {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.admin-main textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-top: 0.4rem;
}

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

.admin-main table th,
.admin-main table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.gallery-form {
    background: #fff;
    padding: clamp(1.5rem, 2vw, 2rem);
    border-radius: 1.25rem;
    box-shadow: 0 12px 32px rgba(111, 74, 155, 0.07);
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.gallery-form label {
    font-weight: 600;
}

.gallery-form input[type="text"],
.gallery-form input[type="url"],
.gallery-form input[type="number"] {
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border);
    background: #fff;
}

.gallery-form small {
    display: block;
    color: rgba(44, 22, 65, 0.65);
    margin-top: -0.25rem;
}

.gallery-form input[type="file"] {
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0.6rem;
    background: #fff;
}

.admin-form {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.admin-form__group {
    background: #fff;
    padding: clamp(1.5rem, 2vw, 2rem);
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgba(111, 74, 155, 0.08);
    display: grid;
    gap: 1.25rem;
}

.admin-form__group header {
    display: grid;
    gap: 0.35rem;
}

.admin-form__group header h2 {
    margin: 0;
}

.admin-form__group header p {
    margin: 0;
    color: rgba(44, 22, 65, 0.7);
}

.admin-form__group .stack {
    display: grid;
    gap: 0.5rem;
}

.admin-form__actions {
    display: flex;
    justify-content: flex-end;
}

.admin-form__actions .btn-primary {
    width: auto;
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.2rem;
    border-radius: 0.9rem;
    font-size: 1rem;
}

.info-card {
    background: linear-gradient(135deg, rgba(111,74,155,0.12), rgba(111,74,155,0.06));
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(58, 36, 84, 0.12);
    display: grid;
    gap: 1rem;
    max-width: 680px;
}

.info-card pre {
    background: rgba(255, 255, 255, 0.65);
    padding: 1rem;
    border-radius: 1rem;
    overflow-x: auto;
}

.info-card .btn-primary {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-self: start;
}

.gallery-form .btn-primary {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
}

.admin-main .cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 2rem;
}

.admin-main .cards article {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feedback {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

.feedback--success {
    background: #e6f9f0;
    color: #0a6f46;
}

.feedback--error {
    background: #fde4e4;
    color: #b51212;
}

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(111,74,155,0.18), rgba(88,56,130,0.12));
    padding: 2rem 1rem;
}

.login-shell {
    width: min(880px, 96%);
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 30px 70px rgba(57, 31, 91, 0.18);
    padding: clamp(2rem, 4vw, 3rem);
}

.login-card {
    display: grid;
    gap: 2rem;
}

.login-card__intro {
    display: grid;
    gap: 0.75rem;
}

.login-card__intro h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.login-card__intro p {
    margin: 0;
    color: rgba(36, 22, 52, 0.85);
    line-height: 1.6;
}

.badge {
    align-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(111,74,155,0.12);
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.35rem;
}

.form-field label {
    font-weight: 600;
}

.form-field input {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border);
    font-size: 1rem;
    background: #fff;
}

.form-field input:focus {
    outline: 3px solid rgba(111, 74, 155, 0.2);
    border-color: var(--primary);
}

.login-form .btn-primary {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    font-size: 1rem;
}

.filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filters select {
    padding: 0.5rem;
}
