
.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-master-toggle-card {
    border-left: 4px solid #c3c4c7;
    transition: border-color 0.3s;
}

.ago-master-toggle-card.active {
    border-left-color: #d63638;
}

.ago-master-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.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-switch-lg {
    width: 56px;
    height: 30px;
}

.ago-switch-lg .ago-slider {
    border-radius: 30px;
}

.ago-switch-lg .ago-slider::before {
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
}

.ago-switch-lg input:checked + .ago-slider {
    background: #d63638;
}

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

.ago-mode-selector {
    display: flex;
    gap: 12px;
}

@media (max-width: 600px) {
    .ago-mode-selector {
        flex-direction: column;
    }
}

.ago-mode-option {
    flex: 1;
    cursor: pointer;
}

.ago-mode-option input[type="radio"] {
    display: none;
}

.ago-mode-box {
    display: block;
    padding: 14px 16px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    transition: all 0.2s;
}

.ago-mode-box strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1d2327;
}

.ago-mode-box span {
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

.ago-mode-option input[type="radio"]:checked + .ago-mode-box {
    border-color: #2271b1;
    background: #f0f6fc;
}

.ago-field {
    margin: 12px 0;
}

.ago-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 4px;
}

.ago-field input[type="text"],
.ago-field input[type="datetime-local"],
.ago-field textarea {
    width: 100%;
    max-width: 100%;
}

.ago-field input[type="color"] {
    width: 60px;
    height: 36px;
    padding: 2px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
}

.ago-field-row {
    display: flex;
    gap: 20px;
}

.ago-field-row .ago-field {
    flex: 1;
}

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

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

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

#ago-maint-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-media-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 8px 0;
}

.ago-media-preview {
    width: 110px;
    height: 70px;
    border: 1px dashed #c3c4c7;
    border-radius: 4px;
    background: #f6f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ago-media-preview-bg {
    width: 160px;
    height: 90px;
}

.ago-media-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ago-media-preview-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ago-media-empty {
    font-size: 11px;
    color: #999;
    text-align: center;
    padding: 0 6px;
}

.ago-media-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.ago-media-clear {
    font-size: 12px;
    color: #b32d2e !important;
}

.ago-media-clear:hover { color: #8a1f20 !important; }

.ago-admin-bypass-note {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff7e6;
    border-left: 3px solid #dba617;
    border-radius: 0 4px 4px 0;
}

.ago-admin-bypass-note label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ago-admin-bypass-note strong {
    font-size: 13px;
    color: #614a00;
}

.ago-admin-bypass-note p {
    margin: 6px 0 0;
    color: #614a00;
    opacity: 0.85;
    font-size: 12px;
    line-height: 1.45;
}
