*
{
    box-sizing: border-box;
}

html
{
    font-size: 16px;
}

body
{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.theme-light
{
    background-color: #f5f7fb;
    color: #1f2937;
}

body.theme-dark
{
    background-color: #111827;
    color: #e5e7eb;
}

a
{
    color: inherit;
    text-decoration: none;
}

.site-shell
{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header
{
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    backdrop-filter: blur(8px);
}

.site-main
{
    flex: 1;
    padding: 32px 0;
}

.site-footer
{
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    padding: 20px 0;
}

.container
{
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

.header-row
{
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-link
{
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-text
{
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

.card
{
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 16px;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body.theme-dark .card
{
    background-color: rgba(31, 41, 55, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.page-title
{
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 2rem;
}

.section-title
{
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.text-muted
{
    opacity: 0.85;
}

.button
{
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.button:hover
{
    opacity: 0.92;
}

.button:active
{
    transform: translateY(1px);
}

.button-primary
{
    background-color: #2563eb;
    color: #ffffff;
}

.button-secondary
{
    background-color: #6b7280;
    color: #ffffff;
}

.form-row
{
    margin-bottom: 18px;
}

.form-label
{
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-input,
.form-textarea,
.form-select
{
    width: 100%;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #111827;
}

body.theme-dark .form-input,
body.theme-dark .form-textarea,
body.theme-dark .form-select
{
    background-color: #1f2937;
    color: #f9fafb;
    border-color: rgba(209, 213, 219, 0.25);
}

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

.checkbox-row
{
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.flash-message
{
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: bold;
}

.flash-success
{
    background-color: rgba(34, 197, 94, 0.15);
    color: #166534;
}

.flash-error
{
    background-color: rgba(239, 68, 68, 0.15);
    color: #991b1b;
}

body.theme-dark .flash-success
{
    color: #bbf7d0;
}

body.theme-dark .flash-error
{
    color: #fecaca;
}

.grid-two
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px)
{
    .grid-two
    {
        grid-template-columns: 1fr;
    }

    .header-row
    {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 16px 0;
    }
}

.hero-block
{
    margin-bottom: 24px;
}

.lead-text
{
    margin: 0;
    font-size: 1.05rem;
    opacity: 0.9;
}

.terms-card
{
    margin-bottom: 24px;
}

.terms-content
{
    font-size: 1rem;
}

.terms-content p
{
    margin-top: 0;
    margin-bottom: 14px;
}

.terms-list
{
    margin-top: 0;
    margin-bottom: 18px;
    padding-left: 22px;
}

.terms-list li
{
    margin-bottom: 8px;
}

.subsection-title
{
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.payment-notice
{
    font-weight: bold;
}

.acceptance-card
{
    margin-bottom: 24px;
}

.acceptance-row
{
    font-size: 1rem;
    line-height: 1.6;
}

.form-checkbox
{
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.proceed-button-wrapper
{
    margin-top: 18px;
}

.is-hidden
{
    display: none;
}

.button-large
{
    padding: 14px 22px;
    font-size: 1rem;
}
.form-card
{
    margin-bottom: 24px;
}

.validation-errors
{
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 12px;
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.validation-errors-title
{
    margin-bottom: 10px;
    font-weight: bold;
}

.validation-errors-list
{
    margin: 0;
    padding-left: 20px;
}

.validation-errors-list li
{
    margin-bottom: 6px;
}

body.theme-dark .validation-errors
{
    color: #fecaca;
}

.honeypot-field
{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.header-actions
{
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-nav
{
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-nav-link
{
    font-size: 0.95rem;
    font-weight: bold;
    opacity: 0.9;
}

.admin-nav-link:hover
{
    opacity: 1;
    text-decoration: underline;
}

.admin-user-name
{
    font-size: 0.95rem;
    opacity: 0.85;
}

.login-card
{
    max-width: 520px;
    margin: 0 auto 24px auto;
}

.admin-dashboard-grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dashboard-stat-card
{
    min-height: 140px;
}

.dashboard-stat-title
{
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
}

.dashboard-stat-value
{
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.dashboard-stat-text
{
    margin-top: 10px;
    margin-bottom: 0;
    opacity: 0.85;
}

@media (max-width: 768px)
{
    .admin-dashboard-grid
    {
        grid-template-columns: 1fr;
    }
}

.admin-list-card
{
    margin-bottom: 24px;
}

.filter-form
{
    margin-top: 12px;
}

.filter-button-row
{
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.button-link
{
    text-align: center;
    text-decoration: none;
}

.admin-table-card
{
    margin-bottom: 24px;
}

.table-header-row
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.table-section-title
{
    margin-bottom: 0;
}

.table-results-count
{
    font-size: 0.95rem;
    opacity: 0.85;
}

.table-wrapper
{
    width: 100%;
    overflow-x: auto;
}

.admin-table
{
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.admin-table th,
.admin-table td
{
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    vertical-align: top;
}

.admin-table th
{
    font-size: 0.95rem;
    font-weight: bold;
}

.admin-table td
{
    font-size: 0.95rem;
}

.button-small
{
    padding: 9px 14px;
    font-size: 0.92rem;
}

.empty-state-text
{
    margin: 0;
    opacity: 0.85;
}

.request-details-card
{
    margin-bottom: 24px;
}

.details-grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.details-item
{
    border: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 12px;
    padding: 14px;
}

.details-label
{
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.85;
}

.details-value
{
    font-size: 1rem;
    word-break: break-word;
}

.details-block
{
    margin-bottom: 20px;
}

.details-text-block
{
    border: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 12px;
    padding: 14px;
    white-space: normal;
    word-break: break-word;
}

.details-actions
{
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px)
{
    .details-grid
    {
        grid-template-columns: 1fr;
    }
}

.request-edit-card
{
    margin-bottom: 24px;
}

.admin-checkbox-row
{
    min-height: 48px;
    padding-top: 34px;
}

.request-comments-card
{
    margin-bottom: 24px;
}

.comments-list
{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item
{
    border: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 12px;
    padding: 14px;
}

.comment-meta
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.comment-author
{
    font-weight: bold;
}

.comment-date
{
    font-size: 0.92rem;
    opacity: 0.8;
}

.comment-text
{
    white-space: normal;
    word-break: break-word;
    line-height: 1.6;
}

.success-state-card
{
    margin-bottom: 24px;
}

.status-badge,
.paid-badge
{
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

.status-default
{
    background-color: rgba(107, 114, 128, 0.18);
}

.status-open
{
    background-color: rgba(59, 130, 246, 0.18);
}

.status-resolved
{
    background-color: rgba(34, 197, 94, 0.18);
}

.status-abandoned
{
    background-color: rgba(245, 158, 11, 0.18);
}

.status-refused
{
    background-color: rgba(239, 68, 68, 0.18);
}

.paid-yes
{
    background-color: rgba(34, 197, 94, 0.18);
}

.paid-no
{
    background-color: rgba(107, 114, 128, 0.18);
}
