* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ── Scheduled-deletion header notice ── */
.header-deletion {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    background: #fff3cd;
    border: 1px solid #f0a500;
    border-radius: 6px;
    color: #7a4700;
    font-size: 0.78rem;
    line-height: 1.3;
    flex-shrink: 0;
    cursor: default;
    max-width: 280px;
}
.header-deletion-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #c97d00;
}
.header-deletion-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-deletion-cancel {
    background: none;
    border: 1px solid rgba(201,125,0,0.6);
    border-radius: 4px;
    color: #7a4700;
    padding: 0.12rem 0.45rem;
    font-size: 0.72rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
    letter-spacing: 0.04em;
}
.header-deletion-cancel:hover { background: #f59e0b; color: #fff}
.header-deletion-cancel:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 625px) {
    .header-deletion-text,
    .header-deletion-cancel { display: none; }
    .header-deletion { padding: 0.28rem; }
}

/* ── Deletion-cancelled success banner (inline, auto-dismisses) ── */
.deletion-cancelled-banner {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
    margin: 0.6rem 1rem 0;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #166534;
    font-size: 0.88rem;
    line-height: 1.4;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── Subscription-cancelled header notice ── */
.header-sub-cancelled {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    color: #1e40af;
    font-size: 0.78rem;
    line-height: 1.3;
    flex-shrink: 0;
    cursor: default;
    max-width: 280px;
}
.header-sub-cancelled-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #3b82f6;
}
.header-sub-cancelled-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-sub-cancelled-btn {
    background: none;
    border: 1px solid rgba(59,130,246,0.5);
    border-radius: 4px;
    color: #1e40af;
    padding: 0.12rem 0.45rem;
    font-size: 0.72rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
    letter-spacing: 0.04em;
}
.header-sub-cancelled-btn:hover { background: #dbeafe; }
.header-sub-cancelled-btn:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 625px) {
    .header-sub-cancelled-text,
    .header-sub-cancelled-btn { display: none; }
    .header-sub-cancelled { padding: 0.28rem; }
}

/* ── Deletion restore popup overlay (Pro/Premium) ── */
.deletion-restore-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.deletion-restore-box {
    background: var(--bg-primary);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}
.deletion-restore-icon {
    width: 52px;
    height: 52px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.15rem;
}
.deletion-restore-icon svg {
    width: 26px;
    height: 26px;
    color: #dc2626;
}
.deletion-restore-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.deletion-restore-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.deletion-restore-sub {
    font-size: 0.79rem;
    color: var(--text-tertiary);
    margin: 0;
}
.deletion-restore-btn-primary {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.4rem;
    transition: opacity .15s;
}
.deletion-restore-btn-primary:hover { opacity: .88; }
.deletion-restore-btn-primary:disabled { opacity: .5; cursor: default; }
.deletion-restore-btn-secondary {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 0.79rem;
    cursor: pointer;
    padding: 0.2rem 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.deletion-restore-btn-secondary:hover { color: var(--text-secondary); }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
body.pg_home
/* Overlay */
.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
}
.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.message-processing {
    background-color: #cce7ff;
    color: #016484;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 12rem;                    /* Altura mínima */
    display: flex;                        /* Flexbox para centrar */
    align-items: center;                  /* Centrado vertical */
    justify-content: center;              /* Centrado horizontal */
}

/* El contenido del texto */
.message-processing .overlayText {
    z-index: 2;                          /* Por encima de las animaciones */
    position: relative;
    padding-top: 20px;
}

/* Barra de progreso animada - punto intermedio */
.message-processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        #2e8fb8,
        #1a7fae,
        #2e8fb8,
        transparent
    );
    animation: progressSlide 2s ease-in-out infinite;
    z-index: 1;
}

/* Pulso sutil con el mismo tono intermedio */
.message-processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center,
        rgba(46, 143, 184, 0.12) 0%,
        transparent 70%
    );
    animation: pulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes progressSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.65; }
}

.message-info {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.4s linear infinite;
    margin-right: 8px;
    position: relative;
    top: 2px;
}
.hide {
    display: none !important;
}
.show {
    display: block !important;
}
.message-processing .overlayText::after {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    margin: 16px auto 0;
    position: relative;
    border-radius: 50%;
}
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    cursor: wait;
}
.message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 100dvw;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 2999;
  display: none;
}
.message-overlay.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay-message {
  padding: 30px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  font-size: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: fadeInScale 0.3s ease-out;
  text-align: center;
  background-color: #ffffff;
}
.overlay-text {
    margin-top: 0.2rem;
    line-height: 1.6rem;
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Form */
.forms {
    max-width: 400px;
    margin: 1rem auto 0;
    text-align: center;
}
.form-group {
    margin: 25px auto;
    position: relative;
    max-width: 330px;
}
.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 16px;
    color: #9f9f9f;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    z-index: 1;
}
.form-group label.float {
    top: -8px;
    left: 12px;
    font-size: 14px;
    color: #999999;
    background: white;
    padding: 0 6px;
    border-radius: 5px;
}
.form-group label.float.label_value {
    color: #248fa3;
}
.form-group label.float.label_focus {
    color: #33a5a7;
}
.pg_signup_paid_plan_premium .form-group label.float.label_value,
.pg_signup_paid_plan_premium .form-group label.float.label_focus {
    color: #b1922c;
}
.form-group label.fixed {
    color: rgb(149 160 171);
    background-color: #f8f9fa;
    border-radius: 25px;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #f8f9fa inset !important;
  -webkit-text-fill-color: #000000 !important;
  background-color: transparent !important;
  transition: background-color 5000s ease-in-out 0s; /* evita parpadeo */
}
.form-group div.readonly,
.form-group input {
    font-family: 'DM Sans Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    border: 1px solid #b0b1b1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    padding: 1.1rem 2.2rem 0.8rem 1.2rem;
}
.form-group div.readonly {
    background-color: #f8f9fa;
    border: 1px solid #00000026;
    color: #4a5568;
    text-align: left;
}
.form-group input:hover {
    border-color: #17a2c5;
    background-color: white;
}
.form-group input:focus {
    outline: none;
    border-color: #33a5a7;
    background-color: white;
    /*box-shadow: 0 0 0 3px rgba(36, 143, 163, 0.1);*/
}
.pg_signup_paid_plan_premium .form-group .input_value,
.pg_signup_paid_plan_premium .stripe-element.StripeElement--complete,
.pg_signup_paid_plan_premium .form-group input:hover,
.pg_signup_paid_plan_premium .form-group input:focus {
    border-color: #d4af37;
}

