:root {
    --bg-top: #fffaf1;
    --bg-bottom: #eef6ff;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --ink: #10213a;
    --muted: #5b6475;
    --line: rgba(15, 23, 42, 0.08);
    --accent: #f59e0b;
    --accent-deep: #d97706;
    --accent-soft: #fff1db;
    --accent-border: rgba(245, 158, 11, 0.22);
    --neutral-border: rgba(15, 23, 42, 0.14);
    --neutral-surface: rgba(255, 255, 255, 0.96);
    --success-soft: #d1fae5;
    --danger-soft: #fee2e2;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 24%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body.embed-mode {
    min-height: auto;
    background: transparent;
}

body .btn {
    --bs-btn-disabled-bg: #f6e7cf;
    --bs-btn-disabled-border-color: rgba(245, 158, 11, 0.16);
    --bs-btn-disabled-color: rgba(16, 33, 58, 0.48);
}

.site-navbar {
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.site-footer {
    color: var(--muted);
}

.footer-copy {
    font-size: 0.95rem;
}

.footer-copy a {
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 600;
}

.footer-copy a:hover,
.footer-copy a:focus {
    color: var(--accent);
}

.brand-mark {
    margin-inline: auto;
}

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
}

.card-soft {
    border: 1px solid var(--line);
    border-radius: 1.7rem;
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.08);
}

.hero-center {
    margin-bottom: 1.4rem;
}

.hero-card {
    overflow: hidden;
    position: relative;
}

.embed-mode main {
    padding-block: 0 !important;
}

.embed-mode main > .container {
    max-width: 100%;
    padding-inline: 0.35rem;
}

.embed-mode .hero-card,
.embed-mode .result-card {
    box-shadow: none;
}

.embed-mode .hero-card::before,
.embed-mode .result-card::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(59, 130, 246, 0.03));
}

.embed-mode .card-soft {
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.98);
}

.embed-mode .hero-center {
    margin-bottom: 1rem;
}

.embed-mode .hero-title.compact {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.embed-mode .hero-text.compact {
    max-width: 24rem;
    font-size: 0.96rem;
    margin-bottom: 1rem !important;
}

.embed-mode .form-shell {
    border-radius: 1.45rem;
    padding: 1.1rem;
    box-shadow: none !important;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(59, 130, 246, 0.06));
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-deep);
}

.hero-title {
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1.05;
    font-weight: 700;
}

.hero-title.compact {
    font-size: clamp(2rem, 5vw, 2.8rem);
}

