@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════55
   site.scss — Shared styles for all public / home pages
   Compiled to site.css (dev) and site.min.css (prod).
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bs-code-color: #db6ca3;
}

.text-right {
  text-align: right;
}

.aim-svf-rect {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100000;
  pointer-events: none;
  padding: 28px 48px;
  border-radius: 16px;
  text-align: center;
  min-width: 320px;
  max-width: 80vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.15s ease;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
.aim-svf-rect.aim-svf-default {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}
.aim-svf-rect.aim-svf-info {
  background: var(--aim-info, #06b6d4);
  color: #fff;
}
.aim-svf-rect.aim-svf-tip {
  background: var(--aim-yellow, #eab308);
  color: #1a1a1a;
}
.aim-svf-rect.aim-svf-success {
  background: var(--aim-green, #22c55e);
  color: #fff;
}
.aim-svf-rect.aim-svf-warning {
  background: var(--aim-yellow, #eab308);
  color: #1a1a1a;
}
.aim-svf-rect.aim-svf-danger {
  background: var(--aim-red, #ef4444);
  color: #fff;
}
.aim-svf-rect.aim-svf-primary {
  background: var(--aim-accent, #6366f1);
  color: #fff;
}
.aim-svf-rect.aim-svf-secondary {
  background: #6b7280;
  color: #fff;
}

.aim-btm-section-sep {
  border-top: 1px solid var(--aim-border, #2a2d45);
  margin-top: 14px;
  padding-top: 10px;
}

.aim-filter-hidden {
  display: none !important;
}

.is-hidden {
  display: none;
}

.aim-plus-minus, .aim-addons-row-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.aim-plus-minus-btn {
  background: none;
  border: 1px solid var(--aim-border, #2a2d45);
  color: var(--aim-text, #e0e0e8);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.15s;
}
.aim-plus-minus-btn:first-child {
  border-radius: 6px 0 0 6px;
}
.aim-plus-minus-btn:last-child {
  border-radius: 0 6px 6px 0;
}
.aim-plus-minus-btn:hover {
  background: var(--aim-hover-bg, rgba(255, 255, 255, 0.08));
}
.aim-plus-minus-input {
  width: 48px;
  text-align: center;
  border: 1px solid var(--aim-border, #2a2d45);
  border-left: none;
  border-right: none;
  background: none;
  color: var(--aim-text, #e0e0e8);
  font-size: 0.9rem;
  height: 28px;
  padding: 0 4px;
}
.aim-plus-minus-input::-webkit-outer-spin-button, .aim-plus-minus-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/*.aim-section {
    &-heading {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 11px;
        font-weight: 600;
        color: var(--aim-text-dim, #8b8fa3);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 8px;

        &-content {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1; // This span grows to fill all space not taken by the button

            &::after {
                content: '';
                flex: 1; // This line grows to fill all space not taken by the text/badge
                height: 1px;
                border-top: dotted 1px var(--aim-border, #2a2d45);
            }
        }

        &-btn {
            flex-shrink: 0; // Ensures the button doesn't squish

            &:hover{
                color: $accent !important;
                border-color: $accent;
            }
        }
    }
}*/
/*.aim-section {
    &-heading, &-heading-with-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 11px;
        font-weight: 600;
        color: var(--aim-text-dim, #8b8fa3);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 8px;
    }

    &-heading::after {
        content: '';
        flex: 1;
        height: 1px;
        border-top: dotted 1px var(--aim-border, #2a2d45);
    }

    &-heading-with-actions {
        &-content {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;

            &::after {
                content: '';
                flex: 1;
                height: 1px;
                border-top: dotted 1px var(--aim-border, #2a2d45);
                margin-left: 10px;
            }
        }
    }
}
*/
.aim-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--aim-text-dim, #8b8fa3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.aim-section-heading-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.aim-section-heading-content::after {
  content: "";
  flex: 1;
  height: 1px;
  border-top: dotted 1px var(--aim-border, #2a2d45);
  margin-left: 10px;
}
.aim-section-heading-btn {
  flex-shrink: 0;
  border-style: dashed !important;
}
.aim-section-heading-btn:hover {
  color: #6366f1 !important;
  border-color: #6366f1 !important;
  border-style: solid !important;
  background-color: var(--aim-accent-dim, rgba(99, 102, 241, 0.3)) !important;
}

.aim-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--aim-text-dim, #8b8fa3);
  gap: 16px;
  font-size: 15px;
}
.aim-empty-state i {
  opacity: 0.3;
}

.aim-inline-sep {
  color: var(--aim-text-dim, #8b8fa3);
  margin: 0 2px;
  font-weight: 300;
}

.aim-tab-badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--aim-accent-dim, rgba(99, 102, 241, 0.3));
  color: var(--aim-accent-hover, #818cf8);
  border-radius: 8px;
  padding: 0 4px;
  margin-left: 4px;
}
.aim-tab-badge .fa-check {
  position: relative;
  left: -1px;
}
.aim-tab-badge--danger {
  background: rgba(220, 38, 38, 0.25);
  color: var(--aim-red, #ef4444);
}
.aim-tab-badge--success {
  background: rgba(34, 197, 94, 0.25);
  color: var(--aim-green, #22c55e);
}
.aim-tab-badge--warn {
  background: rgba(245, 158, 11, 0.25);
  color: var(--aim-orange, #f59e0b);
}
.aim-tab-badge--primary {
  background: var(--aim-accent-dim, rgba(99, 102, 241, 0.3));
  color: var(--aim-accent-hover, #818cf8);
}
.aim-tab-check {
  font-size: 10px;
  color: var(--aim-text-dim, #8b8fa3);
  margin-left: 3px;
  opacity: 0.7;
}
.aim-tab-sep {
  padding: 0 0.5rem;
}

.aim-aicost-loading {
  color: var(--aim-text-dim, #8b8fa3);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 2px;
}
.aim-aicost-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.03));
  padding: 16px 14px;
  margin: 8px 0 14px;
}
.aim-aicost-total-icon {
  color: var(--aim-green, #22c55e);
  font-size: 20px;
}
.aim-aicost-total {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--aim-text-bright, #ffffff);
}
.aim-aicost-total-label {
  color: var(--aim-text-dim, #8b8fa3);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aim-aicost-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.aim-aicost-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--aim-text-dim, #8b8fa3);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.aim-aicost-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--aim-bg-card, #1c1f2e);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 8px;
}
.aim-aicost-table thead th:first-child {
  border-top-left-radius: 8px;
}
.aim-aicost-table thead th:last-child {
  border-top-right-radius: 8px;
}
.aim-aicost-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
.aim-aicost-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}
.aim-aicost-table:has(> tbody:empty) thead th:first-child {
  border-bottom-left-radius: 8px;
}
.aim-aicost-table:has(> tbody:empty) thead th:last-child {
  border-bottom-right-radius: 8px;
}
.aim-aicost-table th,
.aim-aicost-table td {
  padding: 7px 9px;
  border-bottom: 1px solid var(--aim-border, #2a2d45);
  text-align: right;
  font-size: 12px;
}
.aim-aicost-table tbody td {
  color: var(--aim-text, #e0e0e8);
}
.aim-aicost-table tbody td.aim-rating-stars {
  color: #f7eb09;
}
.aim-aicost-table tbody td.aim-rating-stars .fa-regular {
  color: rgba(247, 235, 9, 0.3);
}
.aim-aicost-table th:first-child,
.aim-aicost-table td:first-child {
  text-align: left;
  width: 45%;
}
.aim-aicost-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--aim-text-dim, #8b8fa3);
  background: var(--aim-bg-hover, #252840);
}
.aim-aicost-table .aim-aicost-sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.aim-aicost-table .aim-aicost-sortable-th:hover {
  color: var(--aim-text-bright, #ffffff);
}
.aim-aicost-table .aim-sort-icon {
  font-size: 10px;
  opacity: 0.5;
  margin-left: 4px;
}
.aim-aicost-table .aim-aicost-sortable-th:hover .aim-sort-icon {
  opacity: 1;
}
.aim-aicost-table tbody tr:last-child td {
  border-bottom: 0;
}
.aim-aicost-table tbody tr:hover td {
  background: var(--aim-bg-hover, #252840);
}

.aim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--aim-radius, 6px);
  border: 1px solid var(--aim-border, #2a2d45);
  background: var(--aim-bg-card, #1c1f2e);
  color: var(--aim-text, #e0e0e8);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--aim-transition, 0.2s ease);
  white-space: nowrap;
}
.aim-btn:hover {
  background: var(--aim-bg-hover, #252840);
  border-color: var(--aim-border-light, #363a54);
}
.aim-btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}
.aim-btn-xs {
  padding: 3px 8px;
  font-size: 11px;
  gap: 4px;
}
.aim-btn-primary {
  background: var(--aim-accent, #6366f1);
  border-color: var(--aim-accent, #6366f1);
  color: var(--aim-white, #fff);
}
.aim-btn-primary:hover {
  background: var(--aim-accent-hover, #818cf8);
  border-color: var(--aim-accent-hover, #818cf8);
}
.aim-btn-accent {
  background: var(--aim-cyan, #06b6d4);
  border-color: var(--aim-cyan, #06b6d4);
  color: var(--aim-white, #fff);
}
.aim-btn-accent:hover {
  background: var(--aim-cyan-hover, #22d3ee);
  border-color: var(--aim-cyan-hover, #22d3ee);
}
.aim-btn-success {
  background: var(--aim-green, #22c55e);
  border-color: var(--aim-green, #22c55e);
  color: var(--aim-white, #fff);
}
.aim-btn-success:hover {
  background: var(--aim-green-light, #86efac);
  border-color: var(--aim-green-light, #86efac);
}
.aim-btn-danger {
  background: var(--aim-red, #ef4444);
  border-color: var(--aim-red, #ef4444);
  color: var(--aim-white, #fff);
}
.aim-btn-danger:hover {
  background: var(--aim-red-hover, #f87171);
  border-color: var(--aim-red-hover, #f87171);
}
.aim-btn-warning {
  background: var(--aim-yellow, #eab308);
  border-color: var(--aim-yellow, #eab308);
  color: var(--aim-text-dark, #1a1a1a);
}
.aim-btn-warning:hover {
  background: #f59e0b;
  border-color: #f59e0b;
}
.aim-btn-info {
  background: var(--aim-info, #06b6d4);
  border-color: var(--aim-info, #06b6d4);
  color: var(--aim-white, #fff);
}
.aim-btn-info:hover {
  background: var(--aim-cyan-hover, #22d3ee);
  border-color: var(--aim-cyan-hover, #22d3ee);
}
.aim-btn-question {
  background: var(--aim-info, #06b6d4);
  border-color: var(--aim-info, #06b6d4);
  color: var(--aim-white, #fff);
}
.aim-btn-question:hover {
  background: var(--aim-cyan-hover, #22d3ee);
  border-color: var(--aim-cyan-hover, #22d3ee);
}
.aim-btn-suggestion {
  background: rgba(247, 235, 9, 0.6);
  border-color: rgba(234, 179, 8, 0.5);
  color: #111;
}
.aim-btn-suggestion:hover {
  background: rgba(247, 235, 9, 0.8);
  border-color: rgba(234, 179, 8, 0.7);
}
.aim-btn-ghost {
  border: dashed 1px #2a2d45;
  background: transparent;
}
.aim-btn-ghost:hover {
  border-style: solid;
}
.aim-btn-secondary {
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.15));
  color: var(--aim-brand-hover, #818cf8);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.aim-btn-secondary:hover {
  background: rgba(99, 102, 241, 0.25);
}
.aim-btn-block, .aim-btn-full {
  display: flex;
  width: 100%;
  justify-content: center;
}
.aim-btn-outline {
  background: transparent;
  border-color: var(--aim-border-light, #363a54);
  color: var(--aim-text-dim, #8b8fa3);
}
.aim-btn-outline:hover {
  background: var(--aim-bg-hover, #252840);
  color: var(--aim-text, #e0e0e8);
}
.aim-btn-outline.aim-btn-success {
  color: var(--aim-green, #22c55e);
  border-color: rgba(34, 197, 94, 0.4);
}
.aim-btn-outline.aim-btn-success:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--aim-green, #22c55e);
  color: var(--aim-green, #22c55e);
}
.aim-btn-outline.aim-btn-danger {
  color: var(--aim-red, #ef4444);
  border-color: rgba(239, 68, 68, 0.4);
}
.aim-btn-outline.aim-btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--aim-red, #ef4444);
}
.aim-btn-outline.aim-btn-warning {
  color: var(--aim-yellow, #eab308);
  border-color: rgba(234, 179, 8, 0.4);
}
.aim-btn-outline.aim-btn-warning:hover {
  background: rgba(234, 179, 8, 0.2);
  border-color: var(--aim-yellow, #eab308);
  color: var(--aim-yellow, #eab308);
}
.aim-btn-outline.aim-btn-info {
  color: var(--aim-info, #06b6d4);
  border-color: rgba(6, 182, 212, 0.4);
}
.aim-btn-outline.aim-btn-info:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--aim-info, #06b6d4);
}
.aim-btn-outline.aim-btn-question {
  color: var(--aim-info, #06b6d4);
  border-color: rgba(6, 182, 212, 0.4);
}
.aim-btn-outline.aim-btn-question:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--aim-info, #06b6d4);
}
.aim-btn-outline.aim-btn-suggestion {
  color: #f7eb09;
  border-color: rgba(247, 235, 9, 0.4);
}
.aim-btn-outline.aim-btn-suggestion:hover {
  background: rgba(247, 235, 9, 0.15);
  border-color: #f7eb09;
  color: #f7eb09;
}
.aim-btn-outline.aim-btn-primary {
  color: var(--aim-accent, #6366f1);
  border-color: rgba(99, 102, 241, 0.4);
}
.aim-btn-outline.aim-btn-primary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--aim-accent, #6366f1);
}
.aim-btn-outline .aim-btn {
  background: transparent;
}
.aim-btn-outline .aim-btn.aim-btn-success {
  color: var(--aim-green, #22c55e);
  border-color: rgba(34, 197, 94, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-success:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--aim-green, #22c55e);
  color: var(--aim-green, #22c55e);
}
.aim-btn-outline .aim-btn.aim-btn-danger {
  color: var(--aim-red, #ef4444);
  border-color: rgba(239, 68, 68, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--aim-red, #ef4444);
  color: var(--aim-red, #ef4444);
}
.aim-btn-outline .aim-btn.aim-btn-warning {
  color: var(--aim-yellow, #eab308);
  border-color: rgba(234, 179, 8, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-warning:hover {
  background: rgba(234, 179, 8, 0.2);
  border-color: var(--aim-yellow, #eab308);
  color: var(--aim-yellow, #eab308);
}
.aim-btn-outline .aim-btn.aim-btn-info {
  color: var(--aim-info, #06b6d4);
  border-color: rgba(6, 182, 212, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-info:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--aim-info, #06b6d4);
  color: var(--aim-info, #06b6d4);
}
.aim-btn-outline .aim-btn.aim-btn-question {
  color: var(--aim-info, #06b6d4);
  border-color: rgba(6, 182, 212, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-question:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--aim-info, #06b6d4);
  color: var(--aim-info, #06b6d4);
}
.aim-btn-outline .aim-btn.aim-btn-suggestion {
  color: #f7eb09;
  border-color: rgba(247, 235, 9, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-suggestion:hover {
  background: rgba(247, 235, 9, 0.15);
  border-color: #f7eb09;
  color: #f7eb09;
}
.aim-btn-outline .aim-btn.aim-btn-primary {
  color: var(--aim-accent, #6366f1);
  border-color: rgba(99, 102, 241, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-primary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--aim-accent, #6366f1);
  color: var(--aim-accent, #6366f1);
}
.aim-btn.disabled, .aim-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.aim-btn.disabled:hover, .aim-btn[disabled]:hover {
  filter: none;
}

.aim-select {
  padding: 6px 12px;
  background: var(--aim-bg-input, #1a1d2b);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: var(--aim-radius, 6px);
  color: var(--aim-text, #e0e0e8);
  font-size: 13px;
  outline: none;
}
.aim-select:focus {
  border-color: var(--aim-accent, #6366f1);
}
.aim-select option {
  background: var(--aim-bg-card, #1c1f2e);
  color: var(--aim-text, #e0e0e8);
}

.aim-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--aim-bg-input, #1a1d2b);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: var(--aim-radius, 6px);
  color: var(--aim-text, #e0e0e8);
  font-size: 13px;
  outline: none;
  transition: border-color var(--aim-transition, 0.2s ease);
}
.aim-input:focus {
  border-color: var(--aim-accent, #6366f1);
}
.aim-input.aim-input-error {
  border-color: var(--aim-danger, #ef4444);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

textarea.aim-input {
  resize: vertical;
  min-height: 60px;
  font-family: var(--aim-font, Segoe UI, -apple-system, BlinkMacSystemFont, sans-serif);
}

input[type=number].aim-input {
  -moz-appearance: textfield;
}
input[type=number].aim-input::-webkit-outer-spin-button, input[type=number].aim-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.aim-user-avatar-wrap {
  position: relative;
}

.aim-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aim-brand, #6366f1);
  color: var(--aim-white, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid var(--aim-white-20, rgba(255, 255, 255, 0.2));
  transition: border-color 0.15s;
  overflow: hidden;
}
.aim-user-avatar:hover {
  border-color: var(--aim-brand-hover, #818cf8);
}

.aim-user-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.aim-user-initials {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  user-select: none;
}

.aim-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--aim-dark-card, #1c2137);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  min-width: 260px;
  z-index: 9999;
  overflow: hidden;
}
.aim-user-menu.open {
  display: block;
}

.aim-user-menu-header {
  padding: 16px;
  border-bottom: 1px solid var(--aim-border, #2a2d45);
}

.aim-user-menu-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--aim-white, #fff);
}

.aim-user-menu-email {
  font-size: 0.8rem;
  color: var(--aim-text-dim, #8b8fa3);
}

.aim-user-menu-org {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.12));
  border-radius: 6px;
  font-size: 0.8rem;
}

.aim-user-menu-org-label {
  color: var(--aim-text-dim, #8b8fa3);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aim-user-menu-org-name {
  font-weight: 600;
  color: var(--aim-brand-hover, #818cf8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.aim-user-menu-org-switch {
  font-size: 0.75rem;
  color: var(--aim-brand-hover, #818cf8);
  cursor: pointer;
  text-decoration: underline;
  margin-top: 2px;
}

.aim-user-menu-items {
  padding: 6px 0;
}

.aim-user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--aim-text, #e0e0e8);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.aim-user-menu-item:hover {
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.12));
  color: var(--aim-brand-hover, #818cf8);
}
.aim-user-menu-item:hover i {
  color: var(--aim-brand-hover, #818cf8);
}
.aim-user-menu-item i {
  width: 18px;
  text-align: center;
  color: var(--aim-text-dim, #8b8fa3);
}

.aim-navbar-inner .aim-user-menu-item {
  font-size: 0.88rem;
}

.aim-user-menu-signout {
  color: var(--aim-red, #ef4444);
}
.aim-user-menu-signout i {
  color: var(--aim-red, #ef4444) !important;
}
.aim-user-menu-signout:hover {
  color: var(--aim-red-hover, #f87171);
  background: var(--aim-red-dim, rgba(239, 68, 68, 0.15)) !important;
}
.aim-user-menu-signout:hover i {
  color: var(--aim-red-hover, #f87171) !important;
}

.aim-user-menu-version {
  text-align: right;
  padding: 4px 14px 6px;
  font-size: 0.7rem;
  color: var(--aim-text-dim, #8b8fa3);
  opacity: 0.5;
}

.aim-user-menu-divider {
  height: 1px;
  background: var(--aim-border, #2a2d45);
  margin: 4px 0;
}

.aim-user-menu-section-label {
  padding: 6px 16px 2px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--aim-text-dim, #8b8fa3);
}

.aim-input,
.aim-select {
  display: block;
  width: 100%;
  padding: 9px 12px;
  background: var(--aim-dark-card, #1c2137);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 8px;
  color: var(--aim-text, #e0e0e8);
  font-size: 0.9rem;
  transition: border-color 0.15s;
}
.aim-input:focus,
.aim-select:focus {
  outline: none;
  border-color: var(--aim-brand, #6366f1);
  box-shadow: 0 0 0 3px var(--aim-brand-dim, rgba(99, 102, 241, 0.2));
}
.aim-input::placeholder,
.aim-select::placeholder {
  color: var(--aim-text-dim, #8b8fa3);
}

.aim-input:-webkit-autofill,
.aim-input:-webkit-autofill:hover,
.aim-input:-webkit-autofill:focus,
.aim-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--aim-dark-card, #1c2137) inset !important;
  -webkit-text-fill-color: var(--aim-text, #e0e0e8) !important;
  caret-color: var(--aim-text, #e0e0e8);
  transition: background-color 5000s ease-in-out 0s;
}

.aim-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b8fa3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.aim-form-group {
  margin-bottom: 16px;
}
.aim-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aim-text-dim, #8b8fa3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.aim-form-group label.aim-checkbox, .aim-form-group label.aim-radio-label {
  display: flex;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--aim-text, #e0e0e8);
  letter-spacing: normal;
}

.aim-form-error {
  display: block;
  font-size: 0.8rem;
  color: var(--aim-red, #ef4444);
  margin-top: 4px;
}

.aim-form-hint {
  font-size: 0.8rem;
  color: var(--aim-text-dim, #8b8fa3);
  font-weight: 400;
}

/*.aim-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;

    i { margin-top: 1px; flex-shrink: 0; }
}

.aim-alert--success {
    background: var(--aim-green-dim, rgba(34, 197, 94, 0.15));
    border: 1px solid var(--aim-green-dim, rgba(34, 197, 94, 0.15));
    color: var(--aim-green-light, #86efac);
}

.aim-alert--danger {
    background: var(--aim-red-dim, rgba(239, 68, 68, 0.15));
    border: 1px solid var(--aim-red-dim, rgba(239, 68, 68, 0.15));
    color: var(--aim-red, #ef4444);
}

.aim-alert--info {
    background: var(--aim-brand-dim, rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--aim-brand-hover, #818cf8);
}
*/
.aim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.aim-table th,
.aim-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--aim-border, #2a2d45);
}
.aim-table th {
  font-weight: 600;
  color: var(--aim-text-dim, #8b8fa3);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.aim-table td {
  color: var(--aim-text, #e0e0e8);
}
.aim-table tr:last-child td {
  border-bottom: none;
}

.aim-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aim-inline-form .aim-input {
  flex: 1;
}

.aim-form-group-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.aim-form-group-inline label {
  margin-bottom: 0;
}

.aim-radio-option,
.aim-chk-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}
.aim-radio-option input,
.aim-chk-option input {
  margin-top: 3px;
}

.aim-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--aim-text, #e0e0e8);
  margin-bottom: 6px;
}
.aim-radio-label > input[type=radio] {
  margin-top: 0;
  position: relative;
  top: -2px;
  width: 18px;
  height: 18px;
}
.aim-radio-label > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.aim-radio-label input[type=radio] {
  accent-color: var(--aim-brand, #6366f1);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0;
}

.aim-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--aim-text, #e0e0e8);
}
.aim-checkbox-label > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.aim-checkbox-label input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--aim-border, #2a2d45);
  border-radius: 4px;
  background: var(--aim-card-bg, #1c2137);
  cursor: pointer;
  position: relative;
  margin: 0;
  transition: all 0.15s;
  flex-shrink: 0;
}
.aim-checkbox-label input[type=checkbox]:checked {
  background: var(--aim-brand, #6366f1);
  border-color: var(--aim-brand, #6366f1);
}
.aim-checkbox-label input[type=checkbox]:checked::after {
  content: "✓";
  position: absolute;
  top: -3px;
  left: 2px;
  color: black;
  font-size: 13px;
  font-weight: 700;
}
.aim-checkbox-label input[type=checkbox]:hover {
  border-color: var(--aim-brand, #6366f1);
}

.aim-radio-label,
.aim-checkbox-label,
.aim-checkbox,
label.aim-radio-label,
label.aim-checkbox-label {
  cursor: pointer;
}

.aim-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--aim-text, #e0e0e8);
}
.aim-checkbox > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.aim-checkbox input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--aim-border-light, #363a54);
  border-radius: 4px;
  background: var(--aim-card-bg, #1c2137);
  cursor: pointer;
  position: relative;
  margin: 0;
  transition: all 0.15s;
  flex-shrink: 0;
}
.aim-checkbox input[type=checkbox]:checked {
  background: var(--aim-brand, #6366f1);
  border-color: var(--aim-brand, #6366f1);
}
.aim-checkbox input[type=checkbox]:checked::after {
  content: "✓";
  position: absolute;
  top: -3px;
  left: 2px;
  color: black;
  font-size: 13px;
  font-weight: 700;
}
.aim-checkbox input[type=checkbox]:hover {
  border-color: var(--aim-brand, #6366f1);
}

.aim-form-group label.aim-checkbox,
.aim-form-group label.aim-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.aim-auth-tagline {
  font-size: 1.1rem;
  color: var(--aim-brand, #6366f1);
  margin: 4px 0 20px 0;
  color: var(--aim-white-65, rgba(255, 255, 255, 0.65));
  padding: 9px 15px;
  border-left: solid 3px var(--aim-brand, #6366f1);
  background: var(--aim-accent-dim, rgba(99, 102, 241, 0.3));
  font-weight: 200;
  border-radius: 5px;
}
.aim-auth-tagline .fa-solid {
  font-size: 1.5rem;
  margin-right: 0.3rem;
}

.aim-detail-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--aim-border, #2a2d45);
  gap: 0;
  flex-shrink: 0;
  margin-bottom: 15px;
}

.aim-detail-tab {
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--aim-text-dim, #8b8fa3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}
.aim-detail-tab:hover {
  color: var(--aim-text, #e0e0e8);
}
.aim-detail-tab.active {
  color: var(--aim-brand-hover, #818cf8);
  border-bottom-color: var(--aim-brand, #6366f1);
}
.aim-detail-tab.aim-detail-tab-chk {
  padding-right: 22px;
}
.aim-detail-tab.aim-detail-tab-chk input {
  position: relative;
  top: 5px;
  left: 8px;
}

.aim-detail-tab-pane {
  display: none;
}
.aim-detail-tab-pane.active {
  display: block;
}

.aim-model-stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-areas: "total controls" "models monthly";
  gap: 16px 22px;
  align-items: start;
}
.aim-model-stats-grid > .aim-aicost-header {
  grid-area: total;
  margin: 0;
}

.aim-model-stats {
  width: 100%;
  grid-area: models;
}
.aim-model-stats th,
.aim-model-stats td {
  white-space: nowrap;
}
.aim-model-stats .aim-stats-col-agentName {
  min-width: 220px;
  width: auto;
}

.aim-monthly-stats {
  grid-area: monthly;
}
.aim-monthly-stats th,
.aim-monthly-stats td {
  white-space: nowrap;
}
.aim-monthly-stats th:first-child,
.aim-monthly-stats td:first-child {
  min-width: 140px;
  width: auto;
}

.aim-model-selected {
  position: relative;
  background: var(--aim-bg-active, rgba(255, 255, 255, 0.08));
}
.aim-model-selected td {
  box-shadow: inset 0 2px 0 0 var(--aim-accent, #6366f1), inset 0 -2px 0 0 var(--aim-accent, #6366f1);
}
.aim-model-selected td:first-child {
  box-shadow: inset 2px 0 0 0 var(--aim-accent, #6366f1), inset 0 2px 0 0 var(--aim-accent, #6366f1), inset 0 -2px 0 0 var(--aim-accent, #6366f1);
}
.aim-model-selected td:last-child {
  box-shadow: inset -2px 0 0 0 var(--aim-accent, #6366f1), inset 0 2px 0 0 var(--aim-accent, #6366f1), inset 0 -2px 0 0 var(--aim-accent, #6366f1);
}
.aim-model-selected td:only-child {
  box-shadow: inset 2px 0 0 0 var(--aim-accent, #6366f1), inset -2px 0 0 0 var(--aim-accent, #6366f1), inset 0 2px 0 0 var(--aim-accent, #6366f1), inset 0 -2px 0 0 var(--aim-accent, #6366f1);
}
.aim-model-selected::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 7px;
  height: 100%;
  background: var(--aim-accent, #6366f1);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.aim-model-linked {
  outline: 2px solid var(--aim-accent, #6366f1);
}

.aim-model-child td {
  padding-left: 24px;
}

.aim-model-child button {
  float: right;
}

.aim-model-stats tr[data-agent-id] {
  cursor: pointer;
}

.aim-settings-btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.aim-avatar-center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 24px;
  gap: 12px;
}

.aim-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.15));
  border: 2px dashed var(--aim-border, #2a2d45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aim-text-dim, #8b8fa3);
  font-size: 2.2rem;
}

.aim-file-picker input[type=file] {
  display: none;
}

.aim-file-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.15));
  color: var(--aim-brand-hover, #818cf8);
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: background 0.15s;
}
.aim-file-picker-label:hover {
  background: rgba(99, 102, 241, 0.25);
}

.aim-file-picker-name {
  font-size: 0.82rem;
  color: var(--aim-text-dim, #8b8fa3);
  margin-left: 4px;
}

.aim-email-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 20px;
}

.aim-email-progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--aim-text-dim, #8b8fa3);
}
.aim-email-progress-step.done {
  color: #86efac;
}
.aim-email-progress-step.done .aim-email-progress-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}
.aim-email-progress-step.pending {
  color: var(--aim-brand-hover, #818cf8);
}
.aim-email-progress-step.pending .aim-email-progress-icon {
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.12));
  color: var(--aim-brand-hover, #818cf8);
}

.aim-email-progress-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: var(--aim-text-dim, #8b8fa3);
}

.aim-org-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.aim-org-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--aim-border, rgba(255, 255, 255, 0.08));
  background: var(--aim-input-bg, rgba(255, 255, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--aim-text-dim, #8b8fa3);
  font-size: 1.4rem;
}
.aim-org-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#toastContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 8px 8px 8px 16px;
  margin: -8px;
  overflow-y: auto;
  overflow-x: hidden;
}

.aim-toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--aim-white, #fff);
  box-shadow: 0 4px 16px var(--aim-black-50, rgba(0, 0, 0, 0.5));
  backdrop-filter: blur(8px);
  animation: aimToastIn 0.3s ease;
  max-width: 360px;
  flex-shrink: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  cursor: pointer;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.aim-toast::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid var(--aim-toast-bg);
}
.aim-toast::-webkit-scrollbar {
  width: 6px;
}
.aim-toast::-webkit-scrollbar-track {
  background: transparent;
}
.aim-toast::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.aim-toast::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.aim-toast-info {
  --aim-toast-bg: rgba(99, 102, 241, 0.76);
  background: var(--aim-toast-bg);
}

.aim-toast-success {
  --aim-toast-bg: rgba(34, 197, 94, 0.76);
  background: var(--aim-toast-bg);
}

.aim-toast-error {
  --aim-toast-bg: rgba(239, 68, 68, 0.76);
  background: var(--aim-toast-bg);
}

.aim-toast-warn {
  --aim-toast-bg: rgba(249, 115, 22, 0.76);
  background: var(--aim-toast-bg);
}

.aim-toast-note {
  --aim-toast-bg: rgba(247, 235, 9, 0.76);
  background: var(--aim-toast-bg);
}

@keyframes aimToastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.fa-spin {
  animation: fa-spin 1s linear infinite !important;
}

.aim-md-preview {
  overflow-y: auto;
  scroll-behavior: smooth;
}
.aim-md-preview:has(textarea) {
  overflow: visible;
}

.aim-btn-bar {
  border-top: solid 1px var(--aim-border, #2a2d45);
  padding-top: 1rem;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.aim-save-cancel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.aim-modal {
  background: var(--aim-dark-card, #1c2137);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: var(--aim-radius-lg, 10px);
  width: 480px;
  max-width: 95vw;
  min-width: 0;
  max-height: none;
  box-shadow: var(--aim-shadow, 0 2px 8px rgba(0, 0, 0, 0.3));
}
.aim-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--aim-black-70, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.aim-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--aim-border, #2a2d45);
}
.aim-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--aim-text-bright, #ffffff);
}
.aim-modal-close {
  background: none;
  border: none;
  color: var(--aim-text-dim, #8b8fa3);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.aim-modal-close:hover {
  color: var(--aim-text, #e0e0e8);
}
.aim-modal-body {
  padding: 20px;
  color: var(--aim-text, #e0e0e8);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.aim-modal-body > * {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.aim-modal-body .aim-radio-label,
.aim-modal-body .aim-checkbox-label,
.aim-modal-body .aim-checkbox,
.aim-modal-body input,
.aim-modal-body select,
.aim-modal-body textarea {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}
.aim-modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--aim-border, #2a2d45);
}
.aim-modal-footer .aim-dialog-third {
  background: transparent;
  border-color: var(--aim-border-light, #363a54);
  color: var(--aim-text, #e0e0e8);
}
.aim-modal-footer .aim-dialog-third.aim-dialog-cancel {
  background: var(--aim-bg-card, #1c1f2e);
  border-color: var(--aim-border, #2a2d45);
  color: var(--aim-text, #e0e0e8);
}
.aim-modal-footer .aim-dialog-third.aim-dialog-cancel:hover {
  background: var(--aim-bg-hover, #252840);
  border-color: var(--aim-border-light, #363a54);
}
.aim-modal-text-panel {
  margin: -10px -10px 0 -10px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  padding-bottom: 5px;
}

.aim-btn-group {
  display: inline-flex;
  gap: 0;
}
.aim-btn-group button {
  margin: 0;
  border-radius: 0;
}
.aim-btn-group button:not(:first-child) {
  margin-left: -1px;
}
.aim-btn-group button:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.aim-btn-group button:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.aim-dialog-icon {
  font-size: 18px;
  vertical-align: -1px;
  margin-right: 5px;
}
.aim-dialog-icon--default {
  color: var(--aim-text-dim, #8b8fa3);
}
.aim-dialog-icon--primary {
  color: var(--aim-brand, #6366f1);
}
.aim-dialog-icon--success {
  color: var(--aim-green, #22c55e);
}
.aim-dialog-icon--warning {
  color: var(--aim-yellow, #eab308);
}
.aim-dialog-icon--danger {
  color: var(--aim-red, #ef4444);
}
.aim-dialog-icon--info {
  color: var(--aim-info, #06b6d4);
}
.aim-dialog-icon--question {
  color: var(--aim-info, #06b6d4);
}
.aim-dialog-icon--suggestion {
  color: var(--aim-yellow, #eab308);
}
.aim-dialog--default .aim-dialog-header {
  border-top: 3px solid var(--aim-text-dim, #8b8fa3);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--primary .aim-dialog-header {
  border-top: 3px solid var(--aim-brand, #6366f1);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--success .aim-dialog-header {
  border-top: 3px solid var(--aim-green, #22c55e);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--warning .aim-dialog-header {
  border-top: 3px solid var(--aim-yellow, #eab308);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--danger .aim-dialog-header {
  border-top: 3px solid var(--aim-red, #ef4444);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--info .aim-dialog-header {
  border-top: 3px solid var(--aim-info, #06b6d4);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--question .aim-dialog-header {
  border-top: 3px solid var(--aim-info, #06b6d4);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--suggestion .aim-dialog-header {
  border-top: 3px solid rgba(234, 179, 8, 0.7);
  background: var(--aim-yellow-dim, rgba(234, 179, 8, 0.15));
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--suggestion .aim-dialog-body {
  color: var(--aim-text, #e0e0e8);
}
.aim-dialog--suggestion .aim-dialog-body a {
  color: var(--aim-yellow-accent, #f7eb09);
}
.aim-dialog--suggestion .aim-dialog-body .aim-suggestion-radio input[type=radio] {
  accent-color: var(--aim-yellow, #eab308);
}
.aim-dialog--lg {
  width: 620px;
}
.aim-dialog-overlay {
  cursor: default;
}
.aim-dialog .aim-dialog-body input[type=checkbox]:not(.aim-check) {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--aim-border, #2a2d45);
  border-radius: 4px;
  background: var(--aim-card-bg, #1c2137);
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  flex-shrink: 0;
  vertical-align: middle;
}
.aim-dialog .aim-dialog-body input[type=checkbox]:not(.aim-check):checked {
  background: var(--aim-brand, #6366f1);
  border-color: var(--aim-brand, #6366f1);
}
.aim-dialog .aim-dialog-body input[type=checkbox]:not(.aim-check):checked::after {
  content: "✓";
  position: absolute;
  top: -3px;
  left: 2px;
  color: black;
  font-size: 13px;
  font-weight: 700;
}
.aim-dialog .aim-dialog-body input[type=checkbox]:not(.aim-check):hover {
  border-color: var(--aim-brand, #6366f1);
}

.aim-side-detail-card {
  display: flex;
  min-height: 0;
}

.aim-side-detail-tabs {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.aim-side-detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  min-height: 0;
}

.aim-filter-highlight {
  outline: 2px solid #6366f1;
  outline-offset: -2px;
  background: rgba(99, 102, 241, 0.12) !important;
}

.pulse-highlight {
  /* All CSS custom properties are set inline by JavaScript */
  background-color: rgba(var(--pulse-color, 255, 255, 0), var(--min-opacity, 0.2));
  animation: pulse var(--pulse-duration, 0.75s) var(--pulse-easing, ease-in-out);
  animation-iteration-count: var(--pulse-count, 4);
  animation-fill-mode: forwards;
}

.pulse-highlight-fade-out {
  background-color: transparent !important;
}

@keyframes pulse {
  0%, 100% {
    background-color: rgba(var(--pulse-color, 255, 255, 0), var(--min-opacity, 0.2));
  }
  50% {
    background-color: rgba(var(--pulse-color, 255, 255, 0), var(--max-opacity, 0.6));
  }
}
.info-corner {
  --size: 24px;
  --bg-color: #f97316;
  --icon-color: #fff;
  --fa-icon: "\f002";
  --radius: 6px;
  --icon-ratio: 0.4;
  --icon-size: calc(var(--size) * var(--icon-ratio));
  width: var(--size);
  height: var(--size);
  background: var(--bg-color);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
  border-top-right-radius: var(--radius);
  position: absolute;
  top: 0;
  right: 0;
}
.info-corner::before {
  content: var(--fa-icon);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 30%;
  right: 30%;
  transform: translate(50%, -50%);
  color: var(--icon-color);
  font-size: var(--icon-size);
}

.aim-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-bottom: 8px;
}
.aim-input-group > * {
  border-radius: 0;
}
.aim-input-group > *:first-child {
  border-radius: 6px 0 0 6px;
}
.aim-input-group > *:last-child {
  border-radius: 0 6px 6px 0;
}
.aim-input-group > *:focus, .aim-input-group > *:focus-within {
  position: relative;
  z-index: 1;
}
.aim-input-group > .aim-filter {
  flex: 1;
}
.aim-input-group.last-two-mutual > *:last-child, .aim-input-group.last-two-mutual > *:nth-last-child(2) {
  border-radius: 0 6px 6px 0;
}
.aim-input-group.last-two-mutual > *:last-child {
  border-radius: 0 6px 6px 0;
}

.aim-btn-toggle.active {
  background: rgba(99, 102, 241, 0.3);
  border-color: #6366f1;
}

.aim-alert {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #2a2d45;
  background: #1c1f2e;
  color: #8b8fa3;
}
.aim-alert-bigger {
  font-size: 15px;
}
.aim-alert-bigger.aim-alert-icon {
  font-size: 16px;
}
.aim-alert-icon {
  flex-shrink: 0;
}
.aim-alert-icon:empty::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.aim-alert-icon-lg, .aim-alert-icon-lg:empty::before {
  font-size: 2.2rem;
  position: relative;
  top: -3px;
  left: 0;
}
.aim-alert-text {
  flex: 1;
  position: relative;
  top: 3px;
}
.aim-alert-actions {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  float: right;
}
.aim-alert--default {
  background: #1c1f2e;
  border-color: #2a2d45;
  color: #8b8fa3;
}
.aim-alert--default .aim-alert-icon {
  color: #8b8fa3;
}
.aim-alert--default .aim-alert-icon:empty::before {
  content: "\f059";
}
.aim-alert--primary, .aim-alert--question {
  background: rgba(99, 102, 241, 0.3);
  border-color: #6366f1;
  color: #818cf8;
}
.aim-alert--primary .aim-alert-icon, .aim-alert--question .aim-alert-icon {
  color: #818cf8;
}
.aim-alert--primary .aim-alert-icon:empty::before, .aim-alert--question .aim-alert-icon:empty::before {
  content: "\f075";
}
.aim-alert--primary .aim-btn, .aim-alert--question .aim-btn {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}
.aim-alert--primary .aim-btn:hover, .aim-alert--question .aim-btn:hover {
  background: #818cf8;
  border-color: #818cf8;
}
.aim-alert--info {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  color: #06b6d4;
}
.aim-alert--info .aim-alert-icon {
  color: #06b6d4;
}
.aim-alert--info .aim-alert-icon:empty::before {
  content: "\f05a";
}
.aim-alert--info .aim-btn {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #fff;
}
.aim-alert--info .aim-btn:hover {
  background: #06b6d4;
  border-color: #06b6d4;
}
.aim-alert--info a {
  color: rgb(93, 227, 204);
}
.aim-alert--info a:hover {
  color: rgb(173, 237, 226);
}
.aim-alert--success {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
}
.aim-alert--success .aim-alert-icon {
  color: #22c55e;
}
.aim-alert--success .aim-alert-icon:empty::before {
  content: "\f058";
}
.aim-alert--success .aim-btn {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}
.aim-alert--success .aim-btn:hover {
  filter: brightness(1.1);
}
.aim-alert--warning {
  background: rgba(234, 179, 8, 0.15);
  border-color: #eab308;
  color: #eab308;
}
.aim-alert--warning .aim-alert-icon {
  color: #eab308;
}
.aim-alert--warning .aim-alert-icon:empty::before {
  content: "\f071";
}
.aim-alert--warning .aim-btn {
  background: #eab308;
  border-color: #eab308;
  color: #1a1a1a;
}
.aim-alert--warning .aim-btn:hover {
  filter: brightness(1.05);
}
.aim-alert--danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}
.aim-alert--danger .aim-alert-icon {
  color: #ef4444;
}
.aim-alert--danger .aim-alert-icon:empty::before {
  content: "\f06a";
}
.aim-alert--danger .aim-btn {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
.aim-alert--danger .aim-btn:hover {
  filter: brightness(1.1);
}
.aim-alert--note {
  background: #fef9c3;
  border-color: #eab308;
  color: #713f12;
}
.aim-alert--note .aim-alert-icon {
  color: var(--aim-yellow-accent, #f7eb09);
}
.aim-alert--note .aim-alert-icon:empty::before {
  content: "\f08d";
  transform: rotate(30deg);
}
.aim-alert--note {
  /*.aim-alert-text{
    font-family: 'Caveat', 'Comic Sans MS', cursive;
    font-size: 1.6rem;
  }*/
}
.aim-alert--note .aim-btn {
  background: #eab308;
  border-color: #eab308;
  color: #1a1a1a;
}
.aim-alert--note .aim-btn:hover {
  filter: brightness(1.05);
}
.aim-alert-text-container {
  flex-grow: 1;
}
.aim-alert-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  color: inherit;
  opacity: 0.5;
  font-size: 14px;
  align-self: flex-start;
  margin-top: 2px;
}
.aim-alert-close:hover {
  opacity: 1;
}

.hgl {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border-radius: 2px;
  padding: 0 1px;
}

.aim-copyable {
  cursor: pointer;
}

.aim-accent-chk {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid #8b8fa3;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.aim-accent-chk:checked {
  background: #6366f1;
  border-color: #6366f1;
}
.aim-accent-chk:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: black;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.aim-accent-chk:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.aim-badge-x {
  padding: 2px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.3);
  font-size: 0.8rem;
  min-width: 20px;
  height: 18px;
  text-align: center;
  display: inline-block;
  margin-right: 0.5rem;
}

.counter-container::after {
  content: "";
  clear: both;
  display: table;
}

div.counter {
  background: transparent;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  position: absolute;
  padding: 5px;
  top: 2px;
  bottom: 2px;
  right: 2px;
  font-size: 0.7em;
  font-family: "Courier New", Courier, monospace;
  display: none;
  align-items: center;
  justify-content: center;
}
div.counter > div > div:nth-child(2)::before {
  content: "/";
}
div.counter.counter-basic, div.counter.counter-hl, div.counter.counter-warn, div.counter.counter-max {
  display: flex;
  transition: background-color 100ms ease-in, color 50ms ease-in 50ms;
}
div.counter.counter-area {
  position: relative;
  float: right;
  justify-content: flex-end;
  align-items: center;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  padding: 1px 5px;
  top: 2px;
  right: inherit;
  left: 2px;
  box-shadow: inset 2px 9px 4px -7px rgba(0, 0, 0, 0.2);
}
div.counter.counter-area.counter-basic, div.counter.counter-area.counter-hl, div.counter.counter-area.counter-warn, div.counter.counter-area.counter-max {
  transition: background-color 900ms ease-in, color 200ms ease-in 200ms;
}
div.counter.counter-area > div > div:nth-child(1)::before {
  content: "Typed ";
  padding-right: 0.5em;
}
div.counter.counter-area > div > div:nth-child(2)::before {
  content: "of max.";
  padding: 0 0.5em;
}
div.counter.counter-area > div > div:nth-child(3)::after {
  content: "characters.";
  padding-left: 0.5em;
}
div.counter.counter-vertical > div > div {
  width: 100%;
  text-align: right;
}
div.counter.counter-vertical > div > div:nth-child(2) {
  width: 100%;
  margin: 0 auto;
  border-top: solid 1px;
  margin-bottom: 1px;
}
div.counter.counter-vertical > div > div:nth-child(2)::before {
  content: "";
}
div.counter.counter-basic {
  background: transparent;
  color: #8b8fa3;
}
div.counter.counter-area.counter-basic {
  background: #1a1d2b;
  color: #8b8fa3;
}
div.counter.counter-hl {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}
div.counter.counter-warn {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}
div.counter.counter-max {
  background: #ef4444;
  color: #ffffff;
  transition: background-color 0ms ease-in, color 0ms ease-in 0ms;
}

/* ── CSS Custom Properties (dark theme) ───────────────────── */
:root {
  --aim-bg: #0f1117;
  --aim-bg-panel: #161822;
  --aim-bg-card: #1c1f2e;
  --aim-bg-hover: #252840;
  --aim-bg-active: #2a2d45;
  --aim-bg-input: #1a1d2b;
  --aim-border: #2a2d45;
  --aim-border-light: #363a54;
  --aim-text: #e0e0e8;
  --aim-text-dim: #8b8fa3;
  --aim-text-bright: #ffffff;
  --aim-accent: #6366f1;
  --aim-accent-hover: #818cf8;
  --aim-accent-dim: rgba(99, 102, 241, 0.3);
  --aim-green: #22c55e;
  --aim-green-dim: rgba(34, 197, 94, 0.15);
  --aim-red: #ef4444;
  --aim-red-dim: rgba(239, 68, 68, 0.15);
  --aim-yellow: #eab308;
  --aim-yellow-dim: rgba(234, 179, 8, 0.15);
  --aim-orange: #f97316;
  --aim-orange-dim: rgba(249, 115, 22, 0.15);
  --aim-cyan: #06b6d4;
  --aim-cyan-dim: rgba(6, 182, 212, 0.15);
  --aim-info: #06b6d4;
  --aim-info-dim: rgba(6, 182, 212, 0.15);
  --aim-white: #fff;
  --aim-white-20: rgba(255, 255, 255, 0.2);
  --aim-white-04: rgba(255, 255, 255, 0.04);
  --aim-white-08: rgba(255, 255, 255, 0.08);
  --aim-white-065: rgba(255, 255, 255, 0.065);
  --aim-white-65: rgba(255, 255, 255, 0.65);
  --aim-navbar-bg: rgba(18, 22, 38, 0.9);
  --aim-brand: #6366f1;
  --aim-brand-hover: #818cf8;
  --aim-brand-dim: rgba(99, 102, 241, 0.12);
  --aim-dark: #161b2e;
  --aim-dark-card: #1c2137;
  --aim-dark-card-hover: #232942;
  --aim-text: #e2e8f0;
  --aim-text-dim: #94a3b8;
  --aim-text-light: #64748b;
  --aim-bg-lighter: #161b2e;
  --aim-section-stroke: rgba(99, 102, 241, 0.3);
  --aim-card-bg: #1c2137;
  --aim-border: rgba(255, 255, 255, 0.1);
  --aim-border-light: rgba(255, 255, 255, 0.065);
  /* ── Subtle SVG/pattern background-effects system (issue -2737) ──────
     Single source of truth for the opacity/tint of all decorative background
     patterns (issue-graph, grid, glows) applied across the home pages. */
  --aim-bg-fx-opacity: 0.05;
  --aim-bg-fx-grid-opacity: 0.05;
  --aim-bg-fx-dots-opacity: 0.11;
  --aim-bg-fx-color: #ffffff;
  --aim-diagram-line-color: rgba(255, 255, 255, 0.3);
}

/* ── Reset & Base ─────────────────────────────────────────── */
* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0f1117;
  color: #e0e0e8;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-y: auto;
  background: #0f1117;
}

.b {
  font-weight: bold;
}

/* ── Navbar ───────────────────────────────────────────────── */
.aim-navbar {
  background: rgba(18, 22, 38, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.aim-navbar-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.aim-navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.aim-navbar-brand:hover {
  color: #818cf8;
}

.aim-navbar-brand .aim-brand-icon {
  width: 32px;
  height: 32px;
}

.aim-navbar-brand .aim-brand-name {
  background: linear-gradient(135deg, #a5b4fc 0%, #93c5fd 50%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.2s;
}

.aim-navbar-brand:hover .aim-brand-name {
  background: linear-gradient(135deg, #7c83d4 0%, #6b8fc4 50%, #9ba6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aim-navbar-nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aim-navbar-nav a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.15s;
}

.aim-navbar-nav a:hover,
.aim-navbar-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.aim-navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Responsive nav items ───────────────────────────────── */
.aim-nav-responsive {
  transition: opacity 0.2s, max-width 0.2s, padding 0.2s, margin 0.2s;
  white-space: nowrap;
}

.aim-nav-separator span {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  padding: 0 4px;
  user-select: none;
}

.aim-navbar-nav a.aim-nav-secondary {
  font-weight: 400;
}

@media (max-width: 599px) {
  .aim-nav-responsive[data-hide-below="600"] {
    max-width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
  }
}
@media (max-width: 699px) {
  .aim-nav-responsive[data-hide-below="700"] {
    max-width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }
}
@media (max-width: 799px) {
  .aim-nav-responsive[data-hide-below="800"] {
    max-width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }
}
/* ── Page Content ─────────────────────────────────────────── */
.aim-page-content {
  flex: 1 0 auto;
}

/* ── Sections (shared across all home pages) ──────────────── */
.aim-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
  z-index: 0; /* establishes a stacking context so .aim-bg-* backgrounds (z-index:-1) stay contained */
}

.aim-section-control {
  padding-bottom: 0;
}

.aim-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.aim-section-title i {
  font-weight: 300;
}

h3.aim-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #fff;
}

.aim-section-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--aim-text);
}

.aim-section-desc {
  text-align: center;
  color: var(--aim-text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.aim-smarter-workflow {
  padding-top: 90px;
}

/* ── Subtle background-effects (issue -2737): reusable low-opacity SVG "issue
   graph" (nodes + connecting lines) and faint grid pattern, tuned globally via
   the --aim-bg-fx-* variables above. Both sit at z-index:0 behind the section's
   text content (which gets z-index:1 from .aim-section-title/.aim-section-desc
   above), following the same layering convention as .aim-wavy-grid. ──────── */
.aim-bg-issue-graph {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--aim-bg-fx-opacity);
  width: 100%;
  height: 100%;
  color: var(--aim-bg-fx-color);
}

.aim-bg-grid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  pointer-events: none;
  opacity: var(--aim-bg-fx-grid-opacity);
  background-image: linear-gradient(var(--aim-bg-fx-color) 1px, transparent 1px), linear-gradient(90deg, var(--aim-bg-fx-color) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Much more subtle dot pattern, used only for the dark zone spanning from "See Aisman
   in action" down through the footer -- distinct from (and fainter than) .aim-bg-grid. */
.aim-bg-dots {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  pointer-events: none;
  opacity: var(--aim-bg-fx-dots-opacity);
  background-image: radial-gradient(var(--aim-bg-fx-color) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Cards (reusable) ─────────────────────────────────────── */
.aim-card {
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.aim-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.3);
  border-color: rgba(99, 102, 241, 0.2);
}

/* ── Footer ───────────────────────────────────────────────── */
.aim-footer {
  background: #111525;
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 24px 32px;
  flex-shrink: 0;
  border-top: 2px solid rgba(99, 102, 241, 0.2);
  position: relative;
  z-index: 0; /* establishes a stacking context so the glow (z-index:-1) stays contained */
  overflow: hidden;
  /* Footer glow (issue -2737 / -2774): a soft, subtle purple glow that fades in from the
     top border downward, sized relative to the footer itself (not fixed px) so it always
     lines up with the top edge and stays visible regardless of footer height/width. */
}
.aim-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 50%;
  height: 100%;
  background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.07) 45%, transparent 75%);
  pointer-events: none;
  opacity: 0.3;
}

.aim-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.aim-footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.aim-footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
  padding: 1rem 3rem 0 0;
}

.aim-footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
}

.aim-footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 0.15s;
}

.aim-footer-col a:hover {
  color: #818cf8;
}

.aim-footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.aim-footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.aim-footer-bottom a:hover {
  color: #818cf8;
}

/* ── Inline code ──────────────────────────────────────────── */
code {
  background: rgba(99, 102, 241, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #818cf8;
}

pre {
  background: #1a1c2a;
  color: #cdd6f4;
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ── Callout ──────────────────────────────────────────────── */
.callout {
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid #6366f1;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--aim-text-dim);
}

.callout strong {
  color: #818cf8;
}

/* ── Cookie consent banner ───────────────────────────────── */
.aim-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  background: rgba(13, 16, 27, 0.92);
  border: 1px solid var(--aim-border);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.aim-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aim-cookie-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--aim-text);
  font-size: 0.84rem;
}

.aim-cookie-text a {
  color: var(--aim-accent-hover);
  text-decoration: underline;
}

.aim-cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════ */
/* ── Home pages ─────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════ */
/* ── Home: hero ──────────────────────────────────────────── */
.aim-hero {
  background: linear-gradient(135deg, #0f1117 0%, #1e1850 40%, #2d2070 70%, #6366f1 100%);
  position: relative;
  padding: 80px 24px 100px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.aim-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, var(---aim-section-stroke) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.aim-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.aim-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.aim-hero h1 .accent {
  background: linear-gradient(135deg, #a5b4fc 0%, #93c5fd 50%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-bright {
  color: var(--aim-text-bright);
  font-weight: 900;
}

.aim-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.aim-hero-bg .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(50px);
}
.aim-hero-bg .shape-1 {
  width: 400px;
  height: 400px;
  background: #6366f1;
  top: -10%;
  left: -5%;
  animation: aimGlowPulse 8s ease-in-out infinite;
}
.aim-hero-bg .shape-2 {
  width: 300px;
  height: 300px;
  background: #93c5fd;
  top: 30%;
  right: -8%;
}
.aim-hero-bg .shape-3 {
  width: 250px;
  height: 250px;
  background: #a5b4fc;
  bottom: -5%;
  left: 40%;
}

/* Subtle animated radial glow for the hero's primary shape (issue -2737). */
@keyframes aimGlowPulse {
  0%, 100% {
    opacity: 0.06;
    transform: scale(1);
  }
  50% {
    opacity: 0.11;
    transform: scale(1.08);
  }
}
.aim-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.aim-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.aim-hero-badge i {
  color: #93c5fd;
}

.aim-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto 36px;
}

.aim-hero-primary {
  width: 100%;
  text-align: center;
  align-items: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
  background: #fff;
  color: #6366f1;
}
.aim-hero-primary:hover {
  background: #e0e7ff;
  color: #4f46e5;
}

/* ── Home: hero two-column CTA (Start free + trust line | video thumbnail) ── */
.aim-hero-cta-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: left;
}

.aim-hero-cta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 0 1 380px;
}

.aim-hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.aim-hero-sep {
  color: rgba(255, 255, 255, 0.3);
}

.aim-hero-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* improved: real brand-mark svgs (extracted/recolored derivatives under wwwroot/img/brands/)
   sized to sit inline with the trust-line text. */
.aim-hero-tool-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
.aim-hero-tool-icon.aider {
  width: 22px;
}

/* improved: optional caption pointing at the hero video, kept in the left column
   (per user's request) so the hero doesn't grow taller than the button + trust line. */
.aim-hero-video-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.aim-hero-video-caption:hover {
  color: #fff;
}

.aim-hero-cta-right {
  flex: 0 0 auto;
}

.aim-hero-video-thumb {
  position: relative;
  display: block;
  width: 265px; /* Matches the left column's exact height using 16:9 ratio */
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.aim-hero-video-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.aim-hero-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  background: rgba(15, 17, 23, 0.25);
  transition: background 0.2s;
}
.aim-hero-video-play:hover {
  background: rgba(15, 17, 23, 0.4);
}

/* ── Home: value proposition ──────────────────────────────── */
.aim-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.aim-value-card {
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(0, 0, 0, 0.14);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.aim-value-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}
.aim-value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.aim-value-card h3 i {
  color: #6366f1;
  font-size: 1.1rem;
}
.aim-value-card p {
  font-size: 0.9rem;
  color: var(--aim-text-dim);
  margin: 0;
  line-height: 1.6;
}

/* ── Home: comparison table (two-column, single divider, no card chrome) ──
   Shared by the "Your coding agent stays..." and "Different jobs. One
   workflow." sections. */
.aim-compare-table {
  display: flex;
  gap: 0;
  margin: 0 0 36px;
  align-items: stretch;
}

.aim-compare-col {
  flex: 1;
  padding: 0 36px;
}
.aim-compare-col:first-child {
  padding-left: 0;
  border-right: 1px solid var(--aim-border);
}
.aim-compare-col:last-child {
  padding-right: 0;
}

.aim-compare-heading {
  font-size: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.aim-compare-heading i {
  color: #6366f1;
  margin-right: 0.5rem;
}
.aim-compare-heading .aim-brand-icon {
  height: 1.5rem;
  margin-right: 0.5rem;
  position: relative;
  top: -0.2rem;
}

.aim-compare-col p {
  font-size: 0.92rem;
  color: var(--aim-text-dim);
  line-height: 1.6;
  margin: 0;
}

.aim-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.aim-compare-list li {
  font-size: 0.92rem;
  color: var(--aim-text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}
.aim-compare-list li:last-child {
  margin-bottom: 0;
}
.aim-compare-list li strong {
  color: #fff;
}

/* Before/After variant of .aim-compare-list (About page): icon + text per row */
.aim-compare-list-x li,
.aim-compare-list-check li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aim-compare-list-x li i {
  color: #ef4444;
  width: 16px;
  text-align: center;
}

.aim-compare-list-check li i {
  color: #22c55e;
  width: 16px;
  text-align: center;
}

/* ── Home: testimonials (hidden until real testimonials exist) ───────────── */
.aim-testimonials {
  margin-bottom: 30px;
}

.aim-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.aim-testimonial-card {
  position: relative;
  overflow: hidden;
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(0, 0, 0, 0.14);
}
.aim-testimonial-card--1::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect x='8' y='8' width='48' height='48' rx='12' fill='none' stroke='%23ffffff' stroke-width='3'/><text x='32' y='40' font-family='Arial,sans-serif' font-size='26' font-weight='700' fill='%23ffffff' text-anchor='middle'>A</text></svg>");
}
.aim-testimonial-card--2::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><circle cx='32' cy='32' r='26' fill='none' stroke='%23ffffff' stroke-width='3'/><text x='32' y='40' font-family='Arial,sans-serif' font-size='26' font-weight='700' fill='%23ffffff' text-anchor='middle'>B</text></svg>");
}
.aim-testimonial-card--3::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><polygon points='32,6 54,19 54,45 32,58 10,45 10,19' fill='none' stroke='%23ffffff' stroke-width='3'/><text x='32' y='40' font-family='Arial,sans-serif' font-size='26' font-weight='700' fill='%23ffffff' text-anchor='middle'>C</text></svg>");
}
.aim-testimonial {
  /* Faded company logo in bottom-right corner of the card */
}
.aim-testimonial-card::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
}
.aim-testimonial-quote {
  font-size: 0.95rem;
  color: var(--aim-text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}
.aim-testimonial-author {
  display: flex;
  justify-content: flex-end;
  text-align: right;
}
.aim-testimonial-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}
.aim-testimonial-role {
  font-size: 0.8rem;
  color: var(--aim-text-dim);
}

/* ── Home: company logo strip (hidden until real customer logos exist) ───── */
.aim-logo-strip {
  padding-bottom: 0;
}

.aim-logo-strip-heading {
  text-align: center;
  font-size: 0.85rem;
  color: var(--aim-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.aim-logo-strip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: 0.6;
}

.aim-logo-box {
  width: 120px;
  height: 48px;
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 8px;
}

/* "Mic-drop" closing line — visually emphasized with an accent rule and
   larger bold type since the request asked to emphasize it "somehow". */
.aim-mic-drop {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 2px solid var(--aim-brand);
  font-size: 1.2rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.5;
}
.aim-mic-drop strong {
  font-weight: 600;
}

/* ── Tool Logo Strip ────────────────────────────────────────── */
.aim-tool-strip {
  padding: 0 0 88px 0;
  overflow: hidden;
  position: relative;
  /* Fade-out edges — color matches the dark section background so no visible lines */
}
.aim-tool-strip::before, .aim-tool-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15vw;
  z-index: 2;
  pointer-events: none;
}
.aim-tool-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--aim-bg) 5vw, transparent);
}
.aim-tool-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--aim-bg) 5vw, transparent);
}

.aim-tool-strip-viewport {
  margin: 0 auto;
  overflow: hidden;
}

.aim-tool-strip-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  position: relative;
}

.aim-tool-strip-logo {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  transition: filter 0.3s ease, opacity 0.3s ease;
  opacity: 0.45;
  filter: grayscale(1);
}
.aim-tool-strip-logo:hover {
  opacity: 1;
  filter: none;
}

/* Aisman logo centered above the strip */
.aim-tool-strip-hero {
  text-align: center;
  margin: 0 auto;
  padding-bottom: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(95vw, 1200px + 12vw);
}

/* Logo wrap: background matches page to create visual gap in the line */
.aim-tool-strip-hero-logo-wrap {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 24px;
  background: var(--aim-bg);
}

.aim-tool-strip-hero-svg {
  width: 80px;
  height: auto;
  opacity: 0.35;
  filter: grayscale(1);
  display: block;
}

/* White horizontal line spanning the strip width, with short vertical drops */
.aim-tool-strip-hero-line {
  border-top: 1px solid var(--aim-diagram-line-color);
  margin: 0;
  width: 100%;
  height: 30px;
  margin-top: 40px;
}
.aim-tool-strip-hero-line.aim-tshl-left {
  border-left: 1px solid var(--aim-diagram-line-color);
  margin-left: 6vw;
}
.aim-tool-strip-hero-line.aim-tshl-right {
  border-right: 1px solid var(--aim-diagram-line-color);
  margin-right: 6vw;
}

/* Alternative curly-brace section with Aisman head (hidden by default) */
.aim-brace-section {
  position: relative;
  padding: 0 24px;
  text-align: center;
}

.aim-brace-svg {
  max-width: 1200px;
  width: 100%;
  height: auto;
}

/* ── Home: "Under the hood" wavy section ─────────────────────
   Purple-tinted wrapper with SVG wave curves (filled with --aim-card-bg to match
   the aim-how-section blocks above/below it) carving the top/bottom edges, plus a
   faint grid pattern clipped to the section via overflow:hidden. */
.aim-wavy-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0) 55%), var(--aim-bg-lighter);
  padding: 110px 0 80px;
}
.aim-wavy-wrap .aim-section {
  padding-top: 20px;
  padding-bottom: 20px;
}

.aim-wavy-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

.aim-wavy-edge {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 120px;
}

.aim-wavy-edge-top {
  top: -1px;
}

.aim-wavy-edge-bottom {
  bottom: -1px;
}

/* ── Home: "Under the hood" connected left-spine list ────────
   Replaces the old 3x2 aim-feature-card grid: a vertical spine line runs through
   the center of each row's icon circle, connecting the six features top to bottom. */
.aim-spine-list {
  position: relative;
  z-index: 1;
}

.aim-spine-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
}
.aim-spine-row:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  width: 2px;
  height: calc(100% - 48px + 18px);
  background: var(--aim-brand);
  opacity: 0.3;
}

.aim-spine-icon {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
}
.aim-spine-icon i {
  font-size: 1.15rem;
  color: #6366f1;
}

.aim-spine-content {
  padding-top: 4px;
}
.aim-spine-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
}
.aim-spine-content p {
  font-size: 0.88rem;
  color: var(--aim-text-dim);
  margin: 0;
  line-height: 1.5;
}

/* ── Home: "See Aisman in action" screenshots ────────────────
   One large display image on top, a row of 4 selector buttons underneath. The active
   thumbnail's image is swapped into the display via a small inline script (Scripts
   section of Index.cshtml) — no existing carousel/lightbox component fits this layout. */
.aim-screenshots-display {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--aim-border);
  background: var(--aim-card-bg);
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 10px 32px rgba(0, 0, 0, 0.25);
}
.aim-screenshots-display img {
  display: block;
  width: 100%;
  height: auto;
}

.aim-screenshots-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.aim-screenshots-tab {
  position: relative;
  border-radius: 10px;
  border: 2px solid var(--aim-border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--aim-card-bg);
  aspect-ratio: 16/9;
}
.aim-screenshots-tab:hover {
  border-color: rgba(99, 102, 241, 0.4);
}
.aim-screenshots-tab:hover .aim-screenshots-tab-overlay {
  opacity: 0;
}
.aim-screenshots-tab.active {
  border-color: var(--aim-brand);
  box-shadow: 0 0 0 1px var(--aim-brand), 0 0 16px rgba(99, 102, 241, 0.2);
}

.aim-screenshots-tab-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aim-screenshots-tab-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  transition: opacity 0.25s;
  text-align: center;
}

.aim-screenshots-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--aim-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.aim-screenshots-tab-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.aim-screenshots-tab-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.aim-screenshots-more {
  text-align: center;
}

.aim-screenshots-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aim-brand-hover);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s;
}
.aim-screenshots-gallery-link:hover {
  color: #a5b4fc;
  text-decoration: underline;
}
.aim-screenshots-gallery-link .fa-arrow-right {
  position: relative;
  top: 3px;
}

/* ── Home: statistics strip ──────────────────────────────────
   Full-width strip (no rounded corners), large numbers, thin vertical dividers. */
.aim-stats-strip {
  background: var(--aim-card-bg);
  padding: 40px 24px;
  margin: 70px 0 0;
  border-top: 1px solid var(--aim-border);
  border-bottom: 1px solid var(--aim-border);
}

.aim-stats-inner {
  max-width: 1300px; /* wider than the standard .aim-section 1000px so large numbers/labels
   are allowed to stretch beyond the width of the other sections (-2743) */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.aim-stat {
  flex: 1 1 0;
  min-width: 140px;
  text-align: center;
  padding: 0 40px;
  border-left: 1px solid var(--aim-border);
}
.aim-stat:first-child {
  border-left: none;
}

.aim-stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.aim-stat-label {
  font-size: 0.78rem;
  color: var(--aim-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.aim-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--aim-border);
  flex-shrink: 0;
}

/* ── Home: quote ──────────────────────────────────────────── */
.aim-quote {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--aim-text-dim);
  letter-spacing: 0.03em;
  padding: 20px 24px 0;
}
.aim-quote .cool {
  color: #93c5fd;
}
.aim-quote .hot {
  color: #ef4444;
}

/* ── Home: how it works ───────────────────────────────────── */
.aim-how-section {
  background: var(--aim-card-bg);
  margin: 0;
  padding: 80px 24px 60px;
  position: relative;
  z-index: 0; /* establishes a stacking context so .aim-bg-* backgrounds (z-index:-1) stay contained */
}

.aim-how-cogs {
  position: absolute;
  top: 0px;
  opacity: 0.04;
}

.aim-bg-cogs {
  width: 100%;
}

/* ── Shared subtle background for the black page area from "See Aisman in
   action" down through the stats strip / testimonials / logo strip / CTA and
   into the footer (-2742). Stats strip and CTA keep their own opaque
   backgrounds painted on top, so the pattern stays naturally hidden behind
   them while still tying the whole dark zone together visually. ──────────── */
.aim-dark-zone {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.aim-how-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Section connectors (issue -2738): small circular badge straddling the
   dividing line between a light (.aim-how-section) and dark (.aim-section)
   pair of sections, so the alternating rhythm reads as one connected flow. ── */
.aim-section-connector {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 1rem;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.aim-section-connector-top {
  top: 0;
}

.aim-section-connector-bottom {
  top: 100%;
}

.aim-section-connector-wavy-bottom {
  position: relative;
  bottom: -102px;
  left: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
}

.aim-workflow-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  border-top: solid 1px #363a54;
  padding-top: 2.2rem;
}

.aim-workflow-tab {
  padding: 8px 20px;
  border: 1px solid var(--aim-border);
  border-radius: 8px;
  background: transparent;
  color: var(--aim-text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.aim-workflow-tab:hover {
  border-color: var(--aim-brand);
  color: var(--aim-brand-hover);
}
.aim-workflow-tab.active {
  background: var(--aim-brand);
  border-color: var(--aim-brand);
  color: #fff;
}

.aim-how-steps {
  display: grid;
  /* improved: fixed 4-column grid (both step tabs have exactly 4 items) instead of
     auto-fit/minmax, which could wrap unevenly (e.g. 3+1) at in-between viewport widths
     and break the timeline connector line added below. */
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.aim-how-step {
  text-align: center;
  position: relative;
}
.aim-how-step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}
.aim-how-step h4.auto {
  color: rgb(183.24, 184.62, 248.56);
  font-style: italic;
}
.aim-how-step p {
  font-size: 0.85rem;
  color: var(--aim-text-dim);
  line-height: 1.5;
}

.aim-how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 22px;
  background: var(--aim-brand);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

/* improved: connects the numbered circles across a single-row step grid with a
   thin timeline line running through their centers (desktop-only; the grid
   wraps to 2 columns on narrower viewports where a straight connector would
   no longer line up, so it's disabled there — see the responsive block below). */
.aim-how-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(-50% - 24px);
  width: calc(100% + 24px);
  height: 2px;
  background: var(--aim-brand);
  opacity: 0.35;
  z-index: 0;
}

/* Arrowhead at the right end of the timeline connector */
.aim-how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  right: -51%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--aim-brand);
  opacity: 0.55;
  z-index: 0;
}

.aim-how-num-auto {
  background: rgba(99, 102, 241, 0.3);
  border: 2px dashed var(--aim-brand);
}

.aim-how-auto-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aim-text-light);
  margin-top: -10px;
  margin-bottom: 8px;
}

.aim-how-video-callout {
  margin-top: 28px;
  padding-top: 28px;
  border-top: solid 1px #363a54;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.aim-how-video-thumb {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--aim-border);
  border-radius: 10px;
  overflow: hidden;
  background: #141a2f;
  max-width: 460px;
  width: 100%;
}
.aim-how-video-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.aim-how-video-thumb span {
  padding: 10px 12px;
  color: var(--aim-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.aim-how-video-more {
  color: var(--aim-brand-hover);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.aim-how-video-more:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

/* Row holding the big thumbnail next to the stack of smaller thumbnails. */
.aim-how-video-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.aim-how-video-row .aim-how-video-thumb {
  flex: 1 1 380px;
  margin: 0;
}

/* Stack of 3 compact tiles whose combined height matches the big thumbnail
   (achieved by stretching to the row height and distributing evenly). */
.aim-how-video-stack {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.aim-how-video-thumb-sm {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 8px;
  text-decoration: none;
  border: 1px solid var(--aim-border);
  border-radius: 10px;
  background: #141a2f;
  transition: border-color 0.15s;
}
.aim-how-video-thumb-sm:hover {
  border-color: var(--aim-brand);
}
.aim-how-video-thumb-sm img {
  width: 96px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}
.aim-how-video-thumb-sm span {
  color: var(--aim-text);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

/* improved: neutral icon tile standing in for a real thumbnail image, since
   "More videos" links to the video library rather than one specific video. */
.aim-how-video-thumb-more-icon {
  width: 96px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aim-brand-dim);
}
.aim-how-video-thumb-more-icon i {
  color: var(--aim-brand-hover);
  font-size: 1.3rem;
}

.aim-how-video-thumb-more span:last-child {
  color: var(--aim-brand-hover);
}

/* ── Home: video lightbox (reused by Hero + "How it works" video callout) ──── */
.aim-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.aim-lightbox.open {
  display: flex;
}

.aim-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 20, 0.85);
  backdrop-filter: blur(3px);
}

.aim-lightbox-dialog {
  position: relative;
  max-width: 900px;
  width: 90%;
  padding: 0 20px;
  z-index: 1;
}

.aim-image-lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(96vw, 1600px);
  height: 90vh;
  padding: 24px 84px;
}

/* ── Image wrap (shared with /screenshots lightbox) ─────────────── */
.aim-image-lightbox-content .aim-lightbox-image-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.aim-image-lightbox-content .aim-lightbox-image-wrap.aim-lightbox-true-size {
  overflow: auto;
  cursor: grab;
  align-items: flex-start;
  justify-content: flex-start;
}
.aim-image-lightbox-content .aim-lightbox-image-wrap.aim-lightbox-true-size.aim-lightbox-grabbing {
  cursor: grabbing;
}
.aim-image-lightbox-content .aim-lightbox-image-wrap {
  /* Dark slim scrollbars matching the /screenshots page */
}
.aim-image-lightbox-content .aim-lightbox-image-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.aim-image-lightbox-content .aim-lightbox-image-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.aim-image-lightbox-content .aim-lightbox-image-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
.aim-image-lightbox-content .aim-lightbox-image-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}
.aim-image-lightbox-content .aim-lightbox-image-wrap::-webkit-scrollbar-corner {
  background: transparent;
}
.aim-image-lightbox-content .aim-lightbox-image-wrap {
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.aim-image-lightbox-content .aim-lightbox-main-img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 48px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

/* When the wrap is in true-size mode, let the img render at natural dimensions */
.aim-image-lightbox-content .aim-lightbox-image-wrap.aim-lightbox-true-size .aim-lightbox-main-img {
  max-width: none;
  max-height: none;
}

.aim-image-lightbox-prev,
.aim-image-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 2;
}
.aim-image-lightbox-prev:hover,
.aim-image-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.aim-image-lightbox-prev {
  left: 16px;
}

.aim-image-lightbox-next {
  right: 16px;
}

.aim-lightbox-close {
  position: absolute;
  top: -44px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.aim-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.aim-image-lightbox .aim-lightbox-close {
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(8, 10, 20, 0.6);
}
.aim-image-lightbox .aim-lightbox-close:hover {
  background: rgba(8, 10, 20, 0.85);
}

.aim-lightbox-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.aim-lightbox-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.aim-lightbox-youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.aim-lightbox-youtube i {
  color: #ff0000;
}
.aim-lightbox-youtube:hover {
  color: #fff;
}

body.aim-lightbox-locked {
  overflow: hidden;
}

/* ── Home: CTA ────────────────────────────────────────────── */
.aim-cta-wrap {
  /* ~500–600px of breathing space above the CTA so it reads as the page's conclusion. */
  padding: 0px 24px 60px;
  text-align: center;
  position: relative;
}

.aim-cta-arrow {
  width: 400px;
  max-width: 90%;
  height: auto;
  margin: 0 auto;
  display: block;
  position: relative;
  top: -20px;
}

.ai-funnel {
  /* Base static lines */
}
.ai-funnel .funnel-base {
  /* Matched to the soft blue/purple of your CTA */
  stroke: #7269ff;
  stroke-width: 1.25;
  fill: none;
  opacity: 0.35;
}
.ai-funnel {
  /* Shorter, slower moving highlights */
}
.ai-funnel .funnel-pulse {
  fill: none;
  stroke: #7269ff;
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: url(#funnel-glow);
  /* First value is the pulse length (15px), second is the gap (600px) */
  stroke-dasharray: 15 600;
  /* Slower 6s animation */
  animation: flow-down 30s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
.ai-funnel {
  /* Staggered starts so they don't all move at once */
}
.ai-funnel .delay-1 {
  animation-delay: 0s;
}
.ai-funnel .delay-2 {
  animation-delay: 7.5s;
}
.ai-funnel .delay-3 {
  animation-delay: 15s;
}
.ai-funnel .delay-4 {
  animation-delay: 5s;
}
.ai-funnel .delay-5 {
  animation-delay: 15s;
}
@keyframes flow-down {
  0% {
    stroke-dashoffset: 600;
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -20;
    opacity: 0;
  }
}
.ai-funnel {
  /* Target Convergence Spark Effects */
}
.ai-funnel .spark-core {
  fill: #e5e4ff; /* Very soft tint of the CTA color, not pure white */
  filter: url(#funnel-glow);
  /* THIS fixes the diagonal flying glitch */
  transform-origin: 500px 165px;
  animation: spark-pulse 2s infinite ease-in-out;
}
.ai-funnel .spark-ring {
  fill: none;
  stroke: #7269ff;
  stroke-width: 1.5;
  filter: url(#funnel-glow);
  transform-origin: 500px 165px;
  animation: ring-expand 15s infinite linear;
}
@keyframes spark-pulse {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}
@keyframes ring-expand {
  0% {
    r: 2;
    opacity: 0.5;
    stroke-width: 2;
  }
  100% {
    r: 146;
    opacity: 0;
    stroke-width: 0.5;
  }
}

.aim-cta-connector {
  background: #5a58ec;
  border: 1px solid rgb(170, 178, 211);
  color: #1c2137;
}

.aim-cta {
  background: linear-gradient(135deg, #4f46e5, #6366f1, #818cf8);
  border-radius: 16px;
  padding: 35px 40px 48px;
  text-align: center;
  color: #fff;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  top: -6px;
}
.aim-cta h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.aim-cta p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 24px;
}
.aim-cta p.your-turn {
  position: relative;
  top: -5px;
  margin-bottom: 5px;
  font-style: italic;
  font-weight: 300;
  opacity: 0.7;
}
.aim-cta p.your-turn b {
  font-weight: 500;
  opacity: revert;
}
.aim-cta a {
  display: inline-block;
  background: #fff;
  color: #6366f1;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.aim-cta a:hover {
  background: #e0e7ff;
}

/* ── Contact ─────────────────────────────────────────────── */
.aim-contact {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 20px;
}
.aim-contact h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.aim-contact .subtitle {
  font-size: 0.95rem;
  color: var(--aim-text-dim);
  margin-bottom: 32px;
}

.aim-contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.aim-channel {
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  position: relative;
}
.aim-channel > * {
  position: relative;
  z-index: 2;
}
.aim-channel i {
  font-size: 10rem;
  color: var(--aim-brand);
  margin-bottom: 10px;
  display: block;
  position: absolute;
  z-index: 1;
  opacity: 0.08;
  margin: auto;
  left: 0;
  right: 0;
  bottom: -0.5rem;
}
.aim-channel h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--aim-text);
}
.aim-channel p {
  font-size: 0.85rem;
  color: var(--aim-text-dim);
  margin-bottom: 10px;
}
.aim-channel a {
  font-size: 0.85rem;
  color: var(--aim-brand);
  text-decoration: none;
  font-weight: 500;
}
.aim-channel a:hover {
  text-decoration: underline;
}

.aim-contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--aim-text);
  margin-bottom: 4px;
}
.aim-contact-form input,
.aim-contact-form textarea,
.aim-contact-form select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9rem;
  border: 1px solid var(--aim-border);
  border-radius: 8px;
  background: var(--aim-card-bg);
  color: var(--aim-text);
  margin-bottom: 16px;
  font-family: inherit;
}
.aim-contact-form input:focus,
.aim-contact-form textarea:focus,
.aim-contact-form select:focus {
  outline: none;
  border-color: var(--aim-brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.aim-contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.aim-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--aim-brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.aim-contact-btn:hover {
  background: var(--aim-brand-hover);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.aim-faq-hero {
  text-align: center;
  padding: 48px 20px 32px;
  position: relative;
}
.aim-faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.aim-faq-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  position: relative;
}
.aim-faq-hero .subtitle {
  color: var(--aim-text-dim);
  font-size: 0.95rem;
  position: relative;
  margin-bottom: 8px;
}
.aim-faq-hero .aim-faq-icon {
  font-size: 3rem;
  color: var(--aim-brand);
  opacity: 0.3;
  margin-bottom: 12px;
  display: block;
}

.aim-faq-count {
  font-size: 0.8rem;
  color: var(--aim-text-light);
  position: relative;
}
.aim-faq-count span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--aim-brand);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 4px;
}

.aim-faq {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.aim-faq-item {
  border: 1px solid var(--aim-border);
  border-left: 3px solid transparent;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--aim-card-bg);
  transition: border-color 0.2s, box-shadow 0.2s, border-left-color 0.25s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.aim-faq-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.aim-faq-item.open {
  border-left-color: var(--aim-brand);
}
.aim-faq-item.open .aim-faq-a {
  max-height: 600px;
  padding-top: 0;
  padding-bottom: 18px;
}
.aim-faq-item.open .aim-faq-chevron {
  transform: rotate(180deg);
}

.aim-faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--aim-text);
  transition: background 0.15s;
  gap: 12px;
}
.aim-faq-q:hover {
  background: rgba(99, 102, 241, 0.06);
}
.aim-faq-q span {
  flex: 1;
}

.aim-faq-q-icon {
  color: var(--aim-brand);
  margin-right: 10px;
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
  opacity: 0.85;
}

.aim-faq-chevron {
  color: var(--aim-brand);
  transition: transform 0.25s ease;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.aim-faq-a {
  padding: 0 20px;
  font-size: 0.9rem;
  color: var(--aim-text-dim);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  display: block;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}

.aim-faq-list {
  margin: 8px 0 0 0;
  padding-left: 20px;
}
.aim-faq-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.aim-faq-list code {
  background: rgba(99, 102, 241, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.88em;
}

/* ── Help ─────────────────────────────────────────────────── */
.aim-help {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}
.aim-help h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.aim-help .subtitle {
  color: var(--aim-text-dim);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.aim-help h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--aim-border);
  color: #fff;
  scroll-margin-top: 110px;
}
.aim-help h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--aim-text);
  scroll-margin-top: 110px;
}
.aim-help [id] {
  scroll-margin-top: 110px;
}
.aim-help p,
.aim-help li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--aim-text-dim);
}
.aim-help strong {
  color: var(--aim-text);
}
.aim-help ol,
.aim-help ul {
  padding-left: 20px;
}
.aim-help table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.88rem;
}
.aim-help th {
  background: var(--aim-card-bg);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--aim-text);
  border-bottom: 2px solid var(--aim-border);
}
.aim-help td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--aim-border);
  color: var(--aim-text-dim);
}
.aim-help {
  /* ── Help page inline images ──────────────────────── */
}
.aim-help .aim-help-image {
  margin: 16px 0;
  text-align: center;
}
.aim-help .aim-help-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--aim-border);
  cursor: zoom-in;
  transition: box-shadow 0.2s;
}
.aim-help .aim-help-image img:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.aim-help .aim-help-image figcaption {
  font-size: 0.8rem;
  color: var(--aim-text-light);
  margin-top: 6px;
  font-style: italic;
}
.aim-help .aim-help-image-float {
  float: right;
  max-width: 320px;
  margin: 0 0 12px 20px;
}
.aim-help .aim-help-image-float img {
  max-width: 100%;
}
.aim-help {
  /* ── Annotated screenshots ─────────────────────────── */
}
.aim-help .aim-help-annotated {
  position: relative;
  display: inline-block;
  margin: 16px 0;
  cursor: zoom-in;
}
.aim-help .aim-help-annotated img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--aim-border);
  transition: box-shadow 0.2s;
}
.aim-help .aim-help-annotated:hover img {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.aim-help .aim-help-annotated figcaption {
  font-size: 0.8rem;
  color: var(--aim-text-light);
  margin-top: 6px;
  font-style: italic;
  text-align: center;
}
.aim-help .aim-annotation {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--aim-brand);
  color: #fff;
  width: 20px;
  height: 20px;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.aim-help .aim-annotation-highlight {
  position: absolute;
  border: 2px solid var(--aim-brand);
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.1);
  pointer-events: none;
  z-index: 1;
}
.aim-help .aim-annotation-label {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--aim-brand);
  background: var(--aim-card-bg);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--aim-brand);
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.aim-help-topics-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aim-text-light);
  margin-bottom: 8px;
}

.aim-help-nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 32px;
  position: sticky;
  top: 56px;
  z-index: 100;
  background: var(--aim-bg);
  padding: 10px 0;
  border-bottom: 1px solid var(--aim-border);
}
.aim-help-nav a {
  padding: 6px 14px;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--aim-border);
  color: var(--aim-text-dim);
  transition: all 0.15s;
  margin: -1px 0 0 -1px;
}
.aim-help-nav a:first-child {
  border-radius: 6px 0 0 6px;
}
.aim-help-nav a:last-child {
  border-radius: 0 6px 6px 0;
}
.aim-help-nav a:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--aim-brand-hover);
  border-color: var(--aim-brand);
  z-index: 1;
}
.aim-help-nav a.active {
  background: var(--aim-brand);
  color: #fff;
  border-color: var(--aim-brand);
  z-index: 2;
}

/* ── Pricing ─────────────────────────────────────────────── */
.aim-pricing {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
}
.aim-pricing h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.aim-pricing .subtitle {
  text-align: center;
  color: var(--aim-text-dim);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ── Full-width pricing grid variant ─────────────────────── */
.aim-pricing-full-width {
  max-width: 1280px;
}
.aim-pricing-full-width .aim-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.aim-pricing-full-width .aim-price-card {
  flex-shrink: initial;
  width: auto;
  min-width: 0;
}

.aim-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.aim-billing-toggle span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--aim-text-dim);
  transition: color 0.2s;
}
.aim-billing-toggle span.active {
  color: #fff;
}

.aim-billing-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.aim-billing-switch.yearly {
  background: var(--aim-brand);
}
.aim-billing-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.aim-billing-switch.yearly::after {
  transform: translateX(22px);
}

.aim-billing-save {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff !important;
  background: #6366f1;
  padding: 2px 8px;
  border-radius: 10px;
}

.aim-pricing-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  transition: transform 0.3s ease;
}

/* ── Tier carousel ───────────────────────────────────────── */
.aim-pricing-carousel {
  position: relative;
  overflow: hidden;
  padding: 15px;
}

.aim-carousel-prev,
.aim-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.aim-carousel-prev:hover,
.aim-carousel-next:hover {
  border-color: var(--aim-brand);
  color: var(--aim-brand);
}

.aim-carousel-prev {
  left: 0;
}

.aim-carousel-next {
  right: 0;
}

.aim-price-card {
  background: var(--aim-card-bg);
  border: 2px solid var(--aim-border);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 260px;
  width: calc(33.333% - 16px);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.aim-price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(99, 102, 241, 0.2);
}
.aim-price-card.featured {
  border-color: var(--aim-brand);
}
.aim-price-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--aim-brand);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── Current subscription tier highlight ─────────────────── */
.aim-price-btn-subscribed {
  color: #22c55e;
}

.aim-current-tier,
.aim-current-tier:hover {
  box-shadow: 3px 3px 15px 5px var(--aim-green);
  position: relative;
  background-color: rgba(34, 197, 94, 0.1);
}
.aim-current-tier::after,
.aim-current-tier:hover::after {
  content: "Your current plan";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--aim-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.aim-current-tier-warn,
.aim-current-tier-warn:hover {
  box-shadow: 3px 3px 8px 5px #f97316, 0 4px 16px rgba(234, 179, 8, 0.25);
  position: relative;
  background-color: rgba(249, 115, 22, 0.1);
}
.aim-current-tier-warn::after,
.aim-current-tier-warn:hover::after {
  content: "Your quota has been exhausted";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f97316;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.aim-current-tier-warn .aim-price-amount,
.aim-current-tier-warn:hover .aim-price-amount {
  color: rgba(249, 115, 22, 0.7);
}
.aim-current-tier-warn .aim-price-btn-subscribed,
.aim-current-tier-warn:hover .aim-price-btn-subscribed {
  color: #f97316;
}

.aim-price-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.aim-tier-entity-disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.6);
}
.aim-tier-entity-disabled::after {
  content: "Not available for organizations";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--aim-text-dim);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.aim-price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--aim-brand-hover);
  margin-bottom: 4px;
}
.aim-price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--aim-text-dim);
}

.aim-price-desc {
  font-size: 0.85rem;
  color: var(--aim-text-dim);
  margin-bottom: 20px;
  border-top: dashed 1px #363a54;
  margin-top: 0.2rem;
  padding-top: 0.4rem;
}

.aim-price-features {
  list-style: none;
  padding: 9px 0 20px 0;
  margin: 0;
  text-align: left;
  flex: 1;
}
.aim-price-features li {
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--aim-text);
  display: flex;
}
.aim-price-features li::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f00c";
  margin-right: 0.5rem;
  font-size: 1rem;
  color: #22c55e;
}
.aim-price-features li.optional::before {
  content: "+";
}

.aim-price-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s;
}

.aim-price-btn-outline {
  border: 2px solid var(--aim-brand);
  color: var(--aim-brand-hover);
  background: transparent;
}
.aim-price-btn-outline:hover {
  background: #6366f1;
  color: #fff;
}

.aim-price-btn-solid {
  background: var(--aim-brand);
  color: #fff;
}
.aim-price-btn-solid:hover {
  background: var(--aim-brand-hover);
}

.aim-pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.88rem;
  color: var(--aim-text-dim);
}
.aim-pricing-note a {
  color: var(--aim-brand-hover);
  text-decoration: none;
}
.aim-pricing-note a:hover {
  text-decoration: underline;
}

.aim-pricing-loading {
  text-align: center;
  padding: 40px;
  color: var(--aim-text-dim);
  font-size: 0.95rem;
  grid-column: 1/-1;
}

/* ── Feature comparison ──────────────────────────────────── */
.aim-feature-compare-wrap {
  text-align: center;
  margin-top: 40px;
}

.aim-centered-tab-toggle {
  background: none;
  border: 1px solid var(--aim-border);
  color: var(--aim-text-dim);
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  top: 1px;
}
.aim-centered-tab-toggle .aim-compare-arrow {
  margin-left: 6px;
  transition: transform 0.2s;
}
.aim-centered-tab-toggle .aim-compare-arrow.aim-compare-open {
  transform: rotate(180deg);
}

.aim-feature-compare {
  margin-top: 24px;
  overflow-x: auto;
  /* Override the homepage's display:flex on .aim-compare-table
     so that the <table> inside the pricing feature comparison
     renders as an actual table, not as side-by-side flex columns. */
}
.aim-feature-compare .aim-compare-table {
  display: table;
}

.aim-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: #fff;
}
.aim-compare-table th,
.aim-compare-table td {
  padding: 10px 16px;
  text-align: center;
  border-bottom: 1px solid var(--aim-border);
}
.aim-compare-table th {
  color: #fff;
  font-weight: 600;
  background: #1c1f2e;
  position: sticky;
  top: 0;
}
.aim-compare-table td:first-child,
.aim-compare-table th:first-child {
  text-align: left;
}
.aim-compare-table tr:hover td {
  background: #252840;
}

.aim-alacarte-price {
  font-size: 0.8rem;
  color: var(--aim-brand-hover);
  font-weight: 500;
  margin-left: 4px;
}

/* ── Checkout ────────────────────────────────────────────── */
.aim-checkout-pane {
  max-width: 520px;
  margin: 48px auto 0;
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 14px;
  padding: 36px 32px;
}
.aim-checkout-pane h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.aim-checkout-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--aim-text);
  border-bottom: 1px solid var(--aim-border);
}

.aim-checkout-total-line {
  margin-top: 12px;
  padding-top: 12px;
  font-size: 1rem;
  border-top: 2px solid var(--aim-border);
  border-bottom: none;
}

.aim-checkout-addons {
  margin: 16px 0;
}

.aim-checkout-addon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--aim-text);
  cursor: pointer;
}
.aim-checkout-addon span {
  margin-left: auto;
  color: var(--aim-brand-hover);
  font-weight: 500;
}

#stripeElements {
  background: #1a1d2b;
  border: 1px solid var(--aim-border);
  border-radius: 8px;
  padding: 14px;
  margin: 20px 0 16px;
}

#btnPay {
  width: 100%;
  margin-top: 8px;
}

.aim-checkout-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--aim-text-dim);
  margin-top: 12px;
}

/* Discount code row */
.aim-checkout-discount {
  margin: 10px 0;
}

.aim-checkout-discount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#discountCodeStatus {
  font-size: 0.82rem;
  font-weight: 500;
}
#discountCodeStatus.aim-dc-ok {
  color: var(--aim-green, #4caf50);
}
#discountCodeStatus.aim-dc-err {
  color: var(--aim-danger, #e53935);
}

.aim-checkout-disc-line {
  color: var(--aim-text-dim);
  font-size: 0.88rem;
}

/* ── Promotions section ──────────────────────────────────── */
.aim-promotions-section {
  max-width: 900px;
  margin: 48px auto 0;
  text-align: center;
}
.aim-promotions-section .aim-promo-arrow {
  margin-left: 6px;
  transition: transform 0.2s;
}
.aim-promotions-section .aim-promo-arrow.aim-compare-open {
  transform: rotate(180deg);
}
.aim-promotions-section .aim-promotions-body {
  text-align: left;
}

.aim-promotions-toggle {
  background: none;
  border: 1px solid var(--aim-border);
  border-radius: 6px;
  padding: 8px 16px;
  color: var(--aim-text);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
}
.aim-promotions-toggle:hover {
  background: var(--aim-hover-bg);
}

.aim-promo-arrow {
  margin-left: auto;
  transition: transform 0.2s;
}
.aim-promo-arrow.aim-compare-open {
  transform: rotate(180deg);
}

.aim-promotions-intro {
  font-size: 0.88rem;
  color: var(--aim-text-dim);
  margin: 10px 0 14px;
}

.aim-promo-item {
  border: 1px solid var(--aim-border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.aim-promo-code {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.aim-promo-code-str {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  background: var(--aim-hover-bg);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.aim-promo-detail {
  font-size: 0.88rem;
}

.aim-promo-descr {
  color: var(--aim-text-dim);
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.aim-checkout-success {
  text-align: center;
  padding: 20px 0;
}
.aim-checkout-success i {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 16px;
}
.aim-checkout-success h2 {
  color: #fff;
  margin-bottom: 8px;
}
.aim-checkout-success p {
  color: var(--aim-text-dim);
  margin-bottom: 20px;
}

/* ── Yearly price subtitle ───────────────────────────────── */
.aim-price-yr-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--aim-text-dim);
  font-weight: 400;
  margin-top: 2px;
}
.aim-price-yr-sub s {
  display: none;
}

span.aim-price-disc {
  color: #6366f1;
  font-weight: 500;
}

/* ── Checkout pane ───────────────────────────────────────── */
.aim-checkout-pane {
  max-width: 560px;
  margin: 42px auto;
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 10px;
  padding: 36px;
}

.aim-checkout-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

h2.aim-checkout-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
  margin: 0;
  margin-bottom: 0;
}

.aim-checkout-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: #e0e0e8;
}

.aim-checkout-section {
  border-bottom: 1px solid var(--aim-border);
  padding-bottom: 24px;
}
.aim-checkout-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.aim-checkout-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.aim-checkout-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aim-checkout-item {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.95rem;
}

.aim-checkout-item-name {
  flex: 1;
  color: var(--aim-text);
}

.aim-checkout-item-qty {
  color: var(--aim-text-dim);
}
.aim-checkout-item-qty .aim-plus-minus, .aim-checkout-item-qty .aim-addons-row-qty {
  vertical-align: middle;
}

.aim-checkout-item-price {
  font-weight: 600;
  color: #fff;
  min-width: 80px;
  text-align: right;
}

.aim-checkout-subtotal,
.aim-checkout-discount,
.aim-checkout-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--aim-border);
}

.aim-checkout-subtotal {
  font-size: 0.95rem;
  margin-top: 8px;
}

.aim-checkout-discount {
  color: #22c55e;
}

.aim-checkout-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  border-top: 2px solid var(--aim-border);
}

.aim-stripe-card-element {
  background: var(--aim-input-bg);
  border: 1px solid var(--aim-border);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.aim-stripe-card-element:focus-within {
  border-color: var(--aim-brand);
  outline: 1px solid var(--aim-brand);
}

.aim-stripe-errors {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 18px;
}

.aim-checkout-actions {
  margin-top: 8px;
}
.aim-checkout-actions button {
  width: 100%;
  font-size: 1.05rem;
}

.aim-price-disc-badge {
  display: inline-block;
  background: #6366f1;
  color: #e0e0e8 !important;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 1px 0.6rem 2px;
  margin-bottom: 4px;
  margin-left: 0.5rem;
  line-height: 1.4;
}
.aim-price-disc-badge::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f061";
  margin-right: 0.5rem;
  font-size: 0.7rem;
  margin-right: 6px;
}

.aim-price-yr-total {
  font-weight: 600;
}

.aim-price-yr-labels {
  font-size: 0.75em;
  color: var(--aim-text-dim);
  margin-left: 2px;
}

.aim-checkout-yr-sub {
  font-size: 0.8rem;
  color: var(--aim-text-dim);
  margin-left: 4px;
}

/* ── Feature values ──────────────────────────────────────── */
.aim-feature-value {
  color: var(--aim-brand-hover);
  font-weight: 500;
}

.aim-feature-usage {
  color: var(--aim-brand-hover);
  font-weight: 500;
  font-size: 0.82em;
}
.aim-feature-usage b {
  font-size: 1.2em;
}

.aim-feature-exceeded {
  color: #f97316;
  font-weight: 600;
}

.aim-feature-quota {
  display: block;
  font-size: 0.78em;
  color: var(--aim-text-dim);
  text-align: right;
  margin-top: 2px;
}

.aim-feature-quota-note {
  list-style: none !important;
  font-size: 0.75rem !important;
  color: var(--aim-text-dim) !important;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--aim-border);
  line-height: 1.4;
}

/* ── Current subscription indicator ──────────────────────── */
.aim-current-sub-indicator {
  text-align: center;
  margin: 20px auto 0;
  color: var(--aim-text-dim);
  font-size: 0.92rem;
}
.aim-current-sub-indicator::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f058";
  margin-right: 0.5rem;
  font-size: 1rem;
  color: var(--aim-green);
  margin-right: 6px;
}
.aim-current-sub-indicator.aim-quota-exhausted::before {
  content: "\f06a";
  color: var(--aim-orange);
}

/* ── Exceeded features panel ─────────────────────────────── */
.aim-exceeded-panel {
  margin: 28px auto 0;
  padding: 20px 24px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 8px;
  color: #e0e0e8;
}

.aim-exceeded-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f97316;
  margin: 0 0 8px;
}
.aim-exceeded-heading i {
  margin-right: 6px;
}

.aim-exceeded-intro {
  color: var(--aim-text);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.aim-exceeded-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(224, 224, 232, 0.8);
}
.aim-exceeded-list li {
  position: relative;
  padding: 6px 0 6px 1.5rem;
  border-bottom: 1px solid var(--aim-border);
  font-size: 0.9rem;
}
.aim-exceeded-list li:last-child {
  border-bottom: none;
}
.aim-exceeded-list li::before {
  content: "\f061";
  font-family: "Font Awesome 6 Free"; /* Use your Font Awesome version */
  font-weight: 900; /* Required for solid icons in FA6 */
  position: absolute;
  left: 0;
}

.aim-exceeded-values {
  color: #f97316;
  font-weight: 600;
  font-size: 0.85em;
}

.aim-exceeded-descr {
  color: var(--aim-text);
  font-size: 0.82rem;
  font-weight: normal;
  margin: 4px 0 0;
}

/* ── Standalone add-ons section ──────────────────────────── */
.aim-addons-section {
  max-width: 900px;
  margin: 48px auto 0;
  text-align: center;
}
.aim-addons-section .aim-addons-arrow {
  margin-left: 6px;
  transition: transform 0.2s;
}
.aim-addons-section .aim-addons-arrow.aim-compare-open {
  transform: rotate(180deg);
}

.aim-addons-content {
  margin-top: 24px;
  text-align: left;
}

.aim-addons-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--aim-border);
}

.aim-addons-row-info {
  min-width: 0;
}

.aim-addons-row-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.aim-addons-row-desc {
  font-size: 0.82rem;
  color: var(--aim-text-dim);
  margin-top: 2px;
}

.aim-addons-row-unit-price {
  font-size: 0.9rem;
  color: var(--aim-text-dim);
  white-space: nowrap;
  text-align: right;
}
.aim-addons-row-unit-price span {
  font-size: 0.78rem;
}

.aim-addons-row-total {
  font-weight: 600;
  color: #fff;
  min-width: 64px;
  text-align: right;
  font-size: 0.95rem;
}

.aim-addons-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px 0 0;
}

.aim-addons-footer-label {
  font-size: 0.9rem;
  color: var(--aim-text-dim);
  margin-right: 4px;
}

.aim-addons-grand-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

/* ── Tier descriptions section ───────────────────────────── */
.aim-tier-descriptions {
  max-width: 900px;
  margin: 48px auto 0;
  text-align: center;
}
.aim-tier-descriptions .aim-tier-desc-arrow {
  margin-left: 6px;
  transition: transform 0.2s;
}
.aim-tier-descriptions .aim-tier-desc-arrow.aim-compare-open {
  transform: rotate(180deg);
}

.aim-tier-desc-content {
  margin-top: 24px;
  text-align: left;
}

.aim-tier-desc-block {
  margin-bottom: 24px;
  background: var(--aim-bg-input);
  border-radius: 6px;
  padding: 1rem;
  border: solid 1px var(--aim-border);
}
.aim-tier-desc-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.aim-tier-desc-body {
  font-size: 0.9rem;
  color: var(--aim-text);
  line-height: 1.6;
}

.aim-centered-tab-content {
  border: solid 1px;
  padding: 1rem;
  border-radius: 6px;
  background: var(--aim-bg-panel);
  margin-top: 0;
}

.aim-expanded .aim-centered-tab-toggle {
  border-bottom: none;
  background: var(--aim-bg-panel);
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}
.aim-expanded:hover .aim-centered-tab-toggle,
.aim-expanded:hover .aim-centered-tab-content {
  border-color: var(--aim-brand);
  color: #fff;
}

/* ── Pricing admin ───────────────────────────────────────── */
.aim-pricing-admin {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}
.aim-pricing-admin h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.aim-pricing-admin .subtitle {
  color: var(--aim-text-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.aim-pricing-admin-header {
  margin-bottom: 20px;
}

.aim-pa-header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aim-pa-filters {
  min-width: 220px;
}

.aim-pa-filter {
  width: 180px;
}
.aim-pa-filter:not(.active) {
  display: none;
}

.aim-pricing-admin ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.aim-pricing-admin ::-webkit-scrollbar-track {
  background: transparent;
}
.aim-pricing-admin ::-webkit-scrollbar-thumb {
  background: var(--aim-border-light, #363a54);
  border-radius: 4px;
}
.aim-pricing-admin ::-webkit-scrollbar-thumb:hover {
  background: var(--aim-text-dim, #8b8fa3);
}

.aim-pricing-admin-toolbar {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 16px;
}

.aim-check-label {
  color: var(--aim-text);
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
}
.aim-check-label input[type=checkbox] {
  margin-right: 4px;
  vertical-align: middle;
}

.aim-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.aim-admin-table th,
.aim-admin-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--aim-border);
}
.aim-admin-table th {
  color: var(--aim-text-dim);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.aim-admin-table td {
  color: var(--aim-text);
}
.aim-admin-table tr:hover td {
  background: #252840;
}
.aim-admin-table code {
  font-size: 0.82rem;
  color: var(--aim-brand-hover);
  background: #2a2d45;
  padding: 2px 6px;
  border-radius: 4px;
}
.aim-admin-table td.child-level-1 {
  padding-left: 30px;
}
.aim-admin-table td.child-level-2 {
  padding-left: 50px;
}
.aim-admin-table td.child-level-3 {
  padding-left: 70px;
}
.aim-admin-table td.child-level-4 {
  padding-left: 90px;
}
.aim-admin-table td.child-level-5 {
  padding-left: 110px;
}
.aim-admin-table td.child-level-6 {
  padding-left: 130px;
}
.aim-admin-table td.child-level-7 {
  padding-left: 150px;
}
.aim-admin-table td.child-level-8 {
  padding-left: 170px;
}
.aim-admin-table td.child-level-9 {
  padding-left: 190px;
}
.aim-admin-table tbody tr.aim-row-clickable {
  cursor: pointer;
}

.aim-row-inactive td {
  opacity: 0.5;
}

.aim-admin-actions {
  white-space: nowrap;
  text-align: right !important;
}

.aim-btn-icon {
  background: none;
  border: none;
  color: var(--aim-text-dim);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}
.aim-btn-icon:hover {
  background: #252840;
  color: #fff;
}
.aim-btn-icon.aim-text-red:hover {
  color: #ef4444;
}

.aim-text-green {
  color: #22c55e;
}

.aim-text-red {
  color: #ef4444;
}

.aim-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.3);
  color: #818cf8;
}

.aim-form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.aim-form-half {
  flex: 1;
  min-width: 180px;
}

.aim-form-two-thirds {
  flex: 2;
  min-width: 200px;
}

.aim-form-third {
  flex: 1;
  min-width: 120px;
}

.aim-tier-features-grid {
  max-height: 360px;
  overflow-y: auto;
}

.aim-dc-tier-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 200px;
  overflow-y: auto;
}

.aim-form-group .aim-dc-tier-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--aim-text);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: none;
}
.aim-form-group .aim-dc-tier-choice input[type=checkbox] {
  flex-shrink: 0;
  cursor: pointer;
}
.aim-form-group .aim-dc-tier-choice:hover {
  background: #252840;
}

.aim-tier-features-header,
.aim-tier-features-row {
  display: grid;
  grid-template-columns: 5fr 70px 70px 1fr;
  align-items: center;
  padding: 8px 4px;
  font-size: 0.88rem;
  gap: 8px;
}

.aim-tier-features-header {
  font-weight: 600;
  color: var(--aim-text-dim);
  border-bottom: 1px solid var(--aim-border);
  position: sticky;
  top: 0;
  background: var(--aim-card-bg);
}
.aim-tier-features-header span:nth-child(2),
.aim-tier-features-header span:nth-child(3) {
  text-align: center;
}

.aim-tier-features-row {
  border-bottom: 1px solid var(--aim-border);
  color: var(--aim-text);
}
.aim-tier-features-row label {
  text-align: center;
  cursor: pointer;
}
.aim-tier-features-row:hover {
  background: #252840;
}
.aim-tier-features-row.child-level-1 > span:first-child {
  padding-left: 22px;
}
.aim-tier-features-row.child-level-2 > span:first-child {
  padding-left: 40px;
}
.aim-tier-features-row.child-level-3 > span:first-child {
  padding-left: 58px;
}
.aim-tier-features-row.child-level-4 > span:first-child {
  padding-left: 76px;
}
.aim-tier-features-row.child-level-5 > span:first-child {
  padding-left: 94px;
}
.aim-tier-features-row.child-level-6 > span:first-child {
  padding-left: 112px;
}
.aim-tier-features-row.child-level-7 > span:first-child {
  padding-left: 130px;
}
.aim-tier-features-row.child-level-8 > span:first-child {
  padding-left: 148px;
}
.aim-tier-features-row.child-level-9 > span:first-child {
  padding-left: 166px;
}

/* Master-detail layout */
.aim-pa-master-detail {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.aim-pa-master-detail.has-detail .aim-pa-master {
  flex: 1 1 0;
  min-width: 0;
}

.aim-pa-master {
  flex: 1;
  min-width: 0;
}

.aim-pa-detail {
  flex: 0 0 440px;
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 10px;
  position: sticky;
  top: 20px;
}
.aim-pa-detail.is-hidden {
  display: none;
}

.aim-pa-detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--aim-border);
  padding: 0 4px;
}

.aim-pa-dtab {
  background: none;
  border: none;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--aim-text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.aim-pa-dtab:hover {
  color: var(--aim-text);
}
.aim-pa-dtab.active {
  color: var(--aim-brand);
  border-bottom-color: var(--aim-brand);
  font-weight: 600;
}

.aim-pa-dtab-close {
  margin-left: auto;
  padding: 10px 12px;
  font-size: 0.9rem;
}
.aim-pa-dtab-close:hover {
  color: #ef4444;
}

.aim-pa-detail-body {
  padding: 16px;
}

.aim-pa-subpane.is-hidden {
  display: none;
}

.aim-res-add-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.aim-res-add-code-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.88rem;
}

.aim-pa-detail-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.aim-btn-left {
  margin-right: auto;
}

.aim-pa-loading {
  text-align: center;
  padding: 20px;
  color: var(--aim-text-dim);
  font-size: 0.88rem;
}

.aim-row-selected td {
  background: #2a2d45;
}

.aim-admin-table-compact th,
.aim-admin-table-compact td {
  padding: 6px 8px;
  font-size: 0.82rem;
}
.aim-admin-table-compact input[type=number] {
  width: 80px;
}
.aim-admin-table-compact select {
  min-width: 90px;
}

.aim-input-sm {
  padding: 4px 8px !important;
  font-size: 0.82rem !important;
  height: auto !important;
}

select.aim-input option {
  background: var(--aim-input-bg);
  color: var(--aim-text);
}

.aim-btn-outline {
  background: none;
  border: 1px solid var(--aim-border);
  color: var(--aim-text-dim);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}
.aim-btn-outline:hover {
  border-color: var(--aim-brand);
  color: var(--aim-brand);
}
.aim-btn-outline i {
  margin-right: 4px;
}

.aim-text-dim {
  color: var(--aim-text-dim);
}

/* Drag-and-drop table styles */
.aim-dnd-table tbody tr {
  cursor: grab;
}
.aim-dnd-table tbody tr:active {
  cursor: grabbing;
}

.aim-dnd-handle {
  cursor: grab;
}
.aim-dnd-handle:active {
  cursor: grabbing;
}

.aim-dnd-dragging {
  opacity: 0.4;
}

.aim-dnd-over {
  border-top: 2px solid var(--aim-brand) !important;
}
.aim-dnd-over td {
  padding-top: 4px;
}

.aim-dnd-child-target {
  outline: 2px dashed var(--aim-brand) !important;
  outline-offset: -2px;
  background: color-mix(in srgb, var(--aim-brand) 8%, transparent) !important;
}

/* Column hiding */
.aim-col-hide.is-hidden {
  display: none;
}

/* Number input — no spinner */
.aim-num-input {
  text-align: right;
  -moz-appearance: textfield;
}
.aim-num-input::-webkit-outer-spin-button, .aim-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Yearly input group */
.aim-yearly-group {
  display: inline-flex;
  align-items: stretch; /* important */
  position: relative;
}
.aim-yearly-group .aim-input {
  border-right: none; /* merge with button */
  border-radius: 6px 0 0 6px;
}
.aim-yearly-group .aim-btn {
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}
.aim-yearly-group .aim-btn:hover {
  border-left: solid 1px #6366f1;
}

.aim-yr-pct-toggle {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 22px;
  text-align: center;
}
.aim-yr-pct-toggle.active {
  background: var(--aim-brand);
  border-color: var(--aim-brand);
  color: #fff;
}

.aim-yr-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  font-size: 0.72rem;
  color: var(--aim-text-light);
  white-space: nowrap;
  margin-top: 2px;
}

/* Form thirds layout */
.aim-form-third {
  width: calc(33.333% - 12px);
}

/* Extra-small button variant */
.aim-btn-xs {
  font-size: 0.75rem !important;
  padding: 2px 8px !important;
  height: auto !important;
}

/* Row inactive styling */
.aim-row-inactive {
  opacity: 0.5;
}

/* ── About ────────────────────────────────────────────────── */
.aim-about {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 20px;
}
.aim-about h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}
.aim-about p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--aim-text-dim);
  margin-bottom: 16px;
}
.aim-about strong {
  color: var(--aim-text);
}
.aim-about h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 52px 0 12px;
  color: #fff;
}

.aim-about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.aim-about-value {
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s;
}
.aim-about-value:hover {
  border-color: rgba(99, 102, 241, 0.2);
}
.aim-about-value h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--aim-text);
}
.aim-about-value p {
  font-size: 0.88rem;
  margin: 0;
}
.aim-about-value i {
  color: var(--aim-brand);
  margin-right: 6px;
}

/* ── Legal (Terms / Privacy) ─────────────────────────────── */
.aim-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 20px;
}
.aim-legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.aim-legal .updated {
  font-size: 0.85rem;
  color: var(--aim-text-light);
  margin-bottom: 32px;
}
.aim-legal .aim-legal-updated {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.aim-legal .aim-legal-updated .updated {
  margin-bottom: 0;
}
.aim-legal .aim-policy-version-wrap {
  position: relative;
}
.aim-legal .aim-policy-version-btn {
  background: transparent;
  border: 1px solid var(--aim-border);
  border-radius: 6px;
  color: var(--aim-text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  transition: color 0.15s, border-color 0.15s;
}
.aim-legal .aim-policy-version-btn:hover {
  color: var(--aim-text);
  border-color: var(--aim-text-dim);
}
.aim-legal .aim-policy-version-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 220px;
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 10px;
  padding: 6px 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.aim-legal .aim-policy-version-dropdown.open {
  display: block;
}
.aim-legal .aim-policy-version-header {
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aim-text-dim);
}
.aim-legal .aim-policy-version-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--aim-text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.aim-legal .aim-policy-version-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--aim-text);
}
.aim-legal .aim-policy-version-item.current {
  color: var(--aim-text);
  font-weight: 500;
}
.aim-legal .aim-policy-version-item.selected {
  background: rgba(99, 102, 241, 0.12);
  color: var(--aim-text);
}
.aim-legal .aim-policy-version-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--aim-accent-hover);
}
.aim-legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: #fff;
}
.aim-legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: #fff;
}
.aim-legal p,
.aim-legal li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--aim-text-dim);
}
.aim-legal ul,
.aim-legal ol {
  padding-left: 20px;
}
.aim-legal strong {
  color: var(--aim-text);
}
.aim-legal .aim-superseded-alert {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--aim-text);
}
.aim-legal .aim-superseded-alert-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.aim-legal .aim-superseded-alert-inner i {
  color: #eab308;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.aim-legal .aim-superseded-alert-inner span {
  flex: 1 1 100%;
}
.aim-legal .aim-btn-return-current {
  background: transparent;
  border: 1px solid var(--aim-border);
  border-radius: 6px;
  color: var(--aim-text);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.aim-legal .aim-btn-return-current:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--aim-text-dim);
}
.aim-legal .aim-split-toggle-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--aim-text-dim);
  cursor: pointer;
  margin-left: auto;
}
.aim-legal .aim-split-toggle-label input {
  accent-color: var(--aim-accent);
}
.aim-legal .aim-policy-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.aim-legal .aim-policy-col {
  min-width: 0;
}
.aim-legal .aim-policy-col-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--aim-border);
}
.aim-legal .aim-policy-changes-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--aim-border);
  border-radius: 10px;
  padding: 16px;
}
.aim-legal .aim-policy-change-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--aim-border);
}
.aim-legal .aim-policy-change-item:last-child {
  border-bottom: none;
}
.aim-legal .aim-policy-change-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--aim-text);
  margin-bottom: 4px;
}
.aim-legal .aim-policy-change-summary {
  font-size: 0.85rem;
  color: var(--aim-text-dim);
  line-height: 1.6;
}
.aim-legal .aim-policy-no-changes {
  font-size: 0.85rem;
  color: var(--aim-text-dim);
  font-style: italic;
}
.aim-legal .aim-policy-version-loading {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--aim-text-dim);
}
@media (max-width: 900px) {
  .aim-legal .aim-policy-split {
    grid-template-columns: 1fr 1fr;
  }
  .aim-legal .aim-policy-changes-col {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .aim-legal .aim-policy-split {
    grid-template-columns: 1fr;
  }
  .aim-legal .aim-superseded-alert-inner span {
    flex: 1 1 auto;
  }
  .aim-legal .aim-superseded-alert-inner .aim-split-toggle-label {
    margin-left: 0;
    flex: 1 1 100%;
  }
}

/* ── Auth pages ───────────────────────────────────────────── */
.aim-auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px - 200px);
  padding: 40px 20px;
}

.aim-auth-card {
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
}
.aim-auth-card--wide {
  max-width: 740px;
}

.aim-auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.aim-auth-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.aim-auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px 0;
}

.aim-auth-form {
  margin-top: 0;
}

.aim-auth-row {
  display: flex;
  gap: 0;
}
.aim-auth-row.aim-auth-row--reversed .aim-auth-col-form {
  padding-right: 0;
  padding-left: 28px;
}

.aim-auth-col-form {
  flex: 1;
  min-width: 0;
  padding-right: 28px;
  display: flex;
  flex-direction: column;
}

.aim-auth-col-side {
  flex: 1 1 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  position: relative;
  overflow: hidden;
}
.aim-auth-col-side > i {
  position: absolute;
  color: var(--aim-accent);
  opacity: 0.04;
  font-size: 20rem;
  pointer-events: none;
  line-height: 1;
}
.aim-auth-col-side > div {
  position: relative;
  margin: 0 40px;
  text-align: center;
}

.aim-auth-divider-vertical {
  width: 1px;
  align-self: stretch;
  background: var(--aim-border);
  flex-shrink: 0;
}

.aim-auth-side-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
}

.aim-auth-side-text {
  font-size: 0.85rem;
  color: var(--aim-text-dim);
  margin: 0 0 14px 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .aim-auth-row {
    flex-direction: column;
  }
  .aim-auth-col-form {
    padding-right: 0;
    padding-left: 0;
  }
  .aim-auth-col-side {
    flex: none;
    padding: 20px 0 0;
    align-items: flex-start;
  }
  .aim-auth-divider-vertical {
    width: 100%;
    height: 1px;
    margin: 20px 0;
  }
}
.aim-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--aim-text-dim);
  font-size: 0.8rem;
}
.aim-auth-divider::before, .aim-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--aim-border);
}

.aim-btn-google {
  background: var(--aim-dark-card, #1c2137);
  color: var(--aim-text, #e0e0e8);
  border: 1px solid var(--aim-border, #2a2d45);
  font-weight: 600;
}
.aim-btn-google:hover {
  background: var(--aim-border, #2a2d45);
  color: var(--aim-text, #e0e0e8);
}

.aim-auth-link {
  color: var(--aim-brand-hover);
  text-decoration: none;
}
.aim-auth-link:hover {
  text-decoration: underline;
}

.aim-auth-footer-text {
  text-align: center;
  font-size: 0.78rem;
  color: var(--aim-text, #e0e0e8);
  margin-top: 16px;
}
.aim-auth-footer-text .aim-auth-link {
  font-size: inherit;
}

/* ── Settings / Organization pages ───────────────────────── */
.aim-settings-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.aim-workspace-pin-page {
  color: var(--aim-text, #e0e0e8);
  max-width: 600px;
}

.aim-workspace-pin-dialog {
  text-align: center;
}
.aim-workspace-pin-dialog .aim-input {
  text-align: center;
}

.aim-workspace-privacy {
  color: var(--aim-text, #e0e0e8);
  margin-top: 16px;
}

.aim-workspace-pin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.aim-settings-header {
  margin-bottom: 32px;
}

.aim-settings-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.aim-settings-card {
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}
.aim-settings-card--wide {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.aim-settings-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px 0;
}

.aim-settings-card-heading {
  margin-bottom: 20px;
}

.aim-settings-card-desc {
  font-size: 0.88rem;
  color: var(--aim-text-dim);
  margin: 4px 0 0 0;
}

.aim-settings-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aim-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px 0;
}

.aim-settings-tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--aim-border);
  margin-bottom: 24px;
}

.aim-settings-tab-btn {
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: var(--aim-text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.aim-settings-tab-btn:hover {
  color: var(--aim-text);
}
.aim-settings-tab-btn.active {
  color: var(--aim-brand-hover);
  border-bottom-color: var(--aim-brand);
}

.aim-settings-tab-pane {
  display: none;
}
.aim-settings-tab-pane.active {
  display: block;
}

.aim-avatar-preview-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--aim-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 3px solid var(--aim-border);
}
.aim-avatar-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aim-avatar-lg {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.aim-avatar-center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.aim-avatar-upload-wrap:hover .aim-avatar-upload-overlay {
  opacity: 1;
}
.aim-avatar-upload-wrap:hover {
  border-color: var(--aim-brand, #6366f1) !important;
}

.aim-avatar-upload-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.2rem;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

/* ── Home pages responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .aim-hero h1 {
    font-size: 2rem;
  }
  .aim-value-grid {
    grid-template-columns: 1fr;
  }
  .aim-wavy-edge {
    height: 30px;
  }
  .aim-screenshots-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .ai-funnel {
    display: none;
  }
  .aim-cta {
    margin-top: 80px;
  }
  .aim-stats-strip {
    flex-direction: column;
  }
  .aim-stat {
    border-top: 1px solid var(--aim-border);
    padding: 16px 0;
  }
  .aim-stat:first-child, .aim-stat:nth-child(3) {
    border-top: none;
  }
  .aim-stat:nth-child(5) {
    border-left: none;
  }
  .aim-testimonial-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  .aim-logo-strip-row {
    gap: 20px;
  }
  .aim-cta-wrap {
    padding: 60px 24px 40px;
  }
  .aim-how-steps {
    grid-template-columns: 1fr 1fr;
  }
  .aim-how-step:not(:first-child)::before,
  .aim-how-step:not(:last-child)::after {
    content: none;
  }
  .aim-contact-channels {
    grid-template-columns: 1fr;
  }
  .aim-pricing-grid {
    flex-direction: column;
  }
  .aim-about-values {
    grid-template-columns: 1fr;
  }
  .aim-video-shell {
    grid-template-columns: 1fr;
  }
  .aim-video-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
  .aim-video-grid {
    grid-template-columns: 1fr;
  }
  .aim-checkout-pane {
    margin: 24px 12px;
    padding: 20px;
    border-radius: 12px;
  }
  .aim-checkout-header {
    margin-bottom: 20px;
  }
  h2.aim-checkout-title {
    font-size: 1.2rem;
  }
  .aim-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .aim-cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .aim-cookie-actions {
    justify-content: flex-end;
  }
  .aim-orgs-side-tabs {
    width: 180px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   Organizations — Card-based layout with side tabs
   ═══════════════════════════════════════════════════════════════ */
.aim-settings-page--orgs {
  max-width: 1060px;
}

.aim-orgs-card {
  min-height: 420px;
  max-height: calc(100vh - 200px);
}

#listMemberOrgs {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.aim-orgs-side-tabs {
  width: 220px;
  padding: 4px 0;
  position: relative;
  left: 2px;
}

.aim-orgs-category {
  padding: 4px 0 2px;
}

.aim-orgs-category-header {
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aim-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aim-orgs-category-header i {
  font-style: normal;
  font-weight: 500;
}

.aim-filter-full-width {
  flex: 1 1 auto;
  border-radius: var(--aim-radius-sm);
}

.aim-orgs-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border-radius: 8px 0 0 8px;
  margin: 1px 0 1px 4px;
  position: relative;
  border: 1px solid transparent;
  border-right: none;
  background: rgba(255, 255, 255, 0.04);
  left: -6px;
}
.aim-orgs-list-item:hover {
  background: rgba(255, 255, 255, 0.08);
  left: -3px;
}
.aim-orgs-list-item.active {
  background: var(--aim-card-bg);
  border-color: var(--aim-border);
  z-index: 2;
  margin-right: -1px;
  padding-right: 15px;
  left: 0;
}

.aim-orgs-item-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--aim-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aim-orgs-item-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  white-space: nowrap;
}

.aim-orgs-logo-thumb {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--aim-border);
  border: 1px solid var(--aim-border);
}
.aim-orgs-logo-thumb.aim-orgs-logo-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--aim-text-dim);
  background: var(--aim-dark-card-hover, #232942);
}

.aim-orgs-personal-item .aim-orgs-logo-thumb.aim-orgs-logo-initial {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
}

.aim-projects-table .aim-project-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.aim-projects-table .aim-project-row.selected {
  background: rgba(99, 102, 241, 0.12);
}

.aim-orgs-tab-create {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin: 4px 0 4px 4px;
  font-size: 0.85rem;
  color: var(--aim-text-dim);
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  border: 1px dashed var(--aim-border-light);
  border-right: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  position: relative;
}
.aim-orgs-tab-create:hover {
  color: var(--aim-text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--aim-border);
}
.aim-orgs-tab-create.active {
  color: var(--aim-brand);
  background: var(--aim-card-bg);
  border-color: var(--aim-border);
  border-style: solid;
  margin-right: -1px;
  padding-right: 15px;
  z-index: 2;
  left: 2px;
}

.aim-orgs-content {
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 0 12px 12px 0;
  z-index: 1;
}

.aim-orgs-loading {
  padding: 40px;
  color: var(--aim-text-dim);
  font-size: 0.9rem;
}

.aim-orgs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--aim-text-dim);
  gap: 12px;
  opacity: 0.5;
  min-height: 300px;
}
.aim-orgs-empty p {
  margin: 0;
  font-size: 0.9rem;
}

.aim-orgs-detail-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.aim-orgs-tabs {
  flex-shrink: 0;
  padding: 0 28px;
  border-bottom: none;
  background: rgba(18, 22, 38, 0.4);
}

.aim-org-detail-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 28px 0;
}
.aim-org-detail-hero .aim-org-logo-col {
  flex-shrink: 0;
}
.aim-org-detail-hero .aim-org-logo-col .aim-org-logo-wrap {
  margin: 4px 0 0;
}
.aim-org-detail-hero #orgViewFields {
  flex: 1;
  padding: 0 0 20px;
}

.aim-org-logo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 24px 28px 16px;
  border-radius: 12px;
  border: 2px dashed var(--aim-border);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.aim-org-logo-wrap.has-logo {
  border-style: solid;
  border-color: transparent;
}
.aim-org-logo-wrap:hover .aim-org-logo-overlay {
  opacity: 1;
}
.aim-org-logo-wrap:hover {
  border-color: var(--aim-brand, #6366f1);
}

.aim-org-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aim-org-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--aim-text-dim);
  background: var(--aim-dark-card-hover, #232942);
}

.aim-org-logo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.15s;
}

#orgViewFields {
  padding: 0 28px 20px;
}

.aim-orgs-field-val {
  font-size: 0.9rem;
  color: var(--aim-text);
  line-height: 1.5;
}

#otab-members {
  padding: 20px 28px;
}

.aim-orgs-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aim-text-dim);
  margin: 24px 0 10px;
}
.aim-orgs-section-title:first-child {
  margin-top: 0;
}

.aim-orgs-section-deact {
  color: #f87171;
  margin-top: 36px;
}

.aim-orgs-members-table {
  width: 100%;
  margin-bottom: 0;
}
.aim-orgs-members-table td,
.aim-orgs-members-table th {
  vertical-align: middle;
}
.aim-orgs-members-table td:last-child {
  text-align: right;
}

.aim-orgs-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aim-orgs-avatar.aim-orgs-avatar-initial {
  background: var(--aim-dark-card-hover, #232942);
  color: var(--aim-text-dim);
  font-weight: 700;
  font-size: 0.85rem;
}
.aim-orgs-avatar.aim-orgs-avatar-invite {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-size: 0.9rem;
}

.aim-orgs-role-sel {
  font-size: 0.82rem;
  padding: 3px 8px;
  min-width: 90px;
}

.aim-orgs-invite-bar {
  margin: 20px 0 0;
}

.aim-orgs-invite-row {
  display: flex;
  gap: 8px;
  margin-right: 10px;
  align-items: center;
  justify-content: right;
  border-top: 2px solid var(--aim-border, #2a2d45);
  padding-top: 1rem;
}

.aim-orgs-invite-email {
  flex: 1;
  max-width: 320px;
  min-width: 320px;
}

.aim-orgs-invite-error {
  font-size: 0.82rem;
  color: #ef4444;
  margin-top: 5px;
}

.aim-orgs-empty-row {
  text-align: center;
  padding: 20px !important;
  color: var(--aim-text-dim);
  font-size: 0.88rem;
}

.aim-orgs-create-form {
  padding: 28px 32px;
  max-width: 480px;
}

.aim-orgs-create-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--aim-text);
  margin: 0 0 24px;
}

.aim-orgs-link-descr {
  font-size: 0.82rem;
  color: var(--aim-text-dim);
  margin: 0 0 14px;
}

.aim-orgs-link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aim-orgs-link-row {
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
}
.aim-orgs-link-row:hover {
  background: var(--aim-hover-bkg);
}
.aim-orgs-link-row.linked {
  background: color-mix(in srgb, var(--aim-primary) 10%, transparent);
}
.aim-orgs-link-row.linked .aim-orgs-link-name {
  font-weight: 600;
}

.aim-orgs-link-chk {
  /*    width: 15px;
  height: 15px;
  accent-color: var(--aim-primary);
  flex-shrink: 0;*/
}

.aim-orgs-link-name {
  font-size: 0.9rem;
  color: var(--aim-text);
}

.aim-orgs-link-table .aim-orgs-link-row {
  cursor: pointer;
}
.aim-orgs-link-table .aim-orgs-link-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.aim-orgs-link-table .aim-orgs-link-row.linked .aim-orgs-link-name {
  font-weight: 600;
}

.aim-text-muted {
  color: var(--aim-text-dim);
  font-size: 0.8rem;
}

.aim-text-warn {
  color: #f87171;
  font-size: 0.82rem;
  overflow: hidden;
}

@media (max-width: 480px) {
  .aim-orgs-card {
    flex-direction: column;
  }
  .aim-orgs-side-tabs {
    width: 100%;
    max-height: 200px;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
    gap: 4px;
  }
  .aim-orgs-content {
    border-radius: 0 0 12px 12px;
  }
  .aim-orgs-list-item {
    border-radius: 8px 8px 0 0;
    margin: 0;
    border: 1px solid transparent;
    border-bottom: none;
  }
  .aim-orgs-list-item.active {
    margin-bottom: -1px;
    padding-bottom: 9px;
  }
  .aim-orgs-tab-create {
    border-radius: 8px 8px 0 0;
    margin: 0;
    border-bottom: none;
  }
  .aim-orgs-tab-create.active {
    margin-bottom: -1px;
    padding-bottom: 11px;
  }
  .aim-settings-page--orgs #otab-aicost .aim-aicost-breakdown {
    grid-template-columns: 1fr;
  }
  .aim-settings-page--orgs #otab-aicost .aim-aicost-breakdown > *:nth-child(3) {
    grid-column: auto;
  }
}
#orgTabContent {
  padding-top: 0;
  flex: 1;
  min-height: 0;
}
#orgTabContent .aim-detail-tab-pane {
  padding: 20px 28px;
  max-height: 100%;
  overflow-y: auto;
}
#orgTabContent .aim-detail-tab-pane::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
#orgTabContent .aim-detail-tab-pane::-webkit-scrollbar-track {
  background: transparent;
}
#orgTabContent .aim-detail-tab-pane::-webkit-scrollbar-thumb {
  background: var(--aim-border-light);
  border-radius: 4px;
}
#orgTabContent .aim-detail-tab-pane::-webkit-scrollbar-thumb:hover {
  background: var(--aim-text-dim);
}
#orgTabContent .aim-detail-tab-pane {
  scrollbar-width: thin;
  scrollbar-color: var(--aim-border-light) transparent;
}

#otab-aicost .aim-model-stats-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "controls" "total" "models" "monthly";
}
#otab-aicost .aim-model-stats-controls {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 16px;
}
#otab-aicost .aim-model-selected::after {
  display: none;
}

.aim-settings-page--orgs #otab-aicost .aim-aicost-breakdown {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.aim-settings-page--orgs #otab-aicost .aim-aicost-breakdown > *:nth-child(3) {
  grid-column: 1/-1;
}

.aim-sub-none {
  margin: 1rem;
  color: #8b8fa3;
  font-size: 0.8rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.aim-sub-block {
  color: var(--aim-text);
  margin-bottom: 1rem;
}

.aim-sub-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--aim-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.aim-sub-tier {
  font-size: 1rem;
  font-weight: 600;
  color: var(--aim-text);
  margin-bottom: 0.25rem;
}

.aim-sub-features {
  margin: 0.25rem 0 0.5rem 1rem;
  padding: 0;
  list-style: disc;
  font-size: 0.85rem;
  color: var(--aim-text);
}
.aim-sub-features li {
  margin-bottom: 0.15rem;
}
.aim-sub-features .aim-feature-value {
  color: var(--aim-accent);
  font-size: 0.8rem;
}

.aim-sub-dates {
  font-size: 0.8rem;
  color: var(--aim-text-dim);
}

.aim-sub-no-renew {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--aim-text);
  font-size: 0.85rem;
}
.aim-sub-no-renew #btnConfirmNoRenew {
  margin-left: auto;
}

.aim-sub-upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.aim-sub-upgrade p {
  margin: 0;
}

.aim-personal-selected {
  cursor: default;
}

.aim-renewal-section {
  margin-top: 0.5rem;
}
.aim-renewal-section .aim-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.aim-renewal-values {
  margin: 0.25rem 0 0.75rem 1.5rem;
}

.aim-renewal-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--aim-text);
}
.aim-renewal-feature .aim-renewal-count-inline {
  margin-left: auto;
}
.aim-renewal-feature .aim-renewal-min {
  color: var(--aim-text-dim);
  font-size: 0.78rem;
  white-space: nowrap;
}
.aim-renewal-feature .aim-renewal-count-wrap.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.aim-renewal-note {
  margin: 0.5rem 0;
  font-size: 0.78rem;
  color: var(--aim-text-dim);
  cursor: help;
}

.aim-renewal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.aim-seat-options {
  margin: 12px 0 0;
  padding-left: 22px;
  max-width: 100%;
}
.aim-seat-options li {
  margin: 4px 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.aim-orgs-role-note {
  margin: 8px 0;
  padding: 8px 12px;
  border: 1px solid var(--aim-border);
  border-radius: 6px;
  color: var(--aim-text-dim);
  font-size: 0.85rem;
}

.aim-admin-contact-list {
  margin: 8px 0 8px 1.2rem;
  padding: 0;
  list-style: disc;
  font-size: 0.85rem;
}
.aim-admin-contact-list li {
  margin-bottom: 2px;
}

.aim-link-sm {
  float: right;
  font-size: 0.8rem;
  color: var(--aim-accent);
}

#expiredSubNotice {
  text-align: center;
  margin-top: -2.5rem;
}
#expiredSubNotice .aim-alert {
  display: inline-block;
  text-align: left;
  margin-bottom: 2rem;
}
#expiredSubNotice .aim-alert .aim-alert-icon {
  float: left;
  position: relative;
  top: 3px;
  font-size: 1.3rem;
  margin-right: 0.5rem;
}

.aim-text-ok {
  color: var(--aim-text-ok, #22c55e);
}

.aim-affiliate-page {
  padding: 24px clamp(16px, 4vw, 48px) 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.aim-affiliate-page .aim-affiliate-header {
  margin-bottom: 24px;
}
.aim-affiliate-page .aim-affiliate-header h1 {
  color: var(--aim-text, #e2e8f0);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.aim-affiliate-page .aim-affiliate-header .subtitle {
  color: var(--aim-text-dim, #9aa4bf);
  font-size: 0.95rem;
  margin: 0;
}
.aim-affiliate-page .aim-detail-tabs {
  background: color-mix(in srgb, var(--aim-panel-2, #15182d) 85%, #000 15%);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 14px;
}
.aim-affiliate-page .aim-affiliate-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  /*        #btnAddDiscountCode {
      margin-left: auto;
  }*/
}
.aim-affiliate-page #affiliateFirstCode {
  margin-left: auto;
}
.aim-affiliate-page #showExpiredCodesLabel {
  margin-right: auto;
}
.aim-affiliate-page .aim-request-payment-actions, .aim-affiliate-page .aim-affiliate-detail-actions, .aim-affiliate-page .aim-affiliate-payout-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  gap: 6px;
}
.aim-affiliate-page .aim-affiliate-detail-actions.is-hidden,
.aim-affiliate-page #showExpiredCodesLabel.is-hidden {
  display: none;
}
.aim-affiliate-page .aim-aff-ledger-ref {
  max-width: 14rem;
  overflow-wrap: anywhere;
}
.aim-affiliate-page .aim-affiliate-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.aim-affiliate-page .aim-affiliate-stat-card, .aim-affiliate-page .aim-terms-body {
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 10px;
  background: var(--aim-panel, #1a1f35);
  padding: 14px 16px;
}
.aim-affiliate-page .aim-affiliate-first-code {
  color: var(--aim-text-bright, #ffffff);
  font-weight: 700;
}
.aim-affiliate-page .aim-affiliate-stat-label {
  color: var(--aim-text-dim, #9aa4bf);
  font-size: 0.78rem;
  margin-bottom: 6px;
}
.aim-affiliate-page .aim-affiliate-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--aim-text, #eef3ff);
}
.aim-affiliate-page .aim-affiliate-stat-note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--aim-text-dim, #9aa4bf);
}
.aim-affiliate-page {
  color: var(--aim-text, #e0e0e8);
}
.aim-affiliate-page .aim-checkbox-label {
  color: var(--aim-text, #e0e0e8);
}
.aim-affiliate-page .aim-terms-body {
  color: var(--aim-text, #e0e0e8);
}
.aim-affiliate-page .aim-terms-body p,
.aim-affiliate-page .aim-terms-body li,
.aim-affiliate-page .aim-terms-body ul,
.aim-affiliate-page .aim-terms-body ol {
  color: var(--aim-text, #e0e0e8);
}
.aim-affiliate-page .aim-terms-body h1,
.aim-affiliate-page .aim-terms-body h2,
.aim-affiliate-page .aim-terms-body h3,
.aim-affiliate-page .aim-terms-body h4,
.aim-affiliate-page .aim-terms-body h5,
.aim-affiliate-page .aim-terms-body h6 {
  color: var(--aim-text-bright, #ffffff);
}
.aim-affiliate-page .aim-terms-body a {
  color: var(--aim-accent-hover, #818cf8);
}
.aim-affiliate-page .aim-bullet-list {
  list-style: disc;
  padding-left: 20px;
}
.aim-affiliate-page .aim-bullet-list li {
  color: var(--aim-text, #e0e0e8);
}
.aim-affiliate-page #termsContent {
  color: var(--aim-text, #e0e0e8);
}
.aim-affiliate-page #termsContent p,
.aim-affiliate-page #termsContent li,
.aim-affiliate-page #termsContent ul,
.aim-affiliate-page #termsContent ol {
  color: inherit;
}
.aim-affiliate-page #termsContent h1,
.aim-affiliate-page #termsContent h2,
.aim-affiliate-page #termsContent h3,
.aim-affiliate-page #termsContent h4,
.aim-affiliate-page #termsContent h5,
.aim-affiliate-page #termsContent h6 {
  color: var(--aim-text-bright, #ffffff);
}
.aim-affiliate-page #termsContent a {
  color: var(--aim-accent-hover, #818cf8);
}
.aim-affiliate-page .aim-aff-ledger-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.aim-affiliate-page .aim-aff-ledger-split.has-detail {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}
.aim-affiliate-page .aim-aff-ledger-list {
  min-width: 0;
}
.aim-affiliate-page .aim-aff-ledger-row {
  cursor: pointer;
}
.aim-affiliate-page .aim-aff-ledger-row.active {
  background: color-mix(in srgb, var(--aim-accent, #6366f1) 16%, transparent);
}
.aim-affiliate-page .aim-aff-ledger-detail {
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 10px;
  background: color-mix(in srgb, var(--aim-panel-2, #15182d) 90%, #000 10%);
  padding: 12px;
  min-height: 160px;
}
.aim-affiliate-page .aim-aff-ledger-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.aim-affiliate-page .aim-aff-ledger-detail-head h3 {
  margin: 0;
  font-size: 1rem;
}
.aim-affiliate-page .aim-aff-ledger-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.aim-affiliate-page .aim-aff-ledger-detail-grid span {
  display: block;
  font-size: 0.75rem;
  color: var(--aim-text-dim, #9aa4bf);
}
.aim-affiliate-page .aim-aff-ledger-detail-grid strong {
  display: block;
  font-size: 0.9rem;
  color: var(--aim-text, #e0e0e8);
  margin-top: 2px;
}
.aim-affiliate-page .aim-aff-ledger-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.aim-affiliate-page .aim-aff-ledger-items li {
  border-bottom: 1px solid var(--aim-border, #2a2d45);
  padding: 7px 0;
}
.aim-affiliate-page .aim-aff-ledger-items li:last-child {
  border-bottom: 0;
}
.aim-affiliate-page .aim-aff-ledger-item-name {
  display: block;
  color: var(--aim-text, #e0e0e8);
}
.aim-affiliate-page .aim-aff-ledger-item-meta {
  display: block;
  margin-top: 2px;
  color: var(--aim-text-dim, #9aa4bf);
  font-size: 0.78rem;
}
.aim-affiliate-page .aim-aff-ledger-item-note {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-style: italic;
}
.aim-affiliate-page .aim-aff-invoice-note {
  margin: 8px 0;
  padding: 8px 12px;
  background: var(--aim-bg-hover, rgba(255, 255, 255, 0.03));
  border-left: 3px solid var(--aim-accent, #6366f1);
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--aim-text, #e0e0e8);
}
.aim-affiliate-page .aim-aff-child-invoice {
  margin: 8px 0;
  padding: 10px 12px;
  background: var(--aim-bg-hover, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 6px;
}
.aim-affiliate-page .aim-aff-child-invoice-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.aim-affiliate-page .aim-aff-child-invoice-head .aim-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--aim-accent, #6366f1);
  color: #fff;
}
.aim-affiliate-page .aim-aff-child-invoice-grid {
  margin-bottom: 0;
}
.aim-affiliate-page .aim-invoice-detail-link {
  color: var(--aim-accent, #6366f1);
  text-decoration: underline;
  cursor: pointer;
}
.aim-affiliate-page .aim-invoice-detail-link:hover {
  color: var(--aim-accent-hover, #818cf8);
}
@media (max-width: 900px) {
  .aim-affiliate-page .aim-aff-ledger-split.has-detail {
    grid-template-columns: 1fr;
  }
}
.aim-affiliate-page .aim-dialog-body {
  color: var(--aim-text, #e0e0e8);
}
.aim-affiliate-page {
  /* ═══ Earnings calculator ═══════════════════════════════════ */
}
.aim-affiliate-page .aim-calc-cols-hidden th:nth-child(4), .aim-affiliate-page .aim-calc-cols-hidden td:nth-child(4),
.aim-affiliate-page .aim-calc-cols-hidden th:nth-child(5), .aim-affiliate-page .aim-calc-cols-hidden td:nth-child(5),
.aim-affiliate-page .aim-calc-cols-hidden th:nth-child(6), .aim-affiliate-page .aim-calc-cols-hidden td:nth-child(6),
.aim-affiliate-page .aim-calc-cols-hidden th:nth-child(8), .aim-affiliate-page .aim-calc-cols-hidden td:nth-child(8) {
  display: none;
}
.aim-affiliate-page .aim-calc-header {
  padding: 16px;
  border-bottom: 1px solid var(--aim-border, #333);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.aim-affiliate-page .aim-calc-code-lg {
  font-weight: 700;
}
.aim-affiliate-page .aim-calc-code-lg code {
  background: var(--aim-bg-alt, #1e1e2e);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 1.5rem;
}
.aim-affiliate-page .aim-calc-discount-lg {
  font-size: 1rem;
  color: var(--aim-text-dim, #888);
}
.aim-affiliate-page .aim-calc-tier-tabs {
  display: flex;
  gap: 0;
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--aim-border, #333);
}
.aim-affiliate-page .aim-calc-tier-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--aim-text-dim, #888);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.aim-affiliate-page .aim-calc-tier-tab:hover {
  color: var(--aim-text, #e0e0e8);
}
.aim-affiliate-page .aim-calc-tier-tab.active {
  color: var(--aim-primary, #6366f1);
  border-bottom-color: var(--aim-primary, #6366f1);
}
.aim-affiliate-page .aim-calc-period-tabs {
  display: flex;
  gap: 0;
  padding: 12px 16px 0;
}
.aim-affiliate-page .aim-calc-period-tab {
  padding: 6px 14px;
  background: var(--aim-bg-alt, #1e1e2e);
  border: 1px solid var(--aim-border, #333);
  color: var(--aim-text-dim, #888);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.aim-affiliate-page .aim-calc-period-tab:first-child {
  border-radius: 6px 0 0 6px;
}
.aim-affiliate-page .aim-calc-period-tab:last-child {
  border-radius: 0 6px 6px 0;
  border-left: none;
}
.aim-affiliate-page .aim-calc-period-tab.active {
  background: var(--aim-primary, #6366f1);
  border-color: var(--aim-primary, #6366f1);
  color: #fff;
}
.aim-affiliate-page .aim-calc-seat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 0;
}
.aim-affiliate-page .aim-calc-per-seat-label {
  font-size: 0.82rem;
  color: var(--aim-text-dim, #888);
  font-style: italic;
}
.aim-affiliate-page .aim-calc-seats-spinner {
  display: inline-flex;
}
.aim-affiliate-page .aim-calc-seats-input {
  width: 50px;
  text-align: center;
}
.aim-affiliate-page .aim-calc-result {
  padding: 16px;
}
.aim-affiliate-page .aim-calc-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}
.aim-affiliate-page .aim-calc-table td {
  padding: 4px 0;
}
.aim-affiliate-page .aim-calc-table .aim-calc-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.aim-affiliate-page .aim-calc-table tr.aim-calc-sep td {
  padding: 6px 0;
  border-bottom: 1px solid var(--aim-border, #333);
}
.aim-affiliate-page #codesList tbody tr.active {
  background: color-mix(in srgb, var(--aim-accent, #6366f1) 16%, transparent);
}

.aim-invoice-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 32px 16px;
}
.aim-invoice-overlay-paper {
  background: #fff;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  max-width: 820px;
  width: 100%;
  padding: 40px 48px;
  position: relative;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.aim-invoice-overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
}
.aim-invoice-overlay-close:hover {
  background: #f0f0f0;
}
.aim-invoice-overlay-header {
  border-bottom: 2px solid #222;
  padding-bottom: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.aim-invoice-overlay-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #111;
}
.aim-invoice-overlay-header .aim-invoice-overlay-meta {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.aim-invoice-overlay-section {
  margin-bottom: 24px;
}
.aim-invoice-overlay-section h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}
.aim-invoice-overlay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.aim-invoice-overlay-grid .aim-inv-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.aim-invoice-overlay-grid .aim-inv-value {
  font-weight: 500;
  color: #222;
}
.aim-invoice-overlay-items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.aim-invoice-overlay-items th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #888;
  padding: 8px 12px;
  border-bottom: 2px solid #ddd;
}
.aim-invoice-overlay-items td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.aim-invoice-overlay-items .aim-inv-item-name {
  font-weight: 500;
}
.aim-invoice-overlay-items .aim-inv-item-note {
  font-size: 12px;
  color: #888;
  font-style: italic;
  display: block;
  margin-top: 2px;
}
.aim-invoice-overlay-items .aim-inv-qty,
.aim-invoice-overlay-items .aim-inv-price,
.aim-invoice-overlay-items .aim-inv-total {
  text-align: right;
  white-space: nowrap;
}
.aim-invoice-overlay-items tr.aim-inv-discount-row td {
  color: #777;
  background: #fafafa;
  font-style: italic;
}
.aim-invoice-overlay-totals {
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  border-collapse: collapse;
}
.aim-invoice-overlay-totals td {
  padding: 6px 12px;
}
.aim-invoice-overlay-totals .aim-inv-totals-label {
  text-align: right;
  color: #666;
}
.aim-invoice-overlay-totals .aim-inv-totals-value {
  text-align: right;
  font-weight: 500;
}
.aim-invoice-overlay-totals tr.aim-inv-totals-grand td {
  font-weight: 700;
  font-size: 16px;
  border-top: 2px solid #222;
  padding-top: 10px;
}
.aim-invoice-overlay-child {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.aim-invoice-overlay-child .aim-inv-child-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.aim-invoice-overlay-child .aim-inv-child-head strong {
  font-size: 14px;
}
.aim-invoice-overlay-child .aim-inv-child-head .aim-badge {
  background: var(--aim-accent, #6366f1);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.aim-invoice-overlay-paddle-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aim-accent, #6366f1);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
}
.aim-invoice-overlay-paddle-link:hover {
  text-decoration: underline;
}
.aim-invoice-overlay-note {
  background: #fff8e1;
  border-left: 3px solid #f9a825;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #333;
  border-radius: 0 4px 4px 0;
}

.ElementsApp,
.ElementsApp .InputElement {
  font-size: 16px;
  color: white;
  font-family: system-ui, -apple-system, sans-serif;
}

#entityBar {
  color: #e0e0e8;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  margin-bottom: 3rem;
}
#entityBar label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* optional: adds spacing between "Entity:" and the select */
  white-space: nowrap;
}

.aim-secured-by {
  float: right;
  font-weight: 100;
  opacity: 0.5;
  position: relative;
  top: 6px;
  font-size: 0.8rem;
}

#btnAffGenCode {
  color: #6366f1;
  font-size: 0.8rem;
}

/* ── Video tutorials ─────────────────────────────────────── */
.aim-video-tutorials {
  max-width: 1220px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.aim-video-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.aim-video-sidebar {
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 12px;
  padding: 16px;
}

.aim-video-sidebar-header h2 {
  font-size: 1.1rem;
  color: var(--aim-text);
  margin: 0;
}
.aim-video-sidebar-header p {
  margin: 4px 0 14px;
  color: var(--aim-text-dim);
  font-size: 0.84rem;
}

.aim-video-section-item {
  margin-bottom: 16px;
}
.aim-video-section-item ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.aim-video-section-item li {
  margin: 0;
}
.aim-video-section-item a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--aim-text-dim);
  font-size: 0.86rem;
}
.aim-video-section-item a:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--aim-text);
}
.aim-video-section-item a.active {
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
}

.aim-video-section-title {
  color: var(--aim-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.aim-video-section-description {
  color: var(--aim-text-dim);
  font-size: 0.8rem;
  margin-top: 2px;
}

.aim-video-main {
  background: var(--aim-card-bg);
  border: 1px solid var(--aim-border);
  border-radius: 12px;
  padding: 20px;
}

.aim-video-main-header h1 {
  margin: 0;
  font-size: 1.55rem;
  color: #fff;
}
.aim-video-main-header p {
  margin: 8px 0 0;
  color: var(--aim-text-dim);
}

.aim-video-player-wrap {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--aim-border);
  background: #000;
}
.aim-video-player-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}

.aim-video-related {
  margin-top: 20px;
}

.aim-video-related-title {
  color: var(--aim-text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.aim-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.aim-video-card {
  border: 1px solid var(--aim-border);
  border-radius: 10px;
  overflow: hidden;
  background: #11182b;
}
.aim-video-card.active {
  border-color: var(--aim-brand);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35);
}
.aim-video-card h3 {
  margin: 10px 10px 4px;
  color: var(--aim-text);
  font-size: 0.92rem;
}
.aim-video-card p {
  margin: 0 10px 12px;
  color: var(--aim-text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

.aim-video-thumb-link {
  display: block;
}
.aim-video-thumb-link img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.aim-video-form {
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--aim-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.aim-video-form h3 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--aim-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.aim-video-form .aim-input {
  margin-bottom: 8px;
  font-size: 0.84rem;
}

.aim-video-form-sm {
  margin-top: 8px;
  margin-bottom: 8px;
}

.aim-video-empty {
  color: var(--aim-text-dim);
  font-size: 0.85rem;
}

#btnPayWithAffiliateCredit {
  margin-bottom: 0.5rem;
  background: #eab308;
  color: #1a1a1a;
}

/* Category level styling */
.aim-faq-category {
  margin-bottom: 1.5rem;
  border: 1px solid var(--aim-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
}

.aim-faq-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background-color: var(--aim-bg-card, #f9fafb);
  cursor: pointer;
  user-select: none;
  color: var(--aim-text);
}
.aim-faq-category-header i {
  color: var(--aim-accent);
}
.aim-faq-category-header .aim-faq-count {
  margin-left: auto;
  margin-right: 2rem;
}
.aim-faq-category-header .aim-faq-count span {
  width: 19px;
  height: 19px;
}

.aim-faq-category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.aim-faq-category-title h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.aim-faq-category-body {
  display: none;
  padding: 1rem 1.5rem 1.5rem;
}

/* Toggle category visibility */
.aim-faq-category.open .aim-faq-category-body {
  display: block;
}

.aim-faq-category.open .aim-faq-cat-chevron {
  transform: rotate(180deg);
}

.aim-faq-cat-chevron {
  transition: transform 0.2s ease;
}

.strong-highlight strong {
  color: white;
}
.strong-highlight b {
  color: white;
  opacity: 0.7;
}

.aim-and-more {
  color: var(--aim-text-dim);
  font-size: 1.25rem;
  text-align: center;
  position: relative;
  top: -60px;
  opacity: 0.48;
}

#affiliateDetailActions {
  margin-top: 25px;
}

.policy-toolbar, .policy-overlay-header, .policy-release-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.policy-toolbar, .policy-release-options {
  gap: 0.75rem;
}
.policy-toolbar {
  margin-bottom: 1rem;
}
.policy-toolbar label {
  color: var(--aim-text-light, #9ca3af);
  font-size: 0.85rem;
}
.policy-toolbar .aim-btn {
  flex-shrink: 0;
}
.policy-version-select {
  width: auto;
  min-width: 13rem;
}
.policy-notice {
  color: var(--aim-text-dim, #6b7280);
  font-size: 0.85rem;
}
.policy [hidden] {
  display: none !important;
}
.policy-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--aim-bg, #fff);
  color: var(--aim-text, #222);
}
.policy-overlay-header {
  gap: 1rem;
  padding-bottom: 1rem;
}
.policy-overlay-header h2 {
  margin: 0;
}
.policy-overlay-header > label {
  color: var(--aim-text-light, #9ca3af);
  font-size: 0.85rem;
}
.policy-overlay-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}
.policy-release-options {
  margin-left: auto;
}
.policy-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.policy-date {
  width: auto;
  color-scheme: dark;
}
.policy-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
}
.policy-columns > * {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--aim-border, #2b2b2b);
  border-radius: var(--aim-radius, 6px);
  background: var(--aim-bg-input, #1c1c22);
  color: inherit;
  font-size: 13px;
  line-height: 1.6;
}
.policy-columns > *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.policy-columns > *::-webkit-scrollbar-track {
  background: transparent;
}
.policy-columns > *::-webkit-scrollbar-thumb {
  background: var(--aim-border-light, #3a3a42);
  border-radius: 4px;
}
.policy-columns > *::-webkit-scrollbar-thumb:hover {
  background: var(--aim-text-dim, #6b7280);
}
.policy-columns > * {
  scrollbar-width: thin;
  scrollbar-color: var(--aim-border-light, #3a3a42) transparent;
}
.policy-columns textarea {
  resize: none;
  font-family: monospace;
}
.policy-columns article {
  overflow-wrap: anywhere;
}
.policy-comparison-columns article {
  white-space: pre-wrap;
}
.policy-added {
  background: #b6edbf;
  color: #123b1c;
}
.policy-removed {
  background: #ffd3d3;
  color: #581313;
}
.policy-error {
  color: #b42318;
}

@media (max-width: 600px) {
  .policy-columns {
    gap: 0.25rem;
  }
  .policy-columns > * {
    padding: 0.4rem;
  }
}
