/* ==========================================================================
   SEMANTIC CSS - Tailwind-Bloat-Reduktion
   Wiederverwendbare Komponenten-Klassen statt inline Tailwind
   ========================================================================== */

/* --- PAGE STRUCTURE --- */
.ac-page-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .ac-page-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.ac-page-title-group {
    text-align: left;
}

.ac-page-subtitle {
    color: #6b7280;
    font-weight: 700;
    font-style: italic;
}

/* --- BUTTONS --- */
.ac-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.025em;
    transition: all 0.2s ease;
}

.ac-btn-primary {
    background-color: #1f2937;
    color: white;
}

.ac-btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.ac-btn-add {
    background-color: #1f2937;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.025em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ac-btn-report {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.ac-btn-report:hover {
    background-color: #dbeafe;
}


.ac-btn-add:hover {
    background-color: #2563eb;
}

.ac-btn-submit {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.ac-btn-submit:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* --- ICON BUTTONS --- */
.ac-icon-btn {
    padding: 0.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.ac-icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* REMOVED: .ac-icon-btn-readings, .ac-icon-btn-stats, .ac-icon-btn-edit, .ac-icon-btn-delete - replaced by modal actions */

/* --- GRIDS --- */
.ac-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .ac-grid-2col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ac-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* --- METER CARD --- */
.ac-meter-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    position: relative;
}

.ac-meter-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ac-meter-card-inactive {
    background-color: #f9fafb;
    opacity: 0.8;
    border-color: #e5e7eb;
}

.ac-meter-card-grouped {
    border-left: 4px solid #2563eb;
}

.ac-meter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.ac-meter-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.ac-meter-icon {
    padding: 0.75rem;
    border-radius: 1rem;
}

.ac-meter-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.ac-meter-icon-electricity {
    background-color: #fef3c7;
    color: #d97706;
}

.ac-meter-icon-gas {
    background-color: #fed7aa;
    color: #ea580c;
}

.ac-meter-icon-water {
    background-color: #dbeafe;
    color: #2563eb;
}

.ac-meter-title {
    font-size: 1.25rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.ac-meter-number {
    font-size: 0.625rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* REMOVED: .ac-meter-actions, .ac-meter-actions-row - replaced by modal actions */

/* --- BADGE --- */
.ac-badge {
    font-size: 0.5rem;
    font-weight: 900;
    padding: 0.125rem 0.375rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ac-badge-group {
    background-color: #dbeafe;
    color: #1e40af;
    margin-left: 0.5rem;
}

.ac-badge-active {
    background-color: #d1fae5;
    color: #065f46;
}

.ac-badge-inactive {
    background-color: #e5e7eb;
    color: #6b7280;
}

.ac-badge-pro {
    background-color: #fbbf24;
    color: #1e3a8a;
    font-size: 0.4375rem;
    font-weight: 800;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    transform: rotate(-2deg);
    display: inline-block;
}

/* --- CONTRACT BOX --- */
.ac-contract-box {
    border-radius: 2rem;
    padding: 1.25rem;
    border: 1px solid;
    text-align: left;
}

.ac-contract-box-active {
    background-color: rgba(239, 246, 255, 0.5);
    border-color: #bfdbfe;
}

.ac-contract-box-inactive {
    background-color: rgba(229, 231, 235, 0.5);
    border-color: #e5e7eb;
}

.ac-contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ac-contract-provider {
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.ac-contract-provider-active {
    color: #1e3a8a;
}

.ac-contract-provider-inactive {
    color: #6b7280;
}

.ac-contract-saldo {
    margin-bottom: 1rem;
}

.ac-contract-saldo-label {
    font-size: 0.5625rem;
    font-weight: 900;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.ac-contract-saldo-value {
    font-size: 1.875rem;
    font-weight: 900;
    font-style: italic;
}

.ac-contract-saldo-positive {
    color: #059669;
}

.ac-contract-saldo-negative {
    color: #dc2626;
}

.ac-contract-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    border-top: 1px solid;
    padding-top: 1rem;
}

.ac-contract-details-active {
    border-color: #bfdbfe;
}

.ac-contract-details-inactive {
    border-color: #e5e7eb;
}

.ac-contract-detail-label {
    display: block;
    font-size: 0.5rem;
    font-weight: 900;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.ac-contract-detail-value {
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
}

/* --- FORM ELEMENTS --- */
.ac-form-group {
    margin-bottom: 1.25rem;
}

.ac-form-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    font-style: italic;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.ac-form-input {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background-color: #f9fafb;
    border: 1px solid transparent;
    font-weight: 700;
    transition: all 0.2s ease;
}

.ac-form-input:focus {
    background-color: white;
    border-color: #2563eb;
    outline: none;
    ring: 2px solid #eff6ff;
}

/* Code-Eingabe (Bestätigungs- und Reset-Code): Größe und Abstand kommen per
   Utility-Klassen an der Seite, hier nur Farben und der sichtbare Rahmen. */
.ac-code-input {
    background-color: #f9fafb;
    border: 2px solid #9ca3af;
    transition: all 0.2s ease;
}

.ac-code-input:hover {
    border-color: #60a5fa;
}

.ac-code-input:focus {
    background-color: white;
    border-color: #2563eb;
    outline: none;
    box-shadow: none;
}

.ac-form-textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    font-weight: 700;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    font-family: monospace;
    font-size: 0.875rem;
}

.ac-form-textarea:focus {
    background-color: white;
    ring: 2px solid #2563eb;
}

/* --- EMPTY STATE --- */
.ac-empty-state {
    background-color: rgba(254, 242, 242, 0.3);
    border-radius: 2rem;
    padding: 2rem;
    border: 2px dashed #fecaca;
    text-align: center;
}

.ac-empty-state-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f87171;
    text-transform: uppercase;
    font-style: italic;
}

/* REMOVED: .ac-empty-state-link - empty state now opens modal instead of direct link */

/* --- ADD CARD --- */
.ac-add-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px dashed #f3f4f6;
    background-color: rgba(249, 250, 251, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    min-height: 300px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ac-add-card:hover {
    border-color: #93c5fd;
}

.ac-add-card-icon {
    padding: 1rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.ac-add-card:hover .ac-add-card-icon {
    transform: scale(1.1);
}

.ac-add-card-icon svg {
    width: 2rem;
    height: 2rem;
    color: #2563eb;
}

.ac-add-card-text {
    font-size: 1.25rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    color: #1f2937;
    letter-spacing: -0.025em;
}

/* REMOVED: .ac-footer-link, .ac-footer-meta - no longer used in simplified meter cards */

/* --- SPACING UTILITIES --- */
.ac-space-y-3 > * + * {
    margin-top: 0.75rem;
}

.ac-space-y-4 > * + * {
    margin-top: 1rem;
}

.ac-space-y-5 > * + * {
    margin-top: 1.25rem;
}

/* --- CONTAINER --- */
.ac-container-narrow {
    max-width: 28rem;
    margin: 0 auto;
    margin-top: 3rem;
}

/* --- ICON SIZE --- */
.ac-icon-sm {
    width: 1rem;
    height: 1rem;
}

.ac-icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.ac-icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

/* --- AUTH PAGES (Login/Register) --- */
.ac-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background-color: #2563eb;
}

.ac-card-header {
    margin-bottom: 2rem;
}

.ac-card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.ac-alert {
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-style: italic;
    font-size: 0.875rem;
    border: 1px solid;
}

.ac-alert-error {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.ac-alert-success {
    background-color: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.ac-btn-sso {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: white;
    border: 2px solid #f3f4f6;
    padding: 0.75rem;
    border-radius: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #374151;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-style: italic;
    font-size: 0.875rem;
}

.ac-btn-sso:hover {
    background-color: #f9fafb;
    border-color: #bfdbfe;
}

.ac-consent-blocked {
    background-color: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.ac-consent-blocked-text {
    font-size: 0.5625rem;
    color: #9ca3af;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.ac-consent-blocked-btn {
    color: #2563eb;
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ac-consent-blocked-btn:hover {
    color: #1d4ed8;
}

.ac-divider {
    position: relative;
    display: flex;
    padding: 0.75rem 0;
    align-items: center;
}

.ac-divider::before,
.ac-divider::after {
    content: '';
    flex-grow: 1;
    border-top: 1px solid #f3f4f6;
}

.ac-divider span {
    flex-shrink: 0;
    margin: 0 1rem;
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d1d5db;
}

.ac-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 0.25rem;
    margin-bottom: 0.5rem;
}

.ac-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.25rem;
}

.ac-checkbox {
    border-radius: 0.25rem;
    border-color: #d1d5db;
    color: #2563eb;
}

.ac-checkbox:focus {
    ring: 2px solid #93c5fd;
}

.ac-checkbox-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
}

.ac-captcha-container {
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
    min-height: 80px;
}

.ac-text-muted {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 700;
}

.ac-link-small {
    font-size: 0.5625rem;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    font-style: italic;
}

.ac-link-small:hover {
    text-decoration: underline;
}

.ac-link-bold {
    color: #2563eb;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.ac-link-bold:hover {
    text-decoration: underline;
}

.ac-text-legal {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.625rem;
    color: #9ca3af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ac-text-legal a {
    text-decoration: underline;
}

.ac-text-legal a:hover {
    color: #2563eb;
}

.ac-password-hint {
    font-size: 0.5625rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    margin-left: 0.25rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

/* ═══════════════════════════════════════
   MODAL / BOTTOM SHEET
════════════════════════════════════════ */

.ac-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.ac-modal-overlay.active {
    display: flex;
}

/* Mobile & Tablet: Bottom Sheet */
.ac-modal {
    background-color: white;
    padding: 0.75rem 1.5rem 2.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.22);
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    max-height: 88svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    text-align: left;
    position: relative;
    animation: ac-sheet-up 0.3s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.dark .ac-modal {
    background-color: #1f2937;
}

/* Swipe-Handle */
.ac-modal::before {
    content: '';
    display: block;
    width: 2.75rem;
    height: 4px;
    background-color: #d1d5db;
    border-radius: 2px;
    margin: 0 auto 1.25rem;
}

.dark .ac-modal::before {
    background-color: #4b5563;
}

@keyframes ac-sheet-up {
    from { transform: translateY(100%); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Desktop: ab 1024px zentriertes Modal */
@media (min-width: 1024px) {
    .ac-modal-overlay {
        align-items: center;
        padding: 2rem;
    }

    .ac-modal {
        border-radius: 2.5rem;
        padding: 3rem;
        max-width: 30rem;
        max-height: 90vh;
        width: 100%;
        animation: ac-modal-in 0.2s cubic-bezier(0.32, 0.72, 0, 1) both;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    }

    .ac-modal::before {
        display: none;
    }

    .ac-modal-wide {
        max-width: 44rem;
    }
}

@keyframes ac-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.ac-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #9ca3af;
    transition: color 0.2s ease;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.ac-modal-close:hover {
    color: #1f2937;
}


.dark .ac-modal::before {
    background-color: #4b5563;
}

@keyframes ac-sheet-up {
    from { transform: translateY(100%); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Desktop: Zentriertes Modal */
@media (min-width: 768px) {
    .ac-modal-overlay {
        align-items: center;
        padding: 2rem;
    }

    .ac-modal {
        border-radius: 2.5rem;
        padding: 3rem;
        max-width: 30rem;
        max-height: 90vh;
        width: 100%;
        animation: ac-modal-in 0.2s cubic-bezier(0.32, 0.72, 0, 1) both;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    }

    .ac-modal::before {
        display: none;
    }

    .ac-modal-wide {
        max-width: 44rem;
    }
}

@keyframes ac-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.ac-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #9ca3af;
    transition: color 0.2s ease;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.ac-modal-close:hover {
    color: #1f2937;
}

/* --- CONTENT SECTIONS --- */
.ac-content-card {
    background-color: white;
    padding: 2rem;
    border-radius: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ac-content-card {
        padding: 3rem;
    }
}

.ac-section-header {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.ac-section-number {
    width: 2rem;
    height: 2rem;
    background-color: #dbeafe;
    color: #2563eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.875rem;
    font-style: italic;
}

.ac-section-content {
    color: #6b7280;
    font-weight: 500;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

/* --- LINKS & BUTTONS (Extended) --- */
.ac-link-back {
    color: #2563eb;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    font-weight: 700;
    transition: color 0.2s ease;
}

.ac-link-back:hover {
    color: #1d4ed8;
}

.ac-btn-action {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    font-style: italic;
}

.ac-btn-action:hover {
    background-color: #1e40af;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.5);
}

/* --- HIGHLIGHTED BOXES --- */
.ac-info-box {
    background-color: rgba(239, 246, 255, 0.5);
    padding: 1.5rem;
    border-radius: 2rem;
    border: 1px solid #bfdbfe;
}

.ac-info-box-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ac-info-box-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ac-info-box-full {
    grid-column: 1 / -1;
}

/* --- FLEX UTILITIES --- */
.ac-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ac-flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ac-flex-gap-2 {
    gap: 0.5rem;
}

.ac-flex-gap-3 {
    gap: 0.75rem;
}

.ac-flex-gap-4 {
    gap: 1rem;
}

/* --- GROUP/HOVER EFFECTS --- */
.ac-card-hover {
    transition: all 0.2s ease;
}

.ac-card-hover:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* --- VISIBILITY --- */
.ac-hidden {
    display: none;
}

.ac-visible {
    display: block;
}

/* --- RELATIVE/ABSOLUTE POSITIONING --- */
.ac-relative {
    position: relative;
}

.ac-absolute-top-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* --- NAV RESPONSIVE --- */
.ac-nav-desktop {
    display: none;
}

.ac-nav-mobile-toggle {
    display: flex;
}

@media (min-width: 1024px) {
    .ac-nav-desktop {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.875rem;
        font-weight: 500;
    }

    .ac-nav-mobile-toggle {
        display: none;
    }
}

/* --- MODAL BUTTONS --- */
.ac-modal-btn-primary {
    display: block;
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 900;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ac-modal-btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.ac-modal-btn-secondary {
    display: block;
    width: 100%;
    background-color: #f3f4f6;
    color: #1f2937;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.ac-modal-btn-secondary:hover {
    background-color: #e5e7eb;
}

.ac-modal-btn-warning {
    flex: 1;
    background-color: #fffbeb;
    color: #b45309;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-align: center;
}

.ac-modal-btn-warning:hover {
    background-color: #fde68a;
    color: #92400e;
}

.ac-modal-btn-danger {
    flex: 1;
    background-color: #fff1f2;
    color: #dc2626;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-align: center;
}

.ac-modal-btn-danger:hover {
    background-color: #fecaca;
    color: #991b1b;
}

