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

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

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

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

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

.ago-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #c3c4c7;
    margin-bottom: 0;
}

.ago-tab {
    display: inline-block;
    padding: 10px 18px;
    color: #50575e;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-bottom: -2px;
    transition: background 0.15s, color 0.15s;
}

.ago-tab:hover {
    color: #1d2327;
    background: #f0f6fc;
}

.ago-tab.active {
    background: #fff;
    color: #1d2327;
    border-color: #c3c4c7;
    border-bottom-color: #fff;
}

.ago-tab-panel {
    display: none;
    border-top: none;
    margin-top: 0;
}

.ago-tab-panel.active {
    display: block;
}

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

.ago-field label {
    display: block;
    margin-bottom: 4px;
}

.ago-field-desc {
    font-size: 12px;
    color: #888;
    margin: 4px 0 8px;
}

.ago-logo-preview {
    margin: 8px 0;
    min-height: 40px;
}

.ago-logo-preview img {
    max-width: 320px;
    max-height: 84px;
    background: #f0f0f1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ago-matrix-wrap {
    overflow-x: auto;
    margin: 12px 0;
}

.ago-matrix {
    min-width: 500px;
}

.ago-matrix th,
.ago-matrix td {
    text-align: center;
    padding: 8px 10px;
    font-size: 13px;
}

.ago-matrix th:first-child,
.ago-matrix td:first-child {
    text-align: left;
    font-weight: 500;
}

.ago-matrix-role {
    font-size: 12px;
    white-space: nowrap;
}

.ago-matrix-cell {
    text-align: center;
}

.ago-matrix-cell input[type="checkbox"] {
    margin: 0;
}

.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-admin-status {
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
}

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

#ago-admin-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;
}

.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;
}
