:root {
    --primary-color: #1a365d;
    --secondary-color: #D4A843;
    --bg-color: #f8fafc;
    --text-color: #334155;
    --main-font: 'Inter', Helvetica, sans-serif;
    --border-radius: 16px;
    
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --gold-gradient: linear-gradient(135deg, #D4A843 0%, #F6E27A 50%, #D4A843 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 54, 93, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(99, 179, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.3);
}

nav#dynamic-menu {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav#dynamic-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    padding: 0.25rem 0;
}

nav#dynamic-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.3s ease;
}

nav#dynamic-menu a:hover {
    color: var(--primary-color);
}

nav#dynamic-menu a:hover::after {
    width: 100%;
}

.lang-switcher button {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(203, 213, 225, 0.5);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    margin-left: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.lang-switcher button.active {
    background: var(--gold-gradient);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.lang-switcher button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--secondary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(26, 54, 93, 0.4) 100%);
    z-index: 1;
}

.hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-content .hero-badge {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4);
}

/* ===== MAIN CONTENT ===== */
main#app-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== SECTION BLOCK (Glassmorphism) ===== */
.section-block {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.section-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 0 2px 2px 0;
}

.section-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.85);
}

.section-block h2 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-block h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.section-block .main-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.section-block img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    cursor: pointer;
}

.section-block img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-xl);
}

/* ===== SUPPLEMENTARY TEXT (Buddhist Wisdom) ===== */
.supplementary-text {
    margin-top: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.08) 0%, rgba(212, 168, 67, 0.02) 100%);
    border-left: 3px solid var(--secondary-color);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
    color: #5a4a2a;
    position: relative;
}

.supplementary-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 12px;
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.supplementary-text::after {
    content: '"';
    position: absolute;
    bottom: -20px;
    right: 12px;
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===== IMAGE GRID (for sections with multiple images) ===== */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 0;
}

/* ===== FOOTER ===== */
#app-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2440 100%) !important;
    color: var(--white);
    padding: 3rem 2rem !important;
    text-align: center;
    margin-top: 4rem !important;
    position: relative;
    overflow: hidden;
}

#app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-gradient);
}

#app-footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

#app-footer p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

#footer-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 2;
}

#footer-contact strong {
    color: var(--secondary-color);
}

/* ===== LOADING ===== */
.loading {
    text-align: center;
    padding: 6rem 2rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 1rem auto;
    border: 3px solid rgba(212, 168, 67, 0.2);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== SCROLL ANIMATIONS ===== */
.section-block {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.section-block:nth-child(1) { animation-delay: 0.1s; }
.section-block:nth-child(2) { animation-delay: 0.2s; }
.section-block:nth-child(3) { animation-delay: 0.3s; }
.section-block:nth-child(4) { animation-delay: 0.4s; }
.section-block:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONTACT FORM ===== */
.contact-section {
    background: rgba(255, 255, 255, 0.8);
}

.contact-form-wrapper {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
    background: #ffffff;
}

.contact-submit {
    align-self: flex-start;
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.contact-form-status {
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(212, 168, 67, 0.06);
    border-radius: 12px;
    border: 1px dashed rgba(212, 168, 67, 0.3);
}

.contact-direct p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.contact-direct a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.contact-direct a:hover {
    border-bottom-color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-direct {
        padding: 1.5rem;
    }
}

/* ===== ADMIN HELP CONTENT ===== */
.admin-help-content {
    font-size: 0.95rem;
    line-height: 1.8;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
}

.admin-help-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
    padding-bottom: 0.4rem;
}

.admin-help-content p {
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.admin-help-content ul {
    margin: 0.25rem 0 1rem 1.5rem;
    list-style: disc;
}

.admin-help-content ul li {
    margin-bottom: 0.35rem;
    color: #4a5568;
}

.admin-help-content code {
    background: #edf2f7;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
    color: #2d3748;
}

.admin-help-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-x: auto;
    margin: 0.75rem 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-help-content strong {
    color: var(--primary-color);
}

.help-lang-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.help-lang-tab {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    background: transparent;
    color: #64748b;
}

.help-lang-tab.active {
    background: var(--gold-gradient);
    color: var(--primary-color);
}

.help-lang-tab:hover:not(.active) {
    background: #f1f5f9;
}

/* ===== ADMIN ZONES (1-4) ===== */
.admin-zone {
    border-left: 4px solid #ccc;
    transition: var(--transition);
}

.zone-copy {
    border-left-color: #3B82F6;
    background: rgba(59, 130, 246, 0.03);
}

.zone-ai {
    border-left-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.03);
}

.zone-paste {
    border-left-color: #10B981;
    background: rgba(16, 185, 129, 0.03);
}

.zone-images {
    border-left-color: #F59E0B;
    background: rgba(245, 158, 11, 0.03);
}

.zone-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.zone-label.en {
    display: block;
}

.zone-label.th {
    display: none;
}

html[lang="th"] .zone-label.en {
    display: none;
}

html[lang="th"] .zone-label.th {
    display: block;
}

.zone-btn {
    margin-top: 0.75rem;
}

.zone-actions-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

/* ===== AI ASSISTANT MODAL ===== */
.ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.ai-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    max-height: 80vh;
    overflow-y: auto;
}

.ai-modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.ai-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.ai-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 0.5rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: var(--transition);
}

