* {
    box-sizing: border-box;
}

:root {
    --panel: rgba(255, 255, 255, 0.9);
    --text: #14213d;
    --muted: #64748b;
    --line: #dbe3ea;
    --brand: #0f766e;
    --brand-dark: #134e4a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.12), transparent 24%),
        linear-gradient(180deg, #eef4f3 0%, #f7f8fb 40%, #eef2f6 100%);
    color: var(--text);
}

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

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px 1fr;
}

.sidebar {
    padding: 28px 22px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(7, 38, 64, 0.98), rgba(15, 118, 110, 0.96)),
        linear-gradient(130deg, #0b1320, #0f766e);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #082f2b;
    background: linear-gradient(135deg, #fbbf24, #fde68a);
}

.sidebar h1 {
    margin: 0 0 4px;
    font-size: 1.6rem;
}

.sidebar p,
.profile-card span,
.sidebar-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.profile-card,
.sidebar-note {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-card {
    display: grid;
    gap: 4px;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
}

.sidebar .eyebrow {
    color: rgba(255, 255, 255, 0.62);
}

.main-nav {
    display: grid;
    gap: 10px;
}

.main-nav a,
.secondary-btn {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: 0.2s ease;
}

.main-nav a:hover,
.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.logout-form {
    margin-top: auto;
}

.content {
    padding: 26px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.topbar h2 {
    margin: 6px 0 0;
    font-size: 1.9rem;
}

.topbar-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.85rem;
}

.pill.muted {
    background: rgba(20, 33, 61, 0.08);
    color: var(--muted);
}

.hero-panel,
.panel,
.metric-card,
.card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-panel {
    border-radius: 28px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-panel.compact {
    padding: 24px;
}

.hero-panel h1 {
    margin: 10px 0 8px;
    font-size: 2rem;
}

.hero-panel p {
    margin: 0;
    max-width: 740px;
    color: var(--muted);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.primary-link,
.secondary-link,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.primary-link,
button {
    background: linear-gradient(135deg, var(--brand), #14b8a6);
    color: #fff;
}

.secondary-link {
    background: rgba(20, 33, 61, 0.08);
    color: var(--text);
}

.stats-grid,
.grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 20px;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.metric-card {
    border-radius: 22px;
    padding: 22px;
}

.metric-card strong {
    display: block;
    margin: 14px 0 8px;
    font-size: 2rem;
}

.metric-card p {
    margin: 0;
    color: var(--muted);
}

.panel,
.card {
    border-radius: 24px;
    padding: 22px;
}

.panel.accent {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(245, 158, 11, 0.14));
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-head h3,
.panel h3,
.card h3 {
    margin: 0;
}

.action-list {
    display: grid;
    gap: 12px;
}

.action-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(20, 33, 61, 0.05);
    color: var(--text);
    font-weight: 600;
}

.contact-card {
    display: grid;
    gap: 14px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    font-weight: 700;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-actions a {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-dark);
    font-weight: 600;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert.error {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert.success {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.panel.narrow {
    max-width: 520px;
}

.stack {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
}

select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
}

textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
    resize: vertical;
}

.form-grid.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

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

.checkbox-row input {
    width: auto;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 92px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(20, 33, 61, 0.08);
    color: var(--text);
}

.image-tips {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.06);
    color: var(--muted);
}

.image-tips p {
    margin: 0;
}

.image-tips p + p {
    margin-top: 8px;
}

.card-thumb {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

thead th {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

ul {
    margin: 0;
    padding-left: 20px;
}

li + li {
    margin-top: 8px;
}

.hint {
    margin-top: 16px;
    color: var(--muted);
}

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

    .sidebar {
        border-bottom-left-radius: 26px;
        border-bottom-right-radius: 26px;
    }

    .hero-panel,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
