body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
    background-color: #f9f9f9;
    font-size: 13px;
}
.container {
    max-width: 960px;
    margin: 0 auto;
    background-color: #fff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}
h1,
h2 {
    color: #1f2937;
    margin: 0 0 8px;
}
h1.page-title {
    text-align: center;
    border-bottom: 2px solid #111827;
    padding-bottom: 12px;
    margin-bottom: 8px;
    font-size: 22px;
}
.subtitle {
    text-align: center;
    color: #4b5563;
    font-size: 14px;
    margin: 0 0 20px;
}
.brand-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}
.brand-logo {
    display: block;
    margin: 0;
    width: 340px;
    max-width: 100%;
    height: auto;
}
.tour-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.tour-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}
.tour-topbar .lang-switch {
    position: static;
    right: auto;
    top: auto;
}
.tour-topbar .site-nav {
    margin: 0;
    justify-content: flex-end;
}
.tour-topbar .brand-logo {
    margin-bottom: 0;
    max-width: 100%;
}
.lang-switch {
    position: absolute;
    right: 28px;
    top: 28px;
}
.lang-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}
.lang-btn:hover {
    background: #f3f4f6;
}
.site-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0 14px;
}
.site-nav-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    background: #fff;
}
.site-nav-link:hover {
    background: #f3f4f6;
}
.site-nav-link.is-active {
    background: #283e8a;
    border-color: #283e8a;
    color: #fff;
}
.section {
    margin-top: 18px;
    padding: 18px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #111827;
    margin: 0 0 12px;
}
.section-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.5;
}
.change-password-form label:first-of-type {
    margin-top: 0;
}
label {
    display: block;
    margin-top: 14px;
    font-weight: bold;
    color: #374151;
}
.field-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.field-row > label {
    flex: 1 1 200px;
    margin-top: 0;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]) {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background-color: #fff;
    box-sizing: border-box;
    height: 42px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.helper {
    font-size: 12px;
    color: #6b7280;
    margin: 10px 0 0;
    text-align: center;
}
.action {
    text-align: center;
    margin-top: 22px;
}
.action button {
    background-color: #2563eb;
    color: #fff;
    padding: 12px 32px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.action button:hover {
    background-color: #1d4ed8;
}
.action button:disabled,
.action button.is-loading {
    opacity: 0.85;
    cursor: not-allowed;
}
.action button:disabled:hover,
.action button.is-loading:hover {
    background-color: #2563eb;
}
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.dashboard-header h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
    font-size: 18px;
}
.btn-outline {
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
.btn-outline:hover {
    background: #f3f4f6;
}
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(17, 24, 39, 0.45);
}
.modal-overlay.is-open {
    display: flex;
}
.modal-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: min(92vh, 640px);
    overflow: auto;
    padding: 20px 20px 22px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid #e5e7eb;
}
.modal-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.modal-panel-title {
    margin: 0;
    font-size: 17px;
    font-weight: bold;
    color: #111827;
    line-height: 1.35;
    flex: 1;
}
.modal-hint {
    margin-top: 0;
    margin-bottom: 10px;
}
.modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: -6px -6px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}
.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}
.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.points-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
.points-card.highlight {
    border-color: #0f8a9d;
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 45%);
}
.points-label {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 4px;
}
.points-value {
    font-size: 26px;
    font-weight: 700;
    color: #0b4a7a;
    margin: 0;
    letter-spacing: 0.02em;
}
.points-tier {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.records-table-wrap {
    overflow-x: auto;
}
.records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.records-table th,
.records-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.records-table th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
}
.records-table tbody tr:last-child td {
    border-bottom: none;
}
.records-table tbody tr:hover {
    background: #fafafa;
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-done {
    background: #dcfce7;
    color: #166534;
}
.badge-ok {
    background: #dbeafe;
    color: #1e40af;
}
.badge-wait {
    background: #fef3c7;
    color: #92400e;
}
.badge-cancel {
    background: #fee2e2;
    color: #991b1b;
}
.badge-muted {
    background: #e5e7eb;
    color: #4b5563;
}
.footer-note {
    margin-top: 20px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}
.records-empty-msg {
    text-align: center;
    color: #6b7280;
    padding: 18px 12px !important;
}
.profile-form {
    margin: 0;
}
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}
.profile-field {
    display: block;
    margin-top: 0;
    font-weight: bold;
    color: #374151;
}
.profile-field--full {
    grid-column: 1 / -1;
}
.profile-measures {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 24px;
}
.profile-field .req {
    color: #dc2626;
    margin-left: 2px;
}
.profile-field .field-hint {
    font-weight: normal;
    color: #6b7280;
    margin-left: 4px;
}
.profile-label {
    display: block;
    font-weight: bold;
    color: #374151;
}
.gender-text {
    height: 42px;
    margin-top: 6px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.input-split {
    display: flex;
    gap: 8px;
    width: 100%;
}
.input-split input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]) {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}
.input-suffix {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    margin-top: 6px;
}
.input-suffix input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]) {
    flex: 1 1 0;
    width: 0;
    max-width: none;
    min-width: 0;
    margin-top: 0;
    height: 42px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-suffix .suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    height: 42px;
    min-width: 48px;
    padding: 0 10px;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
}
.profile-form select,
.profile-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background-color: #fff;
    box-sizing: border-box;
    font-family: inherit;
}
.profile-form select {
    height: 42px;
}
.profile-form textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.5;
}
.profile-form select:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.view-hidden {
    display: none !important;
}
@media (max-width: 768px) {
    body {
        margin: 12px;
    }
    .container {
        padding: 18px;
    }
    .lang-switch {
        right: 18px;
        top: 18px;
    }
    .brand-logo {
        width: 280px;
        max-width: 100%;
    }
    h1.page-title {
        font-size: 18px;
    }
    .tour-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .tour-topbar-actions {
        width: 100%;
        margin-left: 0;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-measures {
        grid-template-columns: 1fr;
    }
}
