* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #111111;
    color: #ffffff;
}

a {
    text-decoration: none;
}

body,
input,
button,
select,
textarea {
    font-family: Arial, sans-serif;
}

.site-wrapper,
.client-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
}

.consulta-card,
.login-card,
.client-card,
.mensalidade-card,
.payment-modal-box {
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.consulta-card {
    width: 100%;
    max-width: 760px;
    padding: 28px;
}

.client-card {
    width: 100%;
    max-width: 780px;
    padding: 24px;
}

.consulta-top,
.client-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.consulta-top h1,
.client-top h1,
.login-card h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.client-top p,
.muted {
    color: #b8b8b8;
    margin-top: 6px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #dddddd;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #101010;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 14px 16px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #d61f26;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #d61f26;
    color: #ffffff;
}

.btn-primary:hover {
    background: #b81920;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid #444444;
}

.btn-outline:hover {
    border-color: #d61f26;
    color: #ffffff;
}

.w-full {
    width: 100%;
}

.empty-state {
    padding: 20px;
    border-radius: 14px;
    background: #141414;
    border: 1px dashed #333333;
    color: #aaaaaa;
    text-align: center;
}

.initial-state {
    margin-top: 10px;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 28px;
}

.alert.error {
    background: rgba(214, 31, 38, 0.12);
    border: 1px solid rgba(214, 31, 38, 0.4);
    color: #ffb7ba;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.client-search-form {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 14px;
    margin-bottom: 18px;
    align-items: end;
}

.client-search-field {
    margin-bottom: 0;
}

.client-search-actions {
    display: flex;
    align-items: end;
    height: 100%;
}

.client-search-actions .btn {
    width: 100%;
}

.client-info-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    margin-bottom: 18px;
    color: #f2f2f2;
}

.client-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.client-tab {
    background: #151515;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.client-tab span {
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.client-tab.active {
    background: #d61f26;
    border-color: #d61f26;
}

.client-tab-panel {
    display: none;
}

.client-tab-panel.active {
    display: block;
}

.client-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.mensalidade-card {
    padding: 18px;
}

.mensalidade-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mensalidade-head h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.mensalidade-head p {
    color: #aaaaaa;
    font-size: 14px;
}

.mensalidade-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mensalidade-grid small {
    display: block;
    color: #aaaaaa;
    margin-bottom: 6px;
}

.mensalidade-grid strong {
    font-size: 15px;
    color: #ffffff;
}

.mensalidade-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.success {
    background: rgba(20, 161, 90, 0.15);
    color: #7ff0b0;
    border: 1px solid rgba(20, 161, 90, 0.25);
}

.badge.danger {
    background: rgba(214, 31, 38, 0.14);
    color: #ffb7ba;
    border: 1px solid rgba(214, 31, 38, 0.25);
}

.badge.warning {
    background: rgba(255, 180, 0, 0.14);
    color: #ffd76e;
    border: 1px solid rgba(255, 180, 0, 0.25);
}

.badge.info {
    background: rgba(0, 153, 255, 0.12);
    color: #8dccff;
    border: 1px solid rgba(0, 153, 255, 0.22);
}

.badge.muted {
    background: rgba(255, 255, 255, 0.06);
    color: #bbbbbb;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
}

.payment-modal.active {
    display: flex;
}

.payment-modal-box {
    width: 100%;
    max-width: 520px;
    padding: 22px;
    position: relative;
}

.payment-close {
    position: absolute;
    right: 14px;
    top: 10px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.payment-modal-box h2 {
    margin-bottom: 6px;
    font-size: 24px;
}

.payment-subtitle {
    color: #aaaaaa;
    margin-bottom: 18px;
}

.payment-summary {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 18px;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.payment-method {
    background: #151515;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 600;
}

.payment-method.active {
    background: #d61f26;
    border-color: #d61f26;
}

.payment-placeholder {
    padding: 18px;
    border-radius: 14px;
    background: #141414;
    border: 1px dashed #333333;
    color: #bbbbbb;
    text-align: center;
    margin-bottom: 18px;
}

.payment-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 820px) {
    .client-card {
        max-width: 100%;
    }

    .client-search-form {
        grid-template-columns: 1fr;
    }

    .client-search-actions {
        display: block;
    }

    .client-search-actions .btn {
        width: 100%;
    }

    .client-info-box {
        grid-template-columns: 1fr;
    }
}
.payment-modal textarea {
    width: 100%;
    background: #101010;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 14px 16px;
    resize: vertical;
    outline: none;
}

.payment-modal textarea:focus {
    border-color: #d61f26;
}

@media (max-width: 640px) {
    .site-wrapper,
    .client-shell {
        padding: 14px;
    }

    .client-card,
    .consulta-card,
    .login-card {
        padding: 18px;
    }

    .consulta-top h1,
    .client-top h1,
    .login-card h1 {
        font-size: 22px;
    }

    .mensalidade-grid {
        grid-template-columns: 1fr;
    }

    .client-tab {
        width: 100%;
        justify-content: space-between;
    }
}

.payment-modal textarea {
    width: 100%;
    background: #101010;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 14px 16px;
    resize: vertical;
    outline: none;
}

.payment-modal textarea:focus {
    border-color: #d61f26;
}