/* =====================================================
   MARATHON CLIENT PORTAL — MY ACCOUNT V2
   ===================================================== */

.mk-account .mk-account-v2-header {
    display: flex;
    align-items: center;
    gap: 26px;

    margin: 30px 0;
    padding: 30px;

    background: linear-gradient(
        135deg,
        rgba(33, 65, 97, .85),
        rgba(9, 26, 44, .95)
    );

    border: 1px solid rgba(217, 184, 108, .28);
    border-radius: 22px;
}

/* Avatar */

.mk-account .mk-account-v2-avatar {
    display: grid;
    place-items: center;

    flex: 0 0 100px;
    width: 100px;
    height: 100px;

    border-radius: 50%;

    background: linear-gradient(
        145deg,
        #f3d99a,
        #b88a36
    );

    border: 4px solid rgba(255, 255, 255, .15);

    color: #081729;
    font-size: 40px;
    font-weight: 900;

    box-shadow: 0 0 30px rgba(217, 184, 108, .15);
}

/* Identidad */

.mk-account .mk-account-v2-identity {
    min-width: 0;
}

.mk-account .mk-account-v2-eyebrow {
    display: block;
    margin-bottom: 10px;

    color: #d9b86c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.mk-account .mk-account-v2-identity h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
}

.mk-account .mk-account-v2-identity p {
    margin: 0 0 12px;
    color: #b8c7d9;
    overflow-wrap: anywhere;
}

.mk-account .mk-account-v2-member {
    display: inline-flex;
    padding: 7px 13px;

    color: #f3d99a;
    background: rgba(217, 184, 108, .10);

    border: 1px solid rgba(217, 184, 108, .20);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

/* Navegación */

.mk-account .mk-account-v2-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;

    margin: 25px 0 35px;
}

.mk-account .mk-account-v2-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 15px 12px;

    background: rgba(255, 255, 255, .045);

    border: 1px solid rgba(217, 184, 108, .16);
    border-radius: 13px;

    color: #e8eff8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;

    transition: all .2s ease;
}

.mk-account .mk-account-v2-nav a:hover {
    background: rgba(217, 184, 108, .12);
    border-color: rgba(217, 184, 108, .55);
    color: #f3d99a;
    transform: translateY(-2px);
}

.mk-account .mk-account-v2-nav a:focus-visible {
    outline: 2px solid #f3d99a;
    outline-offset: 3px;
}

/* Ajustes */

.mk-account .mk-account-v2-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    margin-top: 30px;
}

.mk-account .mk-account-v2-setting-card {
    min-width: 0;
    padding: 25px;

    background: rgba(255, 255, 255, .045);

    border: 1px solid rgba(217, 184, 108, .17);
    border-radius: 18px;
}

.mk-account .mk-account-v2-setting-card h3 {
    color: #f3d99a;
    font-size: 19px;
    margin: 0 0 12px;
}

.mk-account .mk-account-v2-setting-card p {
    color: #b8c7d9;
    line-height: 1.7;
    margin: 0;
}

/* Navegación a secciones */

.mk-account #mk-account-overview,
.mk-account #mk-account-profile,
.mk-account #mk-account-security,
.mk-account #mk-account-privacy {
    scroll-margin-top: 100px;
}

/* Responsive */