.ai-option-btn:hover {
    background: var(--gold-gradient);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    transform: translateX(4px);
}

.ai-modal-actions {
    margin-top: 0.5rem;
}

.ai-prompt-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ai-prompt-result textarea {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* ===== IMAGE UPLOADER ===== */
.image-upload-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.75rem;
}

.img-folder-input {
    flex: 1;
    min-width: 150px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}

.img-folder-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

#img-file-input {
    flex: 2;
    min-width: 200px;
    font-size: 0.85rem;
}

.upload-status {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    min-height: 1.2rem;
}

.image-folder-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.folder-tab {
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    transition: var(--transition);
}

.folder-tab.active {
    background: var(--gold-gradient);
    color: var(--primary-color);
}

.folder-tab:hover:not(.active) {
    background: #e2e8f0;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.gallery-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.gallery-filename {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-copy-btn {
    display: block;
    width: 100%;
    padding: 0.35rem;
    font-size: 0.7rem;
    border-radius: 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.gallery-copy-btn:hover {
    background: var(--gold-gradient);
    color: var(--primary-color);
}

.gallery-header {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ===== ADMIN PANEL (existing) ===== */
.hidden {
    display: none !important;
}

#admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.admin-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    box-shadow: var(--shadow-xl);
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.admin-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

fieldset {
    border: 1px solid rgba(203, 213, 225, 0.5);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
}

legend {
    font-weight: 600;
    padding: 0 0.5rem;
    color: var(--primary-color);
}

.admin-inline-help {
    margin-bottom: 1.5rem;
}

.admin-inline-help details {
    background: rgba(212, 168, 67, 0.06);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.admin-inline-help summary {
    font-size: 0.9rem;
    color: var(--primary-color);
    cursor: pointer;
    user-select: none;
}

.admin-inline-help summary:hover {
    opacity: 0.8;
}

.admin-inline-help-content {
    padding: 0.75rem 0 0.25rem 0;
    font-size: 0.85rem;
    line-height: 1.7;
    cursor: auto;
}

.admin-inline-help-content p {
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 600;
    color: var(--primary-color);
}

.admin-inline-help-content ol {
    margin: 0.25rem 0 0.75rem 1.25rem;
}

.admin-inline-help-content ol li {
    margin-bottom: 0.2rem;
    color: #4a5568;
}

.admin-inline-help-content hr {
    border: none;
    border-top: 1px solid rgba(212, 168, 67, 0.15);
    margin: 0.75rem 0;
}

.admin-login-help {
    background: rgba(212, 168, 67, 0.06);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.7;
}

.admin-login-help p {
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 600;
    color: var(--primary-color);
}

.admin-login-help ol {
    margin: 0.25rem 0 0.75rem 1.25rem;
    padding-left: 0.5rem;
}

.admin-login-help ol li {
    margin-bottom: 0.2rem;
    color: #4a5568;
}

.admin-login-help code {
    background: #edf2f7;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: monospace;
    color: #2d3748;
}

.admin-login-help hr {
    border: none;
    border-top: 1px solid rgba(212, 168, 67, 0.15);
    margin: 0.75rem 0;
}

.password-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    flex: 1;
    margin-top: 0;
}

.toggle-pass-btn {
    background: #e2e8f0;
    border: 1px solid rgba(203, 213, 225, 0.5);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    line-height: 1;
    height: 40px;
    display: flex;
    align-items: center;
}

.toggle-pass-btn:hover {
    background: #cbd5e1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"], input[type="color"], input[type="password"] {
    margin-top: 0.5rem;
    padding: 0.5rem;
    width: 100%;
    border: 1px solid rgba(203, 213, 225, 0.5);
    border-radius: 8px;
    font-family: inherit;
}

input[type="color"] {
    height: 40px;
    padding: 0.2rem;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.5);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
}

.help-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.preset-buttons, .admin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn.primary {
    background: var(--gold-gradient);
    color: var(--primary-color);
}

.btn.secondary {
    background-color: #e2e8f0;
    color: var(--text-color);
}

.btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#admin-status {
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    nav#dynamic-menu {
        justify-content: center;
        gap: 0.75rem;
    }
    
    nav#dynamic-menu a {
        font-size: 0.85rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-block {
        padding: 1.5rem;
    }
    
    .section-block h2 {
        font-size: 1.5rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .supplementary-text {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo img {
        height: 36px;
        width: 36px;
    }
}