.YXYH-pc-page-die-or-not {
    width: min(var(--ls-width, 1200px), calc(100% - 24px));
    margin: 20px auto 40px;
    color: var(--ls-text-primary, #1f2937);
}

.yxyh-don-pc-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(222, 234, 238, 0.96);
    border-radius: calc(var(--ls-border-radius, 12px) + 4px);
    background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 48%, #fefce8 100%);
    box-shadow: 0 16px 36px rgba(148, 163, 184, 0.08);
    margin-bottom: 18px;
}

.yxyh-don-pc-hero::before {
    content: '';
    position: absolute;
    top: -54px;
    right: -32px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0));
    pointer-events: none;
}

.yxyh-don-pc-hero::after {
    content: '';
    position: absolute;
    left: 28px;
    bottom: -48px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.18), rgba(125, 211, 252, 0));
    pointer-events: none;
}

.yxyh-don-pc-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
}

.yxyh-don-pc-hero-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #16a34a;
    flex-shrink: 0;
    border: 1px solid rgba(167, 243, 208, 0.6);
}

.yxyh-don-pc-hero-text {
    flex: 1;
    min-width: 0;
}

.yxyh-don-pc-hero-text h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.yxyh-don-pc-hero-text p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.yxyh-don-pc-hero-action {
    flex-shrink: 0;
}

.yxyh-don-pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: calc(var(--ls-border-radius-btn, 10px) + 2px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.yxyh-don-pc-btn:hover {
    transform: translateY(-1px);
}

.yxyh-don-pc-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.yxyh-don-pc-btn.is-primary {
    border-color: rgba(74, 222, 128, 0.6);
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
}

.yxyh-don-pc-btn.is-primary:hover {
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.12);
}

.yxyh-don-pc-btn.is-ghost {
    border-color: rgba(226, 232, 240, 0.96);
    background: #ffffff;
    color: #475569;
}

.yxyh-don-pc-btn.is-ghost:hover {
    border-color: rgba(191, 219, 254, 0.92);
    background: #f8fafc;
}

.yxyh-don-pc-btn.is-done {
    border-color: rgba(167, 243, 208, 0.6);
    background: rgba(240, 253, 244, 0.6);
    color: #16a34a;
}

.yxyh-don-pc-btn:focus-visible {
    outline: 2px solid rgba(34, 197, 94, 0.5);
    outline-offset: 3px;
}

.yxyh-don-pc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 18px;
    margin-bottom: 18px;
}

.yxyh-don-pc-card {
    border-radius: calc(var(--ls-border-radius, 12px) + 4px);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.06);
    padding: 25px;
    height: 380px;
}

.yxyh-don-pc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    height: 30px;
}

.yxyh-don-pc-card-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yxyh-don-pc-card-head h2 i {
    font-size: 18px;
    color: var(--ls-primary, #2563eb);
}

.yxyh-don-pc-status {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
}

.yxyh-don-pc-status.is-on {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.yxyh-don-pc-status.is-off {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.yxyh-don-pc-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yxyh-don-pc-input-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.yxyh-don-pc-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 22px;
}

.yxyh-don-pc-input-group label i {
    font-size: 13px;
}

.yxyh-don-pc-input-group input {
    height: 45px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: calc(var(--ls-border-radius, 12px));
    background: #f8fafc;
    font-size: 14px;
    color: var(--ls-text-primary, #1f2937);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.yxyh-don-pc-input-group input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
    background: #ffffff;
}

.yxyh-don-pc-input-group input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.yxyh-don-pc-card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.yxyh-don-pc-rules {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yxyh-don-pc-rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: calc(var(--ls-border-radius, 12px));
    background: #f8fafc;
    font-size: 13px;
    color: #475569;
    height: 49px;
}

.yxyh-don-pc-rule-item i {
    font-size: 16px;
    color: var(--ls-primary, #2563eb);
    flex-shrink: 0;
}

.yxyh-don-pc-rule-item strong {
    font-weight: 700;
    color: #0f172a;
}

.yxyh-don-pc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 285px;
    overflow-y: auto;
}

.yxyh-don-pc-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: calc(var(--ls-border-radius, 12px));
    background: #f8fafc;
}

.yxyh-don-pc-list-row.is-log {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.yxyh-don-pc-list-date {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
}

.yxyh-don-pc-list-time {
    font-size: 12px;
    color: #94a3b8;
}

.yxyh-don-pc-log-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.yxyh-don-pc-log-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.yxyh-don-pc-log-status.is-sent {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.yxyh-don-pc-log-status.is-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.yxyh-don-pc-log-email {
    font-size: 13px;
    color: #334155;
}

.yxyh-don-pc-log-days {
    font-size: 12px;
    color: #64748b;
}

.yxyh-don-pc-loadmore {
    display: block;
    width: 100%;
    height: 36px;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: calc(var(--ls-border-radius, 12px));
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.yxyh-don-pc-loadmore:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background: #f0fdf4;
}

.yxyh-don-pc-loadmore:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.yxyh-don-pc-alert-page .yxyh-don-pc-grid {
    grid-template-columns: 1fr 1fr 1fr;
}

.yxyh-don-pc-alert-page .yxyh-don-pc-card {
    height: auto;
}

.yxyh-don-pc-alert-page .yxyh-don-pc-list {
    height: auto;
    max-height: 285px;
}

.yxyh-don-pc-alert-user {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.yxyh-don-pc-alert-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0fdf4;
}

.yxyh-don-pc-alert-user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yxyh-don-pc-alert-user-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.yxyh-don-pc-alert-user-text span {
    font-size: 12px;
    color: #94a3b8;
}

.yxyh-don-pc-alert-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yxyh-don-pc-alert-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.yxyh-don-pc-alert-field label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.yxyh-don-pc-alert-field span {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
}

.yxyh-don-pc-alert-danger {
    color: #dc2626;
    font-weight: 700;
}

.yxyh-don-pc-alert-empty {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}