.hero-text {
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-text.compact {
    max-width: 28rem;
    font-size: 1rem;
}

.form-shell {
    background: var(--surface-strong);
    border-radius: 2rem;
    padding: 1.6rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.date-stepper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.admin-stepper {
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.form-control-xl {
    min-height: 68px;
    border-radius: 999px;
    padding-inline: 1.35rem;
    font-size: 1.08rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
    background-color: #fff;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-select.form-control-xl {
    padding-right: 3rem;
}

.form-control-xl:focus {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 0.3rem rgba(245, 158, 11, 0.12);
}

.form-select.form-control-xl:disabled,
.form-control-xl:disabled {
    background-color: #fff;
    color: rgba(16, 33, 58, 0.55);
    opacity: 1;
    cursor: not-allowed;
}

.form-control-xl.is-valid {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.18);
}

.form-control-xl.is-invalid {
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.16);
}

.admin-textarea {
    border-radius: 1.3rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.admin-textarea:focus {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 0.3rem rgba(245, 158, 11, 0.12);
}

.btn {
    border-radius: 999px;
    padding-inline: 1.5rem;
    border-width: 1.5px;
    transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-xl {
    min-height: 64px;
    padding: 0.95rem 1.9rem;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn:disabled {
    opacity: 0.55;
    box-shadow: none;
}

.result-state {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-bottom: 1.15rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    padding: 0;
}

.result-state.success {
    background: radial-gradient(circle at 30% 30%, #ecfdf5, #a7f3d0);
    color: #047857;
}

.result-state.danger {
    background: radial-gradient(circle at 30% 30%, #fff1f2, #fecaca);
    color: #b91c1c;
}

.result-card {
    overflow: hidden;
    position: relative;
}

.result-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(255, 255, 255, 0.65), transparent 50%);
    pointer-events: none;
}

.result-icon {
    width: 96px;
    height: 96px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
}

.status-pill.success {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.status-pill.danger {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}

.result-date {
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.result-day {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
}

.result-copy {
    max-width: 31rem;
    margin-inline: auto;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.embed-mode .result-copy {
    max-width: 29rem;
}

.result-note {
    max-width: 32rem;
    margin-inline: auto;
    border-radius: 1.25rem;
    padding: 0.95rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.result-note-success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.result-note-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.embed-mode .result-note {
    max-width: 30rem;
}

.embed-mode .btn-xl {
    min-height: 56px;
    padding: 0.8rem 1.35rem;
}

.embed-mode .form-control-xl {
    min-height: 60px;
}

.embed-mode.embed-result-mode .card-body,
.embed-mode.embed-form-mode .card-body {
    padding: 1.4rem !important;
}

.flatpickr-alt-input {
    min-height: 68px;
    border-radius: 999px;
    padding-inline: 1.5rem;
}

.stat-card .display-6 {
    font-size: 2.1rem;
}

.stat-card {
    border-radius: 1.7rem;
}

.invalid-feedback {
    font-size: 0.92rem;
}

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

.table-responsive {
    border-radius: 1rem;
}

.col-lg-4 .card-soft,
.col-lg-8 .card-soft,
.col-12 .card-soft {
    height: 100%;
}

.table thead th {
    color: var(--muted);
    font-weight: 600;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.table td {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #e18d05, #ea580c);
    border-color: transparent;
    box-shadow: 0 20px 36px rgba(249, 115, 22, 0.28);
}

.btn-soft-outline {
    background: var(--neutral-surface);
    border-color: var(--neutral-border);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.btn-soft-outline:hover,
.btn-soft-outline:focus {
    background: #fff8ef;
    color: var(--ink);
    border-color: var(--accent-border);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.btn-cta-main {
    min-width: 210px;
}

.notify-modal {
    border: 0;
    border-radius: 1.75rem;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

.notify-modal .modal-header,
.notify-modal .modal-body {
    padding-inline: 1.5rem;
}

.notify-modal .modal-header {
    padding-top: 1.4rem;
}

.notify-modal .modal-body {
    padding-bottom: 1.5rem;
}


.pagination-soft .page-link {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.2rem;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    font-weight: 600;
    white-space: nowrap;
}

.pagination-soft .page-item.active .page-link {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 26px rgba(249, 115, 22, 0.22);
}

.pagination-soft .page-item.disabled .page-link {
    opacity: 0.45;
    box-shadow: none;
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(15, 23, 42, 0.06);
}

.pagination-soft .page-link:hover,
.pagination-soft .page-link:focus {
    color: var(--ink);
    background: #fff8ef;
    border-color: var(--accent-border);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.pagination-soft {
    flex-wrap: wrap;
    row-gap: 0.45rem;
}

.btn-outline-dark {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--neutral-border);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: #fff8ef;
    --bs-btn-hover-border-color: var(--accent-border);
    --bs-btn-focus-shadow-rgb: 245, 158, 11;
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: #fff3e2;
    --bs-btn-active-border-color: var(--accent-border);
    --bs-btn-disabled-color: rgba(16, 33, 58, 0.48);
    --bs-btn-disabled-border-color: rgba(15, 23, 42, 0.1);
}

.flatpickr-input[readonly] {
    background-color: #fff;
}

@media (max-width: 767px) {
    .brand-logo {
        height: 44px;
    }

    .form-shell {
        padding: 1.15rem;
        border-radius: 1.5rem;
    }

    .hero-card .card-body {
        padding: 1.1rem !important;
    }

    .hero-text.compact {
        font-size: 0.95rem;
        margin-bottom: 1.1rem !important;
    }

    .form-control-xl,
    .flatpickr-alt-input,
    .btn-xl {
        min-height: 58px;
    }

    .date-stepper {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .result-state {
        width: 92px;
        height: 92px;
    }

    .result-icon {
        width: 82px;
        height: 82px;
    }

    .card-soft {
        border-radius: 1.2rem;
    }

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

    .result-copy {
        font-size: 0.95rem;
    }

    .status-pill {
        min-height: 38px;
        font-size: 0.9rem;
    }

    .embed-mode main > .container {
        padding-inline: 0;
    }

    .embed-mode .card-soft {
        border-radius: 1.15rem;
    }

    .embed-mode .form-shell {
        padding: 0.9rem;
        border-radius: 1.1rem;
    }

    .embed-mode .hero-title.compact {
        font-size: 1.7rem;
    }

    .embed-mode .hero-text.compact {
        font-size: 0.92rem;
        margin-bottom: 0.9rem !important;
    }

    .embed-mode .form-control-xl,
    .embed-mode .btn-xl {
        min-height: 52px;
    }

    .embed-mode .result-state {
        width: 84px;
        height: 84px;
        margin-bottom: 0.9rem;
    }

    .embed-mode .result-icon {
        width: 72px;
        height: 72px;
    }

    .embed-mode.embed-result-mode .card-body,
    .embed-mode.embed-form-mode .card-body {
        padding: 1rem !important;
    }

    .pagination-soft {
        gap: 0.35rem;
    }

    .pagination-soft .page-link {
        min-width: 36px;
        height: 36px;
        margin: 0;
        padding: 0 0.75rem;
        font-size: 0.9rem;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    }

    .pagination-soft .page-item.active .page-link {
        box-shadow: 0 10px 18px rgba(249, 115, 22, 0.18);
    }

    .pagination-soft .page-item.disabled .page-link {
        padding-inline: 0.6rem;
    }
}

@media (min-width: 768px) {
    .hero-card .card-body {
        padding: 2rem !important;
    }

    .row.g-4 {
        --bs-gutter-x: 1.4rem;
        --bs-gutter-y: 1.4rem;
    }
}
