*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--brand);
}

[hidden] {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

hr {
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

code,
pre {
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

pre {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.95);
    color: #0f172a;
}

code {
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

.position-fixed {
    position: fixed !important;
}

.end-0 {
    right: 0 !important;
}

.border-0 {
    border: 0 !important;
}

.shadow-sm {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07) !important;
}

.shadow {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14) !important;
}

.rounded-3 {
    border-radius: 18px !important;
}

.m-3 {
    margin: 1rem !important;
}

.m-auto {
    margin: auto !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 2rem !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.text-center {
    text-align: center !important;
}

.text-white {
    color: #fff !important;
}

.text-dark {
    color: #0f172a !important;
}

.text-muted {
    color: #64748b !important;
}

.text-primary {
    color: #b7791f !important;
}

.text-secondary {
    color: #475569 !important;
}

.text-success {
    color: #15803d !important;
}

.text-danger {
    color: #dc2626 !important;
}

.text-warning {
    color: #b45309 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.bg-warning {
    background-color: #f5bf60 !important;
}

.bg-success {
    background-color: #16a34a !important;
}

.bg-danger {
    background-color: #dc2626 !important;
}

.bg-info {
    background-color: #64748b !important;
}

.bg-primary {
    background-color: #f5bf60 !important;
}

.bg-secondary {
    background-color: #64748b !important;
}

.bg-dark {
    background-color: #0f172a !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

.bg-opacity-25 {
    opacity: 1;
}

.bg-warning.bg-opacity-25 {
    background-color: rgba(245, 191, 96, 0.18) !important;
}

.card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.card-body {
    padding: 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row>* {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.g-2 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.g-2>* {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
}

.g-3>* {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.333333%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-12 {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-6 {
        width: 50%;
    }
}

.form-label,
.form-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.45rem;
    color: #334155;
    font-weight: 600;
}

.form-text {
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.6;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.btn-close:focus {
    outline: none;
    border-color: rgba(245, 191, 96, 0.42);
    box-shadow: 0 0 0 4px rgba(245, 191, 96, 0.12);
}

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

.form-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
}

.input-group {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.input-group>.form-control,
.input-group>.form-select {
    flex: 1 1 auto;
}

.input-group>.form-control:not(:last-child),
.input-group>.form-select:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group>.input-group-text,
.input-group>.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group-text {
    padding: 0.6rem 0.9rem;
    white-space: nowrap;
    color: #475569;
}

.input-group-sm>.form-control,
.input-group-sm>.input-group-text,
.form-control-sm,
.form-select-sm,
.btn-sm {
    min-height: 38px;
    font-size: 0.86rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #f8ca72, #eeaf46);
    color: #1f2937;
    box-shadow: 0 14px 30px rgba(245, 191, 96, 0.24);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #f6c66b, #e8aa38);
    color: #1f2937;
}

.btn-info {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff;
}

.btn-light {
    background: rgba(248, 250, 252, 0.98);
    border-color: rgba(148, 163, 184, 0.16);
    color: #334155;
}

.btn-outline-primary {
    border-color: rgba(245, 191, 96, 0.28);
    background: rgba(245, 191, 96, 0.12);
    color: #b7791f;
}

.btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
}

.btn-link {
    min-height: auto;
    padding: 0.2rem 0.25rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-close {
    position: relative;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    flex: 0 0 auto;
}

.btn-close::before {
    content: "×";
    font-size: 1.35rem;
    line-height: 1;
}

.btn-close-white {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 38px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #e4a846;
    cursor: pointer;
}

.form-check-input[disabled] {
    cursor: not-allowed;
    opacity: 0.45;
}

.form-check-label {
    color: #334155;
    cursor: pointer;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.table th,
.table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.table thead th {
    background: rgba(248, 250, 252, 0.96);
    color: #334155;
    font-weight: 700;
}

.table-bordered th,
.table-bordered td {
    border-right: 1px solid rgba(148, 163, 184, 0.14);
}

.table-bordered th:last-child,
.table-bordered td:last-child {
    border-right: 0;
}

.table-hover tbody tr:hover {
    background: rgba(245, 191, 96, 0.08);
}

.table-light {
    background: rgba(248, 250, 252, 0.96);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    display: flex;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    text-decoration: none;
    font-weight: 600;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #f8ca72, #eeaf46);
    color: #1f2937;
    border-color: transparent;
}

.page-item.disabled .page-link {
    pointer-events: none;
    opacity: 0.5;
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 0.35rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1080;
    display: none;
    min-width: 160px;
    padding: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu-end {
    left: auto;
    right: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    background: transparent;
}

.dropdown-item:hover {
    background: rgba(245, 191, 96, 0.1);
    color: #b7791f;
}

.dropdown-divider {
    margin: 0.4rem 0;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal.show {
    display: block;
}

.modal-dialog {
    width: min(100%, 640px);
    margin: 2rem auto;
    pointer-events: none;
}

.modal-dialog-centered {
    min-height: calc(100vh - 3rem);
    display: flex;
    align-items: center;
}

.modal-lg {
    width: min(100%, 920px);
}

.modal-sm {
    width: min(100%, 420px);
}

.alert-modal-dialog {
    width: min(calc(100vw - 2rem), 360px);
}

.alert-modal-dialog .modal-content {
    width: 100%;
}

.modal-content {
    position: relative;
    pointer-events: auto;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.disclaimer-modal-content {
    border-radius: 26px;
    max-width: 680px;
    margin: 0 auto;
}

.disclaimer-modal-body {
    color: #334155;
    line-height: 1.72;
    padding: 1.15rem 1.35rem 0.95rem;
}

.disclaimer-modal-body p {
    margin: 0 0 10px;
}

.disclaimer-link-chip {
    display: inline-flex;
    align-items: center;
    margin: 2px 0 12px;
    padding: 9px 13px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.96);
}

.disclaimer-link-chip a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
}

.disclaimer-link-chip a:hover {
    color: #b7791f;
}

.disclaimer-note-block {
    margin: 12px 0 14px;
    padding: 15px 18px;
    border: 1px solid rgba(245, 191, 96, 0.24);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 248, 232, 0.96), rgba(255, 255, 255, 0.96));
}

.disclaimer-note-block p {
    margin-bottom: 10px;
    line-height: 1.72;
}

.disclaimer-note-block p:last-child {
    margin-bottom: 0;
}

.disclaimer-thanks {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0;
}

.disclaimer-confirm-btn {
    min-width: 128px;
    min-height: 42px;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    border-radius: 999px;
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.modal-footer {
    border-bottom: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    flex-wrap: wrap;
}

.modal-body {
    padding: 1.2rem;
}

.modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
}

.toast {
    display: none;
    min-width: 280px;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.toast.show {
    display: block;
}

.toast-body {
    padding: 0.95rem 1rem;
    line-height: 1.6;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.9rem;
    height: 0.9rem;
    border-width: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {

    .card-body,
    .modal-body,
    .modal-header,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .modal {
        padding: 1rem 0.75rem;
    }

    .modal-dialog,
    .modal-lg,
    .modal-sm {
        width: 100%;
        margin: 1rem auto;
    }
}