@media (max-width: 800px) {
    .mk-account .mk-account-v2-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mk-account .mk-account-v2-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 16px;
    }

    .mk-account .mk-account-v2-avatar {
        flex-basis: 85px;
        width: 85px;
        height: 85px;
        font-size: 34px;
    }

    .mk-account .mk-account-v2-nav {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .mk-account .mk-account-v2-nav a {
        padding: 13px 8px;
        font-size: 12px;
    }

    .mk-account .mk-account-v2-settings {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-account .mk-account-v2-nav a {
        transition: none;
    }

    .mk-account .mk-account-v2-nav a:hover {
        transform: none;
    }
}
/* ==========================================
   SIGN OUT — PREMIUM V2
   ========================================== */

.mk-account .mk-logout {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    margin: 30px 0 0 auto;
    padding: 14px 28px;

    background: rgba(220, 65, 65, 0.08);
    border: 1px solid rgba(235, 95, 95, 0.35);
    border-radius: 13px;

    color: #ffaaaa;
    font-weight: 700;
    text-decoration: none;

    transition: all 0.25s ease;
}

.mk-account .mk-logout:hover {
    background: rgba(220, 65, 65, 0.18);
    border-color: #ff7777;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .mk-account .mk-logout {
        width: 100%;
        margin-top: 25px;
    }
}
/* ==========================================
   EDIT PROFILE PREMIUM
   ========================================== */

.mk-account .mk-profile-editor {
    margin-top: 25px;
    padding: 30px;
    background: linear-gradient(145deg, #102840, #081729);
    border: 1px solid rgba(217,184,108,.25);
    border-radius: 20px;
}

.mk-account .mk-profile-editor h3 {
    color: #f3d99a;
    margin-bottom: 25px;
}

.mk-account .mk-profile-photo-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 35px;
}

.mk-account .mk-profile-photo-preview {
    display: grid;
    place-items: center;
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3d99a, #b88a36);
    color: #081729;
    font-size: 40px;
    font-weight: 800;
}

.mk-account .mk-profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-account .mk-profile-photo-actions {
    flex: 1;
    min-width: 0;
}

.mk-account .mk-profile-photo-actions form {
    margin-bottom: 12px;
}

.mk-account .mk-profile-editor label {
    display: block;
    margin: 12px 0 8px;
    color: #d9b86c;
    font-weight: 700;
}

.mk-account .mk-profile-editor input {
    display: block;
    width: 100%;
    padding: 13px 15px;
    margin-bottom: 18px;
    background: #071626;
    border: 1px solid rgba(217,184,108,.25);
    border-radius: 10px;
    color: #fff;
}

.mk-account .mk-profile-editor input[readonly] {
    opacity: .65;
    cursor: not-allowed;
}

.mk-account .mk-profile-editor button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 22px;
    background: linear-gradient(135deg, #f3d99a, #c79d4e);
    border: none;
    border-radius: 11px;
    color: #081729;
    font-weight: 800;
    cursor: pointer;
}

.mk-account .mk-profile-editor button:hover {
    filter: brightness(1.08);
}

.mk-account .mk-profile-editor .mk-remove-photo {
    background: rgba(220,65,65,.12);
    border: 1px solid rgba(220,65,65,.4);
    color: #ffaaaa;
}

.mk-account .mk-profile-success {
    padding: 14px 18px;
    margin-bottom: 22px;
    background: rgba(55,190,120,.12);
    border: 1px solid rgba(55,190,120,.35);
    border-radius: 10px;
    color: #a9f5c8;
}

@media (max-width: 600px) {
    .mk-account .mk-profile-editor {
        padding: 20px 15px;
    }

    .mk-account .mk-profile-photo-section {
        flex-direction: column;
        align-items: stretch;
    }

    .mk-account .mk-profile-photo-preview {
        margin: 0 auto;
    }

    .mk-account .mk-profile-editor button {
        width: 100%;
    }
}
/* PROFILE AVATAR IMAGE */

.mk-account .mk-account-v2-avatar {
    overflow: hidden;
    position: relative;
}

.mk-account .mk-account-v2-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
/* ==========================================
   MARATHON PREMIUM AVATAR CAMERA
   ========================================== */

.mk-account .mk-account-v2-avatar-wrapper {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.mk-account .mk-account-v2-camera {
    position: absolute;
    right: -5px;
    bottom: -5px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #ffe4a3,
        #c99b43
    );

    color: #071626;
    text-decoration: none;
    font-size: 17px;

    border: 3px solid #102840;

    box-shadow:
        0 4px 15px rgba(0,0,0,.35),
        0 0 12px rgba(217,184,108,.25);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

    z-index: 5;
}

