* {
    box-sizing: border-box;
}

body.dt-complain-page {
    margin: 0;
    min-height: 100vh;
    padding: 70px 20px;
    background: #f5f6f7;
    color: #202124;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.dt-complain-card {
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 38px 42px;
    background: #fff;
    border: 1px solid #e1e3e5;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
}

.dt-complain-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #b22b27;
    font-size: 27px;
    font-weight: 900;
}

.dt-complain-logo span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #ff641f;
    color: #fff;
    font-size: 18px;
}

.dt-complain-card h1 {
    margin: 0 0 12px;
    text-align: center;
    font-size: 28px;
}

.dt-complain-intro {
    max-width: 470px;
    margin: 0 auto 28px;
    text-align: center;
    color: #6b7073;
    line-height: 1.55;
}

.dt-complain-form {
    display: grid;
    gap: 9px;
}

.dt-complain-form label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
}

.dt-complain-form input,
.dt-complain-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d6dadd;
    border-radius: 10px;
    background: #fff;
    color: #202124;
    font: inherit;
    outline: none;
}

.dt-complain-form input {
    min-height: 46px;
}

.dt-complain-form textarea {
    resize: vertical;
    min-height: 210px;
    line-height: 1.5;
}

.dt-complain-form input:focus,
.dt-complain-form textarea:focus {
    border-color: #ff641f;
    box-shadow: 0 0 0 3px rgba(255, 100, 31, .10);
}

.dt-complain-form button {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border: 0;
    border-radius: 10px;
    background: #ff5a1f;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.dt-complain-form button:hover {
    background: #e94f18;
}

.dt-complain-back {
    display: block;
    margin-top: 22px;
    text-align: center;
    color: #777;
    font-size: 13px;
    text-decoration: none;
}

.dt-complain-back:hover {
    color: #ff5a1f;
}

/* Vista de reclamación */

.dt-complain-view {
    width: min(760px, 100%);
}

.dt-complain-url-warning {
    margin: 24px 0;
    padding: 15px 18px;
    border: 1px solid #ffc9b5;
    border-radius: 10px;
    background: #fff4ef;
    color: #b8380c;
    line-height: 1.5;
}

.dt-complain-url-warning strong {
    display: block;
    margin-top: 4px;
}

.dt-complain-section {
    margin-top: 25px;
}

.dt-complain-section h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.dt-complain-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dt-complain-meta > div {
    padding: 14px 16px;
    border: 1px solid #e0e3e5;
    border-radius: 10px;
}

.dt-complain-meta span {
    display: block;
    margin-bottom: 5px;
    color: #7a8083;
    font-size: 12px;
    text-transform: uppercase;
}

.dt-complain-message {
    margin-top: 14px;
    padding: 16px;
    border-radius: 10px;
    background: #f6f7f8;
    line-height: 1.6;
}

.dt-complain-thread {
    display: grid;
    gap: 12px;
}

.dt-complain-reply {
    padding: 15px;
    border: 1px solid #e0e3e5;
    border-radius: 12px;
}

.dt-complain-reply__head {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    color: #767d80;
    font-size: 12px;
}

.dt-complain-reply__head strong {
    color: #202124;
    font-size: 14px;
}

.dt-complain-empty {
    padding: 28px;
    border: 1px dashed #d5dadd;
    border-radius: 12px;
    text-align: center;
    color: #7a8083;
}

.dt-complain-closed {
    margin-top: 25px;
    padding: 15px;
    border-radius: 10px;
    background: #f1f3f4;
    text-align: center;
    font-weight: 700;
}

.dt-complain-adminlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
}

.dt-complain-admin-action {
    margin-top: 25px;
    text-align: center;
}

.dt-complain-admin-action button {
    padding: 10px 18px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

@media (max-width: 620px) {
    .dt-complain-meta {
        grid-template-columns: 1fr;
    }
}

/* DT · Acciones staff soporte */

.dt-complain-admin-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 28px;
}

.dt-complain-admin-actions form {
    margin: 0;
}

.dt-complain-admin-btn {
    min-height: 43px;
    padding: 0 18px;

    border: 0;
    border-radius: 10px;

    background: #ff5a1f;
    color: #fff;

    font-weight: 800;
    cursor: pointer;
}

.dt-complain-admin-btn:hover {
    background: #e94f18;
}

.dt-complain-admin-btn.is-danger {
    background: #b42318;
}

.dt-complain-admin-btn.is-danger:hover {
    background: #912018;
}

/* DT · Volver al listado de soporte */

.dt-complain-staff-back {
    margin: -2px 0 24px;
    text-align: center;
}

.dt-complain-staff-back a {
    display: inline-flex;
    align-items: center;

    padding: 9px 14px;

    border: 1px solid #e3e5e6;
    border-radius: 9px;

    background: #f6f7f8;
    color: #555 !important;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.dt-complain-staff-back a:hover {
    border-color: #ffb091;
    background: #fff1eb;
    color: #e94f18 !important;
}

/* DT · Email bloqueado en soporte */

.dt-complain-blocked {
    margin-top: 26px;
    padding: 28px 24px;

    border: 1px solid #ffc9b5;
    border-radius: 14px;

    background: #fff7f3;
    text-align: center;
}

.dt-complain-blocked__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin: 0 auto 16px;

    border-radius: 50%;

    background: #b42318;
    color: #fff;

    font-size: 25px;
    font-weight: 900;
}

.dt-complain-blocked h2 {
    margin: 0 0 10px;
    font-size: 21px;
}

.dt-complain-blocked p {
    margin: 0 auto 20px;
    max-width: 440px;

    color: #666;
    line-height: 1.55;
}

.dt-complain-blocked a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 18px;

    border-radius: 9px;

    background: #ff5a1f;
    color: #fff !important;

    font-weight: 800;
    text-decoration: none !important;
}


/* DT · Desbloquear email */

.dt-complain-admin-btn.is-unblock {
    background: #198754;
}

.dt-complain-admin-btn.is-unblock:hover {
    background: #157347;
}


/* DT_COMPLAIN_ALERTS_UI_V1 */
.dt-complain-alert{
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.dt-complain-alert strong{
    display:block;
    margin:0 0 6px;
    font-size:15px;
    font-weight:800;
    line-height:1.3;
}

.dt-complain-alert p{
    margin:0;
    font-size:14px;
    line-height:1.55;
    color:#4b5563;
}

.dt-complain-alert.is-error{
    background:#fff4f2;
    border-color:#fecaca;
}

.dt-complain-alert.is-error strong{
    color:#b42318;
}

.dt-complain-alert.is-error p{
    color:#8a2c1d;
}

.dt-complain-alert.is-success{
    background:#f0fdf4;
    border-color:#bbf7d0;
}

.dt-complain-alert.is-success strong{
    color:#166534;
}

.dt-complain-alert.is-success p{
    color:#166534;
}

.dt-complain-alert.is-info{
    background:#eff6ff;
    border-color:#bfdbfe;
}

.dt-complain-alert.is-info strong{
    color:#1d4ed8;
}

.dt-complain-alert.is-info p{
    color:#1e40af;
}

.dt-complain-alert.is-warning{
    background:#fffbeb;
    border-color:#fde68a;
}

.dt-complain-alert.is-warning strong{
    color:#b45309;
}

.dt-complain-alert.is-warning p{
    color:#92400e;
}
