.ago-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.ago-main {
    flex: 1;
    max-width: 680px;
}

.ago-sidebar {
    width: 280px;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .ago-layout { flex-direction: column; }
    .ago-sidebar { width: 100%; max-width: 680px; }
}

.ago-card {
    max-width: 100% !important;
}

.ago-section {
    margin: 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.ago-section:last-of-type {
    border-bottom: none;
}

.ago-section h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #1d2327;
}

.ago-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    margin: 4px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.ago-toggle-row:hover {
    background: #f0f6fc;
}

.ago-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ago-toggle-label strong {
    font-size: 13px;
    color: #1d2327;
}

.ago-toggle-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

.ago-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.ago-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ago-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #c3c4c7;
    border-radius: 22px;
    transition: background 0.25s;
}

.ago-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
}

.ago-switch input:checked + .ago-slider {
    background: #2271b1;
}

.ago-switch input:checked + .ago-slider::before {
    transform: translateX(18px);
}

.ago-switch input:focus + .ago-slider {
    box-shadow: 0 0 0 2px #2271b1;
}

#ago-cleanup-status {
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
}

#ago-cleanup-status.success {
    background: #edfaef;
    border: 1px solid #00a32a;
    color: #00601b;
}

#ago-cleanup-status.error {
    background: #fcf0f1;
    border: 1px solid #d63638;
    color: #8a1114;
}

.ago-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.ago-features {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.ago-features li {
    font-size: 13px;
    padding: 3px 0;
    color: #555;
}

.ago-features li::before {
    content: "\2713";
    color: #00a32a;
    font-weight: bold;
    margin-right: 8px;
}

.ago-donation {
    text-align: center;
}

.ago-donation-amounts {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 12px 0;
}

.ago-amount {
    display: inline-block;
    padding: 8px 18px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    color: #1d2327;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.ago-amount:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.ago-coffee-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #1d2327;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    margin: 8px 0;
}

.ago-coffee-btn:hover {
    background: #2271b1;
    color: #fff !important;
}

.ago-donation-note {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

.ago-footer {
    text-align: center;
    padding: 16px 0;
}

.ago-footer-logo {
    display: inline-block;
    margin-bottom: 8px;
    transition: opacity 0.2s;
}

.ago-footer-logo:hover {
    opacity: 0.8;
}

.ago-footer p {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
}

.ago-footer a {
    color: #2271b1;
    text-decoration: none;
}

.ago-intro {
    border-left: 4px solid #2271b1;
    background: linear-gradient(180deg, #f0f6fc 0%, #ffffff 70%);
}
.ago-intro p { font-size: 14px; line-height: 1.55; margin: 8px 0; }
.ago-intro h2 { color: #1d2327; font-size: 16px; }
.ago-intro code { background: rgba(34,113,177,0.08); padding: 1px 5px; border-radius: 3px; }

.ago-rec-pill {
    display: inline-block !important;
    vertical-align: middle;
    margin-left: 8px;
    padding: 3px 9px !important;
    background: #1e8a4a !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0,0,0,0.15);
    line-height: 1.2 !important;
}

.ago-toggle-row {
    align-items: flex-start;
    padding: 14px 0;
}
.ago-toggle-label { display: flex; flex-direction: column; gap: 4px; }
.ago-toggle-label > strong { font-size: 14px; color: #1d2327; }
.ago-toggle-desc {
    font-size: 12.5px;
    color: #50575e;
    line-height: 1.45;
    display: block;
}
.ago-toggle-desc code,
.ago-toggle-caveat code { background: #f0f0f1; padding: 1px 5px; border-radius: 3px; font-size: 12px; }
.ago-toggle-caveat {
    display: block;
    margin-top: 6px;
    padding: 8px 10px;
    background: #fff7e6;
    border-left: 3px solid #dba617;
    border-radius: 0 4px 4px 0;
    font-size: 12.5px;
    color: #614a00;
    line-height: 1.45;
}

#ago-apply-recommended { background: #1e8a4a; border-color: #176f3a; }
#ago-apply-recommended:hover { background: #176f3a; border-color: #135e30; color: #fff; }

.ago-actions { display: flex; gap: 6px; flex-wrap: wrap; }
    margin-top: 8px;
    margin-left: 0;
    border-top: 1px dashed #e0e0e0;
    padding-top: 8px;
}
.ago-toggle-details > summary {
    cursor: pointer;
    font-size: 12.5px;
    color: #2271b1;
    user-select: none;
    list-style: none;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ago-toggle-details > summary::before {
    content: "\25B6"; 
    font-size: 9px;
    color: #2271b1;
    transition: transform 0.15s;
    display: inline-block;
}
.ago-toggle-details[open] > summary::before { transform: rotate(90deg); }
.ago-toggle-details > summary:hover { color: #135e96; }
.ago-toggle-details > summary::-webkit-details-marker { display: none; }
.ago-toggle-details > summary::marker { content: ""; }
.ago-toggle-summary code,
.ago-section .description code { background: #f0f0f1; padding: 1px 5px; border-radius: 3px; font-size: 11.5px; }
.ago-toggle-details-inner { padding: 4px 0 0 14px; }
.ago-toggle-details-inner p {
    font-size: 12.5px;
    color: #50575e;
    margin: 4px 0;
    line-height: 1.5;
}
.ago-toggle-details-inner code { background: #f0f0f1; padding: 1px 5px; border-radius: 3px; font-size: 11.5px; }
.ago-toggle-caveat {
    display: block;
    margin-top: 6px !important;
    padding: 8px 10px !important;
    background: #fff7e6 !important;
    border-left: 3px solid #dba617 !important;
    border-radius: 0 4px 4px 0;
    color: #614a00 !important;
}

.ago-intro { border-left: 4px solid #d63638; background: linear-gradient(180deg, #fcf0f1 0%, #ffffff 70%); }
.ago-intro p { font-size: 14px; line-height: 1.55; margin: 8px 0; }
.ago-intro h2 { color: #1d2327; font-size: 16px; }
.ago-intro code { background: rgba(214,54,56,0.08); padding: 1px 5px; border-radius: 3px; }

#ago-apply-recommended { background: #1e8a4a; border-color: #176f3a; color: #fff; }
#ago-apply-recommended:hover { background: #176f3a; border-color: #135e30; color: #fff; }
.ago-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.ago-section { margin: 20px 0; padding-bottom: 8px; }