.form-group .input_value,
.stripe-element.StripeElement--complete {
    border-color: #248fa3;
}

.form-group .input_readonly {
    background-color: #0b687f;
}
.label_readonly {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 100%) !important;
}
.input_readonly[readonly] {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #414040;
    border: 1.5px solid #d1d5db;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}

#input_readonly[readonly]:focus {
    outline: none;
    border-color: #d1d5db;
    background: linear-gradient(90deg, #ececec 0%, #e0e0e0 100%);
}
button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    font-weight: 600;
}
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #19b2cb 0%, #0891b2 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.2);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 225px;
    border-radius: 12px;
    margin-bottom: 3px;
    outline: 1px solid transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    white-space: nowrap;
}
.pricing-plan .action-button {
    width: 100%;
    max-width: 330px;
}
.action-button:active {
    outline: 2px solid #19b2cb;
    outline-offset: 0px;
}
.action-button.success,
.action-button.error,
.action-button.info {
    padding: 12px 30px;
    min-width: 150px;
    margin-top: 2rem;
}
.action-button.success {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}
.action-button.success:hover {
    background: linear-gradient(135deg, #34d399 0%, #65c39e 50%, #0ba777 100%);
}
.action-button.error {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
}
.action-button.error:hover {
    background: linear-gradient(135deg, #f87171 0%, #ed8888 50%, #dc2626 100%);
}
.action-button.info {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
.action-button.info:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 50%, #f59e0b 100%);
}

.is_pro .hero-section .action-button.plan-button {
    background: linear-gradient(135deg, #4a90a4, #5aa3b8);
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.2);
    border: 2px solid #4a90a4;
}
.is_pro .hero-section .action-button.plan-button:hover {
    background: linear-gradient(135deg, #52a7bd 0%, #3fb3cd 50%, #3daec9 100%);
    box-shadow: 0 8px 25px rgba(74, 144, 164, 0.45);
    border-color: #3da5bd;
}

.pricing-plan.premium .action-button,
.pg_signup_paid_plan_premium .submit-button,
.is_premium .hero-section .action-button.plan-button {
    background: linear-gradient(135deg, #ebcc65, #edcb5c);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    border: 2px solid #e7c75f;
    color: #1a1a1a;
}
.pricing-plan.premium .action-button:hover,
.pricing-plan.premium .plan-button:active,
.pg_signup_paid_plan_premium .submit-button:hover,
.pg_signup_paid_plan_premium .submit-button:active,
.is_premium .hero-section .action-button.plan-button:hover,
.is_premium .hero-section .action-button.plan-button:active{
    background: linear-gradient(135deg, #f0c952 0%, #ffd96e 50%, #f5c842 100%);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
    border-color: #ffd96e;
    color: #1a1a1a;
}

.form-group input.password {
    padding-right: 50px; /* Space for toggle button */
}
.eye {
    display: inline-block;
    width: 22px;
    height: 22px;
    padding: 12px 10px 14px;
    opacity: 0.5;
    position: absolute !important;
}
.eye:hover {
    opacity: 0.6;
    background-color: rgb(217, 235, 243);
    cursor: pointer;
}
.eye_on {
    background: url(/static/img/eye-on.svg) no-repeat center / contain !important;
    background-size: 22px auto !important;
}
.eye_off {
    background: url(/static/img/eye-off.svg) no-repeat center / contain !important;
    background-size: 22px auto !important;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    color: #6c757d;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.password-toggle:hover {
    background-color: rgba(36, 143, 163, 0.1);
    color: #248fa3;
}

.password-toggle:focus {
    /*outline: 2px solid rgba(36, 143, 163, 0.3);
    outline-offset: 2px;*/
}
.link {
    color: #4a90a4;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    margin-top: 5px;
}

.link:hover {
    color: #1d616f;
    background-color: rgba(36, 143, 163, 0.20);
    text-decoration: none;
}
.link-arrow {
  display: inline-block;
  margin-left: 7px;
  transition: transform 0.3s ease;
}
.link:hover .link-arrow {
  transform: translateX(5px);
}
.divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 20px 0 5px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #cfcfcf;
}

.divider span {
    margin: 0 0.75em;
    white-space: nowrap;
    color: #6c757d;
    top: -2px;
    position: relative;
    font-size: 14px;
}


@media (max-width: 580px) {
    .overlay-message {
        padding: 15px 15px 30px;
    }
}