.mk-account .mk-account-v2-camera:hover {
    transform: scale(1.12);

    box-shadow:
        0 6px 20px rgba(0,0,0,.4),
        0 0 18px rgba(217,184,108,.5);
}

.mk-account .mk-account-v2-camera:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.mk-account .mk-account-v2-avatar-wrapper
.mk-account-v2-avatar {
    margin: 0;
}

@media (max-width: 600px) {

    .mk-account .mk-account-v2-camera {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

}
/* ==========================================
   MARATHON CAMERA BUTTON V2
   ELECTRIC BLUE + WHITE
   ========================================== */

.mk-account .mk-account-v2-camera {
    background: linear-gradient(
        135deg,
        #00b8ff 0%,
        #0066ff 100%
    );

    color: #ffffff;

    border: 3px solid #102840;

    box-shadow:
        0 5px 18px rgba(0, 102, 255, .45),
        0 0 15px rgba(0, 184, 255, .25);

    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mk-account .mk-account-v2-camera:hover {
    background: linear-gradient(
        135deg,
        #36d5ff,
        #0077ff
    );

    transform: scale(1.12);

    box-shadow:
        0 6px 22px rgba(0, 102, 255, .6),
        0 0 20px rgba(0, 184, 255, .4);
}

.mk-account .mk-account-v2-camera span {
    color: #ffffff;
}

/* PHOTO PREVIEW */

.mk-account .mk-profile-photo-preview-box[hidden] {
    display: none !important;
}

.mk-account .mk-profile-photo-preview-box {
    margin: 18px 0;
    padding: 20px;

    background: rgba(0, 102, 255, .08);

    border: 1px solid rgba(0, 184, 255, .3);
    border-radius: 16px;

    text-align: center;
}

.mk-account .mk-profile-photo-preview-box img {
    display: block;

    width: 130px;
    height: 130px;

    margin: 0 auto 12px;

    border-radius: 50%;
    object-fit: cover;

    border: 3px solid #00b8ff;
}

.mk-account .mk-profile-photo-preview-box p {
    color: #a9dfff;
    font-size: 13px;
    margin: 0;
}
/* ==========================================
   MARATHON PREMIUM - COMPACT PROFILE BUTTONS
   ========================================== */

/* Botones compactos */
.mk-account .mk-profile-photo-actions button[type="submit"],
.mk-account .mk-profile-information-form .mk-save-profile {

    width: auto !important;
    max-width: 220px;
    min-width: 140px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 22px;

    font-size: 13px;
    font-weight: 600;

    border-radius: 10px;

    margin: 10px auto;

    flex: 0 0 auto;
}

/* Centrar los botones dentro de sus formularios */
.mk-account .mk-profile-photo-actions form {
    text-align: center;
}

.mk-account .mk-profile-information-form .mk-save-profile {
    align-self: center;
}

/* Evitar que los botones se estiren */
.mk-account .mk-profile-photo-actions button,
.mk-account .mk-profile-information-form button {
    box-sizing: border-box;
}

/* Ajuste para móviles */
@media (max-width: 480px) {

    .mk-account .mk-profile-photo-actions button[type="submit"],
    .mk-account .mk-profile-information-form .mk-save-profile {
        min-width: 130px;
        padding: 10px 18px;
        font-size: 12px;
    }

}
/* ==========================================
   MARATHON PREMIUM
   NAVIGATION COLORS FIX
   ========================================== */

/* Texto del menú debajo del avatar */
.mk-account .mk-account-v2-nav a,
.mk-account .mk-account-v2-nav button {
    color: #eaf4ff !important;
    -webkit-text-fill-color: #eaf4ff;
}

/* Iconos del menú */
.mk-account .mk-account-v2-nav a svg,
.mk-account .mk-account-v2-nav button svg {
    color: #eaf4ff !important;
    stroke: currentColor;
}

/* Efecto al pasar el mouse */
.mk-account .mk-account-v2-nav a:hover,
.mk-account .mk-account-v2-nav button:hover {
    color: #38bdf8 !important;
    -webkit-text-fill-color: #38bdf8;
}

/* Opción activa */
.mk-account .mk-account-v2-nav .active,
.mk-account .mk-account-v2-nav .is-active,
.mk-account .mk-account-v2-nav [aria-current="page"] {
    color: #38bdf8 !important;
    -webkit-text-fill-color: #38bdf8;
}

/* ==========================================
   NEW REQUEST - PLUS ICON FIX
   ========================================== */

/* Símbolo + */
.mk-account .mk-account-v2-new-request svg,
.mk-account .mk-account-v2-new-request i,
.mk-account .mk-account-v2-new-request .plus-icon {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none;
}

/* Si el símbolo + es texto */
.mk-account .mk-account-v2-new-request {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}
/* ==========================================
   MARATHON PREMIUM
   NEW REQUEST ICON
   ========================================== */

/* Contenedor del icono + */
.mk-account a.mk-dashboard-card:nth-child(4) > span:nth-child(1) {

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    min-width: 48px;
    min-height: 48px;

    padding: 0;

    background: linear-gradient(
        135deg,
        #00c6ff,
        #0066ff
    );

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    font-size: 28px;
    font-weight: 700;
    line-height: 1;

    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.25);

    box-shadow:
        0 5px 18px rgba(0,102,255,0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Efecto al pasar el mouse */
.mk-account a.mk-dashboard-card:nth-child(4):hover > span:nth-child(1) {

    transform: translateY(-3px) scale(1.06);

    box-shadow:
        0 8px 24px rgba(0,150,255,0.55),
        0 0 18px rgba(0,198,255,0.3);
}

/* Si el icono utiliza SVG */
.mk-account a.mk-dashboard-card:nth-child(4) > span:nth-child(1) svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}
/* ==========================================
   MARATHON PREMIUM
   ESTIMATE ACTION BUTTONS
   ========================================== */

/* Contenedor de los botones */
.mk-dashboard-estimate-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

/* Diseño base de ambos botones */
.mk-dashboard-estimate-actions > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: auto !important;
    min-height: 42px;

    padding: 11px 20px !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.3px;
    text-decoration: none !important;

    border-radius: 11px;
    border: 1px solid rgba(255,255,255,0.18);

    box-sizing: border-box;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

/* ==========================================
   VIEW ESTIMATE - ELECTRIC BLUE
   ========================================== */

.mk-dashboard-estimate-actions > a:not(.mk-dashboard-pdf) {
    background: linear-gradient(
        135deg,
        #00b4ff 0%,
        #0077ff 55%,
        #0055cc 100%
    ) !important;

    box-shadow:
        0 5px 16px rgba(0,119,255,0.28),
        inset 0 1px 0 rgba(255,255,255,0.22);
}

/* ==========================================
   DOWNLOAD PDF - PREMIUM VIOLET
   ========================================== */

.mk-dashboard-estimate-actions > a.mk-dashboard-pdf {
    background: linear-gradient(
        135deg,
        #a855f7 0%,
        #7c3aed 55%,
        #5b21b6 100%
    ) !important;

    box-shadow:
        0 5px 16px rgba(124,58,237,0.30),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ==========================================
   HOVER EFFECTS
   ========================================== */

.mk-dashboard-estimate-actions > a:hover {
    transform: translateY(-3px);
    filter: brightness(1.12);
}

.mk-dashboard-estimate-actions > a:not(.mk-dashboard-pdf):hover {
    box-shadow:
        0 8px 24px rgba(0,119,255,0.48),
        0 0 16px rgba(0,180,255,0.20);
}

.mk-dashboard-estimate-actions > a.mk-dashboard-pdf:hover {
    box-shadow:
        0 8px 24px rgba(124,58,237,0.48),
        0 0 16px rgba(168,85,247,0.22);
}

/* Accesibilidad: navegación con teclado */
.mk-dashboard-estimate-actions > a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 480px) {
    .mk-dashboard-estimate-actions {
        gap: 10px;
    }

    .mk-dashboard-estimate-actions > a {
        padding: 10px 15px !important;
        min-height: 40px;
        font-size: 12px;
    }
}

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .mk-dashboard-estimate-actions > a {
        transition: none;
    }

    .mk-dashboard-estimate-actions > a:hover {
        transform: none;
    }
}
/* ==========================================
   MARATHON PREMIUM - CLICKABLE AVATAR
   ========================================== */

a.mk-account-v2-avatar {
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
    -webkit-text-fill-color: inherit;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

a.mk-account-v2-avatar:hover {
    transform: scale(1.05);

    box-shadow:
        0 0 0 3px rgba(0, 198, 255, 0.25),
        0 0 25px rgba(0, 153, 255, 0.35);
}

a.mk-account-v2-avatar:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 4px;
}
/* ==========================================
   MARATHON PREMIUM
   ACCOUNT DELETION
   ========================================== */

.mk-deletion-panel {
    margin-top: 22px;
    width: 100%;
}

.mk-deletion-warning,
.mk-deletion-pending {
    background: linear-gradient(
        145deg,
        rgba(18, 28, 49, 0.95),
        rgba(10, 18, 35, 0.98)
    );

    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: 18px;

    padding: 28px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.mk-deletion-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.mk-deletion-panel h4 {
    color: #f8fafc !important;
    font-size: 20px;
    margin: 0 0 12px;
}

.mk-deletion-panel p,
.mk-deletion-panel label {
    color: #cbd5e1 !important;
}

.mk-deletion-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
}

.mk-deletion-form label {
    font-size: 13px;
    font-weight: 600;
}

.mk-deletion-form input {
    width: 100%;
    max-width: 420px;

    background: #101c30 !important;
    color: #ffffff !important;

    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;

    padding: 12px 15px;
    box-sizing: border-box;
}

.mk-deletion-form input:focus {
    outline: none;
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.mk-deletion-submit {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;

    width: auto !important;
    max-width: 100%;

    margin-top: 12px;
    padding: 12px 22px !important;

    background: linear-gradient(
        135deg,
        #ef4444,
        #991b1b
    ) !important;

    color: #ffffff !important;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;

    font-weight: 700;
    cursor: pointer;

    transition: transform .2s ease, box-shadow .2s ease;
}

.mk-deletion-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.mk-deletion-cancel {
    display: inline-flex !important;
    width: auto !important;

    padding: 12px 22px !important;

    background: linear-gradient(
        135deg,
        #00b4ff,
        #0066cc
    ) !important;

    color: #ffffff !important;

    border: none;
    border-radius: 11px;

    font-weight: 700;
    cursor: pointer;
}

.mk-deletion-deadline {
    margin: 18px 0;
}

.mk-deletion-deadline strong {
    color: #f8fafc;
}

.mk-deletion-notice {
    padding: 14px 18px;
    margin-bottom: 18px;

    color: #ffffff;
    background: rgba(30, 64, 105, 0.8);

    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 11px;
}

@media (max-width: 480px) {
    .mk-deletion-warning,
    .mk-deletion-pending {
        padding: 20px;
    }
}

/* ==========================================
   ACCOUNT DELETION - PROCESSING STATUS
   ========================================== */

.mk-deletion-processing {
    margin-top: 20px;
    padding: 18px 20px;

    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
}

.mk-deletion-processing strong {
    display: block;
    color: #fbbf24 !important;
    font-size: 15px;
    margin-bottom: 8px;
}

.mk-deletion-processing p {
    color: #cbd5e1 !important;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}
