:root {
    --acl-bg: #0f172a;
    --acl-card-bg: #020617;
    --acl-accent: #3b82f6;
    --acl-accent-soft: rgba(59, 130, 246, 0.15);
    --acl-text: #e5e7eb;
    --acl-muted: #9ca3af;
    --acl-border: #1f2937;
    --acl-error: #f97373;
    --acl-radius-lg: 16px;
    --acl-radius-md: 10px;
    --acl-shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.75);
}

.acl-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.acl-card {
    width: 100%;
    max-width: 480px;
    background: radial-gradient(circle at top left, #1d2433, #020617);
    border-radius: var(--acl-radius-lg);
    padding: 24px;
    box-shadow: var(--acl-shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--acl-text);
    position: relative;
    overflow: hidden;
}

/* subtle gradient overlay */
.acl-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.acl-card > * {
    position: relative;
    z-index: 1;
}

.acl-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.acl-description {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: var(--acl-muted);
}

/* Form */
.acl-form {
    margin-bottom: 20px;
}

.acl-label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--acl-muted);
}

.acl-input-group {
    display: flex;
    align-items: stretch;
    border-radius: var(--acl-radius-md);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.acl-input-prefix {
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--acl-muted);
    font-size: 0.9rem;
}

.acl-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 0.95rem;
    background: transparent;
    color: var(--acl-text);
}

.acl-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.acl-button {
    border: none;
    outline: none;
    padding: 0 16px;
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.acl-button:hover {
    filter: brightness(1.05);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.45);
}

.acl-button:active {
    transform: translateY(1px) scale(0.99);
}

.acl-helper-text {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--acl-muted);
}

/* Results */
.acl-results {
    margin-top: 10px;
    padding: 14px 12px;
    border-radius: var(--acl-radius-md);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.acl-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    font-size: 0.9rem;
}

.acl-result-label {
    color: var(--acl-muted);
    font-size: 0.8rem;
}

.acl-result-value {
    font-weight: 500;
}

/* Error */
.acl-error {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .acl-card {
        padding: 20px 16px;
    }

    .acl-title {
        font-size: 1.25rem;
    }

    .acl-input-group {
        flex-direction: row;
    }

    .acl-button {
        padding: 0 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .acl-wrapper {
        padding: 16px 12px;
    }

    .acl-card {
        padding: 16px 14px;
    }

    .acl-result-row {
        font-size: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .acl-result-value {
        font-size: 0.9rem;
    }
}