.card,
.hero-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before,
.hero-card::before,
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 34%);
    pointer-events: none;
}

.card:hover,
.hero-card:hover,
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(219, 162, 74, 0.2);
}

.hero-card {
    background:
            linear-gradient(130deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 234, 0.96));
}

.stat-card {
    border-radius: 24px;
    padding: 22px;
    display: grid;
    gap: 10px;
    min-height: 150px;
    align-content: start;
    position: relative;
    overflow: hidden;
    background:
            linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 251, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.stat-card strong {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
}

.stat-card-wide {
    grid-column: span 2;
    background:
            linear-gradient(145deg, rgba(13, 92, 99, 0.96), rgba(9, 63, 68, 0.98));
    color: #eff8f7;
}

.stat-card-wide span {
    color: rgba(239, 248, 247, 0.72);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.section-header h2,
.topbar h1,
.hero-card h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.profile-chip {
    display: grid;
    gap: 2px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 244, 235, 0.9));
    border: 1px solid rgba(18, 32, 51, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-weight: 600;
}

.field input,
.field select,
.field textarea,
.table-search {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 251, 250, 0.96));
    padding: 14px 16px;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.table-search:focus {
    border-color: rgba(13, 92, 99, 0.55);
    box-shadow: 0 0 0 4px rgba(13, 92, 99, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.password-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.btn,
.ghost-button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 10px 24px rgba(18, 32, 51, 0.08);
}

.btn:hover,
.ghost-button:hover,
.btn:focus-visible,
.ghost-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(18, 32, 51, 0.12);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #f3fbfb;
}

.btn-secondary,
.ghost-button {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 249, 0.94));
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #8f2d23);
    color: #fff3f1;
}

.btn-link {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: var(--primary-strong);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.table-wrap {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 640px;
    background: rgba(255, 255, 255, 0.84);
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.data-table th {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: rgba(245, 247, 248, 0.92);
}

.data-table tbody tr:hover {
    background: rgba(13, 92, 99, 0.05);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.52);
}

.compact-table {
    min-width: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(13, 92, 99, 0.12), rgba(13, 92, 99, 0.18));
    color: var(--primary-strong);
    font-weight: 700;
    border: 1px solid rgba(13, 92, 99, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.status-pill.neutral {
    background: linear-gradient(135deg, rgba(95, 108, 128, 0.08), rgba(95, 108, 128, 0.14));
    color: var(--neutral);
}

.status-pill.success {
    background: linear-gradient(135deg, rgba(34, 139, 87, 0.12), rgba(34, 139, 87, 0.18));
    color: #1c6b44;
}

.status-pill.warning {
    background: linear-gradient(135deg, rgba(196, 130, 24, 0.14), rgba(196, 130, 24, 0.2));
    color: #8a5a10;
}

.detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.detail-list div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(13, 92, 99, 0.05), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(13, 92, 99, 0.06);
}

.detail-list strong,
.list-row strong {
    font-size: 1rem;
}

.description-box {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(219, 162, 74, 0.16), rgba(255, 255, 255, 0.84));
    border: 1px solid rgba(219, 162, 74, 0.12);
}

.description-box p,
.timeline-item p {
    margin: 0;
    white-space: pre-wrap;
}

.list-row {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.84));
    border: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-row:hover {
    border-color: rgba(13, 92, 99, 0.28);
    transform: translateX(2px);
    box-shadow: var(--shadow-soft);
}

.compact-form {
    margin-top: 16px;
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 18px 0;
}

.empty-state {
    padding: 36px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(247, 244, 237, 0.72));
    border: 1px dashed rgba(18, 32, 51, 0.16);
    text-align: center;
}

.empty-state h3,
.empty-state p {
    margin: 0;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state.compact {
    padding: 18px;
}

.alert {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    animation: slideIn 0.25s ease;
    box-shadow: var(--shadow-soft);
}

.alert-success {
    background: rgba(22, 124, 91, 0.12);
    border-color: rgba(22, 124, 91, 0.2);
    color: #0f5a41;
}

.alert-danger {
    background: rgba(182, 65, 52, 0.12);
    border-color: rgba(182, 65, 52, 0.2);
    color: #8f2d23;
}

.alert-close,
.icon-button {
    border: 0;
    background: transparent;
    font-size: 1.2rem;
    padding: 4px;
}

.mobile-nav-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    justify-content: center;
    align-items: center;
}

.mobile-nav-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    margin: 2px 0;
}